1/*! For license information please see 12.132712e2.chunk.js.LICENSE.txt */ 2(this["webpackJsonpvectr-next"]=this["webpackJsonpvectr-next"]||[]).push([[12],[function(e,t,n){"use strict";e.exports=n(285)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(116);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return ss})),n.d(t,"b",(function(){return Sr})),n.d(t,"c",(function(){return Xo})),n.d(t,"d",(function(){return fa})),n.d(t,"e",(function(){return dn})),n.d(t,"f",(function(){return Ar})),n.d(t,"g",(function(){return ps})),n.d(t,"h",(function(){return Ba})),n.d(t,"i",(function(){return sa})),n.d(t,"j",(function(){return no})),n.d(t,"k",(function(){return ts})),n.d(t,"l",(function(){return ps})),n.d(t,"m",(function(){return ei})),n.d(t,"n",(function(){return pa})),n.d(t,"o",(function(){return ni})),n.d(t,"p",(function(){return ca})),n.d(t,"q",(function(){return an})),n.d(t,"r",(function(){return ua})),n.d(t,"s",(function(){return De})),n.d(t,"t",(function(){return Gi})),n.d(t,"u",(function(){return tr})),n.d(t,"v",(function(){return Lt})),n.d(t,"w",(function(){return Ba})),n.d(t,"x",(function(){return rs})),n.d(t,"y",(function(){return Q})),n.d(t,"z",(function(){return z})),n.d(t,"A",(function(){return Na})),n.d(t,"B",(function(){return Ps})),n.d(t,"C",(function(){return js})),n.d(t,"D",(function(){return Fo}));var r,i,o,a,s,l,c,u,h,f,d=n(42),p=n(13),g=n(1);const v=["translateX","translateY","scaleX","scaleY"],m=["type","source","patternTransform"],y=["startValue","endValue"],b=["startValue","endValue"],x=["startValue","endValue","easing","onChange","onComplete","abort"],_=["type"],w=["extraParam"],S=["target","ex","ey","skewingSide"],C=["left","top","width","height","visible"],k=["strategy"],O=["target","strategy","bubbles","prevStrategy"],E=["type","objects","layoutManager"],T=["target","oldTarget","fireCanvas","e"],A=["path","left","top"],P=["d"],j=["left","top","radius"],L=["x1","y1","x2","y2"],M=["x1","y1","x2","y2"],R=["left","top"],D=["filters","resizeFilter","src","crossOrigin","type"],I=["type"],N=["type"],F=["type","image"];function B(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class U{constructor(){B(this,"browserShadowBlurConstant",1),B(this,"DPI",96),B(this,"devicePixelRatio","undefined"!==typeof window?window.devicePixelRatio:1),B(this,"perfLimitSizeTotal",2097152),B(this,"maxCacheSideLimit",4096),B(this,"minCacheSideLimit",256),B(this,"disableStyleCopyPaste",!1),B(this,"enableGLFiltering",!0),B(this,"textureSize",4096),B(this,"forceGLPutImageData",!1),B(this,"cachesBoundsOfCurve",!1),B(this,"fontPaths",{}),B(this,"NUM_FRACTION_DIGITS",4)}}const z=new class extends U{constructor(e){super(),this.configure(e)}configure(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.assign(this,e)}addFonts(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.fontPaths=Object(g.a)(Object(g.a)({},this.fontPaths),e)}removeFonts(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((e=>{delete this.fontPaths[e]}))}clearFonts(){this.fontPaths={}}restoreDefaults(e){const t=new U,n=(null===e||void 0===e?void 0:e.reduce(((e,n)=>(e[n]=t[n],e)),{}))||t;this.configure(n)}},V=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return console[e]("fabric",...n)};
2class H extends Error{constructor(e,t){super("fabric: ".concat(e),t)}}class W extends H{constructor(e){super("".concat(e," 'options.signal' is in 'aborted' state"))}}class G extends class{}{testPrecision(e,t){const n="precision ".concat(t," float;\nvoid main(){}"),r=e.createShader(e.FRAGMENT_SHADER);return!!r&&(e.shaderSource(r,n),e.compileShader(r),!!e.getShaderParameter(r,e.COMPILE_STATUS))}queryWebGL(e){const t=e.getContext("webgl");t&&(this.maxTextureSize=t.getParameter(t.MAX_TEXTURE_SIZE),this.GLPrecision=["highp","mediump","lowp"].find((e=>this.testPrecision(t,e))),t.getExtension("WEBGL_lose_context").loseContext(),V("log","WebGL: max texture size ".concat(this.maxTextureSize)))}isSupported(e){return!!this.maxTextureSize&&this.maxTextureSize>=e}}const q={};let X;const Y=()=>X||(X={document:document,window:window,isTouchSupported:"ontouchstart"in window||"ontouchstart"in document||window&&window.navigator&&window.navigator.maxTouchPoints>0,WebGLProbe:new G,dispose(){},copyPasteData:q}),$=()=>Y().document,K=()=>Y().window,Z=()=>{var e;return Math.max(null!==(e=z.devicePixelRatio)&&void 0!==e?e:K().devicePixelRatio,1)};const Q=new class{constructor(){B(this,"charWidthsCache",{}),B(this,"boundsOfCurveCache",{})}getFontCache(e){let{fontFamily:t,fontStyle:n,fontWeight:r}=e;t=t.toLowerCase(),this.charWidthsCache[t]||(this.charWidthsCache[t]={});const i=this.charWidthsCache[t],o="".concat(n.toLowerCase(),"_").concat((r+"").toLowerCase());return i[o]||(i[o]={}),i[o]}clearFontCache(e){(e=(e||"").toLowerCase())?this.charWidthsCache[e]&&delete this.charWidthsCache[e]:this.charWidthsCache={}}limitDimsByArea(e){const{perfLimitSizeTotal:t}=z,n=Math.sqrt(t*e);return[Math.floor(n),Math.floor(t/n)]}};const J="6.7.14";function ee(){}const te=Math.PI/2,ne=2*Math.PI,re=Math.PI/180,ie=Object.freeze([1,0,0,1,0,0]),oe=.4477152502,ae="center",se="left",le="top",ce="bottom",ue="right",he="none",fe=/\r?\n/,de="moving",pe="scaling",ge="rotating",ve="rotate",me="skewing",ye="resizing",be="modifyPoly",xe="modifyPath",_e="changed",we="scale",Se="scaleX",Ce="scaleY",ke="skewX",Oe="skewY",Ee="fill",Te="stroke",Ae="modified";const Pe=new class{constructor(){this.json=new Map,this.svg=new Map}has(e){return this.json.has(e)}getClass(e){const t=this.json.get(e);if(!t)throw new H("No class registered for ".concat(e));return t}setClass(e,t){t?this.json.set(t,e):(this.json.set(e.type,e),this.json.set(e.type.toLowerCase(),e))}getSVGClass(e){return this.svg.get(e)}setSVGClass(e,t){this.svg.set(null!==t&&void 0!==t?t:e.type.toLowerCase(),e)}};const je=new class extends Array{remove(e){const t=this.indexOf(e);t>-1&&this.splice(t,1)}cancelAll(){const e=this.splice(0);return e.forEach((e=>e.abort())),e}cancelByCanvas(e){if(!e)return[];const t=this.filter((t=>{var n;return t.target===e||"object"===typeof t.target&&(null===(n=t.target)||void 0===n?void 0:n.canvas)===e}));return t.forEach((e=>e.abort())),t}cancelByTarget(e){if(!e)return[];const t=this.filter((t=>t.target===e));return t.forEach((e=>e.abort())),t}};const Le=(e,t)=>{const n=e.indexOf(t);return-1!==n&&e.splice(n,1),e},Me=e=>{if(0===e)return 1;switch(Math.abs(e)/te){case 1:case 3:return 0;case 2:return-1}return Math.cos(e)},Re=e=>{if(0===e)return 0;const t=e/te,n=Math.sign(e);switch(t){case 1:return n;case 2:return 0;case 3:return-n}return Math.sin(e)};class De{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;"object"===typeof e?(this.x=e.x,this.y=e.y):(this.x=e,this.y=t)}add(e){return new De(this.x+e.x,this.y+e.y)}addEquals(e){return this.x+=e.x,this.y+=e.y,this}scalarAdd(e){return new De(this.x+e,this.y+e)}scalarAddEquals(e){return this.x+=e,this.y+=e,this}subtract(e){return new De(this.x-e.x,this.y-e.y)}subtractEquals(e){return this.x-=e.x,this.y-=e.y,this}scalarSubtract(e){return new De(this.x-e,this.y-e)}scalarSubtractEquals(e){return this.x-=e,this.y-=e,this}multiply(e){return new De(this.x*e.x,this.y*e.y)}scalarMultiply(e){return new De(this.x*e,this.y*e)}scalarMultiplyEquals(e){return this.x*=e,this.y*=e,this}divide(e){return new De(this.x/e.x,this.y/e.y)}scalarDivide(e){return new De(this.x/e,this.y/e)}scalarDivideEquals(e){return this.x/=e,this.y/=e,this}eq(e){return this.x===e.x&&this.y===e.y}
2lt(e){return this.x<e.x&&this.y<e.y}lte(e){return this.x<=e.x&&this.y<=e.y}gt(e){return this.x>e.x&&this.y>e.y}gte(e){return this.x>=e.x&&this.y>=e.y}lerp(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5;return t=Math.max(Math.min(1,t),0),new De(this.x+(e.x-this.x)*t,this.y+(e.y-this.y)*t)}distanceFrom(e){const t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)}midPointFrom(e){return this.lerp(e)}min(e){return new De(Math.min(this.x,e.x),Math.min(this.y,e.y))}max(e){return new De(Math.max(this.x,e.x),Math.max(this.y,e.y))}toString(){return"".concat(this.x,",").concat(this.y)}setXY(e,t){return this.x=e,this.y=t,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setFromPoint(e){return this.x=e.x,this.y=e.y,this}swap(e){const t=this.x,n=this.y;this.x=e.x,this.y=e.y,e.x=t,e.y=n}clone(){return new De(this.x,this.y)}rotate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ie;const n=Re(e),r=Me(e),i=this.subtract(t);return new De(i.x*r-i.y*n,i.x*n+i.y*r).add(t)}transform(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new De(e[0]*this.x+e[2]*this.y+(t?0:e[4]),e[1]*this.x+e[3]*this.y+(t?0:e[5]))}}const Ie=new De(0,0),Ne=e=>!!e&&Array.isArray(e._objects);function Fe(e){class t extends e{constructor(){super(...arguments),B(this,"_objects",[])}_onObjectAdded(e){}_onObjectRemoved(e){}_onStackOrderChanged(e){}add(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=this._objects.push(...t);return t.forEach((e=>this._onObjectAdded(e))),r}insertAt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return this._objects.splice(e,0,...n),n.forEach((e=>this._onObjectAdded(e))),this._objects.length}remove(){const e=this._objects,t=[];for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return r.forEach((n=>{const r=e.indexOf(n);-1!==r&&(e.splice(r,1),t.push(n),this._onObjectRemoved(n))})),t}forEachObject(e){this.getObjects().forEach(((t,n,r)=>e(t,n,r)))}getObjects(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?[...this._objects]:this._objects.filter((e=>e.isType(...t)))}item(e){return this._objects[e]}isEmpty(){return 0===this._objects.length}size(){return this._objects.length}contains(e,n){return!!this._objects.includes(e)||!!n&&this._objects.some((n=>n instanceof t&&n.contains(e,!0)))}complexity(){return this._objects.reduce(((e,t)=>e+=t.complexity?t.complexity():0),0)}sendObjectToBack(e){return!(!e||e===this._objects[0])&&(Le(this._objects,e),this._objects.unshift(e),this._onStackOrderChanged(e),!0)}bringObjectToFront(e){return!(!e||e===this._objects[this._objects.length-1])&&(Le(this._objects,e),this._objects.push(e),this._onStackOrderChanged(e),!0)}sendObjectBackwards(e,t){if(!e)return!1;const n=this._objects.indexOf(e);if(0!==n){const r=this.findNewLowerIndex(e,n,t);return Le(this._objects,e),this._objects.splice(r,0,e),this._onStackOrderChanged(e),!0}return!1}bringObjectForward(e,t){if(!e)return!1;const n=this._objects.indexOf(e);if(n!==this._objects.length-1){const r=this.findNewUpperIndex(e,n,t);return Le(this._objects,e),this._objects.splice(r,0,e),this._onStackOrderChanged(e),!0}return!1}moveObjectTo(e,t){return e!==this._objects[t]&&(Le(this._objects,e),this._objects.splice(t,0,e),this._onStackOrderChanged(e),!0)}findNewLowerIndex(e,t,n){let r;if(n){r=t;for(let n=t-1;n>=0;--n)if(e.isOverlapping(this._objects[n])){r=n;break}}else r=t-1;return r}findNewUpperIndex(e,t,n){let r;if(n){r=t;for(let n=t+1;n<this._objects.length;++n)if(e.isOverlapping(this._objects[n])){r=n;break}}else r=t+1;return r}collectObjects(e,t){let{left:n,top:r,width:i,height:o}=t,{includeIntersecting:a=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const s=[],l=new De(n,r),c=l.add(new De(i,o));for(let u=e.length-1;u>=0;u--){const t=e[u];t.selectable&&t.visible&&(a&&t.intersectsWithRect(l,c)||t.isContainedWithinRect(l,c)||a&&t.containsPoint(l)||a&&t.containsPoint(c))&&s.push(t)}return s}}return t}class Be extends class{constructor(){B(this,"__eventListeners",{})}on(e,t){if(this.__eventListeners||(this.__eventListeners={}),"object"===typeof e)return Object.entries(e).forEach((e=>{let[t,n]=e;this.on(t,n)})),()=>this.off(e);if(t){const n=e;return this.__eventListeners[n]||(this.__eventListeners[n]=[]),this.__eventListeners[n].push(t),()=>this.off(n,t)}return()=>!1}once(e,t){if("object"===typeof e){const t=[];return Object.entries(e).forEach((e=>{let[n,r]=e;
2t.push(this.once(n,r))})),()=>t.forEach((e=>e()))}if(t){const n=this.on(e,(function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];t.call(this,...r),n()}));return n}return()=>!1}_removeEventListener(e,t){if(this.__eventListeners[e])if(t){const n=this.__eventListeners[e],r=n.indexOf(t);r>-1&&n.splice(r,1)}else this.__eventListeners[e]=[]}off(e,t){if(this.__eventListeners)if("undefined"===typeof e)for(const n in this.__eventListeners)this._removeEventListener(n);else"object"===typeof e?Object.entries(e).forEach((e=>{let[t,n]=e;this._removeEventListener(t,n)})):this._removeEventListener(e,t)}fire(e,t){var n;if(!this.__eventListeners)return;const r=null===(n=this.__eventListeners[e])||void 0===n?void 0:n.concat();if(r)for(let i=0;i<r.length;i++)r[i].call(this,t||{})}}{_setOptions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(const t in e)this.set(t,e[t])}_setObject(e){for(const t in e)this._set(t,e[t])}set(e,t){return"object"===typeof e?this._setObject(e):this._set(e,t),this}_set(e,t){this[e]=t}toggle(e){const t=this.get(e);return"boolean"===typeof t&&this.set(e,!t),this}get(e){return this[e]}}function Ue(e){return K().requestAnimationFrame(e)}function ze(e){return K().cancelAnimationFrame(e)}let Ve=0;const He=()=>Ve++,We=()=>{const e=$().createElement("canvas");if(!e||"undefined"===typeof e.getContext)throw new H("Failed to create `canvas` element");return e},Ge=()=>$().createElement("img"),qe=e=>{const t=We();return t.width=e.width,t.height=e.height,t},Xe=(e,t,n)=>e.toDataURL("image/".concat(t),n),Ye=(e,t,n)=>new Promise(((r,i)=>{e.toBlob(r,"image/".concat(t),n)})),$e=e=>e*re,Ke=e=>e/re,Ze=e=>e.every(((e,t)=>e===ie[t])),Qe=(e,t,n)=>new De(e).transform(t,n),Je=e=>{const t=1/(e[0]*e[3]-e[1]*e[2]),n=[t*e[3],-t*e[1],-t*e[2],t*e[0],0,0],{x:r,y:i}=new De(e[4],e[5]).transform(n,!0);return n[4]=-r,n[5]=-i,n},et=(e,t,n)=>[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],n?0:e[0]*t[4]+e[2]*t[5]+e[4],n?0:e[1]*t[4]+e[3]*t[5]+e[5]],tt=(e,t)=>e.reduceRight(((e,n)=>n&&e?et(n,e,t):n||e),void 0)||ie.concat(),nt=e=>{let[t,n]=e;return Math.atan2(n,t)},rt=e=>{const t=nt(e),n=Math.pow(e[0],2)+Math.pow(e[1],2),r=Math.sqrt(n),i=(e[0]*e[3]-e[2]*e[1])/r,o=Math.atan2(e[0]*e[2]+e[1]*e[3],n);return{angle:Ke(t),scaleX:r,scaleY:i,skewX:Ke(o),skewY:0,translateX:e[4]||0,translateY:e[5]||0}},it=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return[1,0,0,1,e,t]};function ot(){let{angle:e=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{x:t=0,y:n=0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=$e(e),i=Me(r),o=Re(r);return[i,o,-o,i,t?t-(i*t-o*n):0,n?n-(o*t+i*n):0]}const at=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return[e,0,0,t,0,0]},st=e=>Math.tan($e(e)),lt=e=>[1,0,st(e),1,0,0],ct=e=>[1,st(e),0,1,0,0],ut=e=>{let{scaleX:t=1,scaleY:n=1,flipX:r=!1,flipY:i=!1,skewX:o=0,skewY:a=0}=e,s=at(r?-t:t,i?-n:n);return o&&(s=et(s,lt(o),!0)),a&&(s=et(s,ct(a),!0)),s},ht=e=>{const{translateX:t=0,translateY:n=0,angle:r=0}=e;let i=it(t,n);r&&(i=et(i,ot({angle:r})));const o=ut(e);return Ze(o)||(i=et(i,o)),i},ft=function(e){let{signal:t,crossOrigin:n=null,fallbackToEmptyImage:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(i,o){if(t&&t.aborted)return o(new W("loadImage"));const a=Ge();let s;t&&(s=function(e){a.src="",o(e)},t.addEventListener("abort",s,{once:!0}));const l=function(){a.onload=a.onerror=null,s&&(null===t||void 0===t||t.removeEventListener("abort",s))},c=function(){l(),i(a)};e?(a.onload=c,a.onerror=function(){const e=a.src;if(l(),r)return V("warn","Image failed to load, continuing with an empty image source",e),a.src="",void i(a);o(new H("Error loading ".concat(e)))},n&&(a.crossOrigin=n),a.src=e):c()}))},dt=function(e){let{signal:t,reviver:n=ee}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(((r,i)=>{const o=[];t&&t.addEventListener("abort",i,{once:!0}),Promise.all(e.map((e=>Pe.getClass(e.type).fromObject(e,{signal:t}).then((t=>(n(e,t),o.push(t),t)))))).then(r).catch((e=>{o.forEach((e=>{e.dispose&&e.dispose()})),i(e)})).finally((()=>{t&&t.removeEventListener("abort",i)}))}))},pt=function(e){let{signal:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(((n,r)=>{const i=[];t&&t.addEventListener("abort",r,{once:!0});const o=Object.values(e).map((e=>e&&e.type&&Pe.has(e.type)?dt([e],{signal:t}).then((e=>{let[t]=e;return i.push(t),t})):e)),a=Object.keys(e);Promise.all(o).then((e=>e.reduce(((e,t,n)=>(e[a[n]]=t,e)),{}))).then(n).catch((e=>
2{i.forEach((e=>{e.dispose&&e.dispose()})),r(e)})).finally((()=>{t&&t.removeEventListener("abort",r)}))}))},gt=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.reduce(((t,n)=>(n in e&&(t[n]=e[n]),t)),{})},vt=(e,t)=>Object.keys(e).reduce(((n,r)=>(t(e[r],r,e)&&(n[r]=e[r]),n)),{}),mt=(e,t)=>parseFloat(Number(e).toFixed(t)),yt=e=>"matrix("+e.map((e=>mt(e,z.NUM_FRACTION_DIGITS))).join(" ")+")",bt=e=>!!e&&void 0!==e.toLive,xt=e=>!!e&&"function"===typeof e.toObject,_t=e=>!!e&&void 0!==e.offsetX&&"source"in e,wt=e=>!!e&&"function"===typeof e._renderText,St=e=>!!e&&"multiSelectionStacking"in e;function Ct(e){const t=e&&kt(e);let n=0,r=0;if(!e||!t)return{left:n,top:r};let i=e;const o=t.documentElement,a=t.body||{scrollLeft:0,scrollTop:0};for(;i&&(i.parentNode||i.host)&&(i=i.parentNode||i.host,i===t?(n=a.scrollLeft||o.scrollLeft||0,r=a.scrollTop||o.scrollTop||0):(n+=i.scrollLeft||0,r+=i.scrollTop||0),1!==i.nodeType||"fixed"!==i.style.position););return{left:n,top:r}}const kt=e=>e.ownerDocument||null,Ot=e=>{var t;return(null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView)||null},Et=function(e,t,n){let{width:r,height:i}=n,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;e.width=r,e.height=i,o>1&&(e.setAttribute("width",(r*o).toString()),e.setAttribute("height",(i*o).toString()),t.scale(o,o))},Tt=(e,t)=>{let{width:n,height:r}=t;n&&(e.style.width="number"===typeof n?"".concat(n,"px"):n),r&&(e.style.height="number"===typeof r?"".concat(r,"px"):r)};function At(e){return"undefined"!==typeof e.onselectstart&&(e.onselectstart=()=>!1),e.style.userSelect=he,e}class Pt{constructor(e){B(this,"_originalCanvasStyle",void 0),B(this,"lower",void 0);const t=this.createLowerCanvas(e);this.lower={el:t,ctx:t.getContext("2d")}}createLowerCanvas(e){const t=(n=e)&&void 0!==n.getContext?e:e&&$().getElementById(e)||We();var n;if(t.hasAttribute("data-fabric"))throw new H("Trying to initialize a canvas that has already been initialized. Did you forget to dispose the canvas?");return this._originalCanvasStyle=t.style.cssText,t.setAttribute("data-fabric","main"),t.classList.add("lower-canvas"),t}cleanupDOM(e){let{width:t,height:n}=e;const{el:r}=this.lower;r.classList.remove("lower-canvas"),r.removeAttribute("data-fabric"),r.setAttribute("width","".concat(t)),r.setAttribute("height","".concat(n)),r.style.cssText=this._originalCanvasStyle||"",this._originalCanvasStyle=void 0}setDimensions(e,t){const{el:n,ctx:r}=this.lower;Et(n,r,e,t)}setCSSDimensions(e){Tt(this.lower.el,e)}calcOffset(){return function(e){var t;const n=e&&kt(e),r={left:0,top:0};if(!n)return r;const i=(null===(t=Ot(e))||void 0===t?void 0:t.getComputedStyle(e,null))||{};r.left+=parseInt(i.borderLeftWidth,10)||0,r.top+=parseInt(i.borderTopWidth,10)||0,r.left+=parseInt(i.paddingLeft,10)||0,r.top+=parseInt(i.paddingTop,10)||0;let o={left:0,top:0};const a=n.documentElement;"undefined"!==typeof e.getBoundingClientRect&&(o=e.getBoundingClientRect());const s=Ct(e);return{left:o.left+s.left-(a.clientLeft||0)+r.left,top:o.top+s.top-(a.clientTop||0)+r.top}}(this.lower.el)}dispose(){Y().dispose(this.lower.el),delete this.lower}}const jt={backgroundVpt:!0,backgroundColor:"",overlayVpt:!0,overlayColor:"",includeDefaultValues:!0,svgViewportTransformation:!0,renderOnAddRemove:!0,skipOffscreen:!0,enableRetinaScaling:!0,imageSmoothingEnabled:!0,controlsAboveOverlay:!1,allowTouchScrolling:!1,viewportTransform:[...ie]};class Lt extends(Fe(Be)){get lowerCanvasEl(){var e;return null===(e=this.elements.lower)||void 0===e?void 0:e.el}get contextContainer(){var e;return null===(e=this.elements.lower)||void 0===e?void 0:e.ctx}static getDefaults(){return Lt.ownDefaults}constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),Object.assign(this,this.constructor.getDefaults()),this.set(t),this.initElements(e),this._setDimensionsImpl({width:this.width||this.elements.lower.el.width||0,height:this.height||this.elements.lower.el.height||0}),this.skipControlsDrawing=!1,this.viewportTransform=[...this.viewportTransform],this.calcViewportBoundaries()}initElements(e){this.elements=new Pt(e)}add(){const e=super.add(...arguments);return arguments.length>0&&this.renderOnAddRemove&&this.requestRenderAll(),e}insertAt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i=super.insertAt(e,...n);return n.length>0&&this.renderOnAddRemove&&this.requestRenderAll(),i}remove(){const e=super.remove(...arguments);return e.length>0&&this.renderOnAddRemove&&this.requestRenderAll(),e}_onObjectAdded(e){e.canvas&&e.canvas!==this&&(V("warn","Canvas is trying to add an object that belongs to a different canvas.\nResulting to default behavior: removing object from previous canvas and adding to new canvas"),e.canvas.remove(e)),e._set("canvas",this),e.setCoords(),this.fire("object:added",{target:e}),e.fire("added",{target:this})}_onObjectRemoved(e){e._set("canvas",void 0),this.fire("object:removed",{target:e}),e.fire("removed",{target:this})}_onStackOrderChanged(){this.renderOnAddRemove&&this.requestRenderAll()}getRetinaScaling(){return this.enableRetinaScaling?Z():1}calcOffset(){return this._offset=this.elements.calcOffset()}getWidth(){return this.width}
vendor: 4,719 bytes, line 2
2getHeight(){return this.height}setWidth(e,t){return this.setDimensions({width:e},t)}setHeight(e,t){return this.setDimensions({height:e},t)}_setDimensionsImpl(e){let{cssOnly:t=!1,backstoreOnly:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t){const t=Object(g.a)({width:this.width,height:this.height},e);this.elements.setDimensions(t,this.getRetinaScaling()),this.hasLostContext=!0,this.width=t.width,this.height=t.height}n||this.elements.setCSSDimensions(e),this.calcOffset()}setDimensions(e,t){this._setDimensionsImpl(e,t),t&&t.cssOnly||this.requestRenderAll()}getZoom(){return this.viewportTransform[0]}setViewportTransform(e){this.viewportTransform=e,this.calcViewportBoundaries(),this.renderOnAddRemove&&this.requestRenderAll()}zoomToPoint(e,t){const n=e,r=[...this.viewportTransform],i=Qe(e,Je(r));r[0]=t,r[3]=t;const o=Qe(i,r);r[4]+=n.x-o.x,r[5]+=n.y-o.y,this.setViewportTransform(r)}setZoom(e){this.zoomToPoint(new De(0,0),e)}absolutePan(e){const t=[...this.viewportTransform];return t[4]=-e.x,t[5]=-e.y,this.setViewportTransform(t)}relativePan(e){return this.absolutePan(new De(-e.x-this.viewportTransform[4],-e.y-this.viewportTransform[5]))}getElement(){return this.elements.lower.el}clearContext(e){e.clearRect(0,0,this.width,this.height)}getContext(){return this.elements.lower.ctx}clear(){this.remove(...this.getObjects()),this.backgroundImage=void 0,this.overlayImage=void 0,this.backgroundColor="",this.overlayColor="",this.clearContext(this.getContext()),this.fire("canvas:cleared"),this.renderOnAddRemove&&this.requestRenderAll()}renderAll(){this.cancelRequestedRender(),this.destroyed||this.renderCanvas(this.getContext(),this._objects)}renderAndReset(){this.nextRenderHandle=0,this.renderAll()}requestRenderAll(){this.nextRenderHandle||this.disposed||this.destroyed||(this.nextRenderHandle=Ue((()=>this.renderAndReset())))}calcViewportBoundaries(){const e=this.width,t=this.height,n=Je(this.viewportTransform),r=Qe({x:0,y:0},n),i=Qe({x:e,y:t},n),o=r.min(i),a=r.max(i);return this.vptCoords={tl:o,tr:new De(a.x,o.y),bl:new De(o.x,a.y),br:a}}cancelRequestedRender(){this.nextRenderHandle&&(ze(this.nextRenderHandle),this.nextRenderHandle=0)}drawControls(e){}renderCanvas(e,t){if(this.destroyed)return;const n=this.viewportTransform,r=this.clipPath;this.calcViewportBoundaries(),this.clearContext(e),e.imageSmoothingEnabled=this.imageSmoothingEnabled,e.patternQuality="best",this.fire("before:render",{ctx:e}),this._renderBackground(e),e.save(),e.transform(n[0],n[1],n[2],n[3],n[4],n[5]),this._renderObjects(e,t),e.restore(),this.controlsAboveOverlay||this.skipControlsDrawing||this.drawControls(e),r&&(r._set("canvas",this),r.shouldCache(),r._transformDone=!0,r.renderCache({forClipping:!0}),this.drawClipPathOnCanvas(e,r)),this._renderOverlay(e),this.controlsAboveOverlay&&!this.skipControlsDrawing&&this.drawControls(e),this.fire("after:render",{ctx:e}),this.__cleanupTask&&(this.__cleanupTask(),this.__cleanupTask=void 0)}drawClipPathOnCanvas(e,t){const n=this.viewportTransform;e.save(),e.transform(...n),e.globalCompositeOperation="destination-in",t.transform(e),e.scale(1/t.zoomX,1/t.zoomY),e.drawImage(t._cacheCanvas,-t.cacheTranslationX,-t.cacheTranslationY),e.restore()}_renderObjects(e,t){for(let n=0,r=t.length;n<r;++n)t[n]&&t[n].render(e)}_renderBackgroundOrOverlay(e,t){const n=this["".concat(t,"Color")],r=this["".concat(t,"Image")],i=this.viewportTransform,o=this["".concat(t,"Vpt")];if(!n&&!r)return;const a=bt(n);if(n){if(e.save(),e.beginPath(),e.moveTo(0,0),e.lineTo(this.width,0),e.lineTo(this.width,this.height),e.lineTo(0,this.height),e.closePath(),e.fillStyle=a?n.toLive(e):n,o&&e.transform(...i),a){e.transform(1,0,0,1,n.offsetX||0,n.offsetY||0);const t=n.gradientTransform||n.patternTransform;t&&e.transform(...t)}e.fill(),e.restore()}if(r){e.save();const{skipOffscreen:t}=this;this.skipOffscreen=o,o&&e.transform(...i),r.render(e),this.skipOffscreen=t,e.restore()}}_renderBackground(e){this._renderBackgroundOrOverlay(e,"background")}_renderOverlay(e){this._renderBackgroundOrOverlay(e,"overlay")}getCenter(){return{top:this.height/2,left:this.width/2}}getCenterPoint(){return new De(this.width/2,this.height/2)}centerObjectH(e){return this._centerObject(e,new De(this.getCenterPoint().x,e.getCenterPoint().y))}centerObjectV(e){return this._centerObject(e,new De(e.getCenterPoint().x,this.getCenterPoint().y))}centerObject(e){return this._centerObject(e,this.getCenterPoint())}viewportCenterObject(e){return this._centerObject(e,this.getVpCenter())}viewportCenterObjectH(e){return this._centerObject(e,new De(this.getVpCenter().x,e.getCenterPoint().y))}viewportCenterObjectV(e){return this._centerObject(e,new De(e.getCenterPoint().x,this.getVpCenter().y))}
2getVpCenter(){return Qe(this.getCenterPoint(),Je(this.viewportTransform))}_centerObject(e,t){e.setXY(t,ae,ae),e.setCoords(),this.renderOnAddRemove&&this.requestRenderAll()}toDatalessJSON(e){return this.toDatalessObject(e)}toObject(e){return this._toObjectMethod("toObject",e)}toJSON(){return this.toObject()}toDatalessObject(e){return this._toObjectMethod("toDatalessObject",e)}_toObjectMethod(e,t){const n=this.clipPath,r=n&&!n.excludeFromExport?this._toObject(n,e,t):null;return Object(g.a)(Object(g.a)(Object(g.a)({version:J},gt(this,t)),{},{objects:this._objects.filter((e=>!e.excludeFromExport)).map((n=>this._toObject(n,e,t)))},this.__serializeBgOverlay(e,t)),r?{clipPath:r}:null)}_toObject(e,t,n){let r;this.includeDefaultValues||(r=e.includeDefaultValues,e.includeDefaultValues=!1);const i=e[t](n);return this.includeDefaultValues||(e.includeDefaultValues=!!r),i}__serializeBgOverlay(e,t){const n={},r=this.backgroundImage,i=this.overlayImage,o=this.backgroundColor,a=this.overlayColor;return bt(o)?o.excludeFromExport||(n.background=o.toObject(t)):o&&(n.background=o),bt(a)?a.excludeFromExport||(n.overlay=a.toObject(t)):a&&(n.overlay=a),r&&!r.excludeFromExport&&(n.backgroundImage=this._toObject(r,e,t)),i&&!i.excludeFromExport&&(n.overlayImage=this._toObject(i,e,t)),n}toSVG(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;e.reviver=t;const n=[];return this._setSVGPreamble(n,e),this._setSVGHeader(n,e),this.clipPath&&n.push('<g clip-path="url(#'.concat(this.clipPath.clipPathId,')" >\n')),this._setSVGBgOverlayColor(n,"background"),this._setSVGBgOverlayImage(n,"backgroundImage",t),this._setSVGObjects(n,t),this.clipPath&&n.push("</g>\n"),this._setSVGBgOverlayColor(n,"overlay"),this._setSVGBgOverlayImage(n,"overlayImage",t),n.push("</svg>"),n.join("")}_setSVGPreamble(e,t){t.suppressPreamble||e.push('<?xml version="1.0" encoding="',t.encoding||"UTF-8",'" standalone="no" ?>\n','<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" ','"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n')}_setSVGHeader(e,t){const n=t.width||"".concat(this.width),r=t.height||"".concat(this.height),i=z.NUM_FRACTION_DIGITS,o=t.viewBox;let a;if(o)a='viewBox="'.concat(o.x," ").concat(o.y," ").concat(o.width," ").concat(o.height,'" ');else if(this.svgViewportTransformation){const e=this.viewportTransform;a='viewBox="'.concat(mt(-e[4]/e[0],i)," ").concat(mt(-e[5]/e[3],i)," ").concat(mt(this.width/e[0],i)," ").concat(mt(this.height/e[3],i),'" ')}else a='viewBox="0 0 '.concat(this.width," ").concat(this.height,'" ');e.push("<svg ",'xmlns="http://www.w3.org/2000/svg" ','xmlns:xlink="http://www.w3.org/1999/xlink" ','version="1.1" ','width="',n,'" ','height="',r,'" ',a,'xml:space="preserve">\n',"<desc>Created with Fabric.js ",J,"</desc>\n","<defs>\n",this.createSVGFontFacesMarkup(),this.createSVGRefElementsMarkup(),this.createSVGClipPathMarkup(t),this._createPathForText(),"</defs>\n")}_createPathForText(){const e=[],t=[];return this._objects.forEach((function e(n){t.push(n),Ne(n)&&n._objects.forEach(e)})),t.forEach((t=>{if(t.excludeFromExport)return;if(!wt(t)||!t.path)return;const n="TEXTPATH_".concat(t.id),r=t.path._toSVG(),i=r.indexOf("COMMON_PARTS");r[i]=['id="'+n+'" ','transform="translate('+-t.path.pathOffset.x+","+-t.path.pathOffset.y+')" '].join(""),e.push(r.join(""))})),e.join("\n")}createSVGClipPathMarkup(e){const t=this.clipPath;return t?(t.clipPathId="CLIPPATH_".concat(He()),'<clipPath id="'.concat(t.clipPathId,'" >\n').concat(t.toClipPathSVG(e.reviver),"</clipPath>\n")):""}createSVGRefElementsMarkup(){return["background","overlay"].map((e=>{const t=this["".concat(e,"Color")];if(bt(t)){const n=this["".concat(e,"Vpt")],r=this.viewportTransform,i={isType:()=>!1,width:this.width/(n?r[0]:1),height:this.height/(n?r[3]:1)};return t.toSVG(i,{additionalTransform:n?yt(r):""})}})).join("")}createSVGFontFacesMarkup(){const e=[],t={},n=z.fontPaths;this._objects.forEach((function t(n){e.push(n),Ne(n)&&n._objects.forEach(t)})),e.forEach((e=>{if(!wt(e))return;const{styles:r,fontFamily:i}=e;!t[i]&&n[i]&&(t[i]=!0,r&&Object.values(r).forEach((e=>{Object.values(e).forEach((e=>{let{fontFamily:r=""}=e;!t[r]&&n[r]&&(t[r]=!0)}))})))}));const r=Object.keys(t).map((e=>"\t\t@font-face {\n\t\t\tfont-family: '".concat(e,"';\n\t\t\tsrc: url('").concat(n[e],"');\n\t\t}\n"))).join("");return r?'\t<style type="text/css"><![CDATA[\n'.concat(r,"]]></style>\n"):""}_setSVGObjects(e,t){this.forEachObject((n=>
2{n.excludeFromExport||this._setSVGObject(e,n,t)}))}_setSVGObject(e,t,n){e.push(t.toSVG(n))}_setSVGBgOverlayImage(e,t,n){const r=this[t];r&&!r.excludeFromExport&&r.toSVG&&e.push(r.toSVG(n))}_setSVGBgOverlayColor(e,t){const n=this["".concat(t,"Color")];if(n)if(bt(n)){const r=n.repeat||"",i=this.width,o=this.height,a=this["".concat(t,"Vpt")]?yt(Je(this.viewportTransform)):"";e.push('<rect transform="'.concat(a," translate(").concat(i/2,",").concat(o/2,')" x="').concat(n.offsetX-i/2,'" y="').concat(n.offsetY-o/2,'" width="').concat("repeat-y"!==r&&"no-repeat"!==r||!_t(n)?i:n.source.width,'" height="').concat("repeat-x"!==r&&"no-repeat"!==r||!_t(n)?o:n.source.height,'" fill="url(#SVGID_').concat(n.id,')"></rect>\n'))}else e.push('<rect x="0" y="0" width="100%" height="100%" ','fill="',n,'"',"></rect>\n")}loadFromJSON(e,t){let{signal:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return Promise.reject(new H("`json` is undefined"));const r="string"===typeof e?JSON.parse(e):e,{objects:i=[],backgroundImage:o,background:a,overlayImage:s,overlay:l,clipPath:c}=r,u=this.renderOnAddRemove;return this.renderOnAddRemove=!1,Promise.all([dt(i,{reviver:t,signal:n}),pt({backgroundImage:o,backgroundColor:a,overlayImage:s,overlayColor:l,clipPath:c},{signal:n})]).then((e=>{let[t,n]=e;return this.clear(),this.add(...t),this.set(r),this.set(n),this.renderOnAddRemove=u,this}))}clone(e){const t=this.toObject(e);return this.cloneWithoutData().loadFromJSON(t)}cloneWithoutData(){const e=qe(this);return new this.constructor(e)}toDataURL(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{format:t="png",quality:n=1,multiplier:r=1,enableRetinaScaling:i=!1}=e,o=r*(i?this.getRetinaScaling():1);return Xe(this.toCanvasElement(o,e),t,n)}toBlob(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{format:t="png",quality:n=1,multiplier:r=1,enableRetinaScaling:i=!1}=e,o=r*(i?this.getRetinaScaling():1);return Ye(this.toCanvasElement(o,e),t,n)}toCanvasElement(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,{width:t,height:n,left:r,top:i,filter:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a=(t||this.width)*e,s=(n||this.height)*e,l=this.getZoom(),c=this.width,u=this.height,h=this.skipControlsDrawing,f=l*e,d=this.viewportTransform,p=[f,0,0,f,(d[4]-(r||0))*e,(d[5]-(i||0))*e],g=this.enableRetinaScaling,v=qe({width:a,height:s}),m=o?this._objects.filter((e=>o(e))):this._objects;return this.enableRetinaScaling=!1,this.viewportTransform=p,this.width=a,this.height=s,this.skipControlsDrawing=!0,this.calcViewportBoundaries(),this.renderCanvas(v.getContext("2d"),m),this.viewportTransform=d,this.width=c,this.height=u,this.calcViewportBoundaries(),this.enableRetinaScaling=g,this.skipControlsDrawing=h,v}dispose(){return!this.disposed&&this.elements.cleanupDOM({width:this.width,height:this.height}),je.cancelByCanvas(this),this.disposed=!0,new Promise(((e,t)=>{const n=()=>{this.destroy(),e(!0)};n.kill=t,this.__cleanupTask&&this.__cleanupTask.kill("aborted"),this.destroyed?e(!1):this.nextRenderHandle?this.__cleanupTask=n:n()}))}destroy(){this.destroyed=!0,this.cancelRequestedRender(),this.forEachObject((e=>e.dispose())),this._objects=[],this.backgroundImage&&this.backgroundImage.dispose(),this.backgroundImage=void 0,this.overlayImage&&this.overlayImage.dispose(),this.overlayImage=void 0,this.elements.dispose()}toString(){return"#<Canvas (".concat(this.complexity(),"): { objects: ").concat(this._objects.length," }>")}}B(Lt,"ownDefaults",jt);const Mt=["touchstart","touchmove","touchend"];const Rt=e=>{const t=Ct(e.target),n=function(e){const t=e.changedTouches;return t&&t[0]?t[0]:e}(e);return new De(n.clientX+t.left,n.clientY+t.top)},Dt=e=>Mt.includes(e.type)||"touch"===e.pointerType,It=e=>{e.preventDefault(),e.stopPropagation()},Nt=e=>{let t=0,n=0,r=0,i=0;for(let o=0,a=e.length;o<a;o++){const{x:a,y:s}=e[o];(a>r||!o)&&(r=a),(a<t||!o)&&(t=a),(s>i||!o)&&(i=s),(s<n||!o)&&(n=s)}return{left:t,top:n,width:r-t,height:i-n}},Ft=(e,t)=>Bt(e,et(t,e.calcOwnMatrix())),Bt=(e,t)=>{const n=rt(t),{translateX:r,translateY:i,scaleX:o,scaleY:a}=n,s=Object(p.a)(n,v),l=new De(r,i);e.flipX=!1,e.flipY=!1,Object.assign(e,s),e.set({scaleX:o,scaleY:a}),e.setPositionByOrigin(l,ae,ae)},Ut=e=>{e.scaleX=1,e.scaleY=1,e.skewX=0,e.skewY=0,e.flipX=!1,e.flipY=!1,e.rotate(0)},zt=e=>({scaleX:e.scaleX,scaleY:e.scaleY,skewX:e.skewX,skewY:e.skewY,angle:e.angle,left:e.left,flipX:e.flipX,flipY:e.flipY,top:e.top}
2),Vt=(e,t,n)=>{const r=e/2,i=t/2,o=[new De(-r,-i),new De(r,-i),new De(-r,i),new De(r,i)].map((e=>e.transform(n))),a=Nt(o);return new De(a.width,a.height)},Ht=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ie,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ie;return et(Je(t),e)},Wt=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ie,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ie;return e.transform(Ht(t,n))},Gt=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ie,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ie;return e.transform(Ht(t,n),!0)},qt=(e,t,n)=>{const r=Ht(t,n);return Bt(e,et(r,e.calcOwnMatrix())),r},Xt=(e,t)=>{var n;const{transform:{target:r}}=t;null===(n=r.canvas)||void 0===n||n.fire("object:".concat(e),Object(g.a)(Object(g.a)({},t),{},{target:r})),r.fire(e,t)},Yt={left:-.5,top:-.5,center:0,bottom:.5,right:.5},$t=e=>"string"===typeof e?Yt[e]:e-.5,Kt="not-allowed";function Zt(e){return $t(e.originX)===$t(ae)&&$t(e.originY)===$t(ae)}function Qt(e){return.5-$t(e)}const Jt=(e,t)=>e[t],en=(e,t,n,r)=>({e:e,transform:t,pointer:new De(n,r)});function tn(e,t){const n=e.getTotalAngle()+Ke(Math.atan2(t.y,t.x))+360;return Math.round(n%360/45)}function nn(e,t,n,r,i){var o;let{target:a,corner:s}=e;const l=a.controls[s],c=(null===(o=a.canvas)||void 0===o?void 0:o.getZoom())||1,u=a.padding/c,h=function(e,t,n,r){const i=e.getRelativeCenterPoint(),o="undefined"!==typeof n&&"undefined"!==typeof r?e.translateToGivenOrigin(i,ae,ae,n,r):new De(e.left,e.top);return(e.angle?t.rotate(-$e(e.angle),i):t).subtract(o)}(a,new De(r,i),t,n);return h.x>=u&&(h.x-=u),h.x<=-u&&(h.x+=u),h.y>=u&&(h.y-=u),h.y<=u&&(h.y+=u),h.x-=l.offsetX,h.y-=l.offsetY,h}const rn=(e,t,n,r)=>{const{target:i,offsetX:o,offsetY:a}=t,s=n-o,l=r-a,c=!Jt(i,"lockMovementX")&&i.left!==s,u=!Jt(i,"lockMovementY")&&i.top!==l;return c&&i.set(se,s),u&&i.set(le,l),(c||u)&&Xt(de,en(e,t,n,r)),c||u},on=(e,t)=>isNaN(e)&&"number"===typeof t?t:e;class an{get type(){return"pattern"}set type(e){V("warn","Setting type has no effect",e)}constructor(e){B(this,"repeat","repeat"),B(this,"offsetX",0),B(this,"offsetY",0),B(this,"crossOrigin",""),this.id=He(),Object.assign(this,e)}isImageSource(){return!!this.source&&"string"===typeof this.source.src}isCanvasSource(){return!!this.source&&!!this.source.toDataURL}sourceToString(){return this.isImageSource()?this.source.src:this.isCanvasSource()?this.source.toDataURL():""}toLive(e){return this.source&&(!this.isImageSource()||this.source.complete&&0!==this.source.naturalWidth&&0!==this.source.naturalHeight)?e.createPattern(this.source,this.repeat):null}toObject(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const{repeat:t,crossOrigin:n}=this;return Object(g.a)(Object(g.a)({},gt(this,e)),{},{type:"pattern",source:this.sourceToString(),repeat:t,crossOrigin:n,offsetX:mt(this.offsetX,z.NUM_FRACTION_DIGITS),offsetY:mt(this.offsetY,z.NUM_FRACTION_DIGITS),patternTransform:this.patternTransform?[...this.patternTransform]:null})}toSVG(e){let{width:t,height:n}=e;const{source:r,repeat:i,id:o}=this,a=on(this.offsetX/t,0),s=on(this.offsetY/n,0),l="repeat-y"===i||"no-repeat"===i?1+Math.abs(a||0):on(r.width/t,0),c="repeat-x"===i||"no-repeat"===i?1+Math.abs(s||0):on(r.height/n,0);return['<pattern id="SVGID_'.concat(o,'" x="').concat(a,'" y="').concat(s,'" width="').concat(l,'" height="').concat(c,'">'),'<image x="0" y="0" width="'.concat(r.width,'" height="').concat(r.height,'" xlink:href="').concat(this.sourceToString(),'"></image>'),"</pattern>",""].join("\n")}static async fromObject(e,t){let{type:n,source:r,patternTransform:i}=e,o=Object(p.a)(e,m);const{crossOrigin:a}=o,s=await ft(r,Object(g.a)(Object(g.a)({},t),{},{crossOrigin:a,fallbackToEmptyImage:!0}));return new this(Object(g.a)(Object(g.a)({},o),{},{patternTransform:i&&i.slice(0),source:s}))}}B(an,"type","Pattern"),Pe.setClass(an),Pe.setClass(an,"pattern");const sn={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#0FF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000",blanchedalmond:"#FFEBCD",blue:"#00F",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#0FF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#F0F",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#789",lightslategrey:"#789",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#0F0",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#F0F",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA5
25D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#639",red:"#F00",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFF",whitesmoke:"#F5F5F5",yellow:"#FF0",yellowgreen:"#9ACD32"},ln=(e,t,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e),cn=(e,t,n,r)=>{e/=255,t/=255,n/=255;const i=Math.max(e,t,n),o=Math.min(e,t,n);let a,s;const l=(i+o)/2;if(i===o)a=s=0;else{const r=i-o;switch(s=l>.5?r/(2-i-o):r/(i+o),i){case e:a=(t-n)/r+(t<n?6:0);break;case t:a=(n-e)/r+2;break;case n:a=(e-t)/r+4}a/=6}return[Math.round(360*a),Math.round(100*s),Math.round(100*l),r]},un=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"1";return parseFloat(e)/(e.endsWith("%")?100:1)},hn=e=>Math.min(Math.round(e),255).toString(16).toUpperCase().padStart(2,"0"),fn=e=>{let[t,n,r,i=1]=e;const o=Math.round(.3*t+.59*n+.11*r);return[o,o,o,i]};class dn{constructor(e){if(B(this,"isUnrecognised",!1),e)if(e instanceof dn)this.setSource([...e._source]);else if(Array.isArray(e)){const[t,n,r,i=1]=e;this.setSource([t,n,r,i])}else this.setSource(this._tryParsingColor(e));else this.setSource([0,0,0,1])}_tryParsingColor(e){return(e=e.toLowerCase())in sn&&(e=sn[e]),"transparent"===e?[255,255,255,0]:dn.sourceFromHex(e)||dn.sourceFromRgb(e)||dn.sourceFromHsl(e)||(this.isUnrecognised=!0)&&[0,0,0,1]}getSource(){return this._source}setSource(e){this._source=e}toRgb(){const[e,t,n]=this.getSource();return"rgb(".concat(e,",").concat(t,",").concat(n,")")}toRgba(){return"rgba(".concat(this.getSource().join(","),")")}toHsl(){const[e,t,n]=cn(...this.getSource());return"hsl(".concat(e,",").concat(t,"%,").concat(n,"%)")}toHsla(){const[e,t,n,r]=cn(...this.getSource());return"hsla(".concat(e,",").concat(t,"%,").concat(n,"%,").concat(r,")")}toHex(){return this.toHexa().slice(0,6)}toHexa(){const[e,t,n,r]=this.getSource();return"".concat(hn(e)).concat(hn(t)).concat(hn(n)).concat(hn(Math.round(255*r)))}getAlpha(){return this.getSource()[3]}setAlpha(e){return this._source[3]=e,this}toGrayscale(){return this.setSource(fn(this.getSource())),this}toBlackWhite(e){const[t,,,n]=fn(this.getSource()),r=t<(e||127)?0:255;return this.setSource([r,r,r,n]),this}overlayWith(e){e instanceof dn||(e=new dn(e));const t=this.getSource(),n=e.getSource(),[r,i,o]=t.map(((e,t)=>Math.round(.5*e+.5*n[t])));return this.setSource([r,i,o,t[3]]),this}static fromRgb(e){return dn.fromRgba(e)}static fromRgba(e){return new dn(dn.sourceFromRgb(e))}static sourceFromRgb(e){const t=e.match(/^rgba?\(\s*(\d{0,3}(?:\.\d+)?%?)\s*[\s|,]\s*(\d{0,3}(?:\.\d+)?%?)\s*[\s|,]\s*(\d{0,3}(?:\.\d+)?%?)\s*(?:\s*[,/]\s*(\d{0,3}(?:\.\d+)?%?)\s*)?\)$/i);if(t){const[e,n,r]=t.slice(1,4).map((e=>{const t=parseFloat(e);return e.endsWith("%")?Math.round(2.55*t):t}));return[e,n,r,un(t[4])]}}static fromHsl(e){return dn.fromHsla(e)}static fromHsla(e){return new dn(dn.sourceFromHsl(e))}static sourceFromHsl(e){const t=e.match(/^hsla?\(\s*([+-]?\d{0,3}(?:\.\d+)?(?:deg|turn|rad)?)\s*[\s|,]\s*(\d{0,3}(?:\.\d+)?%?)\s*[\s|,]\s*(\d{0,3}(?:\.\d+)?%?)\s*(?:\s*[,/]\s*(\d*(?:\.\d+)?%?)\s*)?\)$/i);if(!t)return;const n=(dn.parseAngletoDegrees(t[1])%360+360)%360/360,r=parseFloat(t[2])/100,i=parseFloat(t[3])/100;let o,a,s;if(0===r)o=a=s=i;else{const e=i<=.5?i*(r+1):i+r-i*r,t=2*i-e;o=ln(t,e,n+1/3),a=ln(t,e,n),s=ln(t,e,n-1/3)}return[Math.round(255*o),Math.round(255*a),Math.round(255*s),un(t[4])]}static fromHex(e){return new dn(dn.sourceFromHex(e))}static sourceFromHex(e){if(e.match(/^#?(([0-9a-f]){3,4}|([0-9a-f]{2}){3,4})$/i)){const t=e.slice(e.indexOf("#")+1);let n;n=t.length<=4?t.split("").map((e=>e+e)):t.match(/.{2}/g);const[r,i,o,a=255]=n.map((e=>parseInt(e,16)));return[r,i,o,a/255]}}static parseAngletoDegrees(e){const t=e.toLowerCase(),n=parseFloat(t);return t.includes("rad")?Ke(n):t.includes("turn")?360*n:n}}const pn=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16;const n=/\D{0,2}$/.exec(e),r=parseFloat(e),i=z.DPI;switch(null===n||void 0===n?void 0:n[0]){case"mm":return r*i/25.4;case"cm":return r*i/2.54;case"in":return r*i;case"pt":return r*i/72;case"pc":return r*i/72*12;case"em":return r*t;default:return r}},gn=e=>{const[t,n]=e.trim().split(" "),[r,i]=(o=t)&&o!==he?[o.slice(1,4),o.slice(5,8)]:o===he?[o,o]:["Mid","Mid"];var o;return{meetOrSlice:n||"meet",alignX:r,alignY:i}},vn=function(e,t){let n,r,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];
2if(t)if(t.toLive)n=t instanceof an?"none":"url(#SVGID_".concat(t.id,")");else{const e=new dn(t),i=e.getAlpha();n=e.toRgb(),1!==i&&(r=i.toString())}else n="none";return i?"".concat(e,": ").concat(n,"; ").concat(r?"".concat(e,"-opacity: ").concat(r,"; "):""):"".concat(e,'="').concat(n,'" ').concat(r?"".concat(e,'-opacity="').concat(r,'" '):"")};class mn{getSvgStyles(e){const t=this.fillRule?this.fillRule:"nonzero",n=this.strokeWidth?this.strokeWidth:"0",r=this.strokeDashArray?this.strokeDashArray.join(" "):he,i=this.strokeDashOffset?this.strokeDashOffset:"0",o=this.strokeLineCap?this.strokeLineCap:"butt",a=this.strokeLineJoin?this.strokeLineJoin:"miter",s=this.strokeMiterLimit?this.strokeMiterLimit:"4",l="undefined"!==typeof this.opacity?this.opacity:"1",c=this.visible?"":" visibility: hidden;",u=e?"":this.getSvgFilter(),h=e?vn(Ee,this.fill):"fill: white;";return[e?vn(Te,this.stroke):"stroke:white;","stroke-width: ",n,"; ","stroke-dasharray: ",r,"; ","stroke-linecap: ",o,"; ","stroke-dashoffset: ",i,"; ","stroke-linejoin: ",a,"; ","stroke-miterlimit: ",s,"; ",h,"fill-rule: ",t,"; ","opacity: ",l,";",u,c].join("")}getSvgFilter(){return this.shadow?"filter: url(#SVGID_".concat(this.shadow.id,");"):""}getSvgCommons(){return[this.id?'id="'.concat(this.id,'" '):"",this.clipPath?'clip-path="url(#'.concat(this.clipPath.clipPathId,')" '):""].join("")}getSvgTransform(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e?this.calcTransformMatrix():this.calcOwnMatrix(),r='transform="'.concat(yt(n));return"".concat(r).concat(t,'" ')}_toSVG(e){return[""]}toSVG(e){return this._createBaseSVGMarkup(this._toSVG(e),{reviver:e})}toClipPathSVG(e){return"\t"+this._createBaseClipPathSVGMarkup(this._toSVG(e),{reviver:e})}getPatternSvgCommons(){return[this.id?'id="'+this.id+'_clip" ':"",this.clipPathPattern?'clip-path="url(#'+this.clipPathPattern.clipPathId+')" ':""].join("")}getSvgCommonsClipPath(){return this.clipPathPattern?[this.id?'id="'+this.id+'" ':""].join(""):this.getSvgCommons()}getSvgTransformClipPath(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.clipPathPattern?t?'transform="'+t+'" ':"":this.getSvgTransform(e,t)}_createBaseClipPathSVGMarkup(e){let{reviver:t,additionalTransform:n=""}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=[this.getSvgTransformClipPath(!0,n),this.getSvgCommonsClipPath()].join(""),i=e.indexOf("COMMON_PARTS");return e[i]=r,t?t(e.join("")):e.join("")}_createBaseSVGMarkup(e){let{noStyle:t,reviver:n,withShadow:r,additionalTransform:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};let o=this.clipPath;const a=t?"":'style="'.concat(this.getSvgStyles(!0),'" '),s=r?'style="'.concat(this.getSvgFilter(),'" '):"",l=this.strokeUniform?'vector-effect="non-scaling-stroke" ':"",c=o&&o.absolutePositioned,u=this.stroke,h=this.fill,f=this.shadow,d=[],p=e.indexOf("COMMON_PARTS");let g="",v="";if(this.clipPathPattern=null,h instanceof an&&(this.clipPathPattern=o=this),o&&(o.clipPathId="CLIPPATH_".concat(He()),v='<clipPath id="'.concat(o.clipPathId,'" >\n').concat(o.toClipPathSVG(n),"</clipPath>\n")),c&&d.push("<g ",s,this.getSvgCommons()," >\n"),d.push("<g ",this.getSvgTransform(!1),c?"":s+this.getSvgCommons()," >\n"),g=[a,l,t?"":this.addPaintOrder()," ",i?'transform="'.concat(i,'" '):""].join(""),f&&d.push(f.toSVG(this)),f&&!r){const n=['style="'+this.getSvgStyles(!1)+'" ',l,t?"":this.addPaintOrder()," ",i?'transform="'+i+'" ':""].join(""),r=JSON.parse(JSON.stringify(e));r[p]=n,d.push(r.join(""))}return e[p]=g,bt(h)&&(this.clipPathPattern&&d.push("<g ",s,this.getPatternSvgCommons()," >\n"),d.push(h.toSVG(this)),this.clipPathPattern&&d.push("</g>\n")),bt(u)&&d.push(u.toSVG(this)),o&&d.push(v),this.clipPathPattern||d.push(e.join("")),d.push("</g>\n"),c&&d.push("</g>\n"),n?n(d.join("")):d.join("")}addPaintOrder(){return this.paintFirst!==Ee?' paint-order="'.concat(this.paintFirst,'" '):""}}function yn(e){return new RegExp("^("+e.join("|")+")\\b","i")}const bn="textDecorationThickness",xn=["fontSize","fontWeight","fontFamily","fontStyle"],_n=["underline","overline","linethrough"],wn=[...xn,"lineHeight","text","charSpacing","textAlign","styles","path","pathStartOffset","pathSide","pathAlign"],Sn=[...wn,..._n,"textBackgroun
2dColor","direction",bn],Cn=[...xn,..._n,Te,"strokeWidth",Ee,"deltaY","textBackgroundColor",bn],kn={_reNewline:fe,_reSpacesAndTabs:/[ \t\r]/g,_reSpaceAndTab:/[ \t\r]/,_reWords:/\S+/g,fontSize:40,fontWeight:"normal",fontFamily:"Times New Roman",underline:!1,overline:!1,linethrough:!1,textAlign:se,fontStyle:"normal",lineHeight:1.16,textBackgroundColor:"",stroke:null,shadow:null,path:void 0,pathStartOffset:0,pathSide:se,pathAlign:"baseline",charSpacing:0,deltaY:0,direction:"ltr",CACHE_FONT_SIZE:400,MIN_TEXT_WIDTH:2,superscript:{size:.6,baseline:-.35},subscript:{size:.6,baseline:.11},_fontSizeFraction:.222,offsets:{underline:.1,linethrough:-.28167,overline:-.81333},_fontSizeMult:1.13,[bn]:66.667},On="justify",En="justify-left",Tn="justify-right",An="justify-center",Pn=String.raw(r||(r=Object(d.a)(["[-+]?(?:d*.d+|d+.?)(?:[eE][-+]?d+)?"],["[-+]?(?:\\d*\\.\\d+|\\d+\\.?)(?:[eE][-+]?\\d+)?"]))),jn=String.raw(i||(i=Object(d.a)(["(?:s*,?s+|s*,s*)"],["(?:\\s*,?\\s+|\\s*,\\s*)"]))),Ln="http://www.w3.org/2000/svg",Mn=new RegExp("(normal|italic)?\\s*(normal|small-caps)?\\s*(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)?\\s*("+Pn+"(?:px|cm|mm|em|pt|pc|in)*)(?:\\/(normal|"+Pn+"))?\\s+(.*)"),Rn={cx:se,x:se,r:"radius",cy:le,y:le,display:"visible",visibility:"visible",transform:"transformMatrix","fill-opacity":"fillOpacity","fill-rule":"fillRule","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","letter-spacing":"charSpacing","paint-order":"paintFirst","stroke-dasharray":"strokeDashArray","stroke-dashoffset":"strokeDashOffset","stroke-linecap":"strokeLineCap","stroke-linejoin":"strokeLineJoin","stroke-miterlimit":"strokeMiterLimit","stroke-opacity":"strokeOpacity","stroke-width":"strokeWidth","text-decoration":"textDecoration","text-anchor":"textAnchor",opacity:"opacity","clip-path":"clipPath","clip-rule":"clipRule","vector-effect":"strokeUniform","image-rendering":"imageSmoothing","text-decoration-thickness":bn},Dn="font-size",In="clip-path",Nn=yn(["path","circle","polygon","polyline","ellipse","rect","line","image","text"]),Fn=yn(["symbol","image","marker","pattern","view","svg"]),Bn=yn(["symbol","g","a","svg","clipPath","defs"]),Un=new RegExp(String.raw(o||(o=Object(d.a)(["^s*(",")","(",")","(",")","(",")s*$"],["^\\s*(",")","(",")","(",")","(",")\\s*$"])),Pn,jn,Pn,jn,Pn,jn,Pn)),zn=new De(1,0),Vn=new De,Hn=(e,t)=>e.rotate(t),Wn=(e,t)=>new De(t).subtract(e),Gn=e=>e.distanceFrom(Vn),qn=(e,t)=>Math.atan2(Kn(e,t),Zn(e,t)),Xn=e=>qn(zn,e),Yn=e=>e.eq(Vn)?e:e.scalarDivide(Gn(e)),$n=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Yn(new De(-e.y,e.x).scalarMultiply(t?1:-1))},Kn=(e,t)=>e.x*t.y-e.y*t.x,Zn=(e,t)=>e.x*t.x+e.y*t.y,Qn=(e,t,n)=>{if(e.eq(t)||e.eq(n))return!0;const r=Kn(t,n),i=Kn(t,e),o=Kn(n,e);return r>=0?i>=0&&o<=0:!(i<=0&&o>=0)},Jn="(-?\\d+(?:\\.\\d*)?(?:px)?(?:\\s?|$))?",er=new RegExp("(?:\\s|^)"+Jn+Jn+"("+Pn+"?(?:px)?)?(?:\\s?|$)(?:$|\\s)");class tr{constructor(e){const t="string"===typeof e?tr.parseShadow(e):e;Object.assign(this,tr.ownDefaults,t),this.id=He()}static parseShadow(e){const t=e.trim(),[,n=0,r=0,i=0]=(er.exec(t)||[]).map((e=>parseFloat(e)||0));return{color:(t.replace(er,"")||"rgb(0,0,0)").trim(),offsetX:n,offsetY:r,blur:i}}toString(){return[this.offsetX,this.offsetY,this.blur,this.color].join("px ")}toSVG(e){const t=Hn(new De(this.offsetX,this.offsetY),$e(-e.angle)),n=new dn(this.color);let r=40,i=40;return e.width&&e.height&&(r=100*mt((Math.abs(t.x)+this.blur)/e.width,z.NUM_FRACTION_DIGITS)+20,i=100*mt((Math.abs(t.y)+this.blur)/e.height,z.NUM_FRACTION_DIGITS)+20),e.flipX&&(t.x*=-1),e.flipY&&(t.y*=-1),'<filter id="SVGID_'.concat(this.id,'" y="-').concat(i,'%" height="').concat(100+2*i,'%" x="-').concat(r,'%" width="').concat(100+2*r,'%" >\n\t<feGaussianBlur in="SourceAlpha" stdDeviation="').concat(mt(this.blur?this.blur/2:0,z.NUM_FRACTION_DIGITS),'"></feGaussianBlur>\n\t<feOffset dx="').concat(mt(t.x,z.NUM_FRACTION_DIGITS),'" dy="').concat(mt(t.y,z.NUM_FRACTION_DIGITS),'" result="oBlur" ></feOffset>
2\n\t<feFlood flood-color="').concat(n.toRgb(),'" flood-opacity="').concat(n.getAlpha(),'"/>\n\t<feComposite in2="oBlur" operator="in" />\n\t<feMerge>\n\t\t<feMergeNode></feMergeNode>\n\t\t<feMergeNode in="SourceGraphic"></feMergeNode>\n\t</feMerge>\n</filter>\n')}toObject(){const e={color:this.color,blur:this.blur,offsetX:this.offsetX,offsetY:this.offsetY,affectStroke:this.affectStroke,nonScaling:this.nonScaling,type:this.constructor.type},t=tr.ownDefaults;return this.includeDefaultValues?e:vt(e,((e,n)=>e!==t[n]))}static async fromObject(e){return new this(e)}}B(tr,"ownDefaults",{color:"rgb(0,0,0)",blur:0,offsetX:0,offsetY:0,affectStroke:!1,includeDefaultValues:!0,nonScaling:!1}),B(tr,"type","shadow"),Pe.setClass(tr,"shadow");const nr=(e,t,n)=>Math.max(e,Math.min(t,n)),rr=[le,se,Se,Ce,"flipX","flipY","originX","originY","angle","opacity","globalCompositeOperation","shadow","visible",ke,Oe],ir=[Ee,Te,"strokeWidth","strokeDashArray","width","height","paintFirst","strokeUniform","strokeLineCap","strokeDashOffset","strokeLineJoin","strokeMiterLimit","backgroundColor","clipPath"],or={top:0,left:0,width:0,height:0,angle:0,flipX:!1,flipY:!1,scaleX:1,scaleY:1,minScaleLimit:0,skewX:0,skewY:0,originX:se,originY:le,strokeWidth:1,strokeUniform:!1,padding:0,opacity:1,paintFirst:Ee,fill:"rgb(0,0,0)",fillRule:"nonzero",stroke:null,strokeDashArray:null,strokeDashOffset:0,strokeLineCap:"butt",strokeLineJoin:"miter",strokeMiterLimit:4,globalCompositeOperation:"source-over",backgroundColor:"",shadow:null,visible:!0,includeDefaultValues:!0,excludeFromExport:!1,objectCaching:!0,clipPath:void 0,inverted:!1,absolutePositioned:!1,centeredRotation:!0,centeredScaling:!1,dirty:!0},ar=(e,t,n,r)=>(e<Math.abs(t)?(e=t,r=n/4):r=0===t&&0===e?n/ne*Math.asin(1):n/ne*Math.asin(t/e),{a:e,c:t,p:n,s:r}),sr=(e,t,n,r,i)=>e*Math.pow(2,10*(r-=1))*Math.sin((r*i-t)*ne/n),lr=(e,t,n,r)=>-n*Math.cos(e/r*te)+n+t,cr=(e,t,n,r)=>(e/=r)<1/2.75?n*(7.5625*e*e)+t:e<2/2.75?n*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?n*(7.5625*(e-=2.25/2.75)*e+.9375)+t:n*(7.5625*(e-=2.625/2.75)*e+.984375)+t,ur=(e,t,n,r)=>n-cr(r-e,0,n,r)+t;var hr=Object.freeze({__proto__:null,defaultEasing:lr,easeInBack:function(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1.70158;return n*(e/=r)*e*((i+1)*e-i)+t},easeInBounce:ur,easeInCirc:(e,t,n,r)=>-n*(Math.sqrt(1-(e/=r)*e)-1)+t,easeInCubic:(e,t,n,r)=>n*(e/r)**3+t,easeInElastic:(e,t,n,r)=>{const i=n;let o=0;if(0===e)return t;if(1===(e/=r))return t+n;o||(o=.3*r);const{a:a,s:s,p:l}=ar(i,n,o,1.70158);return-sr(a,s,l,e,r)+t},easeInExpo:(e,t,n,r)=>0===e?t:n*2**(10*(e/r-1))+t,easeInOutBack:function(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1.70158;return(e/=r/2)<1?n/2*(e*e*((1+(i*=1.525))*e-i))+t:n/2*((e-=2)*e*((1+(i*=1.525))*e+i)+2)+t},easeInOutBounce:(e,t,n,r)=>e<r/2?.5*ur(2*e,0,n,r)+t:.5*cr(2*e-r,0,n,r)+.5*n+t,easeInOutCirc:(e,t,n,r)=>(e/=r/2)<1?-n/2*(Math.sqrt(1-e**2)-1)+t:n/2*(Math.sqrt(1-(e-=2)*e)+1)+t,easeInOutCubic:(e,t,n,r)=>(e/=r/2)<1?n/2*e**3+t:n/2*((e-2)**3+2)+t,easeInOutElastic:(e,t,n,r)=>{const i=n;let o=0;if(0===e)return t;if(2===(e/=r/2))return t+n;o||(o=r*(.3*1.5));const{a:a,s:s,p:l,c:c}=ar(i,n,o,1.70158);return e<1?-.5*sr(a,s,l,e,r)+t:a*Math.pow(2,-10*(e-=1))*Math.sin((e*r-s)*ne/l)*.5+c+t},easeInOutExpo:(e,t,n,r)=>0===e?t:e===r?t+n:(e/=r/2)<1?n/2*2**(10*(e-1))+t:n/2*-(2**(-10*--e)+2)+t,easeInOutQuad:(e,t,n,r)=>(e/=r/2)<1?n/2*e**2+t:-n/2*(--e*(e-2)-1)+t,easeInOutQuart:(e,t,n,r)=>(e/=r/2)<1?n/2*e**4+t:-n/2*((e-=2)*e**3-2)+t,easeInOutQuint:(e,t,n,r)=>(e/=r/2)<1?n/2*e**5+t:n/2*((e-2)**5+2)+t,easeInOutSine:(e,t,n,r)=>-n/2*(Math.cos(Math.PI*e/r)-1)+t,easeInQuad:(e,t,n,r)=>n*(e/=r)*e+t,easeInQuart:(e,t,n,r)=>n*(e/=r)*e**3+t,easeInQuint:(e,t,n,r)=>n*(e/r)**5+t,easeInSine:(e,t,n,r)=>-n*Math.cos(e/r*te)+n+t,easeOutBack:function(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1.70158;return n*((e=e/r-1)*e*((i+1)*e+i)+1)+t},easeOutBounce:cr,easeOutCirc:(e,t,n,r)=>n*Math.sqrt(1-(e=e/r-1)*e)+t,easeOutCubic:(e,t,n,r)=>n*((e/r-1)**3+1)+t,easeOutElastic:(e,t,n,r)=>{const i=n;let o=0;if(0===e)return t;if(1===(e/=r))return t+n;o||(o=.3*r);const{a:a,s:s,p:l,c:c}=ar(i,n,o,1.70158);return a*2**(-10*e)*Math.sin((e*r-s)*ne/l)+c+t},easeOutExpo:(e,t,n,r)=>e===r?t+n:n*-(2**(-10*e/r)+1)+t,easeOutQuad:(e,t,n,r)=>-n*(e/=r)*(e-2)+t,easeOutQuart:(e,t,n,r)=>-n*((e=e/r-1)*e**3-1)+t,easeOutQuint:(e,t,n,r)=>n*((e/r-1)**5+1)+t,easeOutSine:(e,t,n,r)=>n*Math.sin(e/r*te)+t});const fr=()=>!1;class dr{constructor(e){let{startValue:t,byValue:n,duration:r=500,delay:i=0,easing:o=lr,onStart:a=ee,onChange:s=ee,onComplete:l=ee,abort:c=fr,target:u}=e;B(this,"_state","pending"),B(this,"durationProgress",0),B(this,"valueProgress",0),this.tick=this.tick.bind(this),this.duration=r,this.delay=i,this.easing=o,this._onStart=a,this._onChange=s,this._onComplete=l,this._abort=c,this.target=u,this.startValue=t,this.byValue=n,this.value=this.startValue,this.endValue=Object.freeze(this.calculate(this.duration).value)}get state(){return this._state}isDone(){return"aborted"===this._state||"completed"===this._state}start(){const e=e=>
2{"pending"===this._state&&(this.startTime=e||+new Date,this._state="running",this._onStart(),this.tick(this.startTime))};this.register(),this.delay>0?setTimeout((()=>Ue(e)),this.delay):Ue(e)}tick(e){const t=(e||+new Date)-this.startTime,n=Math.min(t,this.duration);this.durationProgress=n/this.duration;const{value:r,valueProgress:i}=this.calculate(n);this.value=Object.freeze(r),this.valueProgress=i,"aborted"!==this._state&&(this._abort(this.value,this.valueProgress,this.durationProgress)?(this._state="aborted",this.unregister()):t>=this.duration?(this.durationProgress=this.valueProgress=1,this._onChange(this.endValue,this.valueProgress,this.durationProgress),this._state="completed",this._onComplete(this.endValue,this.valueProgress,this.durationProgress),this.unregister()):(this._onChange(this.value,this.valueProgress,this.durationProgress),Ue(this.tick)))}register(){je.push(this)}unregister(){je.remove(this)}abort(){this._state="aborted",this.unregister()}}class pr extends dr{constructor(e){let{startValue:t=0,endValue:n=100}=e,r=Object(p.a)(e,y);super(Object(g.a)(Object(g.a)({},r),{},{startValue:t,byValue:n-t}))}calculate(e){const t=this.easing(e,this.startValue,this.byValue,this.duration);return{value:t,valueProgress:Math.abs((t-this.startValue)/this.byValue)}}}class gr extends dr{constructor(e){let{startValue:t=[0],endValue:n=[100]}=e,r=Object(p.a)(e,b);super(Object(g.a)(Object(g.a)({},r),{},{startValue:t,byValue:n.map(((e,n)=>e-t[n]))}))}calculate(e){const t=this.startValue.map(((t,n)=>this.easing(e,t,this.byValue[n],this.duration,n)));return{value:t,valueProgress:Math.abs((t[0]-this.startValue[0])/this.byValue[0])}}}const vr=(e,t,n,r)=>t+n*(1-Math.cos(e/r*te)),mr=e=>e&&((t,n,r)=>e(new dn(t).toRgba(),n,r));class yr extends dr{constructor(e){let{startValue:t,endValue:n,easing:r=vr,onChange:i,onComplete:o,abort:a}=e,s=Object(p.a)(e,x);const l=new dn(t).getSource(),c=new dn(n).getSource();super(Object(g.a)(Object(g.a)({},s),{},{startValue:l,byValue:c.map(((e,t)=>e-l[t])),easing:r,onChange:mr(i),onComplete:mr(o),abort:mr(a)}))}calculate(e){const[t,n,r,i]=this.startValue.map(((t,n)=>this.easing(e,t,this.byValue[n],this.duration,n))),o=[...[t,n,r].map(Math.round),nr(0,i,1)];return{value:o,valueProgress:o.map(((e,t)=>0!==this.byValue[t]?Math.abs((e-this.startValue[t])/this.byValue[t]):0)).find((e=>0!==e))||0}}}function br(e){const t=(e=>Array.isArray(e.startValue)||Array.isArray(e.endValue))(e)?new gr(e):new pr(e);return t.start(),t}function xr(e){const t=new yr(e);return t.start(),t}class _r{constructor(e){this.status=e,this.points=[]}includes(e){return this.points.some((t=>t.eq(e)))}append(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.points=this.points.concat(t.filter((e=>!this.includes(e)))),this}static isPointContained(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(t.eq(n))return e.eq(t);if(t.x===n.x)return e.x===t.x&&(r||e.y>=Math.min(t.y,n.y)&&e.y<=Math.max(t.y,n.y));if(t.y===n.y)return e.y===t.y&&(r||e.x>=Math.min(t.x,n.x)&&e.x<=Math.max(t.x,n.x));{const i=Wn(t,n),o=Wn(t,e).divide(i);return r?Math.abs(o.x)===Math.abs(o.y):o.x===o.y&&o.x>=0&&o.x<=1}}static isPointInPolygon(e,t){const n=new De(e).setX(Math.min(e.x-1,...t.map((e=>e.x))));let r=0;for(let i=0;i<t.length;i++){const o=this.intersectSegmentSegment(t[i],t[(i+1)%t.length],e,n);if(o.includes(e))return!0;r+=Number("Intersection"===o.status)}return r%2===1}static intersectLineLine(e,t,n,r){let i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];const a=t.x-e.x,s=t.y-e.y,l=r.x-n.x,c=r.y-n.y,u=e.x-n.x,h=e.y-n.y,f=l*h-c*u,d=a*h-s*u,p=c*a-l*s;if(0!==p){const t=f/p,n=d/p;return(i||0<=t&&t<=1)&&(o||0<=n&&n<=1)?new _r("Intersection").append(new De(e.x+t*a,e.y+t*s)):new _r}if(0===f||0===d){const a=i||o||_r.isPointContained(e,n,r)||_r.isPointContained(t,n,r)||_r.isPointContained(n,e,t)||_r.isPointContained(r,e,t);return new _r(a?"Coincident":void 0)}return new _r("Parallel")}static intersectSegmentLine(e,t,n,r){return _r.intersectLineLine(e,t,n,r,!1,!0)}static intersectSegmentSegment(e,t,n,r){return _r.intersectLineLine(e,t,n,r,!1,!1)}static intersectLinePolygon(e,t,n){let r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const i=new _r,o=n.length;for(let a,s,l,c=0;c<o;c++){if(a=n[c],s=n[(c+1)%o],l=_r.intersectLineLine(e,t,a,s,r,!1),"Coincident"===l.status)return l;i.append(...l.points)}return i.points.length>0&&(i.status="Intersection"),i}static intersectSegmentPolygon(e,t,n){return _r.intersectLinePolygon(e,t,n,!1)}static intersectPolygonPolygon(e,t){const n=new _r,r=e.length,i=[];for(let o=0;o<r;o++){const a=e[o],s=e[(o+1)%r],l=_r.intersectSegmentPolygon(a,s,t);"Coincident"===l.status?(i.push(l),n.append(a,s)):n.append(...l.points)}return i.length>0&&i.length===e.length?new _r("Coincident"):(n.points.length>0&&(n.status="Intersection"),n)}static intersectPolygonRectangle(e,t,n){const r=t.min(n),i=t.max(n),o=new De(i.x,r.y),a=new De(r.x,i.y);return _r.intersectPolygonPolygon(e,[r,o,i,a])}}class wr extends Be{getX(){return this.getXY().x}setX(e){this.setXY(this.getXY().setX(e))}getY(){return this.getXY().y}setY(e){this.setXY(this.getXY().setY(e))}getRelativeX(){return this.left}setRelativeX(e){this.left=e}getRelativeY(){return this.top}setRelativeY(e){this.top=e}getXY(){const e=this.getRelativeXY();return this.group?Qe(e,this.group.calcTransformMatrix()):e}setXY(e,t,n){this.group&&(e=Qe(e,Je(this.group.calcTransformMatrix()))),this.setRelativeXY(e,t,n)}getRelativeXY(){return new De(this.left,this.top)}setRelativeXY(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.originX,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.originY;this.setPositionByOrigin(e,t,n)}isStrokeAccountedForInDimensions(){return!1}getCoords(){const{tl:e,tr:t,br:n,bl:r}=this.aCoords||(this.aCoords=this.calcACoords()),i=[e,t,n,r];if(this.group){const e=this.group.calcTransformMatrix();return i.map((t=>Qe(t,e)))}return i}intersectsWithRect(e,t){return"Intersection"===_r.intersectPolygonRectangle(this.getCoords(),e,t).status}intersectsWithObject(e){const t=_r.intersectPolygonPolygon(this.getCoords(),e.getCoords());return"Intersection"===t.status||"Coincident"===t.status||e.isContainedWithinObject(this)||this.isContainedWithinObject(e)}isContainedWithinObject(e){return this.getCoords().every((t=>e.containsPoint(t)))}isContainedWithinRect(e,t){const{left:n,top:r,width:i,height:o}
2=this.getBoundingRect();return n>=e.x&&n+i<=t.x&&r>=e.y&&r+o<=t.y}isOverlapping(e){return this.intersectsWithObject(e)||this.isContainedWithinObject(e)||e.isContainedWithinObject(this)}containsPoint(e){return _r.isPointInPolygon(e,this.getCoords())}isOnScreen(){if(!this.canvas)return!1;const{tl:e,br:t}=this.canvas.vptCoords;return!!this.getCoords().some((n=>n.x<=t.x&&n.x>=e.x&&n.y<=t.y&&n.y>=e.y))||(!!this.intersectsWithRect(e,t)||this.containsPoint(e.midPointFrom(t)))}isPartiallyOnScreen(){if(!this.canvas)return!1;const{tl:e,br:t}=this.canvas.vptCoords;if(this.intersectsWithRect(e,t))return!0;return this.getCoords().every((n=>(n.x>=t.x||n.x<=e.x)&&(n.y>=t.y||n.y<=e.y)))&&this.containsPoint(e.midPointFrom(t))}getBoundingRect(){return Nt(this.getCoords())}getScaledWidth(){return this._getTransformedDimensions().x}getScaledHeight(){return this._getTransformedDimensions().y}scale(e){this._set(Se,e),this._set(Ce,e),this.setCoords()}scaleToWidth(e){const t=this.getBoundingRect().width/this.getScaledWidth();return this.scale(e/this.width/t)}scaleToHeight(e){const t=this.getBoundingRect().height/this.getScaledHeight();return this.scale(e/this.height/t)}getCanvasRetinaScaling(){var e;return(null===(e=this.canvas)||void 0===e?void 0:e.getRetinaScaling())||1}getTotalAngle(){return this.group?Ke(nt(this.calcTransformMatrix())):this.angle}getViewportTransform(){var e;return(null===(e=this.canvas)||void 0===e?void 0:e.viewportTransform)||ie.concat()}calcACoords(){const e=ot({angle:this.angle}),{x:t,y:n}=this.getRelativeCenterPoint(),r=it(t,n),i=et(r,e),o=this._getTransformedDimensions(),a=o.x/2,s=o.y/2;return{tl:Qe({x:-a,y:-s},i),tr:Qe({x:a,y:-s},i),bl:Qe({x:-a,y:s},i),br:Qe({x:a,y:s},i)}}setCoords(){this.aCoords=this.calcACoords()}transformMatrixKey(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=[];return!e&&this.group&&(t=this.group.transformMatrixKey(e)),t.push(this.top,this.left,this.width,this.height,this.scaleX,this.scaleY,this.angle,this.strokeWidth,this.skewX,this.skewY,+this.flipX,+this.flipY,$t(this.originX),$t(this.originY)),t}calcTransformMatrix(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.calcOwnMatrix();if(e||!this.group)return t;const n=this.transformMatrixKey(e),r=this.matrixCache;return r&&r.key.every(((e,t)=>e===n[t]))?r.value:(this.group&&(t=et(this.group.calcTransformMatrix(!1),t)),this.matrixCache={key:n,value:t},t)}calcOwnMatrix(){const e=this.transformMatrixKey(!0),t=this.ownMatrixCache;if(t&&t.key===e)return t.value;const n=this.getRelativeCenterPoint(),r={angle:this.angle,translateX:n.x,translateY:n.y,scaleX:this.scaleX,scaleY:this.scaleY,skewX:this.skewX,skewY:this.skewY,flipX:this.flipX,flipY:this.flipY},i=ht(r);return this.ownMatrixCache={key:e,value:i},i}_getNonTransformedDimensions(){return new De(this.width,this.height).scalarAdd(this.strokeWidth)}_calculateCurrentDimensions(e){return this._getTransformedDimensions(e).transform(this.getViewportTransform(),!0).scalarAdd(2*this.padding)}_getTransformedDimensions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Object(g.a)({scaleX:this.scaleX,scaleY:this.scaleY,skewX:this.skewX,skewY:this.skewY,width:this.width,height:this.height,strokeWidth:this.strokeWidth},e),n=t.strokeWidth;let r=n,i=0;this.strokeUniform&&(r=0,i=n);const o=t.width+r,a=t.height+r;let s;return s=0===t.skewX&&0===t.skewY?new De(o*t.scaleX,a*t.scaleY):Vt(o,a,ut(t)),s.scalarAdd(i)}translateToGivenOrigin(e,t,n,r,i){let o=e.x,a=e.y;const s=$t(r)-$t(t),l=$t(i)-$t(n);if(s||l){const e=this._getTransformedDimensions();o+=s*e.x,a+=l*e.y}return new De(o,a)}translateToCenterPoint(e,t,n){if(t===ae&&n===ae)return e;const r=this.translateToGivenOrigin(e,t,n,ae,ae);return this.angle?r.rotate($e(this.angle),e):r}translateToOriginPoint(e,t,n){const r=this.translateToGivenOrigin(e,ae,ae,t,n);return this.angle?r.rotate($e(this.angle),e):r}getCenterPoint(){const e=this.getRelativeCenterPoint();return this.group?Qe(e,this.group.calcTransformMatrix()):e}getRelativeCenterPoint(){return this.translateToCenterPoint(new De(this.left,this.top),this.originX,this.originY)}getPointByOrigin(e,t){return this.translateToOriginPoint(this.getRelativeCenterPoint(),e,t)}setPositionByOrigin(e,t,n){const r=this.translateToCenterPoint(e,t,n),i=this.translateToOriginPoint(r,this.originX,this.originY);this.set({left:i.x,top:i.y})}_getLeftTopCoords(){return this.translateToOriginPoint(this.getRelativeCenterPoint(),se,le)}}let Sr=class e extends wr{static getDefaults(){return e.ownDefaults}get type(){const e=this.constructor.type;return"FabricObject"===e?"object":e.toLowerCase()}set type(e){V("warn","Setting type has no effect",e)}
2constructor(t){super(),B(this,"_cacheContext",null),Object.assign(this,e.ownDefaults),this.setOptions(t)}_createCacheCanvas(){this._cacheCanvas=We(),this._cacheContext=this._cacheCanvas.getContext("2d"),this._updateCacheCanvas(),this.dirty=!0}_limitCacheSize(e){const t=e.width,n=e.height,r=z.maxCacheSideLimit,i=z.minCacheSideLimit;if(t<=r&&n<=r&&t*n<=z.perfLimitSizeTotal)return t<i&&(e.width=i),n<i&&(e.height=i),e;const o=t/n,[a,s]=Q.limitDimsByArea(o),l=nr(i,a,r),c=nr(i,s,r);return t>l&&(e.zoomX/=t/l,e.width=l,e.capped=!0),n>c&&(e.zoomY/=n/c,e.height=c,e.capped=!0),e}_getCacheCanvasDimensions(){const e=this.getTotalObjectScaling(),t=this._getTransformedDimensions({skewX:0,skewY:0}),n=t.x*e.x/this.scaleX,r=t.y*e.y/this.scaleY;return{width:Math.ceil(n+2),height:Math.ceil(r+2),zoomX:e.x,zoomY:e.y,x:n,y:r}}_updateCacheCanvas(){const e=this._cacheCanvas,t=this._cacheContext,{width:n,height:r,zoomX:i,zoomY:o,x:a,y:s}=this._limitCacheSize(this._getCacheCanvasDimensions()),l=n!==e.width||r!==e.height,c=this.zoomX!==i||this.zoomY!==o;if(!e||!t)return!1;if(l||c){n!==e.width||r!==e.height?(e.width=n,e.height=r):(t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,e.width,e.height));const l=a/2,c=s/2;return this.cacheTranslationX=Math.round(e.width/2-l)+l,this.cacheTranslationY=Math.round(e.height/2-c)+c,t.translate(this.cacheTranslationX,this.cacheTranslationY),t.scale(i,o),this.zoomX=i,this.zoomY=o,!0}return!1}setOptions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setOptions(e)}transform(e){const t=this.group&&!this.group._transformDone||this.group&&this.canvas&&e===this.canvas.contextTop,n=this.calcTransformMatrix(!t);e.transform(n[0],n[1],n[2],n[3],n[4],n[5])}getObjectScaling(){if(!this.group)return new De(Math.abs(this.scaleX),Math.abs(this.scaleY));const e=rt(this.calcTransformMatrix());return new De(Math.abs(e.scaleX),Math.abs(e.scaleY))}getTotalObjectScaling(){const e=this.getObjectScaling();if(this.canvas){const t=this.canvas.getZoom(),n=this.getCanvasRetinaScaling();return e.scalarMultiply(t*n)}return e}getObjectOpacity(){let e=this.opacity;return this.group&&(e*=this.group.getObjectOpacity()),e}_constrainScale(e){return Math.abs(e)<this.minScaleLimit?e<0?-this.minScaleLimit:this.minScaleLimit:0===e?1e-4:e}_set(e,t){e!==Se&&e!==Ce||(t=this._constrainScale(t)),e===Se&&t<0?(this.flipX=!this.flipX,t*=-1):"scaleY"===e&&t<0?(this.flipY=!this.flipY,t*=-1):"shadow"!==e||!t||t instanceof tr||(t=new tr(t));const n=this[e]!==t;return this[e]=t,n&&this.constructor.cacheProperties.includes(e)&&(this.dirty=!0),this.parent&&(this.dirty||n&&this.constructor.stateProperties.includes(e))&&this.parent._set("dirty",!0),this}isNotVisible(){return 0===this.opacity||!this.width&&!this.height&&0===this.strokeWidth||!this.visible}render(e){this.isNotVisible()||this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(e.save(),this._setupCompositeOperation(e),this.drawSelectionBackground(e),this.transform(e),this._setOpacity(e),this._setShadow(e),this.shouldCache()?(this.renderCache(),this.drawCacheOnCanvas(e)):(this._removeCacheCanvas(),this.drawObject(e,!1,{}),this.dirty=!1),e.restore())}drawSelectionBackground(e){}renderCache(e){if(e=e||{},this._cacheCanvas&&this._cacheContext||this._createCacheCanvas(),this.isCacheDirty()&&this._cacheContext){const{zoomX:t,zoomY:n,cacheTranslationX:r,cacheTranslationY:i}=this,{width:o,height:a}=this._cacheCanvas;this.drawObject(this._cacheContext,e.forClipping,{zoomX:t,zoomY:n,cacheTranslationX:r,cacheTranslationY:i,width:o,height:a,parentClipPaths:[]}),this.dirty=!1}}_removeCacheCanvas(){this._cacheCanvas=void 0,this._cacheContext=null}hasStroke(){return this.stroke&&"transparent"!==this.stroke&&0!==this.strokeWidth}hasFill(){return this.fill&&"transparent"!==this.fill}needsItsOwnCache(){return!!(this.paintFirst===Te&&this.hasFill()&&this.hasStroke()&&this.shadow)||!!this.clipPath}shouldCache(){return this.ownCaching=this.objectCaching&&(!this.parent||!this.parent.isOnACache())||this.needsItsOwnCache(),this.ownCaching}willDrawShadow(){return!!this.shadow&&(0!==this.shadow.offsetX||0!==this.shadow.offsetY)}drawClipPathOnCache(e,t,n){e.save(),t.inverted?e.globalCompositeOperation="destination-out":e.globalCompositeOperation="destination-in",e.setTransform(1,0,0,1,0,0),e.drawImage(n,
vendor: 5,018 bytes, line 2
20,0),e.restore()}drawObject(e,t,n){const r=this.fill,i=this.stroke;t?(this.fill="black",this.stroke="",this._setClippingProperties(e)):this._renderBackground(e),this._render(e),this._drawClipPath(e,this.clipPath,n),this.fill=r,this.stroke=i}createClipPathLayer(e,t){const n=qe(t),r=n.getContext("2d");if(r.translate(t.cacheTranslationX,t.cacheTranslationY),r.scale(t.zoomX,t.zoomY),e._cacheCanvas=n,t.parentClipPaths.forEach((e=>{e.transform(r)})),t.parentClipPaths.push(e),e.absolutePositioned){const e=Je(this.calcTransformMatrix());r.transform(e[0],e[1],e[2],e[3],e[4],e[5])}return e.transform(r),e.drawObject(r,!0,t),n}_drawClipPath(e,t,n){if(!t)return;t._transformDone=!0;const r=this.createClipPathLayer(t,n);this.drawClipPathOnCache(e,t,r)}drawCacheOnCanvas(e){e.scale(1/this.zoomX,1/this.zoomY),e.drawImage(this._cacheCanvas,-this.cacheTranslationX,-this.cacheTranslationY)}isCacheDirty(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isNotVisible())return!1;const t=this._cacheCanvas,n=this._cacheContext;return!(!t||!n||e||!this._updateCacheCanvas())||!!(this.dirty||this.clipPath&&this.clipPath.absolutePositioned)&&(t&&n&&!e&&(n.save(),n.setTransform(1,0,0,1,0,0),n.clearRect(0,0,t.width,t.height),n.restore()),!0)}_renderBackground(e){if(!this.backgroundColor)return;const t=this._getNonTransformedDimensions();e.fillStyle=this.backgroundColor,e.fillRect(-t.x/2,-t.y/2,t.x,t.y),this._removeShadow(e)}_setOpacity(e){this.group&&!this.group._transformDone?e.globalAlpha=this.getObjectOpacity():e.globalAlpha*=this.opacity}_setStrokeStyles(e,t){const n=t.stroke;n&&(e.lineWidth=t.strokeWidth,e.lineCap=t.strokeLineCap,e.lineDashOffset=t.strokeDashOffset,e.lineJoin=t.strokeLineJoin,e.miterLimit=t.strokeMiterLimit,bt(n)?"percentage"===n.gradientUnits||n.gradientTransform||n.patternTransform?this._applyPatternForTransformedGradient(e,n):(e.strokeStyle=n.toLive(e),this._applyPatternGradientTransform(e,n)):e.strokeStyle=t.stroke)}_setFillStyles(e,t){let{fill:n}=t;n&&(bt(n)?(e.fillStyle=n.toLive(e),this._applyPatternGradientTransform(e,n)):e.fillStyle=n)}_setClippingProperties(e){e.globalAlpha=1,e.strokeStyle="transparent",e.fillStyle="#000000"}_setLineDash(e,t){t&&0!==t.length&&e.setLineDash(t)}_setShadow(e){if(!this.shadow)return;const t=this.shadow,n=this.canvas,r=this.getCanvasRetinaScaling(),[i,,,o]=(null===n||void 0===n?void 0:n.viewportTransform)||ie,a=i*r,s=o*r,l=t.nonScaling?new De(1,1):this.getObjectScaling();e.shadowColor=t.color,e.shadowBlur=t.blur*z.browserShadowBlurConstant*(a+s)*(l.x+l.y)/4,e.shadowOffsetX=t.offsetX*a*l.x,e.shadowOffsetY=t.offsetY*s*l.y}_removeShadow(e){this.shadow&&(e.shadowColor="",e.shadowBlur=e.shadowOffsetX=e.shadowOffsetY=0)}_applyPatternGradientTransform(e,t){if(!bt(t))return{offsetX:0,offsetY:0};const n=t.gradientTransform||t.patternTransform,r=-this.width/2+t.offsetX||0,i=-this.height/2+t.offsetY||0;return"percentage"===t.gradientUnits?e.transform(this.width,0,0,this.height,r,i):e.transform(1,0,0,1,r,i),n&&e.transform(n[0],n[1],n[2],n[3],n[4],n[5]),{offsetX:r,offsetY:i}}_renderPaintInOrder(e){this.paintFirst===Te?(this._renderStroke(e),this._renderFill(e)):(this._renderFill(e),this._renderStroke(e))}_render(e){}_renderFill(e){this.fill&&(e.save(),this._setFillStyles(e,this),"evenodd"===this.fillRule?e.fill("evenodd"):e.fill(),e.restore())}_renderStroke(e){if(this.stroke&&0!==this.strokeWidth){if(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(e),e.save(),this.strokeUniform){const t=this.getObjectScaling();e.scale(1/t.x,1/t.y)}this._setLineDash(e,this.strokeDashArray),this._setStrokeStyles(e,this),e.stroke(),e.restore()}}_applyPatternForTransformedGradient(e,t){var n;const r=this._limitCacheSize(this._getCacheCanvasDimensions()),i=this.getCanvasRetinaScaling(),o=r.x/this.scaleX/i,a=r.y/this.scaleY/i,s=qe({width:Math.ceil(o),height:Math.ceil(a)}),l=s.getContext("2d");l&&(l.beginPath(),l.moveTo(0,0),l.lineTo(o,0),l.lineTo(o,a),l.lineTo(0,a),l.closePath(),l.translate(o/2,a/2),l.scale(r.zoomX/this.scaleX/i,r.zoomY/this.scaleY/i),this._applyPatternGradientTransform(l,t),l.fillStyle=t.toLive(e),l.fill(),e.translate(-this.width/2-this.strokeWidth/2,-this.height/2-this.strokeWidth/2),e.scale(i*this.scaleX/r.zoomX,i*this.scaleY/r.zoomY),e.strokeStyle=null!==(n=l.createPattern(s,"no-repeat"))&&void 0!==n?n:"")}_findCenterFromElement(){return new De(this.left+this.width/2,this.top+this.height/2)}clone(e){const t=this.toObject(e);return this.constructor.fromObject(t)}cloneAsImage(e){const t=this.toCanvasElement(e);return new(Pe.getClass("image"))(t)}toCanvasElement(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=zt(this),n=this.group,r=this.shadow,i=Math.abs,o=e.enableRetinaScaling?Z():1,a=(e.multiplier||1)*o,s=e.canvasProvider||(e=>new Lt(e,{enableRetinaScaling:!1,renderOnAddRemove:!1,skipOffscreen:!1}));delete this.group,e.withoutTransform&&Ut(this),e.withoutShadow&&(this.shadow=null),e.viewportTransform&&qt(this,this.getViewportTransform()),this.setCoords();
2const l=We(),c=this.getBoundingRect(),u=this.shadow,h=new De;if(u){const e=u.blur,t=u.nonScaling?new De(1,1):this.getObjectScaling();h.x=2*Math.round(i(u.offsetX)+e)*i(t.x),h.y=2*Math.round(i(u.offsetY)+e)*i(t.y)}const f=c.width+h.x,d=c.height+h.y;l.width=Math.ceil(f),l.height=Math.ceil(d);const p=s(l);"jpeg"===e.format&&(p.backgroundColor="#fff"),this.setPositionByOrigin(new De(p.width/2,p.height/2),ae,ae);const g=this.canvas;p._objects=[this],this.set("canvas",p),this.setCoords();const v=p.toCanvasElement(a||1,e);return this.set("canvas",g),this.shadow=r,n&&(this.group=n),this.set(t),this.setCoords(),p._objects=[],p.destroy(),v}toDataURL(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Xe(this.toCanvasElement(e),e.format||"png",e.quality||1)}toBlob(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Ye(this.toCanvasElement(e),e.format||"png",e.quality||1)}isType(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.includes(this.constructor.type)||t.includes(this.type)}complexity(){return 1}toJSON(){return this.toObject()}rotate(e){const{centeredRotation:t,originX:n,originY:r}=this;if(t){const{x:e,y:t}=this.getRelativeCenterPoint();this.originX=ae,this.originY=ae,this.left=e,this.top=t}if(this.set("angle",e),t){const{x:e,y:t}=this.translateToOriginPoint(this.getRelativeCenterPoint(),n,r);this.left=e,this.top=t,this.originX=n,this.originY=r}}setOnGroup(){}_setupCompositeOperation(e){this.globalCompositeOperation&&(e.globalCompositeOperation=this.globalCompositeOperation)}dispose(){je.cancelByTarget(this),this.off(),this._set("canvas",void 0),this._cacheCanvas&&Y().dispose(this._cacheCanvas),this._cacheCanvas=void 0,this._cacheContext=null}animate(e,t){return Object.entries(e).reduce(((e,n)=>{let[r,i]=n;return e[r]=this._animate(r,i,t),e}),{})}_animate(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=e.split("."),i=this.constructor.colorProperties.includes(r[r.length-1]),{abort:o,startValue:a,onChange:s,onComplete:l}=n,c=Object(g.a)(Object(g.a)({},n),{},{target:this,startValue:null!==a&&void 0!==a?a:r.reduce(((e,t)=>e[t]),this),endValue:t,abort:null===o||void 0===o?void 0:o.bind(this),onChange:(e,t,n)=>{r.reduce(((t,n,i)=>(i===r.length-1&&(t[n]=e),t[n])),this),s&&s(e,t,n)},onComplete:(e,t,n)=>{this.setCoords(),l&&l(e,t,n)}});return i?xr(c):br(c)}isDescendantOf(e){const{parent:t,group:n}=this;return t===e||n===e||!!t&&t.isDescendantOf(e)||!!n&&n!==t&&n.isDescendantOf(e)}getAncestors(){const e=[];let t=this;do{t=t.parent,t&&e.push(t)}while(t);return e}findCommonAncestors(e){if(this===e)return{fork:[],otherFork:[],common:[this,...this.getAncestors()]};const t=this.getAncestors(),n=e.getAncestors();if(0===t.length&&n.length>0&&this===n[n.length-1])return{fork:[],otherFork:[e,...n.slice(0,n.length-1)],common:[this]};for(let r,i=0;i<t.length;i++){if(r=t[i],r===e)return{fork:[this,...t.slice(0,i)],otherFork:[],common:t.slice(i)};for(let o=0;o<n.length;o++){if(this===n[o])return{fork:[],otherFork:[e,...n.slice(0,o)],common:[this,...t]};if(r===n[o])return{fork:[this,...t.slice(0,i)],otherFork:[e,...n.slice(0,o)],common:t.slice(i)}}}return{fork:[this,...t],otherFork:[e,...n],common:[]}}hasCommonAncestors(e){const t=this.findCommonAncestors(e);return t&&!!t.common.length}isInFrontOf(e){if(this===e)return;const t=this.findCommonAncestors(e);if(t.fork.includes(e))return!0;if(t.otherFork.includes(this))return!1;const n=t.common[0]||this.canvas;if(!n)return;const r=t.fork.pop(),i=t.otherFork.pop(),o=n._objects.indexOf(r),a=n._objects.indexOf(i);return o>-1&&o>a}toObject(){const t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).concat(e.customProperties,this.constructor.customProperties||[]);let n;const r=z.NUM_FRACTION_DIGITS,{clipPath:i,fill:o,stroke:a,shadow:s,strokeDashArray:l,left:c,top:u,originX:h,originY:f,width:d,height:p,strokeWidth:v,strokeLineCap:m,strokeDashOffset:y,strokeLineJoin:b,strokeUniform:x,strokeMiterLimit:_,scaleX:w,scaleY:S,angle:C,flipX:k,flipY:O,opacity:E,visible:T,backgroundColor:A,fillRule:P,paintFirst:j,globalCompositeOperation:L,skewX:M,skewY:R}=this;i&&!i.excludeFromExport&&(n=i.toObject(t.concat("inverted","absolutePositioned")));const D=e=>mt(e,r),I=Object(g.a)(Object(g.a)({},gt(this,t)),{},{type:this.constructor.type,version:J,originX:h,originY:f,left:D(c),top:D(u),width:D(d),height:D(p),fill:xt(o)?o.toObject():o,stroke:xt(a)?a.toObject():a,strokeWidth:D(v),strokeDashArray:l?l.concat():l,strokeLineCap:m,strokeDashOffset:y,strokeLineJoin:b,strokeUniform:x,strokeMiterLimit:
2D(_),scaleX:D(w),scaleY:D(S),angle:D(C),flipX:k,flipY:O,opacity:D(E),shadow:s?s.toObject():s,visible:T,backgroundColor:A,fillRule:P,paintFirst:j,globalCompositeOperation:L,skewX:D(M),skewY:D(R)},n?{clipPath:n}:null);return this.includeDefaultValues?I:this._removeDefaultValues(I)}toDatalessObject(e){return this.toObject(e)}_removeDefaultValues(e){const t=this.constructor.getDefaults(),n=Object.keys(t).length>0?t:Object.getPrototypeOf(this);return vt(e,((e,t)=>{if(t===se||t===le||"type"===t)return!0;const r=n[t];return e!==r&&!(Array.isArray(e)&&Array.isArray(r)&&0===e.length&&0===r.length)}))}toString(){return"#<".concat(this.constructor.type,">")}static _fromObject(e){let{type:t}=e,n=Object(p.a)(e,_),r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{extraParam:i}=r,o=Object(p.a)(r,w);return pt(n,o).then((e=>i?(delete e[i],new this(n[i],e)):new this(e)))}static fromObject(e,t){return this._fromObject(e,t)}};B(Sr,"stateProperties",rr),B(Sr,"cacheProperties",ir),B(Sr,"ownDefaults",or),B(Sr,"type","FabricObject"),B(Sr,"colorProperties",[Ee,Te,"backgroundColor"]),B(Sr,"customProperties",[]),Pe.setClass(Sr),Pe.setClass(Sr,"object");const Cr=(e,t,n)=>(r,i,o,a)=>{const s=t(r,i,o,a);return s&&Xt(e,Object(g.a)(Object(g.a)({},en(r,i,o,a)),n)),s};function kr(e){return(t,n,r,i)=>{const{target:o,originX:a,originY:s}=n,l=o.getRelativeCenterPoint(),c=o.translateToOriginPoint(l,a,s),u=e(t,n,r,i);return o.setPositionByOrigin(c,n.originX,n.originY),u}}const Or=Cr(ye,kr(((e,t,n,r)=>{const i=nn(t,t.originX,t.originY,n,r);if($t(t.originX)===$t(ae)||$t(t.originX)===$t(ue)&&i.x<0||$t(t.originX)===$t(se)&&i.x>0){const{target:e}=t,n=e.strokeWidth/(e.strokeUniform?e.scaleX:1),r=Zt(t)?2:1,o=e.width,a=Math.abs(i.x*r/e.scaleX)-n;return e.set("width",Math.max(a,1)),o!==e.width}return!1})));function Er(e,t,n,r,i){r=r||{};const o=this.sizeX||r.cornerSize||i.cornerSize,a=this.sizeY||r.cornerSize||i.cornerSize,s="undefined"!==typeof r.transparentCorners?r.transparentCorners:i.transparentCorners,l=s?Te:Ee,c=!s&&(r.cornerStrokeColor||i.cornerStrokeColor);let u,h=t,f=n;e.save(),e.fillStyle=r.cornerColor||i.cornerColor||"",e.strokeStyle=r.cornerStrokeColor||i.cornerStrokeColor||"",o>a?(u=o,e.scale(1,a/o),f=n*o/a):a>o?(u=a,e.scale(o/a,1),h=t*a/o):u=o,e.beginPath(),e.arc(h,f,u/2,0,ne,!1),e[l](),c&&e.stroke(),e.restore()}function Tr(e,t,n,r,i){r=r||{};const o=this.sizeX||r.cornerSize||i.cornerSize,a=this.sizeY||r.cornerSize||i.cornerSize,s="undefined"!==typeof r.transparentCorners?r.transparentCorners:i.transparentCorners,l=s?Te:Ee,c=!s&&(r.cornerStrokeColor||i.cornerStrokeColor),u=o/2,h=a/2;e.save(),e.fillStyle=r.cornerColor||i.cornerColor||"",e.strokeStyle=r.cornerStrokeColor||i.cornerStrokeColor||"",e.translate(t,n);const f=i.getTotalAngle();e.rotate($e(f)),e["".concat(l,"Rect")](-u,-h,o,a),c&&e.strokeRect(-u,-h,o,a),e.restore()}class Ar{constructor(e){B(this,"visible",!0),B(this,"actionName",we),B(this,"angle",0),B(this,"x",0),B(this,"y",0),B(this,"offsetX",0),B(this,"offsetY",0),B(this,"sizeX",0),B(this,"sizeY",0),B(this,"touchSizeX",0),B(this,"touchSizeY",0),B(this,"cursorStyle","crosshair"),B(this,"withConnection",!1),Object.assign(this,e)}shouldActivate(e,t,n,r){var i;let{tl:o,tr:a,br:s,bl:l}=r;return(null===(i=t.canvas)||void 0===i?void 0:i.getActiveObject())===t&&t.isControlVisible(e)&&_r.isPointInPolygon(n,[o,a,s,l])}getActionHandler(e,t,n){return this.actionHandler}getMouseDownHandler(e,t,n){return this.mouseDownHandler}getMouseUpHandler(e,t,n){return this.mouseUpHandler}cursorStyleHandler(e,t,n){return t.cursorStyle}getActionName(e,t,n){return t.actionName}getVisibility(e,t){var n,r;return null!==(n=null===(r=e._controlsVisibility)||void 0===r?void 0:r[t])&&void 0!==n?n:this.visible}setVisibility(e,t,n){this.visible=e}positionHandler(e,t,n,r){return new De(this.x*e.x+this.offsetX,this.y*e.y+this.offsetY).transform(t)}calcCornerCoords(e,t,n,r,i,o){const a=tt([it(n,r),ot({angle:e}),at((i?this.touchSizeX:this.sizeX)||t,(i?this.touchSizeY:this.sizeY)||t)]);return{tl:new De(-.5,-.5).transform(a),tr:new De(.5,-.5).transform(a),br:new De(.5,.5).transform(a),bl:new De(-.5,.5).transform(a)}}render(e,t,n,r,i){switch((r=r||{}).cornerStyle||i.cornerStyle){case"circle":Er.call(this,e,t,n,r,i);break;default:Tr.call(this,e,t,n,r,i)}}}const Pr=(e,t,n)=>n.lockRotation?Kt:t.cursorStyle,jr=Cr(ge,kr(((e,t,n,r)=>{let{target:i,ex:o,ey:a,theta:s,originX:l,originY:c}=t;const u=i.translateToOriginPoint(i.getRelativeCenterPoint(),l,c);if(Jt(i,"lockRotation"))return!1;const h=Math.atan2(a-u.y,o-u.x),f=Math.atan2(r-u.y,n-u.x);let d=Ke(f-h+s);if(i.snapAngle&&i.snapAngle>0){const e=i.snapAngle,t=i.snapThreshold||e,n=Math.ceil(d/e)*e,r=Math.floor(d/e)*e;Math.abs(d-r)<t?d=r:Math.abs(d-n)<t&&(d=n)}
2d<0&&(d=360+d),d%=360;const p=i.angle!==d;return i.angle=d,p})));function Lr(e,t){const n=t.canvas,r=e[n.uniScaleKey];return n.uniformScaling&&!r||!n.uniformScaling&&r}function Mr(e,t,n){const r=Jt(e,"lockScalingX"),i=Jt(e,"lockScalingY");if(r&&i)return!0;if(!t&&(r||i)&&n)return!0;if(r&&"x"===t)return!0;if(i&&"y"===t)return!0;const{width:o,height:a,strokeWidth:s}=e;return 0===o&&0===s&&"y"!==t||0===a&&0===s&&"x"!==t}const Rr=["e","se","s","sw","w","nw","n","ne","e"],Dr=(e,t,n)=>{const r=Lr(e,n);if(Mr(n,0!==t.x&&0===t.y?"x":0===t.x&&0!==t.y?"y":"",r))return Kt;const i=tn(n,t);return"".concat(Rr[i],"-resize")};function Ir(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};const o=t.target,a=i.by,s=Lr(e,o),l=Mr(o,a,s);let c,u,h,f,d,p;if(l)return!1;if(t.gestureScale)u=t.scaleX*t.gestureScale,h=t.scaleY*t.gestureScale;else{if(c=nn(t,t.originX,t.originY,n,r),d="y"!==a?Math.sign(c.x||t.signX||1):1,p="x"!==a?Math.sign(c.y||t.signY||1):1,t.signX||(t.signX=d),t.signY||(t.signY=p),Jt(o,"lockScalingFlip")&&(t.signX!==d||t.signY!==p))return!1;if(f=o._getTransformedDimensions(),s&&!a){const e=Math.abs(c.x)+Math.abs(c.y),{original:n}=t,r=e/(Math.abs(f.x*n.scaleX/o.scaleX)+Math.abs(f.y*n.scaleY/o.scaleY));u=n.scaleX*r,h=n.scaleY*r}else u=Math.abs(c.x*o.scaleX/f.x),h=Math.abs(c.y*o.scaleY/f.y);Zt(t)&&(u*=2,h*=2),t.signX!==d&&"y"!==a&&(t.originX=Qt(t.originX),u*=-1,t.signX=d),t.signY!==p&&"x"!==a&&(t.originY=Qt(t.originY),h*=-1,t.signY=p)}const g=o.scaleX,v=o.scaleY;return a?("x"===a&&o.set(Se,u),"y"===a&&o.set(Ce,h)):(!Jt(o,"lockScalingX")&&o.set(Se,u),!Jt(o,"lockScalingY")&&o.set(Ce,h)),g!==o.scaleX||v!==o.scaleY}const Nr=Cr(pe,kr(((e,t,n,r)=>Ir(e,t,n,r)))),Fr=Cr(pe,kr(((e,t,n,r)=>Ir(e,t,n,r,{by:"x"})))),Br=Cr(pe,kr(((e,t,n,r)=>Ir(e,t,n,r,{by:"y"})))),Ur={x:{counterAxis:"y",scale:Se,skew:ke,lockSkewing:"lockSkewingX",origin:"originX",flip:"flipX"},y:{counterAxis:"x",scale:Ce,skew:Oe,lockSkewing:"lockSkewingY",origin:"originY",flip:"flipY"}},zr=["ns","nesw","ew","nwse"],Vr=(e,t,n)=>{if(0!==t.x&&Jt(n,"lockSkewingY"))return Kt;if(0!==t.y&&Jt(n,"lockSkewingX"))return Kt;const r=tn(n,t)%4;return"".concat(zr[r],"-resize")};function Hr(e,t,n,r,i){const{target:o}=n,{counterAxis:a,origin:s,lockSkewing:l,skew:c,flip:u}=Ur[e];if(Jt(o,l))return!1;const{origin:h,flip:f}=Ur[a],d=$t(n[h])*(o[f]?-1:1),v=-Math.sign(d)*(o[u]?-1:1),m=.5*-((0===o[c]&&nn(n,ae,ae,r,i)[e]>0||o[c]>0?1:-1)*v)+.5;return Cr(me,kr(((t,n,r,i)=>function(e,t,n){let{target:r,ex:i,ey:o,skewingSide:a}=t,s=Object(p.a)(t,S);const{skew:l}=Ur[e],c=n.subtract(new De(i,o)).divide(new De(r.scaleX,r.scaleY))[e],u=r[l],h=s[l],f=Math.tan($e(h)),d="y"===e?r._getTransformedDimensions({scaleX:1,scaleY:1,skewX:0}).x:r._getTransformedDimensions({scaleX:1,scaleY:1}).y,g=2*c*a/Math.max(d,1)+f,v=Ke(Math.atan(g));r.set(l,v);const m=u!==r[l];if(m&&"y"===e){const{skewX:e,scaleX:t}=r,n=r._getTransformedDimensions({skewY:u}),i=r._getTransformedDimensions(),o=0!==e?n.x/i.x:1;1!==o&&r.set(Se,o*t)}return m}(e,n,new De(r,i)))))(t,Object(g.a)(Object(g.a)({},n),{},{[s]:m,skewingSide:v}),r,i)}const Wr=(e,t,n,r)=>Hr("x",e,t,n,r),Gr=(e,t,n,r)=>Hr("y",e,t,n,r);function qr(e,t){return e[t.canvas.altActionKey]}const Xr=(e,t,n)=>{const r=qr(e,n);return 0===t.x?r?ke:Ce:0===t.y?r?Oe:Se:""},Yr=(e,t,n)=>qr(e,n)?Vr(0,t,n):Dr(e,t,n),$r=(e,t,n,r)=>qr(e,t.target)?Gr(e,t,n,r):Fr(e,t,n,r),Kr=(e,t,n,r)=>qr(e,t.target)?Wr(e,t,n,r):Br(e,t,n,r),Zr=()=>({ml:new Ar({x:-.5,y:0,cursorStyleHandler:Yr,actionHandler:$r,getActionName:Xr}),mr:new Ar({x:.5,y:0,cursorStyleHandler:Yr,actionHandler:$r,getActionName:Xr}),mb:new Ar({x:0,y:.5,cursorStyleHandler:Yr,actionHandler:Kr,getActionName:Xr}),mt:new Ar({x:0,y:-.5,cursorStyleHandler:Yr,actionHandler:Kr,getActionName:Xr}),tl:new Ar({x:-.5,y:-.5,cursorStyleHandler:Dr,actionHandler:Nr}),tr:new Ar({x:.5,y:-.5,cursorStyleHandler:Dr,actionHandler:Nr}),bl:new Ar({x:-.5,y:.5,cursorStyleHandler:Dr,actionHandler:Nr}),br:new Ar({x:.5,y:.5,cursorStyleHandler:Dr,actionHandler:Nr}),mtr:new Ar({x:0,y:-.5,actionHandler:jr,cursorStyleHandler:Pr,offsetY:-40,withConnection:!0,actionName:ve})}),Qr=()=>({mr:new Ar({x:.5,y:0,actionHandler:Or,cursorStyleHandler:Yr,actionName:ye}),ml:new Ar({x:-.5,y:0,actionHandler:Or,cursorStyleHandler:Yr,actionName:ye})}),Jr=()=>Object(g.a)(Object(g.a)({},Zr()),Qr());class ei extends Sr{static getDefaults(){return Object(g.a)(Object(g.a)({},super.getDefaults()),ei.ownDefaults)}constructor(e){super(),B(this,"preventGroupCache",void 0),Object.assign(this,this.constructor.createControls(),ei.ownDefaults),this.setOptions(e)}static createControls(){return{controls:Zr()}}_updateCacheCanvas(){const e=this.canvas;if(this.noScaleCache&&e&&e._currentTransform){const t=e._currentTransform,n=t.target,r=t.action;if(this===n&&r&&r.startsWith(we))return!1}return super._updateCacheCanvas()}getActiveControl(){const e=this.__corner;return e?{key:e,control:this.controls[e],coord:this.oCoords[e]}:void 0}findControl(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasControls||!this.canvas||!this.oCoords)return;this.__corner=void 0;const n=Object.entries(this.oCoords);for(let r=n.length-1;r>=0;r--){const[i,o]=n[r],a=this.controls[i];if(a.shouldActivate(i,this,e,t?o.touchCorner:o.corner))return this.__corner=i,{key:i,control:a,coord:this.oCoords[i]}}}calcOCoords(){const e=this.getViewportTransform(),t=this.getCenterPoint(),n=it(t.x,t.y),r=ot({angle:this.getTotalAngle()-(this.group&&this.flipX?180:0)}
vendor: 9,508 bytes, line 2
2),i=et(n,r),o=et(e,i),a=et(o,[1/e[0],0,0,1/e[3],0,0]),s=this.group?rt(this.calcTransformMatrix()):void 0;s&&(s.scaleX=Math.abs(s.scaleX),s.scaleY=Math.abs(s.scaleY));const l=this._calculateCurrentDimensions(s),c={};return this.forEachControl(((e,t)=>{const n=e.positionHandler(l,a,this,e);c[t]=Object.assign(n,this._calcCornerCoords(e,n))})),c}_calcCornerCoords(e,t){const n=this.getTotalAngle();return{corner:e.calcCornerCoords(n,this.cornerSize,t.x,t.y,!1,this),touchCorner:e.calcCornerCoords(n,this.touchCornerSize,t.x,t.y,!0,this)}}setCoords(){super.setCoords(),this.canvas&&(this.oCoords=this.calcOCoords())}forEachControl(e){for(const t in this.controls)e(this.controls[t],t,this)}drawSelectionBackground(e){if(!this.selectionBackgroundColor||this.canvas&&this.canvas._activeObject!==this)return;e.save();const t=this.getRelativeCenterPoint(),n=this._calculateCurrentDimensions(),r=this.getViewportTransform();e.translate(t.x,t.y),e.scale(1/r[0],1/r[3]),e.rotate($e(this.angle)),e.fillStyle=this.selectionBackgroundColor,e.fillRect(-n.x/2,-n.y/2,n.x,n.y),e.restore()}strokeBorders(e,t){e.strokeRect(-t.x/2,-t.y/2,t.x,t.y)}_drawBorders(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=Object(g.a)({hasControls:this.hasControls,borderColor:this.borderColor,borderDashArray:this.borderDashArray},n);e.save(),e.strokeStyle=r.borderColor,this._setLineDash(e,r.borderDashArray),this.strokeBorders(e,t),r.hasControls&&this.drawControlsConnectingLines(e,t),e.restore()}_renderControls(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{hasBorders:n,hasControls:r}=this,i=Object(g.a)({hasBorders:n,hasControls:r},t),o=this.getViewportTransform(),a=i.hasBorders,s=i.hasControls,l=et(o,this.calcTransformMatrix()),c=rt(l);e.save(),e.translate(c.translateX,c.translateY),e.lineWidth=this.borderScaleFactor,this.group===this.parent&&(e.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1),this.flipX&&(c.angle-=180),e.rotate($e(this.group?c.angle:this.angle)),a&&this.drawBorders(e,c,t),s&&this.drawControls(e,t),e.restore()}drawBorders(e,t,n){let r;if(n&&n.forActiveSelection||this.group){const e=Vt(this.width,this.height,ut(t)),n=this.isStrokeAccountedForInDimensions()?Ie:(this.strokeUniform?(new De).scalarAdd(this.canvas?this.canvas.getZoom():1):new De(t.scaleX,t.scaleY)).scalarMultiply(this.strokeWidth);r=e.add(n).scalarAdd(this.borderScaleFactor).scalarAdd(2*this.padding)}else r=this._calculateCurrentDimensions().scalarAdd(this.borderScaleFactor);this._drawBorders(e,r,n)}drawControlsConnectingLines(e,t){let n=!1;e.beginPath(),this.forEachControl(((r,i)=>{r.withConnection&&r.getVisibility(this,i)&&(n=!0,e.moveTo(r.x*t.x,r.y*t.y),e.lineTo(r.x*t.x+r.offsetX,r.y*t.y+r.offsetY))})),n&&e.stroke()}drawControls(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.save();const n=this.getCanvasRetinaScaling(),{cornerStrokeColor:r,cornerDashArray:i,cornerColor:o}=this,a=Object(g.a)({cornerStrokeColor:r,cornerDashArray:i,cornerColor:o},t);e.setTransform(n,0,0,n,0,0),e.strokeStyle=e.fillStyle=a.cornerColor,this.transparentCorners||(e.strokeStyle=a.cornerStrokeColor),this._setLineDash(e,a.cornerDashArray),this.forEachControl(((t,n)=>{if(t.getVisibility(this,n)){const r=this.oCoords[n];t.render(e,r.x,r.y,a,this)}})),e.restore()}isControlVisible(e){return this.controls[e]&&this.controls[e].getVisibility(this,e)}setControlVisible(e,t){this._controlsVisibility||(this._controlsVisibility={}),this._controlsVisibility[e]=t}setControlsVisibility(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.entries(e).forEach((e=>{let[t,n]=e;return this.setControlVisible(t,n)}))}clearContextTop(e){if(!this.canvas)return;const t=this.canvas.contextTop;if(!t)return;const n=this.canvas.viewportTransform;t.save(),t.transform(n[0],n[1],n[2],n[3],n[4],n[5]),this.transform(t);const r=this.width+4,i=this.height+4;return t.clearRect(-r/2,-i/2,r,i),e||t.restore(),t}onDeselect(e){return!1}onSelect(e){return!1}shouldStartDragging(e){return!1}onDragStart(e){return!1}canDrop(e){return!1}renderDragSourceEffect(e){}renderDropTargetEffect(e){}}function ti(e,t){return t.forEach((t=>{Object.getOwnPropertyNames(t.prototype).forEach((n=>{"constructor"!==n&&Object.defineProperty(e.prototype,n,Object.getOwnPropertyDescriptor(t.prototype,n)||Object.create(null))}))})),e}B(ei,"ownDefaults",{noScaleCache:!0,lockMovementX:!1,lockMovementY:!1,lockRotation:!1,lockScalingX:!1,lockScalingY:!1,lockSkewingX:!1,lockSkewingY:!1,lockScalingFlip:!1,cornerSize:13,touchCornerSize:24,transparentCorners:!0,cornerColor:"rgb(178,204,255)",cornerStrokeColor:"",cornerStyle:"rect",cornerDashArray:null,hasControls:!0,borderColor:"rgb(178,204,255)",borderDashArray:null,borderOpacityWhenMoving:.4,borderScaleFactor:1,hasBorders:!0,selectionBackgroundColor:"",selectable:!0,evented:!0,perPixelTargetFind:!1,activeOn:"down",hoverCursor:null,moveCursor:null});class ni extends ei{}ti(ni,[mn]),Pe.setClass(ni),Pe.setClass(ni,"object");const ri=(e,t,n,r)=>{const i=2*(r=Math.round(r))+1,{data:o}=e.getImageData(t-r,n-r,i,i);for(let a=3;a<o.length;a+=4){if(o[a]>0)return!1}return!0},ii=(e,t)=>{for(let n=e.length-1;n>=0;n--)if(t(e[n],n,e))return n;return-1};class oi{constructor(e){this.options=e,this.strokeProjectionMagnitude=this.options.strokeWidth/2,this.scale=new De(this.options.scaleX,this.options.scaleY),this.strokeUniformScalar=this.options.strokeUniform?new De(1/this.options.scaleX,1/this.options.scaleY):new De(1,1)}createSideVector(e,t){const n=Wn(e,t);return this.options.strokeUniform?n.multiply(this.scale):n}projectOrthogonally(e,t,n){return this.applySkew(e.add(this.calcOrthogonalProjection(e,t,n)))}isSkewed(){return 0!==this.options.skewX||0!==this.options.skewY}applySkew(e){const t=new De(e);return t.y+=t.x*Math.tan($e(this.options.skewY)),t.x+=t.y*Math.tan($e(this.options.skewX)),t}scaleUnitVector(e,t){return e.multiply(this.strokeUniformScalar).scalarMultiply(t)}}const ai=new De;class si extends oi{static getOrthogonalRotationFactor(e,t){const n=t?qn(e,t):Xn(e);return Math.abs(n)<te?-1:1}constructor(e,t,n,r){super(r),B(this,"AB",void 0),B(this,"AC",void 0),B(this,"alpha",void 0),B(this,"bisector",void 0),this.A=new De(e),this.B=new De(t),this.C=new De(n),this.AB=this.createSideVector(this.A,this.B),this.AC=this.createSideVector(this.A,this.C),this.alpha=qn(this.AB,this.AC),this.bisector=Yn(Hn(this.AB.eq(ai)?this.AC:this.AB,this.alpha/2))}calcOrthogonalProjection(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.strokeProjectionMagnitude;const r=this.createSideVector(e,t),i=$n(r),o=si.getOrthogonalRotationFactor(i,this.bisector);return this.scaleUnitVector(i,n*o)}projectBevel(){const e=[];return(this.alpha%ne===0?[this.B]:[this.B,this.C]).forEach((t=>{e.push(this.projectOrthogonally(this.A,t)),e.push(this.projectOrthogonally(this.A,t,-this.strokeProjectionMagnitude))})),e}projectMiter(){const e=[],t=Math.abs(this.alpha),n=1/Math.sin(t/2),r=this.scaleUnitVector(this.bisector,-this.strokeProjectionMagnitude*n),i=this.options.strokeUniform?Gn(this.scaleUnitVector(this.bisector,this.options.strokeMiterLimit)):this.options.strokeMiterLimit;return Gn(r)/this.strokeProjectionMagnitude<=i&&e.push(this.applySkew(this.A.add(r))),e.push(...this.projectBevel()),e}projectRoundNoSkew(e,t){const n=[],r=new De(si.getOrthogonalRotationFactor(this.bisector),si.getOrthogonalRotationFactor(new De(this.bisector.y,this.bisector.x)));return[new De(1,0).scalarMultiply(this.strokeProjectionMagnitude).multiply(this.strokeUniformScalar).multiply(r),new De(0,1).scalarMultiply(this.strokeProjectionMagnitude).multiply(this.strokeUniformScalar).multiply(r)].forEach((r=>{Qn(r,e,t)&&n.push(this.A.add(r))})),n}projectRoundWithSkew(e,t){const n=[],{skewX:r,skewY:i,scaleX:o,scaleY:a,strokeUniform:s}=this.options,l=new De(Math.tan($e(r)),Math.tan($e(i))),c=this.strokeProjectionMagnitude,u=s?c/a/Math.sqrt(1/a**2+1/o**2*l.y**2):c/Math.sqrt(1+l.y**2),h=new De(Math.sqrt(Math.max(c**2-u**2,0)),u),f=s?c/Math.sqrt(1+l.x**2*(1/a)**2/(1/o+1/o*l.x*l.y)**2):c/Math.sqrt(1+l.x**2/(1+l.x*l.y)**2),d=new De(f,Math.sqrt(Math.max(c**2-f**2,0)));return[d,d.scalarMultiply(-1),h,h.scalarMultiply(-1)].map((e=>this.applySkew(s?e.multiply(this.strokeUniformScalar):e))).forEach((r=>{Qn(r,e,t)&&n.push(this.applySkew(this.A).add(r))})),n}projectRound(){const e=[];e.push(...this.projectBevel());const t=this.alpha%ne===0,n=this.applySkew(this.A),r=e[t?0:2].subtract(n),i=e[t?1:0].subtract(n),o=t?this.applySkew(this.AB.scalarMultiply(-1)):this.applySkew(this.bisector.multiply(this.strokeUniformScalar).scalarMultiply(-1)),a=Kn(r,o)>0,s=a?r:i,l=a?i:r;return this.isSkewed()?e.push(...this.projectRoundWithSkew(s,l)):e.push(...this.projectRoundNoSkew(s,l)),e}projectPoints(){switch(this.options.strokeLineJoin){case"miter":return this.projectMiter();case"round":return this.projectRound();default:return this.projectBevel()}}project(){return this.projectPoints().map((e=>({originPoint:this.A,projectedPoint:e,angle:this.alpha,bisector:this.bisector})))}}class li extends oi{constructor(e,t,n){super(n),this.A=new De(e),this.T=new De(t)}calcOrthogonalProjection(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.strokeProjectionMagnitude;const r=this.createSideVector(e,t);return this.scaleUnitVector($n(r),n)}projectButt(){return[this.projectOrthogonally(this.A,this.T,this.strokeProjectionMagnitude),this.projectOrthogonally(this.A,this.T,-this.strokeProjectionMagnitude)]}projectRound(){const e=[];
2if(!this.isSkewed()&&this.A.eq(this.T)){const t=new De(1,1).scalarMultiply(this.strokeProjectionMagnitude).multiply(this.strokeUniformScalar);e.push(this.applySkew(this.A.add(t)),this.applySkew(this.A.subtract(t)))}else e.push(...new si(this.A,this.T,this.T,this.options).projectRound());return e}projectSquare(){const e=[];if(this.A.eq(this.T)){const t=new De(1,1).scalarMultiply(this.strokeProjectionMagnitude).multiply(this.strokeUniformScalar);e.push(this.A.add(t),this.A.subtract(t))}else{const t=this.calcOrthogonalProjection(this.A,this.T,this.strokeProjectionMagnitude),n=this.scaleUnitVector(Yn(this.createSideVector(this.A,this.T)),-this.strokeProjectionMagnitude),r=this.A.add(n);e.push(r.add(t),r.subtract(t))}return e.map((e=>this.applySkew(e)))}projectPoints(){switch(this.options.strokeLineCap){case"round":return this.projectRound();case"square":return this.projectSquare();default:return this.projectButt()}}project(){return this.projectPoints().map((e=>({originPoint:this.A,projectedPoint:e})))}}const ci=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=[];if(0===e.length)return r;const i=e.reduce(((e,t)=>(e[e.length-1].eq(t)||e.push(new De(t)),e)),[new De(e[0])]);if(1===i.length)n=!0;else if(!n){const e=i[0],t=ii(i,(t=>!t.eq(e)));i.splice(t+1)}return i.forEach(((e,i,o)=>{let a,s;0===i?(s=o[1],a=n?e:o[o.length-1]):i===o.length-1?(a=o[i-1],s=n?e:o[0]):(a=o[i-1],s=o[i+1]),n&&1===o.length?r.push(...new li(e,e,t).project()):!n||0!==i&&i!==o.length-1?r.push(...new si(e,a,s,t).project()):r.push(...new li(e,0===i?s:a,t).project())})),r},ui=e=>{const t={};return Object.keys(e).forEach((n=>{t[n]={},Object.keys(e[n]).forEach((r=>{t[n][r]=Object(g.a)({},e[n][r])}))})),t},hi=e=>e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">");let fi;const di=e=>{if(fi||fi||(fi="Intl"in K()&&"Segmenter"in Intl&&new Intl.Segmenter(void 0,{granularity:"grapheme"})),fi){const t=fi.segment(e);return Array.from(t).map((e=>{let{segment:t}=e;return t}))}return pi(e)},pi=e=>{const t=[];for(let n,r=0;r<e.length;r++)!1!==(n=gi(e,r))&&t.push(n);return t},gi=(e,t)=>{const n=e.charCodeAt(t);if(isNaN(n))return"";if(n<55296||n>57343)return e.charAt(t);if(55296<=n&&n<=56319){if(e.length<=t+1)throw"High surrogate without following low surrogate";const n=e.charCodeAt(t+1);if(56320>n||n>57343)throw"High surrogate without following low surrogate";return e.charAt(t)+e.charAt(t+1)}if(0===t)throw"Low surrogate without preceding high surrogate";const r=e.charCodeAt(t-1);if(55296>r||r>56319)throw"Low surrogate without preceding high surrogate";return!1};var vi=Object.freeze({__proto__:null,capitalize:function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"".concat(e.charAt(0).toUpperCase()).concat(t?e.slice(1):e.slice(1).toLowerCase())},escapeXml:hi,graphemeSplit:di});const mi=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.fill!==t.fill||e.stroke!==t.stroke||e.strokeWidth!==t.strokeWidth||e.fontSize!==t.fontSize||e.fontFamily!==t.fontFamily||e.fontWeight!==t.fontWeight||e.fontStyle!==t.fontStyle||e.textDecorationThickness!==t.textDecorationThickness||e.textBackgroundColor!==t.textBackgroundColor||e.deltaY!==t.deltaY||n&&(e.overline!==t.overline||e.underline!==t.underline||e.linethrough!==t.linethrough)},yi=(e,t)=>{const n=t.split("\n"),r=[];let i=-1,o={};e=ui(e);for(let a=0;a<n.length;a++){const t=di(n[a]);if(e[a])for(let n=0;n<t.length;n++){i++;const t=e[a][n];t&&Object.keys(t).length>0&&(mi(o,t,!0)?r.push({start:i,end:i+1,style:t}):r[r.length-1].end++),o=t||{}}else i+=t.length,o={}}return r},bi=(e,t)=>{if(!Array.isArray(e))return ui(e);const n=t.split(fe),r={};let i=-1,o=0;for(let a=0;a<n.length;a++){const t=di(n[a]);for(let n=0;n<t.length;n++)i++,e[o]&&e[o].start<=i&&i<e[o].end&&(r[a]=r[a]||{},r[a][n]=Object(g.a)({},e[o].style),i===e[o].end-1&&o++)}return r},xi=["display","transform",Ee,"fill-opacity","fill-rule","opacity",Te,"stroke-dasharray","stroke-linecap","stroke-dashoffset","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","i
2d","paint-order","vector-effect","instantiated_by_use","clip-path"];function _i(e,t){const n=e.nodeName,r=e.getAttribute("class"),i=e.getAttribute("id"),o="(?![a-zA-Z\\-]+)";let a;if(a=new RegExp("^"+n,"i"),t=t.replace(a,""),i&&t.length&&(a=new RegExp("#"+i+o,"i"),t=t.replace(a,"")),r&&t.length){const e=r.split(" ");for(let n=e.length;n--;)a=new RegExp("\\."+e[n]+o,"i"),t=t.replace(a,"")}return 0===t.length}function wi(e,t){let n=!0;const r=_i(e,t.pop());return r&&t.length&&(n=function(e,t){let n,r=!0;for(;e.parentElement&&1===e.parentElement.nodeType&&t.length;)r&&(n=t.pop()),r=_i(e=e.parentElement,n);return 0===t.length}(e,t)),r&&n&&0===t.length}const Si=e=>{var t;return null!==(t=Rn[e])&&void 0!==t?t:e},Ci=new RegExp("(".concat(Pn,")"),"gi"),ki="(".concat(Pn,")"),Oi=String.raw(a||(a=Object(d.a)(["(skewX)(",")"],["(skewX)\\(","\\)"])),ki),Ei=String.raw(s||(s=Object(d.a)(["(skewY)(",")"],["(skewY)\\(","\\)"])),ki),Ti=String.raw(l||(l=Object(d.a)(["(rotate)(","(?: "," ",")?)"],["(rotate)\\(","(?: "," ",")?\\)"])),ki,ki,ki),Ai=String.raw(c||(c=Object(d.a)(["(scale)(","(?: ",")?)"],["(scale)\\(","(?: ",")?\\)"])),ki,ki),Pi=String.raw(u||(u=Object(d.a)(["(translate)(","(?: ",")?)"],["(translate)\\(","(?: ",")?\\)"])),ki,ki),ji=String.raw(h||(h=Object(d.a)(["(matrix)("," "," "," "," "," ",")"],["(matrix)\\("," "," "," "," "," ","\\)"])),ki,ki,ki,ki,ki,ki),Li="(?:".concat(ji,"|").concat(Pi,"|").concat(Ti,"|").concat(Ai,"|").concat(Oi,"|").concat(Ei,")"),Mi="(?:".concat(Li,"*)"),Ri=String.raw(f||(f=Object(d.a)(["^s*(?:","?)s*$"],["^\\s*(?:","?)\\s*$"])),Mi),Di=new RegExp(Ri),Ii=new RegExp(Li),Ni=new RegExp(Li,"g");function Fi(e){const t=[];if(!(e=(e=>e.replace(Ci," $1 ").replace(/,/gi," ").replace(/\s+/gi," "))(e).replace(/\s*([()])\s*/gi,"$1"))||e&&!Di.test(e))return[...ie];for(const n of e.matchAll(Ni)){const e=Ii.exec(n[0]);if(!e)continue;let r=ie;const i=e.filter((e=>!!e)),[,o,...a]=i,[s,l,c,u,h,f]=a.map((e=>parseFloat(e)));switch(o){case"translate":r=it(s,l);break;case ve:r=ot({angle:s},{x:l,y:c});break;case we:r=at(s,l);break;case ke:r=lt(s);break;case Oe:r=ct(s);break;case"matrix":r=[s,l,c,u,h,f]}t.push(r)}return tt(t)}function Bi(e,t,n,r){const i=Array.isArray(t);let o,a=t;if(e!==Ee&&e!==Te||t!==he){if("strokeUniform"===e)return"non-scaling-stroke"===t;if("strokeDashArray"===e)a=t===he?null:t.replace(/,/g," ").split(/\s+/).map(parseFloat);else if("transformMatrix"===e)a=n&&n.transformMatrix?et(n.transformMatrix,Fi(t)):Fi(t);else if("visible"===e)a=t!==he&&"hidden"!==t,n&&!1===n.visible&&(a=!1);else if("opacity"===e)a=parseFloat(t),n&&"undefined"!==typeof n.opacity&&(a*=n.opacity);else if("textAnchor"===e)a="start"===t?se:"end"===t?ue:ae;else if("charSpacing"===e||e===bn)o=pn(t,r)/r*1e3;else if("paintFirst"===e){const e=t.indexOf(Ee),n=t.indexOf(Te);a=Ee,(e>-1&&n>-1&&n<e||-1===e&&n>-1)&&(a=Te)}else{if("href"===e||"xlink:href"===e||"font"===e||"id"===e)return t;if("imageSmoothing"===e)return"optimizeQuality"===t;o=i?t.map(pn):pn(t,r)}}else a="";return!i&&isNaN(o)?a:o}function Ui(e,t){e.replace(/;\s*$/,"").split(";").forEach((e=>{if(!e)return;const[n,r]=e.split(":");t[n.trim().toLowerCase()]=r.trim()}))}function zi(e){const t={},n=e.getAttribute("style");return n?("string"===typeof n?Ui(n,t):function(e,t){Object.entries(e).forEach((e=>{let[n,r]=e;void 0!==r&&(t[n.toLowerCase()]=r)}))}(n,t),t):t}const Vi={stroke:"strokeOpacity",fill:"fillOpacity"};function Hi(e,t,n){if(!e)return{};let r,i={},o=16;e.parentNode&&Bn.test(e.parentNode.nodeName)&&(i=Hi(e.parentElement,t,n),i.fontSize&&(r=o=pn(i.fontSize)));const a=Object(g.a)(Object(g.a)(Object(g.a)({},t.reduce(((t,n)=>{const r=e.getAttribute(n);return r&&(t[n]=r),t}),{})),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={};for(const r in t)wi(e,r.split(" "))&&(n=Object(g.a)(Object(g.a)({},n),t[r]));return n}(e,n)),zi(e));a[In]&&e.setAttribute(In,a[In]),a[Dn]&&(r=pn(a[Dn],o),a[Dn]="".concat(r));const s={};for(const c in a){const e=Si(c),t=Bi(e,a[c],i,r);s[e]=t}s&&s.font&&function(e,t){const n=e.match(Mn);if(!n)return;const r=n[1],i=n[3],o=n[4],a=n[5],s=n[6];r&&(t.fontStyle=r),i&&(t.fontWeight=isNaN(parseFloat(i))?i:parseFloat(i)),o&&(t.fontSize=pn(o)),s&&(t.fontFamily=s),a&&(t.lineHeight="normal"===a?1:a)}(s.font,s);const l=Object(g.a)(Object(g.a)({},i),s);return Bn.test(e.nodeName)?l:function(e){const t=ni.getDefaults();
2return Object.entries(Vi).forEach((n=>{let[r,i]=n;if("undefined"===typeof e[i]||""===e[r])return;if("undefined"===typeof e[r]){if(!t[r])return;e[r]=t[r]}if(0===e[r].indexOf("url("))return;const o=new dn(e[r]);e[r]=o.setAlpha(mt(o.getAlpha()*e[i],2)).toRgba()})),e}(l)}const Wi=["rx","ry"];class Gi extends ni{static getDefaults(){return Object(g.a)(Object(g.a)({},super.getDefaults()),Gi.ownDefaults)}constructor(e){super(),Object.assign(this,Gi.ownDefaults),this.setOptions(e),this._initRxRy()}_initRxRy(){const{rx:e,ry:t}=this;e&&!t?this.ry=e:t&&!e&&(this.rx=t)}_render(e){const{width:t,height:n}=this,r=-t/2,i=-n/2,o=this.rx?Math.min(this.rx,t/2):0,a=this.ry?Math.min(this.ry,n/2):0,s=0!==o||0!==a;e.beginPath(),e.moveTo(r+o,i),e.lineTo(r+t-o,i),s&&e.bezierCurveTo(r+t-oe*o,i,r+t,i+oe*a,r+t,i+a),e.lineTo(r+t,i+n-a),s&&e.bezierCurveTo(r+t,i+n-oe*a,r+t-oe*o,i+n,r+t-o,i+n),e.lineTo(r+o,i+n),s&&e.bezierCurveTo(r+oe*o,i+n,r,i+n-oe*a,r,i+n-a),e.lineTo(r,i+a),s&&e.bezierCurveTo(r,i+oe*a,r+oe*o,i,r+o,i),e.closePath(),this._renderPaintInOrder(e)}toObject(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return super.toObject([...Wi,...e])}_toSVG(){const{width:e,height:t,rx:n,ry:r}=this;return["<rect ","COMMON_PARTS",'x="'.concat(-e/2,'" y="').concat(-t/2,'" rx="').concat(n,'" ry="').concat(r,'" width="').concat(e,'" height="').concat(t,'" />\n')]}static async fromElement(e,t,n){const r=Hi(e,this.ATTRIBUTE_NAMES,n),{left:i=0,top:o=0,width:a=0,height:s=0,visible:l=!0}=r,c=Object(p.a)(r,C);return new this(Object(g.a)(Object(g.a)(Object(g.a)({},t),c),{},{left:i,top:o,width:a,height:s,visible:Boolean(l&&a&&s)}))}}B(Gi,"type","Rect"),B(Gi,"cacheProperties",[...ir,...Wi]),B(Gi,"ownDefaults",{rx:0,ry:0}),B(Gi,"ATTRIBUTE_NAMES",[...xi,"x","y","rx","ry","width","height"]),Pe.setClass(Gi),Pe.setSVGClass(Gi);const qi="initialization",Xi="added",Yi="removed",$i="imperative",Ki=(e,t)=>{const{strokeUniform:n,strokeWidth:r,width:i,height:o,group:a}=t,s=a&&a!==e?Ht(a.calcTransformMatrix(),e.calcTransformMatrix()):null,l=s?t.getRelativeCenterPoint().transform(s):t.getRelativeCenterPoint(),c=!t.isStrokeAccountedForInDimensions(),u=n&&c?Gt(new De(r,r),void 0,e.calcTransformMatrix()):Ie,h=!n&&c?r:0,f=Vt(i+h,o+h,tt([s,t.calcOwnMatrix()],!0)).add(u).scalarDivide(2);return[l.subtract(f),l.add(f)]};class Zi{calcLayoutResult(e,t){if(this.shouldPerformLayout(e))return this.calcBoundingBox(t,e)}shouldPerformLayout(e){let{type:t,prevStrategy:n,strategy:r}=e;return t===qi||t===$i||!!n&&r!==n}shouldLayoutClipPath(e){let{type:t,target:{clipPath:n}}=e;return t!==qi&&n&&!n.absolutePositioned}getInitialSize(e,t){return t.size}calcBoundingBox(e,t){const{type:n,target:r}=t;if(n===$i&&t.overrides)return t.overrides;if(0===e.length)return;const{left:i,top:o,width:a,height:s}=Nt(e.map((e=>Ki(r,e))).reduce(((e,t)=>e.concat(t)),[])),l=new De(a,s),c=new De(i,o).add(l.scalarDivide(2));if(n===qi){const e=this.getInitialSize(t,{size:l,center:c});return{center:c,relativeCorrection:new De(0,0),size:e}}return{center:c.transform(r.calcOwnMatrix()),size:l}}}B(Zi,"type","strategy");class Qi extends Zi{shouldPerformLayout(e){return!0}}B(Qi,"type","fit-content"),Pe.setClass(Qi);const Ji="layoutManager";class eo{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Qi;B(this,"strategy",void 0),this.strategy=e,this._subscriptions=new Map}performLayout(e){const t=Object(g.a)(Object(g.a)({bubbles:!0,strategy:this.strategy},e),{},{prevStrategy:this._prevLayoutStrategy,stopPropagation(){this.bubbles=!1}});this.onBeforeLayout(t);const n=this.getLayoutResult(t);n&&this.commitLayout(t,n),this.onAfterLayout(t,n),this._prevLayoutStrategy=t.strategy}attachHandlers(e,t){const{target:n}=t;return[Ae,de,ye,ge,pe,me,_e,be,xe].map((t=>e.on(t,(e=>this.performLayout(t===Ae?{type:"object_modified",trigger:t,e:e,target:n}:{type:"object_modifying",trigger:t,e:e,target:n})))))}subscribe(e,t){this.unsubscribe(e,t);const n=this.attachHandlers(e,t);this._subscriptions.set(e,n)}unsubscribe(e,t){(this._subscriptions.get(e)||[]).forEach((e=>e())),this._subscriptions.delete(e)}
2unsubscribeTargets(e){e.targets.forEach((t=>this.unsubscribe(t,e)))}subscribeTargets(e){e.targets.forEach((t=>this.subscribe(t,e)))}onBeforeLayout(e){const{target:t,type:n}=e,{canvas:r}=t;if(n===qi||n===Xi?this.subscribeTargets(e):n===Yi&&this.unsubscribeTargets(e),t.fire("layout:before",{context:e}),r&&r.fire("object:layout:before",{target:t,context:e}),n===$i&&e.deep){const{strategy:n}=e,r=Object(p.a)(e,k);t.forEachObject((e=>e.layoutManager&&e.layoutManager.performLayout(Object(g.a)(Object(g.a)({},r),{},{bubbles:!1,target:e}))))}}getLayoutResult(e){const{target:t,strategy:n,type:r}=e,i=n.calcLayoutResult(e,t.getObjects());if(!i)return;const o=r===qi?new De:t.getRelativeCenterPoint(),{center:a,correction:s=new De,relativeCorrection:l=new De}=i,c=o.subtract(a).add(s).transform(r===qi?ie:Je(t.calcOwnMatrix()),!0).add(l);return{result:i,prevCenter:o,nextCenter:a,offset:c}}commitLayout(e,t){const{target:n}=e,{result:{size:r},nextCenter:i}=t;var o,a;(n.set({width:r.x,height:r.y}),this.layoutObjects(e,t),e.type===qi)?n.set({left:null!==(o=e.x)&&void 0!==o?o:i.x+r.x*$t(n.originX),top:null!==(a=e.y)&&void 0!==a?a:i.y+r.y*$t(n.originY)}):(n.setPositionByOrigin(i,ae,ae),n.setCoords(),n.set("dirty",!0))}layoutObjects(e,t){const{target:n}=e;n.forEachObject((r=>{r.group===n&&this.layoutObject(e,t,r)})),e.strategy.shouldLayoutClipPath(e)&&this.layoutObject(e,t,n.clipPath)}layoutObject(e,t,n){let{offset:r}=t;n.set({left:n.left+r.x,top:n.top+r.y})}onAfterLayout(e,t){const{target:n,strategy:r,bubbles:i,prevStrategy:o}=e,a=Object(p.a)(e,O),{canvas:s}=n;n.fire("layout:after",{context:e,result:t}),s&&s.fire("object:layout:after",{context:e,result:t,target:n});const l=n.parent;i&&null!==l&&void 0!==l&&l.layoutManager&&((a.path||(a.path=[])).push(n),l.layoutManager.performLayout(Object(g.a)(Object(g.a)({},a),{},{target:l}))),n.set("dirty",!0)}dispose(){const{_subscriptions:e}=this;e.forEach((e=>e.forEach((e=>e())))),e.clear()}toObject(){return{type:Ji,strategy:this.strategy.constructor.type}}toJSON(){return this.toObject()}}Pe.setClass(eo,Ji);class to extends eo{performLayout(){}}class no extends(Fe(ni)){static getDefaults(){return Object(g.a)(Object(g.a)({},super.getDefaults()),no.ownDefaults)}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),B(this,"_activeObjects",[]),B(this,"__objectSelectionTracker",void 0),B(this,"__objectSelectionDisposer",void 0),Object.assign(this,no.ownDefaults),this.setOptions(t),this.groupInit(e,t)}groupInit(e,t){var n;this._objects=[...e],this.__objectSelectionTracker=this.__objectSelectionMonitor.bind(this,!0),this.__objectSelectionDisposer=this.__objectSelectionMonitor.bind(this,!1),this.forEachObject((e=>{this.enterGroup(e,!1)})),this.layoutManager=null!==(n=t.layoutManager)&&void 0!==n?n:new eo,this.layoutManager.performLayout({type:qi,target:this,targets:[...e],x:t.left,y:t.top})}canEnterGroup(e){return e===this||this.isDescendantOf(e)?(V("error","Group: circular object trees are not supported, this call has no effect"),!1):-1===this._objects.indexOf(e)||(V("error","Group: duplicate objects are not supported inside group, this call has no effect"),!1)}_filterObjectsBeforeEnteringGroup(e){return e.filter(((e,t,n)=>this.canEnterGroup(e)&&n.indexOf(e)===t))}add(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=this._filterObjectsBeforeEnteringGroup(t),i=super.add(...r);return this._onAfterObjectsChange(Xi,r),i}insertAt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i=this._filterObjectsBeforeEnteringGroup(n),o=super.insertAt(e,...i);return this._onAfterObjectsChange(Xi,i),o}remove(){const e=super.remove(...arguments);return this._onAfterObjectsChange(Yi,e),e}_onObjectAdded(e){this.enterGroup(e,!0),this.fire("object:added",{target:e}),e.fire("added",{target:this})}_onObjectRemoved(e,t){this.exitGroup(e,t),this.fire("object:removed",{target:e}),e.fire("removed",{target:this})}_onAfterObjectsChange(e,t){this.layoutManager.performLayout({type:e,targets:t,target:this})}_onStackOrderChanged(){this._set("dirty",!0)}_set(e,t){const n=this[e];return super._set(e,t),"canvas"===e&&n!==t&&(this._objects||[]).forEac
2h((n=>{n._set(e,t)})),this}_shouldSetNestedCoords(){return this.subTargetCheck}removeAll(){return this._activeObjects=[],this.remove(...this._objects)}__objectSelectionMonitor(e,t){let{target:n}=t;const r=this._activeObjects;if(e)r.push(n),this._set("dirty",!0);else if(r.length>0){const e=r.indexOf(n);e>-1&&(r.splice(e,1),this._set("dirty",!0))}}_watchObject(e,t){e&&this._watchObject(!1,t),e?(t.on("selected",this.__objectSelectionTracker),t.on("deselected",this.__objectSelectionDisposer)):(t.off("selected",this.__objectSelectionTracker),t.off("deselected",this.__objectSelectionDisposer))}enterGroup(e,t){e.group&&e.group.remove(e),e._set("parent",this),this._enterGroup(e,t)}_enterGroup(e,t){t&&Bt(e,et(Je(this.calcTransformMatrix()),e.calcTransformMatrix())),this._shouldSetNestedCoords()&&e.setCoords(),e._set("group",this),e._set("canvas",this.canvas),this._watchObject(!0,e);const n=this.canvas&&this.canvas.getActiveObject&&this.canvas.getActiveObject();n&&(n===e||e.isDescendantOf(n))&&this._activeObjects.push(e)}exitGroup(e,t){this._exitGroup(e,t),e._set("parent",void 0),e._set("canvas",void 0)}_exitGroup(e,t){e._set("group",void 0),t||(Bt(e,et(this.calcTransformMatrix(),e.calcTransformMatrix())),e.setCoords()),this._watchObject(!1,e);const n=this._activeObjects.length>0?this._activeObjects.indexOf(e):-1;n>-1&&this._activeObjects.splice(n,1)}shouldCache(){const e=ni.prototype.shouldCache.call(this);if(e)for(let t=0;t<this._objects.length;t++)if(this._objects[t].willDrawShadow()||this._objects[t].preventGroupCache)return this.ownCaching=!1,!1;return e}willDrawShadow(){if(super.willDrawShadow())return!0;for(let e=0;e<this._objects.length;e++)if(this._objects[e].willDrawShadow())return!0;return!1}isOnACache(){return this.ownCaching||!!this.parent&&this.parent.isOnACache()}drawObject(e,t,n){this._renderBackground(e);for(let i=0;i<this._objects.length;i++){var r;const t=this._objects[i];null!==(r=this.canvas)&&void 0!==r&&r.preserveObjectStacking&&t.group!==this?(e.save(),e.transform(...Je(this.calcTransformMatrix())),t.render(e),e.restore()):t.group===this&&t.render(e)}this._drawClipPath(e,this.clipPath,n)}setCoords(){super.setCoords(),this._shouldSetNestedCoords()&&this.forEachObject((e=>e.setCoords()))}triggerLayout(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.layoutManager.performLayout(Object(g.a)({target:this,type:$i},e))}render(e){this._transformDone=!0,super.render(e),this._transformDone=!1}__serializeObjects(e,t){const n=this.includeDefaultValues;return this._objects.filter((function(e){return!e.excludeFromExport})).map((function(r){const i=r.includeDefaultValues;r.includeDefaultValues=n;const o=r[e||"toObject"](t);return r.includeDefaultValues=i,o}))}toObject(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=this.layoutManager.toObject();return Object(g.a)(Object(g.a)(Object(g.a)({},super.toObject(["subTargetCheck","interactive",...e])),"fit-content"!==t.strategy||this.includeDefaultValues?{layoutManager:t}:{}),{},{objects:this.__serializeObjects("toObject",e)})}toString(){return"#<Group: (".concat(this.complexity(),")>")}dispose(){this.layoutManager.unsubscribeTargets({targets:this.getObjects(),target:this}),this._activeObjects=[],this.forEachObject((e=>{this._watchObject(!1,e),e.dispose()})),super.dispose()}_createSVGBgRect(e){if(!this.backgroundColor)return"";const t=Gi.prototype._toSVG.call(this),n=t.indexOf("COMMON_PARTS");t[n]='for="group" ';const r=t.join("");return e?e(r):r}_toSVG(e){const t=["<g ","COMMON_PARTS"," >\n"],n=this._createSVGBgRect(e),r=this.calcTransformMatrix();n&&t.push("\t\t",n);for(let i=0;i<this._objects.length;i++){const n=this._objects[i];if(n.group&&n.group!==this){const i=Ht(n.group.calcTransformMatrix(),r);t.push('\t\t<g transform="',yt(i),'">\n\t\t',n.toSVG(e),"\t\t</g>\n")}else t.push("\t\t",n.toSVG(e))}return t.push("</g>\n"),t}getSvgStyles(){const e="undefined"!==typeof this.opacity&&1!==this.opacity?"opacity: ".concat(this.opacity,";"):"",t=this.visible?"":" visibility: hidden;";return[e,this.getSvgFilter(),t].join("")}toClipPathSVG(e){const t=[],n=this._createSVGBgRect(e);
vendor: 6,895 bytes, line 2
2n&&t.push("\t",n);for(let r=0;r<this._objects.length;r++)t.push("\t",this._objects[r].toClipPathSVG(e));return this._createBaseClipPathSVGMarkup(t,{reviver:e})}static fromObject(e,t){let{type:n,objects:r=[],layoutManager:i}=e,o=Object(p.a)(e,E);return Promise.all([dt(r,t),pt(o,t)]).then((e=>{let[t,n]=e;const r=new this(t,Object(g.a)(Object(g.a)(Object(g.a)({},o),n),{},{layoutManager:new to}));if(i){const e=Pe.getClass(i.type),t=Pe.getClass(i.strategy);r.layoutManager=new e(new t)}else r.layoutManager=new eo;return r.layoutManager.subscribeTargets({type:qi,target:r,targets:r.getObjects()}),r.setCoords(),r}))}}B(no,"type","Group"),B(no,"ownDefaults",{strokeWidth:0,subTargetCheck:!1,interactive:!1}),Pe.setClass(no);const ro=(e,t)=>Math.min(t.width/e.width,t.height/e.height),io=(e,t)=>Math.max(t.width/e.width,t.height/e.height),oo="\\s*,?\\s*",ao="".concat(oo,"(").concat(Pn,")"),so="".concat(ao).concat(ao).concat(ao).concat(oo,"([01])").concat(oo,"([01])").concat(ao).concat(ao),lo={m:"l",M:"L"},co=(e,t,n,r,i,o,a,s,l,c,u)=>{const h=Me(e),f=Re(e),d=Me(t),p=Re(t),g=n*i*d-r*o*p+a,v=r*i*d+n*o*p+s;return["C",c+l*(-n*i*f-r*o*h),u+l*(-r*i*f+n*o*h),g+l*(n*i*p+r*o*d),v+l*(r*i*p-n*o*d),g,v]},uo=(e,t,n,r)=>{const i=Math.atan2(t,e),o=Math.atan2(r,n);return o>=i?o-i:2*Math.PI-(i-o)};function ho(e,t,n,r,i,o,a,s){let l;if(z.cachesBoundsOfCurve&&(l=[...arguments].join(),Q.boundsOfCurveCache[l]))return Q.boundsOfCurveCache[l];const c=Math.sqrt,u=Math.abs,h=[],f=[[0,0],[0,0]];let d=6*e-12*n+6*i,p=-3*e+9*n-9*i+3*a,g=3*n-3*e;for(let x=0;x<2;++x){if(x>0&&(d=6*t-12*r+6*o,p=-3*t+9*r-9*o+3*s,g=3*r-3*t),u(p)<1e-12){if(u(d)<1e-12)continue;const e=-g/d;0<e&&e<1&&h.push(e);continue}const e=d*d-4*g*p;if(e<0)continue;const n=c(e),i=(-d+n)/(2*p);0<i&&i<1&&h.push(i);const a=(-d-n)/(2*p);0<a&&a<1&&h.push(a)}let v=h.length;const m=v,y=vo(e,t,n,r,i,o,a,s);for(;v--;){const{x:e,y:t}=y(h[v]);f[0][v]=e,f[1][v]=t}f[0][m]=e,f[1][m]=t,f[0][m+1]=a,f[1][m+1]=s;const b=[new De(Math.min(...f[0]),Math.min(...f[1])),new De(Math.max(...f[0]),Math.max(...f[1]))];return z.cachesBoundsOfCurve&&(Q.boundsOfCurveCache[l]=b),b}const fo=(e,t,n)=>{let[r,i,o,a,s,l,c,u]=n;const h=((e,t,n,r,i,o,a)=>{if(0===n||0===r)return[];let s=0,l=0,c=0;const u=Math.PI,h=a*re,f=Re(h),d=Me(h),p=.5*(-d*e-f*t),g=.5*(-d*t+f*e),v=n**2,m=r**2,y=g**2,b=p**2,x=v*m-v*y-m*b;let _=Math.abs(n),w=Math.abs(r);if(x<0){const e=Math.sqrt(1-x/(v*m));_*=e,w*=e}else c=(i===o?-1:1)*Math.sqrt(x/(v*y+m*b));const S=c*_*g/w,C=-c*w*p/_,k=d*S-f*C+.5*e,O=f*S+d*C+.5*t;let E=uo(1,0,(p-S)/_,(g-C)/w),T=uo((p-S)/_,(g-C)/w,(-p-S)/_,(-g-C)/w);0===o&&T>0?T-=2*u:1===o&&T<0&&(T+=2*u);const A=Math.ceil(Math.abs(T/u*2)),P=[],j=T/A,L=8/3*Math.sin(j/4)*Math.sin(j/4)/Math.sin(j/2);let M=E+j;for(let R=0;R<A;R++)P[R]=co(E,M,d,f,_,w,k,O,L,s,l),s=P[R][5],l=P[R][6],E=M,M+=j;return P})(c-e,u-t,i,o,s,l,a);for(let f=0,d=h.length;f<d;f++)h[f][1]+=e,h[f][2]+=t,h[f][3]+=e,h[f][4]+=t,h[f][5]+=e,h[f][6]+=t;return h},po=e=>{let t=0,n=0,r=0,i=0;const o=[];let a,s=0,l=0;for(const c of e){const e=[...c];let u;switch(e[0]){case"l":e[1]+=t,e[2]+=n;case"L":t=e[1],n=e[2],u=["L",t,n];break;case"h":e[1]+=t;case"H":t=e[1],u=["L",t,n];break;case"v":e[1]+=n;case"V":n=e[1],u=["L",t,n];break;case"m":e[1]+=t,e[2]+=n;case"M":t=e[1],n=e[2],r=e[1],i=e[2],u=["M",t,n];break;case"c":e[1]+=t,e[2]+=n,e[3]+=t,e[4]+=n,e[5]+=t,e[6]+=n;case"C":s=e[3],l=e[4],t=e[5],n=e[6],u=["C",e[1],e[2],s,l,t,n];break;case"s":e[1]+=t,e[2]+=n,e[3]+=t,e[4]+=n;case"S":"C"===a?(s=2*t-s,l=2*n-l):(s=t,l=n),t=e[3],n=e[4],u=["C",s,l,e[1],e[2],t,n],s=u[3],l=u[4];break;case"q":e[1]+=t,e[2]+=n,e[3]+=t,e[4]+=n;case"Q":s=e[1],l=e[2],t=e[3],n=e[4],u=["Q",s,l,t,n];break;case"t":e[1]+=t,e[2]+=n;case"T":"Q"===a?(s=2*t-s,l=2*n-l):(s=t,l=n),t=e[1],n=e[2],u=["Q",s,l,t,n];break;case"a":e[6]+=t,e[7]+=n;case"A":fo(t,n,e).forEach((e=>o.push(e))),t=e[6],n=e[7];break;case"z":case"Z":t=r,n=i,u=["Z"]}u?(o.push(u),a=u[0]):a=""}return o},go=(e,t,n,r)=>Math.sqrt((n-e)**2+(r-t)**2),vo=(e,t,n,r,i,o,a,s)=>l=>{const c=l**3,u=(e=>3*e**2*(1-e))(l),h=(e=>3*e*(1-e)**2)(l),f=(e=>(1-e)**3)(l);return new De(a*c+i*u+n*h+e*f,s*c+o*u+r*h+t*f)},mo=e=>e**2,yo=e=>2*e*(1-e),bo=e=>(1-e)**2,xo=(e,t,n,r,i,o,a,s)=>l=>{const c=mo(l),u=yo(l),h=bo(l),f=3*(h*(n-e)+u*(i-n)+c*(a-i)),d=3*(h*(r-t)+u*(o-r)+c*(s-o));return Math.atan2(d,f)},_o=(e,t,n,r,i,o)=>a=>{const s=mo(a),l=yo(a),c=bo(a);return new De(i*s+n*l+e*c,o*s+r*l+t*c)},wo=(e,t,n,r,i,o)=>a=>{const s=1-a,l=2*(s*(n-e)+a*(i-n)),c=2*(s*(r-t)+a*(o-r));return Math.atan2(c,l)},So=(e,t,n)=>{let r=new De(t,n),i=0;for(let o=1;o<=100;o+=1){const t=e(o/100);i+=go(r.x,r.y,t.x,t.y),r=t}return i},Co=(e,t)=>{let n,r=0,i=0,o={x:e.x,y:e.y},a=Object(g.a)({},o),s=.01,l=0;const c=e.iterator,u=e.angleFinder;for(;i<t&&s>1e-4;)a=c(r),l=r,n=go(o.x,o.y,a.x,a.y),n+i>t?(r-=s,s/=2):(o=a,r+=s,i+=n);return Object(g.a)(Object(g.a)({},a),{},{angle:u(l)})},ko=e=>{let t,n,r=0,i=0,o=0,a=0,s=0;const l=[];for(const c of e){const e={x:i,y:o,command:c[0],length:0};switch(c[0]){case"M":n=e,n.x=a=i=c[1],n.y=s=o=c[2];break;case"L":n=e,n.length=go(i,o,c[1],c[2]),i=c[1],o=c[2];break;case"C":t=vo(i,o,c[1],c[2],c[3],c[4],c[5],c[6]),n=e,n.iterator=t,n.angleFinder=xo(i,o,c[1],c[2],c[3],c[4],c[5],c[6]),n.length=So(t,i,o),i=c[5],o=c[6];break;case"Q":t=_o(i,o,c[1],c[2],c[3],c[4]),n=e,n.iterator=t,n.angleFinder=wo(i,o,c[1],c[2],c[3],c[4]),n.length=So(t,i,o),i=c[3],o=c[4];break;case"Z":n=e,n.destX=a,n.destY=s,n.length=go(i,o,a,s),i=a,o=s}r+=n.length,l.push(n)}return l.push({length:r,x:i,y:o}),l},Oo=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ko(e),r=0;for(;t-n[r].length>0&&r<n.length-2;)t-=n[r].length,r++;const i=n[r],o=t/i.length,a=e[r];switch(i.command){case"M":return{x:i.x,y:i.y,angle:0};case"Z":return Object(g.a)(Object(g.a)({},new De(i.x,i.y).lerp(new De(i.destX,i.destY),o)),{},{angle:Math.atan2(i.destY-i.y,i.destX-i.x)});case"L":return Object(g.a)(Object(g.a)({},new De(i.x,i.y).lerp(new De(a[1],a[2]),o)),{},{angle:Math.atan2(a[2]-i.y,a[1]-i.x)});case"C":case"Q":return Co(i,t)}},Eo=new RegExp("[mzlhvcsqta][^mzlhvcsqta]*","gi"),To=new RegExp(so,"g"),Ao=new RegExp(Pn,"gi"),Po={m:2,l:2,h:1,v:1,c:6,s:4,q:4,t:2,a:7},jo=e=>{var t;const n=[],r=null!==(t=e.match(Eo))&&void 0!==t?t:[];for(const i of r){const e=i[0];if("z"===e||"Z"===e){n.push([e]);continue}const t=Po[e.toLowerCase()];let r=[];if("a"===e||"A"===e){To.lastIndex=0;for(let e=null;e=To.exec(i);)r.push(...e.slice(1))}else r=i.match(Ao)||[];for(let i=0;i<r.length;i+=t){const o=new Array(t),a=lo[e];o[0]=i>0&&a?a:e;for(let e=0;e<t;e++)o[e+1]=parseFloat(r[i+e]);n.push(o)}}return n},Lo=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=new De(e[0]),r=new De(e[1]),i=1,o=0;const a=[],s=e.length,l=s>2;let c;for(l&&(i=e[2].x<r.x?-1:e[2].x===r.x?0:1,o=e[2].y<r.y?-1:e[2].y===r.y?0:1),a.push(["M",n.x-i*t,n.y-o*t]),c=1;c<s;c++){if(!n.eq(r)){const e=n.midPointFrom(r);a.push(["Q",n.x,n.y,e.x,e.y])}
2n=e[c],c+1<e.length&&(r=e[c+1])}return l&&(i=n.x>e[c-2].x?1:n.x===e[c-2].x?0:-1,o=n.y>e[c-2].y?1:n.y===e[c-2].y?0:-1),a.push(["L",n.x+i*t,n.y+o*t]),a},Mo=(e,t)=>e.map((e=>e.map(((e,n)=>0===n||void 0===t?e:mt(e,t))).join(" "))).join(" ");function Ro(e,t){const n=e.style;n&&t&&("string"===typeof t?n.cssText+=";"+t:Object.entries(t).forEach((e=>{let[t,r]=e;return n.setProperty(t,r)})))}const Do=(e,t)=>Math.floor(Math.random()*(t-e+1))+e;function Io(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=t.onComplete||ee,r=new(K().XMLHttpRequest),i=t.signal,o=function(){r.abort()},a=function(){i&&i.removeEventListener("abort",o),r.onerror=r.ontimeout=ee};if(i&&i.aborted)throw new W("request");return i&&i.addEventListener("abort",o,{once:!0}),r.onreadystatechange=function(){4===r.readyState&&(a(),n(r),r.onreadystatechange=ee)},r.onerror=r.ontimeout=a,r.open("get",e,!0),r.send(),r}const No=(e,t)=>{let n=e._findCenterFromElement();e.transformMatrix&&((e=>{if(e.transformMatrix){const{scaleX:t,scaleY:n,angle:r,skewX:i}=rt(e.transformMatrix);e.flipX=!1,e.flipY=!1,e.set(Se,t),e.set(Ce,n),e.angle=r,e.skewX=i,e.skewY=0}})(e),n=n.transform(e.transformMatrix)),delete e.transformMatrix,t&&(e.scaleX*=t.scaleX,e.scaleY*=t.scaleY,e.cropX=t.cropX,e.cropY=t.cropY,n.x+=t.offsetLeft,n.y+=t.offsetTop,e.width=t.width,e.height=t.height),e.setPositionByOrigin(n,ae,ae)};var Fo=Object.freeze({__proto__:null,addTransformToObject:Ft,animate:br,animateColor:xr,applyTransformToObject:Bt,calcAngleBetweenVectors:qn,calcDimensionsMatrix:ut,calcPlaneChangeMatrix:Ht,calcVectorRotation:Xn,cancelAnimFrame:ze,capValue:nr,composeMatrix:ht,copyCanvasElement:e=>{var t;const n=qe(e);return null===(t=n.getContext("2d"))||void 0===t||t.drawImage(e,0,0),n},cos:Me,createCanvasElement:We,createImage:Ge,createRotateMatrix:ot,createScaleMatrix:at,createSkewXMatrix:lt,createSkewYMatrix:ct,createTranslateMatrix:it,createVector:Wn,crossProduct:Kn,degreesToRadians:$e,dotProduct:Zn,ease:hr,enlivenObjectEnlivables:pt,enlivenObjects:dt,findScaleToCover:io,findScaleToFit:ro,getBoundsOfCurve:ho,getOrthonormalVector:$n,getPathSegmentsInfo:ko,getPointOnPath:Oo,getPointer:Rt,getRandomInt:Do,getRegularPolygonPath:(e,t)=>{const n=2*Math.PI/e;let r=-te;e%2===0&&(r+=n/2);const i=new Array(e+1);for(let o=0;o<e;o++){const e=o*n+r,{x:a,y:s}=new De(Me(e),Re(e)).scalarMultiply(t);i[o]=[0===o?"M":"L",a,s]}return i[e]=["Z"],i},getSmoothPathFromPoints:Lo,getSvgAttributes:e=>{const t=["instantiated_by_use","style","id","class"];switch(e){case"linearGradient":return t.concat(["x1","y1","x2","y2","gradientUnits","gradientTransform"]);case"radialGradient":return t.concat(["gradientUnits","gradientTransform","cx","cy","r","fx","fy","fr"]);case"stop":return t.concat(["offset","stop-color","stop-opacity"])}return t},getUnitVector:Yn,groupSVGElements:(e,t)=>e&&1===e.length?e[0]:new no(e,t),hasStyleChanged:mi,invertTransform:Je,isBetweenVectors:Qn,isIdentityMatrix:Ze,isTouchEvent:Dt,isTransparent:ri,joinPath:Mo,loadImage:ft,magnitude:Gn,makeBoundingBoxFromPoints:Nt,makePathSimpler:po,matrixToSVG:yt,mergeClipPaths:(e,t)=>{var n;let r=e,i=t;r.inverted&&!i.inverted&&(r=t,i=e),qt(i,null===(n=i.group)||void 0===n?void 0:n.calcTransformMatrix(),r.calcTransformMatrix());const o=r.inverted&&i.inverted;return o&&(r.inverted=i.inverted=!1),new no([r],{clipPath:i,inverted:o})},multiplyTransformMatrices:et,multiplyTransformMatrixArray:tt,parsePath:jo,parsePreserveAspectRatioAttribute:gn,parseUnit:pn,pick:gt,projectStrokeOnPoints:ci,qrDecompose:rt,radiansToDegrees:Ke,removeFromArray:Le,removeTransformFromObject:(e,t)=>{const n=Je(t),r=et(n,e.calcOwnMatrix());Bt(e,r)},removeTransformMatrixForSvgParsing:No,request:Io,requestAnimFrame:Ue,resetObjectTransform:Ut,rotatePoint:(e,t,n)=>e.rotate(n,t),rotateVector:Hn,saveObjectTransform:zt,sendObjectToPlane:qt,sendPointToPlane:Wt,sendVectorToPlane:Gt,setStyle:Ro,sin:Re,sizeAfterTransform:Vt,string:vi,stylesFromArray:bi,stylesToArray:yi,toBlob:Ye,toDataURL:Xe,toFixed:mt,transformPath:(e,t,n)=>(n&&(t=et(t,[1,0,0,1,-n.x,-n.y])),e.map((e=>{const n=[...e];for(let r=1;r<e.length-1;r+=2){const{x:i,y:o}=Qe({x:e[r],y:e[r+1]},t);n[r]=i,n[r+1]=o}return n}))),transformPoint:Qe});class Bo extends Pt{constructor(e){let{allowTouchScrolling:t=!1,containerClass:n=""}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(e),B(this,"upper",void 0),B(this,"container",void 0);const{el:r}=this.lower,i=this.createUpperCanvas();
vendor: 3,694 bytes, line 2
2this.upper={el:i,ctx:i.getContext("2d")},this.applyCanvasStyle(r,{allowTouchScrolling:t}),this.applyCanvasStyle(i,{allowTouchScrolling:t,styles:{position:"absolute",left:"0",top:"0"}});const o=this.createContainerElement();o.classList.add(n),r.parentNode&&r.parentNode.replaceChild(o,r),o.append(r,i),this.container=o}createUpperCanvas(){const{el:e}=this.lower,t=We();return t.className=e.className,t.classList.remove("lower-canvas"),t.classList.add("upper-canvas"),t.setAttribute("data-fabric","top"),t.style.cssText=e.style.cssText,t.setAttribute("draggable","true"),t}createContainerElement(){const e=$().createElement("div");return e.setAttribute("data-fabric","wrapper"),Ro(e,{position:"relative"}),At(e),e}applyCanvasStyle(e,t){const{styles:n,allowTouchScrolling:r}=t;Ro(e,Object(g.a)(Object(g.a)({},n),{},{"touch-action":r?"manipulation":he})),At(e)}setDimensions(e,t){super.setDimensions(e,t);const{el:n,ctx:r}=this.upper;Et(n,r,e,t)}setCSSDimensions(e){super.setCSSDimensions(e),Tt(this.upper.el,e),Tt(this.container,e)}cleanupDOM(e){const t=this.container,{el:n}=this.lower,{el:r}=this.upper;super.cleanupDOM(e),t.removeChild(r),t.removeChild(n),t.parentNode&&t.parentNode.replaceChild(n,t)}dispose(){super.dispose(),Y().dispose(this.upper.el),delete this.upper,delete this.container}}class Uo extends Lt{constructor(){super(...arguments),B(this,"isolatedObject",void 0),B(this,"_fixedSearchTargets",void 0),B(this,"targets",[]),B(this,"_hoveredTargets",[]),B(this,"_objectsToRender",void 0),B(this,"_currentTransform",null),B(this,"_groupSelector",null),B(this,"contextTopDirty",!1)}static getDefaults(){return Object(g.a)(Object(g.a)({},super.getDefaults()),Uo.ownDefaults)}get upperCanvasEl(){var e;return null===(e=this.elements.upper)||void 0===e?void 0:e.el}get contextTop(){var e;return null===(e=this.elements.upper)||void 0===e?void 0:e.ctx}get wrapperEl(){return this.elements.container}initElements(e){this.elements=new Bo(e,{allowTouchScrolling:this.allowTouchScrolling,containerClass:this.containerClass}),this._createCacheCanvas()}_onObjectAdded(e){this._objectsToRender=void 0,super._onObjectAdded(e)}_onObjectRemoved(e){this._objectsToRender=void 0,e===this._activeObject&&(this.fire("before:selection:cleared",{deselected:[e]}),this._discardActiveObject(),this.fire("selection:cleared",{deselected:[e]}),e.fire("deselected",{target:e})),e===this._hoveredTarget&&(this._hoveredTarget=void 0,this._hoveredTargets=[]),super._onObjectRemoved(e)}_onStackOrderChanged(){this._objectsToRender=void 0,super._onStackOrderChanged()}_chooseObjectsToRender(){const e=this._activeObject;return!this.preserveObjectStacking&&e?this._objects.filter((t=>!t.group&&t!==e)).concat(e):this._objects}renderAll(){this.cancelRequestedRender(),this.destroyed||(!this.contextTopDirty||this._groupSelector||this.isDrawingMode||(this.clearContext(this.contextTop),this.contextTopDirty=!1),this.hasLostContext&&(this.renderTopLayer(this.contextTop),this.hasLostContext=!1),!this._objectsToRender&&(this._objectsToRender=this._chooseObjectsToRender()),this.renderCanvas(this.getContext(),this._objectsToRender))}renderTopLayer(e){e.save(),this.isDrawingMode&&this._isCurrentlyDrawing&&(this.freeDrawingBrush&&this.freeDrawingBrush._render(),this.contextTopDirty=!0),this.selection&&this._groupSelector&&(this._drawSelection(e),this.contextTopDirty=!0),e.restore()}renderTop(){const e=this.contextTop;this.clearContext(e),this.renderTopLayer(e),this.fire("after:render",{ctx:e})}setTargetFindTolerance(e){e=Math.round(e),this.targetFindTolerance=e;const t=this.getRetinaScaling(),n=Math.ceil((2*e+1)*t);this.pixelFindCanvasEl.width=this.pixelFindCanvasEl.height=n,this.pixelFindContext.scale(t,t)}
2isTargetTransparent(e,t,n){const r=this.targetFindTolerance,i=this.pixelFindContext;this.clearContext(i),i.save(),i.translate(-t+r,-n+r),i.transform(...this.viewportTransform);const o=e.selectionBackgroundColor;e.selectionBackgroundColor="",e.render(i),e.selectionBackgroundColor=o,i.restore();const a=Math.round(r*this.getRetinaScaling());return ri(i,a,a,a)}_isSelectionKeyPressed(e){const t=this.selectionKey;return!!t&&(Array.isArray(t)?!!t.find((t=>!!t&&!0===e[t])):e[t])}_shouldClearSelection(e,t){const n=this.getActiveObjects(),r=this._activeObject;return!!(!t||t&&r&&n.length>1&&-1===n.indexOf(t)&&r!==t&&!this._isSelectionKeyPressed(e)||t&&!t.evented||t&&!t.selectable&&r&&r!==t)}_shouldCenterTransform(e,t,n){if(!e)return;let r;return t===we||t===Se||t===Ce||t===ye?r=this.centeredScaling||e.centeredScaling:t===ve&&(r=this.centeredRotation||e.centeredRotation),r?!n:n}_getOriginFromCorner(e,t){const n={x:e.originX,y:e.originY};return t?(["ml","tl","bl"].includes(t)?n.x=ue:["mr","tr","br"].includes(t)&&(n.x=se),["tl","mt","tr"].includes(t)?n.y=ce:["bl","mb","br"].includes(t)&&(n.y=le),n):n}_setupCurrentTransform(e,t,n){var r;const i=t.group?Wt(this.getScenePoint(e),void 0,t.group.calcTransformMatrix()):this.getScenePoint(e),{key:o="",control:a}=t.getActiveControl()||{},s=n&&a?null===(r=a.getActionHandler(e,t,a))||void 0===r?void 0:r.bind(a):rn,l=((e,t,n,r)=>{if(!t||!e)return"drag";const i=r.controls[t];return i.getActionName(n,i,r)})(n,o,e,t),c=e[this.centeredKey],u=this._shouldCenterTransform(t,l,c)?{x:ae,y:ae}:this._getOriginFromCorner(t,o),h={target:t,action:l,actionHandler:s,actionPerformed:!1,corner:o,scaleX:t.scaleX,scaleY:t.scaleY,skewX:t.skewX,skewY:t.skewY,offsetX:i.x-t.left,offsetY:i.y-t.top,originX:u.x,originY:u.y,ex:i.x,ey:i.y,lastX:i.x,lastY:i.y,theta:$e(t.angle),width:t.width,height:t.height,shiftKey:e.shiftKey,altKey:c,original:Object(g.a)(Object(g.a)({},zt(t)),{},{originX:u.x,originY:u.y})};this._currentTransform=h,this.fire("before:transform",{e:e,transform:h})}setCursor(e){this.upperCanvasEl.style.cursor=e}_drawSelection(e){const{x:t,y:n,deltaX:r,deltaY:i}=this._groupSelector,o=new De(t,n).transform(this.viewportTransform),a=new De(t+r,n+i).transform(this.viewportTransform),s=this.selectionLineWidth/2;let l=Math.min(o.x,a.x),c=Math.min(o.y,a.y),u=Math.max(o.x,a.x),h=Math.max(o.y,a.y);this.selectionColor&&(e.fillStyle=this.selectionColor,e.fillRect(l,c,u-l,h-c)),this.selectionLineWidth&&this.selectionBorderColor&&(e.lineWidth=this.selectionLineWidth,e.strokeStyle=this.selectionBorderColor,l+=s,c+=s,u-=s,h-=s,ni.prototype._setLineDash.call(this,e,this.selectionDashArray),e.strokeRect(l,c,u-l,h-c))}dblClickLock(e){if(this.dblClickIsolateObject){const t=this.getViewportPoint(e),n=this.isolatedObject?this.isolatedObject.getObjects():this.getObjects(),r=this.searchPossibleTargets(n,t);if(r){if(!(r instanceof no))return!1;r.interactive=!0,this.isolatedObject=r,this.discardActiveObject(),r._objects.forEach((e=>{e.setCoords()}))}else this.isolatedObject=null,this.discardActiveObject();return!0}return!1}setFixedSearchTargets(e){this._fixedSearchTargets=e}getSearchTargets(){return this._fixedSearchTargets||(this.isolatedObject?this.isolatedObject._objects:this._objects)}findTarget(e){if(this.skipTargetFind)return;const t=this.getViewportPoint(e),n=this._activeObject,r=this.getActiveObjects();if(this.targets=[],n&&r.length>=1&&(!this._fixedSearchTargets||this._fixedSearchTargets.includes(n))){if(n.findControl(t,Dt(e)))return n;if(r.length>1&&this.searchPossibleTargets([n],t))return n;if(n===this.searchPossibleTargets([n],t)){if(this.preserveObjectStacking){const r=this.targets;this.targets=[];const i=this.searchPossibleTargets(this.getSearchTargets(),t);return e[this.altSelectionKey]&&i&&i!==n?(this.targets=r,n):i}return n}}return this.searchPossibleTargets(this.getSearchTargets(),t)}_pointIsInObjectSelectionArea(e,t){let n=e.getCoords();const r=this.getZoom(),i=e.padding/r;if(i){const[e,t,r,o]=n,a=Math.atan2(t.y-e.y,t.x-e.x),s=Me(a)*i,l=Re(a)*i,c=s+l,u=s-l;n=[new De(e.x-u,e.y-c),new De(t.x+c,t.y-u),new De(r.x+u,r.y+c),new De(o.x-c,o.y+u)]}return _r.isPointInPolygon(t,n)}_checkTarget(e,t){if(e&&e.visible&&e.evented&&this._pointIsInObjectSelectionArea(e,Wt(t,void 0,this.viewportTransform))){if(!this.perPixelTargetFind&&!e.perPixelTargetFind||e.isEditing)return!0;
2if(!this.isTargetTransparent(e,t.x,t.y))return!0}return!1}_searchPossibleTargets(e,t){let n=e.length;for(;n--;){const r=e[n];if(this._checkTarget(r,t)){if(!this.dblClickIsolateObject&&Ne(r)&&r.subTargetCheck){const e=this._searchPossibleTargets(r._objects,t);e&&this.targets.push(e)}return r}}}searchPossibleTargets(e,t){const n=this._searchPossibleTargets(e,t);if(n&&Ne(n)&&n.interactive&&this.targets[0]){const e=this.targets;for(let t=e.length-1;t>0;t--){const n=e[t];if(!Ne(n)||!n.interactive)return n}return e[0]}return n}getViewportPoint(e){return this._pointer?this._pointer:this.getPointer(e,!0)}getScenePoint(e){return this._absolutePointer?this._absolutePointer:this.getPointer(e)}getPointer(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.upperCanvasEl,r=n.getBoundingClientRect();let i=Rt(e),o=r.width||0,a=r.height||0;o&&a||(le in r&&ce in r&&(a=Math.abs(r.top-r.bottom)),ue in r&&se in r&&(o=Math.abs(r.right-r.left))),this.calcOffset(),i.x=i.x-this._offset.left,i.y=i.y-this._offset.top,t||(i=Wt(i,void 0,this.viewportTransform));const s=this.getRetinaScaling();1!==s&&(i.x/=s,i.y/=s);const l=0===o||0===a?new De(1,1):new De(n.width/o,n.height/a);return i.multiply(l)}_setDimensionsImpl(e,t){this._resetTransformEventData(),super._setDimensionsImpl(e,t),this._isCurrentlyDrawing&&this.freeDrawingBrush&&this.freeDrawingBrush._setBrushStyles(this.contextTop)}_createCacheCanvas(){this.pixelFindCanvasEl=We(),this.pixelFindContext=this.pixelFindCanvasEl.getContext("2d",{willReadFrequently:!0}),this.setTargetFindTolerance(this.targetFindTolerance)}getTopContext(){return this.elements.upper.ctx}getSelectionContext(){return this.elements.upper.ctx}getSelectionElement(){return this.elements.upper.el}getActiveObject(){return this._activeObject}getActiveObjects(){const e=this._activeObject;return St(e)?e.getObjects():e?[e]:[]}_fireSelectionEvents(e,t){let n=!1,r=!1;const i=this.getActiveObjects(),o=[],a=[];e.forEach((e=>{i.includes(e)||(n=!0,e.fire("deselected",{e:t,target:e}),a.push(e))})),i.forEach((r=>{e.includes(r)||(n=!0,r.fire("selected",{e:t,target:r}),o.push(r))})),e.length>0&&i.length>0?(r=!0,n&&this.fire("selection:updated",{e:t,selected:o,deselected:a})):i.length>0?(r=!0,this.fire("selection:created",{e:t,selected:o})):e.length>0&&(r=!0,this.fire("selection:cleared",{e:t,deselected:a})),r&&(this._objectsToRender=void 0)}setActiveObject(e,t){const n=this.getActiveObjects(),r=this._setActiveObject(e,t);return this._fireSelectionEvents(n,t),r}_setActiveObject(e,t){const n=this._activeObject;return n!==e&&(!(!this._discardActiveObject(t,e)&&this._activeObject)&&(!e.onSelect({e:t})&&(this._activeObject=e,St(e)&&n!==e&&e.set("canvas",this),e.setCoords(),!0)))}_discardActiveObject(e,t){const n=this._activeObject;return!!n&&(!n.onDeselect({e:e,object:t})&&(this._currentTransform&&this._currentTransform.target===n&&this.endCurrentTransform(e),St(n)&&n===this._hoveredTarget&&(this._hoveredTarget=void 0),this._activeObject=void 0,!0))}discardActiveObject(e){const t=this.getActiveObjects(),n=this.getActiveObject();t.length&&this.fire("before:selection:cleared",{e:e,deselected:[n]});const r=this._discardActiveObject(e);return this._fireSelectionEvents(t,e),r}endCurrentTransform(e){const t=this._currentTransform;this._finalizeCurrentTransform(e),t&&t.target&&(t.target.isMoving=!1),this._currentTransform=null}_finalizeCurrentTransform(e){const t=this._currentTransform,n=t.target,r={e:e,target:n,transform:t,action:t.action};n._scaling&&(n._scaling=!1),n.setCoords(),t.actionPerformed&&(this.fire("object:modified",r),n.fire(Ae,r))}setViewportTransform(e){super.setViewportTransform(e);const t=this._activeObject;t&&t.setCoords()}destroy(){const e=this._activeObject;St(e)&&(e.removeAll(),e.dispose()),delete this._activeObject,super.destroy(),this.pixelFindContext=null,this.pixelFindCanvasEl=void 0}clear(){this.discardActiveObject(),this._activeObject=void 0,this.clearContext(this.contextTop),super.clear()}drawControls(e){const t=this._activeObject;t&&t._renderControls(e)}_toObject(e,t,n){const r=this._realizeGroupTransformOnObject(e),i=super._toObject(e,t,n);return e.set(r),i}_realizeGroupTransformOnObject(e){const{group:t}=e;if(t&&St(t)&&this._activeObject===t){const n=gt(e,["angle","flipX","flipY",se,Se,Ce,ke,Oe,le]);return Ft(e,t.calcOwnMatrix()),n}return{}}_setSVGObject(e,t,n){const r=this._realizeGroupTransformOnObject(t);super._setSVGObject(e,t,n),t.set(r)}}B(Uo,"ownDefaults",{uniformScaling:!0,uniScaleKey:"shiftKey",centeredScaling:!1,centeredRotation:!1,centeredKey:"altKey",altActionKey:"shiftKey",selection:!0,selectionKey:"shiftKey",selectionColor:"rgba(100, 100, 255, 0.3)",selectionDashArray:[],selectionBorderColor:"rgba(255, 255, 255, 0.3)",selectionLineWidth:1,selectionFullyContained:!1,hoverCurs
2or:"move",moveCursor:"move",defaultCursor:"default",freeDrawingCursor:"crosshair",notAllowedCursor:"not-allowed",perPixelTargetFind:!1,targetFindTolerance:0,skipTargetFind:!1,stopContextMenu:!1,fireRightClick:!1,fireMiddleClick:!1,enablePointerEvents:!1,containerClass:"canvas-container",preserveObjectStacking:!1});class zo{constructor(e){B(this,"targets",[]),B(this,"__disposer",void 0);const t=()=>{const{hiddenTextarea:t}=e.getActiveObject()||{};t&&t.focus()},n=e.upperCanvasEl;n.addEventListener("click",t),this.__disposer=()=>n.removeEventListener("click",t)}exitTextEditing(){this.target=void 0,this.targets.forEach((e=>{e.isEditing&&e.exitEditing()}))}add(e){this.targets.push(e)}remove(e){this.unregister(e),Le(this.targets,e)}register(e){this.target=e}unregister(e){e===this.target&&(this.target=void 0)}onMouseMove(e){var t;(null===(t=this.target)||void 0===t?void 0:t.isEditing)&&this.target.updateSelectionOnMouseMove(e)}clear(){this.targets=[],this.target=void 0}dispose(){this.clear(),this.__disposer(),delete this.__disposer}}const Vo={passive:!1},Ho=(e,t)=>{const n=e.getViewportPoint(t),r=e.getScenePoint(t);return{viewportPoint:n,scenePoint:r,pointer:n,absolutePointer:r}},Wo=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.addEventListener(...n)},Go=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.removeEventListener(...n)},qo={mouse:{in:"over",out:"out",targetIn:"mouseover",targetOut:"mouseout",canvasIn:"mouse:over",canvasOut:"mouse:out"},drag:{in:"enter",out:"leave",targetIn:"dragenter",targetOut:"dragleave",canvasIn:"drag:enter",canvasOut:"drag:leave"}};class Xo extends Uo{constructor(e){super(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),B(this,"_isClick",void 0),B(this,"textEditingManager",new zo(this)),["_onMouseDown","_onTouchStart","_onMouseMove","_onMouseUp","_onTouchEnd","_onResize","_onMouseWheel","_onMouseOut","_onMouseEnter","_onContextMenu","_onClick","_onDragStart","_onDragEnd","_onDragProgress","_onDragOver","_onDragEnter","_onDragLeave","_onDrop"].forEach((e=>{this[e]=this[e].bind(this)})),this.addOrRemove(Wo,"add")}_getEventPrefix(){return this.enablePointerEvents?"pointer":"mouse"}addOrRemove(e,t){const n=this.upperCanvasEl,r=this._getEventPrefix();e(Ot(n),"resize",this._onResize),e(n,r+"down",this._onMouseDown),e(n,"".concat(r,"move"),this._onMouseMove,Vo),e(n,"".concat(r,"out"),this._onMouseOut),e(n,"".concat(r,"enter"),this._onMouseEnter),e(n,"wheel",this._onMouseWheel),e(n,"contextmenu",this._onContextMenu),e(n,"click",this._onClick),e(n,"dblclick",this._onClick),e(n,"dragstart",this._onDragStart),e(n,"dragend",this._onDragEnd),e(n,"dragover",this._onDragOver),e(n,"dragenter",this._onDragEnter),e(n,"dragleave",this._onDragLeave),e(n,"drop",this._onDrop),this.enablePointerEvents||e(n,"touchstart",this._onTouchStart,Vo)}removeListeners(){this.addOrRemove(Go,"remove");const e=this._getEventPrefix(),t=kt(this.upperCanvasEl);Go(t,"".concat(e,"up"),this._onMouseUp),Go(t,"touchend",this._onTouchEnd,Vo),Go(t,"".concat(e,"move"),this._onMouseMove,Vo),Go(t,"touchmove",this._onMouseMove,Vo),clearTimeout(this._willAddMouseDown)}_onMouseWheel(e){this.__onMouseWheel(e)}_onMouseOut(e){const t=this._hoveredTarget,n=Object(g.a)({e:e},Ho(this,e));this.fire("mouse:out",Object(g.a)(Object(g.a)({},n),{},{target:t})),this._hoveredTarget=void 0,t&&t.fire("mouseout",Object(g.a)({},n)),this._hoveredTargets.forEach((e=>{this.fire("mouse:out",Object(g.a)(Object(g.a)({},n),{},{target:e})),e&&e.fire("mouseout",Object(g.a)({},n))})),this._hoveredTargets=[]}_onMouseEnter(e){this._currentTransform||this.findTarget(e)||(this.fire("mouse:over",Object(g.a)({e:e},Ho(this,e))),this._hoveredTarget=void 0,this._hoveredTargets=[])}_onDragStart(e){this._isClick=!1;const t=this.getActiveObject();if(t&&t.onDragStart(e)){this._dragSource=t;const n={e:e,target:t};return this.fire("dragstart",n),t.fire("dragstart",n),void Wo(this.upperCanvasEl,"drag",this._onDragProgress)}It(e)}_renderDragEffects(e,t,n){let r=!1;const i=this._dropTarget;i&&i!==t&&i!==n&&(i.clearContextTop(),r=!0),null===t||void 0===t||t.clearContextTop(),n!==t&&(null===n||void 0===n||n.clearContextTop());const o=this.contextTop;o.save(),o.transform(...this.viewportTransform),t&&(o.save(),t.transform(o),t.renderDragSourceEffect(e),o.restore(
2),r=!0),n&&(o.save(),n.transform(o),n.renderDropTargetEffect(e),o.restore(),r=!0),o.restore(),r&&(this.contextTopDirty=!0)}_onDragEnd(e){const t=!!e.dataTransfer&&e.dataTransfer.dropEffect!==he,n=t?this._activeObject:void 0,r={e:e,target:this._dragSource,subTargets:this.targets,dragSource:this._dragSource,didDrop:t,dropTarget:n};Go(this.upperCanvasEl,"drag",this._onDragProgress),this.fire("dragend",r),this._dragSource&&this._dragSource.fire("dragend",r),delete this._dragSource,this._onMouseUp(e)}_onDragProgress(e){const t={e:e,target:this._dragSource,dragSource:this._dragSource,dropTarget:this._draggedoverTarget};this.fire("drag",t),this._dragSource&&this._dragSource.fire("drag",t)}findDragTargets(e){this.targets=[];return{target:this._searchPossibleTargets(this.getSearchTargets(),this.getViewportPoint(e)),targets:[...this.targets]}}_onDragOver(e){const t="dragover",{target:n,targets:r}=this.findDragTargets(e),i=this._dragSource,o={e:e,target:n,subTargets:r,dragSource:i,canDrop:!1,dropTarget:void 0};let a;this.fire(t,o),this._fireEnterLeaveEvents(n,o),n&&(n.canDrop(e)&&(a=n),n.fire(t,o));for(let s=0;s<r.length;s++){const n=r[s];n.canDrop(e)&&(a=n),n.fire(t,o)}this._renderDragEffects(e,i,a),this._dropTarget=a}_onDragEnter(e){const{target:t,targets:n}=this.findDragTargets(e),r={e:e,target:t,subTargets:n,dragSource:this._dragSource};this.fire("dragenter",r),this._fireEnterLeaveEvents(t,r)}_onDragLeave(e){const t={e:e,target:this._draggedoverTarget,subTargets:this.targets,dragSource:this._dragSource};this.fire("dragleave",t),this._fireEnterLeaveEvents(void 0,t),this._renderDragEffects(e,this._dragSource),this._dropTarget=void 0,this.targets=[],this._hoveredTargets=[]}_onDrop(e){const{target:t,targets:n}=this.findDragTargets(e),r=this._basicEventHandler("drop:before",Object(g.a)({e:e,target:t,subTargets:n,dragSource:this._dragSource},Ho(this,e)));r.didDrop=!1,r.dropTarget=void 0,this._basicEventHandler("drop",r),this.fire("drop:after",r)}_onContextMenu(e){const t=this.findTarget(e),n=this.targets||[],r=this._basicEventHandler("contextmenu:before",{e:e,target:t,subTargets:n});return this.stopContextMenu&&It(e),this._basicEventHandler("contextmenu",r),!1}_onClick(e){const t=e.detail;t>3||t<2||(this._cacheTransformEventData(e),2==t&&"dblclick"===e.type&&this._onDblClick(e),3==t&&this._handleEvent(e,"tripleclick"),this._resetTransformEventData())}_onDblClick(e){if(this.dblClickLock(e))return this._resetTransformEventData(),this.__onMouseDown(e),void this.__onMouseUp(e);this._handleEvent(e,"dblclick")}getPointerId(e){const t=e.changedTouches;return t?t[0]&&t[0].identifier:this.enablePointerEvents?e.pointerId:-1}_isMainEvent(e){return!0===e.isPrimary||!1!==e.isPrimary&&("touchend"===e.type&&0===e.touches.length||(!e.changedTouches||e.changedTouches[0].identifier===this.mainTouchId))}_onTouchStart(e){let t=!this.allowTouchScrolling;const n=this._activeObject;void 0===this.mainTouchId&&(this.mainTouchId=this.getPointerId(e)),this.__onMouseDown(e),(this.isDrawingMode||n&&this._target===n)&&(t=!0),t&&e.preventDefault(),this._resetTransformEventData();const r=this.upperCanvasEl,i=this._getEventPrefix(),o=kt(r);Wo(o,"touchend",this._onTouchEnd,Vo),t&&Wo(o,"touchmove",this._onMouseMove,Vo),Go(r,"".concat(i,"down"),this._onMouseDown)}_onMouseDown(e){this.__onMouseDown(e),this._resetTransformEventData();const t=this.upperCanvasEl,n=this._getEventPrefix();Go(t,"".concat(n,"move"),this._onMouseMove,Vo);const r=kt(t);Wo(r,"".concat(n,"up"),this._onMouseUp),Wo(r,"".concat(n,"move"),this._onMouseMove,Vo)}_onTouchEnd(e){if(e.touches.length>0)return;this.__onMouseUp(e),this._resetTransformEventData(),delete this.mainTouchId;const t=this._getEventPrefix(),n=kt(this.upperCanvasEl);Go(n,"touchend",this._onTouchEnd,Vo),Go(n,"touchmove",this._onMouseMove,Vo),this._willAddMouseDown&&clearTimeout(this._willAddMouseDown),this._willAddMouseDown=setTimeout((()=>{Wo(this.upperCanvasEl,"".concat(t,"down"),this._onMouseDown),this._willAddMouseDown=0}),400)}_onMouseUp(e){this.__onMouseUp(e),this._resetTransformEventData();const t=this.upperCanvasEl,n=this._getEventPrefix();if(this._isMainEvent(e)){const e=kt(this.upperCanvasEl);Go(e,"".concat(n,"up"),this._onMouseUp),Go(e,"".concat(n,"move"),this._onMouseMove,Vo),Wo(t,"".concat(n,"move"),this._onMouseMove,Vo)}}_onMouseMove(e){const t=this.getActiveObject();!this.allowTouchScrolling&&(!t||!t.shouldStartDragging(e))&&e.preventDefault&&e.preventDefault(),this.__onMouseMove(e)}_onResize(){this.calcOffset(),this._resetTransformEventData()}_shouldRender(e){const t=this.getActiveObject();return!!t!==!!e||t&&e&&t!==e}__onMouseUp(e){var t;this._cacheTransformEventData(e),this._handleEvent(e,"up:before");
2const n=this._currentTransform,r=this._isClick,i=this._target,{button:o}=e;if(o)return(this.fireMiddleClick&&1===o||this.fireRightClick&&2===o)&&this._handleEvent(e,"up"),void this._resetTransformEventData();if(this.isDrawingMode&&this._isCurrentlyDrawing)return void this._onMouseUpInDrawingMode(e);if(!this._isMainEvent(e))return;let a,s,l=!1;if(n&&(this._finalizeCurrentTransform(e),l=n.actionPerformed),!r){const t=i===this._activeObject;this.handleSelection(e),l||(l=this._shouldRender(i)||!t&&i===this._activeObject)}if(i){const t=i.findControl(this.getViewportPoint(e),Dt(e)),{key:r,control:o}=t||{};if(s=r,i.selectable&&i!==this._activeObject&&"up"===i.activeOn)this.setActiveObject(i,e),l=!0;else if(o){const t=o.getMouseUpHandler(e,i,o);t&&(a=this.getScenePoint(e),t.call(o,e,n,a.x,a.y))}i.isMoving=!1}if(n&&(n.target!==i||n.corner!==s)){const t=n.target&&n.target.controls[n.corner],r=t&&t.getMouseUpHandler(e,n.target,t);a=a||this.getScenePoint(e),r&&r.call(t,e,n,a.x,a.y)}this._setCursorFromEvent(e,i),this._handleEvent(e,"up"),this._groupSelector=null,this._currentTransform=null,i&&(i.__corner=void 0),l?this.requestRenderAll():r||null!==(t=this._activeObject)&&void 0!==t&&t.isEditing||this.renderTop(),r&&!this.getActiveObject()&&(this.isolatedObject=null)}_basicEventHandler(e,t){const{target:n,subTargets:r=[]}=t;this.fire(e,t),n&&n.fire(e,t);for(let i=0;i<r.length;i++)r[i]!==n&&r[i].fire(e,t);return t}_handleEvent(e,t,n){const r=this._target,i=this.targets||[],o=Object(g.a)(Object(g.a)(Object(g.a)({e:e,target:r,subTargets:i},Ho(this,e)),{},{transform:this._currentTransform},"up:before"===t||"up"===t?{isClick:this._isClick,currentTarget:this.findTarget(e),currentSubTargets:this.targets}:{}),"down:before"===t||"down"===t?n:{});this.fire("mouse:".concat(t),o),r&&r.fire("mouse".concat(t),o);for(let a=0;a<i.length;a++)i[a]!==r&&i[a].fire("mouse".concat(t),o)}_onMouseDownInDrawingMode(e){this._isCurrentlyDrawing=!0,this.getActiveObject()&&(this.discardActiveObject(e),this.requestRenderAll());const t=this.getScenePoint(e);this.freeDrawingBrush&&this.freeDrawingBrush.onMouseDown(t,{e:e,pointer:t}),this._handleEvent(e,"down",{alreadySelected:!1})}_onMouseMoveInDrawingMode(e){if(this._isCurrentlyDrawing){const t=this.getScenePoint(e);this.freeDrawingBrush&&this.freeDrawingBrush.onMouseMove(t,{e:e,pointer:t})}this.setCursor(this.freeDrawingCursor),this._handleEvent(e,"move")}_onMouseUpInDrawingMode(e){const t=this.getScenePoint(e);this.freeDrawingBrush?this._isCurrentlyDrawing=!!this.freeDrawingBrush.onMouseUp({e:e,pointer:t}):this._isCurrentlyDrawing=!1,this._handleEvent(e,"up")}switchIsolateObject(e){if(!this.isolatedObject||this._fixedSearchTargets)return!1;let t=null;if(this.isolatedObject.parent){const n=[];let r=this.isolatedObject;for(;r.parent;)n.push(r.parent),r=r.parent;const i=n[n.length-1];this.setFixedSearchTargets([i]);let o=this.findTarget(e);o&&n.some((n=>(this.setFixedSearchTargets(n.getObjects()),o=this.findTarget(e),!!o&&(t=n,n.getObjects().forEach((e=>{e.setCoords()})),!0)))),this.setFixedSearchTargets(null)}return!!t&&(this.isolatedObject=t,this._resetTransformEventData(),this.__onMouseDown(e),!0)}__onMouseDown(e){this._isClick=!0,this._cacheTransformEventData(e),this._handleEvent(e,"down:before");let t=this._target,n=!!t&&t===this._activeObject;const{button:r}=e;if(r)return(this.fireMiddleClick&&1===r||this.fireRightClick&&2===r)&&this._handleEvent(e,"down",{alreadySelected:n}),void this._resetTransformEventData();if(this.isDrawingMode)return void this._onMouseDownInDrawingMode(e);if(!this._isMainEvent(e))return;if(this._currentTransform)return;let i=this._shouldRender(t),o=!1;if(this.handleMultiSelection(e,t))t=this._activeObject,o=!0,i=!0;else if(this._shouldClearSelection(e,t)){const n=this.getActiveObjects();if(this.discardActiveObject(e),n.forEach((e=>e.setCoords())),!t&&this.switchIsolateObject(e))return}if(this.selection&&(!t||!t.selectable&&!t.isEditing&&t!==this._activeObject)){const t=this.getScenePoint(e);this._groupSelector={x:t.x,y:t.y,deltaY:0,deltaX:0}}if(n=!!t&&t===this._activeObject,t){t.selectable&&"down"===t.activeOn&&this.setActiveObject(t,e);const r=t.findControl(this.getViewportPoint(e),Dt(e));if(t===this._activeObject&&(r||!o)){this._setupCurrentTransform(e,t,n);const i=r?r.control:void 0,o=this.getScenePoint(e),a=i&&i.getMouseDownHandler(e,t,i);a&&a.call(i,e,this._currentTransform,o.x,o.y)}}i&&(this._objectsToRender=void 0),this._handleEvent(e,"down",{alreadySelected:n}),i&&this.requestRenderAll()}_resetTransformEventData(){this._target=this._pointer=this._absolutePointer=void 0}_cacheTransformEventData(e){this._resetTransformEventData(),this._pointer=this.getViewportPoint(e),this._absolutePointer=Wt(this._pointer,void 0,this.viewportTransform),this._target=this._currentTransform?this._currentTransform.target:this.findTarget(e)}
2__onMouseMove(e){if(this._isClick=!1,this._cacheTransformEventData(e),this._handleEvent(e,"move:before"),this.isDrawingMode)return void this._onMouseMoveInDrawingMode(e);if(!this._isMainEvent(e))return;const t=this._groupSelector;if(t){const n=this.getScenePoint(e);t.deltaX=n.x-t.x,t.deltaY=n.y-t.y,this.renderTop()}else if(this._currentTransform)this._transformObject(e);else{const t=this.findTarget(e);this._setCursorFromEvent(e,t),this._fireOverOutEvents(e,t)}this.textEditingManager.onMouseMove(e),this._handleEvent(e,"move"),this._resetTransformEventData()}_fireOverOutEvents(e,t){const n=this._hoveredTarget,r=this._hoveredTargets,i=this.targets,o=Math.max(r.length,i.length);this.fireSyntheticInOutEvents("mouse",{e:e,target:t,oldTarget:n,fireCanvas:!0});for(let a=0;a<o;a++)this.fireSyntheticInOutEvents("mouse",{e:e,target:i[a],oldTarget:r[a]});this._hoveredTarget=t,this._hoveredTargets=this.targets.concat()}_fireEnterLeaveEvents(e,t){const n=this._draggedoverTarget,r=this._hoveredTargets,i=this.targets,o=Math.max(r.length,i.length);this.fireSyntheticInOutEvents("drag",Object(g.a)(Object(g.a)({},t),{},{target:e,oldTarget:n,fireCanvas:!0}));for(let a=0;a<o;a++)this.fireSyntheticInOutEvents("drag",Object(g.a)(Object(g.a)({},t),{},{target:i[a],oldTarget:r[a]}));this._draggedoverTarget=e}fireSyntheticInOutEvents(e,t){let{target:n,oldTarget:r,fireCanvas:i,e:o}=t,a=Object(p.a)(t,T);const{targetIn:s,targetOut:l,canvasIn:c,canvasOut:u}=qo[e],h=r!==n;if(r&&h){const e=Object(g.a)(Object(g.a)({},a),{},{e:o,target:r,nextTarget:n},Ho(this,o));i&&this.fire(u,e),r.fire(l,e)}if(n&&h){const e=Object(g.a)(Object(g.a)({},a),{},{e:o,target:n,previousTarget:r},Ho(this,o));i&&this.fire(c,e),n.fire(s,e)}}__onMouseWheel(e){this._cacheTransformEventData(e),this._handleEvent(e,"wheel"),this._resetTransformEventData()}_transformObject(e){const t=this.getScenePoint(e),n=this._currentTransform,r=n.target,i=r.group?Wt(t,void 0,r.group.calcTransformMatrix()):t;n.shiftKey=e.shiftKey,n.altKey=!!this.centeredKey&&e[this.centeredKey],this._performTransformAction(e,n,i),n.actionPerformed&&this.requestRenderAll()}_performTransformAction(e,t,n){const{action:r,actionHandler:i,target:o}=t,a=!!i&&i(e,t,n.x,n.y);a&&o.setCoords(),"drag"===r&&a&&(t.target.isMoving=!0,this.setCursor(t.target.moveCursor||this.moveCursor)),t.actionPerformed=t.actionPerformed||a}_setCursorFromEvent(e,t){if(!t)return void this.setCursor(this.defaultCursor);let n=t.hoverCursor||this.hoverCursor;const r=St(this._activeObject)?this._activeObject:null,i=(!r||t.group!==r)&&t.findControl(this.getViewportPoint(e));if(i){const n=i.control;this.setCursor(n.cursorStyleHandler(e,n,t))}else t.subTargetCheck&&this.targets.concat().reverse().map((e=>{n=e.hoverCursor||n})),this.setCursor(n)}handleMultiSelection(e,t){const n=this._activeObject,r=St(n);if(n&&this._isSelectionKeyPressed(e)&&this.selection&&t&&t.selectable&&(n!==t||r)&&(r||!t.isDescendantOf(n)&&!n.isDescendantOf(t))&&!t.onSelect({e:e})&&!n.getActiveControl()){if(r){const r=n.getObjects();if(t===n){const n=this.getViewportPoint(e);if(!(t=this.searchPossibleTargets(this.getSearchTargets(),n)||this.searchPossibleTargets(r,n))||!t.selectable)return!1}t.group===n?(n.remove(t),t.setCoords(),this._hoveredTarget=t,this._hoveredTargets=[...this.targets],1===n.size()&&this._setActiveObject(n.item(0),e)):(n.multiSelectAdd(t),this._hoveredTarget=n,this._hoveredTargets=[...this.targets]),this._fireSelectionEvents(r,e)}else{n.isEditing&&n.exitEditing();const r=new(Pe.getClass("ActiveSelection"))([],{canvas:this});r.multiSelectAdd(n,t),this._hoveredTarget=r,this._setActiveObject(r,e),this._fireSelectionEvents([n],e)}return!0}return!1}handleSelection(e){if(!this.selection||!this._groupSelector)return!1;const{x:t,y:n,deltaX:r,deltaY:i}=this._groupSelector,o=new De(t,n),a=o.add(new De(r,i)),s=o.min(a),l=o.max(a).subtract(s),c=this.collectObjects(this.getSearchTargets(),{left:s.x,top:s.y,width:l.x,height:l.y},{includeIntersecting:!this.selectionFullyContained}),u=o.eq(a)?c[0]?[c[0]]:[]:c.length>1?c.filter((t=>!t.onSelect({e:e}))).reverse():c;if(1===u.length)this.setActiveObject(u[0],e);else if(u.length>1){const t=Pe.getClass("ActiveSelection");this.setActiveObject(new t(u,{canvas:this}),e)}return this._groupSelector=null,!0}clear(){this.textEditingManager.clear(),super.clear()}destroy(){this.removeListeners(),this.textEditingManager.dispose(),super.destroy()}}const Yo={x1:0,y1:0,x2:0,y2:0},$o=Object(g.a)(Object(g.a)({},Yo),{},{r1:0,r2:0}),Ko=/^(\d+\.\d+)%|(\d+)%$/;function Zo(e){return e&&Ko.test(e)}function Qo(e,t){const n="number"===typeof e?e:"string"===typeof e?parseFloat(e)/(Zo(e)?100:1):NaN;return nr(0,on(n,t),1)}const Jo=/\s*;\s*/,ea=/\s*:\s*/;function ta(e,t){let n,r;const i=e.getAttribute("style");if(i){const e=i.split(Jo);""===e[e.length-1]&&e.pop();for(let t=e.length;t--;){const[i,o]=e[t].split(ea).map((e=>e.trim()));
2"stop-color"===i?n=o:"stop-opacity"===i&&(r=o)}}const o=new dn(n||e.getAttribute("stop-color")||"rgb(0,0,0)");return{offset:Qo(e.getAttribute("offset"),0),color:o.toRgb(),opacity:on(parseFloat(r||e.getAttribute("stop-opacity")||""),1)*o.getAlpha()*t}}function na(e,t){const n=[],r=e.getElementsByTagName("stop"),i=Qo(t,1);for(let o=r.length;o--;)n.push(ta(r[o],i));return n}function ra(e){return"linearGradient"===e.nodeName||"LINEARGRADIENT"===e.nodeName?"linear":"radial"}function ia(e){return"userSpaceOnUse"===e.getAttribute("gradientUnits")?"pixels":"percentage"}function oa(e,t){return e.getAttribute(t)}function aa(e,t){return function(e,t){let n,{width:r,height:i,gradientUnits:o}=t;return Object.keys(e).reduce(((t,a)=>{const s=e[a];return"Infinity"===s?n=1:"-Infinity"===s?n=0:(n="string"===typeof s?parseFloat(s):s,"string"===typeof s&&Zo(s)&&(n*=.01,"pixels"===o&&("x1"!==a&&"x2"!==a&&"r2"!==a||(n*=r),"y1"!==a&&"y2"!==a||(n*=i)))),t[a]=n,t}),{})}("linear"===ra(e)?function(e){return{x1:oa(e,"x1")||0,y1:oa(e,"y1")||0,x2:oa(e,"x2")||"100%",y2:oa(e,"y2")||0}}(e):function(e){return{x1:oa(e,"fx")||oa(e,"cx")||"50%",y1:oa(e,"fy")||oa(e,"cy")||"50%",r1:0,x2:oa(e,"cx")||"50%",y2:oa(e,"cy")||"50%",r2:oa(e,"r")||"50%"}}(e),Object(g.a)(Object(g.a)({},t),{},{gradientUnits:ia(e)}))}class sa{constructor(e){const{type:t="linear",gradientUnits:n="pixels",coords:r={},colorStops:i=[],offsetX:o=0,offsetY:a=0,gradientTransform:s,id:l}=e||{};Object.assign(this,{type:t,gradientUnits:n,coords:Object(g.a)(Object(g.a)({},"radial"===t?$o:Yo),r),colorStops:i,offsetX:o,offsetY:a,gradientTransform:s,id:l?"".concat(l,"_").concat(He()):He()})}addColorStop(e){for(const t in e){const n=new dn(e[t]);this.colorStops.push({offset:parseFloat(t),color:n.toRgb(),opacity:n.getAlpha()})}return this}toObject(e){return Object(g.a)(Object(g.a)({},gt(this,e)),{}
2,{type:this.type,coords:Object(g.a)({},this.coords),colorStops:this.colorStops.map((e=>Object(g.a)({},e))),offsetX:this.offsetX,offsetY:this.offsetY,gradientUnits:this.gradientUnits,gradientTransform:this.gradientTransform?[...this.gradientTransform]:void 0})}toSVG(e){let{additionalTransform:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=[],r=this.gradientTransform?this.gradientTransform.concat():ie.concat(),i="pixels"===this.gradientUnits?"userSpaceOnUse":"objectBoundingBox",o=this.colorStops.map((e=>Object(g.a)({},e))).sort(((e,t)=>e.offset-t.offset));let a=-this.offsetX,s=-this.offsetY;var l;"objectBoundingBox"===i?(a/=e.width,s/=e.height):(a+=e.width/2,s+=e.height/2),(l=e)&&"function"===typeof l._renderPathCommands&&"percentage"!==this.gradientUnits&&(a-=e.pathOffset.x,s-=e.pathOffset.y),r[4]-=a,r[5]-=s;const c=['id="SVGID_'.concat(this.id,'"'),'gradientUnits="'.concat(i,'"'),'gradientTransform="'.concat(t?t+" ":"").concat(yt(r),'"'),""].join(" ");if("linear"===this.type){const{x1:e,y1:t,x2:r,y2:i}=this.coords;n.push("<linearGradient ",c,' x1="',e,'" y1="',t,'" x2="',r,'" y2="',i,'">\n')}else if("radial"===this.type){const{x1:e,y1:t,x2:r,y2:i,r1:a,r2:s}=this.coords,l=a>s;n.push("<radialGradient ",c,' cx="',l?e:r,'" cy="',l?t:i,'" r="',l?a:s,'" fx="',l?r:e,'" fy="',l?i:t,'">\n'),l&&(o.reverse(),o.forEach((e=>{e.offset=1-e.offset})));const u=Math.min(a,s);if(u>0){const e=u/Math.max(a,s);o.forEach((t=>{t.offset+=e*(1-t.offset)}))}}return o.forEach((e=>{let{color:t,offset:r,opacity:i}=e;n.push("<stop ",'offset="',100*r+"%",'" style="stop-color:',t,"undefined"!==typeof i?";stop-opacity: "+i:";",'"/>\n')})),n.push("linear"===this.type?"</linearGradient>":"</radialGradient>","\n"),n.join("")}toLive(e){const{x1:t,y1:n,x2:r,y2:i,r1:o,r2:a}=this.coords,s="linear"===this.type?e.createLinearGradient(t,n,r,i):e.createRadialGradient(t,n,o,r,i,a);return this.colorStops.forEach((e=>{let{color:t,opacity:n,offset:r}=e;s.addColorStop(r,"undefined"!==typeof n?new dn(t).setAlpha(n).toRgba():t)})),s}static async fromObject(e){const{colorStops:t,gradientTransform:n}=e;return new this(Object(g.a)(Object(g.a)({},e),{},{colorStops:t?t.map((e=>Object(g.a)({},e))):void 0,gradientTransform:n?[...n]:void 0}))}static fromElement(e,t,n){const r=ia(e),i=t._findCenterFromElement();return new this(Object(g.a)({id:e.getAttribute("id")||void 0,type:ra(e),coords:aa(e,{width:n.viewBoxWidth||n.width,height:n.viewBoxHeight||n.height}),colorStops:na(e,n.opacity),gradientUnits:r,gradientTransform:Fi(e.getAttribute("gradientTransform")||"")},"pixels"===r?{offsetX:t.width/2-i.x,offsetY:t.height/2-i.y}:{offsetX:0,offsetY:0}))}}B(sa,"type","Gradient"),Pe.setClass(sa,"gradient"),Pe.setClass(sa,"linear"),Pe.setClass(sa,"radial");class la{constructor(e){B(this,"color","rgb(0, 0, 0)"),B(this,"width",1),B(this,"shadow",null),B(this,"strokeLineCap","round"),B(this,"strokeLineJoin","round"),B(this,"strokeMiterLimit",10),B(this,"strokeDashArray",null),B(this,"limitedToCanvasSize",!1),this.canvas=e}_setBrushStyles(e){e.strokeStyle=this.color,e.lineWidth=this.width,e.lineCap=this.strokeLineCap,e.miterLimit=this.strokeMiterLimit,e.lineJoin=this.strokeLineJoin,e.setLineDash(this.strokeDashArray||[])}_saveAndTransform(e){const t=this.canvas.viewportTransform;e.save(),e.transform(t[0],t[1],t[2],t[3],t[4],t[5])}needsFullRender(){return new dn(this.color).getAlpha()<1||!!this.shadow}_setShadow(){if(!this.shadow||!this.canvas)return;const e=this.canvas,t=this.shadow,n=e.contextTop,r=e.getZoom()*e.getRetinaScaling();n.shadowColor=t.color,n.shadowBlur=t.blur*r,n.shadowOffsetX=t.offsetX*r,n.shadowOffsetY=t.offsetY*r}_resetShadow(){const e=this.canvas.contextTop;e.shadowColor="",e.shadowBlur=e.shadowOffsetX=e.shadowOffsetY=0}_isOutSideCanvas(e){return e.x<0||e.x>this.canvas.getWidth()||e.y<0||e.y>this.canvas.getHeight()}}class ca extends ni{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{path:n,left:r,top:i}=t,o=Object(p.a)(t,A);super(),Object.assign(this,ca.ownDefaults),this.setOptions(o),this._setPath(e||[],!0),"number"===typeof r&&this.set(se,r),"number"===typeof i&&this.set(le,i)}_setPath(e,t){this.path=po(Array.isArray(e)?e:jo(e)),this.setBoundingBox(t)}_findCenterFromElement(){const e=this._calcBoundsFromPath();return new De(e.left+e.width/2,e.top+e.height/2)}_renderPathCommands(e){const t=-this.pathOffset.x,n=-this.pathOffset.
2y;e.beginPath();for(const r of this.path)switch(r[0]){case"L":e.lineTo(r[1]+t,r[2]+n);break;case"M":e.moveTo(r[1]+t,r[2]+n);break;case"C":e.bezierCurveTo(r[1]+t,r[2]+n,r[3]+t,r[4]+n,r[5]+t,r[6]+n);break;case"Q":e.quadraticCurveTo(r[1]+t,r[2]+n,r[3]+t,r[4]+n);break;case"Z":e.closePath()}}_render(e){this._renderPathCommands(e),this._renderPaintInOrder(e)}toString(){return"#<Path (".concat(this.complexity(),'): { "top": ').concat(this.top,', "left": ').concat(this.left," }>")}toObject(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Object(g.a)(Object(g.a)({},super.toObject(e)),{},{path:this.path.map((e=>e.slice()))})}toDatalessObject(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=this.toObject(e);return this.sourcePath&&(delete t.path,t.sourcePath=this.sourcePath),t}_toSVG(){const e=Mo(this.path,z.NUM_FRACTION_DIGITS);return["<path ","COMMON_PARTS",'d="'.concat(e,'" stroke-linecap="round" />\n')]}_getOffsetTransform(){const e=z.NUM_FRACTION_DIGITS;return" translate(".concat(mt(-this.pathOffset.x,e),", ").concat(mt(-this.pathOffset.y,e),")")}toClipPathSVG(e){const t=this._getOffsetTransform();return"\t"+this._createBaseClipPathSVGMarkup(this._toSVG(),{reviver:e,additionalTransform:t})}toSVG(e){const t=this._getOffsetTransform();return this._createBaseSVGMarkup(this._toSVG(),{reviver:e,additionalTransform:t})}complexity(){return this.path.length}setDimensions(){this.setBoundingBox()}setBoundingBox(e){const{width:t,height:n,pathOffset:r}=this._calcDimensions();this.set({width:t,height:n,pathOffset:r}),e&&this.setPositionByOrigin(r,ae,ae)}_calcBoundsFromPath(){const e=[];let t=0,n=0,r=0,i=0;for(const o of this.path)switch(o[0]){case"L":r=o[1],i=o[2],e.push({x:t,y:n},{x:r,y:i});break;case"M":r=o[1],i=o[2],t=r,n=i;break;case"C":e.push(...ho(r,i,o[1],o[2],o[3],o[4],o[5],o[6])),r=o[5],i=o[6];break;case"Q":e.push(...ho(r,i,o[1],o[2],o[1],o[2],o[3],o[4])),r=o[3],i=o[4];break;case"Z":r=t,i=n}return Nt(e)}_calcDimensions(){const e=this._calcBoundsFromPath();return Object(g.a)(Object(g.a)({},e),{},{pathOffset:new De(e.left+e.width/2,e.top+e.height/2)})}static fromObject(e){return this._fromObject(e,{extraParam:"path"})}static async fromElement(e,t,n){const r=Hi(e,this.ATTRIBUTE_NAMES,n),{d:i}=r,o=Object(p.a)(r,P);return new this(i,Object(g.a)(Object(g.a)(Object(g.a)({},o),t),{},{left:void 0,top:void 0}))}}B(ca,"type","Path"),B(ca,"cacheProperties",[...ir,"path","fillRule"]),B(ca,"ATTRIBUTE_NAMES",[...xi,"d"]),Pe.setClass(ca),Pe.setSVGClass(ca);class ua extends la{constructor(e){super(e),B(this,"decimate",.4),B(this,"drawStraightLine",!1),B(this,"straightLineKey","shiftKey"),this._points=[],this._hasStraightLine=!1}needsFullRender(){return super.needsFullRender()||this._hasStraightLine}static drawSegment(e,t,n){const r=t.midPointFrom(n);return e.quadraticCurveTo(t.x,t.y,r.x,r.y),r}onMouseDown(e,t){let{e:n}=t;this.canvas._isMainEvent(n)&&(this.drawStraightLine=!!this.straightLineKey&&n[this.straightLineKey],this._prepareForDrawing(e),this._addPoint(e),this._render())}onMouseMove(e,t){let{e:n}=t;if(this.canvas._isMainEvent(n)&&(this.drawStraightLine=!!this.straightLineKey&&n[this.straightLineKey],(!0!==this.limitedToCanvasSize||!this._isOutSideCanvas(e))&&this._addPoint(e)&&this._points.length>1))if(this.needsFullRender())this.canvas.clearContext(this.canvas.contextTop),this._render();else{const e=this._points,t=e.length,n=this.canvas.contextTop;this._saveAndTransform(n),this.oldEnd&&(n.beginPath(),n.moveTo(this.oldEnd.x,this.oldEnd.y)),this.oldEnd=ua.drawSegment(n,e[t-2],e[t-1]),n.stroke(),n.restore()}}onMouseUp(e){let{e:t}=e;return!this.canvas._isMainEvent(t)||(this.drawStraightLine=!1,this.oldEnd=void 0,this._finalizeAndAddPath(),!1)}_prepareForDrawing(e){this._reset(),this._addPoint(e),this.canvas.contextTop.moveTo(e.x,e.y)}_addPoint(e){return!(this._points.length>1&&e.eq(this._points[this._points.length-1]))&&(this.drawStraightLine&&this._points.length>1&&(this._hasStraightLine=!0,this._points.pop()),this._points.push(e),!0)}_reset(){this._points=[],this._setBrushStyles(this.canvas.contextTop),this._setShadow(),this._hasStraightLine=!1}_render(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.canvas.contextTop,t=this._points[0],n=this._points[1];if(this._saveAndTransform(e),e.beginPath(),2===this._points.length&&t.x===n.x&&t.y===n.y){const e=this.width/1e3;t.x-=e,n.x+=e}e.moveTo(t.x,t.y);for(let r=1;r<this._points.length;r++)ua.drawSegment(e,t,n),t=this._points[r],n=this._points[r+1];
2e.lineTo(t.x,t.y),e.stroke(),e.restore()}convertPointsToSVGPath(e){const t=this.width/1e3;return Lo(e,t)}createPath(e){const t=new ca(e,{fill:null,stroke:this.color,strokeWidth:this.width,strokeLineCap:this.strokeLineCap,strokeMiterLimit:this.strokeMiterLimit,strokeLineJoin:this.strokeLineJoin,strokeDashArray:this.strokeDashArray});return this.shadow&&(this.shadow.affectStroke=!0,t.shadow=new tr(this.shadow)),t}decimatePoints(e,t){if(e.length<=2)return e;let n,r=e[0];const i=this.canvas.getZoom(),o=Math.pow(t/i,2),a=e.length-1,s=[r];for(let l=1;l<a-1;l++)n=Math.pow(r.x-e[l].x,2)+Math.pow(r.y-e[l].y,2),n>=o&&(r=e[l],s.push(r));return s.push(e[a]),s}_finalizeAndAddPath(){this.canvas.contextTop.closePath(),this.decimate&&(this._points=this.decimatePoints(this._points,this.decimate));const e=this.convertPointsToSVGPath(this._points);if(function(e){return"M 0 0 Q 0 0 0 0 L 0 0"===Mo(e)}(e))return void this.canvas.requestRenderAll();const t=this.createPath(e);this.canvas.clearContext(this.canvas.contextTop),this.canvas.fire("before:path:created",{path:t}),this.canvas.add(t),this.canvas.requestRenderAll(),t.setCoords(),this._resetShadow(),this.canvas.fire("path:created",{path:t})}}const ha=["radius","startAngle","endAngle","counterClockwise"];class fa extends ni{static getDefaults(){return Object(g.a)(Object(g.a)({},super.getDefaults()),fa.ownDefaults)}constructor(e){super(),Object.assign(this,fa.ownDefaults),this.setOptions(e)}_set(e,t){return super._set(e,t),"radius"===e&&this.setRadius(t),this}_render(e){e.beginPath(),e.arc(0,0,this.radius,$e(this.startAngle),$e(this.endAngle),this.counterClockwise),this._renderPaintInOrder(e)}getRadiusX(){return this.get("radius")*this.get(Se)}getRadiusY(){return this.get("radius")*this.get(Ce)}setRadius(e){this.radius=e,this.set({width:2*e,height:2*e})}toObject(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return super.toObject([...ha,...e])}_toSVG(){const e=(this.endAngle-this.startAngle)%360;if(0===e)return["<circle ","COMMON_PARTS",'cx="0" cy="0" ','r="',"".concat(this.radius),'" />\n'];{const{radius:t}=this,n=$e(this.startAngle),r=$e(this.endAngle),i=Me(n)*t,o=Re(n)*t,a=Me(r)*t,s=Re(r)*t,l=e>180?1:0,c=this.counterClockwise?0:1;return['<path d="M '.concat(i," ").concat(o," A ").concat(t," ").concat(t," 0 ").concat(l," ").concat(c," ").concat(a," ").concat(s,'" '),"COMMON_PARTS"," />\n"]}}static async fromElement(e,t,n){const r=Hi(e,this.ATTRIBUTE_NAMES,n),{left:i=0,top:o=0,radius:a=0}=r,s=Object(p.a)(r,j);return new this(Object(g.a)(Object(g.a)({},s),{},{radius:a,left:i-a,top:o-a}))}static fromObject(e){return super._fromObject(e)}}B(fa,"type","Circle"),B(fa,"cacheProperties",[...ir,...ha]),B(fa,"ownDefaults",{radius:0,startAngle:0,endAngle:360,counterClockwise:!1}),B(fa,"ATTRIBUTE_NAMES",["cx","cy","r",...xi]),Pe.setClass(fa),Pe.setSVGClass(fa);const da=["x1","x2","y1","y2"];class pa extends ni{constructor(){let[e,t,n,r]=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[0,0,0,0],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),Object.assign(this,pa.ownDefaults),this.setOptions(i),this.x1=e,this.x2=n,this.y1=t,this.y2=r,this._setWidthHeight();const{left:o,top:a}=i;"number"===typeof o&&this.set(se,o),"number"===typeof a&&this.set(le,a)}_setWidthHeight(){const{x1:e,y1:t,x2:n,y2:r}=this;this.width=Math.abs(n-e),this.height=Math.abs(r-t);const{left:i,top:o,width:a,height:s}=Nt([{x:e,y:t},{x:n,y:r}]),l=new De(i+a/2,o+s/2);this.setPositionByOrigin(l,ae,ae)}_set(e,t){return super._set(e,t),da.includes(e)&&this._setWidthHeight(),this}_render(e){e.beginPath();const t=this.calcLinePoints();e.moveTo(t.x1,t.y1),e.lineTo(t.x2,t.y2),e.lineWidth=this.strokeWidth;const n=e.strokeStyle;var r;bt(this.stroke)?e.strokeStyle=this.stroke.toLive(e):e.strokeStyle=null!==(r=this.stroke)&&void 0!==r?r:e.fillStyle;this.stroke&&this._renderStroke(e),e.strokeStyle=n}_findCenterFromElement(){return new De((this.x1+this.x2)/2,(this.y1+this.y2)/2)}toObject(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Object(g.a)(Object(g.a)({},super.toObject(e)),this.calcLinePoints())}_getNonTransformedDimensions(){const e=super._getNonTransformedDimensions();return"butt"===this.strokeLineCap&&(0===this.width&&(e.y-=this.strokeWidth),0===this.height&&(e.x-=this.strokeWidth)),e}calcLinePoints(){const{x1:e,x2:t,y1:n,y2:r,width:i,height:o}=this,a=e<=t?-1:1,s=n<=r?-1:1;return{x1:a*i/2,x2:a*-i/2,y1:s*o/2,y2:s*-o/2}}_toSVG(){const{x1:e,x2:t,y1:n,y2:r}=this.calcLinePoints();return["<line ","COMMON_PARTS",'x1="'.concat(e,'" y1="').concat(n,'" x2="').concat(t,'" y2="').
2concat(r,'" />\n')]}static async fromElement(e,t,n){const r=Hi(e,this.ATTRIBUTE_NAMES,n),{x1:i=0,y1:o=0,x2:a=0,y2:s=0}=r;return new this([i,o,a,s],Object(p.a)(r,L))}static fromObject(e){let{x1:t,y1:n,x2:r,y2:i}=e,o=Object(p.a)(e,M);return this._fromObject(Object(g.a)(Object(g.a)({},o),{},{points:[t,n,r,i]}),{extraParam:"points"})}}B(pa,"type","Line"),B(pa,"cacheProperties",[...ir,...da]),B(pa,"ATTRIBUTE_NAMES",xi.concat(da)),Pe.setClass(pa),Pe.setSVGClass(pa);class ga extends ni{static getDefaults(){return Object(g.a)(Object(g.a)({},super.getDefaults()),ga.ownDefaults)}constructor(e){super(),Object.assign(this,ga.ownDefaults),this.setOptions(e)}_render(e){const t=this.width/2,n=this.height/2;e.beginPath(),e.moveTo(-t,n),e.lineTo(0,-n),e.lineTo(t,n),e.closePath(),this._renderPaintInOrder(e)}_toSVG(){const e=this.width/2,t=this.height/2;return["<polygon ","COMMON_PARTS",'points="',"".concat(-e," ").concat(t,",0 ").concat(-t,",").concat(e," ").concat(t),'" />']}}B(ga,"type","Triangle"),B(ga,"ownDefaults",{width:100,height:100}),Pe.setClass(ga),Pe.setSVGClass(ga);const va=["rx","ry"];class ma extends ni{static getDefaults(){return Object(g.a)(Object(g.a)({},super.getDefaults()),ma.ownDefaults)}constructor(e){super(),Object.assign(this,ma.ownDefaults),this.setOptions(e)}_set(e,t){switch(super._set(e,t),e){case"rx":this.rx=t,this.set("width",2*t);break;case"ry":this.ry=t,this.set("height",2*t)}return this}getRx(){return this.get("rx")*this.get(Se)}getRy(){return this.get("ry")*this.get(Ce)}toObject(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return super.toObject([...va,...e])}_toSVG(){return["<ellipse ","COMMON_PARTS",'cx="0" cy="0" rx="'.concat(this.rx,'" ry="').concat(this.ry,'" />\n')]}_render(e){e.beginPath(),e.save(),e.transform(1,0,0,this.ry/this.rx,0,0),e.arc(0,0,this.rx,0,ne,!1),e.restore(),this._renderPaintInOrder(e)}static async fromElement(e,t,n){const r=Hi(e,this.ATTRIBUTE_NAMES,n);return r.left=(r.left||0)-r.rx,r.top=(r.top||0)-r.ry,new this(r)}}B(ma,"type","Ellipse"),B(ma,"cacheProperties",[...ir,...va]),B(ma,"ownDefaults",{rx:0,ry:0}),B(ma,"ATTRIBUTE_NAMES",[...xi,"cx","cy","rx","ry"]),Pe.setClass(ma),Pe.setSVGClass(ma);const ya={exactBoundingBox:!1};class ba extends ni{static getDefaults(){return Object(g.a)(Object(g.a)({},super.getDefaults()),ba.ownDefaults)}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),B(this,"strokeDiff",void 0),Object.assign(this,ba.ownDefaults),this.setOptions(t),this.points=e;const{left:n,top:r}=t;this.initialized=!0,this.setBoundingBox(!0),"number"===typeof n&&this.set(se,n),"number"===typeof r&&this.set(le,r)}isOpen(){return!0}_projectStrokeOnPoints(e){return ci(this.points,e,this.isOpen())}_calcDimensions(e){e=Object(g.a)({scaleX:this.scaleX,scaleY:this.scaleY,skewX:this.skewX,skewY:this.skewY,strokeLineCap:this.strokeLineCap,strokeLineJoin:this.strokeLineJoin,strokeMiterLimit:this.strokeMiterLimit,strokeUniform:this.strokeUniform,strokeWidth:this.strokeWidth},e||{});const t=this.exactBoundingBox?this._projectStrokeOnPoints(e).map((e=>e.projectedPoint)):this.points;if(0===t.length)return{left:0,top:0,width:0,height:0,pathOffset:new De,strokeOffset:new De,strokeDiff:new De};const n=Nt(t),r=ut(Object(g.a)(Object(g.a)({},e),{},{scaleX:1,scaleY:1})),i=Nt(this.points.map((e=>Qe(e,r,!0)))),o=new De(this.scaleX,this.scaleY);let a=n.left+n.width/2,s=n.top+n.height/2;return this.exactBoundingBox&&(a-=s*Math.tan($e(this.skewX)),s-=a*Math.tan($e(this.skewY))),Object(g.a)(Object(g.a)({},n),{},{pathOffset:new De(a,s),strokeOffset:new De(i.left,i.top).subtract(new De(n.left,n.top)).multiply(o),strokeDiff:new De(n.width,n.height).subtract(new De(i.width,i.height)).multiply(o)})}_findCenterFromElement(){const e=Nt(this.points);return new De(e.left+e.width/2,e.top+e.height/2)}setDimensions(){this.setBoundingBox()}setBoundingBox(e){const{left:t,top:n,width:r,height:i,pathOffset:o,strokeOffset:a,strokeDiff:s}=this._calcDimensions();this.set({width:r,height:i,pathOffset:o,strokeOffset:a,strokeDiff:s}),e&&this.setPositionByOrigin(new De(t+r/2,n+i/2),ae,ae)}isStrokeAccountedForInDimensions(){return this.exactBoundingBox}_getNonTransformedDimensions(){return this.exactBoundingBox?new De(this.width,this.height):super._getNonTransformedDimensions()}_getTransformedDimensions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.exactBoundingBox){let o;if(Object.keys(e).some((e=>this.strokeUniform||this.constructor.layoutProperties.includes(e)))){var t,n;const{width:r,height:i}=this._calcDimensions(e);o=new De(null!==(t=e.width)&&void 0!==t?t:r,null!==(n=e.height)&&void 0!==n?n:i)}else{var r,i;o=new De(null!==(r=e.width)&&void 0!==r?r:this.width,null!==(i=e.height)&&void 0!==i?i:this.height)}return o.multiply(new De(e.scaleX||this.scaleX,e.scaleY||this.scaleY))}return super._getTransformedDimensions(e)}_set(e,t){const n=this.initialized&&this[e]!==t,r=super._set(e,t);return this.exactBoundingBox&&n&&((e===Se||e===Ce)&&this.strokeUniform&&this.constructor.layoutProperties.includes("strokeUniform")||this.constructor.layoutProperties.includes(e))&&this.setDimensions(),r}toObject(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Object(g.a)(Object(g.a)({},super.toObject(e)),{},{points:this.points.map((e=>{let{x:t,y:n}=e;return{x:t,y:n}}))})}
2_toSVG(){const e=[],t=this.pathOffset.x,n=this.pathOffset.y,r=z.NUM_FRACTION_DIGITS;for(let i=0,o=this.points.length;i<o;i++)e.push(mt(this.points[i].x-t,r),",",mt(this.points[i].y-n,r)," ");return["<".concat(this.constructor.type.toLowerCase()," "),"COMMON_PARTS",'points="'.concat(e.join(""),'" />\n')]}_render(e){const t=this.points.length,n=this.pathOffset.x,r=this.pathOffset.y;if(t&&!isNaN(this.points[t-1].y)){e.beginPath(),e.moveTo(this.points[0].x-n,this.points[0].y-r);for(let i=0;i<t;i++){const t=this.points[i];e.lineTo(t.x-n,t.y-r)}!this.isOpen()&&e.closePath(),this._renderPaintInOrder(e)}}complexity(){return this.points.length}static async fromElement(e,t,n){const r=function(e){if(!e)return[];const t=e.replace(/,/g," ").trim().split(/\s+/),n=[];for(let r=0;r<t.length;r+=2)n.push({x:parseFloat(t[r]),y:parseFloat(t[r+1])});return n}(e.getAttribute("points")),i=Hi(e,this.ATTRIBUTE_NAMES,n),{left:o,top:a}=i,s=Object(p.a)(i,R);return new this(r,Object(g.a)(Object(g.a)({},s),t))}static fromObject(e){return this._fromObject(e,{extraParam:"points"})}}B(ba,"ownDefaults",ya),B(ba,"type","Polyline"),B(ba,"layoutProperties",[ke,Oe,"strokeLineCap","strokeLineJoin","strokeMiterLimit","strokeWidth","strokeUniform","points"]),B(ba,"cacheProperties",[...ir,"points"]),B(ba,"ATTRIBUTE_NAMES",[...xi]),Pe.setClass(ba),Pe.setSVGClass(ba);class xa extends ba{isOpen(){return!1}}B(xa,"ownDefaults",ya),B(xa,"type","Polygon"),Pe.setClass(xa),Pe.setSVGClass(xa);class _a extends ni{isEmptyStyles(e){if(!this.styles)return!0;if("undefined"!==typeof e&&!this.styles[e])return!0;const t="undefined"===typeof e?this.styles:{line:this.styles[e]};for(const n in t)for(const e in t[n])for(const r in t[n][e])return!1;return!0}styleHas(e,t){if(!this.styles)return!1;if("undefined"!==typeof t&&!this.styles[t])return!1;const n="undefined"===typeof t?this.styles:{0:this.styles[t]};for(const r in n)for(const t in n[r])if("undefined"!==typeof n[r][t][e])return!0;return!1}cleanStyle(e){if(!this.styles)return!1;const t=this.styles;let n,r,i=0,o=!0,a=0;for(const s in t){n=0;for(const a in t[s]){const l=t[s][a]||{};i++,void 0!==l[e]?(r?l[e]!==r&&(o=!1):r=l[e],l[e]===this[e]&&delete l[e]):o=!1,0!==Object.keys(l).length?n++:delete t[s][a]}0===n&&delete t[s]}for(let s=0;s<this._textLines.length;s++)a+=this._textLines[s].length;o&&i===a&&(this[e]=r,this.removeStyle(e))}removeStyle(e){if(!this.styles)return;const t=this.styles;let n,r,i;for(r in t){for(i in n=t[r],n)delete n[i][e],0===Object.keys(n[i]).length&&delete n[i];0===Object.keys(n).length&&delete t[r]}}_extendStyles(e,t){const{lineIndex:n,charIndex:r}=this.get2DCursorLocation(e);this._getLineStyle(n)||this._setLineStyle(n);const i=vt(Object(g.a)(Object(g.a)({},this._getStyleDeclaration(n,r)),t),(e=>void 0!==e));this._setStyleDeclaration(n,r,i)}getSelectionStyles(e,t,n){const r=[];for(let i=e;i<(t||e);i++)r.push(this.getStyleAtPosition(i,n));return r}getStyleAtPosition(e,t){const{lineIndex:n,charIndex:r}=this.get2DCursorLocation(e);return t?this.getCompleteStyleDeclaration(n,r):this._getStyleDeclaration(n,r)}setSelectionStyles(e,t,n){for(let r=t;r<(n||t);r++)this._extendStyles(r,e);this._forceClearCache=!0}_getStyleDeclaration(e,t){var n;const r=this.styles&&this.styles[e];return r&&null!==(n=r[t])&&void 0!==n?n:{}}getCompleteStyleDeclaration(e,t){return Object(g.a)(Object(g.a)({},gt(this,this.constructor._styleProperties)),this._getStyleDeclaration(e,t))}_setStyleDeclaration(e,t,n){this.styles[e][t]=n}_deleteStyleDeclaration(e,t){delete this.styles[e][t]}_getLineStyle(e){return!!this.styles[e]}_setLineStyle(e){this.styles[e]={}}_deleteLineStyle(e){delete this.styles[e]}}B(_a,"_styleProperties",Cn);const wa=/ +/g,Sa=/"/g;function Ca(e,t,n,r,i){return"\t\t".concat(function(e,t){let{left:n,top:r,width:i,height:o}=t,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:z.NUM_FRACTION_DIGITS;const s=vn(Ee,e,!1),[l,c,u,h]=[n,r,i,o].map((e=>mt(e,a)));return"<rect ".concat(s,' x="').concat(l,'" y="').concat(c,'" width="').concat(u,'" height="').concat(h,'"></rect>')}(e,{left:t,top:n,width:r,height:i}),"\n")}const ka=be,Oa=e=>function(t,n,r){const{points:i,pathOffset:o}=r;return new De(i[e]).subtract(o).transform(et(r.getViewportTransform(),r.calcTransformMatrix()))},Ea=(e,t,n,r)=>{const{target:i,pointIndex:o}
2=t,a=i,s=Wt(new De(n,r),void 0,a.calcOwnMatrix());return a.points[o]=s.add(a.pathOffset),a.setDimensions(),a.set("dirty",!0),!0},Ta=(e,t)=>function(n,r,i,o){const a=r.target,s=new De(a.points[(e>0?e:a.points.length)-1]),l=s.subtract(a.pathOffset).transform(a.calcOwnMatrix()),c=t(n,Object(g.a)(Object(g.a)({},r),{},{pointIndex:e}),i,o),u=s.subtract(a.pathOffset).transform(a.calcOwnMatrix()).subtract(l);return a.left-=u.x,a.top-=u.y,c},Aa=e=>Cr(ka,Ta(e,Ea));const Pa=(e,t,n)=>{const{path:r,pathOffset:i}=e,o=r[t];return new De(o[n]-i.x,o[n+1]-i.y).transform(et(e.getViewportTransform(),e.calcTransformMatrix()))};function ja(e,t,n){const{commandIndex:r,pointIndex:i}=this;return Pa(n,r,i)}function La(e,t,n,r){const{target:i}=t,{commandIndex:o,pointIndex:a}=this,s=((e,t,n,r,i)=>{const{path:o,pathOffset:a}=e,s=o[(r>0?r:o.length)-1],l=new De(s[i],s[i+1]),c=l.subtract(a).transform(e.calcOwnMatrix()),u=Wt(new De(t,n),void 0,e.calcOwnMatrix());o[r][i]=u.x+a.x,o[r][i+1]=u.y+a.y,e.setDimensions();const h=l.subtract(e.pathOffset).transform(e.calcOwnMatrix()).subtract(c);return e.left-=h.x,e.top-=h.y,e.set("dirty",!0),!0})(i,n,r,o,a);return Xt(this.actionName,Object(g.a)(Object(g.a)({},en(e,t,n,r)),{},{commandIndex:o,pointIndex:a})),s}const Ma=e=>"C"===e?5:"Q"===e?3:1;class Ra extends Ar{constructor(e){super(e)}render(e,t,n,r,i){const o=Object(g.a)(Object(g.a)({},r),{},{cornerColor:this.controlFill,cornerStrokeColor:this.controlStroke,transparentCorners:!this.controlFill});super.render(e,t,n,o,i)}}class Da extends Ra{constructor(e){super(e)}render(e,t,n,r,i){const{path:o}=i,{commandIndex:a,pointIndex:s,connectToCommandIndex:l,connectToPointIndex:c}=this;e.save(),e.strokeStyle=this.controlStroke,this.connectionDashArray&&e.setLineDash(this.connectionDashArray);const[u]=o[a],h=Pa(i,l,c);if("Q"===u){const r=Pa(i,a,s+2);e.moveTo(r.x,r.y),e.lineTo(t,n)}else e.moveTo(t,n);e.lineTo(h.x,h.y),e.stroke(),e.restore(),super.render(e,t,n,r,i)}}const Ia=(e,t,n,r,i,o)=>new(n?Da:Ra)(Object(g.a)(Object(g.a)({commandIndex:e,pointIndex:t,actionName:"modifyPath",positionHandler:ja,actionHandler:La,connectToCommandIndex:i,connectToPointIndex:o},r),n?r.controlPointStyle:r.pointStyle));var Na=Object.freeze({__proto__:null,changeWidth:Or,createObjectDefaultControls:Zr,createPathControls:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={};let r="M";return e.path.forEach(((e,i)=>{const o=e[0];switch("Z"!==o&&(n["c_".concat(i,"_").concat(o)]=Ia(i,e.length-2,!1,t)),o){case"C":n["c_".concat(i,"_C_CP_1")]=Ia(i,1,!0,t,i-1,Ma(r)),n["c_".concat(i,"_C_CP_2")]=Ia(i,3,!0,t,i,5);break;case"Q":n["c_".concat(i,"_Q_CP_1")]=Ia(i,1,!0,t,i,3)}r=o})),n},createPolyActionHandler:Aa,createPolyControls:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={};for(let r=0;r<("number"===typeof e?e:e.points.length);r++)n["p".concat(r)]=new Ar(Object(g.a)({actionName:ka,positionHandler:Oa(r),actionHandler:Aa(r)},t));return n},createPolyPositionHandler:Oa,createResizeControls:Qr,createTextboxDefaultControls:Jr,dragHandler:rn,factoryPolyActionHandler:Ta,getLocalPoint:nn,polyActionHandler:Ea,renderCircleControl:Er,renderSquareControl:Tr,rotationStyleHandler:Pr,rotationWithSnapping:jr,scaleCursorStyleHandler:Dr,scaleOrSkewActionName:Xr,scaleSkewCursorStyleHandler:Yr,scalingEqually:Nr,scalingX:Fr,scalingXOrSkewingY:$r,scalingY:Br,scalingYOrSkewingX:Kr,skewCursorStyleHandler:Vr,skewHandlerX:Wr,skewHandlerY:Gr,wrapWithFireEvent:Cr,wrapWithFixedAnchor:kr});let Fa;class Ba extends _a{static getDefaults(){return Object(g.a)(Object(g.a)({},super.getDefaults()),Ba.ownDefaults)}constructor(e,t){super(),B(this,"__charBounds",[]),Object.assign(this,Ba.ownDefaults),this.setOptions(t),this.styles||(this.styles={}),this.text=e,this.initialized=!0,this.path&&this.setPathInfo(),this.initDimensions(),this.setCoords()}setPathInfo(){const e=this.path;e&&(e.segmentsInfo=ko(e.path),e.width||e.height||(console.log(this,"text path empty"),this.path=void 0))}_splitText(){const e=this._splitTextIntoLines(this.text);return this.textLines=e.lines,this._textLines=e.graphemeLines,this._unwrappedTextLines=e._unwrappedLines,this._text=e.graphemeText,e}initDimensions(){this._splitText(),this._clearCache(),this.dirty=!0,this.path?(this.width=this.path.width,this.height=this.path.height):(this.width=this.calcTextWidth()||this.cursorWidth||this.MIN_TEXT_WIDTH,this.height=this.calcTextHeight()),this.textAlign.includes(On)&&this.enlargeSpace
2s()}enlargeSpaces(){let e,t,n,r,i,o,a;for(let s=0,l=this._textLines.length;s<l;s++)if((this.textAlign===On||s!==l-1&&!this.isEndOfWrapping(s))&&(r=0,i=this._textLines[s],t=this.getLineWidth(s),t<this.width&&(a=this.textLines[s].match(this._reSpacesAndTabs)))){n=a.length,e=(this.width-t)/n;for(let t=0;t<=i.length;t++)o=this.__charBounds[s][t],this._reSpaceAndTab.test(i[t])?(o.width+=e,o.kernedWidth+=e,o.left+=r,r+=e):o.left+=r}}isEndOfWrapping(e){return e===this._textLines.length-1}missingNewlineOffset(e){return 1}get2DCursorLocation(e,t){const n=t?this._unwrappedTextLines:this._textLines;let r;for(r=0;r<n.length;r++){if(e<=n[r].length)return{lineIndex:r,charIndex:e};e-=n[r].length+this.missingNewlineOffset(r,t)}return{lineIndex:r-1,charIndex:n[r-1].length<e?n[r-1].length:e}}toString(){return"#<Text (".concat(this.complexity(),'): { "text": "').concat(this.text,'", "fontFamily": "').concat(this.fontFamily,'" }>')}_getCacheCanvasDimensions(){const e=super._getCacheCanvasDimensions(),t=this.fontSize;return e.width+=t*e.zoomX*2,e.height+=t*e.zoomY*2,e}_render(e){const t=this.path;t&&!t.isNotVisible()&&t._render(e),this._setTextStyles(e),this._renderTextLinesBackground(e),this._renderTextDecoration(e,"underline"),this._renderText(e),this._renderTextDecoration(e,"overline"),this._renderTextDecoration(e,"linethrough")}_renderText(e){this.paintFirst===Te?(this._renderTextStroke(e),this._renderTextFill(e)):(this._renderTextFill(e),this._renderTextStroke(e))}_setTextStyles(e,t,n){if(e.textBaseline="alphabetic",this.path)switch(this.pathAlign){case ae:e.textBaseline="middle";break;case"ascender":e.textBaseline=le;break;case"descender":e.textBaseline=ce}e.font=this._getFontDeclaration(t,n)}calcTextWidth(){let e=this.getLineWidth(0);for(let t=1,n=this._textLines.length;t<n;t++){const n=this.getLineWidth(t);n>e&&(e=n)}return e}_renderTextLine(e,t,n,r,i,o){this._renderChars(e,t,n,r,i,o)}_renderTextLinesBackground(e){if(!this.textBackgroundColor&&!this.styleHas("textBackgroundColor"))return;const t=e.fillStyle,n=this._getLeftOffset();let r=this._getTopOffset();for(let i=0,o=this._textLines.length;i<o;i++){const t=this.getHeightOfLine(i);if(!this.textBackgroundColor&&!this.styleHas("textBackgroundColor",i)){r+=t;continue}const o=this._textLines[i].length,a=this._getLineLeftOffset(i);let s,l,c=0,u=0,h=this.getValueOfPropertyAt(i,0,"textBackgroundColor");for(let f=0;f<o;f++){const o=this.__charBounds[i][f];l=this.getValueOfPropertyAt(i,f,"textBackgroundColor"),this.path&&!this.isEditing?(e.save(),e.translate(o.renderLeft,o.renderTop),e.rotate(o.angle),e.fillStyle=l,l&&e.fillRect(-o.width/2,-t/this.lineHeight*(1-this._fontSizeFraction),o.width,t/this.lineHeight),e.restore()):l!==h?(s=n+a+u,"rtl"===this.direction&&(s=this.width-s-c),e.fillStyle=h,h&&e.fillRect(s,r,c,t/this.lineHeight),u=o.left,c=o.width,h=l):c+=o.kernedWidth}l&&!this.path&&(s=n+a+u,"rtl"===this.direction&&(s=this.width-s-c),e.fillStyle=l,e.fillRect(s,r,c,t/this.lineHeight)),r+=t}e.fillStyle=t,this._removeShadow(e)}_measureChar(e,t,n,r){const i=Q.getFontCache(t),o=this._getFontDeclaration(t),a=n+e,s=n&&o===this._getFontDeclaration(r),l=t.fontSize/this.CACHE_FONT_SIZE;let c,u,h,f;if(n&&void 0!==i[n]&&(h=i[n]),void 0!==i[e]&&(f=c=i[e]),s&&void 0!==i[a]&&(u=i[a],f=u-h),void 0===c||void 0===h||void 0===u){const r=function(){if(!Fa){const e=qe({width:0,height:0});Fa=e.getContext("2d")}return Fa}();this._setTextStyles(r,t,!0),void 0===c&&(f=c=r.measureText(e).width,i[e]=c),void 0===h&&s&&n&&(h=r.measureText(n).width,i[n]=h),s&&void 0===u&&(u=r.measureText(a).width,i[a]=u,f=u-h)}return{width:c*l,kernedWidth:f*l}}getHeightOfChar(e,t){return this.getValueOfPropertyAt(e,t,"fontSize")}measureLine(e){const t=this._measureLine(e);return 0!==this.charSpacing&&(t.width-=this._getWidthOfCharSpacing()),t.width<0&&(t.width=0),t}_measureLine(e){let t,n,r=0;const i=this.pathSide===ue,o=this.path,a=this._textLines[e],s=a.length,l=new Array(s);this.__charBounds[e]=l;for(let u=0;u<s;u++){const i=a[u];n=this._getGraphemeBox(i,e,u,t),l[u]=n,r+=n.kernedWidth,t=i}if(l[s]={left:n?n.left+n.width:0,width:0,kernedWidth:0,height:this.fontSize,deltaY:0},o&&o.segmentsInfo){let e=0;const t=o.segmentsInfo[o.segmentsInfo.length-1].length;switch(this.textAlign){case se:e=i?t-r:0;break;case ae:e=(t-r)/2;break;case ue:e=i?0:t-r}e+=this.pathStartOffset*(i?-1:1);for(let r=i?s-1:0;i?r>=0:r<s;i?r--:r++){n=l[r];var c=!1;e>=-2&&e+n.kernedWidth<=t+2&&(c=!0),c&&this._setGraphemeOnPath(e,n),e+=n.kernedWidth,n.visible=c}}return{width:r,numOfSpaces:0}}_setGraphemeOnPath(e,t){const n=e+t.kernedWidth/2,r=this.path,i=Oo(r.path,n,r.segmentsInfo);
2t.renderLeft=i.x-r.pathOffset.x,t.renderTop=i.y-r.pathOffset.y,t.angle=i.angle+(this.pathSide===ue?Math.PI:0)}_getGraphemeBox(e,t,n,r,i){const o=this.getCompleteStyleDeclaration(t,n),a=r?this.getCompleteStyleDeclaration(t,n-1):{},s=this._measureChar(e,o,r,a);let l,c=s.kernedWidth,u=s.width;0!==this.charSpacing&&(l=this._getWidthOfCharSpacing(),u+=l,c+=l);const h={width:u,left:0,height:o.fontSize,kernedWidth:c,deltaY:o.deltaY};if(n>0&&!i){const e=this.__charBounds[t][n-1];h.left=e.left+e.width+s.kernedWidth-s.width}return h}getHeightOfLine(e){if(this.__lineHeights[e])return this.__lineHeights[e];let t=this.getHeightOfChar(e,0);for(let n=1,r=this._textLines[e].length;n<r;n++)t=Math.max(this.getHeightOfChar(e,n),t);return this.__lineHeights[e]=t*this.lineHeight*this._fontSizeMult}calcTextHeight(){let e,t=0;for(let n=0,r=this._textLines.length;n<r;n++)e=this.getHeightOfLine(n),t+=n===r-1?e/this.lineHeight:e;return t}_getLeftOffset(){return"ltr"===this.direction?-this.width/2:this.width/2}_getTopOffset(){return-this.height/2}_shouldHideTextLine(){return!this.isEditing&&!this.path}_renderTextCommon(e,t){e.save();let n=0;const r=this._getLeftOffset(),i=this._getTopOffset();this.hasHideText=!1;for(let o=0,a=this._textLines.length;o<a;o++){const a=this.getHeightOfLine(o),s=a/this.lineHeight,l=this._getLineLeftOffset(o);if(this._shouldHideTextLine()&&n+.8*s>this.height){this.hasHideText=!0;break}this._renderTextLine(t,e,this._textLines[o],r+l,i+n+s,o),n+=a}e.restore()}showHideTextIcon(){var e;const t=null===(e=this.controls)||void 0===e?void 0:e.mb;t&&(t.render=(e,n,r,i,o)=>{switch(i=i||{},this.hasHideText&&(i=Object(g.a)(Object(g.a)({},i),{},{cornerStrokeColor:"#FF0000",cornerSize:10})),i.cornerStyle||o.cornerStyle){case"circle":Er.call(t,e,n,r,i,o);break;default:Tr.call(t,e,n,r,i,o)}})}_renderTextFill(e){(this.fill||this.styleHas(Ee))&&this._renderTextCommon(e,"fillText")}_renderTextStroke(e){(this.stroke&&0!==this.strokeWidth||!this.isEmptyStyles())&&(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(e),e.save(),this._setLineDash(e,this.strokeDashArray),e.beginPath(),this._renderTextCommon(e,"strokeText"),e.closePath(),e.restore())}_renderChars(e,t,n,r,i,o){const a=this.getHeightOfLine(o),s=this.textAlign.includes(On),l=this.path,c=!s&&0===this.charSpacing&&this.isEmptyStyles(o)&&!l,u="ltr"===this.direction,h="ltr"===this.direction?1:-1,f=t.direction;let d,p,g,v,m,y="",b=0;if(t.save(),f!==this.direction&&(t.canvas.setAttribute("dir",u?"ltr":"rtl"),t.direction=u?"ltr":"rtl",t.textAlign=u?se:ue),i-=a*this._fontSizeFraction/this.lineHeight,c)return this._renderChar(e,t,o,0,n.join(""),r,i),void t.restore();for(let x=0,_=n.length-1;x<=_;x++)v=x===_||this.charSpacing||l,y+=n[x],g=this.__charBounds[o][x],0===b?(r+=h*(g.kernedWidth-g.width),b+=g.width):b+=g.kernedWidth,s&&!v&&this._reSpaceAndTab.test(n[x])&&(v=!0),v||(d=d||this.getCompleteStyleDeclaration(o,x),p=this.getCompleteStyleDeclaration(o,x+1),v=mi(d,p,!1)),v&&(l&&!this.isEditing?g.visible&&(t.save(),t.translate(g.renderLeft,g.renderTop),t.rotate(g.angle),this._renderChar(e,t,o,x,y,-b/2,0),t.restore()):(m=r,this._renderChar(e,t,o,x,y,m,i)),y="",d=p,r+=h*b,b=0);t.restore()}_applyPatternGradientTransformText(e){const t=this.width+this.strokeWidth,n=this.height+this.strokeWidth,r=qe({width:t,height:n}),i=r.getContext("2d");return r.width=t,r.height=n,i.beginPath(),i.moveTo(0,0),i.lineTo(t,0),i.lineTo(t,n),i.lineTo(0,n),i.closePath(),i.translate(t/2,n/2),i.fillStyle=e.toLive(i),this._applyPatternGradientTransform(i,e),i.fill(),i.createPattern(r,"no-repeat")}handleFiller(e,t,n){let r,i;return bt(n)?"percentage"===n.gradientUnits||n.gradientTransform||n.patternTransform?(r=-this.width/2,i=-this.height/2,e.translate(r,i),e[t]=this._applyPatternGradientTransformText(n),{offsetX:r,offsetY:i}):(e[t]=n.toLive(e),this._applyPatternGradientTransform(e,n)):(e[t]=n,{offsetX:0,offsetY:0})}_setStrokeStyles(e,t){let{stroke:n,strokeWidth:r}=t;return e.lineWidth=r,e.lineCap=this.strokeLineCap,e.lineDashOffset=this.strokeDashOffset,e.lineJoin=this.strokeLineJoin,e.miterLimit=this.strokeMiterLimit,this.handleFiller(e,"strokeStyle",n)}_setFillStyles(e,t){let{fill:n}=t;return this.handleFiller(e,"fillStyle",n)}_renderChar(e,t,n,r,i,o,a){const s=this._getStyleDeclaration(n,r),l=this.getCompleteStyleDeclaration(n,r),c="fillText"===e&&l.fill,u="strokeText"===e&&l.stroke&&l.strokeWidth;if(u||c){if(t.save(),t.font=this._getFontDeclaration(l),s.textBackgroun
2dColor&&this._removeShadow(t),s.deltaY&&(a+=s.deltaY),c){const e=this._setFillStyles(t,l);t.fillText(i,o-e.offsetX,a-e.offsetY)}if(u){const e=this._setStrokeStyles(t,l);t.strokeText(i,o-e.offsetX,a-e.offsetY)}t.restore()}}setSuperscript(e,t){this._setScript(e,t,this.superscript)}setSubscript(e,t){this._setScript(e,t,this.subscript)}_setScript(e,t,n){const r=this.get2DCursorLocation(e,!0),i=this.getValueOfPropertyAt(r.lineIndex,r.charIndex,"fontSize"),o=this.getValueOfPropertyAt(r.lineIndex,r.charIndex,"deltaY"),a={fontSize:i*n.size,deltaY:o+i*n.baseline};this.setSelectionStyles(a,e,t)}_getLineLeftOffset(e){const t=this.getLineWidth(e),n=this.width-t,r=this.textAlign,i=this.direction,o=this.isEndOfWrapping(e);let a=0;return r===On||r===An&&!o||r===Tn&&!o||r===En&&!o?0:(r===ae&&(a=n/2),r===ue&&(a=n),r===An&&(a=n/2),r===Tn&&(a=n),"rtl"===i&&(r===ue||r===On||r===Tn?a=0:r===se||r===En?a=-n:r!==ae&&r!==An||(a=-n/2)),a)}_clearCache(){this._forceClearCache=!1,this.__lineWidths=[],this.__lineHeights=[],this.__charBounds=[]}getLineWidth(e){if(void 0!==this.__lineWidths[e])return this.__lineWidths[e];const{width:t}=this.measureLine(e);return this.__lineWidths[e]=t,t}_getWidthOfCharSpacing(){return 0!==this.charSpacing?this.fontSize*this.charSpacing/1e3:0}getValueOfPropertyAt(e,t,n){var r;return null!==(r=this._getStyleDeclaration(e,t)[n])&&void 0!==r?r:this[n]}_renderTextDecoration(e,t){if(!this[t]&&!this.styleHas(t))return;let n=this._getTopOffset();const r=this._getLeftOffset(),i=this.path,o=this._getWidthOfCharSpacing(),a="linethrough"===t?.5:"overline"===t?1:0,s=this.offsets[t];for(let l=0,c=this._textLines.length;l<c;l++){const c=this.getHeightOfLine(l);if(!this[t]&&!this.styleHas(t,l)){n+=c;continue}const u=this._textLines[l],h=c/this.lineHeight,f=this._getLineLeftOffset(l);let d=0,p=0,g=this.getValueOfPropertyAt(l,0,t),v=this.getValueOfPropertyAt(l,0,Ee),m=this.getValueOfPropertyAt(l,0,bn),y=g,b=v,x=m;const _=n+h*(1-this._fontSizeFraction);let w=this.getHeightOfChar(l,0),S=this.getValueOfPropertyAt(l,0,"deltaY");for(let n=0,o=u.length;n<o;n++){const o=this.__charBounds[l][n];y=this.getValueOfPropertyAt(l,n,t),b=this.getValueOfPropertyAt(l,n,Ee),x=this.getValueOfPropertyAt(l,n,bn);const c=this.getHeightOfChar(l,n),u=this.getValueOfPropertyAt(l,n,"deltaY");if(i&&y&&b){const t=this.fontSize*x/1e3;e.save(),e.fillStyle=v,e.translate(o.renderLeft,o.renderTop),e.rotate(o.angle),e.fillRect(-o.kernedWidth/2,s*c+u-a*t,o.kernedWidth,t),e.restore()}else if((y!==g||b!==v||c!==w||x!==m||u!==S)&&p>0){const t=this.fontSize*m/1e3;let n=r+f+d;"rtl"===this.direction&&(n=this.width-n-p),g&&v&&m&&(e.fillStyle=v,e.fillRect(n,_+s*w+S-a*t,p,t)),d=o.left,p=o.width,g=y,m=x,v=b,w=c,S=u}else p+=o.kernedWidth}let C=r+f+d;"rtl"===this.direction&&(C=this.width-C-p),e.fillStyle=b;const k=this.fontSize*x/1e3;y&&b&&x&&e.fillRect(C,_+s*w+S-a*k,p-o,k),n+=c}this._removeShadow(e)}_getFontDeclaration(){let{fontFamily:e=this.fontFamily,fontStyle:t=this.fontStyle,fontWeight:n=this.fontWeight,fontSize:r=this.fontSize}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;const o=e.includes("'")||e.includes('"')||e.includes(",")||Ba.genericFonts.includes(e.toLowerCase())?e:'"'.concat(e,'"');return[t,n,"".concat(i?this.CACHE_FONT_SIZE:r,"px"),o].join(" ")}render(e){this.visible&&(this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(this._forceClearCache&&this.initDimensions(),super.render(e)))}graphemeSplit(e){return di(e)}_splitTextIntoLines(e){const t=(e=this.path?e.replaceAll(/\r?\n/g,""):e).split(this._reNewline),n=new Array(t.length),r=["\n"];let i=[];for(let o=0;o<t.length;o++)n[o]=this.graphemeSplit(t[o]),i=i.concat(n[o],r);return i.pop(),{_unwrappedLines:n,lines:t,graphemeText:i,graphemeLines:n}}toObject(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Object(g.a)(Object(g.a)({},super.toObject([...Sn,...e])),{},{styles:yi(this.styles,this.text)},this.path?{path:this.path.toObject()}:{})}set(e,t){const{textLayoutProperties:n}=this.constructor;super.set(e,t);let r=!1,i=!1;if("object"===typeof e)for(const o in e)"path"===o&&this.setPathInfo(),r=r||n.includes(o),i=i||"path"===o;else r=n.includes(e),i="path"===e;return i&&this.setPathInfo(),r&&this.initialized&&(this.initDimensions(),this.setCoords()),this}complexity(){return 1}static fromObject(e){return this._fromObject(Object(g.a)(Object(g.a)({},e),{},{styles:bi(e.styles||{},e.text)}),{extraParam:"text"})}}B(Ba,"textLayoutProperties",wn),B(Ba,"cacheProperties",[...ir,...Sn]),B(Ba,"ownDefaults",kn),B(Ba,"enableCalcTextHeight",void 0),B(Ba,"type","Text"),B(Ba,"genericFonts",["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]),B(Ba,"ATTRIBUTE_NAMES",xi.concat("x","y","dx","dy","font-family","font-style","font-weight","font-size","letter-spacing","text-decoration","text-anchor")),ti(Ba,[class extends mn{_toSVG(){const e=this._getSVGLeftTopOffsets();let t;return t=this.path?this._getTextPath():this._getSVGTextAndBg(e.textTop,e.textLeft),this._wrapSVGTextAndBg(t)}toSVG(e){const t=this._createBaseSVGMarkup(this._toSVG(),{reviver:e,noStyle:!0,withShadow:!0}
2),n=this.path;return n?t+n._createBaseSVGMarkup(n._toSVG(),{reviver:e,withShadow:!0,additionalTransform:yt(this.calcOwnMatrix())}):t}_getTextPath(){const e=[],t=this._textLines.map((e=>e.join(""))).join("");let n="";this.__charBounds.length&&Array.from(t).forEach(((e,t)=>{const r=this.__charBounds[0][t];r&&r.visible&&(n+=e)}));const r=[],i={center:{anchor:"middle",offset:"50%"},right:{anchor:"end",offset:"100%"}};"center"!==this.textAlign&&"right"!==this.textAlign||r.push('text-anchor="'.concat(i[this.textAlign].anchor,'" '),'startOffset="'.concat(i[this.textAlign].offset,'" '));const o="TEXTPATH_".concat(this.id),a=['<textPath href="#'.concat(o,'" '),r.join(""),">",hi(n),"</textPath>"].join("");return e.push(a),{textSpans:e,textBgRects:[]}}_getSVGLeftTopOffsets(){return{textLeft:-this.width/2,textTop:-this.height/2,lineTop:this.getHeightOfLine(0)}}_wrapSVGTextAndBg(e){let{textBgRects:t,textSpans:n}=e;const r=this.getSvgTextDecoration(this);return[t.join(""),'\t\t<text xml:space="preserve" ','font-family="'.concat(this.fontFamily.replace(Sa,"'"),'" '),'font-size="'.concat(this.fontSize,'" '),this.fontStyle?'font-style="'.concat(this.fontStyle,'" '):"",this.fontWeight?'font-weight="'.concat(this.fontWeight,'" '):"",this.charSpacing?'letter-spacing="'+this._getWidthOfCharSpacing()+'" ':"",this.lineHeight?'line-height="'+this.lineHeight+'" ':"",r?'text-decoration="'.concat(r,'" '):"","rtl"===this.direction?'direction="'.concat(this.direction,'" '):"",'style="',this.getSvgStyles(!0),'"',this.addPaintOrder()," >",n.join(""),"</text>\n"]}_getSVGTextAndBg(e,t){const n=[],r=[];let i,o=e;this.backgroundColor&&r.push(...Ca(this.backgroundColor,-this.width/2,-this.height/2,this.width,this.height));for(let a=0,s=this._textLines.length;a<s;a++){let e=this.getHeightOfLine(a);if(o+.8*(e/this.lineHeight)>this.height/2)break;i=this._getLineLeftOffset(a),"rtl"===this.direction&&(i+=this.width),(this.textBackgroundColor||this.styleHas("textBackgroundColor",a))&&this._setSVGTextLineBg(r,a,t+i,o),this._setSVGTextLineText(n,a,t+i,o),o+=e}return{textSpans:n,textBgRects:r}}_createTextCharSpan(e,t,n,r,i){const o=z.NUM_FRACTION_DIGITS,a=this.getSvgSpanStyles(t,e!==e.trim()||!!e.match(wa)),s=a?'style="'.concat(a,'"'):"",l=t.deltaY,c=l?' dy="'.concat(mt(l,o),'" '):"",{angle:u,renderLeft:h,renderTop:f,width:d}=i;let p="";if(void 0!==h){const e=d/2;u&&(p=' rotate="'.concat(mt(Ke(u),o),'"'));const t=ot({angle:Ke(u)});t[4]=h,t[5]=f;const i=new De(-e,0).transform(t);n=i.x,r=i.y}return'<tspan x="'.concat(mt(n,o),'" y="').concat(mt(r,o),'" ').concat(c).concat(p).concat(s,">").concat(hi(e),"</tspan>")}_setSVGTextLineText(e,t,n,r){const i=this.getHeightOfLine(t),o=this.textAlign.includes(On),a=this._textLines[t];let s,l,c,u,h,f="",d=0;r+=i*(1-this._fontSizeFraction)/this.lineHeight,0===a.length&&(u={},e.push(this._createTextCharSpan("",u,n,r,{})));for(let p=0,g=a.length-1;p<=g;p++)h=p===g||this.charSpacing||this.path,f+=a[p],c=this.__charBounds[t][p],0===d?(n+=c.kernedWidth-c.width,d+=c.width):d+=c.kernedWidth,o&&!h&&this._reSpaceAndTab.test(a[p])&&(h=!0),h||(s=s||this.getCompleteStyleDeclaration(t,p),l=this.getCompleteStyleDeclaration(t,p+1),h=mi(s,l,!1)),h&&(u=this._getStyleDeclaration(t,p),e.push(this._createTextCharSpan(f,u,n,r,c)),f="",s=l,"rtl"===this.direction?n-=d:n+=d,d=0)}_setSVGTextLineBg(e,t,n,r){const i=this._textLines[t],o=this.getHeightOfLine(t)/this.lineHeight;let a,s=0,l=0,c=this.getValueOfPropertyAt(t,0,"textBackgroundColor");for(let u=0;u<i.length;u++){const{left:i,width:h,kernedWidth:f}=this.__charBounds[t][u];a=this.getValueOfPropertyAt(t,u,"textBackgroundColor"),a!==c?(c&&e.push(...Ca(c,n+l,r,s,o)),l=i,s=h,c=a):s+=f}a&&e.push(...Ca(c,n+l,r,s,o))}_getSVGLineTopOffset(e){let t,n=0;for(t=0;t<e;t++)n+=this.getHeightOfLine(t);const r=this.getHeightOfLine(t);return{lineTop:n,offset:(this._fontSizeMult-this._fontSizeFraction)*r/(this.lineHeight*this._fontSizeMult)}}getSvgStyles(e){return"".concat(super.getSvgStyles(e)," text-decoration-thickness: ").concat(mt(this.textDecorationThickness*this.getObjectScaling().y/10,z.NUM_FRACTION_DIGITS),"%; white-space: pre;")}getSvgSpanStyles(e,t){const{fontFamily:n,strokeWidth:r,stroke:i,fill:o,fontSize:a,fontStyle:s,fontWeight:l,deltaY:c,textDecorationThickness:u,linethrough:h,overline:f,underline:d}=e,p=this.getSvgTextDecoration({underline:null!==d&&void 0!==d?d:this.underline,overline:null!==f&&void 0!==f?f:this.overline,linethrough:null!==h&&void 0!==h?h:this.linethrough}),g=u||this.textDecorationThickness;return[i?vn(Te,i):"",r?"stroke-width: ".concat(r,"; "):"",n?"font-family: ".concat(n.includes("'")||n.includes('"')?n:"'".concat(n,"'"),"; "):"",a?"font-size: ".concat(a,"px; "):"",s?"font-style: ".concat(s,"; "):"",l?"font-weight: ".concat(l,"; "):"",p?"text-decoration: ".concat(p,"; text-decoration-thickness: ").concat(mt(g*this.getObjectScaling().y/10,z.NUM_FRACTION_DIGITS),"%; "):"",o?vn(Ee,o):"",c?"baseline-shift: ".concat(-c,"; "):"",t?"white-space: pre; ":""].join("")}getSvgTextDecoration(e){return["overline","underline","line-through"].filter((t=>e[t.replace("-","")])).join(" ")}}]),Pe.setClass(Ba);class Ua{constructor(e){B(this,"target",void 0),B(this,"__mouseDownInPlace",!1),B(this,"__dragStartFired",!1),B(this,"__isDraggingOver",!1),B(this,"__dragStartSelection",void 0),B(this,"__dragImageDisposer",void 0),B(this,"_dispose",void 0),this.target=e;const t=[this.target.on("dragenter",this.dragEnterHandler.bind(this)),this.target.on("dragover",this.dragOverHandler.bind(this)),this.target.on("dragleave",this.dragLeaveHandler.bind(this)),this.target.on("dragend",this.dragEndHandler.bind(this)),this.target.on("drop",this.dropHandler.bind(this))];this._dispose=()=>{t.forEach((e=>e())),this._dispose=void 0}}isPointerOverSelection(e){const t=this.target,n=t.getSelectionStartFromPointer(e);return t.isEditing&&n>=t.selectionStart&&n<=t.selectionEnd&&t.selectionStart<t.selectionEnd}start(e){return this.__mouseDownInPlace=this.isPointerOverSelection(e)}isActive(){return this.__mouseDownInPlace}end(e){const t=this.isActive();return t&&!this.__dragStartFired&&(this.target.setCursorByClick(e),this.target.initDelayedCursor(!0)),this.__mouseDownInPlace=!1,this.__dragStartFired=!1,this.__isDraggingOver=!1,t}getDragStartSelection(){return this.__dragStartSelection}setDragImage(e,t){var n;let{selectionStart:r,selectionEnd:i}=t;const o=this.target,a=o.canvas,s=new De(o.flipX?-1:1,o.flipY?-1:1),l=o._getCursorBoundaries(r),c=new De(l.left+l.leftOffset,l.top+l.topOffset).multiply(s).transform(o.calcTransformMatrix()),u=a.getScenePoint(e).subtract(c),h=o.getCanvasRetinaScaling(),f=o.getBoundingRect
vendor: 20,021 bytes, line 2
2(),d=c.subtract(new De(f.left,f.top)),p=a.viewportTransform,g=d.add(u).transform(p,!0),v=o.backgroundColor,m=ui(o.styles);o.backgroundColor="";const y={stroke:"transparent",fill:"transparent",textBackgroundColor:"transparent"};o.setSelectionStyles(y,0,r),o.setSelectionStyles(y,i,o.text.length),o.dirty=!0;const b=o.toCanvasElement({enableRetinaScaling:a.enableRetinaScaling,viewportTransform:!0});o.backgroundColor=v,o.styles=m,o.dirty=!0,Ro(b,{position:"fixed",left:"".concat(-b.width,"px"),border:he,width:"".concat(b.width/h,"px"),height:"".concat(b.height/h,"px")}),this.__dragImageDisposer&&this.__dragImageDisposer(),this.__dragImageDisposer=()=>{b.remove()},kt(e.target||this.target.hiddenTextarea).body.appendChild(b),null===(n=e.dataTransfer)||void 0===n||n.setDragImage(b,g.x,g.y)}onDragStart(e){this.__dragStartFired=!0;const t=this.target,n=this.isActive();if(n&&e.dataTransfer){const n=this.__dragStartSelection={selectionStart:t.selectionStart,selectionEnd:t.selectionEnd},r=t._text.slice(n.selectionStart,n.selectionEnd).join(""),i=Object(g.a)({text:t.text,value:r},n);e.dataTransfer.setData("text/plain",r),e.dataTransfer.setData("application/fabric",JSON.stringify({value:r,styles:t.getSelectionStyles(n.selectionStart,n.selectionEnd,!0)})),e.dataTransfer.effectAllowed="copyMove",this.setDragImage(e,i)}return t.abortCursorAnimation(),n}canDrop(e){if(this.target.editable&&!this.target.getActiveControl()&&!e.defaultPrevented){if(this.isActive()&&this.__dragStartSelection){const t=this.target.getSelectionStartFromPointer(e),n=this.__dragStartSelection;return t<n.selectionStart||t>n.selectionEnd}return!0}return!1}targetCanDrop(e){return this.target.canDrop(e)}dragEnterHandler(e){let{e:t}=e;const n=this.targetCanDrop(t);!this.__isDraggingOver&&n&&(this.__isDraggingOver=!0)}dragOverHandler(e){const{e:t}=e,n=this.targetCanDrop(t);!this.__isDraggingOver&&n?this.__isDraggingOver=!0:this.__isDraggingOver&&!n&&(this.__isDraggingOver=!1),this.__isDraggingOver&&(t.preventDefault(),e.canDrop=!0,e.dropTarget=this.target)}dragLeaveHandler(){(this.__isDraggingOver||this.isActive())&&(this.__isDraggingOver=!1)}dropHandler(e){var t;const{e:n}=e,r=n.defaultPrevented;this.__isDraggingOver=!1,n.preventDefault();let i=null===(t=n.dataTransfer)||void 0===t?void 0:t.getData("text/plain");if(i&&!r){const t=this.target,r=t.canvas;let o=t.getSelectionStartFromPointer(n);const{styles:a}=n.dataTransfer.types.includes("application/fabric")?JSON.parse(n.dataTransfer.getData("application/fabric")):{},s=i[Math.max(0,i.length-1)],l=0;if(this.__dragStartSelection){const e=this.__dragStartSelection.selectionStart,n=this.__dragStartSelection.selectionEnd;o>e&&o<=n?o=e:o>n&&(o-=n-e),t.removeChars(e,n),delete this.__dragStartSelection}t._reNewline.test(s)&&(t._reNewline.test(t._text[o])||o===t._text.length)&&(i=i.trimEnd()),e.didDrop=!0,e.dropTarget=t,t.insertChars(i,a,o),r.setActiveObject(t),t.enterEditing(n),t.selectionStart=Math.min(o+l,t._text.length),t.selectionEnd=Math.min(t.selectionStart+i.length,t._text.length),t.hiddenTextarea.value=t.text,t._updateTextarea(),t.hiddenTextarea.focus(),t.fire(_e,{index:o+l,action:"drop"}),r.fire("text:changed",{target:t}),r.contextTopDirty=!0,r.requestRenderAll()}}dragEndHandler(e){let{e:t}=e;if(this.isActive()&&this.__dragStartFired&&this.__dragStartSelection){var n;const e=this.target,r=this.target.canvas,{selectionStart:i,selectionEnd:o}=this.__dragStartSelection,a=(null===(n=t.dataTransfer)||void 0===n?void 0:n.dropEffect)||he;a===he?(e.selectionStart=i,e.selectionEnd=o,e._updateTextarea(),e.hiddenTextarea.focus()):(e.clearContextTop(),"move"===a&&(e.removeChars(i,o),e.selectionStart=e.selectionEnd=i,e.hiddenTextarea&&(e.hiddenTextarea.value=e.text),e._updateTextarea(),e.fire(_e,{index:i,action:"dragend"}),r.fire("text:changed",{target:e}),r.requestRenderAll()),e.exitEditing())}this.__dragImageDisposer&&this.__dragImageDisposer(),delete this.__dragImageDisposer,delete this.__dragStartSelection,this.__isDraggingOver=!1}dispose(){this._dispose&&this._dispose()}}const za=/[ \n\.,;!\?\-]/;class Va extends Ba{constructor(){super(...arguments),B(this,"_currentCursorOpacity",1)}initBehavior(){this._tick=this._tick.bind(this),this._onTickComplete=this._onTickComplete.bind(this),this.updateSelectionOnMouseMove=this.updateSelectionOnMouseMove.bind(this)}onDeselect(e){return this.isEditing&&this.exitEditing(),this.selected=!1,super.onDeselect(e)}_animateCursor(e){let{toValue:t,duration:n,delay:r,onComplete:i}=e;return br({startValue:this._currentCursorOpacity,endValue:t,duration:n,delay:r,onComplete:i,abort:()=>!this.canvas||this.selectionStart!==this.selectionEnd,onChange:e=>{this._currentCursorOpacity=e,this.renderCursorOrSelection()}})}_tick(e){this._currentTickState=this._animateCursor({toValue:0,duration:this.cursorDuration/2,delay:Math.max(e||0,100),onComplete:this._onTickComplete})}_onTickComplete(){var e;null===(e=this._currentTickCompleteState)||void 0===e||e.abort(),this._currentTickCompleteState=this._animateCursor({toValue:1,duration:this.cursorDuration,onComplete:this._tick})}initDelayedCursor(e){this.abortCursorAnimation(),this._tick(e?0:this.cursorDelay)}abortCursorAnimation(){let e=!1;[this._currentTickState,this._currentTickCompleteState].forEach((t=>{t&&!t.isDone()&&(e=!0,t.abort())})),this._currentCursorOpacity=1,e&&this.clearContextTop()}restartCursorIfNeeded(){[this._currentTickState,this._currentTickCompleteState].some((e=>!e||e.isDone()))&&this.initDelayedCursor()}selectAll(){return this.selectionStart=0,this.selectionEnd=this._text.length,this._fireSelectionChanged(),this._updateTextarea(),this}cmdAll(){this.selectAll(),this.renderCursorOrSelection()}getSelectedText(){return this._text.slice(this.selectionStart,this.selectionEnd).join("")}findWordBoundaryLeft(e){let t=0,n=e-1;if(this._reSpace.test(this._text[n]))for(;this._reSpace.test(this._text[n]);)t++,n--;for(;/\S/.test(this._text[n])&&n>-1;)t++,n--;return e-t}findWordBoundaryRight(e){let t=0,n=e;if(this._reSpace.test(this._text[n]))for(;this._reSpace.test(this._text[n]);)t++,n++;for(;/\S/.test(this._text[n])&&n<this._text.length;)t++,n++;return e+t}findLineBoundaryLeft(e){let t=0,n=e-1;for(;!/\n/.test(this._text[n])&&n>-1;)t++,n--;return e-t}findLineBoundaryRight(e){let t=0,n=e;for(;!/\n/.test(this._text[n])&&n<this._text.length;)t++,n++;return e+t}searchWordBoundary(e,t){const n=this._text;let r=e>0&&this._reSpace.test(n[e])&&(-1===t||!fe.test(n[e-1]))?e-1:e,i=n[r];for(;r>0&&r<n.length&&!za.test(i);)r+=t,i=n[r];return-1===t&&za.test(i)&&r++,r}selectWord(e){var t;e=null!==(t=e)&&void 0!==t?t:this.selectionStart;const n=this.searchWordBoundary(e,-1),r=Math.max(n,this.searchWordBoundary(e,1));this.selectionStart=n,this.selectionEnd=r,this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()}selectLine(e){var t;e=null!==(t=e)&&void 0!==t?t:this.selectionStart;const n=this.findLineBoundaryLeft(e),r=this.findLineBoundaryRight(e);this.selectionStart=n,this.selectionEnd=r,this._fireSelectionChanged(),this._updateTextarea()}enterEditing(e){!this.isEditing&&this.editable&&(this.enterEditingImpl(),this.fire("editing:entered",e?{e:e}:void 0),this._fireSelectionChanged(),this.canvas&&(this.canvas.fire("text:editing:entered",{target:this,e:e}),this.canvas.requestRenderAll()))}enterEditingImpl(){this.canvas&&(this.canvas.calcOffset(),this.canvas.textEditingManager.exitTextEditing()),this.isEditing=!0,this.initHiddenTextarea(),this.hiddenTextarea.focus(),this.hiddenTextarea.value=this.text,this._updateTextarea(),this._saveEditingProps(),this._setEditingProps(),this._textBeforeEdit=this.text,this._tick()}updateSelectionOnMouseMove(e){if(this.getActiveControl())return;const t=this.hiddenTextarea;kt(t).activeElement!==t&&t.focus();const n=this.getSelectionStartFromPointer(e),r=this.selectionStart,i=this.selectionEnd;(n===this.__selectionStartOnMouseDown&&r!==i||r!==n&&i!==n)&&(n>this.__selectionStartOnMouseDown?(this.selectionStart=this.__selectionStartOnMouseDown,this.selectionEnd=n):(this.selectionStart=n,this.selectionEnd=this.__selectionStartOnMouseDown),this.selectionStart===r&&this.selectionEnd===i||(this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()))}_setEditingProps(){this.hoverCursor="text",this.canvas&&(this.canvas.defaultCursor=this.canvas.moveCursor="text"),this.borderColor=this.editingBorderColor,this.hasControls=this.selectable=!1,this.lockMovementX=this.lockMovementY=!0}fromStringToGraphemeSelection(e,t,n){const r=n.slice(0,e),i=this.graphemeSplit(r).length;if(e===t)return{selectionStart:i,selectionEnd:i};const o=n.slice(e,t);return{selectionStart:i,selectionEnd:i+this.graphemeSplit(o).length}}fromGraphemeToStringSelection(e,t,n){const r=n.slice(0,e).join("").length;if(e===t)return{selectionStart:r,selectionEnd:r};return{selectionStart:r,selectionEnd:r+n.slice(e,t).join("").length}}_updateTextarea(){if(this.cursorOffsetCache={},this.hiddenTextarea){if(!this.inCompositionMode){const e=this.fromGraphemeToStringSelection(this.selectionStart,this.selectionEnd,this._text);this.hiddenTextarea.selectionStart=e.selectionStart,this.hiddenTextarea.selectionEnd=e.selectionEnd}this.updateTextareaPosition()}}updateFromTextArea(){if(!this.hiddenTextarea)return;this.cursorOffsetCache={};const e=this.hiddenTextarea;this.text=e.value,this.set("dirty",!0),this.initDimensions(),this.setCoords();const t=this.fromStringToGraphemeSelection(e.selectionStart,e.selectionEnd,e.value);this.selectionEnd=this.selectionStart=t.selectionEnd,this.inCompositionMode||(this.selectionStart=t.selectionStart),this.updateTextareaPosition()}updateTextareaPosition(){if(this.selectionStart===this.selectionEnd){const e=this._calcTextareaPosition();this.hiddenTextarea.style.left=e.left,this.hiddenTextarea.style.top=e.top}}_calcTextareaPosition(){if(!this.canvas)return{left:"1px",top:"1px"};const e=this.inCompositionMode?this.compositionStart:this.selectionStart,t=this._getCursorBoundaries(e),n=this.get2DCursorLocation(e),r=n.lineIndex,i=n.charIndex,o=this.getValueOfPropertyAt(r,i,"fontSize")*this.lineHeight,a=t.leftOffset,s=this.getCanvasRetinaScaling(),l=this.canvas.upperCanvasEl,c=l.width/s,u=l.height/s,h=c-o,f=u-o,d=new De(t.left+a,t.top+t.topOffset+o).transform(this.calcTransformMatrix()).transform(this.canvas.viewportTransform).multiply(new De(l.clientWidth/c,l.clientHeight/u));return d.x<0&&(d.x=0),d.x>h&&(d.x=h),d.y<0&&(d.y=0),d.y>f&&(d.y=f),d.x+=this.canvas._offset.left,d.y+=this.canvas._offset.top,{left:"".concat(d.x,"px"),top:"".concat(d.y,"px"),fontSize:"".concat(o,"px"),charHeight:o}}_saveEditingProps(){this._savedProps={hasControls:this.hasControls,borderColor:this.borderColor,lockMovementX:this.lockMovementX,lockMovementY:this.lockMovementY,hoverCursor:this.hoverCursor,selectable:this.selectable,defaultCursor:this.canvas&&this.canvas.defaultCursor,moveCursor:this.canvas&&this.canvas.moveCursor}}_restoreEditingProps(){this._savedProps&&(this.hoverCursor=this._savedProps.hoverCursor,this.hasControls=this._savedProps.hasControls,this.borderColor=this._savedProps.borderColor,this.selectable=this._savedProps.selectable,this.lockMovementX=this._savedProps.lockMovementX,this.lockMovementY=this._savedProps.lockMovementY,this.canvas&&(this.canvas.defaultCursor=this._savedProps.defaultCursor||this.canvas.defaultCursor,this.canvas.moveCursor=this._savedProps.moveCursor||this.canvas.moveCursor),delete this._savedProps)}_exitEditing(){const e=this.hiddenTextarea;this.selected=!1,this.isEditing=!1,e&&(e.blur&&e.blur(),e.parentNode&&e.parentNode.removeChild(e)),this.hiddenTextarea=null,this.abortCursorAnimation(),this.selectionStart!==this.selectionEnd&&this.clearContextTop()}exitEditingImpl(){this._exitEditing(),this.selectionEnd=this.selectionStart,this._restoreEditingProps(),this._forceClearCache&&(this.initDimensions(),this.setCoords())}exitEditing(){const e=this._textBeforeEdit!==this.text;return this.exitEditingImpl(),this.fire("editing:exited"),e&&this.fire(Ae),this.canvas&&(this.canvas.fire("text:editing:exited",{target:this}),e&&this.canvas.fire("object:modified",{target:this})),this}_removeExtraneousStyles(){for(const e in this.styles)this._textLines[e]||delete this.styles[e]}removeStyleFromTo(e,t){const{lineIndex:n,charIndex:r}=this.get2DCursorLocation(e,!0),{lineIndex:i,charIndex:o}=this.get2DCursorLocation(t,!0);if(n!==i){if(this.styles[n])for(let e=r;e<this._unwrappedTextLines[n].length;e++)delete this.styles[n][e];if(this.styles[i])for(let e=o;e<this._unwrappedTextLines[i].length;e++){const t=this.styles[i][e];t&&(this.styles[n]||(this.styles[n]={}),this.styles[n][r+e-o]=t)}for(let e=n+1;e<=i;e++)delete this.styles[e];this.shiftLineStyles(i,n-i)}else if(this.styles[n]){const e=this.styles[n],t=o-r;for(let n=r;n<o;n++)delete e[n];for(const r in this.styles[n]){const n=parseInt(r,10);n>=o&&(e[n-t]=e[r],delete e[r])}}}shiftLineStyles(e,t){const n=Object.assign({},this.styles);for(const r in this.styles){const i=parseInt(r,10);i>e&&(this.styles[i+t]=n[i],n[i-t]||delete this.styles[i])}}insertNewlineStyleObject(e,t,n,r){const i={},o=this._unwrappedTextLines[e].length,a=o===t;let s=!1;n||(n=1),this.shiftLineStyles(e,n);const l=this.styles[e]?this.styles[e][0===t?t:t-1]:void 0;for(const u in this.styles[e]){const n=parseInt(u,10);n>=t&&(s=!0,i[n-t]=this.styles[e][u],a&&0===t||delete this.styles[e][u])}let c=!1;for(s&&!a&&(this.styles[e+n]=i,c=!0),(c||o>t)&&n--;n>0;)r&&r[n-1]?this.styles[e+n]={0:Object(g.a)({},r[n-1])}:l?this.styles[e+n]={0:Object(g.a)({},l)}:delete this.styles[e+n],n--;this._forceClearCache=!0}insertCharStyleObject(e,t,n,r){this.styles||(this.styles={});const i=this.styles[e],o=i?Object(g.a)({},i):{};n||(n=1);for(const s in o){const e=parseInt(s,10);e>=t&&(i[e+n]=o[e],o[e-n]||delete i[e])}if(this._forceClearCache=!0,r){for(;n--;)Object.keys(r[n]).length&&(this.styles[e]||(this.styles[e]={}),this.styles[e][t+n]=Object(g.a)({},r[n]));return}if(!i)return;const a=i[t?t-1:1];for(;a&&n--;)this.styles[e][t+n]=Object(g.a)({},a)}insertNewStyleBlock(e,t,n){const r=this.get2DCursorLocation(t,!0),i=[0];let o,a=0;for(let s=0;s<e.length;s++)"\n"===e[s]?(a++,i[a]=0):i[a]++;for(i[0]>0&&(this.insertCharStyleObject(r.lineIndex,r.charIndex,i[0],n),n=n&&n.slice(i[0]+1)),a&&this.insertNewlineStyleObject(r.lineIndex,r.charIndex+i[0],a),o=1;o<a;o++)i[o]>0?this.insertCharStyleObject(r.lineIndex+o,0,i[o],n):n&&this.styles[r.lineIndex+o]&&n[0]&&(this.styles[r.lineIndex+o][0]=n[0]),n=n&&n.slice(i[o]+1);i[o]>0&&this.insertCharStyleObject(r.lineIndex+o,0,i[o],n)}removeChars(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e+1;this.removeStyleFromTo(e,t),this._text.splice(e,t-e),this.text=this._text.join(""),this.set("dirty",!0),this.initDimensions(),this.setCoords(),this._removeExtraneousStyles()}insertChars(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;r>n&&this.removeStyleFromTo(n,r);const i=this.graphemeSplit(e);this.insertNewStyleBlock(i,n,t),this._text=[...this._text.slice(0,n),...i,...this._text.slice(r)],this.text=this._text.join(""),this.set("dirty",!0),this.initDimensions(),this.setCoords(),this._removeExtraneousStyles()}setSelectionStartEndWithShift(e,t,n){n<=e?(t===e?this._selectionDirection=se:this._selectionDirection===ue&&(this._selectionDirection=se,this.selectionEnd=e),this.selectionStart=n):n>e&&n<t?this._selectionDirection===ue?this.selectionEnd=n:this.selectionStart=n:(t===e?this._selectionDirection=ue:this._selectionDirection===se&&(this._selectionDirection=ue,this.selectionStart=t),this.selectionEnd=n)}}class Ha extends Va{initHiddenTextarea(){const e=this.canvas&&kt(this.canvas.getElement())||$(),t=e.createElement("textarea");Object.entries({autocapitalize:"off",autocorrect:"off",autocomplete:"off",spellcheck:"false","data-fabric":"textarea",wrap:"off"}).map((e=>{let[n,r]=e;return t.setAttribute(n,r)}));const{top:n,left:r,fontSize:i}=this._calcTextareaPosition();t.style.cssText="position: absolute; top: ".concat(n,"; left: ").concat(r,"; z-index: -999; opacity: 0; width: 1px; height: 1px; font-size: 1px; padding-top: ").concat(i,";"),(this.hiddenTextareaContainer||e.body).appendChild(t),Object.entries({blur:"blur",keydown:"onKeyDown",keyup:"onKeyUp",input:"onInput",copy:"copy",cut:"copy",paste:"paste",compositionstart:"onCompositionStart",compositionupdate:"onCompositionUpdate",compositionend:"onCompositionEnd"}).map((e=>{let[n,r]=e;return t.addEventListener(n,this[r].bind(this))})),this.hiddenTextarea=t}blur(){this.abortCursorAnimation()}onKeyDown(e){if(!this.isEditing)return;const t="rtl"===this.direction?this.keysMapRtl:this.keysMap;if(e.keyCode in t)this[t[e.keyCode]](e);else{if(!(e.keyCode in this.ctrlKeysMapDown)||!e.ctrlKey&&!e.metaKey)return;this[this.ctrlKeysMapDown[e.keyCode]](e)}e.stopImmediatePropagation(),e.preventDefault(),e.keyCode>=33&&e.keyCode<=40?(this.inCompositionMode=!1,this.clearContextTop(),this.renderCursorOrSelection()):this.canvas&&this.canvas.requestRenderAll()}onKeyUp(e){!this.isEditing||this._copyDone||this.inCompositionMode?this._copyDone=!1:e.keyCode in this.ctrlKeysMapUp&&(e.ctrlKey||e.metaKey)&&(this[this.ctrlKeysMapUp[e.keyCode]](e),e.stopImmediatePropagation(),e.preventDefault(),this.canvas&&this.canvas.requestRenderAll())}onInput(e){const t=this.fromPaste,{value:n,selectionStart:r,selectionEnd:i}=this.hiddenTextarea;if(this.fromPaste=!1,e&&e.stopPropagation(),!this.isEditing)return;const o=()=>{this.updateFromTextArea(),this.fire(_e),this.canvas&&(this.canvas.fire("text:changed",{target:this}),this.canvas.requestRenderAll())};if(""===this.hiddenTextarea.value)return this.styles={},void o();const a=this._splitTextIntoLines(n).graphemeText,s=this._text.length,l=a.length,c=this.selectionStart,u=this.selectionEnd,h=c!==u;let f,d,p,g,v=l-s;const m=this.fromStringToGraphemeSelection(r,i,n),y=c>m.selectionStart;h?(d=this._text.slice(c,u),v+=u-c):l<s&&(d=y?this._text.slice(u+v,u):this._text.slice(c,c-v));const b=a.slice(m.selectionEnd-v,m.selectionEnd);if(d&&d.length&&(b.length&&(f=this.getSelectionStyles(c,c+1,!1),f=b.map((()=>f[0]))),h?(p=c,g=u):y?(p=u-d.length,g=u):(p=u,g=u+d.length),this.removeStyleFromTo(p,g)),b.length){const{copyPasteData:e}=Y();t&&b.join("")===e.copiedText&&!z.disableStyleCopyPaste&&(f=e.copiedTextStyle),this.insertNewStyleBlock(b,c,f)}o()}onCompositionStart(){this.inCompositionMode=!0}onCompositionEnd(){this.inCompositionMode=!1}onCompositionUpdate(e){let{target:t}=e;const{selectionStart:n,selectionEnd:r}=t;this.compositionStart=n,this.compositionEnd=r,this.updateTextareaPosition()}copy(){if(this.selectionStart===this.selectionEnd)return;const{copyPasteData:e}=Y();e.copiedText=this.getSelectedText(),z.disableStyleCopyPaste?e.copiedTextStyle=void 0:e.copiedTextStyle=this.getSelectionStyles(this.selectionStart,this.selectionEnd,!0),this._copyDone=!0}paste(){this.fromPaste=!0}_getWidthBeforeCursor(e,t){let n,r=this._getLineLeftOffset(e);return t>0&&(n=this.__charBounds[e][t-1],r+=n.left+n.width),r}getDownCursorOffset(e,t){const n=this._getSelectionForOffset(e,t),r=this.get2DCursorLocation(n),i=r.lineIndex;if(i===this._textLines.length-1||e.metaKey||34===e.keyCode)return this._text.length-n;const o=r.charIndex,a=this._getWidthBeforeCursor(i,o),s=this._getIndexOnLine(i+1,a);return this._textLines[i].slice(o).length+s+1+this.missingNewlineOffset(i)}_getSelectionForOffset(e,t){return e.shiftKey&&this.selectionStart!==this.selectionEnd&&t?this.selectionEnd:this.selectionStart}getUpCursorOffset(e,t){const n=this._getSelectionForOffset(e,t),r=this.get2DCursorLocation(n),i=r.lineIndex;if(0===i||e.metaKey||33===e.keyCode)return-n;const o=r.charIndex,a=this._getWidthBeforeCursor(i,o),s=this._getIndexOnLine(i-1,a),l=this._textLines[i].slice(0,o),c=this.missingNewlineOffset(i-1);return-this._textLines[i-1].length+s-l.length+(1-c)}_getIndexOnLine(e,t){const n=this._textLines[e];let r,i,o=this._getLineLeftOffset(e),a=0;for(let s=0,l=n.length;s<l;s++)if(r=this.__charBounds[e][s].width,o+=r,o>t){i=!0;const e=o-r,n=o,l=Math.abs(e-t);a=Math.abs(n-t)<l?s:s-1;break}
2return i||(a=n.length-1),a}moveCursorDown(e){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorUpOrDown("Down",e)}moveCursorUp(e){0===this.selectionStart&&0===this.selectionEnd||this._moveCursorUpOrDown("Up",e)}_moveCursorUpOrDown(e,t){const n=this["get".concat(e,"CursorOffset")](t,this._selectionDirection===ue);if(t.shiftKey?this.moveCursorWithShift(n):this.moveCursorWithoutShift(n),0!==n){const e=this.text.length;this.selectionStart=nr(0,this.selectionStart,e),this.selectionEnd=nr(0,this.selectionEnd,e),this.abortCursorAnimation(),this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea()}}moveCursorWithShift(e){const t=this._selectionDirection===se?this.selectionStart+e:this.selectionEnd+e;return this.setSelectionStartEndWithShift(this.selectionStart,this.selectionEnd,t),0!==e}moveCursorWithoutShift(e){return e<0?(this.selectionStart+=e,this.selectionEnd=this.selectionStart):(this.selectionEnd+=e,this.selectionStart=this.selectionEnd),0!==e}moveCursorLeft(e){0===this.selectionStart&&0===this.selectionEnd||this._moveCursorLeftOrRight("Left",e)}_move(e,t,n){let r;if(e.altKey)r=this["findWordBoundary".concat(n)](this[t]);else{if(!e.metaKey&&35!==e.keyCode&&36!==e.keyCode)return this[t]+="Left"===n?-1:1,!0;r=this["findLineBoundary".concat(n)](this[t])}return"undefined"!==typeof r&&this[t]!==r&&(this[t]=r,!0)}_moveLeft(e,t){return this._move(e,t,"Left")}_moveRight(e,t){return this._move(e,t,"Right")}moveCursorLeftWithoutShift(e){let t=!0;return this._selectionDirection=se,this.selectionEnd===this.selectionStart&&0!==this.selectionStart&&(t=this._moveLeft(e,"selectionStart")),this.selectionEnd=this.selectionStart,t}moveCursorLeftWithShift(e){return this._selectionDirection===ue&&this.selectionStart!==this.selectionEnd?this._moveLeft(e,"selectionEnd"):0!==this.selectionStart?(this._selectionDirection=se,this._moveLeft(e,"selectionStart")):void 0}moveCursorRight(e){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorLeftOrRight("Right",e)}_moveCursorLeftOrRight(e,t){const n="moveCursor".concat(e).concat(t.shiftKey?"WithShift":"WithoutShift");this._currentCursorOpacity=1,this[n](t)&&(this.abortCursorAnimation(),this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())}moveCursorRightWithShift(e){return this._selectionDirection===se&&this.selectionStart!==this.selectionEnd?this._moveRight(e,"selectionStart"):this.selectionEnd!==this._text.length?(this._selectionDirection=ue,this._moveRight(e,"selectionEnd")):void 0}moveCursorRightWithoutShift(e){let t=!0;return this._selectionDirection=ue,this.selectionStart===this.selectionEnd?(t=this._moveRight(e,"selectionStart"),this.selectionEnd=this.selectionStart):this.selectionStart=this.selectionEnd,t}}const Wa=e=>!!e.button;class Ga extends Ha{constructor(){super(...arguments),B(this,"draggableTextDelegate",void 0)}initBehavior(){this.on("mousedown",this._mouseDownHandler),this.on("mouseup",this.mouseUpHandler),this.on("mousedblclick",this.doubleClickHandler),this.on("mousetripleclick",this.tripleClickHandler),this.draggableTextDelegate=new Ua(this),super.initBehavior()}shouldStartDragging(){return this.draggableTextDelegate.isActive()}onDragStart(e){return this.draggableTextDelegate.onDragStart(e)}canDrop(e){return this.draggableTextDelegate.canDrop(e)}doubleClickHandler(e){this.isEditing&&(this.selectWord(this.getSelectionStartFromPointer(e.e)),this.renderCursorOrSelection())}tripleClickHandler(e){this.isEditing&&(this.selectLine(this.getSelectionStartFromPointer(e.e)),this.renderCursorOrSelection())}_mouseDownHandler(e){let{e:t,alreadySelected:n}=e;this.canvas&&this.editable&&!Wa(t)&&!this.getActiveControl()&&(this.draggableTextDelegate.start(t)||(this.canvas.textEditingManager.register(this),n&&(this.inCompositionMode=!1,this.setCursorByClick(t)),this.isEditing&&(this.__selectionStartOnMouseDown=this.selectionStart,this.selectionStart===this.selectionEnd&&this.abortCursorAnimation(),this.renderCursorOrSelection()),this.selected||(this.selected=n||this.isEditing)))}
2mouseUpHandler(e){let{e:t,transform:n}=e;const r=this.draggableTextDelegate.end(t);if(this.canvas){this.canvas.textEditingManager.unregister(this);const e=this.canvas._activeObject;if(e&&e!==this)return}!this.editable||this.group&&!this.group.interactive||n&&n.actionPerformed||Wa(t)||r||this.selected&&!this.getActiveControl()&&(this.enterEditing(t),this.selectionStart===this.selectionEnd?this.initDelayedCursor(!0):this.renderCursorOrSelection())}setCursorByClick(e){const t=this.getSelectionStartFromPointer(e),n=this.selectionStart,r=this.selectionEnd;e.shiftKey?this.setSelectionStartEndWithShift(n,r,t):(this.selectionStart=t,this.selectionEnd=t),this.isEditing&&(this._fireSelectionChanged(),this._updateTextarea())}getSelectionStartFromPointer(e){const t=this.canvas.getScenePoint(e).transform(Je(this.calcTransformMatrix())).add(new De(-this._getLeftOffset(),-this._getTopOffset()));let n=0,r=0,i=0;for(let l=0;l<this._textLines.length&&n<=t.y;l++)n+=this.getHeightOfLine(l),i=l,l>0&&(r+=this._textLines[l-1].length+this.missingNewlineOffset(l-1));let o=Math.abs(this._getLineLeftOffset(i));const a=this._textLines[i].length,s=this.__charBounds[i];for(let l=0;l<a;l++){const e=o+s[l].kernedWidth;if(t.x<=e){Math.abs(t.x-e)<=Math.abs(t.x-o)&&r++;break}o=e,r++}return Math.min(this.flipX?a-r:r,this._text.length)}}const qa="moveCursorUp",Xa="moveCursorDown",Ya="moveCursorLeft",$a="moveCursorRight",Ka="exitEditing",Za={9:Ka,27:Ka,33:qa,34:Xa,35:$a,36:Ya,37:Ya,38:qa,39:$a,40:Xa},Qa={9:Ka,27:Ka,33:qa,34:Xa,35:Ya,36:$a,37:$a,38:qa,39:Ya,40:Xa},Ja=(e,t)=>{const n=t.getRetinaScaling();e.setTransform(n,0,0,n,0,0);const r=t.viewportTransform;e.transform(r[0],r[1],r[2],r[3],r[4],r[5])},es=Object(g.a)({selectionStart:0,selectionEnd:0,selectionColor:"rgba(17,119,255,0.3)",isEditing:!1,editable:!0,editingBorderColor:"rgba(102,153,255,0.25)",cursorWidth:2,cursorColor:"",cursorDelay:1e3,cursorDuration:600,caching:!0,hiddenTextareaContainer:null,keysMap:Za,keysMapRtl:Qa,ctrlKeysMapDown:{65:"cmdAll"},ctrlKeysMapUp:{67:"copy",88:"cut"}},{_selectionDirection:null,_reSpace:/\s|\r?\n/,inCompositionMode:!1});class ts extends Ga{static getDefaults(){return Object(g.a)(Object(g.a)({},super.getDefaults()),ts.ownDefaults)}get type(){const e=super.type;return"itext"===e?"i-text":e}constructor(e,t){super(e,Object(g.a)(Object(g.a)({},ts.ownDefaults),t)),this.initBehavior()}_set(e,t){return this.isEditing&&this._savedProps&&e in this._savedProps?(this._savedProps[e]=t,this):("canvas"===e&&(this.canvas instanceof Xo&&this.canvas.textEditingManager.remove(this),t instanceof Xo&&t.textEditingManager.add(this)),super._set(e,t))}setSelectionStart(e){e=Math.max(e,0),this._updateAndFire("selectionStart",e)}setSelectionEnd(e){e=Math.min(e,this.text.length),this._updateAndFire("selectionEnd",e)}_updateAndFire(e,t){this[e]!==t&&(this._fireSelectionChanged(),this[e]=t),this._updateTextarea()}_fireSelectionChanged(){this.fire("selection:changed"),this.canvas&&this.canvas.fire("text:selection:changed",{target:this})}initDimensions(){this.isEditing&&this.initDelayedCursor(),super.initDimensions()}getSelectionStyles(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.selectionStart||0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selectionEnd,n=arguments.length>2?arguments[2]:void 0;return super.getSelectionStyles(e,t,n)}setSelectionStyles(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selectionStart||0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.selectionEnd;return super.setSelectionStyles(e,t,n)}get2DCursorLocation(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.selectionStart,t=arguments.length>1?arguments[1]:void 0;return super.get2DCursorLocation(e,t)}render(e){super.render(e),this.cursorOffsetCache={},this.renderCursorOrSelection()}toCanvasElement(e){const t=this.isEditing;this.isEditing=!1;const n=super.toCanvasElement(e);return this.isEditing=t,n}renderCursorOrSelection(){if(!this.isEditing||!this.canvas)return;const e=this.clearContextTop(!0);if(!e)return;
vendor: 5,720 bytes, line 2
2const t=this._getCursorBoundaries(),n=this.findAncestorsWithClipPath(),r=n.length>0;let i,o=e;if(r){i=qe(e.canvas),o=i.getContext("2d"),Ja(o,this.canvas);const t=this.calcTransformMatrix();o.transform(t[0],t[1],t[2],t[3],t[4],t[5])}if(this.selectionStart!==this.selectionEnd||this.inCompositionMode?this.renderSelection(o,t):this.renderCursor(o,t),r)for(const a of n){const t=a.clipPath,n=qe(e.canvas),r=n.getContext("2d");if(Ja(r,this.canvas),!t.absolutePositioned){const e=a.calcTransformMatrix();r.transform(e[0],e[1],e[2],e[3],e[4],e[5])}t.transform(r),t.drawObject(r,!0,{}),this.drawClipPathOnCache(o,t,n)}r&&(e.setTransform(1,0,0,1,0,0),e.drawImage(i,0,0)),this.canvas.contextTopDirty=!0,e.restore(),this.parent&&this.selectionStart!==this.selectionEnd&&setTimeout((()=>{this.renderCursorOrSelection()}),0)}findAncestorsWithClipPath(){const e=[];let t=this;for(;t;)t.clipPath&&e.push(t),t=t.parent;return e}_getCursorBoundaries(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.selectionStart,t=arguments.length>1?arguments[1]:void 0;const n=this._getLeftOffset(),r=this._getTopOffset(),i=this._getCursorBoundariesOffsets(e,t);return{left:n,top:r,leftOffset:i.left,topOffset:i.top}}_getCursorBoundariesOffsets(e,t){return t?this.__getCursorBoundariesOffsets(e):this.cursorOffsetCache&&"top"in this.cursorOffsetCache?this.cursorOffsetCache:this.cursorOffsetCache=this.__getCursorBoundariesOffsets(e)}__getCursorBoundariesOffsets(e){let t=0,n=0;const{charIndex:r,lineIndex:i}=this.get2DCursorLocation(e);for(let l=0;l<i;l++)t+=this.getHeightOfLine(l);const o=this._getLineLeftOffset(i),a=this.__charBounds[i][r];a&&(n=a.left),0!==this.charSpacing&&r===this._textLines[i].length&&(n-=this._getWidthOfCharSpacing());const s={top:t,left:o+(n>0?n:0)};return"rtl"===this.direction&&(this.textAlign===ue||this.textAlign===On||this.textAlign===Tn?s.left*=-1:this.textAlign===se||this.textAlign===En?s.left=o-(n>0?n:0):this.textAlign!==ae&&this.textAlign!==An||(s.left=o-(n>0?n:0))),s}renderCursorAt(e){this._renderCursor(this.canvas.contextTop,this._getCursorBoundaries(e,!0),e)}renderCursor(e,t){this._renderCursor(e,t,this.selectionStart)}getCursorRenderingData(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.selectionStart,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._getCursorBoundaries(e);const n=this.get2DCursorLocation(e),r=n.lineIndex,i=n.charIndex>0?n.charIndex-1:0,o=this.getValueOfPropertyAt(r,i,"fontSize"),a=this.getObjectScaling().x*this.canvas.getZoom(),s=this.cursorWidth/a,l=this.getValueOfPropertyAt(r,i,"deltaY"),c=t.topOffset+(1-this._fontSizeFraction)*this.getHeightOfLine(r)/this.lineHeight-o*(1-this._fontSizeFraction);return{color:this.cursorColor||this.getValueOfPropertyAt(r,i,"fill"),opacity:this._currentCursorOpacity,left:t.left+t.leftOffset-s/2,top:c+t.top+l,width:s,height:o}}_renderCursor(e,t,n){const{color:r,opacity:i,left:o,top:a,width:s,height:l}=this.getCursorRenderingData(n,t);e.fillStyle=r,e.globalAlpha=i,e.fillRect(o,a,s,l)}renderSelection(e,t){const n={selectionStart:this.inCompositionMode?this.hiddenTextarea.selectionStart:this.selectionStart,selectionEnd:this.inCompositionMode?this.hiddenTextarea.selectionEnd:this.selectionEnd};this._renderSelection(e,n,t)}renderDragSourceEffect(){const e=this.draggableTextDelegate.getDragStartSelection();this._renderSelection(this.canvas.contextTop,e,this._getCursorBoundaries(e.selectionStart,!0))}renderDropTargetEffect(e){const t=this.getSelectionStartFromPointer(e);this.renderCursorAt(t)}_renderSelection(e,t,n){const r=t.selectionStart,i=t.selectionEnd,o=this.textAlign.includes(On),a=this.get2DCursorLocation(r),s=this.get2DCursorLocation(i),l=a.lineIndex,c=s.lineIndex,u=a.charIndex<0?0:a.charIndex,h=s.charIndex<0?0:s.charIndex;for(let f=l;f<=c;f++){const t=this._getLineLeftOffset(f)||0;let r=this.getHeightOfLine(f),i=0,a=0,s=0;if(f===l&&(a=this.__charBounds[l][u].left),f>=l&&f<c)s=o&&!this.isEndOfWrapping(f)?this.width:this.getLineWidth(f)||5;else if(f===c)if(0===h)s=this.__charBounds[c][h].left;else{const e=this._getWidthOfCharSpacing();s=this.__charBounds[c][h-1].left+this.__charBounds[c][h-1].width-e}i=r,(this.lineHeight<1||f===c&&this.lineHeight>1)&&(r/=this.lineHeight);let d=n.left+t+a,p=r,g=0;const v=s-a;this.inCompositionMode?(e.fillStyle=this.compositionColor||"black",p=1,g=r):e.fillStyle=this.selectionColor,"rtl"===this.direction&&(this.textAlign===ue||this.textAlign===On||this.textAlign===Tn?d=this.width-d-v:this.textAlign===se||this.textAlign===En?d=n.left+t-s:this.textAlign!==ae&&this.textAlign!==An||(d=n.left+t-s)),e.fillRect(d,n.top+n.topOffset+g,v,p),n.topOffset+=i}}getCurrentCharFontSize(){const e=this._getCurrentCharIndex();return this.getValueOfPropertyAt(e.l,e.c,"fontSize")}getCurrentCharColor(){const e=this._getCurrentCharIndex();return this.getValueOfPropertyAt(e.l,e.c,Ee)}_getCurrentCharIndex(){const e=this.get2DCursorLocation(this.selectionStart,!0),t=e.charIndex>0?e.charIndex-1:0;return{l:e.lineIndex,c:t}}dispose(){this.exitEditingImpl(),this.draggableTextDelegate.dispose(),super.dispose()}}var ns;B(ts,"ownDefaults",es),B(ts,"type","IText"),Pe.setClass(ts),Pe.setClass(ts,"i-text");class rs extends ts{static getDefaults(){return Object(g.a)(Object(g.a)({},super.getDefaults()),rs.ownDefaults)}constructor(e,t){super(e,Object(g.a)(Object(g.a)({},rs.ownDefaults),t))}static createControls(){return{controls:Jr()}}initDimensions(){this.initialized&&(this.isEditing&&this.initDelayedCursor(),this._clearCache(),this.dynamicMinWidth=0,this._styleMap=this._generateStyleMap(this._splitText()),!this.path&&this.dynamicMinWidth>this.width&&this._set("width",this.dynamicMinWidth),this.textAlign.includes(On)&&this.enlargeSpace
2s(),!this.path&&rs.enableCalcTextHeight&&(this.height=this.calcTextHeight()),this.preventGroupCache=!!this.path)}_generateStyleMap(e){let t=0,n=0,r=0;const i={};for(let o=0;o<e.graphemeLines.length;o++)"\n"===e.graphemeText[r]&&o>0?(n=0,r++,t++):!this.splitByGrapheme&&this._reSpaceAndTab.test(e.graphemeText[r])&&o>0&&(n++,r++),i[o]={line:t,offset:n},r+=e.graphemeLines[o].length,n+=e.graphemeLines[o].length;return i}styleHas(e,t){if(this._styleMap&&!this.isWrapping){const e=this._styleMap[t];e&&(t=e.line)}return super.styleHas(e,t)}isEmptyStyles(e){if(!this.styles)return!0;let t,n=0,r=e+1,i=!1;const o=this._styleMap[e],a=this._styleMap[e+1];o&&(e=o.line,n=o.offset),a&&(r=a.line,i=r===e,t=a.offset);const s="undefined"===typeof e?this.styles:{line:this.styles[e]};for(const l in s)for(const e in s[l]){const r=parseInt(e,10);if(r>=n&&(!i||r<t))for(const t in s[l][e])return!1}return!0}_getStyleDeclaration(e,t){if(this._styleMap&&!this.isWrapping){const n=this._styleMap[e];if(!n)return{};e=n.line,t=n.offset+t}return super._getStyleDeclaration(e,t)}_setStyleDeclaration(e,t,n){const r=this._styleMap[e];super._setStyleDeclaration(r.line,r.offset+t,n)}_deleteStyleDeclaration(e,t){const n=this._styleMap[e];super._deleteStyleDeclaration(n.line,n.offset+t)}_getLineStyle(e){const t=this._styleMap[e];return!!this.styles[t.line]}_setLineStyle(e){const t=this._styleMap[e];super._setLineStyle(t.line)}_wrapText(e,t){this.isWrapping=!0;const n=this.getGraphemeDataForRender(e),r=[];for(let i=0;i<n.wordsData.length;i++)r.push(...this._wrapLine(i,t,n));return this.isWrapping=!1,r}getGraphemeDataForRender(e){const t=this.splitByGrapheme,n=t?"":" ";let r=0;return{wordsData:e.map(((e,i)=>{let o=0;const a=t?this.graphemeSplit(e):this.wordSplit(e);return 0===a.length?[{word:[],width:0}]:a.map((e=>{const a=t?[e]:this.graphemeSplit(e),s=this._measureWord(a,i,o);return r=Math.max(s,r),o+=a.length+n.length,{word:a,width:s}}))})),largestWordWidth:r}}_measureWord(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=0;for(let o=0,a=e.length;o<a;o++){i+=this._getGraphemeBox(e[o],t,o+r,n,true).kernedWidth,n=e[o]}return i}wordSplit(e){return e.split(this._wordJoiners)}_wrapLine(e,t,n){let{largestWordWidth:r,wordsData:i}=n,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const a=this._getWidthOfCharSpacing(),s=this.splitByGrapheme,l=[],c=s?"":" ";let u=0,h=[],f=0,d=0,p=!0;t-=o;const g=Math.max(t,r,this.dynamicMinWidth),v=i[e];let m;for(f=0,m=0;m<v.length;m++){const{word:t,width:n}=v[m];f+=t.length,u+=d+n-a,u>g&&!p?(l.push(h),h=[],u=n,p=!0):u+=a,p||s||h.push(c),h=h.concat(t),d=s?0:this._measureWord([c],e,f),f++,p=!1}return m&&l.push(h),r+o>this.dynamicMinWidth&&(this.dynamicMinWidth=r-a+o),l}isEndOfWrapping(e){return!this._styleMap[e+1]||this._styleMap[e+1].line!==this._styleMap[e].line}missingNewlineOffset(e,t){return this.splitByGrapheme&&!t?this.isEndOfWrapping(e)?1:0:1}_splitTextIntoLines(e){var t=this.path?1e7:this.width;t=t||rs.defaultWrapWidth;const n=super._splitTextIntoLines(e),r=this._wrapText(n.lines,t),i=new Array(r.length);for(let o=0;o<r.length;o++)i[o]=r[o].join("");return n.lines=i,n.graphemeLines=r,n}getMinWidth(){return Math.max(this.minWidth,this.dynamicMinWidth)}_removeExtraneousStyles(){const e=new Map;for(const t in this._styleMap){const n=parseInt(t,10);if(this._textLines[n]){const n=this._styleMap[t].line;e.set("".concat(n),!0)}}for(const t in this.styles)e.has(t)||delete this.styles[t]}toObject(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return super.toObject(["minWidth","splitByGrapheme",...e])}static async fromElement(e,t,n){if(!e)return null;var r=Hi(e,rs.ATTRIBUTE_NAMES,n);const i=Object(g.a)(Object(g.a)({},n?JSON.parse(JSON.stringify(n)):{}),r);let o;if(/^'(.*)'$/.test(i.fontFamily)&&(i.fontFamily=i.fontFamily.slice(1,-1)),i.top=i.top||0,i.left=i.left||0,r.textDecoration){var a=r.textDecoration;-1!==a.indexOf("underline")&&(i.underline=!0),-1!==a.indexOf("overline")&&(i.overline=!0),-1!==a.indexOf("line-through")&&(i.linethrough=!0),delete i.textDecoration}"dx"in r&&(i.left+=r.dx),"dy"in r&&(i.top+=r.dy),"fontSize"in i||(i.fontSize=16);const s=e.getElementsByTagName("textPath");return o=s.length?this._fromTextPath(s[0],i,r):this._fromTextSpan(e,i,r),o}static _findSvgTextPath(e,t){return e.closest("svg").querySelector(t)}static _fromTextSpan(e,t,n){var r="",i=n.textAnchor||"left";let o=!n.textAnchor,a="",s=1,l="auto",c=0,u=null,h=0;if(e.hasAttribute("line-height")?t.lineHeight=parseFloat(e.getAttribute("line-height")):t["line-height"]?t.lineHeight=parseFloat(t["line-height"])/100:t.lineHeight=1,"textContent"in e){r=e.textContent;let n=e.getElementsByTagName("tspan");if(n.length>0){let e=[],c="",d=0,p=0,g=0,v=0;for(let r=0;r<n.length;r++){var f=Hi(n[r],rs.ATTRIBUTE_NAMES);if(g+=Number(f.dx)||0,v+=Number(f.dy)||0,"left"in f){let e=parseFloat(f.left);u=null!=u?Math.min(u,e):e}if(0===r){if(n[r].hasAttribute("text-anchor")){let e=n[r].getAttribute("text-anchor");
2"middle"===e?i="center":"end"===e&&(i="right"),o=!1}if(n[r].hasAttribute("alignment-baseline")&&(l=n[r].getAttribute("alignment-baseline")),"top"in f){let e=parseFloat(f.top);e+=v,h=t.top-e}}f.left=Number(f.left||0)+g,f.top=Number(f.top||0)+v,0===r||p===f.top?(c+=n[r].textContent,0===r&&(d=Number(f.left||0))):(e.push({text:c,left:d}),c=n[r].textContent,d=Number(f.left||0)),p=f.top}if(c.length&&e.push({text:c,left:d}),r=e.map((e=>e.text)).join("\n"),s=e.length,o&&e.some((e=>e.left!==d))){let n=e[0].left,r=e[0].left,i=0,o=null,s=null,l=0,c=0;e.forEach(((e,a)=>{if(n=Math.min(n,e.left),e.width=new rs(e.text,t).calcTextWidth(),e.right=e.left+(e.width||0),r=Math.max(r,e.right),i=Math.max(i,e.width||0),e.width){const t=e.left+(e.width||0)/2;o=o?Math.min(o,t):t,s=s?Math.max(s,t):t,e.text.length>l&&(l=e.text.length,c=a)}}));let u=0,h=0;if(e.forEach((e=>{u=Math.max(u,(e.left||0)-n),h=Math.max(h,r-(e.right||0))})),null!==s&&null!==o){const t=s-o,n=(e[c].width||0)/e[c].text.length;u/(h||1)>2&&t>n/2&&h<n/3?a="right":t<n/2&&(a="center")}}}}else"firstChild"in e&&null!==e.firstChild&&"data"in e.firstChild&&null!==e.firstChild.data&&(r=e.firstChild.data);c=t.left-(u||0),t.textAlign=i;var d=t.strokeWidth;t.strokeWidth=0,rs.enableCalcTextHeight=!0;var p=new rs(r,t),v=p.height/s,m=p.getScaledHeight()/p.height,y=((v+p.strokeWidth)*p.lineHeight-v)*m,b=p.getScaledHeight()/s+y,x=0,_=0;let w=0;"before-edge"===l?w=1.1:"auto"===l&&(w=.02913333333),0!==w&&(_=(b-p.fontSize*(w+p._fontSizeFraction))/p.lineHeight),rs.enableCalcTextHeight=!1;const S={},C=t.width;let k=p.calcTextWidth();const O=new rs("i",t).calcTextWidth();k+=O,C!==k&&(S.width=k),a&&(S.textAlign=a);const E=a||i;return"center"===E?x=("center"===i?k:O)/2:"right"===E&&(x="right"===i?k:O),p.set(Object(g.a)(Object(g.a)({},S),{},{left:p.left-x-c,top:p.top-_-h,strokeWidth:"undefined"!==typeof d?d:1})),p}}ns=rs,B(rs,"type","Textbox"),B(rs,"textLayoutProperties",[...ts.textLayoutProperties,"width"]),B(rs,"ownDefaults",{minWidth:20,dynamicMinWidth:2,lockScalingFlip:!0,noScaleCache:!1,_wordJoiners:/[ \t\r]/,splitByGrapheme:!1}),B(rs,"enableCalcTextHeight",!1),B(rs,"defaultWrapWidth",1920),B(rs,"_fromTextPath",((e,t,n)=>{var r=n.textAnchor||"left",i=Hi(e,["href","text-anchor","startOffset"]);i.textAnchor&&(r=i.textAnchor),"middle"===r?r="center":"end"===r&&(r="right"),t.textAlign=r;var o=e.textContent,a=new ns(o,t);const s=i.href;if(s&&s.startsWith("#")){const n=ns._findSvgTextPath(e,s);if(n){var l=Hi(n,ca.ATTRIBUTE_NAMES);const e=new ca(l.d,Object(g.a)(Object(g.a)({},l),{strokeWidth:1,stroke:"#ff0000",fill:null,visible:!1}));ns.enableCalcTextHeight=!0;const r=new ns("i",{fontFamily:t.fontFamily,fontSize:t.fontSize,fontStyle:t.fontStyle,fontWeight:t.fontWeight,width:void 0,height:void 0}).height||20;a.set({width:(e.width||0)+2*r,height:(e.height||0)+2*r,path:e,pathType:"custom"}),ns.enableCalcTextHeight=!1}}return a.set({left:t.left-(a.width||0)/2,top:t.top-(a.height||0)/2}),a})),Pe.setClass(rs),Pe.setSVGClass(rs);class is extends Zi{shouldPerformLayout(e){return!!e.target.clipPath&&super.shouldPerformLayout(e)}shouldLayoutClipPath(){return!1}calcLayoutResult(e,t){const{target:n}=e,{clipPath:r,group:i}=n;if(!r||!this.shouldPerformLayout(e))return;const{width:o,height:a}=Nt(Ki(n,r)),s=new De(o,a);if(r.absolutePositioned){return{center:Wt(r.getRelativeCenterPoint(),void 0,i?i.calcTransformMatrix():void 0),size:s}}{const i=r.getRelativeCenterPoint().transform(n.calcOwnMatrix(),!0);if(this.shouldPerformLayout(e)){const{center:n=new De,correction:r=new De}=this.calcBoundingBox(t,e)||{};return{center:n.add(i),correction:r.subtract(i),size:s}}return{center:n.getRelativeCenterPoint().add(i),size:s}}}}B(is,"type","clip-path"),Pe.setClass(is);class os extends Zi{getInitialSize(e,t){let{target:n}=e,{size:r}=t;return new De(n.width||r.x,n.height||r.y)}}B(os,"type","fixed"),Pe.setClass(os);class as extends eo{subscribeTargets(e){const t=e.target;e.targets.reduce(((e,t)=>(t.parent&&e.add(t.parent),e)),new Set).forEach((e=>{e.layoutManager.subscribeTargets({target:e,targets:[t]})}))}unsubscribeTargets(e){const t=e.target,n=t.getObjects();e.targets.reduce(((e,t)=>(t.parent&&e.add(t.parent),e)),new Set).forEach((e=>{!n.some((t=>t.parent===e))&&e.layoutManager.unsubscribeTargets({target:e,targets:[t]})}
2))}}class ss extends no{static getDefaults(){return Object(g.a)(Object(g.a)({},super.getDefaults()),ss.ownDefaults)}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),Object.assign(this,ss.ownDefaults),this.setOptions(t);const{left:n,top:r,layoutManager:i}=t;this.groupInit(e,{left:n,top:r,layoutManager:null!==i&&void 0!==i?i:new as})}_shouldSetNestedCoords(){return!0}__objectSelectionMonitor(){}multiSelectAdd(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"selection-order"===this.multiSelectionStacking?this.add(...t):t.forEach((e=>{const t=this._objects.findIndex((t=>t.isInFrontOf(e))),n=-1===t?this.size():t;this.insertAt(n,e)}))}canEnterGroup(e){return this.getObjects().some((t=>t.isDescendantOf(e)||e.isDescendantOf(t)))?(V("error","ActiveSelection: circular object trees are not supported, this call has no effect"),!1):super.canEnterGroup(e)}enterGroup(e,t){e.parent&&e.parent===e.group?e.parent._exitGroup(e):e.group&&e.parent!==e.group&&e.group.remove(e),this._enterGroup(e,t)}exitGroup(e,t){this._exitGroup(e,t),e.parent&&e.parent._enterGroup(e,!0)}_onAfterObjectsChange(e,t){super._onAfterObjectsChange(e,t);const n=new Set;t.forEach((e=>{const{parent:t}=e;t&&n.add(t)})),e===Yi?n.forEach((e=>{e._onAfterObjectsChange(Xi,t)})):n.forEach((e=>{e._set("dirty",!0)}))}onDeselect(){return this.removeAll(),!1}toString(){return"#<ActiveSelection: (".concat(this.complexity(),")>")}shouldCache(){return!1}isOnACache(){return!1}_renderControls(e,t,n){e.save(),e.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1;const r=Object(g.a)(Object(g.a)({hasControls:!1},n),{},{forActiveSelection:!0}
vendor: 9,763 bytes, line 2
2);for(let i=0;i<this._objects.length;i++)this._objects[i]._renderControls(e,r);super._renderControls(e,t),e.restore()}}B(ss,"type","ActiveSelection"),B(ss,"ownDefaults",{multiSelectionStacking:"canvas-stacking"}),Pe.setClass(ss),Pe.setClass(ss,"activeSelection");class ls{constructor(){B(this,"resources",{})}applyFilters(e,t,n,r,i){const o=i.getContext("2d");if(!o)return;o.drawImage(t,0,0,n,r);const a={sourceWidth:n,sourceHeight:r,imageData:o.getImageData(0,0,n,r),originalEl:t,originalImageData:o.getImageData(0,0,n,r),canvasEl:i,ctx:o,filterBackend:this};e.forEach((e=>{e.applyTo(a)}));const{imageData:s}=a;return s.width===n&&s.height===r||(i.width=s.width,i.height=s.height),o.putImageData(s,0,0),a}}class cs{constructor(){let{tileSize:e=z.textureSize}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};B(this,"aPosition",new Float32Array([0,0,0,1,1,0,1,1])),B(this,"resources",{}),this.tileSize=e,this.setupGLContext(e,e),this.captureGPUInfo()}setupGLContext(e,t){this.dispose(),this.createWebGLCanvas(e,t)}createWebGLCanvas(e,t){const n=qe({width:e,height:t}),r=n.getContext("webgl",{alpha:!0,premultipliedAlpha:!1,depth:!1,stencil:!1,antialias:!1});r&&(r.clearColor(0,0,0,0),this.canvas=n,this.gl=r)}applyFilters(e,t,n,r,i,o){const a=this.gl,s=i.getContext("2d");if(!a||!s)return;let l;o&&(l=this.getCachedTexture(o,t));const c={originalWidth:t.width||t.naturalWidth||0,originalHeight:t.height||t.naturalHeight||0,sourceWidth:n,sourceHeight:r,destinationWidth:n,destinationHeight:r,context:a,sourceTexture:this.createTexture(a,n,r,l?void 0:t),targetTexture:this.createTexture(a,n,r),originalTexture:l||this.createTexture(a,n,r,l?void 0:t),passes:e.length,webgl:!0,aPosition:this.aPosition,programCache:this.programCache,pass:0,filterBackend:this,targetCanvas:i},u=a.createFramebuffer();return a.bindFramebuffer(a.FRAMEBUFFER,u),e.forEach((e=>{e&&e.applyTo(c)})),function(e){const t=e.targetCanvas,n=t.width,r=t.height,i=e.destinationWidth,o=e.destinationHeight;n===i&&r===o||(t.width=i,t.height=o)}(c),this.copyGLTo2D(a,c),a.bindTexture(a.TEXTURE_2D,null),a.deleteTexture(c.sourceTexture),a.deleteTexture(c.targetTexture),a.deleteFramebuffer(u),s.setTransform(1,0,0,1,0,0),c}dispose(){this.canvas&&(this.canvas=null,this.gl=null),this.clearWebGLCaches()}clearWebGLCaches(){this.programCache={},this.textureCache={}}createTexture(e,t,n,r,i){const{NEAREST:o,TEXTURE_2D:a,RGBA:s,UNSIGNED_BYTE:l,CLAMP_TO_EDGE:c,TEXTURE_MAG_FILTER:u,TEXTURE_MIN_FILTER:h,TEXTURE_WRAP_S:f,TEXTURE_WRAP_T:d}=e,p=e.createTexture();return e.bindTexture(a,p),e.texParameteri(a,u,i||o),e.texParameteri(a,h,i||o),e.texParameteri(a,f,c),e.texParameteri(a,d,c),r?e.texImage2D(a,0,s,s,l,r):e.texImage2D(a,0,s,t,n,0,s,l,null),p}getCachedTexture(e,t,n){const{textureCache:r}=this;if(r[e])return r[e];{const i=this.createTexture(this.gl,t.width,t.height,t,n);return i&&(r[e]=i),i}}evictCachesForKey(e){this.textureCache[e]&&(this.gl.deleteTexture(this.textureCache[e]),delete this.textureCache[e])}copyGLTo2D(e,t){const n=e.canvas,r=t.targetCanvas,i=r.getContext("2d");if(!i)return;i.translate(0,r.height),i.scale(1,-1);const o=n.height-r.height;i.drawImage(n,0,o,r.width,r.height,0,0,r.width,r.height)}copyGLTo2DPutImageData(e,t){const n=t.targetCanvas.getContext("2d"),r=t.destinationWidth,i=t.destinationHeight,o=r*i*4;if(!n)return;const a=new Uint8Array(this.imageBuffer,0,o),s=new Uint8ClampedArray(this.imageBuffer,0,o);e.readPixels(0,0,r,i,e.RGBA,e.UNSIGNED_BYTE,a);const l=new ImageData(s,r,i);n.putImageData(l,0,0)}captureGPUInfo(){if(this.gpuInfo)return this.gpuInfo;const e=this.gl,t={renderer:"",vendor:""};if(!e)return t;const n=e.getExtension("WEBGL_debug_renderer_info");if(n){const r=e.getParameter(n.UNMASKED_RENDERER_WEBGL),i=e.getParameter(n.UNMASKED_VENDOR_WEBGL);r&&(t.renderer=r.toLowerCase()),i&&(t.vendor=i.toLowerCase())}return this.gpuInfo=t,t}}let us;function hs(){const{WebGLProbe:e}=Y();return e.queryWebGL(We()),z.enableGLFiltering&&e.isSupported(z.textureSize)?new cs({tileSize:z.textureSize}):new ls}function fs(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return!us&&e&&(us=hs()),us}const ds=["cropX","cropY"];class ps extends ni{static getDefaults(){return Object(g.a)(Object(g.a)({},super.getDefaults()),ps.ownDefaults)}constructor(e,t){super(),B(this,"_lastScaleX",1),B(this,"_lastScaleY",1),B(this,"_filterScalingX",1),B(this,"_filterScalingY",1),this.filters=[],Object.assign(this,ps.ownDefaults),this.setOptions(t),this.cacheKey="texture".concat(He()),this.setElement("string"===typeof e?(this.canvas&&kt(this.canvas.getElement())||$()).getElementById(e):e,t)}getElement(){return this._element}setElement(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.removeTexture(this.cacheKey),this.removeTexture("".concat(this.cacheKey,"_filtered")),this._element=e,this._originalElement=e,this._setWidthHeight(n),null===(t=e.classList)||void 0===t||t.add(ps.CSS_CANVAS),0!==this.filters.length&&this.applyFilters(),this.resizeFilter&&this.applyResizeFilters()}removeTexture(e){const t=fs(!1);t instanceof cs&&t.evictCachesForKey(e)}dispose(){super.dispose(),this.removeTexture(this.cacheKey),this.removeTexture("".concat(this.cacheKey,"_filtered")),this._cacheContext=null,["_originalElement","_element","_filteredEl","_cacheCanvas"].forEach((e=>{const t=this[e];t&&Y().dispose(t),this[e]=void 0}))}getCrossOrigin(){return this._originalElement&&(this._originalElement.crossOrigin||null)}getOriginalSize(){const e=this.getElement();return e?{width:e.naturalWidth||e.width,height:e.naturalHeight||e.height}:{width:0,height:0}}_stroke(e){if(!this.stroke||0===this.strokeWidth)return;const t=this.width/2,n=this.height/2;e.beginPath(),e.moveTo(-t,-n),e.lineTo(t,-n),e.lineTo(t,n),e.lineTo(-t,n),e.lineTo(-t,-n),e.closePath()}toObject(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=[];return this.filters.forEach((e=>{e&&t.push(e.toObject())})),Object(g.a)(Object(g.a)({},super.toObject([...ds,...e])),{},{src:this.getSrc(),crossOrigin:this.getCrossOrigin(),filters:t},this.resizeFilter?{resizeFilter:this.resizeFilter.toObject()}:{})}hasCrop(){return!!this.cropX||!!this.cropY||this.width<this._element.width||this.height<this._element.height}_toSVG(){const e=[],t=this._element,n=-this.width/2,r=-this.height/2;let i=[],o=[],a="",s="";if(!t)return[];if(this.hasCrop()){const e=He();i.push('<clipPath id="imageCrop_'+e+'">\n','\t<rect x="'+n+'" y="'+r+'" width="'+this.width+'" height="'+this.height+'" />\n',"</clipPath>\n"),a=' clip-path="url(#imageCrop_'+e+')" '}if(this.imageSmoothing||(s=' image-rendering="optimizeSpeed"'),e.push("\t<image ","COMMON_PARTS",'xlink:href="'.concat(this.getSvgSrc(!0),'" x="').concat(n-this.cropX,'" y="').concat(r-this.cropY,'" width="').concat(t.width||t.naturalWidth,'" height="').concat(t.height||t.naturalHeight,'"').concat(s).concat(a,"></image>\n")),this.stroke||this.strokeDashArray){const e=this.fill;this.fill=null,o=['\t<rect x="'.concat(n,'" y="').concat(r,'" width="').concat(this.width,'" height="').concat(this.height,'" style="').concat(this.getSvgStyles(),'" />\n')],this.fill=e}return i=this.paintFirst!==Ee?i.concat(o,e):i.concat(e,o),i}getSrc(e){const t=e?this._element:this._originalElement;return t?t.toDataURL?t.toDataURL():this.srcFromAttribute?t.getAttribute("src")||"":t.src:this.src||""}getSvgSrc(e){return this.getSrc(e)}setSrc(e){let{crossOrigin:t,signal:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return ft(e,{crossOrigin:t,signal:n}).then((e=>{"undefined"!==typeof t&&this.set({crossOrigin:t}),this.setElement(e)}))}toString(){return'#<Image: { src: "'.concat(this.getSrc(),'" }>')}applyResizeFilters(){const e=this.resizeFilter,t=this.minimumScaleTrigger,n=this.getTotalObjectScaling(),r=n.x,i=n.y,o=this._filteredEl||this._originalElement;if(this.group&&this.set("dirty",!0),!e||r>t&&i>t)return this._element=o,this._filterScalingX=1,this._filterScalingY=1,this._lastScaleX=r,void(this._lastScaleY=i);const a=qe(o),{width:s,height:l}=o;this._element=a,this._lastScaleX=e.scaleX=r,this._lastScaleY=e.scaleY=i,fs().applyFilters([e],o,s,l,this._element),this._filterScalingX=a.width/this._originalElement.width,this._filterScalingY=a.height/this._originalElement.height}applyFilters(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.filters||[];if(e=e.filter((e=>e&&!e.isNeutralState())),this.set("dirty",!0),this.removeTexture("".concat(this.cacheKey,"_filtered")),0===e.length)return this._element=this._originalElement,this._filteredEl=void 0,this._filterScalingX=1,void(this._filterScalingY=1);const t=this._originalElement,n=t.naturalWidth||t.width,r=t.naturalHeight||t.height;if(this._element===this._originalElement){const e=qe({width:n,height:r});this._element=e,this._filteredEl=e}else this._filteredEl&&(this._element=this._filteredEl,this._filteredEl.getContext("2d").clearRect(0,0,n,r),this._lastScaleX=1,this._lastScaleY=1);fs().applyFilters(e,this._originalElement,n,r,this._element,this.cacheKey),this._originalElement.width===this._element.width&&this._originalElement.height===this._element.height||(this._filterScalingX=this._element.width/this._originalElement.width,this._filterScalingY=this._element.height/this._originalElement.height)}_render(e){e.imageSmoothingEnabled=this.imageSmoothing,!0!==this.isMoving&&this.resizeFilter&&this._needsResize()&&this.applyResizeFilters(),this._stroke(e),this._renderPaintInOrder(e)}drawCacheOnCanvas(e){e.imageSmoothingEnabled=this.imageSmoothing,super.drawCacheOnCanvas(e)}shouldCache(){return this.needsItsOwnCache()}_renderFill(e){const t=this._element;if(!t)return;const n=this._filterScalingX,r=this._filterScalingY,i=this.width,o=this.height,a=Math.max(this.cropX,0),s=Math.max(this.cropY,0),l=t.naturalWi
2dth||t.width,c=t.naturalHeight||t.height,u=a*n,h=s*r,f=Math.min(i*n,l-u),d=Math.min(o*r,c-h),p=-i/2,g=-o/2,v=Math.min(i,l/n-a),m=Math.min(o,c/r-s);t&&e.drawImage(t,u,h,f,d,p,g,v,m)}_needsResize(){const e=this.getTotalObjectScaling();return e.x!==this._lastScaleX||e.y!==this._lastScaleY}_resetWidthHeight(){this.set(this.getOriginalSize())}_setWidthHeight(){let{width:e,height:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=this.getOriginalSize();this.width=e||n.width,this.height=t||n.height}parsePreserveAspectRatioAttribute(){const e=gn(this.preserveAspectRatio||""),t=this.width,n=this.height,r={width:t,height:n};let i,o=this._element.width,a=this._element.height,s=1,l=1,c=0,u=0,h=0,f=0;return!e||e.alignX===he&&e.alignY===he?(s=t/o,l=n/a):("meet"===e.meetOrSlice&&(s=l=ro(this._element,r),i=(t-o*s)/2,"Min"===e.alignX&&(c=-i),"Max"===e.alignX&&(c=i),i=(n-a*l)/2,"Min"===e.alignY&&(u=-i),"Max"===e.alignY&&(u=i)),"slice"===e.meetOrSlice&&(s=l=io(this._element,r),i=o-t/s,"Mid"===e.alignX&&(h=i/2),"Max"===e.alignX&&(h=i),i=a-n/l,"Mid"===e.alignY&&(f=i/2),"Max"===e.alignY&&(f=i),o=t/s,a=n/l)),{width:o,height:a,scaleX:s,scaleY:l,offsetLeft:c,offsetTop:u,cropX:h,cropY:f}}static fromObject(e,t){let{filters:n,resizeFilter:r,src:i,crossOrigin:o,type:a}=e,s=Object(p.a)(e,D);return Promise.all([ft(i,Object(g.a)(Object(g.a)({},t),{},{crossOrigin:o,fallbackToEmptyImage:!0})),n&&dt(n,t),r&&dt([r],t),pt(s,t)]).then((e=>{let[t,n=[],r=[],o={}]=e;const[a]=r;return new this(t,Object(g.a)(Object(g.a)({},s),{},{src:i,filters:n,resizeFilter:a},o))}))}static fromURL(e){let{crossOrigin:t=null,signal:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return ft(e,{crossOrigin:t,signal:n}).then((e=>new this(e,r)))}static async fromElement(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r=Hi(e,this.ATTRIBUTE_NAMES,n);return this.fromURL(r["xlink:href"]||r.href,t,r).catch((e=>(V("log","Unable to parse Image",e),null)))}}function gs(e){if(!Fn.test(e.nodeName))return{};const t=e.getAttribute("viewBox");let n,r,i=1,o=1,a=0,s=0;const l=e.getAttribute("width"),c=e.getAttribute("height"),u=e.getAttribute("x")||0,h=e.getAttribute("y")||0,f=!(t&&Un.test(t)),d=!l||!c||"100%"===l||"100%"===c;let p="",g=0,v=0;if(f&&(u||h)&&e.parentNode&&"#document"!==e.parentNode.nodeName&&(p=" translate("+pn(u||"0")+" "+pn(h||"0")+") ",n=(e.getAttribute("transform")||"")+p,e.setAttribute("transform",n),e.removeAttribute("x"),e.removeAttribute("y")),f&&d)return{width:0,height:0};const m={width:0,height:0};if(f)return m.width=pn(l),m.height=pn(c),m;const y=t.match(Un);a=-parseFloat(y[1]),s=-parseFloat(y[2]);const b=parseFloat(y[3]),x=parseFloat(y[4]);m.minX=a,m.minY=s,m.viewBoxWidth=b,m.viewBoxHeight=x,d?(m.width=b,m.height=x):(m.width=pn(l),m.height=pn(c),i=m.width/b,o=m.height/x);const _=gn(e.getAttribute("preserveAspectRatio")||"");if(_.alignX!==he&&("meet"===_.meetOrSlice&&(o=i=i>o?o:i),"slice"===_.meetOrSlice&&(o=i=i>o?i:o),g=m.width-b*i,v=m.height-x*i,"Mid"===_.alignX&&(g/=2),"Mid"===_.alignY&&(v/=2),"Min"===_.alignX&&(g=0),"Min"===_.alignY&&(v=0)),1===i&&1===o&&0===a&&0===s&&0===u&&0===h)return m;if((u||h)&&"#document"!==e.parentNode.nodeName&&(p=" translate("+pn(u||"0")+" "+pn(h||"0")+") "),n=p+" matrix("+i+" 0 0 "+o+" "+(a*i+g)+" "+(s*o+v)+") ","svg"===e.nodeName){for(r=e.ownerDocument.createElementNS(Ln,"g");e.firstChild;)r.appendChild(e.firstChild);e.appendChild(r)}else r=e,r.removeAttribute("x"),r.removeAttribute("y"),n=r.getAttribute("transform")+n;return r.setAttribute("transform",n),m}B(ps,"type","Image"),B(ps,"cacheProperties",[...ir,...ds]),B(ps,"ownDefaults",{strokeWidth:0,srcFromAttribute:!1,minimumScaleTrigger:.5,cropX:0,cropY:0,imageSmoothing:!0}),B(ps,"CSS_CANVAS","canvas-img"),B(ps,"ATTRIBUTE_NAMES",[...xi,"x","y","width","height","preserveAspectRatio","xlink:href","href","crossOrigin","image-rendering"]),Pe.setClass(ps),Pe.setSVGClass(ps);const vs=e=>e.tagName.replace("svg:",""),ms=yn(["pattern","defs","symbol","metadata","clipPath","mask","desc"]);function ys(e){let t=e;for(;t&&(t=t.parentElement);)if(t&&t.nodeName&&ms.test(vs(t))&&!t.getAttribute("instantiated_by_use"))return!0;return!1}function bs(e,t){let n,r,i,o,a=[];for(i=0,o=t.length;i<o;i++)n=t[i],r=e.getElementsByTagNameNS("http://www.w3.org/2000/svg",n),a=a.concat(Array.from(r));return a}function xs(e){const t=bs(e,["use","svg:use"]),n=["x","y","xlink:href","href","transform"];for(const r of t){const t=r.attributes,i={};for(const e of t)e.value&&(i[e.name]=e.value);const o=(i["xlink:href"]||i.href||"").slice(1);if(""===o)return;const a=e.getElementById(o);if(null===a)return;let s=a.cloneNode(!0);const l=s.attributes,c={};for(const e of l)e.value&&(c[e.name]=e.value);const{x:u=0,y:h=0,transform:f=""}=i,d="".concat(f," ").concat(c.transform||""," translate(").concat(u,", ").concat(h,")");
2if(gs(s),/^svg$/i.test(s.nodeName)){const e=s.ownerDocument.createElementNS(Ln,"g");Object.entries(c).forEach((t=>{let[n,r]=t;return e.setAttributeNS(Ln,n,r)})),e.append(...s.childNodes),s=e}for(const e of t){if(!e)continue;const{name:t,value:r}=e;if(!n.includes(t))if("style"===t){const e={};Ui(r,e),Object.entries(c).forEach((t=>{let[n,r]=t;e[n]=r})),Ui(c.style||"",e);const n=Object.entries(e).map((e=>e.join(":"))).join(";");s.setAttribute(t,n)}else!c[t]&&s.setAttribute(t,r)}s.setAttribute("transform",d),s.setAttribute("instantiated_by_use","1"),s.removeAttribute("id"),r.parentNode.replaceChild(s,r)}}const _s=["gradientTransform","x1","x2","y1","y2","gradientUnits","cx","cy","r","fx","fy"],ws="xlink:href";function Ss(e,t){var n;const r=(null===(n=t.getAttribute(ws))||void 0===n?void 0:n.slice(1))||"",i=e.getElementById(r);if(i&&i.getAttribute(ws)&&Ss(e,i),i&&(_s.forEach((e=>{const n=i.getAttribute(e);!t.hasAttribute(e)&&n&&t.setAttribute(e,n)})),!t.children.length)){const e=i.cloneNode(!0);for(;e.firstChild;)t.appendChild(e.firstChild)}t.removeAttribute(ws)}const Cs=["linearGradient","radialGradient","svg:linearGradient","svg:radialGradient"];function ks(e,t){var n,r=function(e,t){if(3===e.nodeType)return;var i=Fi(e.getAttribute("pattern"===e.nodeName?"patternTransform":"transform")||"");t=et(t,i);const o=e=>{for(var n=0;n<e.childNodes.length;n++){const i=e.childNodes[n];i instanceof Element&&r(i,t)}};"switch"==e.nodeName||"g"===e.nodeName||"pattern"===e.nodeName?o(e):"clipPath"===e.nodeName||"image"===e.nodeName&&(n={source:e.getAttribute("xlink:href"),patternTransform:t})};return r(t,[1,0,0,1,0,0]),n}const Os=e=>{let t=vs(e).toLowerCase();return"text"===t&&(t="textbox"),Pe.getSVGClass(t)};class Es{constructor(e,t,n,r,i){this.elements=e,this.options=t,this.reviver=n,this.regexUrl=/^url\(['"]?#([^'"]+)['"]?\)/g,this.doc=r,this.clipPaths=i,this.gradientDefs=function(e){const t=bs(e,Cs),n={};let r=t.length;for(;r--;){const i=t[r];i.getAttribute("xlink:href")&&Ss(e,i);const o=i.getAttribute("id");o&&(n[o]=i)}return n}(r),this.patternDefs=function(e){var t,n=bs(e,["pattern"]),r=0;const i={};for(r=n.length;r--;){const e=(t=n[r]).getAttribute("id");if(e){var o=ks(0,t);o&&(i[e]=o)}}return i}(r),this.cssRules=function(e){const t=e.getElementsByTagName("style"),n={};for(let r=0;r<t.length;r++){const e=(t[r].textContent||"").replace(/\/\*[\s\S]*?\*\//g,"");""!==e.trim()&&e.split("}").filter(((e,t,n)=>n.length>1&&e.trim())).forEach((e=>{if((e.match(/{/g)||[]).length>1&&e.trim().startsWith("@"))return;const t=e.split("{");
2if(!t[1])return;const r={},i=t[1].trim().split(";").filter((function(e){return e.trim()}));for(let n=0;n<i.length;n++){const e=i[n].split(":");if(e.length<2)return;const t=e[0].trim(),o=e[1].trim();r[t]=o}(e=t[0].trim()).split(",").forEach((e=>{""!==(e=e.replace(/^svg/i,"").trim())&&(n[e]=Object(g.a)(Object(g.a)({},n[e]||{}),r))}))}))}return n}(r)}parse(){return Promise.all(this.elements.map((e=>this.createObject(e))))}async createObject(e){const t=Os(e);if(t){const n=await t.fromElement(e,this.options,this.cssRules);return this.resolveGradient(n,e,Ee),this.resolvePattern(n,e,Ee),this.resolveGradient(n,e,Te),n instanceof ps&&n._originalElement?No(n,n.parsePreserveAspectRatioAttribute()):No(n),await this.resolveClipPath(n,e),this.reviver&&this.reviver(e,n),n}return null}extractPropertyDefinition(e,t,n){const r=e[t],i=this.regexUrl;if(!i.test(r))return;i.lastIndex=0;const o=i.exec(r)[1];return i.lastIndex=0,n[o]}resolveGradient(e,t,n){const r=this.extractPropertyDefinition(e,n,this.gradientDefs);if(r){const i=t.getAttribute(n+"-opacity"),o=sa.fromElement(r,e,Object(g.a)(Object(g.a)({},this.options),{},{opacity:i}));e.set(n,o)}}resolvePattern(e,t,n){var r=this.extractPropertyDefinition(e,n,this.patternDefs);if(r){var i=new an(r);e.set(n,i)}}async resolveClipPath(e,t,n){const r=this.extractPropertyDefinition(e,"clipPath",this.clipPaths);if(r){const i=Je(e.calcTransformMatrix()),o=r[0].parentElement;let a=t;for(;!n&&a.parentElement&&a.getAttribute("clip-path")!==e.clipPath;)a=a.parentElement;a.hasAttribute("transform")&&o.setAttribute("transform",a.getAttribute("transform")),a.parentElement.appendChild(o);const s=Fi("".concat(a.getAttribute("transform")||""," ").concat(o.getAttribute("originalTransform")||""));o.setAttribute("transform","matrix(".concat(s.join(","),")"));const l=await Promise.all(r.map((e=>Os(e).fromElement(e,this.options,this.cssRules).then((e=>(No(e),e.fillRule=e.clipRule,delete e.clipRule,e)))))),c=1===l.length?l[0]:new no(l),u=et(i,c.calcTransformMatrix());c.clipPath&&await this.resolveClipPath(c,a,o.getAttribute("clip-path")?a:void 0);const{scaleX:h,scaleY:f,angle:d,skewX:p,translateX:g,translateY:v}=rt(u);c.set({flipX:!1,flipY:!1}),c.set({scaleX:h,scaleY:f,angle:d,skewX:p,skewY:0}),c.setPositionByOrigin(new De(g,v),ae,ae),e.clipPath=c}else delete e.clipPath}}const Ts=e=>Nn.test(vs(e));async function As(e,t){let{crossOrigin:n,signal:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(r&&r.aborted)return V("log",new W("parseSVGDocument")),{objects:[],elements:[],options:{},allElements:[]};const i=e.documentElement;xs(e);const o=Array.from(i.getElementsByTagName("*")),a=Object(g.a)(Object(g.a)({},gs(i)),{},{crossOrigin:n,signal:r}),s=o.filter((e=>(gs(e),Ts(e)&&!ys(e))));if(!s||s&&!s.length)return Object(g.a)(Object(g.a)({},{objects:[],elements:[],options:{},allElements:[]}),{},{options:a,allElements:o});const l={};o.filter((e=>"clipPath"===vs(e))).forEach((e=>{e.setAttribute("originalTransform",e.getAttribute("transform")||"");const t=e.getAttribute("id");l[t]=Array.from(e.getElementsByTagName("*")).filter((e=>Ts(e)))}));const c=new Es(s,a,t,e,l),u=await c.parse();return{objects:u,elements:s,options:a,allElements:o}}function Ps(e,t,n){return As((new(K().DOMParser)).parseFromString(e.trim(),"text/xml"),t,n)}function js(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise(((t,r)=>{Io(e.replace(/^\n\s*/,"").trim(),{onComplete:e=>{const n=e.responseXML;n&&t(n),r()},signal:n.signal})})).then((e=>As(e,t,n))).catch((()=>({objects:[],elements:[],options:{},allElements:[]})))}const Ls=e=>void 0!==e.webgl,Ms="precision highp float",Rs="\n ".concat(Ms,";\n varying vec2 vTexCoord;\n uniform sampler2D uTexture;\n void main() {\n gl_FragColor = texture2D(uTexture, vTexCoord);\n }"),Ds=new RegExp(Ms,"g");class Is{get type(){return this.constructor.type}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{type:t}=e,n=Object(p.a)(e,I);Object.assign(this,this.constructor.defaults,n)}getFragmentSource(){return Rs}getVertexSource(){return"\n attribute vec2 aPosition;\n varying vec2 vTexCoord;\n void main() {\n vTexCoord = aPosition;\n gl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);\n }"}createProgram(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getFragmentSource(),n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.getVertexSource();
vendor: 7,349 bytes, line 2
2const{WebGLProbe:{GLPrecision:r="highp"}}=Y();"highp"!==r&&(t=t.replace(Ds,Ms.replace("highp",r)));const i=e.createShader(e.VERTEX_SHADER),o=e.createShader(e.FRAGMENT_SHADER),a=e.createProgram();if(!i||!o||!a)throw new H("Vertex, fragment shader or program creation error");if(e.shaderSource(i,n),e.compileShader(i),!e.getShaderParameter(i,e.COMPILE_STATUS))throw new H("Vertex shader compile error for ".concat(this.type,": ").concat(e.getShaderInfoLog(i)));if(e.shaderSource(o,t),e.compileShader(o),!e.getShaderParameter(o,e.COMPILE_STATUS))throw new H("Fragment shader compile error for ".concat(this.type,": ").concat(e.getShaderInfoLog(o)));if(e.attachShader(a,i),e.attachShader(a,o),e.linkProgram(a),!e.getProgramParameter(a,e.LINK_STATUS))throw new H('Shader link error for "'.concat(this.type,'" ').concat(e.getProgramInfoLog(a)));const s=this.getUniformLocations(e,a)||{};return s.uStepW=e.getUniformLocation(a,"uStepW"),s.uStepH=e.getUniformLocation(a,"uStepH"),{program:a,attributeLocations:this.getAttributeLocations(e,a),uniformLocations:s}}getAttributeLocations(e,t){return{aPosition:e.getAttribLocation(t,"aPosition")}}getUniformLocations(e,t){const n=this.constructor.uniformLocations,r={};for(let i=0;i<n.length;i++)r[n[i]]=e.getUniformLocation(t,n[i]);return r}sendAttributeData(e,t,n){const r=t.aPosition,i=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,i),e.enableVertexAttribArray(r),e.vertexAttribPointer(r,2,e.FLOAT,!1,0,0),e.bufferData(e.ARRAY_BUFFER,n,e.STATIC_DRAW)}_setupFrameBuffer(e){const t=e.context;if(e.passes>1){const n=e.destinationWidth,r=e.destinationHeight;e.sourceWidth===n&&e.sourceHeight===r||(t.deleteTexture(e.targetTexture),e.targetTexture=e.filterBackend.createTexture(t,n,r)),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,e.targetTexture,0)}else t.bindFramebuffer(t.FRAMEBUFFER,null),t.finish()}_swapTextures(e){e.passes--,e.pass++;const t=e.targetTexture;e.targetTexture=e.sourceTexture,e.sourceTexture=t}isNeutralState(e){return!1}applyTo(e){Ls(e)?(this._setupFrameBuffer(e),this.applyToWebGL(e),this._swapTextures(e)):this.applyTo2d(e)}applyTo2d(e){}getCacheKey(){return this.type}retrieveShader(e){const t=this.getCacheKey();return e.programCache[t]||(e.programCache[t]=this.createProgram(e.context)),e.programCache[t]}applyToWebGL(e){const t=e.context,n=this.retrieveShader(e);0===e.pass&&e.originalTexture?t.bindTexture(t.TEXTURE_2D,e.originalTexture):t.bindTexture(t.TEXTURE_2D,e.sourceTexture),t.useProgram(n.program),this.sendAttributeData(t,n.attributeLocations,e.aPosition),t.uniform1f(n.uniformLocations.uStepW,1/e.sourceWidth),t.uniform1f(n.uniformLocations.uStepH,1/e.sourceHeight),this.sendUniformData(t,n.uniformLocations),t.viewport(0,0,e.destinationWidth,e.destinationHeight),t.drawArrays(t.TRIANGLE_STRIP,0,4)}bindAdditionalTexture(e,t,n){e.activeTexture(n),e.bindTexture(e.TEXTURE_2D,t),e.activeTexture(e.TEXTURE0)}unbindAdditionalTexture(e,t){e.activeTexture(t),e.bindTexture(e.TEXTURE_2D,null),e.activeTexture(e.TEXTURE0)}sendUniformData(e,t){}createHelpLayer(e){if(!e.helpLayer){const{sourceWidth:t,sourceHeight:n}=e,r=qe({width:t,height:n});e.helpLayer=r}}toObject(){const e=Object.keys(this.constructor.defaults||{});return Object(g.a)({type:this.type},e.reduce(((e,t)=>(e[t]=this[t],e)),{}))}toJSON(){return this.toObject()}static async fromObject(e,t){let{type:n}=e;return new this(Object(p.a)(e,N))}}B(Is,"type","BaseFilter"),B(Is,"uniformLocations",[]);const Ns={multiply:"gl_FragColor.rgb *= uColor.rgb;\n",screen:"gl_FragColor.rgb = 1.0 - (1.0 - gl_FragColor.rgb) * (1.0 - uColor.rgb);\n",add:"gl_FragColor.rgb += uColor.rgb;\n",difference:"gl_FragColor.rgb = abs(gl_FragColor.rgb - uColor.rgb);\n",subtract:"gl_FragColor.rgb -= uColor.rgb;\n",lighten:"gl_FragColor.rgb = max(gl_FragColor.rgb, uColor.rgb);\n",darken:"gl_FragColor.rgb = min(gl_FragColor.rgb, uColor.rgb);\n",exclusion:"gl_FragColor.rgb += uColor.rgb - 2.0 * (uColor.rgb * gl_FragColor.rgb);\n",overlay:"\n if (uColor.r < 0.5) {\n gl_FragColor.r *= 2.0 * uColor.r;\n } else {\n gl_FragColor.r = 1.0 - 2.0 * (1.0 - gl_FragColor.r) * (1.0 - uColor.r);\n }\n if (uColor.g < 0.5) {\n gl_FragColor.g *= 2.0 * uColor.g;\n } else {\n gl_FragColor.g = 1.0 - 2.0 * (1.0 - gl_FragColor.g) * (1.0 - uColor.g);\n }\n if (uColor.b < 0.5) {\n gl_FragColor.b *= 2.0 * uColor.b;\n } else {\n gl_FragColor.b = 1.0 - 2.0 * (1.0 - gl_FragColor.b) * (1.0 - uColor.b);\n }\n ",tint:"\n gl_FragColor.rgb *= (1.0 - uColor.a);\n gl_FragColor.rgb += uColor.rgb;\n "};class Fs extends Is{getCacheKey(){return"".concat(this.type,"_").concat(this.mode)}getFragmentSource(){return"\n precision highp float;\n uniform sampler2D uTexture;\n uniform vec4 uColor;\n varying vec2 vTexCoord;\n void main() {\n vec4 color = texture2D(uTexture, vTexCoord);\n gl_FragColor = color;\n if (color.a > 0.0) {\n ".concat(Ns[this.mode],"\n }\n }\n ")}applyTo2d(e){let{imageData:{data:t}}=e;const n=new dn(this.color).getSource(),r=this.alpha,i=n[0]*r,o=n[1]*r,a=n[2]*r,s=1-r;for(let l=0;l<t.length;l+=4){const e=t[l],n=t[l+1],r=t[l+2];let c,u,h;switch(this.mode){case"multiply":c=e*i/255,u=n*o/255,h=r*a/255;break;case"screen":c=255-(255-e)*(255-i)/255,u=255-(255-n)*(255-o)/255,h=255-(255-r)*(255-a)/255;break;case"add":c=e+i,u=n+o,h=r+a;break;case"difference":c=Math.abs(e-i),u=Math.abs(n-o),h=Math.abs(r-a);break;case"subtract":c=e-i,u=n-o,h=r-a;break;case"darken":c=Math.min(e,i),u=Math.min(n,o),h=Math.min(r,a);break;case"lighten":c=Math.max(e,i),u=Math.max(n,o),h=Math.max(r,a);break;case"overlay":c=i<128?2*e*i/255:255-2*(255-e)*(255-i)/255,u=o<128?2*n*o/255:255-2*(255-n)*(255-o)/255,h=a<128?2*r*a/255:255-2*(255-r)*(255-a)/255;break;case"exclusion":c=i+e-2*i*e/255,u=o+n-2*o*n/255,h=a+r-2*a*r/255;break;case"tint":c=i+e*s,u=o+n*s,h=a+r*s}t[l]=c,t[l+1]=u,t[l+2]=h}}sendUniformData(e,t){const n=new dn(this.color).getSource();n[0]=this.alpha*n[0]/255,n[1]=this.alpha*n[1]/255,n[2]=this.alpha*n[2]/255,n[3]=this.alpha,e.uniform4fv(t.uColor,n)}}B(Fs,"defaults",{color:"#F95C63",mode:"multiply",alpha:1}),B(Fs,"type","BlendColor"),B(Fs,"uniformLocations",["uColor"]),Pe.setClass(Fs);const Bs={multiply:"\n precision highp float;\n uniform sampler2D uTexture;\n uniform sampler2D uImage;\n uniform vec4 uColor;\n varying vec2 vTexCoord;\n varying vec2 vTexCoord2;\n void main() {\n vec4 color = texture2D(uTexture, vTexCoord);\n vec4 color2 = texture2D(uImage, vTexCoord2);\n color.rgba *= color2.rgba;\n gl_FragColor = color;\n }\n ",mask:"\n precision highp float;\n uniform sampler2D uTexture;\n uniform sampler2D uImage;\n uniform vec4 uColor;\n varying vec2 vTexCoord;\n varying vec2 vTexCoord2;\n void main() {\n vec4 color = texture2D(uTexture, vTexCoord);\n vec4 color2 = texture2D(uImage, vTexCoord2);\n color.a = color2.a;\n gl_FragColor = color;\n }\n "};class Us extends Is{getCacheKey(){return"".concat(this.type,"_").concat(this.mode)}getFragmentSource(){return Bs[this.mode]}getVertexSource(){return"\n attribute vec2 aPosition;\n varying vec2 vTexCoord;\n varying vec2 vTexCoord2;\n uniform mat3 uTransformMatrix;\n void main() {\n vTexCoord = aPosition;
2\n vTexCoord2 = (uTransformMatrix * vec3(aPosition, 1.0)).xy;\n gl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);\n }\n "}applyToWebGL(e){const t=e.context,n=this.createTexture(e.filterBackend,this.image);this.bindAdditionalTexture(t,n,t.TEXTURE1),super.applyToWebGL(e),this.unbindAdditionalTexture(t,t.TEXTURE1)}createTexture(e,t){return e.getCachedTexture(t.cacheKey,t.getElement())}calculateMatrix(){const e=this.image,{width:t,height:n}=e.getElement();return[1/e.scaleX,0,0,0,1/e.scaleY,0,-e.left/t,-e.top/n,1]}applyTo2d(e){let{imageData:{data:t,width:n,height:r},filterBackend:{resources:i}}=e;const o=this.image;i.blendImage||(i.blendImage=We());const a=i.blendImage,s=a.getContext("2d");a.width!==n||a.height!==r?(a.width=n,a.height=r):s.clearRect(0,0,n,r),s.setTransform(o.scaleX,0,0,o.scaleY,o.left,o.top),s.drawImage(o.getElement(),0,0,n,r);const l=s.getImageData(0,0,n,r).data;for(let c=0;c<t.length;c+=4){const e=t[c],n=t[c+1],r=t[c+2],i=t[c+3],o=l[c],a=l[c+1],s=l[c+2],u=l[c+3];switch(this.mode){case"multiply":t[c]=e*o/255,t[c+1]=n*a/255,t[c+2]=r*s/255,t[c+3]=i*u/255;break;case"mask":t[c+3]=u}}}sendUniformData(e,t){const n=this.calculateMatrix();e.uniform1i(t.uImage,1),e.uniformMatrix3fv(t.uTransformMatrix,!1,n)}toObject(){return Object(g.a)(Object(g.a)({},super.toObject()),{},{image:this.image&&this.image.toObject()})}static async fromObject(e,t){let{type:n,image:r}=e,i=Object(p.a)(e,F);return ps.fromObject(r,t).then((e=>new this(Object(g.a)(Object(g.a)({},i),{},{image:e}))))}}B(Us,"type","BlendImage"),B(Us,"defaults",{mode:"multiply",alpha:1}),B(Us,"uniformLocations",["uTransformMatrix","uImage"]),Pe.setClass(Us);class zs extends Is{getFragmentSource(){return"\n precision highp float;\n uniform sampler2D uTexture;\n uniform vec2 uDelta;\n varying vec2 vTexCoord;\n const float nSamples = 15.0;\n vec3 v3offset = vec3(12.9898, 78.233, 151.7182);\n float random(vec3 scale) {\n /* use the fragment position for a different seed per-pixel */\n return fract(sin(dot(gl_FragCoord.xyz, scale)) * 43758.5453);\n }\n void main() {\n vec4 color = vec4(0.0);\n float totalC = 0.0;\n float totalA = 0.0;\n float offset = random(v3offset);\n for (float t = -nSamples; t <= nSamples; t++) {\n float percent = (t + offset - 0.5) / nSamples;\n vec4 sample = texture2D(uTexture, vTexCoord + uDelta * percent);\n float weight = 1.0 - abs(percent);\n float alpha = weight * sample.a;\n color.rgb += sample.rgb * alpha;\n color.a += alpha;\n totalA += weight;\n totalC += alpha;\n }\n gl_FragColor.rgb = color.rgb / totalC;\n gl_FragColor.a = color.a / totalA;\n }\n "}applyTo(e){Ls(e)?(this.aspectRatio=e.sourceWidth/e.sourceHeight,e.passes++,this._setupFrameBuffer(e),this.horizontal=!0,this.applyToWebGL(e),this._swapTextures(e),this._setupFrameBuffer(e),this.horizontal=!1,this.applyToWebGL(e),this._swapTextures(e)):this.applyTo2d(e)}applyTo2d(e){let{imageData:{data:t,width:n,height:r}}=e;this.aspectRatio=n/r,this.horizontal=!0;let i=this.getBlurValue()*n;const o=new Uint8ClampedArray(t),a=4*n;for(let s=0;s<t.length;s+=4){let e=0,n=0,r=0,l=0,c=0;const u=s-s%a,h=u+a;for(let o=-14;o<15;o++){const a=o/15,f=4*Math.floor(i*a),d=1-Math.abs(a);let p=s+f;p<u?p=u:p>h&&(p=h);const g=t[p+3]*d;e+=t[p]*g,n+=t[p+1]*g,r+=t[p+2]*g,l+=g,c+=d}o[s]=e/l,o[s+1]=n/l,o[s+2]=r/l,o[s+3]=l/c}this.horizontal=!1,i=this.getBlurValue()*r;for(let s=0;s<o.length;s+=4){let e=0,n=0,r=0,l=0,c=0;const u=s%a,h=o.length-a+u;for(let t=-14;t<15;t++){const f=t/15,d=Math.floor(i*f)*a,p=1-Math.abs(f);let g=s+d;g<u?g=u:g>h&&(g=h);const v=o[g+3]*p;e+=o[g]*v,n+=o[g+1]*v,r+=o[g+2]*v,l+=v,c+=p}t[s]=e/l,t[s+1]=n/l,t[s+2]=r/l,t[s+3]=l/c}}sendUniformData(e,t){const n=this.chooseRightDelta();e.uniform2fv(t.uDelta,n)}isNeutralState(){return 0===this.blur}getBlurValue(){let e=1;const{horizontal:t,aspectRatio:n}=this;return t?n>1&&(e=1/n):n<1&&(e=n),e*this.blur*.12}chooseRightDelta(){const e=this.getBlurValue();return this.horizontal?[e,0]:[0,e]}}B(zs,"type","Blur"),B(zs,"defaults",{blur:0}),B(zs,"uniformLocations",["uDelta"]),Pe.setClass(zs);class Vs extends Is{getFragmentSource(){return"\n precision highp float;\n uniform sampler2D uTexture;\n uniform float uBrightness;\n varying vec2 vTexCoord;\n void main() {\n vec4 color = texture2D(uTexture, vTexCoord);\n color.rgb += uBrightness;\n gl_FragColor = color;\n }\n"}applyTo2d(e){let{imageData:{data:t}}=e;const n=Math.round(255*this.brightness);for(let r=0;r<t.length;r+=4)t[r]+=n,t[r+1]+=n,t[r+2]+=n}isNeutralState(){return 0===this.brightness}sendUniformData(e,t){e.uniform1f(t.uBrightness,this.brightness)}}B(Vs,"type","Brightness"),B(Vs,"defaults",{brightness:0}),B(Vs,"uniformLocations",["uBrightness"]),Pe.setClass(Vs);const Hs={matrix:[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],colorsOnly:!0};class Ws extends Is{getFragmentSource(){return"\n precision highp float;\n uniform sampler2D uTexture;\n varying vec2 vTexCoord;\n uniform mat4 uColorMatrix;\n uniform vec4 uConstants;\n void main() {\n vec4 color = texture2D(uTexture, vTexCoord);\n color *= uColorMatrix;\n color += uConstants;\n gl_FragColor = color;\n }"}applyTo2d(e){const t=e.imageData.data,n=this.matrix,r=this.colorsOnly;for(let i=0;i<t.length;i+=4){const e=t[i],o=t[i+1],a=t[i+2];
vendor: 16,632 bytes, line 2
2if(t[i]=e*n[0]+o*n[1]+a*n[2]+255*n[4],t[i+1]=e*n[5]+o*n[6]+a*n[7]+255*n[9],t[i+2]=e*n[10]+o*n[11]+a*n[12]+255*n[14],!r){const r=t[i+3];t[i]+=r*n[3],t[i+1]+=r*n[8],t[i+2]+=r*n[13],t[i+3]=e*n[15]+o*n[16]+a*n[17]+r*n[18]+255*n[19]}}}sendUniformData(e,t){const n=this.matrix,r=[n[0],n[1],n[2],n[3],n[5],n[6],n[7],n[8],n[10],n[11],n[12],n[13],n[15],n[16],n[17],n[18]],i=[n[4],n[9],n[14],n[19]];e.uniformMatrix4fv(t.uColorMatrix,!1,r),e.uniform4fv(t.uConstants,i)}toObject(){return Object(g.a)(Object(g.a)({},super.toObject()),{},{matrix:[...this.matrix]})}}function Gs(e,t){var n;const r=(B(n=class extends Ws{toObject(){return{type:this.type,colorsOnly:this.colorsOnly}}},"type",e),B(n,"defaults",{colorsOnly:!1,matrix:t}),n);return Pe.setClass(r,e),r}B(Ws,"type","ColorMatrix"),B(Ws,"defaults",Hs),B(Ws,"uniformLocations",["uColorMatrix","uConstants"]),Pe.setClass(Ws);Gs("Brownie",[.5997,.34553,-.27082,0,.186,-.0377,.86095,.15059,0,-.1449,.24113,-.07441,.44972,0,-.02965,0,0,0,1,0]),Gs("Vintage",[.62793,.32021,-.03965,0,.03784,.02578,.64411,.03259,0,.02926,.0466,-.08512,.52416,0,.02023,0,0,0,1,0]),Gs("Kodachrome",[1.12855,-.39673,-.03992,0,.24991,-.16404,1.08352,-.05498,0,.09698,-.16786,-.56034,1.60148,0,.13972,0,0,0,1,0]),Gs("Technicolor",[1.91252,-.85453,-.09155,0,.04624,-.30878,1.76589,-.10601,0,-.27589,-.2311,-.75018,1.84759,0,.12137,0,0,0,1,0]),Gs("Polaroid",[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0]),Gs("Sepia",[.393,.769,.189,0,0,.349,.686,.168,0,0,.272,.534,.131,0,0,0,0,0,1,0]),Gs("BlackWhite",[1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,0,0,0,1,0]);class qs extends Is{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(e),this.subFilters=e.subFilters||[]}applyTo(e){Ls(e)&&(e.passes+=this.subFilters.length-1),this.subFilters.forEach((t=>{t.applyTo(e)}))}toObject(){return{type:this.type,subFilters:this.subFilters.map((e=>e.toObject()))}}isNeutralState(){return!this.subFilters.some((e=>!e.isNeutralState()))}static fromObject(e,t){return Promise.all((e.subFilters||[]).map((e=>Pe.getClass(e.type).fromObject(e,t)))).then((e=>new this({subFilters:e})))}}B(qs,"type","Composed"),Pe.setClass(qs);class Xs extends Is{getFragmentSource(){return"\n precision highp float;\n uniform sampler2D uTexture;\n uniform float uContrast;\n varying vec2 vTexCoord;\n void main() {\n vec4 color = texture2D(uTexture, vTexCoord);\n float contrastF = 1.015 * (uContrast + 1.0) / (1.0 * (1.015 - uContrast));\n color.rgb = contrastF * (color.rgb - 0.5) + 0.5;\n gl_FragColor = color;\n }"}isNeutralState(){return 0===this.contrast}applyTo2d(e){let{imageData:{data:t}}=e;const n=Math.floor(255*this.contrast),r=259*(n+255)/(255*(259-n));for(let i=0;i<t.length;i+=4)t[i]=r*(t[i]-128)+128,t[i+1]=r*(t[i+1]-128)+128,t[i+2]=r*(t[i+2]-128)+128}sendUniformData(e,t){e.uniform1f(t.uContrast,this.contrast)}}B(Xs,"type","Contrast"),B(Xs,"defaults",{contrast:0}),B(Xs,"uniformLocations",["uContrast"]),Pe.setClass(Xs);const Ys={Convolute_3_1:"\n precision highp float;\n uniform sampler2D uTexture;\n uniform float uMatrix[9];\n uniform float uStepW;\n uniform float uStepH;\n varying vec2 vTexCoord;\n void main() {\n vec4 color = vec4(0, 0, 0, 0);\n for (float h = 0.0; h < 3.0; h+=1.0) {\n for (float w = 0.0; w < 3.0; w+=1.0) {\n vec2 matrixPos = vec2(uStepW * (w - 1), uStepH * (h - 1));\n color += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 3.0 + w)];\n }\n }\n gl_FragColor = color;\n }\n ",Convolute_3_0:"\n precision highp float;\n uniform sampler2D uTexture;\n uniform float uMatrix[9];\n uniform float uStepW;\n uniform float uStepH;\n varying vec2 vTexCoord;\n void main() {\n vec4 color = vec4(0, 0, 0, 1);\n for (float h = 0.0; h < 3.0; h+=1.0) {\n for (float w = 0.0; w < 3.0; w+=1.0) {\n vec2 matrixPos = vec2(uStepW * (w - 1.0), uStepH * (h - 1.0));\n color.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 3.0 + w)];\n }\n }\n float alpha = texture2D(uTexture, vTexCoord).a;\n gl_FragColor = color;\n gl_FragColor.a = alpha;\n }\n ",Convolute_5_1:"\n precision highp float;\n uniform sampler2D uTexture;\n uniform float uMatrix[25];\n uniform float uStepW;\n uniform float uStepH;\n varying vec2 vTexCoord;\n void main() {\n vec4 color = vec4(0, 0, 0, 0);\n for (float h = 0.0; h < 5.0; h+=1.0) {\n for (float w = 0.0; w < 5.0; w+=1.0) {\n vec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));\n color += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 5.0 + w)];\n }\n }\n gl_FragColor = color;\n }\n ",Convolute_5_0:"\n precision highp float;\n uniform sampler2D uTexture;\n uniform float uMatrix[25];\n uniform float uStepW;\n uniform float uStepH;\n varying vec2 vTexCoord;\n void main() {\n vec4 color = vec4(0, 0, 0, 1);\n for (float h = 0.0; h < 5.0; h+=1.0) {\n for (float w = 0.0; w < 5.0; w+=1.0) {\n vec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));\n color.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 5.0 + w)];\n }\n }\n float alpha = texture2D(uTexture, vTexCoord).a;\n gl_FragColor = color;\n gl_FragColor.a = alpha;\n }\n ",Convolute_7_1:"\n precision highp float;\n uniform sampler2D uTexture;\n uniform float uMatrix[49];\n uniform float uStepW;\n uniform float uStepH;\n varying vec2 vTexCoord;\n void main() {\n vec4 color = vec4(0, 0, 0, 0);\n for (float h = 0.0; h < 7.0; h+=1.0) {\n for (float w = 0.0; w < 7.0; w+=1.0) {\n vec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));\n color += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 7.0 + w)];\n }\n }\n gl_FragColor = color;\n }\n ",Convolute_7_0:"\n precision highp float;\n uniform sampler2D uTexture;\n uniform float uMatrix[49];\n uniform float uStepW;\n uniform float uStepH;\n varying vec2 vTexCoord;\n void main() {\n vec4 color = vec4(0, 0, 0, 1);\n for (float h = 0.0; h < 7.0; h+=1.0) {\n for (float w = 0.0; w < 7.0; w+=1.0) {\n vec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));\n color.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 7.0 + w)];\n }\n }\n float alpha = texture2D(uTexture, vTexCoord).a;\n gl_FragColor = color;\n gl_FragColor.a = alpha;\n }\n ",Convolute_9_1:"\n precision highp float;\n uniform sampler2D uTexture;\n uniform float uMatrix[81];\n uniform float uStepW;\n uniform float uStepH;\n varying vec2 vTexCoord;\n void main() {\n vec4 color = vec4(0, 0, 0, 0);\n for (float h = 0.0; h < 9.0; h+=1.0) {\n for (float w = 0.0; w < 9.0; w+=1.0) {\n vec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));\n color += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 9.0 + w)];\n }\n }\n gl_FragColor = color;\n }\n ",Convolute_9_0:"\n precision highp float;\n uniform sampler2D uTexture;\n uniform float uMatrix[81];\n uniform float uStepW;\n uniform float uStepH;\n varying vec2 vTexCoord;\n void main() {\n vec4 color = vec4(0, 0, 0, 1);\n for (float h = 0.0; h < 9.0; h+=1.0) {\n for (float w = 0.0; w < 9.0; w+=1.0) {\n vec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));\n color.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 9.0 + w)];\n }\n }\n float alpha = texture2D(uTexture, vTexCoord).a;\n gl_FragColor = color;\n gl_FragColor.a = alpha;\n }\n "};class $s extends Is{getCacheKey(){return"".concat(this.type,"_").concat(Math.sqrt(this.matrix.length),"_").concat(this.opaque?1:0)}getFragmentSource(){return Ys[this.getCacheKey()]}applyTo2d(e){const t=e.imageData,n=t.data,r=this.matrix,i=Math.round(Math.sqrt(r.length)),o=Math.floor(i/2),a=t.width,s=t.height,l=e.ctx.createImageData(a,s),c=l.data,u=this.opaque?1:0;let h,f,d,p,g,v,m,y,b,x,_,w,S;for(_=0;_<s;_++)for(x=0;x<a;x++){for(g=4*(_*a+x),h=0,f=0,d=0,p=0,S=0;S<i;S++)for(w=0;w<i;w++)m=_+S-o,v=x+w-o,m<0||m>=s||v<0||v>=a||(y=4*(m*a+v),b=r[S*i+w],h+=n[y]*b,f+=n[y+1]*b,d+=n[y+2]*b,u||(p+=n[y+3]*b));c[g]=h,c[g+1]=f,c[g+2]=d,c[g+3]=u?n[g+3]:p}e.imageData=l}sendUniformData(e,t){e.uniform1fv(t.uMatrix,this.matrix)}toObject(){return Object(g.a)(Object(g.a)({},super.toObject()),{},{opaque:this.opaque,matrix:[...this.matrix]})}}B($s,"type","Convolute"),B($s,"defaults",{opaque:!1,matrix:[0,0,0,0,1,0,0,0,0]}),B($s,"uniformLocations",["uMatrix","uOpaque","uHalfSize","uSize"]),Pe.setClass($s);const Ks="Gamma";class Zs extends Is{getFragmentSource(){return"\n precision highp float;\n uniform sampler2D uTexture;\n uniform vec3 uGamma;\n varying vec2 vTexCoord;\n void main() {\n vec4 color = texture2D(uTexture, vTexCoord);\n vec3 correction = (1.0 / uGamma);\n color.r = pow(color.r, correction.r);\n color.g = pow(color.g, correction.g);\n color.b = pow(color.b, correction.b);\n gl_FragColor = color;\n gl_FragColor.rgb *= color.a;\n }\n"}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(e),this.gamma=e.gamma||this.constructor.defaults.gamma.concat()}applyTo2d(e){let{imageData:{data:t}}=e;const n=this.gamma,r=1/n[0],i=1/n[1],o=1/n[2];this.rgbValues||(this.rgbValues={r:new Uint8Array(256),g:new Uint8Array(256),b:new Uint8Array(256)});const a=this.rgbValues;for(let s=0;s<256;s++)a.r[s]=255*Math.pow(s/255,r),a.g[s]=255*Math.pow(s/255,i),a.b[s]=255*Math.pow(s/255,o);for(let s=0;s<t.length;s+=4)t[s]=a.r[t[s]],t[s+1]=a.g[t[s+1]],t[s+2]=a.b[t[s+2]]}sendUniformData(e,t){e.uniform3fv(t.uGamma,this.gamma)}isNeutralState(){const{gamma:e}=this;return 1===e[0]&&1===e[1]&&1===e[2]}toObject(){return{type:Ks,gamma:this.gamma.concat()}}}B(Zs,"type",Ks),B(Zs,"defaults",{gamma:[1,1,1]}),B(Zs,"uniformLocations",["uGamma"]),Pe.setClass(Zs);const Qs={average:"\n precision highp float;\n uniform sampler2D uTexture;\n varying vec2 vTexCoord;\n void main() {\n vec4 color = texture2D(uTexture, vTexCoord);\n float average = (color.r + color.b + color.g) / 3.0;\n gl_FragColor = vec4(average, average, average, color.a);\n }\n ",lightness:"\n precision highp float;\n uniform sampler2D uTexture;\n uniform int uMode;\n varying vec2 vTexCoord;\n void main() {\n vec4 col = texture2D(uTexture, vTexCoord);\n float average = (max(max(col.r, col.g),col.b) + min(min(col.r, col.g),col.b)) / 2.0;\n gl_FragColor = vec4(average, average, average, col.a);\n }\n ",luminosity:"\n precision highp float;\n uniform sampler2D uTexture;\n uniform int uMode;\n varying vec2 vTexCoord;\n void main() {\n vec4 col = texture2D(uTexture, vTexCoord);\n float average = 0.21 * col.r + 0.72 * col.g + 0.07 * col.b;\n gl_FragColor = vec4(average, average, average, col.a);\n }\n "};class Js extends Is{applyTo2d(e){let{imageData:{data:t}}=e;for(let n,r=0;r<t.length;r+=4){const e=t[r],i=t[r+1],o=t[r+2];switch(this.mode){case"average":n=(e+i+o)/3;break;case"lightness":n=(Math.min(e,i,o)+Math.max(e,i,o))/2;break;case"luminosity":n=.21*e+.72*i+.07*o}t[r+2]=t[r+1]=t[r]=n}}getCacheKey(){return"".concat(this.type,"_").concat(this.mode)}getFragmentSource(){return Qs[this.mode]}sendUniformData(e,t){e.uniform1i(t.uMode,1)}isNeutralState(){return!1}}B(Js,"type","Grayscale"),B(Js,"defaults",{mode:"average"}),B(Js,"uniformLocations",["uMode"]),Pe.setClass(Js);const el=Object(g.a)(Object(g.a)({},Hs),{},{rotation:0});class tl extends Ws{calculateMatrix(){const e=this.rotation*Math.PI,t=Me(e),n=Re(e),r=1/3,i=Math.sqrt(r)*n,o=1-t;this.matrix=[t+o/3,r*o-i,r*o+i,0,0,r*o+i,t+r*o,r*o-i,0,0,r*o-i,r*o+i,t+r*o,0,0,0,0,0,1,0]}isNeutralState(){return 0===this.rotation}applyTo(e){this.calculateMatrix(),super.applyTo(e)}toObject(){return{type:this.type,rotation:this.rotation}}}B(tl,"type","HueRotation"),B(tl,"defaults",el),Pe.setClass(tl);class nl extends Is{applyTo2d(e){let{imageData:{data:t}}=e;for(let n=0;n<t.length;n+=4)t[n]=255-t[n],t[n+1]=255-t[n+1],t[n+2]=255-t[n+2],this.alpha&&(t[n+3]=255-t[n+3])}getFragmentSource(){return"\n precision highp float;\n uniform sampler2D uTexture;\n uniform int uInvert;\n uniform int uAlpha;\n varying vec2 vTexCoord;\n void main() {\n vec4 color = texture2D(uTexture, vTexCoord);\n if (uInvert == 1) {\n if (uAlpha == 1) {\n gl_FragColor = vec4(1.0 - color.r,1.0 -color.g,1.0 -color.b,1.0 -color.a);\n } else {\n gl_FragColor = vec4(1.0 - color.r,1.0 -color.g,1.0 -color.b,color.a);\n }\n } else {\n gl_FragColor = color;\n }\n }\n"}isNeutralState(){return!this.invert}sendUniformData(e,t){e.uniform1i(t.uInvert,Number(this.invert)),e.uniform1i(t.uAlpha,Number(this.alpha))}}B(nl,"type","Invert"),B(nl,"defaults",{alpha:!1,invert:!0}),B(nl,"uniformLocations",["uInvert","uAlpha"]),Pe.setClass(nl);class rl extends Is{getFragmentSource(){return"\n precision highp float;\n uniform sampler2D uTexture;\n uniform float uStepH;\n uniform float uNoise;\n uniform float uSeed;\n varying vec2 vTexCoord;\n float rand(vec2 co, float seed, float vScale) {\n return fract(sin(dot(co.xy * vScale ,vec2(12.9898 , 78.233))) * 43758.5453 * (seed + 0.01) / 2.0);\n }\n void main() {\n vec4 color = texture2D(uTexture, vTexCoord);\n color.rgb += (0.5 - rand(vTexCoord, uSeed, 0.1 / uStepH)) * uNoise;\n gl_FragColor = color;\n }\n"}applyTo2d(e){let{imageData:{data:t}}=e;const n=this.noise;for(let r=0;r<t.length;r+=4){const e=(.5-Math.random())*n;t[r]+=e,t[r+1]+=e,t[r+2]+=e}}sendUniformData(e,t){e.uniform1f(t.uNoise,this.noise/255),e.uniform1f(t.uSeed,Math.random())}isNeutralState(){return 0===this.noise}}B(rl,"type","Noise"),B(rl,"defaults",{noise:0}),B(rl,"uniformLocations",["uNoise","uSeed"]),Pe.setClass(rl);class il extends Is{applyTo2d(e){let{imageData:{data:t,width:n,height:r}}=e;for(let i=0;i<r;i+=this.blocksize)for(let e=0;e<n;e+=this.blocksize){const o=4*i*n+4*e,a=t[o],s=t[o+1],l=t[o+2],c=t[o+3];for(let u=i;u<Math.min(i+this.blocksize,r);u++)for(let r=e;r<Math.min(e+this.blocksize,n);r++){const e=4*u*n+4*r;t[e]=a,t[e+1]=s,t[e+2]=l,t[e+3]=c}}}isNeutralState(){return 1===this.blocksize}getFragmentSource(){return"\n precision highp float;\n uniform sampler2D uTexture;\n uniform float uBlocksize;\n uniform float uStepW;\n uniform float uStepH;\n varying vec2 vTexCoord;\n void main() {\n float blockW = uBlocksize * uStepW;\n float blockH = uBlocksize * uStepH;\n int posX = int(vTexCoord.x / blockW);\n int posY = int(vTexCoord.y / blockH);\n float fposX = float(posX);\n float fposY = float(posY);\n vec2 squareCoords = vec2(fposX * blockW, fposY * blockH);\n vec4 color = texture2D(uTexture, squareCoords);\n gl_FragColor = color;\n }\n"}sendUniformData(e,t){e.uniform1f(t.uBlocksize,this.blocksize)}}B(il,"type","Pixelate"),B(il,"defaults",{blocksize:4}),B(il,"uniformLocations",["uBlocksize"]),Pe.setClass(il);class ol extends Is{getFragmentSource(){return"\nprecision highp float;\nuniform sampler2D uTexture;\nuniform vec4 uLow;\nuniform vec4 uHigh;\nvarying vec2 vTexCoord;\nvoid main() {\n gl_FragColor = texture2D(uTexture, vTexCoord);\n if(all(greaterThan(gl_FragColor.rgb,uLow.rgb)) && all(greaterThan(uHigh.rgb,gl_FragColor.rgb))) {\n gl_FragColor.a = 0.0;\n }\n}\n"}applyTo2d(e){let{imageData:{data:t}}=e;const n=255*this.distance,r=new dn(this.color).getSource(),i=[r[0]-n,r[1]-n,r[2]-n],o=[r[0]+n,r[1]+n,r[2]+n];for(let a=0;a<t.length;a+=4){const e=t[a],n=t[a+1],r=t[a+2];e>i[0]&&n>i[1]&&r>i[2]&&e<o[0]&&n<o[1]&&r<o[2]&&(t[a+3]=0)}}sendUniformData(e,t){const n=new dn(this.color).getSource(),r=this.distance,i=[0+n[0]/255-r,0+n[1]/255-r,0+n[2]/255-r,1],o=[n[0]/255+r,n[1]/255+r,n[2]/255+r,1];e.uniform4fv(t.uLow,i),e.uniform4fv(t.uHigh,o)}}B(ol,"type","RemoveColor"),B(ol,"defaults",{color:"#FFFFFF",distance:.02,useAlpha:!1}),B(ol,"uniformLocations",["uLow","uHigh"]),Pe.setClass(ol);class al extends Is{sendUniformData(e,t){e.uniform2fv(t.uDelta,this.horizontal?[1/this.width,0]:[0,1/this.height]),e.uniform1fv(t.uTaps,this.taps)}getFilterWindow(){const e=this.tempScale;return Math.ceil(this.lanczosLobes/e)}getCacheKey(){const e=this.getFilterWindow();
2return"".concat(this.type,"_").concat(e)}getFragmentSource(){const e=this.getFilterWindow();return this.generateShader(e)}getTaps(){const e=this.lanczosCreate(this.lanczosLobes),t=this.tempScale,n=this.getFilterWindow(),r=new Array(n);for(let i=1;i<=n;i++)r[i-1]=e(i*t);return r}generateShader(e){const t=new Array(e);for(let n=1;n<=e;n++)t[n-1]="".concat(n,".0 * uDelta");return"\n precision highp float;\n uniform sampler2D uTexture;\n uniform vec2 uDelta;\n varying vec2 vTexCoord;\n uniform float uTaps[".concat(e,"];\n void main() {\n vec4 color = texture2D(uTexture, vTexCoord);\n float sum = 1.0;\n ").concat(t.map(((e,t)=>"\n color += texture2D(uTexture, vTexCoord + ".concat(e,") * uTaps[").concat(t,"] + texture2D(uTexture, vTexCoord - ").concat(e,") * uTaps[").concat(t,"];\n sum += 2.0 * uTaps[").concat(t,"];\n "))).join("\n"),"\n gl_FragColor = color / sum;\n }\n ")}applyToForWebgl(e){e.passes++,this.width=e.sourceWidth,this.horizontal=!0,this.dW=Math.round(this.width*this.scaleX),this.dH=e.sourceHeight,this.tempScale=this.dW/this.width,this.taps=this.getTaps(),e.destinationWidth=this.dW,super.applyTo(e),e.sourceWidth=e.destinationWidth,this.height=e.sourceHeight,this.horizontal=!1,this.dH=Math.round(this.height*this.scaleY),this.tempScale=this.dH/this.height,this.taps=this.getTaps(),e.destinationHeight=this.dH,super.applyTo(e),e.sourceHeight=e.destinationHeight}applyTo(e){Ls(e)?this.applyToForWebgl(e):this.applyTo2d(e)}isNeutralState(){return 1===this.scaleX&&1===this.scaleY}lanczosCreate(e){return t=>{if(t>=e||t<=-e)return 0;if(t<1.1920929e-7&&t>-1.1920929e-7)return 1;const n=(t*=Math.PI)/e;return Math.sin(t)/t*Math.sin(n)/n}}applyTo2d(e){const t=e.imageData,n=this.scaleX,r=this.scaleY;this.rcpScaleX=1/n,this.rcpScaleY=1/r;const i=t.width,o=t.height,a=Math.round(i*n),s=Math.round(o*r);let l;l="sliceHack"===this.resizeType?this.sliceByTwo(e,i,o,a,s):"hermite"===this.resizeType?this.hermiteFastResize(e,i,o,a,s):"bilinear"===this.resizeType?this.bilinearFiltering(e,i,o,a,s):"lanczos"===this.resizeType?this.lanczosResize(e,i,o,a,s):new ImageData(a,s),e.imageData=l}sliceByTwo(e,t,n,r,i){const o=e.imageData,a=.5;let s=!1,l=!1,c=t*a,u=n*a;const h=e.filterBackend.resources;let f=0,d=0;const p=t;let g=0;h.sliceByTwo||(h.sliceByTwo=We());const v=h.sliceByTwo;(v.width<1.5*t||v.height<n)&&(v.width=1.5*t,v.height=n);const m=v.getContext("2d");for(m.clearRect(0,0,1.5*t,n),m.putImageData(o,0,0),r=Math.floor(r),i=Math.floor(i);!s||!l;)t=c,n=u,r<Math.floor(c*a)?c=Math.floor(c*a):(c=r,s=!0),i<Math.floor(u*a)?u=Math.floor(u*a):(u=i,l=!0),m.drawImage(v,f,d,t,n,p,g,c,u),f=p,d=g,g+=u;return m.getImageData(f,d,r,i)}lanczosResize(e,t,n,r,i){const o=e.imageData.data,a=e.ctx.createImageData(r,i),s=a.data,l=this.lanczosCreate(this.lanczosLobes),c=this.rcpScaleX,u=this.rcpScaleY,h=2/this.rcpScaleX,f=2/this.rcpScaleY,d=Math.ceil(c*this.lanczosLobes/2),p=Math.ceil(u*this.lanczosLobes/2),g={},v={x:0,y:0},m={x:0,y:0};return function e(y){let b,x,_,w,S,C,k,O,E,T,A;for(v.x=(y+.5)*c,m.x=Math.floor(v.x),b=0;b<i;b++){for(v.y=(b+.5)*u,m.y=Math.floor(v.y),S=0,C=0,k=0,O=0,E=0,x=m.x-d;x<=m.x+d;x++)if(!(x<0||x>=t)){T=Math.floor(1e3*Math.abs(x-v.x)),g[T]||(g[T]={});for(let e=m.y-p;e<=m.y+p;e++)e<0||e>=n||(A=Math.floor(1e3*Math.abs(e-v.y)),g[T][A]||(g[T][A]=l(Math.sqrt(Math.pow(T*h,2)+Math.pow(A*f,2))/1e3)),_=g[T][A],_>0&&(w=4*(e*t+x),S+=_,C+=_*o[w],k+=_*o[w+1],O+=_*o[w+2],E+=_*o[w+3]))}w=4*(b*r+y),s[w]=C/S,s[w+1]=k/S,s[w+2]=O/S,s[w+3]=E/S}return++y<r?e(y):a}(0)}bilinearFiltering(e,t,n,r,i){let o,a,s,l,c,u,h,f,d,p,g,v,m,y=0;const b=this.rcpScaleX,x=this.rcpScaleY,_=4*(t-1),w=e.imageData.data,S=e.ctx.createImageData(r,i),C=S.data;for(h=0;h<i;h++)for(f=0;f<r;f++)for(c=Math.floor(b*f),u=Math.floor(x*h),d=b*f-c,p=x*h-u,m=4*(u*t+c),g=0;g<4;g++)o=w[m+g],a=w[m+4+g],s=w[m+_+g],l=w[m+_+4+g],v=o*(1-d)*(1-p)+a*d*(1-p)+s*p*(1-d)+l*d*p,C[y++]=v;return S}hermiteFastResize(e,t,n,r,i){const o=this.rcpScaleX,a=this.rcpScaleY,s=Math.ceil(o/2),l=Math.ceil(a/2),c=e.imageData.data,u=e.ctx.createImageData(r,i),h=u.data;for(let f=0;f<i;f++)for(let e=0;e<r;e++){const n=4*(e+f*r);let i=0,u=0,d=0,p=0,g=0,v=0,m=0;const y=(f+.5)*a;for(let r=Math.floor(f*a);r<(f+1)*a;r++){const n=Math.abs(y-(r+.5))/l,a=(e+.5)*o,h=n*n;for(let l=Math.floor(e*o);l<(e+1)*o;l++){let e=Math.abs(a-(l+.5))/s;const n=Math.sqrt(h+e*e);n>1&&n<-1||(i=2*n*n*n-3*n*n+1,i>0&&(e=4*(l+r*t),m+=i*c[e+3],d+=i,c[e+3]<255&&(i=i*c[e+3]/250),p+=i*c[e],g+=i*c[e+1],v+=i*c[e+2],u+=i))}}h[n]=p/u,h[n+1]=g/u,h[n+2]=v/u,h[n+3]=m/d}return u}}B(al,"type","Resize"),B(al,"defaults",{resizeType:"hermite",scaleX:1,scaleY:1,lanczosLobes:3}),B(al,"uniformLocations",["uDelta","uTaps"]),Pe.setClass(al);class sl extends Is{getFragmentSource(){return"\n precision highp float;\n uniform sampler2D uTexture;\n uniform float uSaturation;\n varying vec2 vTexCoord;\n void main() {\n vec4 color = texture2D(uTexture, vTexCoord);\n float rgMax = max(color.r, color.g);\n float rgbMax = max(rgMax, color.b);\n color.r += rgbMax != color.r ? (rgbMax - color.r) * uSaturation : 0.00;\n color.g += rgbMax != color.g ? (rgbMax - color.g) * uSaturation : 0.00;\n color.b += rgbMax != color.b ? (rgbMax - color.b) * uSaturation : 0.00;\n gl_FragColor = color;\n }\n"}applyTo2d(e){let{imageData:{data:t}}=e;const n=-this.saturation;for(let r=0;r<t.length;r+=4){const e=t[r],i=t[r+1],o=t[r+2],a=Math.max(e,i,o);t[r]+=a!==e?(a-e)*n:0,t[r+1]+=a!==i?(a-i)*n:0,t[r+2]+=a!==o?(a-o)*n:0}}sendUniformData(e,t){e.uniform1f(t.uSaturation,-this.saturation)}isNeutralState(){return 0===this.saturation}}B(sl,"type","Saturation"),B(sl,"defaults",{saturation:0}),B(sl,"uniformLocations",["uSaturation"]),Pe.setClass(sl);class ll extends Is{getFragmentSource(){return"\n precision highp float;\n uniform sampler2D uTexture;\n uniform float uVibrance;\n varying vec2 vTexCoord;\n void main() {\n vec4 color = texture2D(uTexture, vTexCoord);\n float max = max(color.r, max(color.g, color.b));\n float avg = (color.r + color.g + color.b) / 3.0;\n float amt = (abs(max - avg) * 2.0) * uVibrance;\n color.r += max != color.r ? (max - color.r) * amt : 0.00;\n color.g += max != color.g ? (max - color.g) * amt : 0.00;\n color.b += max != color.b ? (max - color.b) * amt : 0.00;\n gl_FragColor = color;\n }\n"}applyTo2d(e){let{imageData:{data:t}}=e;const n=-this.vibrance;for(let r=0;r<t.length;r+=4){const e=t[r],i=t[r+1],o=t[r+2],a=Math.max(e,i,o),s=(e+i+o)/3,l=2*Math.abs(a-s)/255*n;t[r]+=a!==e?(a-e)*l:0,t[r+1]+=a!==i?(a-i)*l:0,t[r+2]+=a!==o?(a-o)*l:0}}sendUniformData(e,t){e.uniform1f(t.uVibrance,-this.vibrance)}isNeutralState(){return 0===this.vibrance}}B(ll,"type","Vibrance"),B(ll,"defaults",{vibrance:0}),B(ll,"uniformLocations",["uVibrance"]),Pe.setClass(ll)},function(e,t,n){"use strict";e.exports=n(292)},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";function r(e){var t,n,i="";if("string"===typeof e||"number"===typeof e)i+=e;else if("object"===typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}t.a=function(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(i&&(i+=" "),i+=t);return i}},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";var r=n(4),i=n(34),o=n(82),a=n(0),s=n.n(a),l=(n(12),n(68)),c=n.n(l),u=n(398),h=n(434),f=n(177),d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=t.defaultTheme,a=t.withTheme,l=void 0!==a&&a,d=t.name,p=Object(o.a)(t,["defaultTheme","withTheme","name"]);var g=d,v=Object(u.a)(e,Object(i.a)({defaultTheme:r,Component:n,name:d||n.displayName,classNamePrefix:g},p)),m=s.a.forwardRef((function(e,t){e.classes;var a,c=e.innerRef,u=Object(o.a)(e,["classes","innerRef"]),p=v(Object(i.a)({},n.defaultProps,e)),g=u;return("string"===typeof d||l)&&(a=Object(f.a)()||r,d&&(g=Object(h.a)({theme:a,name:d,props:u})),l&&!g.theme&&(g.theme=a)),s.a.createElement(n,Object(i.a)({ref:c||t,classes:p},g))}));return c()(m,n),m}},p=n(98);t.a=function(e,t){return d(e,Object(r.a)({defaultTheme:p.a},t))}},function(e,t,n){var r,i,o;(function(a,s){var l=(a=a||n(362)).window,c=a.document,u=new function(){var e=/^(statics|enumerable|beans|preserve)$/,t=[],n=t.slice,r=Object.create,i=Object.getOwnPropertyDescriptor,o=Object.defineProperty,a=t.forEach||function(e,t){for(var n=0,r=this.length;n<r;n++)e.call(t,this[n],n,this)},l=function(e,t){for(var n in this)this.hasOwnProperty(n)&&e.call(t,this[n],n,this)},c=Object.assign||function(e){for(var t=1,n=arguments.length;t<n;t++){var r=arguments[t];for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])}return e},u=function(e,t,n){if(e){var r=i(e,"length");(r&&"number"===typeof r.value?a:l).call(e,t,n=n||e)}return n};function h(t,n,r,a,s){var l={};function c(e,c){"string"===typeof(c=c||(c=i(n,e))&&(c.get?c:c.value))&&"#"===c[0]&&(c=t[c.substring(1)]||c);var u,h="function"===typeof c,d=c,p=s||h&&!c.base?c&&c.get?e in t:t[e]:null;s&&p||(h&&p&&(c.base=p),h&&!1!==a&&(u=e.match(/^([gs]et|is)(([A-Z])(.*))$/))&&(l[u[3].toLowerCase()+u[4]]=u[2]),d&&!h&&d.get&&"function"===typeof d.get&&f.isPlainObject(d)||(d={value:d,writable:!0}),(i(t,e)||{configurable:!0}).configurable&&(d.configurable=!0,d.enumerable=null!=r?r:!u),o(t,e,d))}if(n){for(var u in n)n.hasOwnProperty(u)&&!e.test(u)&&c(u);for(var u in l){var h=l[u],d=t["set"+h],p=t["get"+h]||d&&t["is"+h];!p||!0!==a&&0!==p.length||c(u,{get:p,set:d})}}return t}function f(){for(var e=0,t=arguments.length;e<t;e++){var n=arguments[e];n&&c(this,n)}return this}return h(f,{inject:function(e){if(e){var t=!0===e.statics?e:e.statics,n=e.beans,r=e.preserve;t!==e&&h(this.prototype,e,e.enumerable,n,r),h(this,t,null,n,r)}for(var i=1,o=arguments.length;i<o;i++)this.inject(arguments[i]);return this},extend:function(){for(var e,t,n,i=this,a=0,s=arguments.length;a<s&&(!e||!t);a++)n=arguments[a],e=e||n.initialize,t=t||n.prototype;return t=(e=e||function(){i.apply(this,arguments)}).prototype=t||r(this.prototype),o(t,"constructor",{value:e,writable:!0,configurable:!0}),h(e,this),arguments.length&&this.inject.apply(e,arguments),e.base=i,e}}
2).inject({enumerable:!1,initialize:f,set:f,inject:function(){for(var e=0,t=arguments.length;e<t;e++){var n=arguments[e];n&&h(this,n,n.enumerable,n.beans,n.preserve)}return this},extend:function(){var e=r(this);return e.inject.apply(e,arguments)},each:function(e,t){return u(this,e,t)},clone:function(){return new this.constructor(this)},statics:{set:c,each:u,create:r,define:o,describe:i,clone:function(e){return c(new e.constructor,e)},isPlainObject:function(e){var t=null!=e&&e.constructor;return t&&(t===Object||t===f||"Object"===t.name)},pick:function(e,t){return e!==s?e:t},slice:function(e,t,r){return n.call(e,t,r)}}})};e.exports=u,u.inject({enumerable:!1,toString:function(){return null!=this._id?(this._class||"Object")+(this._name?" '"+this._name+"'":" @"+this._id):"{ "+u.each(this,(function(e,t){if(!/^_/.test(t)){var n=typeof e;this.push(t+": "+("number"===n?g.instance.number(e):"string"===n?"'"+e+"'":e))}}),[]).join(", ")+" }"},getClassName:function(){return this._class||""},importJSON:function(e){return u.importJSON(e,this)},exportJSON:function(e){return u.exportJSON(this,e)},toJSON:function(){return u.serialize(this)},set:function(e,t){return e&&u.filter(this,e,t,this._prioritize),this}},{beans:!1,statics:{exports:{},extend:function e(){var t=e.base.apply(this,arguments),n=t.prototype._class;return n&&!u.exports[n]&&(u.exports[n]=t),t},equals:function(e,t){if(e===t)return!0;if(e&&e.equals)return e.equals(t);if(t&&t.equals)return t.equals(e);if(e&&t&&"object"===typeof e&&"object"===typeof t){if(Array.isArray(e)&&Array.isArray(t)){if((n=e.length)!==t.length)return!1;for(;n--;)if(!u.equals(e[n],t[n]))return!1}else{var n,r=Object.keys(e);if((n=r.length)!==Object.keys(t).length)return!1;for(;n--;){var i=r[n];if(!t.hasOwnProperty(i)||!u.equals(e[i],t[i]))return!1}}return!0}return!1},read:function(e,t,n,r){if(this===u){var i=this.peek(e,t);return e.__index++,i}var o=this.prototype,a=o._readIndex,l=t||a&&e.__index||0,c=e.length,h=e[l];if(r=r||c-l,h instanceof this||n&&n.readNull&&null==h&&r<=1)return a&&(e.__index=l+1),h&&n&&n.clone?h.clone():h;if(h=u.create(o),a&&(h.__read=!0),h=h.initialize.apply(h,l>0||l+r<c?u.slice(e,l,l+r):e)||h,a){e.__index=l+h.__read;var f=h.__filtered;f&&(e.__filtered=f,h.__filtered=s),h.__read=s}return h},peek:function(e,t){return e[e.__index=t||e.__index||0]},remain:function(e){return e.length-(e.__index||0)},readList:function(e,t,n,r){for(var i,o=[],a=t||0,s=r?a+r:e.length,l=a;l<s;l++)o.push(Array.isArray(i=e[l])?this.read(i,0,n):this.read(e,l,n,1));return o},readNamed:function(e,t,n,r,i){var o=this.getNamed(e,t),a=o!==s;if(a){var l=e.__filtered;if(!l){var c=this.getSource(e);(l=e.__filtered=u.create(c)).__unfiltered=c}l[t]=s}return this.read(a?[o]:e,n,r,i)},readSupported:function(e,t){var n=this.getSource(e),r=this,i=!1;return n&&Object.keys(n).forEach((function(n){if(n in t){var o=r.readNamed(e,n);o!==s&&(t[n]=o),i=!0}})),i},getSource:function(e){var t=e.__source;if(t===s){var n=1===e.length&&e[0];t=e.__source=n&&u.isPlainObject(n)?n:null}return t},getNamed:function(e,t){var n=this.getSource(e);if(n)return t?n[t]:e.__filtered||n},hasNamed:function(e,t){return!!this.getNamed(e,t)},filter:function(e,t,n,r){var i;function o(r){if((!n||!(r in n))&&(!i||!(r in i))){var o=t[r];o!==s&&(e[r]=o)}}if(r){for(var a,l={},c=0,u=r.length;c<u;c++)(a=r[c])in t&&(o(a),l[a]=!0);i=l}return Object.keys(t.__unfiltered||t).forEach(o),e},isPlainValue:function(e,t){return u.isPlainObject(e)||Array.isArray(e)||t&&"string"===typeof e},serialize:function(e,t,n,r){t=t||{};var i,o=!r;if(o&&(t.formatter=new g(t.precision),r={length:0,definitions:{},references:{},add:function(e,t){var n="#"+e._id,r=this.references[n];if(!r){this.length++;var i=t.call(e),o=e._class;o&&i[0]!==o&&i.unshift(o),this.definitions[n]=i,r=this.references[n]=[n]}return r}}),e&&e._serialize){i=e._serialize(t,r);var a=e._class;!a||e._compactSerialize||!o&&n||i[0]===a||i.unshift(a)}else if(Array.isArray(e)){i=[];for(var s=0,l=e.length;s<l;s++)i[s]=u.serialize(e[s],t,n,r)}else if(u.isPlainObject(e)){i={};var c=Object.keys(e);for(s=0,l=c.length;s<l;s++){var h=c[s];i[h]=u.serialize(e[h],t,n,r)}}else i="number"===typeof e?t.formatter.number(e,t.precision):e;return o&&r.length>0?[["dictionary",r.definitions],i]:i},deserialize:function(e,t,n,r,i){var o=e,a=!n,s=a&&e&&e.length&&"dictionary"===e[0][0];if(n=n||{},Array.isArray(e)){var l=e[0],c="dictionary"===l;if(1==e.length&&/^#/.test(l))return n.dictionary[l];o=[];for(var h=(l=u.exports[l])?1:0,f=e.length;h<f;h++)o.push(u.deserialize(e[h],t,n,c,s));if(l){var d=o;o=t?t(l,d,a||i):new l(d)}}else if(u.isPlainObject(e))for(var p in o={},r&&(n.dictionary=o),e)o[p]=u.deserialize(e[p],t,n);return s?o[1]:o},exportJSON:function(e,t){var n=u.serialize(e,t);return t&&0==t.asString?n:JSON.stringify(n)},importJSON:function(e,t){return u.deserialize("string"===typeof e?JSON.parse(e):e,(function(e,n,r){var i=r&&t&&t.constructor===e,o=i?t:u.create(e.prototype);if(1===n.length&&o instanceof E&&(i||!(o instanceof A))){var a=n[0];u.isPlainObject(a)&&(a.insert=!1,i&&(n=n.concat([E.INSERT])))}return(i?o.set:e).apply(o,n),i&&(t=null),o}))},push:function(e,t){var n=t.length;if(n<4096)e.push.apply(e,t);else{var r=e.length;e.length+=n;for(var i=0;i<n;i++)e[r+i]=t[i]}return e},splice:function(e,t,n,r){var i=t&&t.length,o=n===s;(n=o?e.length:n)>e.length&&(n=e.length);for(var a=0;a<i;a++)t[a]._index=n+a;if(o)return u.push(e,t),[];var l=[n,r];t&&u.push(l,t);for(var c=e.splice.apply(e,l),h=(a=0,c.length);a<h;a++)c[a]._index=s;for(a=n+i,h=e.length;a<h;a++)e[a]._index=a;return c}
2,capitalize:function(e){return e.replace(/\b[a-z]/g,(function(e){return e.toUpperCase()}))},camelize:function(e){return e.replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))},hyphenate:function(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}}});var h={on:function(e,t){if("string"!==typeof e)u.each(e,(function(e,t){this.on(t,e)}),this);else{var n=this._eventTypes,r=n&&n[e],i=this._callbacks=this._callbacks||{};-1===(i=i[e]=i[e]||[]).indexOf(t)&&(i.push(t),r&&r.install&&1===i.length&&r.install.call(this,e))}return this},off:function(e,t){if("string"===typeof e){var n,r=this._eventTypes,i=r&&r[e],o=this._callbacks&&this._callbacks[e];return o&&(!t||-1!==(n=o.indexOf(t))&&1===o.length?(i&&i.uninstall&&i.uninstall.call(this,e),delete this._callbacks[e]):-1!==n&&o.splice(n,1)),this}u.each(e,(function(e,t){this.off(t,e)}),this)},once:function(e,t){return this.on(e,(function n(){t.apply(this,arguments),this.off(e,n)}))},emit:function(e,t){var n=this._callbacks&&this._callbacks[e];if(!n)return!1;var r=u.slice(arguments,1),i=t&&t.target&&!t.currentTarget;n=n.slice(),i&&(t.currentTarget=this);for(var o=0,a=n.length;o<a;o++)if(0==n[o].apply(this,r)){t&&t.stop&&t.stop();break}return i&&delete t.currentTarget,!0},responds:function(e){return!(!this._callbacks||!this._callbacks[e])},attach:"#on",detach:"#off",fire:"#emit",_installEvents:function(e){var t=this._eventTypes,n=this._callbacks,r=e?"install":"uninstall";if(t)for(var i in n)if(n[i].length>0){var o=t[i],a=o&&o[r];a&&a.call(this,i)}},statics:{inject:function e(t){var n=t._events;if(n){var r={};u.each(n,(function(e,n){var i="string"===typeof e,o=i?e:n,a=u.capitalize(o),s=o.substring(2).toLowerCase();r[s]=i?{}:e,o="_"+o,t["get"+a]=function(){return this[o]},t["set"+a]=function(e){var t=this[o];t&&this.off(s,t),e&&this.on(s,e),this[o]=e}})),t._eventTypes=r}return e.base.apply(this,arguments)}}},f=u.extend({_class:"PaperScope",initialize:function e(){fe=this,this.settings=new u({applyMatrix:!0,insertItems:!0,handleSize:4,hitTolerance:0}),this.project=null,this.projects=[],this.tools=[],this._id=e._id++,e._scopes[this._id]=this;var t=e.prototype;if(!this.support){var n=le.getContext(1,1)||{};t.support={nativeDash:"setLineDash"in n||"mozDash"in n,nativeBlendModes:ce.nativeModes},le.release(n)}if(!this.agent){var r=a.navigator.userAgent.toLowerCase(),i=(/(darwin|win|mac|linux|freebsd|sunos)/.exec(r)||[])[0],o="darwin"===i?"mac":i,s=t.agent=t.browser={platform:o};o&&(s[o]=!0),r.replace(/(opera|chrome|safari|webkit|firefox|msie|trident|atom|node|jsdom)\/?\s*([.\d]+)(?:.*version\/([.\d]+))?(?:.*rv\:v?([.\d]+))?/g,(function(e,t,n,r,i){if(!s.chrome){var o="opera"===t?r:/^(node|trident)$/.test(t)?i:n;s.version=o,s.versionNumber=parseFloat(o),t={trident:"msie",jsdom:"node"}[t]||t,s.name=t,s[t]=!0}})),s.chrome&&delete s.webkit,s.atom&&delete s.chrome}},version:"0.12.18",getView:function(){var e=this.project;return e&&e._view},getPaper:function(){return this},execute:function(e,t){var n=fe.PaperScript.execute(e,this,t);return Q.updateFocus(),n},install:function(e){var t=this;for(var n in u.each(["project","view","tool"],(function(n){u.define(e,n,{configurable:!0,get:function(){return t[n]}})})),this)!/^_/.test(n)&&this[n]&&(e[n]=this[n])},setup:function(e){return fe=this,this.project=new O(e),this},createCanvas:function(e,t){return le.getCanvas(e,t)},activate:function(){fe=this},clear:function(){for(var e=this.projects,t=this.tools,n=e.length-1;n>=0;n--)e[n].remove();for(n=t.length-1;n>=0;n--)t[n].remove()},remove:function(){this.clear(),delete f._scopes[this._id]},statics:new function(){function e(e){return e+="Attribute",function(t,n){return t[e](n)||t[e]("data-paper-"+n)}}return{_scopes:{},_id:0,get:function(e){return this._scopes[e]||null},getAttribute:e("get"),hasAttribute:e("has")}}}),d=u.extend(h,{initialize:function(e){this._scope=fe,this._index=this._scope[this._list].push(this)-1,!e&&this._scope[this._reference]||this.activate()},activate:function(){if(!this._scope)return!1;var e=this._scope[this._reference];return e&&e!==this&&e.emit("deactivate"),this._scope[this._reference]=this,this.emit
2("activate",e),!0},isActive:function(){return this._scope[this._reference]===this},remove:function(){return null!=this._index&&(u.splice(this._scope[this._list],null,this._index,1),this._scope[this._reference]==this&&(this._scope[this._reference]=null),this._scope=null,!0)},getView:function(){return this._scope.getView()}}),p={findItemBoundsCollisions:function(e,t,n){function r(e){for(var t=new Array(e.length),n=0;n<e.length;n++){var r=e[n].getBounds();t[n]=[r.left,r.top,r.right,r.bottom]}return t}var i=r(e),o=t&&t!==e?r(t):i;return this.findBoundsCollisions(i,o,n||0)},findCurveBoundsCollisions:function(e,t,n,r){function i(e){for(var t=Math.min,n=Math.max,r=new Array(e.length),i=0;i<e.length;i++){var o=e[i];r[i]=[t(o[0],o[2],o[4],o[6]),t(o[1],o[3],o[5],o[7]),n(o[0],o[2],o[4],o[6]),n(o[1],o[3],o[5],o[7])]}return r}var o=i(e),a=t&&t!==e?i(t):o;if(r){for(var s=this.findBoundsCollisions(o,a,n||0,!1,!0),l=this.findBoundsCollisions(o,a,n||0,!0,!0),c=[],u=0,h=s.length;u<h;u++)c[u]={hor:s[u],ver:l[u]};return c}return this.findBoundsCollisions(o,a,n||0)},findBoundsCollisions:function(e,t,n,r,i){var o=!t||e===t,a=o?e:e.concat(t),s=e.length,l=a.length;function c(e,t,n){for(var r=0,i=e.length;r<i;){var o=i+r>>>1;a[e[o]][t]<n?r=o+1:i=o}return r-1}for(var u=r?1:0,h=u+2,f=r?0:1,d=f+2,p=new Array(l),g=0;g<l;g++)p[g]=g;p.sort((function(e,t){return a[e][u]-a[t][u]}));var v=[],m=new Array(s);for(g=0;g<l;g++){var y=p[g],b=a[y],x=o?y:y-s,_=y<s,w=o||!_,S=_?[]:null;if(v.length){var C=c(v,h,b[u]-n)+1;if(v.splice(0,C),o&&i){S=S.concat(v);for(var k=0;k<v.length;k++){m[T=v[k]].push(x)}}else{var O=b[d],E=b[f];for(k=0;k<v.length;k++){var T=v[k],A=a[T],P=T<s,j=o||T>=s;(i||(_&&j||w&&P)&&O>=A[f]-n&&E<=A[d]+n)&&(_&&j&&S.push(o?T:T-s),w&&P&&m[T].push(x))}}}if(_&&(e===t&&S.push(y),m[y]=S),v.length){var L=c(v,h,b[h]);v.splice(L+1,0,y)}else v.push(y)}for(g=0;g<m.length;g++){var M=m[g];M&&M.sort((function(e,t){return e-t}))}return m}},g=u.extend({initialize:function(e){this.precision=u.pick(e,5),this.multiplier=Math.pow(10,this.precision)},number:function(e){return this.precision<16?Math.round(e*this.multiplier)/this.multiplier:e},pair:function(e,t,n){return this.number(e)+(n||",")+this.number(t)},point:function(e,t){return this.number(e.x)+(t||",")+this.number(e.y)},size:function(e,t){return this.number(e.width)+(t||",")+this.number(e.height)},rectangle:function(e,t){return this.point(e,t)+(t||",")+this.size(e,t)}});g.instance=new g;var v=new function(){var e=[[.5773502691896257],[0,.7745966692414834],[.33998104358485626,.8611363115940526],[0,.5384693101056831,.906179845938664],[.2386191860831969,.6612093864662645,.932469514203152],[0,.4058451513773972,.7415311855993945,.9491079123427585],[.1834346424956498,.525532409916329,.7966664774136267,.9602898564975363],[0,.3242534234038089,.6133714327005904,.8360311073266358,.9681602395076261],[.14887433898163122,.4333953941292472,.6794095682990244,.8650633666889845,.9739065285171717],[0,.26954315595234496,.5190961292068118,.7301520055740494,.8870625997680953,.978228658146057],[.1252334085114689,.3678314989981802,.5873179542866175,.7699026741943047,.9041172563704749,.9815606342467192],[0,.2304583159551348,.44849275103644687,.6423493394403402,.8015780907333099,.9175983992229779,.9841830547185881],[.10805494870734367,.31911236892788974,.5152486363581541,.6872929048116855,.827201315069765,.9284348836635735,.9862838086968123],[0,.20119409399743451,.3941513470775634,.5709721726085388,.7244177313601701,.8482065834104272,.937273392400706,.9879925180204854],[.09501250983763744,.2816035507792589,.45801677765722737,.6178762444026438,.755404408355003,.8656312023878318,.9445750230732326,.9894009349916499]],t=[[1],[.8888888888888888,.5555555555555556],[.6521451548625461,.34785484513745385],[.5688888888888889,.47862867049936647,.23692688505618908],[.46791393457269104,.3607615730481386,.17132449237917036],[.4179591836734694,.3818300505051189,.27970539148927664,.1294849661688697],[.362683783378362,.31370664587788727,.22238103445337448,.10122853629037626],[.3302393550012598,.31234707704000286,.26061069640293544,.1806481606948574,.08127438836157441],[.29552422471475287,.26926671930999635,.21908636251598204,.1494513491505806,.06667134430868814],[.2729250867779006,.26280454451024665,.23319376459199048,.18629021092773426,.1255803694649046,.05566856711617366],[.24914704581340277,.2334925365383548,.20316742672306592,.16007832854334622,.10693932599531843,.04717533638651183],[.2325515532308739,.22628318026289723,.2078160475368885,.17814598076194574,.13887351021978725,.092121499837
272845,.04048400476531588],[.2152638534631578,.2051984637212956,.18553839747793782,.15720316715819355,.12151857068790319,.08015808715976021,.03511946033175186],[.2025782419255613,.19843148532711158,.1861610000155622,.16626920581699392,.13957067792615432,.10715922046717194,.07036604748810812,.03075324199611727],[.1894506104550685,.18260341504492358,.16915651939500254,.14959598881657674,.12462897125553388,.09515851168249279,.062253523938647894,.027152459411754096]],n=Math.abs,r=Math.sqrt,i=Math.pow,o=Math.log2||function(e){return Math.log(e)*Math.LOG2E},a=1e-12,s=112e-18;function l(e,t,n){return e<t?t:e>n?n:e}function c(e,t,r){function i(e){var t=134217729*e,n=e-t+t;return[n,e-n]}var o=t*t-e*r,a=t*t+e*r;if(3*n(o)<a){var s=i(e),l=i(t),c=i(r),u=t*t,h=e*r;o=u-h+(l[0]*l[0]-u+2*l[0]*l[1]+l[1]*l[1]-(s[0]*c[0]-h+s[0]*c[1]+s[1]*c[0]+s[1]*c[1]))}return o}function u(){var e=Math.max.apply(Math,arguments);return e&&(e<1e-8||e>1e8)?i(2,-Math.round(o(e))):0}return{EPSILON:a,MACHINE_EPSILON:s,CURVETIME_EPSILON:1e-8,GEOMETRIC_EPSILON:1e-7,TRIGONOMETRIC_EPSILON:1e-8,ANGULAR_EPSILON:1e-5,KAPPA:4*(r(2)-1)/3,isZero:function(e){return e>=-1e-12&&e<=a},isMachineZero:function(e){return e>=-112e-18&&e<=s},clamp:l,integrate:function(n,r,i,o){for(var a=e[o-2],s=t[o-2],l=.5*(i-r),c=l+r,u=0,h=o+1>>1,f=1&o?s[u++]*n(c):0;u<h;){var d=l*a[u];f+=s[u++]*(n(c+d)+n(c-d))}return l*f},findRoot:function(e,t,r,i,o,a,s){for(var c=0;c<a;c++){var u=e(r),h=u/t(r),f=r-h;if(n(h)<s){r=f;break}u>0?(o=r,r=f<=i?.5*(i+o):f):(i=r,r=f>=o?.5*(i+o):f)}return l(r,i,o)},solveQuadratic:function(e,t,i,o,h,f){var d,p=1/0;if(n(e)<a){if(n(t)<a)return n(i)<a?-1:0;d=-i/t}else{var g=c(e,t*=-.5,i);if(g&&n(g)<s){var v=u(n(e),n(t),n(i));v&&(g=c(e*=v,t*=v,i*=v))}if(g>=-112e-18){var m=g<0?0:r(g),y=t+(t<0?-m:m);0===y?p=-(d=i/e):(d=y/e,p=i/y)}}var b=0,x=null==h,_=h-a,w=f+a;return isFinite(d)&&(x||d>_&&d<w)&&(o[b++]=x?d:l(d,h,f)),p!==d&&isFinite(p)&&(x||p>_&&p<w)&&(o[b++]=x?p:l(p,h,f)),b},solveCubic:function(e,t,o,c,h,f,d){var p,g,m,y,b,x=u(n(e),n(t),n(o),n(c));function _(n){var r=e*(p=n);y=(r+(g=r+t))*p+(m=g*p+o),b=m*p+c}if(x&&(e*=x,t*=x,o*=x,c*=x),n(e)<a)e=t,g=o,m=c,p=1/0;else if(n(c)<a)g=t,m=o,p=0;else{_(-t/e/3);var w=b/e,S=i(n(w),1/3),C=w<0?-1:1,k=-y/e,O=k>0?1.324717957244746*Math.max(S,r(k)):S,E=p-C*O;if(E!==p){do{_(E),E=0===y?p:p-b/y/(1+s)}while(C*E>C*p);n(e)*p*p>n(c/p)&&(g=((m=-c/p)-o)/p)}}var T=v.solveQuadratic(e,g,m,h,f,d),A=null==f;return isFinite(p)&&(0===T||T>0&&p!==h[0]&&p!==h[1])&&(A||p>f-a&&p<d+a)&&(h[T++]=A?p:l(p,f,d)),T}}},m={_id:1,_pools:{},get:function(e){if(e){var t=this._pools[e];return t||(t=this._pools[e]={_id:1}),t._id++}return this._id++}},y=u.extend({_class:"Point",_readIndex:!0,initialize:function(e,t){var n=typeof e,r=this.__read,i=0;if("number"===n){var o="number"===typeof t;this._set(e,o?t:e),r&&(i=o?2:1)}else if("undefined"===n||null===e)this._set(0,0),r&&(i=null===e?1:0);else{var a="string"===n?e.split(/[\s,]+/)||[]:e;i=1,Array.isArray(a)?this._set(+a[0],+(a.length>1?a[1]:a[0])):"x"in a?this._set(a.x||0,a.y||0):"width"in a?this._set(a.width||0,a.height||0):"angle"in a?(this._set(a.length||0,0),this.setAngle(a.angle||0)):(this._set(0,0),i=0)}return r&&(this.__read=i),this},set:"#initialize",_set:function(e,t){return this.x=e,this.y=t,this},equals:function(e){return this===e||e&&(this.x===e.x&&this.y===e.y||Array.isArray(e)&&this.x===e[0]&&this.y===e[1])||!1},clone:function(){return new y(this.x,this.y)},toString:function(){var e=g.instance;return"{ x: "+e.number(this.x)+", y: "+e.number(this.y)+" }"},_serialize:function(e){var t=e.formatter;return[t.number(this.x),t.number(this.y)]},getLength:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},setLength:function(e){if(this.isZero()){var t=this._angle||0;this._set(Math.cos(t)*e,Math.sin(t)*e)}else{var n=e/this.getLength();v.isZero(n)&&this.getAngle(),this._set(this.x*n,this.y*n)}},getAngle:function(){return 180*this.getAngleInRadians.apply(this,arguments)/Math.PI},setAngle:function(e){this.setAngleInRadians.call(this,e*Math.PI/180)},getAngleInDegrees:"#getAngle",setAngleInDegrees:"#setAngle",getAngleInRadians:function(){if(arguments.length){var e=y.read(arguments),t=this.getLength()*e.getLength();if(v.isZero(t))return NaN;var n=this.dot(e)/t;return Math.acos(n<-1?-1:n>1?1:n)}return this.isZero()?this._angle||0:this._angle=Math.atan2(this.y,this.x)},setAngleInRadians:function(e){if(this._angle=e,!this.isZero()){var t=this.getLength();this._set(Math.cos(e)*t,Math.sin(e)*t)}},getQuadrant:function(){return this.x>=0?this.y>=0?1:4:this.y>=0?2:3}},{beans:!1,getDirectedAngle:function(){var e=y.read(arguments);return 180*Math.atan2(this.cross(e),this.dot(e))/Math.PI},getDistance:function(){var e=arguments,t=y.read(e),n=t.x-this.x,r=t.y-this.y,i=n*n+r*r,o=u.read(e);return o?i:Math.sqrt(i)},normalize:function(e){e===s&&(e=1);var t=this.getLength(),n=0!==t?e/t:0,r=new y(this.x*n,this.y*n);return n>=0&&(r._angle=this._angle),r},rotate:function(e,t){if(0===e)return this.clone();e=e*Math.PI/180;var n=t?this.subtract(t):this,r=Math.sin(e),i=Math.cos(e);return n=new y(n.x*i-n.y*r,n.x*r+n.y*i),t?n.add(t):n},transform:function(e){return e?e._transformPoint(this):this},add:function(){var e=y.read(arguments);return new y(this.x+e.x,this.y+e.y)},subtract:function(){var e=y.read(arguments);return new y(this.x-e.x,this.y-e.y)},multiply:function(){var e=y.read(arguments);return new y(this.x*e.x,this.y*e.y)},divide:function(){var e=y.read(arguments);return new y(this.x/e.x,this.y/e.y)},modulo:function(){var e=y.read(arguments);return new y(this.x%e.x,this.y%e.y)},negate:function(){return new y(-this.x,-this.y)},isInside:function(){return w.read(arguments).contains(this)},isClose:function(){var e=arguments,t=y.read(e),n=u.read(e);return this.getDistance(t)<=n},isCollinear:function(){var e=y.read(arguments);return y.isCollinear(this.x,this.y,e.x,e.y)},isColinear:"#isCollinear",isOrthogonal:function(){var e=y.read(arguments);return y.isOrthogonal(this.x,this.y,e.x,e.y)},isZero:function(){var e=v.isZero;return e(this.x)&&e(this.y)},isNaN:function(){return isNaN(this.x)||isNaN(this.y)},isInQuadrant:function(e){return this.x*(e>1&&e<4?-1:1)>=0&&this.y*(e>2?-1:1)>=0},dot:function(){var e=y.read(arguments);return this.x*e.x+this.y*e.y},cross:function(){var e=y.read(arguments);return this.x*e.y-this.y*e.x},project:function(){var e=y.read(arguments),t=e.isZero()?0:this.dot(e)/e.dot
2(e);return new y(e.x*t,e.y*t)},statics:{min:function(){var e=arguments,t=y.read(e),n=y.read(e);return new y(Math.min(t.x,n.x),Math.min(t.y,n.y))},max:function(){var e=arguments,t=y.read(e),n=y.read(e);return new y(Math.max(t.x,n.x),Math.max(t.y,n.y))},random:function(){return new y(Math.random(),Math.random())},isCollinear:function(e,t,n,r){return Math.abs(e*r-t*n)<=1e-8*Math.sqrt((e*e+t*t)*(n*n+r*r))},isOrthogonal:function(e,t,n,r){return Math.abs(e*n+t*r)<=1e-8*Math.sqrt((e*e+t*t)*(n*n+r*r))}}},u.each(["round","ceil","floor","abs"],(function(e){var t=Math[e];this[e]=function(){return new y(t(this.x),t(this.y))}}),{})),b=y.extend({initialize:function(e,t,n,r){this._x=e,this._y=t,this._owner=n,this._setter=r},_set:function(e,t,n){return this._x=e,this._y=t,n||this._owner[this._setter](this),this},getX:function(){return this._x},setX:function(e){this._x=e,this._owner[this._setter](this)},getY:function(){return this._y},setY:function(e){this._y=e,this._owner[this._setter](this)},isSelected:function(){return!!(this._owner._selection&this._getSelection())},setSelected:function(e){this._owner._changeSelection(this._getSelection(),e)},_getSelection:function(){return"setPosition"===this._setter?4:0}}),x=u.extend({_class:"Size",_readIndex:!0,initialize:function(e,t){var n=typeof e,r=this.__read,i=0;if("number"===n){var o="number"===typeof t;this._set(e,o?t:e),r&&(i=o?2:1)}else if("undefined"===n||null===e)this._set(0,0),r&&(i=null===e?1:0);else{var a="string"===n?e.split(/[\s,]+/)||[]:e;i=1,Array.isArray(a)?this._set(+a[0],+(a.length>1?a[1]:a[0])):"width"in a?this._set(a.width||0,a.height||0):"x"in a?this._set(a.x||0,a.y||0):(this._set(0,0),i=0)}return r&&(this.__read=i),this},set:"#initialize",_set:function(e,t){return this.width=e,this.height=t,this},equals:function(e){return e===this||e&&(this.width===e.width&&this.height===e.height||Array.isArray(e)&&this.width===e[0]&&this.height===e[1])||!1},clone:function(){return new x(this.width,this.height)},toString:function(){var e=g.instance;return"{ width: "+e.number(this.width)+", height: "+e.number(this.height)+" }"},_serialize:function(e){var t=e.formatter;return[t.number(this.width),t.number(this.height)]},add:function(){var e=x.read(arguments);return new x(this.width+e.width,this.height+e.height)},subtract:function(){var e=x.read(arguments);return new x(this.width-e.width,this.height-e.height)},multiply:function(){var e=x.read(arguments);return new x(this.width*e.width,this.height*e.height)},divide:function(){var e=x.read(arguments);return new x(this.width/e.width,this.height/e.height)},modulo:function(){var e=x.read(arguments);return new x(this.width%e.width,this.height%e.height)},negate:function(){return new x(-this.width,-this.height)},isZero:function(){var e=v.isZero;return e(this.width)&&e(this.height)},isNaN:function(){return isNaN(this.width)||isNaN(this.height)},statics:{min:function(e,t){return new x(Math.min(e.width,t.width),Math.min(e.height,t.height))},max:function(e,t){return new x(Math.max(e.width,t.width),Math.max(e.height,t.height))},random:function(){return new x(Math.random(),Math.random())}}},u.each(["round","ceil","floor","abs"],(function(e){var t=Math[e];this[e]=function(){return new x(t(this.width),t(this.height))}}),{})),_=x.extend({initialize:function(e,t,n,r){this._width=e,this._height=t,this._owner=n,this._setter=r},_set:function(e,t,n){return this._width=e,this._height=t,n||this._owner[this._setter](this),this},getWidth:function(){return this._width},setWidth:function(e){this._width=e,this._owner[this._setter](this)},getHeight:function(){return this._height},setHeight:function(e){this._height=e,this._owner[this._setter](this)}}),w=u.extend({_class:"Rectangle",_readIndex:!0,beans:!0,initialize:function(e,t,n,r){var i,o=arguments,a=typeof e;if("number"===a?(this._set(e,t,n,r),i=4):"undefined"===a||null===e?(this._set(0,0,0,0),i=null===e?1:0):1===o.length&&(Array.isArray(e)?(this._set.apply(this,e),i=1):e.x!==s||e.width!==s?(this._set(e.x||0,e.y||0,e.width||0,e.height||0),i=1):e.from===s&&e.to===s&&(this._set(0,0,0,0),u.readSupported(o,this)&&(i=1))),i===s){var l,c,h=y.readNamed(o,"from"),f=u.peek(o),d=h.x,p=h.y;if(f&&f.x!==s||u.hasNamed(o,"to")){var g=y.readNamed(o,"to");l=g.x-d,c=g.y-p,l<0&&(d=g.x,l=-l),c<0&&(p=g.y,c=-c)}else{var v=x.read(o);l=v.width,c=v.height}this._set(d,p,l,c),i=o.__index}var m=o.__filtered;return m&&(this.__filtered=m),this.__read&&(this.__read=i),this},set:"#initialize",_set:function(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this},clone:function(){return new w(this.x,this.y,this.width,this.height)},equals:function(e){var t=u.isPlainValue(e)?w.read(arguments):e;return t===this||t&&this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height||!1},toString:function(){var e=g.instance;return"{ x: "+e.number(this.x)+", y: "+e.number(this.y)+", width: "+e.number(this.width)+", height: "+e.number(this.height)+" }"},_serialize:function(e){var t=e.formatter;return[t.number(this.x),t.number(this.y),t.number(this.width),t.number(this.height)]},getPoint:function(e){return new(e?y:b)(this.x,this.y,this,"setPoint")},setPoint:function(){var e=y.read(arguments);this.x=e.x,this.y=e.y},getSize:function(e){return new(e?x:_)(this.width,this.height,this,"setSize")},_fw:1,_fh:1,setSize:function(){var e=x.read(arguments),t=this._sx,n=this._sy,r=e.width,i=e.he
2ight;t&&(this.x+=(this.width-r)*t),n&&(this.y+=(this.height-i)*n),this.width=r,this.height=i,this._fw=this._fh=1},getLeft:function(){return this.x},setLeft:function(e){if(!this._fw){var t=e-this.x;this.width-=.5===this._sx?2*t:t}this.x=e,this._sx=this._fw=0},getTop:function(){return this.y},setTop:function(e){if(!this._fh){var t=e-this.y;this.height-=.5===this._sy?2*t:t}this.y=e,this._sy=this._fh=0},getRight:function(){return this.x+this.width},setRight:function(e){if(!this._fw){var t=e-this.x;this.width=.5===this._sx?2*t:t}this.x=e-this.width,this._sx=1,this._fw=0},getBottom:function(){return this.y+this.height},setBottom:function(e){if(!this._fh){var t=e-this.y;this.height=.5===this._sy?2*t:t}this.y=e-this.height,this._sy=1,this._fh=0},getCenterX:function(){return this.x+this.width/2},setCenterX:function(e){this._fw||.5===this._sx?this.x=e-this.width/2:(this._sx&&(this.x+=2*(e-this.x)*this._sx),this.width=2*(e-this.x)),this._sx=.5,this._fw=0},getCenterY:function(){return this.y+this.height/2},setCenterY:function(e){this._fh||.5===this._sy?this.y=e-this.height/2:(this._sy&&(this.y+=2*(e-this.y)*this._sy),this.height=2*(e-this.y)),this._sy=.5,this._fh=0},getCenter:function(e){return new(e?y:b)(this.getCenterX(),this.getCenterY(),this,"setCenter")},setCenter:function(){var e=y.read(arguments);return this.setCenterX(e.x),this.setCenterY(e.y),this},getArea:function(){return this.width*this.height},isEmpty:function(){return 0===this.width||0===this.height},contains:function(e){return e&&e.width!==s||4===(Array.isArray(e)?e:arguments).length?this._containsRectangle(w.read(arguments)):this._containsPoint(y.read(arguments))},_containsPoint:function(e){var t=e.x,n=e.y;return t>=this.x&&n>=this.y&&t<=this.x+this.width&&n<=this.y+this.height}
2,_containsRectangle:function(e){var t=e.x,n=e.y;return t>=this.x&&n>=this.y&&t+e.width<=this.x+this.width&&n+e.height<=this.y+this.height},intersects:function(){var e=w.read(arguments),t=u.read(arguments)||0;return e.x+e.width>this.x-t&&e.y+e.height>this.y-t&&e.x<this.x+this.width+t&&e.y<this.y+this.height+t},intersect:function(){var e=w.read(arguments),t=Math.max(this.x,e.x),n=Math.max(this.y,e.y),r=Math.min(this.x+this.width,e.x+e.width),i=Math.min(this.y+this.height,e.y+e.height);return new w(t,n,r-t,i-n)},unite:function(){var e=w.read(arguments),t=Math.min(this.x,e.x),n=Math.min(this.y,e.y),r=Math.max(this.x+this.width,e.x+e.width),i=Math.max(this.y+this.height,e.y+e.height);return new w(t,n,r-t,i-n)},include:function(){var e=y.read(arguments),t=Math.min(this.x,e.x),n=Math.min(this.y,e.y),r=Math.max(this.x+this.width,e.x),i=Math.max(this.y+this.height,e.y);return new w(t,n,r-t,i-n)},expand:function(){var e=x.read(arguments),t=e.width,n=e.height;return new w(this.x-t/2,this.y-n/2,this.width+t,this.height+n)},scale:function(e,t){return this.expand(this.width*e-this.width,this.height*(t===s?e:t)-this.height)}},u.each([["Top","Left"],["Top","Right"],["Bottom","Left"],["Bottom","Right"],["Left","Center"],["Top","Center"],["Right","Center"],["Bottom","Center"]],(function(e,t){var n=e.join(""),r=/^[RL]/.test(n);t>=4&&(e[1]+=r?"Y":"X");var i=e[r?0:1],o=e[r?1:0],a="get"+i,s="get"+o,l="set"+i,c="set"+o,u="set"+n;this["get"+n]=function(e){return new(e?y:b)(this[a](),this[s](),this,u)},this[u]=function(){var e=y.read(arguments);this[l](e.x),this[c](e.y)}}),{beans:!0})),S=w.extend({initialize:function(e,t,n,r,i,o){this._set(e,t,n,r,!0),this._owner=i,this._setter=o},_set:function(e,t,n,r,i){return this._x=e,this._y=t,this._width=n,this._height=r,i||this._owner[this._setter](this),this}},new function(){var e=w.prototype;return u.each(["x","y","width","height"],(function(e){var t=u.capitalize(e),n="_"+e;this["get"+t]=function(){return this[n]},this["set"+t]=function(e){this[n]=e,this._dontNotify||this._owner[this._setter](this)}}),u.each(["Point","Size","Center","Left","Top","Right","Bottom","CenterX","CenterY","TopLeft","TopRight","BottomLeft","BottomRight","LeftCenter","TopCenter","RightCenter","BottomCenter"],(function(t){var n="set"+t;this[n]=function(){this._dontNotify=!0,e[n].apply(this,arguments),this._dontNotify=!1,this._owner[this._setter](this)}}),{isSelected:function(){return!!(2&this._owner._selection)},setSelected:function(e){var t=this._owner;t._changeSelection&&t._changeSelection(2,e)}}))}),C=u.extend({_class:"Matrix",initialize:function e(t,n){var r=arguments,i=r.length,o=!0;if(i>=6?this._set.apply(this,r):1===i||2===i?t instanceof e?this._set(t._a,t._b,t._c,t._d,t._tx,t._ty,n):Array.isArray(t)?this._set.apply(this,n?t.concat([n]):t):o=!1:i?o=!1:this.reset(),!o)throw new Error("Unsupported matrix parameters");return this},set:"#initialize",_set:function(e,t,n,r,i,o,a){return this._a=e,this._b=t,this._c=n,this._d=r,this._tx=i,this._ty=o,a||this._changed(),this},_serialize:function(e,t){return u.serialize(this.getValues(),e,!0,t)},_changed:function(){var e=this._owner;e&&(e._applyMatrix?e.transform(null,!0):e._changed(25))},clone:function(){return new C(this._a,this._b,this._c,this._d,this._tx,this._ty)},equals:function(e){return e===this||e&&this._a===e._a&&this._b===e._b&&this._c===e._c&&this._d===e._d&&this._tx===e._tx&&this._ty===e._ty},toString:function(){var e=g.instance;return"[["+[e.number(this._a),e.number(this._c),e.number(this._tx)].join(", ")+"], ["+[e.number(this._b),e.number(this._d),e.number(this._ty)].join(", ")+"]]"},reset:function(e){return this._a=this._d=1,this._b=this._c=this._tx=this._ty=0,e||this._changed(),this},apply:function(e,t){var n=this._owner;return!!n&&(n.transform(null,u.pick(e,!0),t),this.isIdentity())},translate:function(){var e=y.read(arguments),t=e.x,n=e.y;return this._tx+=t*this._a+n*this._c,this._ty+=t*this._b+n*this._d,this._changed(),this},scale:function(){var e=arguments,t=y.read(e),n=y.read(e,0,{readNull:!0});return n&&this.translate(n),this._a*=t.x,this._b*=t.x,this._c*=t.y,this._d*=t.y,n&&this.translate(n.negate()),this._changed(),this},rotate:function(e){e*=Math.PI/180;
2var t=y.read(arguments,1),n=t.x,r=t.y,i=Math.cos(e),o=Math.sin(e),a=n-n*i+r*o,s=r-n*o-r*i,l=this._a,c=this._b,u=this._c,h=this._d;return this._a=i*l+o*u,this._b=i*c+o*h,this._c=-o*l+i*u,this._d=-o*c+i*h,this._tx+=a*l+s*u,this._ty+=a*c+s*h,this._changed(),this},shear:function(){var e=arguments,t=y.read(e),n=y.read(e,0,{readNull:!0});n&&this.translate(n);var r=this._a,i=this._b;return this._a+=t.y*this._c,this._b+=t.y*this._d,this._c+=t.x*r,this._d+=t.x*i,n&&this.translate(n.negate()),this._changed(),this},skew:function(){var e=arguments,t=y.read(e),n=y.read(e,0,{readNull:!0}),r=Math.PI/180,i=new y(Math.tan(t.x*r),Math.tan(t.y*r));return this.shear(i,n)},append:function(e,t){if(e){var n=this._a,r=this._b,i=this._c,o=this._d,a=e._a,s=e._c,l=e._b,c=e._d,u=e._tx,h=e._ty;this._a=a*n+l*i,this._c=s*n+c*i,this._b=a*r+l*o,this._d=s*r+c*o,this._tx+=u*n+h*i,this._ty+=u*r+h*o,t||this._changed()}return this},prepend:function(e,t){if(e){var n=this._a,r=this._b,i=this._c,o=this._d,a=this._tx,s=this._ty,l=e._a,c=e._c,u=e._b,h=e._d,f=e._tx,d=e._ty;this._a=l*n+c*r,this._c=l*i+c*o,this._b=u*n+h*r,this._d=u*i+h*o,this._tx=l*a+c*s+f,this._ty=u*a+h*s+d,t||this._changed()}return this},appended:function(e){return this.clone().append(e)},prepended:function(e){return this.clone().prepend(e)},invert:function(){var e=this._a,t=this._b,n=this._c,r=this._d,i=this._tx,o=this._ty,a=e*r-t*n,s=null;return a&&!isNaN(a)&&isFinite(i)&&isFinite(o)&&(this._a=r/a,this._b=-t/a,this._c=-n/a,this._d=e/a,this._tx=(n*o-r*i)/a,this._ty=(t*i-e*o)/a,s=this),s},inverted:function(){return this.clone().invert()},concatenate:"#append",preConcatenate:"#prepend",chain:"#appended",_shiftless:function(){return new C(this._a,this._b,this._c,this._d,0,0)},_orNullIfIdentity:function(){return this.isIdentity()?null:this},isIdentity:function(){return 1===this._a&&0===this._b&&0===this._c&&1===this._d&&0===this._tx&&0===this._ty},isInvertible:function(){var e=this._a*this._d-this._c*this._b;return e&&!isNaN(e)&&isFinite(this._tx)&&isFinite(this._ty)},isSingular:function(){return!this.isInvertible()},transform:function(e,t,n){return arguments.length<3?this._transformPoint(y.read(arguments)):this._transformCoordinates(e,t,n)},_transformPoint:function(e,t,n){var r=e.x,i=e.y;return t||(t=new y),t._set(r*this._a+i*this._c+this._tx,r*this._b+i*this._d+this._ty,n)},_transformCoordinates:function(e,t,n){for(var r=0,i=2*n;r<i;r+=2){var o=e[r],a=e[r+1];t[r]=o*this._a+a*this._c+this._tx,t[r+1]=o*this._b+a*this._d+this._ty}return t},_transformCorners:function(e){var t=e.x,n=e.y,r=t+e.width,i=n+e.height,o=[t,n,r,n,r,i,t,i];return this._transformCoordinates(o,o,4)},_transformBounds:function(e,t,n){for(var r=this._transformCorners(e),i=r.slice(0,2),o=i.slice(),a=2;a<8;a++){var s=r[a],l=1&a;s<i[l]?i[l]=s:s>o[l]&&(o[l]=s)}return t||(t=new w),t._set(i[0],i[1],o[0]-i[0],o[1]-i[1],n)},inverseTransform:function(){return this._inverseTransform(y.read(arguments))},_inverseTransform:function(e,t,n){var r=this._a,i=this._b,o=this._c,a=this._d,s=this._tx,l=this._ty,c=r*a-i*o,u=null;if(c&&!isNaN(c)&&isFinite(s)&&isFinite(l)){var h=e.x-this._tx,f=e.y-this._ty;t||(t=new y),u=t._set((h*a-f*o)/c,(f*r-h*i)/c,n)}return u},decompose:function(){var e,t,n,r=this._a,i=this._b,o=this._c,a=this._d,s=r*a-i*o,l=Math.sqrt,c=Math.atan2,u=180/Math.PI;if(0!==r||0!==i){var h=l(r*r+i*i);e=Math.acos(r/h)*(i>0?1:-1),t=[h,s/h],n=[c(r*o+i*a,h*h),0]}else if(0!==o||0!==a){var f=l(o*o+a*a);e=Math.asin(o/f)*(a>0?1:-1),t=[s/f,f],n=[0,c(r*o+i*a,f*f)]}else e=0,n=t=[0,0];return{translation:this.getTranslation(),rotation:e*u,scaling:new y(t),skewing:new y(n[0]*u,n[1]*u)}},getValues:function(){return[this._a,this._b,this._c,this._d,this._tx,this._ty]},getTranslation:function(){return new y(this._tx,this._ty)},getScaling:function(){return this.decompose().scaling},getRotation:function(){return this.decompose().rotation},applyToContext:function(e){this.isIdentity()||e.transform(this._a,this._b,this._c,this._d,this._tx,this._ty)}},u.each(["a","b","c","d","tx","ty"],(function(e){var t=u.capitalize(e),n="_"+e;this["get"+t]=function(){return this[n]},this["set"+t]=function(e){this[n]=e,this._changed()}}),{})),k=u.extend({_class:"Line",initialize:function(e,t,n,r,i){var o=!1;arguments.length>=4?(this._px=e,this._py=t,this._vx=n,this._vy=r,o=i):(this._px=e.x,this._py=e.y,this._vx=t.x,this._vy=t.y,o=n),o||(this._vx-=this._px,this._vy-=this._py)},getPoint:function(){return new y(this._px,this._py)},getVector:function(){return new y(this._vx,this._vy)},getLength:function(){return this.getVector().getLength()},intersect:function(e,t){return k.intersect(this._px,this._py,this._vx,this._vy,e._px,e._py,e._vx,e._vy,!0,t)},getSide:function(e,t){return k.getSide(this._px,this._py,this._vx,this._vy,e.x,e.y,!0,t)},getDistance:function(e){return Math.abs(this.getSignedDistance(e))},getSignedDistance:function(e){return k.getSignedDistance(this._px,this._py,this._vx,this._vy,e.x,e.y,!0)},isCollinear:function(e){return y.isCollinear(this._vx,this._vy,e._vx,e._vy)},isOrthogonal:function(e){return y.isOrthogonal(this._vx,this._vy,e._vx,e._vy)},statics:{intersect:function(e,t,n,r,i,o,a,s,l,c){l||(n-=e,r-=t,a-=i,s-=o);var u=n*s-r*a;if(!v.isMachineZero(u)){var h=e-i,f=t-o,d=(a*f-s*h)/u,p=(n*f-r*h)/u,g=-1e-12,m=1+1e-12;if(c||g<d&&d<m&&g<p&&p<m)return c||(d=d<=0?0:d>=1?1:d),new y(e+d*n,t+d*r)}},getSide:function(e,t,n,r,i,o,a,s){a||(n-=e,r-=t);var l=i-e,c=l*r-(o-t)*n;return!s&&v.isMachineZero(c)&&(c=(l*n+l*n)/(n*n+r*r))>=0&&c<=1&&(c=0),c<0?-1:c>0?1:0},getSignedDistance:function(e,t,n,r,i,o,a){return a||(n-=e,r-=t),0===n?r>0?i-e:e-i:0===r?n<0?o-t:t-o:((i-e)*r-(o-t)*n)/(r>n?r*Math.sqrt(1+n*n/(r*r)):n*Math.sqrt(1+r*r/(n*n)))},getDistance:function(e,t,n,r,i,o,a){return Math.abs(k.getSignedDistance(e,t,n,r,i,o,a))}}}),O=d.extend({_class:"Project",_list:"projects",_reference:"project",_compactSerialize:!0,initialize:function(e){d.call(this,!0),this._children=[],this._namedChildren={},this._activeLayer=null,this._currentStyle=new $(null,null,this),this._view=Q.create(this,e||le.getCanvas(1,1)),this._selectionItems={},this._selectionCount=0,this._updateVersion=0},_serialize:function(e,t){return u.serialize(this._children,e,!0,t)},_changed:function(e,t){if(1&e){var n=this._view;n&&(n._needsUpdate=!0,!n._requested&&n._autoUpdate&&n.requestUpdate())}var r=this._changes;if(r&&t){var i=this._changesById,o=t._id,a=i[o];a?a.flags|=e:r.push(i[o]={item:t,flags:e})}},clear:function(){for(var e=this._children,t=e.length-1;t>=0;t--)e[t].remove()},isEmpty:function(){return!this._children.length},remove:function e(){return!!e.base.call(this)&&(this._view&&this._view.remove(),!0)},getView:function(){return this._view},getCurrentStyle:function(){return this._currentStyle},setCurrentStyle:function(e){this._currentStyle.set(e)},getIndex:function(){return this._index},getOptions:function(){return this._scope.settings},getLayers:function(){return this._children},getActiveLayer:function(){return this._activeLayer||new A({project:this,insert:!0})},getSymbolDefinitions:function(){var e=[],t={};return this.getItems({class:L,match:function(n){var r=n._definition,i=r._id;return t[i]||(t[i]=!0,e.push(r)),!1}}),e},getSymbols:"getSymbolDefinitions",getSelectedItems:function(){var e=this._selectionItems,t=[];for(var n in e){var r=e[n],i=r._selection;1&i&&r.isInserted()?t.push(r):i||this._updateSelection(r)}return t},_updateSelection:function(e){var t=e._id,n=this._selectionItems;e._selection?n[t]!==e&&(this._selectionCount++,n[t]=e):n[t]===e&&(this._selectionCount--,delete n[t])},selectAll:function(){for(var e=this._children,t=0,n=e.length;t<n;t++)e[t].setFullySelected(!0)},deselectAll:function(){var e=this._selectionItems;for(var t in e)e[t].setFullySelected(!1)},addLayer:function(e){return this.insertLayer(s,e)},insertLayer:function(e,t){if(t instanceof A){t._remove(!1,!0),u.splice(this._children,[t],e,0),t._setProject(this,!0);var n=t._name;n&&t.setName(n),this._changes&&t._changed(5),this._activeLayer||(this._activeLayer=t)}else t=null;return t},_insertItem:function(e,t,n){return t=this.insertLayer(e,t)||(this._activeLayer||this._insertItem(s,new A(E.NO_INSERT),!0)).insertChild(e,t),n&&t.activate&&t.activate(),t},getItems:function(e){return E._getItems(this,e)},getItem:function(e){return E._getItems(this,e,null,null,!0)[0]||null},importJSON:function(e){this.activate();var t=this._activeLayer;return u.importJSON(e,t&&t.isEmpty()&&t)},removeOn:function(e){var t=this._removeSets;if(t){"mouseup"===e&&(t.mousedrag=null);var n=t[e];if(n){for(var r in n){var i=n[r];for(var o in t){var a=t[o];a&&a!=n&&delete a[i._id]}i.remove()}t[e]=null}}},draw:function(e,t,n){this._updateVersion++,e.save(),t.applyToContext(e);for(var r=this._children,i=new u({offset:new y(0,0),pixelRatio:n,viewMatrix:t.isIdentity()?null:t,matrices:[new C],updateMatrix:!0}),o=0,a=r.length;o<a;o++)r[o].draw(e,i);
2if(e.restore(),this._selectionCount>0){e.save(),e.strokeWidth=1;var s=this._selectionItems,l=this._scope.settings.handleSize,c=this._updateVersion;for(var h in s)s[h]._drawSelection(e,t,l,s,c);e.restore()}}}),E=u.extend(h,{statics:{extend:function e(t){return t._serializeFields&&(t._serializeFields=u.set({},this.prototype._serializeFields,t._serializeFields)),e.base.apply(this,arguments)},INSERT:{insert:!0},NO_INSERT:{insert:!1}},_class:"Item",_name:null,_applyMatrix:!0,_canApplyMatrix:!0,_canScaleStroke:!1,_pivot:null,_visible:!0,_blendMode:"normal",_opacity:1,_locked:!1,_guide:!1,_clipMask:!1,_selection:0,_selectBounds:!0,_selectChildren:!1,_serializeFields:{name:null,applyMatrix:null,matrix:new C,pivot:null,visible:!0,blendMode:"normal",opacity:1,locked:!1,guide:!1,clipMask:!1,selected:!1,data:{}},_prioritize:["applyMatrix"]},new function(){var e=["onMouseDown","onMouseUp","onMouseDrag","onClick","onDoubleClick","onMouseMove","onMouseEnter","onMouseLeave"];return u.each(e,(function(e){this._events[e]={install:function(e){this.getView()._countItemEvent(e,1)},uninstall:function(e){this.getView()._countItemEvent(e,-1)}}}),{_events:{onFrame:{install:function(){this.getView()._animateItem(this,!0)},uninstall:function(){this.getView()._animateItem(this,!1)}},onLoad:{},onError:{}},statics:{_itemHandlers:e}})},{initialize:function(){},_initialize:function(e,t){var n=e&&u.isPlainObject(e),r=n&&!0===e.internal,i=this._matrix=new C,o=n&&e.project||fe.project,a=fe.settings;return this._id=r?null:m.get(),this._parent=this._index=null,this._applyMatrix=this._canApplyMatrix&&a.applyMatrix,t&&i.translate(t),i._owner=this,this._style=new $(o._currentStyle,this,o),r||n&&0==e.insert||!a.insertItems&&(!n||1!=e.insert)?this._setProject(o):(n&&e.parent||o)._insertItem(s,this,!0),n&&e!==E.NO_INSERT&&e!==E.INSERT&&this.set(e,{internal:!0,insert:!0,project:!0,parent:!0}),n},_serialize:function(e,t){var n={},r=this;function i(i){for(var o in i){var a=r[o];u.equals(a,"leading"===o?1.2*i.fontSize:i[o])||(n[o]=u.serialize(a,e,"data"!==o,t))}}return i(this._serializeFields),this instanceof T||i(this._style._defaults),[this._class,n]},_changed:function(e){var t=this._symbol,n=this._parent||t,r=this._project;8&e&&(this._bounds=this._position=this._decomposed=s),16&e&&(this._globalMatrix=s),n&&72&e&&E._clearBoundsCache(n),2&e&&E._clearBoundsCache(this),r&&r._changed(e,this),t&&t._changed(e)},getId:function(){return this._id},getName:function(){return this._name},setName:function(e){if(this._name&&this._removeNamed(),e===+e+"")throw new Error("Names consisting only of numbers are not supported.");var t=this._getOwner();if(e&&t){var n=t._children,r=t._namedChildren;(r[e]=r[e]||[]).push(this),e in n||(n[e]=this)}this._name=e||s,this._changed(256)},getStyle:function(){return this._style},setStyle:function(e){this.getStyle().set(e)}},u.each(["locked","visible","blendMode","opacity","guide"],(function(e){var t=u.capitalize(e),n="_"+e,r={locked:256,visible:265};this["get"+t]=function(){return this[n]},this["set"+t]=function(t){t!=this[n]&&(this[n]=t,this._changed(r[e]||257))}}),{}),{beans:!0,getSelection:function(){return this._selection},setSelection:function(e){if(e!==this._selection){this._selection=e;var t=this._project;t&&(t._updateSelection(this),this._changed(257))}},_changeSelection:function(e,t){var n=this._selection;this.setSelection(t?n|e:n&~e)},isSelected:function(){if(this._selectChildren)for(var e=this._children,t=0,n=e.length;t<n;t++)if(e[t].isSelected())return!0;return!!(1&this._selection)},setSelected:function(e){if(this._selectChildren)for(var t=this._children,n=0,r=t.length;n<r;n++)t[n].setSelected(e);this._changeSelection(1,e)},isFullySelected:function(){var e=this._children,t=!!(1&this._selection);if(e&&t){for(var n=0,r=e.length;n<r;n++)if(!e[n].isFullySelected())return!1;return!0}return t},setFullySelected:function(e){var t=this._children;if(t)for(var n=0,r=t.length;n<r;n++)t[n].setFullySelected(e);this._changeSelection(1,e)},isClipMask:function(){return this._clipMask},setClipMask:function(e){this._clipMask!=(e=!!e)&&(this._clipMask=e,e&&(this.setFillColor(null),this.setStrokeColor(null)),this._changed(257),this._parent&&this._parent._changed(2048))},getData:function(){return this._data||(this._data={}),this._data},setData:function(e){this._data=e},getPosition:function(e){var t=e?y:b,n=this._position||(this._position=this._getPositionFromBounds());return new t(n.x,n.y,this,"setPosition")},setPosition:function(){this.translate(y.read(arguments).subtract(this.getPosition(!0)))},_getPositionFromBounds:function(e){return this._pivot?this._matrix._transformPoint(this._pivot):(e||this.getBounds()).getCenter(!0)},getPivot:function(){var e=this._pivot;return e?new b(e.x,e.y,this,"setPivot"):null},setPivot:function(){this._pivot=y.read(arguments,0,{clone:!0,readNull:!0}),this._position=s}},u.each({getStrokeBounds:{stroke:!0},getHandleBounds:{handle:!0},getInternalBounds:{internal:!0}},(function(e,t){this[t]=function(t){return this.getBounds(t,e)}}),{beans:!0,getBounds:function(e,t){var n=t||e instanceof C,r=u.set({},n?t:e,this._boundsOptions);r.stroke&&!this.getStrokeScaling()||(r.cacheItem=this);var i=this._getCachedBounds(n&&e,r).rect;return arguments.length?i:new S(i.x,i.y,i.width,i.height,this,"setBounds")},setBounds:function(){var e=w.read(arguments),t=this.getBounds(),n=this._matrix,r=new C,i=e.getCenter();
2r.translate(i),e.width==t.width&&e.height==t.height||(n.isInvertible()||(n.set(n._backup||(new C).translate(n.getTranslation())),t=this.getBounds()),r.scale(0!==t.width?e.width/t.width:0,0!==t.height?e.height/t.height:0)),i=t.getCenter(),r.translate(-i.x,-i.y),this.transform(r)},_getBounds:function(e,t){var n=this._children;return n&&n.length?(E._updateBoundsCache(this,t.cacheItem),E._getBounds(n,e,t)):new w},_getBoundsCacheKey:function(e,t){return[e.stroke?1:0,e.handle?1:0,t?1:0].join("")},_getCachedBounds:function(e,t,n){e=e&&e._orNullIfIdentity();var r=t.internal&&!n,i=t.cacheItem,o=r?null:this._matrix._orNullIfIdentity(),a=i&&(!e||e.equals(o))&&this._getBoundsCacheKey(t,r),s=this._bounds;if(E._updateBoundsCache(this._parent||this._symbol,i),a&&s&&a in s)return{rect:(f=s[a]).rect.clone(),nonscaling:f.nonscaling};var l=this._getBounds(e||o,t),c=l.rect||l,u=this._style,h=l.nonscaling||u.hasStroke()&&!u.getStrokeScaling();if(a){s||(this._bounds=s={});var f=s[a]={rect:c.clone(),nonscaling:h,internal:r}}return{rect:c,nonscaling:h}},_getStrokeMatrix:function(e,t){var n=this.getStrokeScaling()?null:t&&t.internal?this:this._parent||this._symbol&&this._symbol._item,r=n?n.getViewMatrix().invert():e;return r&&r._shiftless()},statics:{_updateBoundsCache:function(e,t){if(e&&t){var n=t._id,r=e._boundsCache=e._boundsCache||{ids:{},list:[]};r.ids[n]||(r.list.push(t),r.ids[n]=t)}},_clearBoundsCache:function(e){var t=e._boundsCache;if(t){e._bounds=e._position=e._boundsCache=s;for(var n=0,r=t.list,i=r.length;n<i;n++){var o=r[n];o!==e&&(o._bounds=o._position=s,o._boundsCache&&E._clearBoundsCache(o))}}},_getBounds:function(e,t,n){var r=1/0,i=-r,o=r,a=i,s=!1;n=n||{};for(var l=0,c=e.length;l<c;l++){var u=e[l];if(u._visible&&!u.isEmpty(!0)){var h=u._getCachedBounds(t&&t.appended(u._matrix),n,!0),f=h.rect;r=Math.min(f.x,r),o=Math.min(f.y,o),i=Math.max(f.x+f.width,i),a=Math.max(f.y+f.height,a),h.nonscaling&&(s=!0)}}return{rect:isFinite(r)?new w(r,o,i-r,a-o):new w,nonscaling:s}}}}),{beans:!0,_decompose:function(){return this._applyMatrix?null:this._decomposed||(this._decomposed=this._matrix.decompose())},getRotation:function(){var e=this._decompose();return e?e.rotation:0},setRotation:function(e){var t=this.getRotation();if(null!=t&&null!=e){var n=this._decomposed;this.rotate(e-t),n&&(n.rotation=e,this._decomposed=n)}},getScaling:function(){var e=this._decompose(),t=e&&e.scaling;return new b(t?t.x:1,t?t.y:1,this,"setScaling")},setScaling:function(){var e=this.getScaling(),t=y.read(arguments,0,{clone:!0,readNull:!0});if(e&&t&&!e.equals(t)){var n=this.getRotation(),r=this._decomposed,i=new C,o=v.isZero;if(o(e.x)||o(e.y))i.translate(r.translation),n&&i.rotate(n),i.scale(t.x,t.y),this._matrix.set(i);else{var a=this.getPosition(!0);i.translate(a),n&&i.rotate(n),i.scale(t.x/e.x,t.y/e.y),n&&i.rotate(-n),i.translate(a.negate()),this.transform(i)}r&&(r.scaling=t,this._decomposed=r)}},getMatrix:function(){return this._matrix},setMatrix:function(){var e=this._matrix;e.set.apply(e,arguments)},getGlobalMatrix:function(e){var t=this._globalMatrix;if(t)for(var n=this._parent,r=[];n;){if(!n._globalMatrix){t=null;for(var i=0,o=r.length;i<o;i++)r[i]._globalMatrix=null;break}r.push(n),n=n._parent}t||(t=this._globalMatrix=this._matrix.clone(),(n=this._parent)&&t.prepend(n.getGlobalMatrix(!0)));return e?t:t.clone()},getViewMatrix:function(){return this.getGlobalMatrix().prepend(this.getView()._matrix)},getApplyMatrix:function(){return this._applyMatrix},setApplyMatrix:function(e){(this._applyMatrix=this._canApplyMatrix&&!!e)&&this.transform(null,!0)},getTransformContent:"#getApplyMatrix",setTransformContent:"#setApplyMatrix"},{getProject:function(){return this._project},_setProject:function(e,t){if(this._project!==e){this._project&&this._installEvents(!1),this._project=e;for(var n=this._children,r=0,i=n&&n.length;r<i;r++)n[r]._setProject(e);t=!0}t&&this._installEvents(!0)},getView:function(){return this._project._view},_installEvents:function e(t){e.base.call(this,t);for(var n=this._children,r=0,i=n&&n.length;r<i;r++)n[r]._installEvents(t)},getLayer:function(){for(var e=this;e=e._parent;)if(e instanceof A)return e;return null},getParent:function(){return this._parent},setParent:function(e){return e.addChild(this)},_getOwner:"#getParent",getChildren:function(){return this._children},setChildren:function(e){this.removeChildren(),this.addChildren(e)},getFirstChild:function(){return this._children&&this._children[0]||null},getLastChild:function(){return this._children&&this._children[this._children.length-1]||null},getNextSibling:function(){var e=this._getOwner();return e&&e._children[this._index+1]||null},getPreviousSibling:function(){var e=this._getOwner();return e&&e._children[this._index-1]||null},getIndex:function(){return this._index},setIndex:function(e){var t=this._parent,n=t&&t._children;n&&t.insertChildren(e in n?e:s,[this])},equals:function(e){return e===this||e&&this._class===e._class&&this._style.equals(e._style)&&this._matrix.equals(e._matrix
2)&&this._locked===e._locked&&this._visible===e._visible&&this._blendMode===e._blendMode&&this._opacity===e._opacity&&this._clipMask===e._clipMask&&this._guide===e._guide&&this._equals(e)||!1},_equals:function(e){return u.equals(this._children,e._children)},clone:function(e){var t=new this.constructor(E.NO_INSERT),n=this._children,r=u.pick(e?e.insert:s,e===s||!0===e),i=u.pick(e?e.deep:s,!0);n&&t.copyAttributes(this),n&&!i||t.copyContent(this),n||t.copyAttributes(this),r&&t.insertAbove(this);var o=this._name,a=this._parent;if(o&&a){n=a._children;for(var l=o,c=1;n[o];)o=l+" "+c++;o!==l&&t.setName(o)}return t},copyContent:function(e){for(var t=e._children,n=0,r=t&&t.length;n<r;n++)this.addChild(t[n].clone(!1),!0)},copyAttributes:function(e,t){this.setStyle(e._style);for(var n=["_locked","_visible","_blendMode","_opacity","_clipMask","_guide"],r=0,i=n.length;r<i;r++){var o=n[r];e.hasOwnProperty(o)&&(this[o]=e[o])}t||this._matrix.set(e._matrix,!0),this.setApplyMatrix(e._applyMatrix),this.setPivot(e._pivot),this.setSelection(e._selection);var a=e._data,s=e._name;this._data=a?u.clone(a):null,s&&this.setName(s)},rasterize:function(e,t){var n,r,i;u.isPlainObject(e)?(n=e.resolution,r=e.insert,i=e.raster):(n=e,r=t),i||(i=new j(E.NO_INSERT));var o=this.getStrokeBounds(),a=(n||this.getView().getResolution())/72,l=o.getTopLeft().floor(),c=o.getBottomRight().ceil(),h=new x(c.subtract(l)),f=h.multiply(a);if(i.setSize(f,!0),!f.isZero()){var d=i.getContext(!0),p=(new C).scale(a).translate(l.negate());d.save(),p.applyToContext(d),this.draw(d,new u({matrices:[p]})),d.restore()}return i._matrix.set((new C).translate(l.add(h.divide(2))).scale(1/a)),(r===s||r)&&i.insertAbove(this),i},contains:function(){var e=this._matrix;return e.isInvertible()&&!!this._contains(e._inverseTransform(y.read(arguments)))},_contains:function(e){var t=this._children;if(t){for(var n=t.length-1;n>=0;n--)if(t[n].contains(e))return!0;return!1}return e.isInside(this.getInternalBounds())},isInside:function(){return w.read(arguments).contains(this.getBounds())},_asPathItem:function(){return new U.Rectangle({rectangle:this.getInternalBounds(),matrix:this._matrix,insert:!1})},intersects:function(e,t){return e instanceof E&&this._asPathItem().getIntersections(e._asPathItem(),null,t,!0).length>0}},new function(){function e(){var e=arguments;return this._hitTest(y.read(e),R.getOptions(e))}function t(){var e=arguments,t=y.read(e),n=R.getOptions(e),r=[];return this._hitTest(t,new u({all:r},n)),r}function n(e,t,n,r){var i=this._children;if(i)for(var o=i.length-1;o>=0;o--){var a=i[o],s=a!==r&&a._hitTest(e,t,n);if(s&&!t.all)return s}return null}return O.inject({hitTest:e,hitTestAll:t,_hitTest:n}),{hitTest:e,hitTestAll:t,_hitTestChildren:n}},{_hitTest:function(e,t,n){if(this._locked||!this._visible||this._guide&&!t.guides||this.isEmpty())return null;var r=this._matrix,i=n?n.appended(r):this.getGlobalMatrix().prepend(this.getView()._matrix),o=Math.max(t.tolerance,1e-12),a=t._tolerancePadding=new x(U._getStrokePadding(o,r._shiftless().invert()));if(!(e=r._inverseTransform(e))||!this._children&&!this.getBounds({internal:!0,stroke:!0,handle:!0}).expand(a.multiply(2))._containsPoint(e))return null;var s,l,c=!(t.guides&&!this._guide||t.selected&&!this.isSelected()||t.type&&t.type!==u.hyphenate(this._class)||t.class&&!(this instanceof t.class)),h=t.match,f=this;function d(e){return e&&h&&!h(e)&&(e=null),e&&t.all&&t.all.push(e),e}function p(t,n){var r=n?s["get"+n]():f.getPosition();if(e.subtract(r).divide(a).length<=1)return new R(t,f,{name:n?u.hyphenate(n):t,point:r})}var g=t.position,v=t.center,m=t.bounds;if(c&&this._parent&&(g||v||m)){if((v||m)&&(s=this.getInternalBounds()),!(l=g&&p("position")||v&&p("center","Center"))&&m)for(var y=["TopLeft","TopRight","BottomLeft","BottomRight","LeftCenter","TopCenter","RightCenter","BottomCenter"],b=0;b<8&&!l;b++)l=p("bounds",y[b]);l=d(l)}return l||(l=this._hitTestChildren(e,t,i)||c&&d(this._hitTestSelf(e,t,i,this.getStrokeScaling()?null:i._shiftless().invert()))||null),l&&l.point&&(l.point=r.transform(l.point)),l},_hitTestSelf:function(e,t){if(t.fill&&this.hasFill()&&this._contains(e))return new R("fill",this)},matches:function(e,t){var n=typeof e;if("object"===n){for(var r in e)if(e.hasOwnProperty(r)&&!this.matches(r,e[r]))return!1;return!0}if("function"===n)return e(this);if("match"===e)return t(this);var i=/^(empty|editable)$/.test(e)?this["is"+u.capitalize(e)]():"type"===e?u.hyphenate(this._class):this[e];if("class"===e){if("function"===typeof t)return this instanceof t;i=this._class}if("function"===typeof t)return!!t(i);if(t){if(t.test)return t.test(i);if(u.isPlainObject(t))return function e(t,n){for(var r in t)if(t.hasOwnProperty(r)){var i=t[r],o=n[r];if(u.isPlainObject(i)&&u.isPlainObject(o)){if(!e(i,o))return!1}else if(!u.equals(i,o))return!1}return!0}(t,i)}return u.equals(i,t)},getItems:function(e){return E._getItems(this,e,this._matrix)},getItem:function(e){return E._getItems(this,e,this._matrix,null,!0)[0]||null},statics:{_getItems:function e(t,n,r,i,o){if(!i){var a="object"===typeof n&&n,s=a&&a.overlapping,l=a&&a.inside,c=(y=s||l)&&w.read([y]);i={items:[],recursive:a&&!1!==a.recursive,inside:!!l,overlapping:!!s,rect:c,path:s&&new U.Rectangle({re
2ctangle:c,insert:!1})},a&&(n=u.filter({},n,{recursive:!0,inside:!0,overlapping:!0}))}var h=t._children,f=i.items;r=(c=i.rect)&&(r||new C);for(var d=0,p=h&&h.length;d<p;d++){var g=h[d],v=r&&r.appended(g._matrix),m=!0;if(c){var y=g.getBounds(v);if(!c.intersects(y))continue;c.contains(y)||i.overlapping&&(y.contains(c)||i.path.intersects(g,v))||(m=!1)}if(m&&g.matches(n)&&(f.push(g),o))break;if(!1!==i.recursive&&e(g,n,v,i,o),o&&f.length>0)break}return f}}},{importJSON:function(e){var t=u.importJSON(e,this);return t!==this?this.addChild(t):t},addChild:function(e){return this.insertChild(s,e)},insertChild:function(e,t){var n=t?this.insertChildren(e,[t]):null;return n&&n[0]},addChildren:function(e){return this.insertChildren(this._children.length,e)},insertChildren:function(e,t){var n=this._children;if(n&&t&&t.length>0){for(var r={},i=(t=u.slice(t)).length-1;i>=0;i--){var o=(c=t[i])&&c._id;!c||r[o]?t.splice(i,1):(c._remove(!1,!0),r[o]=!0)}u.splice(n,t,e,0);for(var a=this._project,s=a._changes,l=(i=0,t.length);i<l;i++){var c,h=(c=t[i])._name;c._parent=this,c._setProject(a,!0),h&&c.setName(h),s&&c._changed(5)}this._changed(11)}else t=null;return t},_insertItem:"#insertChild",_insertAt:function(e,t){var n=e&&e._getOwner(),r=e!==this&&n?this:null;return r&&(r._remove(!1,!0),n._insertItem(e._index+t,r)),r},insertAbove:function(e){return this._insertAt(e,1)},insertBelow:function(e){return this._insertAt(e,0)},sendToBack:function(){var e=this._getOwner();return e?e._insertItem(0,this):null},bringToFront:function(){var e=this._getOwner();return e?e._insertItem(s,this):null},appendTop:"#addChild",appendBottom:function(e){return this.insertChild(0,e)},moveAbove:"#insertAbove",moveBelow:"#insertBelow",addTo:function(e){return e._insertItem(s,this)},copyTo:function(e){return this.clone(!1).addTo(e)},reduce:function(e){var t=this._children;if(t&&1===t.length){var n=t[0].reduce(e);return this._parent?(n.insertAbove(this),this.remove()):n.remove(),n}return this},_removeNamed:function(){var e=this._getOwner();if(e){var t=e._children,n=e._namedChildren,r=this._name,i=n[r],o=i?i.indexOf(this):-1;-1!==o&&(t[r]==this&&delete t[r],i.splice(o,1),i.length?t[r]=i[0]:delete n[r])}},_remove:function(e,t){var n=this._getOwner(),r=this._project,i=this._index;return this._style&&this._style._dispose(),!!n&&(this._name&&this._removeNamed(),null!=i&&(r._activeLayer===this&&(r._activeLayer=this.getNextSibling()||this.getPreviousSibling()),u.splice(n._children,null,i,1)),this._installEvents(!1),e&&r._changes&&this._changed(5),t&&n._changed(11,this),this._parent=null,!0)},remove:function(){return this._remove(!0,!0)},replaceWith:function(e){var t=e&&e.insertBelow(this);return t&&this.remove(),t},removeChildren:function(e,t){if(!this._children)return null;e=e||0,t=u.pick(t,this._children.length);for(var n=u.splice(this._children,null,e,t-e),r=n.length-1;r>=0;r--)n[r]._remove(!0,!1);return n.length>0&&this._changed(11),n},clear:"#removeChildren",reverseChildren:function(){if(this._children){this._children.reverse();for(var e=0,t=this._children.length;e<t;e++)this._children[e]._index=e;this._changed(11)}},isEmpty:function(e){var t=this._children,n=t?t.length:0;if(e){for(var r=0;r<n;r++)if(!t[r].isEmpty(e))return!1;return!0}return!n},isEditable:function(){for(var e=this;e;){if(!e._visible||e._locked)return!1;e=e._parent}return!0},hasFill:function(){return this.getStyle().hasFill()},hasStroke:function(){return this.getStyle().hasStroke()},hasShadow:function(){return this.getStyle().hasShadow()},_getOrder:function(e){function t(e){var t=[];do{t.unshift(e)}while(e=e._parent);return t}for(var n=t(this),r=t(e),i=0,o=Math.min(n.length,r.length);i<o;i++)if(n[i]!=r[i])return n[i]._index<r[i]._index?1:-1;return 0},hasChildren:function(){return this._children&&this._children.length>0},isInserted:function(){return!!this._parent&&this._parent.isInserted()},isAbove:function(e){return-1===this._getOrder(e)},isBelow:function(e){return 1===this._getOrder(e)},isParent:function(e){return this._parent===e},isChild:function(e){return e&&e._parent===this},isDescendant:function(e){for(var t=this;t=t._parent;)if(t===e)return!0;return!1},isAncestor:function(e){return!!e&&e.isDescendant(this)},isSibling:function(e){return this._parent===e._parent},isGroupedWith:function(e){for(var t=this._parent;t;){if(t._parent&&/^(Group|Layer|CompoundPath)$/.test(t._class)&&e.isDescendant(t))return!0;t=t._parent}return!1}},u.each(["rotate","scale","shear","skew"],(function(e){var t="rotate"===e;this[e]=function(){var n=arguments,r=(t?u:y).read(n),i=y.read(n,0,{readNull:!0});return this.transform((new C)[e](r,i||this.getPosition(!0)))}}),{translate:function(){var e=new C;return this.transform(e.translate.apply(e,arguments))},transform:function(e,t,n){var r=this._matrix,i=e&&!e.isIdentity(),o=n&&this._canApplyMatrix||this._applyMatrix&&(i||!r.isIdentity()||t&&this._children);if(!i&&!o)return this;if(i){!e.isInvertible()&&r.isInvertible()&&(r._backup=r.getValues()),r.prepend(e,!0);var a=this._style,s=a.getFillColor(!0),l=a.getStrokeColor(!0);s&&s.transform(e),l&&l.transform(e)}if(o&&(o=this._transformContent(r,t,n))){var c=this._pivot;c&&r._transformPoint(c,c,!0),r.reset(!0),n&&this._canApplyMatrix&&(this._applyMatrix=!0)}var u=this._bounds,h=this._position;(i||o)&&this._changed(25);var f=i&&u&&e.decompose();if(f&&f.skewing.isZero()&&f.rotation%90===0){for(var d in u){var p=u[d];if(p.nonscaling)delete u[d];else if(o||!p.internal){var g=p.rect;e._transformBounds(g,g)}}this._bounds=u;var v=u[this._getBoundsCacheKey(this._boundsOptions||{})];v&&(this._position=this._getPositionFromBounds(v.rect))}else i&&h&&this._pivot&&(this._position=e._transformPoint(h,h));return this},_transformContent:function(e,t,n){var r=this._children;if(r){for(var i=0,o=r.length;i<o;i++)r[i].transform(e,t,n);return!0}},globalToLocal:function(){return this.getGlobalMatrix(!0)._inverseTransform(y.read(arguments))},localToGlobal:function(){return this.getGlobalMatrix(!0)._transformPoint(y.read(arguments))},parentToLocal:function(){return this._matrix._inverseTransform(y.read(arguments))},localToParent:function(){return this._matrix._transformPoint(y.read(arguments))},fitBounds:function(e,t){e=w.read(arguments);
2var n=this.getBounds(),r=n.height/n.width,i=e.height/e.width,o=(t?r>i:r<i)?e.width/n.width:e.height/n.height,a=new w(new y,new x(n.width*o,n.height*o));a.setCenter(e.getCenter()),this.setBounds(a)}}),{_setStyles:function(e,t,n){var r=this._style,i=this._matrix;if(r.hasFill()&&(e.fillStyle=r.getFillColor().toCanvasStyle(e,i)),r.hasStroke()){e.strokeStyle=r.getStrokeColor().toCanvasStyle(e,i),e.lineWidth=r.getStrokeWidth();var o=r.getStrokeJoin(),a=r.getStrokeCap(),s=r.getMiterLimit();if(o&&(e.lineJoin=o),a&&(e.lineCap=a),s&&(e.miterLimit=s),fe.support.nativeDash){var l=r.getDashArray(),c=r.getDashOffset();l&&l.length&&("setLineDash"in e?(e.setLineDash(l),e.lineDashOffset=c):(e.mozDash=l,e.mozDashOffset=c))}}if(r.hasShadow()){var u=t.pixelRatio||1,h=n._shiftless().prepend((new C).scale(u,u)),f=h.transform(new y(r.getShadowBlur(),0)),d=h.transform(this.getShadowOffset());e.shadowColor=r.getShadowColor().toCanvasStyle(e),e.shadowBlur=f.getLength(),e.shadowOffsetX=d.x,e.shadowOffsetY=d.y}},draw:function(e,t,n){this._updateVersion=this._project._updateVersion;if(this._visible&&0!==this._opacity){var r=t.matrices,i=t.viewMatrix,o=this._matrix,a=r[r.length-1].appended(o);if(a.isInvertible()){i=i?i.appended(a):a,r.push(a),t.updateMatrix&&(this._globalMatrix=a);var s,l,c,u=this._blendMode,h=v.clamp(this._opacity,0,1),f="normal"===u,d=ce.nativeModes[u],p=f&&1===h||t.dontStart||t.clip||(d||f&&h<1)&&this._canComposite(),g=t.pixelRatio||1;if(!p){var m=this.getStrokeBounds(i);if(!m.width||!m.height)return void r.pop();c=t.offset,l=t.offset=m.getTopLeft().floor(),s=e,e=le.getContext(m.getSize().ceil().add(1).multiply(g)),1!==g&&e.scale(g,g)}e.save();var y=n?n.appended(o):this._canScaleStroke&&!this.getStrokeScaling(!0)&&i,b=!p&&t.clipItem,x=!y||b;if(p?(e.globalAlpha=h,d&&(e.globalCompositeOperation=u)):x&&e.translate(-l.x,-l.y),x&&(p?o:i).applyToContext(e),b&&t.clipItem.draw(e,t.extend({clip:!0})),y){e.setTransform(g,0,0,g,0,0);var _=t.offset;_&&e.translate(-_.x,-_.y)}this._draw(e,t,i,y),e.restore(),r.pop(),t.clip&&!t.dontFinish&&e.clip(this.getFillRule()),p||(ce.process(u,e,s,h,l.subtract(c).multiply(g)),le.release(e),t.offset=c)}}},_isUpdated:function(e){var t=this._parent;if(t instanceof z)return t._isUpdated(e);var n=this._updateVersion===e;return!n&&t&&t._visible&&t._isUpdated(e)&&(this._updateVersion=e,n=!0),n},_drawSelection:function(e,t,n,r,i){var o=this._selection,a=1&o,s=2&o||a&&this._selectBounds,l=4&o;if(this._drawSelected||(a=!1),(a||s||l)&&this._isUpdated(i)){var c,u=this.getSelectedColor(!0)||(c=this.getLayer())&&c.getSelectedColor(!0),h=t.appended(this.getGlobalMatrix(!0)),f=n/2;if(e.strokeStyle=e.fillStyle=u?u.toCanvasStyle(e):"#009dec",a&&this._drawSelected(e,h,r),l){var d=this.getPosition(!0),p=this._parent,g=p?p.localToGlobal(d):d,v=g.x,m=g.y;e.beginPath(),e.arc(v,m,f,0,2*Math.PI,!0),e.stroke();for(var y=[[0,-1],[1,0],[0,1],[-1,0]],b=f,x=n+1,_=0;_<4;_++){var w=y[_],S=w[0],C=w[1];e.moveTo(v+S*b,m+C*b),e.lineTo(v+S*x,m+C*x),e.stroke()}}if(s){var k=h._transformCorners(this.getInternalBounds());e.beginPath();for(_=0;_<8;_++)e[_?"lineTo":"moveTo"](k[_],k[++_]);e.closePath(),e.stroke();for(_=0;_<8;_++)e.fillRect(k[_]-f,k[++_]-f,n,n)}}},_canComposite:function(){return!1}},u.each(["down","drag","up","move"],(function(e){this["removeOn"+u.capitalize(e)]=function(){var t={};return t[e]=!0,this.removeOn(t)}}),{removeOn:function(e){for(var t in e)if(e[t]){var n="mouse"+t,r=this._project,i=r._removeSets=r._removeSets||{};i[n]=i[n]||{},i[n][this._id]=this}return this}}),{tween:function(e,t,n){n||(n=t,t=e,e=null,n||(n=t,t=null));var r=n&&n.easing,i=n&&n.start,o=null!=n&&("number"===typeof n?n:n.duration),a=new ae(this,e,t,o,r,i);return o&&this.on("frame",(function e(t){a._handleFrame(1e3*t.time),a.running||this.off("frame",e)})),a},tweenTo:function(e,t){return this.tween(null,e,t)},tweenFrom:function(e,t){return this.tween(e,null,t)}}),T=E.extend({_class:"Group",_selectBounds:!1,_selectChildren:!0,_serializeFields:{children:[]},initialize:function(e){this._children=[],this._namedChildren={},this._initialize(e)||this.addChildren(Array.isArray(e)?e:arguments)},_changed:function e(t){e.base.call(this,t),2050&t&&(this._clipItem=s)},_getClipItem:function(){var e=this._clipItem;if(e===s){e=null;for(var t=this._children,n=0,r=t.length;n<r;n++)if(t[n]._clipMask){e=t[n];break}this._clipItem=e}return e},isClipped:function(){return!!this._getClipItem()},setClipped:function(e){var t=this.getFirstChild();t&&t.setClipMask(e)},_getBounds:function e(t,n){var r=this._getClipItem();return r?r._getCachedBounds(r._matrix.prepended(t),u.set({},n,{stroke:!1})):e.base.call(this,t,n)},_hitTestChildren:function e(t,n,r){var i=this._getClipItem();return(!i||i.contains(t))&&e.base.call(this,t,n,r,i)},_draw:function(e,t){var n=t.clip,r=!n&&this._getClipItem();t=t.extend({clipItem:r,clip:!1}),n?(e.beginPath(),t.dontStart=t.dontFinish=!0):r&&r.draw(e,t.extend({clip:!0}));for(var i=this._children,o=0,a=i.length;o<a;o++){var s=i[o];s!==r&&s.draw(e,t)}}}),A=T.extend({_class:"Layer",initialize:function(){T.apply(this,arguments)},_getOwner:function(){return this._parent||null!=this._index&&this._project},isInserted:function e(){return this._parent?e.base.call(this):null!=this._index},activate:function(){this._project._activeLayer=this},_hitTestSelf:function(){}}),P=E.extend({_class:"Shape",_applyMatrix:!1,_canApplyMatrix:!1,_canScaleStroke:!0,_serializeFields:{type:null,size:null,radius:null},initialize:function(e,t){this._initialize(e,t)},_equals:function(e){return this._type===e._type&&this._size.equals(e._size)&&u.equals(this._radius,e._radius)},copyContent:function(e){this.setType(e._type),this.setSize(e._size),this.setRadius(e._radius)},getType:function(){return this._type},setType:function(e){this._type=e}
2,getShape:"#getType",setShape:"#setType",getSize:function(){var e=this._size;return new _(e.width,e.height,this,"setSize")},setSize:function(){var e=x.read(arguments);if(this._size){if(!this._size.equals(e)){var t=this._type,n=e.width,r=e.height;"rectangle"===t?this._radius.set(x.min(this._radius,e.divide(2).abs())):"circle"===t?(n=r=(n+r)/2,this._radius=n/2):"ellipse"===t&&this._radius._set(n/2,r/2),this._size._set(n,r),this._changed(9)}}else this._size=e.clone()},getRadius:function(){var e=this._radius;return"circle"===this._type?e:new _(e.width,e.height,this,"setRadius")},setRadius:function(e){var t=this._type;if("circle"===t){if(e===this._radius)return;var n=2*e;this._radius=e,this._size._set(n,n)}else if(e=x.read(arguments),this._radius){if(this._radius.equals(e))return;if(this._radius.set(e),"rectangle"===t){n=x.max(this._size,e.multiply(2));this._size.set(n)}else"ellipse"===t&&this._size._set(2*e.width,2*e.height)}else this._radius=e.clone();this._changed(9)},isEmpty:function(){return!1},toPath:function(e){var t=new(U[u.capitalize(this._type)])({center:new y,size:this._size,radius:this._radius,insert:!1});return t.copyAttributes(this),fe.settings.applyMatrix&&t.setApplyMatrix(!0),(e===s||e)&&t.insertAbove(this),t},toShape:"#clone",_asPathItem:function(){return this.toPath(!1)},_draw:function(e,t,n,r){var i=this._style,o=i.hasFill(),a=i.hasStroke(),s=t.dontFinish||t.clip,l=!r;if(o||a||s){var c=this._type,u=this._radius,h="circle"===c;if(t.dontStart||e.beginPath(),l&&h)e.arc(0,0,u,0,2*Math.PI,!0);else{var f=h?u:u.width,d=h?u:u.height,p=this._size,g=p.width,v=p.height;if(l&&"rectangle"===c&&0===f&&0===d)e.rect(-g/2,-v/2,g,v);else{var m=g/2,y=v/2,b=.44771525016920644,x=f*b,_=d*b,w=[-m,-y+d,-m,-y+_,-m+x,-y,-m+f,-y,m-f,-y,m-x,-y,m,-y+_,m,-y+d,m,y-d,m,y-_,m-x,y,m-f,y,-m+f,y,-m+x,y,-m,y-_,-m,y-d];r&&r.transform(w,w,32),e.moveTo(w[0],w[1]),e.bezierCurveTo(w[2],w[3],w[4],w[5],w[6],w[7]),m!==f&&e.lineTo(w[8],w[9]),e.bezierCurveTo(w[10],w[11],w[12],w[13],w[14],w[15]),y!==d&&e.lineTo(w[16],w[17]),e.bezierCurveTo(w[18],w[19],w[20],w[21],w[22],w[23]),m!==f&&e.lineTo(w[24],w[25]),e.bezierCurveTo(w[26],w[27],w[28],w[29],w[30],w[31])}}e.closePath()}s||!o&&!a||(this._setStyles(e,t,n),o&&(e.fill(i.getFillRule()),e.shadowColor="rgba(0,0,0,0)"),a&&e.stroke())},_canComposite:function(){return!(this.hasFill()&&this.hasStroke())},_getBounds:function(e,t){var n=new w(this._size).setCenter(0,0),r=this._style,i=t.stroke&&r.hasStroke()&&r.getStrokeWidth();return e&&(n=e._transformBounds(n)),i?n.expand(U._getStrokePadding(i,this._getStrokeMatrix(e,t))):n}},new function(){function e(e,t,n){var r=e._radius;if(!r.isZero())for(var i=e._size.divide(2),o=1;o<=4;o++){var a=new y(o>1&&o<4?-1:1,o>2?-1:1),s=a.multiply(i),l=s.subtract(a.multiply(r));if(new w(n?s.add(a.multiply(n)):s,l).contains(t))return{point:l,quadrant:o}}}function t(e,t,n,r){var i=e.divide(t);return(!r||i.isInQuadrant(r))&&i.subtract(i.normalize()).multiply(t).divide(n).length<=1}return{_contains:function t(n){if("rectangle"===this._type){var r=e(this,n);return r?n.subtract(r.point).divide(this._radius).getLength()<=1:t.base.call(this,n)}return n.divide(this.size).getLength()<=.5},_hitTestSelf:function n(r,i,o,a){var s=!1,l=this._style,c=i.stroke&&l.hasStroke(),u=i.fill&&l.hasFill();if(c||u){var h=this._type,f=this._radius,d=c?l.getStrokeWidth()/2:0,p=i._tolerancePadding.add(U._getStrokePadding(d,!l.getStrokeScaling()&&a));if("rectangle"===h){var g=p.multiply(2),v=e(this,r,g);if(v)s=t(r.subtract(v.point),f,p,v.quadrant);else{var m=new w(this._size).setCenter(0,0),y=m.expand(g),b=m.expand(g.negate());s=y._containsPoint(r)&&!b._containsPoint(r)}}else s=t(r,f,p)}return s?new R(c?"stroke":"fill",this):n.base.apply(this,arguments)}}},{statics:new function(){function e(e,t,n,r,i){var o=u.create(P.prototype);return o._type=e,o._size=n,o._radius=r,o._initialize(u.getNamed(i),t),o}return{Circle:function(){var t=arguments,n=y.readNamed(t,"center"),r=u.readNamed(t,"radius");return e("circle",n,new x(2*r),r,t)},Rectangle:function(){var t=arguments,n=w.readNamed(t,"rectangle"),r=x.min(x.readNamed(t,"radius"),n.getSize(!0).divide(2));return e("rectangle",n.getCenter(!0),n.getSize(!0),r,t)},Ellipse:function(){var t=arguments,n=P._readEllipse(t),r=n.radius;return e("ellipse",n.center,r.multiply(2),r,t)},_readEllipse:function(e){var t,n;if(u.hasNamed(e,"radius"))t=y.readNamed(e,"center"),n=x.readNamed(e,"radius");else{var r=w.readNamed(e,"rectangle");t=r.getCenter(!0),n=r.getSize(!0).divide(2)}return{center:t,radius:n}}}}}),j=E.extend({_class:"Raster",_applyMatrix:!1,_canApplyMatrix:!1,_boundsOptions:{stroke:!1,handle:!1},_serializeFields:{crossOrigin:null,source:null},_prioritize:["crossOrigin"],_smoothing:"low",beans:!0,initialize:function(e,t){if(!this._initialize(e,t!==s&&y.read(arguments))){var n,r=typeof e,i="string"===r?c.getElementById(e):"object"===r?e:null;if(i&&i!==E.NO_INSERT)if(i.getContext||null!=i.naturalHeight)n=i;else if(i){var o=x.read(arguments);o.isZero()||(n=le.getCanvas(o))}n?this.setImage(n):this.setSource(e)}this._size||(this._size=new x,this._loaded=!1)}
2,_equals:function(e){return this.getSource()===e.getSource()},copyContent:function(e){var t=e._image,n=e._canvas;if(t)this._setImage(t);else if(n){var r=le.getCanvas(e._size);r.getContext("2d").drawImage(n,0,0),this._setImage(r)}this._crossOrigin=e._crossOrigin},getSize:function(){var e=this._size;return new _(e?e.width:0,e?e.height:0,this,"setSize")},setSize:function(e,t){var n=x.read(arguments);if(n.equals(this._size))t&&this.clear();else if(n.width>0&&n.height>0){var r=!t&&this.getElement();this._setImage(le.getCanvas(n)),r&&this.getContext(!0).drawImage(r,0,0,n.width,n.height)}else this._canvas&&le.release(this._canvas),this._size=n.clone()},getWidth:function(){return this._size?this._size.width:0},setWidth:function(e){this.setSize(e,this.getHeight())},getHeight:function(){return this._size?this._size.height:0},setHeight:function(e){this.setSize(this.getWidth(),e)},getLoaded:function(){return this._loaded},isEmpty:function(){var e=this._size;return!e||0===e.width&&0===e.height},getResolution:function(){var e=this._matrix,t=new y(0,0).transform(e),n=new y(1,0).transform(e).subtract(t),r=new y(0,1).transform(e).subtract(t);return new x(72/n.getLength(),72/r.getLength())},getPpi:"#getResolution",getImage:function(){return this._image},setImage:function(e){var t=this;function n(e){var n=t.getView(),r=e&&e.type||"load";n&&t.responds(r)&&(fe=n._scope,t.emit(r,new ee(e)))}this._setImage(e),this._loaded?setTimeout(n,0):e&&Z.add(e,{load:function(r){t._setImage(e),n(r)},error:n})},_setImage:function(e){this._canvas&&le.release(this._canvas),e&&e.getContext?(this._image=null,this._canvas=e,this._loaded=!0):(this._image=e,this._canvas=null,this._loaded=!!(e&&e.src&&e.complete)),this._size=new x(e?e.naturalWidth||e.width:0,e?e.naturalHeight||e.height:0),this._context=null,this._changed(1033)},getCanvas:function(){if(!this._canvas){var e=le.getContext(this._size);try{this._image&&e.drawImage(this._image,0,0),this._canvas=e.canvas}catch(t){le.release(e)}}return this._canvas},setCanvas:"#setImage",getContext:function(e){return this._context||(this._context=this.getCanvas().getContext("2d")),e&&(this._image=null,this._changed(1025)),this._context},setContext:function(e){this._context=e},getSource:function(){var e=this._image;return e&&e.src||this.toDataURL()},setSource:function(e){var t=new a.Image,n=this._crossOrigin;n&&(t.crossOrigin=n),e&&(t.src=e),this.setImage(t)},getCrossOrigin:function(){var e=this._image;return e&&e.crossOrigin||this._crossOrigin||""},setCrossOrigin:function(e){this._crossOrigin=e;var t=this._image;t&&(t.crossOrigin=e)},getSmoothing:function(){return this._smoothing},setSmoothing:function(e){this._smoothing="string"===typeof e?e:e?"low":"off",this._changed(257)},getElement:function(){return this._canvas||this._loaded&&this._image}},{beans:!1,getSubCanvas:function(){var e=w.read(arguments),t=le.getContext(e.getSize());return t.drawImage(this.getCanvas(),e.x,e.y,e.width,e.height,0,0,e.width,e.height),t.canvas},getSubRaster:function(){var e=w.read(arguments),t=new j(E.NO_INSERT);return t._setImage(this.getSubCanvas(e)),t.translate(e.getCenter().subtract(this.getSize().divide(2))),t._matrix.prepend(this._matrix),t.insertAbove(this),t},toDataURL:function(){var e=this._image,t=e&&e.src;if(/^data:/.test(t))return t;var n=this.getCanvas();return n?n.toDataURL.apply(n,arguments):null},drawImage:function(e){var t=y.read(arguments,1);this.getContext(!0).drawImage(e,t.x,t.y)},getAverageColor:function(e){var t,n;if(e?e instanceof B?(n=e,t=e.getBounds()):"object"===typeof e&&("width"in e?t=new w(e):"x"in e&&(t=new w(e.x-.5,e.y-.5,1,1))):t=this.getBounds(),!t)return null;var r=Math.min(t.width,32),i=Math.min(t.height,32),o=j._sampleContext;o?o.clearRect(0,0,33,33):o=j._sampleContext=le.getContext(new x(32)),o.save();var a=(new C).scale(r/t.width,i/t.height).translate(-t.x,-t.y);a.applyToContext(o),n&&n.draw(o,new u({clip:!0,matrices:[a]})),this._matrix.applyToContext(o);var s=this.getElement(),l=this._size;s&&o.drawImage(s,-l.width/2,-l.height/2),o.restore();for(var c=o.getImageData(.5,.5,Math.ceil(r),Math.ceil(i)).data,h=[0,0,0],f=0,d=0,p=c.length;d<p;d+=4){var g=c[d+3];f+=g,g/=255,h[0]+=c[d]*g,h[1]+=c[d+1]*g,h[2]+=c[d+2]*g}for(d=0;d<3;d++)h[d]/=f;return f?q.read(h):null},getPixel:function(){var e=y.read(arguments),t=this.getContext().getImageData(e.x,e.y,1,1).data;return new q("rgb",[t[0]/255,t[1]/255,t[2]/255],t[3]/255)},setPixel:function(){var e=arguments,t=y.read(e),n=q.read(e),r=n._convert("rgb"),i=n._alpha,o=this.getContext(!0),a=o.createImageData(1,1),s=a.data;
2s[0]=255*r[0],s[1]=255*r[1],s[2]=255*r[2],s[3]=null!=i?255*i:255,o.putImageData(a,t.x,t.y)},clear:function(){var e=this._size;this.getContext(!0).clearRect(0,0,e.width+1,e.height+1)},createImageData:function(){var e=x.read(arguments);return this.getContext().createImageData(e.width,e.height)},getImageData:function(){var e=w.read(arguments);return e.isEmpty()&&(e=new w(this._size)),this.getContext().getImageData(e.x,e.y,e.width,e.height)},putImageData:function(e){var t=y.read(arguments,1);this.getContext(!0).putImageData(e,t.x,t.y)},setImageData:function(e){this.setSize(e),this.getContext(!0).putImageData(e,0,0)},_getBounds:function(e,t){var n=new w(this._size).setCenter(0,0);return e?e._transformBounds(n):n},_hitTestSelf:function(e){if(this._contains(e)){var t=this;return new R("pixel",t,{offset:e.add(t._size.divide(2)).round(),color:{get:function(){return t.getPixel(this.offset)}}})}},_draw:function(e,t,n){var r=this.getElement();if(r&&r.width>0&&r.height>0){e.globalAlpha=v.clamp(this._opacity,0,1),this._setStyles(e,t,n);var i=this._smoothing,o="off"===i;K.setPrefixed(e,o?"imageSmoothingEnabled":"imageSmoothingQuality",!o&&i),e.drawImage(r,-this._size.width/2,-this._size.height/2)}},_canComposite:function(){return!0}}),L=E.extend({_class:"SymbolItem",_applyMatrix:!1,_canApplyMatrix:!1,_boundsOptions:{stroke:!0},_serializeFields:{symbol:null},initialize:function(e,t){this._initialize(e,t!==s&&y.read(arguments,1))||this.setDefinition(e instanceof M?e:new M(e))},_equals:function(e){return this._definition===e._definition},copyContent:function(e){this.setDefinition(e._definition)},getDefinition:function(){return this._definition},setDefinition:function(e){this._definition=e,this._changed(9)},getSymbol:"#getDefinition",setSymbol:"#setDefinition",isEmpty:function(){return this._definition._item.isEmpty()},_getBounds:function(e,t){var n=this._definition._item;return n._getCachedBounds(n._matrix.prepended(e),t)},_hitTestSelf:function(e,t,n){var r=t.extend({all:!1}),i=this._definition._item._hitTest(e,r,n);return i&&(i.item=this),i},_draw:function(e,t){this._definition._item.draw(e,t)}}),M=u.extend({_class:"SymbolDefinition",initialize:function(e,t){this._id=m.get(),this.project=fe.project,e&&this.setItem(e,t)},_serialize:function(e,t){return t.add(this,(function(){return u.serialize([this._class,this._item],e,!1,t)}))},_changed:function(e){8&e&&E._clearBoundsCache(this),1&e&&this.project._changed(e)},getItem:function(){return this._item},setItem:function(e,t){e._symbol&&(e=e.clone()),this._item&&(this._item._symbol=null),this._item=e,e.remove(),e.setSelected(!1),t||e.setPosition(new y),e._symbol=this,this._changed(9)},getDefinition:"#getItem",setDefinition:"#setItem",place:function(e){return new L(this,e)},clone:function(){return new M(this._item.clone(!1))},equals:function(e){return e===this||e&&this._item.equals(e._item)||!1}}),R=u.extend({_class:"HitResult",initialize:function(e,t,n){this.type=e,this.item=t,n&&this.inject(n)},statics:{getOptions:function(e){var t=e&&u.read(e);return new u({type:null,tolerance:fe.settings.hitTolerance,fill:!t,stroke:!t,segments:!t,handles:!1,ends:!1,position:!1,center:!1,bounds:!1,guides:!1,selected:!1},t)}}}),D=u.extend({_class:"Segment",beans:!0,_selection:0,initialize:function(e,t,n,r,i,o){var a,l,c,u,h=arguments.length;h>0&&(null==e||"object"===typeof e?1===h&&e&&"point"in e?(a=e.point,l=e.handleIn,c=e.handleOut,u=e.selection):(a=e,l=t,c=n,u=r):(a=[e,t],l=n!==s?[n,r]:null,c=i!==s?[i,o]:null)),new I(a,this,"_point"),new I(l,this,"_handleIn"),new I(c,this,"_handleOut"),u&&this.setSelection(u)},_serialize:function(e,t){var n=this._point,r=this._selection,i=r||this.hasHandles()?[n,this._handleIn,this._handleOut]:n;return r&&i.push(r),u.serialize(i,e,!0,t)},_changed:function(e){var t=this._path;if(t){var n,r=t._curves,i=this._index;r&&(e&&e!==this._point&&e!==this._handleIn||!(n=i>0?r[i-1]:t._closed?r[r.length-1]:null)||n._changed(),e&&e!==this._point&&e!==this._handleOut||!(n=r[i])||n._changed()),t._changed(41)}},getPoint:function(){return this._point},setPoint:function(){this._point.set(y.read(arguments))},getHandleIn:function(){return this._handleIn},setHandleIn:function(){this._handleIn.set(y.read(arguments))},getHandleOut:function(){return this._handleOut},setHandleOut:function(){this._handleOut.set(y.read(arguments))},hasHandles:function(){return!this._handleIn.isZero()||!this._handleOut.isZero()},isSmooth:function(){var e=this._handleIn,t=this._handleOut;return!e.isZero()&&!t.isZero()&&e.isCollinear(t)},clearHandles:function(){this._handleIn._set(0,0),this._handleOut._set(0,0)},getSelection:function(){return this._selection},setSelection:function(e){var t=this._selection,n=this._path;this._selection=e=e||0,n&&e!==t&&(n._updateSelection(this,t,e),n._changed(257))},_changeSelection:function(e,t){var n=this._selection;this.setSelection(t?n|e:n&~e)},isSelected:function(){return!!(7&this._selection)},setSelected:function(e){this._changeSelection(7,e)},getIndex:function(){return this._index!==s?this._index:null},getPath:function(){return this._path||null},getCurve:function(){var e=this._path,t=this._index;return e?(t>0&&!e._closed&&t===e._segments.length-1&&t--,e.getCurves()[t]||null):null}
2,getLocation:function(){var e=this.getCurve();return e?new F(e,this===e._segment1?0:1):null},getNext:function(){var e=this._path&&this._path._segments;return e&&(e[this._index+1]||this._path._closed&&e[0])||null},smooth:function(e,t,n){var r=e||{},i=r.type,o=r.factor,a=this.getPrevious(),l=this.getNext(),c=(a||this)._point,u=this._point,h=(l||this)._point,f=c.getDistance(u),d=u.getDistance(h);if(i&&"catmull-rom"!==i){if("geometric"!==i)throw new Error("Smoothing method '"+i+"' not supported.");if(a&&l){var p=c.subtract(h),g=o===s?.4:o,v=g*f/(f+d);t||this.setHandleIn(p.multiply(v)),n||this.setHandleOut(p.multiply(v-g))}}else{var m=o===s?.5:o,b=Math.pow(f,m),x=b*b,_=Math.pow(d,m),w=_*_;if(!t&&a){var S=2*w+3*_*b+x,C=3*_*(_+b);this.setHandleIn(0!==C?new y((w*c._x+S*u._x-x*h._x)/C-u._x,(w*c._y+S*u._y-x*h._y)/C-u._y):new y)}if(!n&&l){S=2*x+3*b*_+w,C=3*b*(b+_);this.setHandleOut(0!==C?new y((x*h._x+S*u._x-w*c._x)/C-u._x,(x*h._y+S*u._y-w*c._y)/C-u._y):new y)}}},getPrevious:function(){var e=this._path&&this._path._segments;return e&&(e[this._index-1]||this._path._closed&&e[e.length-1])||null},isFirst:function(){return!this._index},isLast:function(){var e=this._path;return e&&this._index===e._segments.length-1||!1},reverse:function(){var e=this._handleIn,t=this._handleOut,n=e.clone();e.set(t),t.set(n)},reversed:function(){return new D(this._point,this._handleOut,this._handleIn)},remove:function(){return!!this._path&&!!this._path.removeSegment(this._index)},clone:function(){return new D(this._point,this._handleIn,this._handleOut)},equals:function(e){return e===this||e&&this._class===e._class&&this._point.equals(e._point)&&this._handleIn.equals(e._handleIn)&&this._handleOut.equals(e._handleOut)||!1},toString:function(){var e=["point: "+this._point];return this._handleIn.isZero()||e.push("handleIn: "+this._handleIn),this._handleOut.isZero()||e.push("handleOut: "+this._handleOut),"{ "+e.join(", ")+" }"},transform:function(e){this._transformCoordinates(e,new Array(6),!0),this._changed()},interpolate:function(e,t,n){var r=1-n,i=n,o=e._point,a=t._point,s=e._handleIn,l=t._handleIn,c=t._handleOut,u=e._handleOut;this._point._set(r*o._x+i*a._x,r*o._y+i*a._y,!0),this._handleIn._set(r*s._x+i*l._x,r*s._y+i*l._y,!0),this._handleOut._set(r*u._x+i*c._x,r*u._y+i*c._y,!0),this._changed()},_transformCoordinates:function(e,t,n){var r=this._point,i=n&&this._handleIn.isZero()?null:this._handleIn,o=n&&this._handleOut.isZero()?null:this._handleOut,a=r._x,s=r._y,l=2;return t[0]=a,t[1]=s,i&&(t[l++]=i._x+a,t[l++]=i._y+s),o&&(t[l++]=o._x+a,t[l++]=o._y+s),e&&(e._transformCoordinates(t,t,l/2),a=t[0],s=t[1],n?(r._x=a,r._y=s,l=2,i&&(i._x=t[l++]-a,i._y=t[l++]-s),o&&(o._x=t[l++]-a,o._y=t[l++]-s)):(i||(t[l++]=a,t[l++]=s),o||(t[l++]=a,t[l++]=s))),t}}),I=y.extend({initialize:function(e,t,n){var r,i,o;if(e)if((r=e[0])!==s)i=e[1];else{var a=e;(r=a.x)===s&&(r=(a=y.read(arguments)).x),i=a.y,o=a.selected}else r=i=0;this._x=r,this._y=i,this._owner=t,t[n]=this,o&&this.setSelected(!0)},_set:function(e,t){return this._x=e,this._y=t,this._owner._changed(this),this},getX:function(){return this._x},setX:function(e){this._x=e,this._owner._changed(this)},getY:function(){return this._y},setY:function(e){this._y=e,this._owner._changed(this)},isZero:function(){var e=v.isZero;return e(this._x)&&e(this._y)},isSelected:function(){return!!(this._owner._selection&this._getSelection())},setSelected:function(e){this._owner._changeSelection(this._getSelection(),e)},_getSelection:function(){var e=this._owner;return this===e._point?1:this===e._handleIn?2:this===e._handleOut?4:0}}),N=u.extend({_class:"Curve",beans:!0,initialize:function(e,t,n,r,i,o,a,s){var l,c,u,h,f,d,p=arguments.length;3===p?(this._path=e,l=t,c=n):p?1===p?"segment1"in e?(l=new D(e.segment1),c=new D(e.segment2)):"point1"in e?(u=e.point1,f=e.handle1,d=e.handle2,h=e.point2):Array.isArray(e)&&(u=[e[0],e[1]],h=[e[6],e[7]],f=[e[2]-e[0],e[3]-e[1]],d=[e[4]-e[6],e[5]-e[7]]):2===p?(l=new D(e),c=new D(t)):4===p?(u=e,f=t,d=n,h=r):8===p&&(u=[e,t],h=[a,s],f=[n-e,r-t],d=[i-a,o-s]):(l=new D,c=new D),this._segment1=l||new D(u,null,f),this._segment2=c||new D(h,d,null)},_serialize:function(e,t){return u.serialize(this.hasHandles()?[this.getPoint1(),this.getHandle1(),this.getHandle2(),this.getPoint2()]:[this.getPoint1(),this.getPoint2()],e,!0,t)},_changed:function(){this._length=this._bounds=s},clone:function(){return new N(this._segment1,this._segment2)},toString:function(){var e=["point1: "+this._segment1._point];return this._segment1._handleOut.isZero()||e.push("handle1: "+this._segment1._handleOut),this._segment2._handleIn.isZero()||e.push("handle2: "+this._segment2._handleIn),e.push("point2: "+this._segment2._point),"{ "+e.join(", ")+" }"},classify:function(){return N.classify(this.getValues())},remove:function(){var e=!1;if(this._path){var t=this._segment2,n=t._handleOut;(e=t.remove())&&this._segment1._handleOut.set(n)}return e},getPoint1:function(){return this._segment1._point},setPoint1:function(){this._segment1._point.set(y.read(arguments))},getPoint2:function(){return this._segment2._point},setPoint2:function(){this._segment2._point.set(y.read(arguments))},getHandle1:function(){return this._segment1._handleOut},setHandle1:function(){this._segment1._handleOut.set(y.read(arguments))},getHandle2:function(){return this._segment2._handleIn},setHandle2:function(){this._segment2._handleIn.set(y.read(arguments))},getSegment1:function(){return this._segment1},getSegment2:function(){return this._segment2},getPath:function(){return this._path},getIndex:function(){return this._segment1._index},getNext:function(){var e=this._path&&this._path._curves;return e&&(e[this._segment1._index+1]||this._path._closed&&e[0])||null},getPrevious:function(){var e=this._path&&this._path._curves;return e&&(e[this._segment1._index-1]||this._path._closed&&e[e.length-1])||null},isFirst:function(){return!this._segment1._index},isLast:function(){var e=this._path;return e&&this._segment1._index===e._curves.length-1||!1},isSelected:function(){return this.getPoint1().isSelected()&&this.getHandle1().isSelected()&&this.getHandle2().isSelected()&&this.getPoint2().isSelected()},setSelected:function(e){this.getPoint1().setSelected(e),this.getHandle1().setSelected(e),this.getHandle2().setSelected(e),this.getPoint2().setSelected(e)},getValues:function(e){return N.getValues(this._segment1,this._segment2,e)},getPoints:function(){for(var e=this.getValues(),t=[],n=0;n<8;n+=2)t.push(new y(e[n],e[n+1]));return t}},{getLength:function(){return null==this._length&&(this._length=N.getLength(this.getValues(),0,1)),this._length},getArea:function(){return N.getArea(this.getValues())},getLine:function(){return new k(this._segment1._point,this._segment2._point)},getPart:function(e,t){return new N(N.getPart(this.getValues(),e,t))},getPartLength:function(e,t){return N.getLength(this.getValues(),e,t)},divideAt:function(e){return this.divideAtTime(e&&e.curve===this?e.time:this.getTimeAt(e))},divideAtTime:function(e,t){var n=null;if(e>=1e-8&&e<=.99999999){var r=N.subdivide(this.getValues(),e),i=r[0],o=r[1],a=t||this.hasHandles(),s=this._segment1,l=this._segment2,c=this._path;a&&(s._handleOut._set(i[2]-i[0],i[3]-i[1]),l._handleIn._set(o[4]-o[
26],o[5]-o[7]));var u=i[6],h=i[7],f=new D(new y(u,h),a&&new y(i[4]-u,i[5]-h),a&&new y(o[2]-u,o[3]-h));c?(c.insert(s._index+1,f),n=this.getNext()):(this._segment2=f,this._changed(),n=new N(f,l))}return n},splitAt:function(e){var t=this._path;return t?t.splitAt(e):null},splitAtTime:function(e){return this.splitAt(this.getLocationAtTime(e))},divide:function(e,t){return this.divideAtTime(e===s?.5:t?e:this.getTimeAt(e))},split:function(e,t){return this.splitAtTime(e===s?.5:t?e:this.getTimeAt(e))},reversed:function(){return new N(this._segment2.reversed(),this._segment1.reversed())},clearHandles:function(){this._segment1._handleOut._set(0,0),this._segment2._handleIn._set(0,0)},statics:{getValues:function(e,t,n,r){var i=e._point,o=e._handleOut,a=t._handleIn,s=t._point,l=i.x,c=i.y,u=s.x,h=s.y,f=r?[l,c,l,c,u,h,u,h]:[l,c,l+o._x,c+o._y,u+a._x,h+a._y,u,h];return n&&n._transformCoordinates(f,f,4),f},subdivide:function(e,t){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],l=e[5],c=e[6],u=e[7];t===s&&(t=.5);var h=1-t,f=h*n+t*i,d=h*r+t*o,p=h*i+t*a,g=h*o+t*l,v=h*a+t*c,m=h*l+t*u,y=h*f+t*p,b=h*d+t*g,x=h*p+t*v,_=h*g+t*m,w=h*y+t*x,S=h*b+t*_;return[[n,r,f,d,y,b,w,S],[w,S,x,_,v,m,c,u]]},getMonoCurves:function(e,t){var n=[],r=t?0:1,i=e[r+0],o=e[r+2],a=e[r+4],s=e[r+6];if(i>=o===o>=a&&o>=a===a>=s||N.isStraight(e))n.push(e);else{var l=3*(o-a)-i+s,c=2*(i+a)-4*o,u=o-i,h=[],f=v.solveQuadratic(l,c,u,h,1e-8,.99999999);if(f){h.sort();var d=h[0],p=N.subdivide(e,d);n.push(p[0]),f>1&&(d=(h[1]-d)/(1-d),p=N.subdivide(p[1],d),n.push(p[0])),n.push(p[1])}else n.push(e)}return n},solveCubic:function(e,t,n,r,i,o){var a=e[t],s=e[t+2],l=e[t+4],c=e[t+6],u=0;if(!(a<n&&c<n&&s<n&&l<n||a>n&&c>n&&s>n&&l>n)){var h=3*(s-a),f=3*(l-s)-h,d=c-a-h-f;u=v.solveCubic(d,f,h,a-n,r,i,o)}return u},getTimeOf:function(e,t){var n=new y(e[0],e[1]),r=new y(e[6],e[7]),i=1e-7;if(null===(t.isClose(n,1e-12)?0:t.isClose(r,1e-12)?1:null))for(var o=[t.x,t.y],a=[],s=0;s<2;s++)for(var l=N.solveCubic(e,s,o[s],a,0,1),c=0;c<l;c++){var u=a[c];if(t.isClose(N.getPoint(e,u),i))return u}return t.isClose(n,i)?0:t.isClose(r,i)?1:null},getNearestTime:function(e,t){if(N.isStraight(e)){var n=e[0],r=e[1],i=e[6]-n,o=e[7]-r,a=i*i+o*o;if(0===a)return 0;var s=((t.x-n)*i+(t.y-r)*o)/a;return s<1e-12?0:s>.999999999999?1:N.getTimeOf(e,new y(n+s*i,r+s*o))}var l=1/0,c=0;function u(n){if(n>=0&&n<=1){var r=t.getDistance(N.getPoint(e,n),!0);if(r<l)return l=r,c=n,!0}}for(var h=0;h<=100;h++)u(h/100);for(var f=.005;f>1e-8;)u(c-f)||u(c+f)||(f/=2);return c},getPart:function(e,t,n){var r=t>n;if(r){var i=t;t=n,n=i}return t>0&&(e=N.subdivide(e,t)[1]),n<1&&(e=N.subdivide(e,(n-t)/(1-t))[0]),r?[e[6],e[7],e[4],e[5],e[2],e[3],e[0],e[1]]:e},isFlatEnough:function(e,t){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],l=e[6],c=e[7],u=3*i-2*n-l,h=3*o-2*r-c,f=3*a-2*l-n,d=3*s-2*c-r;return Math.max(u*u,f*f)+Math.max(h*h,d*d)<=16*t*t},getArea:function(e){var t=e[0],n=e[1],r=e[2],i=e[3],o=e[4],a=e[5],s=e[6],l=e[7];return 3*((l-n)*(r+o)-(s-t)*(i+a)+i*(t-o)-r*(n-a)+l*(o+t/3)-s*(a+n/3))/20},getBounds:function(e){for(var t=e.slice(0,2),n=t.slice(),r=[0,0],i=0;i<2;i++)N._addBounds(e[i],e[i+2],e[i+4],e[i+6],i,0,t,n,r);return new w(t[0],t[1],n[0]-t[0],n[1]-t[1])},_addBounds:function(e,t,n,r,i,o,a,s,l){function c(e,t){var n=e-t,r=e+t;n<a[i]&&(a[i]=n),r>s[i]&&(s[i]=r)}o/=2;var u=a[i]+o,h=s[i]-o;if(e<u||t<u||n<u||r<u||e>h||t>h||n>h||r>h)if(t<e!=t<r&&n<e!=n<r)c(e,0),c(r,0);else{var f=3*(t-n)-e+r,d=2*(e+n)-4*t,p=t-e,g=v.solveQuadratic(f,d,p,l);c(r,0);for(var m=0;m<g;m++){var y=l[m],b=1-y;1e-8<=y&&y<=.99999999&&c(b*b*b*e+3*b*b*y*t+3*b*y*y*n+y*y*y*r,o)}}}}},u.each(["getBounds","getStrokeBounds","getHandleBounds"],(function(e){this[e]=function(){this._bounds||(this._bounds={});var t=this._bounds[e];return t||(t=this._bounds[e]=U[e]([this._segment1,this._segment2],!1,this._path)),t.clone()}}),{}),u.each({isStraight:function(e,t,n,r){if(t.isZero()&&n.isZero())return!0;var i=r.subtract(e);if(i.isZero())return!1;if(i.isCollinear(t)&&i.isCollinear(n)){var o=new k(e,r);if(o.getDistance(e.add(t))<1e-7&&o.getDistance(r.add(n))<1e-7){var a=i.dot(i),s=i.dot(t)/a,l=i.dot(n)/a;return s>=0&&s<=1&&l<=0&&l>=-1}}return!1},isLinear:function(e,t,n,r){var i=r.subtract(e).divide(3);return t.equals(i)&&n.negate().equals(i)}},(function(e,t){this[t]=function(t){var n=this._segment1,r=this._segment2;return e(n._point,n._handleOut,r._handleIn,r._point,t)},this.statics[t]=function(t,n){var r=t[0],i=t[1],o=t[6],a=t[7];return e(new y(r,i),new y(t[2]-r,t[3]-i),new y(t[4]-o,t[5]-a),new y(o,a),n)}}),{statics:{},hasHandles:function(){return!this._segment1._handleOut.isZero()||!this._segment2._handleIn.isZero()},hasLength:function(e){return(!this.getPoint1().equals(this.getPoint2())||this.hasHandles())&&this.getLength()>(e||0)},isCollinear:function(e){return e&&this.isStraight()&&e.isStraight()&&this.getLine().isCollinear(e.getLine())},isHorizontal:function(){return this.isStraight()&&Math.abs(this.getTangentAtTime(.5).y)<1e-8},isVertical:function(){return this.isStraight()&&Math.abs(this.getTangentAtTime(.5).x)<1e-8}}),{beans:!1,getLocationAt:function(e,t){return this.getLocationAtTime(t?e:this.getTimeAt(e))},getLocationAtTime:function(e){return null!=e&&e>=0&&e<=1?new F(this,e):null},getTimeAt:function(e,t){return N.getTimeAt(this.getValues(),e,t)},getParameterAt:"#getTimeAt",getTimesWithTangent:function(){var e=y.read(arguments);return e.isZero()?[]:N.getTimesWithTangent(this.getValues(),e)},getOffsetAtTime:function(e){return this.getPartLength(0,e)},getLocationOf:function(){return this.getLocationAtTime(this.getTimeOf(y.read(arguments)))},getOffsetOf:function(){var e=this.getLocationOf.apply(this,arguments);return e?e.getOffset():null},getTimeOf:function(){return N.getTimeOf(this.getValues(),y.read(arguments))},getParameterOf:"#getTimeOf",getNearestLocation:function(){var e=y.read(arguments),t=this.getValues(),n=N.getNearestTime(t,e),r=N.getPoint(t,n);return new F(this,n,r,null,e.getDistance(r))},getNearestPoint:function(){var e=this.getNearestLocation.apply(this,arguments);return e?e.getPoint():e}},new function(){var e=["getPoint","getTangent","getNormal","getWeightedTangent","getWeightedNormal","getCurvature"];return u.each(e,(function(e){this[e+"At"]=function(t,n){var r=this.getValues();return N[e](r,n?t:N.getTimeAt(r,t))},this[e+"AtTime"]=function(t){return N[e](this.getValues(),t)}}),{statics:{_evaluateMethods:e}})},new function(){function e(e){var t=e[0],n=e[1],r=e[2],i=e[3],o=e[4],a=e[5],s=e[6],l=e[7],c=9*(r-o)+3*(s-t),u=6*(t+o)-12*r,h=3*(r-t),f=9*(i-a)+3*(l-n),d=6*(n+a)-12*i,p=3*(i-n);return function(e){var t=(c*e+u)*e+h,n=(f*e+d)*e+p;return Math.sqrt(t*t+n*n)}}function t(e,t){return Math.max(2,Math.min(16,Math.ceil(32*Math.abs(t-e))))}function n(e,t,n,r){if(null==t||t<0||t>1)return null;var i=e[0],o=e[1],a=e[2],s=e[3],l=e[4],c=e[5],u=e[6],h=e[7],f=v.isZero;f(a-i)&&f(s-o)&&(a=i,s=o),f(l-u)&&f(c-h)&&(l=u,c=h);var d,p,g=3*(a-i),m=3*(l-a)-g,b=u-i-g-m,x=3*(s-o),_=3*(c-s)-x,w=h-o-x-_;if(0===n)d=0===t?i:1===t?u:((b*t+m)*t+g)*t+i,p=0===t?o:1===t?h:((w*t+_)*t+x)*t+o;else{var S=1e-8,C=1-S;if(t<S?(d=g,p=x):t>C?(d=3*(u-l),p=3*(h-c)):(d=(3*b*t+2*m)*t+g,p=(3*w*t+2*_)*t+x),r){0===d&&0===p&&(t<S||t>C)&&(d=l-a,p=c-s);var k=Math.sqrt(d*d+p*p);k&&(d/=k,p/=k)}
2if(3===n){l=6*b*t+2*m,c=6*w*t+2*_;var O=Math.pow(d*d+p*p,1.5);d=0!==O?(d*c-p*l)/O:0,p=0}}return 2===n?new y(p,-d):new y(d,p)}return{statics:{classify:function(e){var t=e[0],n=e[1],r=e[2],i=e[3],o=e[4],a=e[5],l=e[6],c=e[7],u=r*(n-c)+i*(l-t)+t*c-n*l,h=3*(o*(i-n)+a*(t-r)+r*n-i*t),f=h-u,d=f-u+(t*(c-a)+n*(o-l)+l*a-c*o),p=Math.sqrt(d*d+f*f+h*h),g=0!==p?1/p:0,m=v.isZero,y="serpentine";function b(e,t,n){var r=t!==s,i=r&&t>0&&t<1,o=r&&n>0&&n<1;return!r||(i||o)&&("loop"!==e||i&&o)||(e="arch",i=o=!1),{type:e,roots:i||o?i&&o?t<n?[t,n]:[n,t]:[i?t:n]:null}}if(f*=g,h*=g,m(d*=g))return m(f)?b(m(h)?"line":"quadratic"):b(y,h/(3*f));var x=3*f*f-4*d*h;if(m(x))return b("cusp",f/(2*d));var _=x>0?Math.sqrt(x/3):Math.sqrt(-x),w=2*d;return b(x>0?y:"loop",(f+_)/w,(f-_)/w)},getLength:function(n,r,i,o){if(r===s&&(r=0),i===s&&(i=1),N.isStraight(n)){var a=n;i<1&&(a=N.subdivide(a,i)[0],r/=i),r>0&&(a=N.subdivide(a,r)[1]);var l=a[6]-a[0],c=a[7]-a[1];return Math.sqrt(l*l+c*c)}return v.integrate(o||e(n),r,i,t(r,i))},getTimeAt:function(n,r,i){if(i===s&&(i=r<0?1:0),0===r)return i;var o=Math.abs,a=r>0,l=a?i:0,c=a?1:i,u=e(n),h=N.getLength(n,l,c,u),f=o(r)-h;if(o(f)<1e-12)return a?c:l;if(f>1e-12)return null;var d=r/h,p=0;return v.findRoot((function(e){return p+=v.integrate(u,i,e,t(i,e)),i=e,p-r}),u,i+d,l,c,32,1e-12)},getPoint:function(e,t){return n(e,t,0,!1)},getTangent:function(e,t){return n(e,t,1,!0)},getWeightedTangent:function(e,t){return n(e,t,1,!1)},getNormal:function(e,t){return n(e,t,2,!0)},getWeightedNormal:function(e,t){return n(e,t,2,!1)},getCurvature:function(e,t){return n(e,t,3,!1).x},getPeaks:function(e){var t=e[0],n=e[1],r=e[2],i=e[3],o=e[4],a=e[5],s=3*r-t-3*o+e[6],l=3*t-6*r+3*o,c=-3*t+3*r,u=3*i-n-3*a+e[7],h=3*n-6*i+3*a,f=-3*n+3*i,d=[];return v.solveCubic(9*(s*s+u*u),9*(s*l+h*u),2*(l*l+h*h)+3*(c*s+f*u),c*l+h*f,d,1e-8,.99999999),d.sort()}}}},new function(){function e(e,t,n,r,i,o,a){var s=!a&&n.getPrevious()===i,l=!a&&n!==i&&n.getNext()===i,c=1e-8,u=1-c;if(null!==r&&r>=(s?c:0)&&r<=(l?u:1)&&null!==o&&o>=(l?c:0)&&o<=(s?u:1)){var h=new F(n,r,null,a),f=new F(i,o,null,a);h._intersection=f,f._intersection=h,t&&!t(h)||F.insert(e,h,!0)}}function t(r,i,o,a,s,l,c,u,h,f,d,p,g){if(++h>=4096||++u>=40)return h;var v,m,y=i[0],b=i[1],x=i[6],_=i[7],w=k.getSignedDistance,S=w(y,b,x,_,i[2],i[3]),C=w(y,b,x,_,i[4],i[5]),O=S*C>0?3/4:4/9,E=O*Math.min(0,S,C),T=O*Math.max(0,S,C),A=w(y,b,x,_,r[0],r[1]),P=w(y,b,x,_,r[2],r[3]),j=w(y,b,x,_,r[4],r[5]),L=w(y,b,x,_,r[6],r[7]),M=function(e,t,n,r){var i,o=[0,e],a=[1/3,t],s=[2/3,n],l=[1,r],c=t-(2*e+r)/3,u=n-(e+2*r)/3;if(c*u<0)i=[[o,a,l],[o,s,l]];else{var h=c/u;i=[h>=2?[o,a,l]:h<=.5?[o,s,l]:[o,a,s,l],[o,l]]}return(c||u)<0?i.reverse():i}(A,P,j,L),R=M[0],D=M[1];if(0===S&&0===C&&0===A&&0===P&&0===j&&0===L||null==(v=n(R,D,E,T))||null==(m=n(R.reverse(),D.reverse(),E,T)))return h;var I=f+(d-f)*v,F=f+(d-f)*m;if(Math.max(g-p,F-I)<1e-9){var B=(I+F)/2,U=(p+g)/2;e(s,l,c?a:o,c?U:B,c?o:a,c?B:U)}else{r=N.getPart(r,v,m);var z=g-p;if(m-v>.8)if(F-I>z){B=(I+F)/2;h=t(i,(V=N.subdivide(r,.5))[0],a,o,s,l,!c,u,h,p,g,I,B),h=t(i,V[1],a,o,s,l,!c,u,h,p,g,B,F)}else{var V;U=(p+g)/2;h=t((V=N.subdivide(i,.5))[0],r,a,o,s,l,!c,u,h,p,U,I,F),h=t(V[1],r,a,o,s,l,!c,u,h,U,g,I,F)}else h=0===z||z>=1e-9?t(i,r,a,o,s,l,!c,u,h,p,g,I,F):t(r,i,o,a,s,l,c,u,h,I,F,p,g)}return h}function n(e,t,n,i){return e[0][1]<n?r(e,!0,n):t[0][1]>i?r(t,!1,i):e[0][0]}function r(e,t,n){for(var r=e[0][0],i=e[0][1],o=1,a=e.length;o<a;o++){var s=e[o][0],l=e[o][1];if(t?l>=n:l<=n)return l===n?s:r+(n-i)*(s-r)/(l-i);r=s,i=l}return null}function i(e,t,n,r,i){var o=v.isZero;if(o(r)&&o(i)){var a=N.getTimeOf(e,new y(t,n));return null===a?[]:[a]}for(var s=Math.atan2(-i,r),l=Math.sin(s),c=Math.cos(s),u=[],h=[],f=0;f<8;f+=2){var d=e[f]-t,p=e[f+1]-n;u.push(d*c-p*l,d*l+p*c)}return N.solveCubic(u,1,0,h,0,1),h}function o(t,n,r,o,a,s,l){for(var c=n[0],u=n[1],h=i(t,c,u,n[6]-c,n[7]-u),f=0,d=h.length;f<d;f++){var p=h[f],g=N.getPoint(t,p),v=N.getTimeOf(n,g);null!==v&&e(a,s,l?o:r,l?v:p,l?r:o,l?p:v)}}function a(t,n,r,i,o,a){var s=k.intersect(t[0],t[1],t[6],t[7],n[0],n[1],n[6],n[7]);s&&e(o,a,r,N.getTimeOf(t,s),i,N.getTimeOf(n,s))}function s(n,r,i,s,l,u){var h=1e-12,f=Math.min,d=Math.max;if(d(n[0],n[2],n[4],n[6])+h>f(r[0],r[2],r[4],r[6])&&f(n[0],n[2],n[4],n[6])-h<d(r[0],r[2],r[4],r[6])&&d(n[1],n[3],n[5],n[7])+h>f(r[1],r[3],r[5],r[7])&&f(n[1],n[3],n[5],n[7])-h<d(r[1],r[3],r[5],r[7])){var p=c(n,r);if(p)for(var g=0;g<2;g++){var v=p[g];e(l,u,i,v[0],s,v[1],!0)}else{var m=N.isStraight(n),b=N.isStraight(r),x=m&&b,_=m&&!b,w=l.length;if((x?a:m||b?o:t)(_?r:n,_?n:r,_?s:i,_?i:s,l,u,_,0,0,0,1,0,1),!x||l.length===w)for(g=0;g<4;g++){var S=g>>1,C=1&g,k=6*S,O=6*C,E=new y(n[k],n[k+1]),T=new y(r[O],r[O+1]);E.isClose(T,h)&&e(l,u,i,S,s,C)}}}return l}function l(t,n,r,i){var o=N.classify(t);if("loop"===o.type){var a=o.roots;e(r,i,n,a[0],n,a[1])}return r}function c(e,t){function n(e){var t=e[6]-e[0],n=e[7]-e[1];return t*t+n*n}var r=Math.abs,i=k.getDistance,o=1e-7,a=N.isStraight(e),s=N.isStraight(t),l=a&&s,c=n(e)<n(t),u=c?t:e,h=c?e:t,f=u[0],d=u[1],p=u[6]-f,g=u[7]-d;if(i(f,d,p,g,h[0],h[1],!0)<o&&i(f,d,p,g,h[6],h[7],!0)<o)!l&&i(f,d,p,g,u[2],u[3],!0)<o&&i(f,d,p,g,u[4],u[5],!0)<o&&i(f,d,p,g,h[2],h[3],!0)<o&&i(f,d,p,g,h[4],h[5],!0)<o&&(a=s=l=!0);else if(l)return null;
2if(a^s)return null;for(var v=[e,t],m=[],b=0;b<4&&m.length<2;b++){var x=1&b,_=1^x,w=b>>1,S=N.getTimeOf(v[x],new y(v[_][w?6:0],v[_][w?7:1]));if(null!=S){var C=x?[w,S]:[S,w];(!m.length||r(C[0]-m[0][0])>1e-8&&r(C[1]-m[0][1])>1e-8)&&m.push(C)}if(b>2&&!m.length)break}if(2!==m.length)m=null;else if(!l){var O=N.getPart(e,m[0][0],m[1][0]),E=N.getPart(t,m[0][1],m[1][1]);(r(E[2]-O[2])>o||r(E[3]-O[3])>o||r(E[4]-O[4])>o||r(E[5]-O[5])>o)&&(m=null)}return m}return{getIntersections:function(e){var t=this.getValues(),n=e&&e!==this&&e.getValues();return n?s(t,n,this,e,[]):l(t,this,[])},statics:{getOverlaps:c,getIntersections:function(e,t,n,r,i,o){var a=!t;a&&(t=e);for(var c=e.length,u=t.length,h=new Array(c),f=a?h:new Array(u),d=[],g=0;g<c;g++)h[g]=e[g].getValues(r);if(!a)for(g=0;g<u;g++)f[g]=t[g].getValues(i);for(var v=p.findCurveBoundsCollisions(h,f,1e-7),m=0;m<c;m++){var y=e[m],b=h[m];a&&l(b,y,d,n);var x=v[m];if(x)for(var _=0;_<x.length;_++){if(o&&d.length)return d;var w=x[_];if(!a||w>m){var S=t[w];s(b,f[w],y,S,d,n)}}}return d},getCurveLineIntersections:i,getTimesWithTangent:function(e,t){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],l=e[6],c=e[7],u=t.normalize(),h=u.x,f=u.y,d=3*l-9*a+9*i-3*n,p=3*c-9*s+9*o-3*r,g=6*a-12*i+6*n,m=6*s-12*o+6*r,y=3*i-3*n,b=3*o-3*r,x=2*d*f-2*p*h,_=[];if(Math.abs(x)<v.CURVETIME_EPSILON){if(0!=(x=d*m-p*g)){var w=-(d*b-p*y)/x;w>=0&&w<=1&&_.push(w)}}else{var S=(g*g-4*d*y)*f*f+(-2*g*m+4*p*y+4*d*b)*h*f+(m*m-4*p*b)*h*h,C=g*f-m*
2h;if(S>=0&&0!=x){var k=Math.sqrt(S),O=-(C+k)/x,E=(-C+k)/x;O>=0&&O<=1&&_.push(O),E>=0&&E<=1&&_.push(E)}}return _}}}}),F=u.extend({_class:"CurveLocation",initialize:function(e,t,n,r,i){if(t>=.99999999){var o=e.getNext();o&&(t=0,e=o)}this._setCurve(e),this._time=t,this._point=n||e.getPointAtTime(t),this._overlap=r,this._distance=i,this._intersection=this._next=this._previous=null},_setPath:function(e){this._path=e,this._version=e?e._version:0},_setCurve:function(e){this._setPath(e._path),this._curve=e,this._segment=null,this._segment1=e._segment1,this._segment2=e._segment2},_setSegment:function(e){var t=e.getCurve();t?this._setCurve(t):(this._setPath(e._path),this._segment1=e,this._segment2=null),this._segment=e,this._time=e===this._segment1?0:1,this._point=e._point.clone()},getSegment:function(){var e=this._segment;if(!e){var t=this.getCurve(),n=this.getTime();0===n?e=t._segment1:1===n?e=t._segment2:null!=n&&(e=t.getPartLength(0,n)<t.getPartLength(n,1)?t._segment1:t._segment2),this._segment=e}return e},getCurve:function(){var e=this._path,t=this;function n(e){var n=e&&e.getCurve();if(n&&null!=(t._time=n.getTimeOf(t._point)))return t._setCurve(n),n}return e&&e._version!==this._version&&(this._time=this._offset=this._curveOffset=this._curve=null),this._curve||n(this._segment)||n(this._segment1)||n(this._segment2.getPrevious())},getPath:function(){var e=this.getCurve();return e&&e._path},getIndex:function(){var e=this.getCurve();return e&&e.getIndex()},getTime:function(){var e=this.getCurve(),t=this._time;return e&&null==t?this._time=e.getTimeOf(this._point):t},getParameter:"#getTime",getPoint:function(){return this._point},getOffset:function(){var e=this._offset;if(null==e){e=0;var t=this.getPath(),n=this.getIndex();if(t&&null!=n)for(var r=t.getCurves(),i=0;i<n;i++)e+=r[i].getLength();this._offset=e+=this.getCurveOffset()}return e},getCurveOffset:function(){var e=this._curveOffset;if(null==e){var t=this.getCurve(),n=this.getTime();this._curveOffset=e=null!=n&&t&&t.getPartLength(0,n)}return e},getIntersection:function(){return this._intersection},getDistance:function(){return this._distance},divide:function(){var e=this.getCurve(),t=e&&e.divideAtTime(this.getTime());return t&&this._setSegment(t._segment1),t},split:function(){var e=this.getCurve(),t=e._path,n=e&&e.splitAtTime(this.getTime());return n&&this._setSegment(t.getLastSegment()),n},equals:function(e,t){var n=this===e;if(!n&&e instanceof F){var r=this.getCurve(),i=e.getCurve(),o=r._path;if(o===i._path){var a=Math.abs,s=a(this.getOffset()-e.getOffset()),l=!t&&this._intersection,c=!t&&e._intersection;n=(s<1e-7||o&&a(o.getLength()-s)<1e-7)&&(!l&&!c||l&&c&&l.equals(c,!0))}}return n},toString:function(){var e=[],t=this.getPoint(),n=g.instance;t&&e.push("point: "+t);var r=this.getIndex();null!=r&&e.push("index: "+r);var i=this.getTime();return null!=i&&e.push("time: "+n.number(i)),null!=this._distance&&e.push("distance: "+n.number(this._distance)),"{ "+e.join(", ")+" }"},isTouching:function(){var e=this._intersection;if(e&&this.getTangent().isCollinear(e.getTangent())){var t=this.getCurve(),n=e.getCurve();return!(t.isStraight()&&n.isStraight()&&t.getLine().intersect(n.getLine()))}return!1},isCrossing:function(){var e=this._intersection;if(!e)return!1;var t=this.getTime(),n=e.getTime(),r=1e-8,i=1-r,o=t>=r&&t<=i,a=n>=r&&n<=i;if(o&&a)return!this.isTouching();var s=this.getCurve(),l=s&&t<r?s.getPrevious():s,c=e.getCurve(),u=c&&n<r?c.getPrevious():c;if(t>i&&(s=s.getNext()),n>i&&(c=c.getNext()),!l||!s||!u||!c)return!1;var h=[];function f(e,t){var n=e.getValues(),r=N.classify(n).roots||N.getPeaks(n),i=r.length,o=N.getLength(n,t&&i?r[i-1]:0,!t&&i?r[0]:1);h.push(i?o:o/32)}function d(e,t,n){return t<n?e>t&&e<n:e>t||e<n}o||(f(l,!0),f(s,!1)),a||(f(u,!0),f(c,!1));var p=this.getPoint(),g=Math.min.apply(Math,h),v=o?s.getTangentAtTime(t):s.getPointAt(g).subtract(p),m=o?v.negate():l.getPointAt(-g).subtract(p),y=a?c.getTangentAtTime(n):c.getPointAt(g).subtract(p),b=a?y.negate():u.getPointAt(-g).subtract(p),x=m.getAngle(),_=v.getAngle(),w=b.getAngle(),S=y.getAngle();return!!(o?d(x,w,S)^d(_,w,S)&&d(x,S,w)^d(_,S,w):d(w,x,_)^d(S,x,_)&&d(w,_,x)^d(S,_,x))},hasOverlap:function(){return!!this._overlap}},u.each(N._evaluateMethods,(function(e){var t=e+"At";
2this[e]=function(){var e=this.getCurve(),n=this.getTime();return null!=n&&e&&e[t](n,!0)}}),{preserve:!0}),new function(){function e(e,t,n){var r=e.length,i=0,o=r-1;function a(n,i){for(var o=n+i;o>=-1&&o<=r;o+=i){var a=e[(o%r+r)%r];if(!t.getPoint().isClose(a.getPoint(),1e-7))break;if(t.equals(a))return a}return null}for(;i<=o;){var s,l=i+o>>>1,c=e[l];if(n&&(s=t.equals(c)?c:a(l,-1)||a(l,1)))return t._overlap&&(s._overlap=s._intersection._overlap=!0),s;var u=t.getPath(),h=c.getPath();(u!==h?u._id-h._id:t.getIndex()+t.getTime()-(c.getIndex()+c.getTime()))<0?o=l-1:i=l+1}return e.splice(i,0,t),t}return{statics:{insert:e,expand:function(t){for(var n=t.slice(),r=t.length-1;r>=0;r--)e(n,t[r]._intersection,!1);return n}}}}),B=E.extend({_class:"PathItem",_selectBounds:!1,_canScaleStroke:!0,beans:!0,initialize:function(){},statics:{create:function(e){var t,n,r;if(u.isPlainObject(e)?(n=e.segments,t=e.pathData):Array.isArray(e)?n=e:"string"===typeof e&&(t=e),n){var i=n[0];r=i&&Array.isArray(i[0])}else t&&(r=(t.match(/m/gi)||[]).length>1||/z\s*\S+/i.test(t));return new(r?z:U)(e)}},_asPathItem:function(){return this},isClockwise:function(){return this.getArea()>=0},setClockwise:function(e){this.isClockwise()!=(e=!!e)&&this.reverse()},setPathData:function(e){var t,n,r,i=e&&e.match(/[mlhvcsqtaz][^mlhvcsqtaz]*/gi),o=!1,a=new y,s=new y;function l(e,n){var r=+t[e];return o&&(r+=a[n]),r}function c(e){return new y(l(e,"x"),l(e+1,"y"))}this.clear();for(var u=0,h=i&&i.length;u<h;u++){var f=i[u],d=f[0],p=d.toLowerCase(),g=(t=f.match(/[+-]?(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?/g))&&t.length;switch(o=d===p,"z"!==n||/[mz]/.test(p)||this.moveTo(a),p){case"m":case"l":for(var v="m"===p,m=0;m<g;m+=2)this[v?"moveTo":"lineTo"](a=c(m)),v&&(s=a,v=!1);r=a;break;case"h":case"v":var b="h"===p?"x":"y";a=a.clone();for(m=0;m<g;m++)a[b]=l(m,b),this.lineTo(a);r=a;break;case"c":for(m=0;m<g;m+=6)this.cubicCurveTo(c(m),r=c(m+2),a=c(m+4));break;case"s":for(m=0;m<g;m+=4)this.cubicCurveTo(/[cs]/.test(n)?a.multiply(2).subtract(r):a,r=c(m),a=c(m+2)),n=p;break;case"q":for(m=0;m<g;m+=4)this.quadraticCurveTo(r=c(m),a=c(m+2));break;case"t":for(m=0;m<g;m+=2)this.quadraticCurveTo(r=/[qt]/.test(n)?a.multiply(2).subtract(r):a,a=c(m)),n=p;break;case"a":for(m=0;m<g;m+=7)this.arcTo(a=c(m+5),new x(+t[m],+t[m+1]),+t[m+2],+t[m+4],+t[m+3]);break;case"z":this.closePath(1e-12),a=s}n=p}},_canComposite:function(){return!(this.hasFill()&&this.hasStroke())},_contains:function(e){var t=e.isInside(this.getBounds({internal:!0,handle:!0}))?this._getWinding(e):{};return t.onPath||!!("evenodd"===this.getFillRule()?1&t.windingL||1&t.windingR:t.winding)},getIntersections:function(e,t,n,r){var i=this===e||!e,o=this._matrix._orNullIfIdentity(),a=i?o:(n||e._matrix)._orNullIfIdentity();return i||this.getBounds(o).intersects(e.getBounds(a),1e-12)?N.getIntersections(this.getCurves(),!i&&e.getCurves(),t,o,a,r):[]},getCrossings:function(e){return this.getIntersections(e,(function(e){return e.isCrossing()}))},getNearestLocation:function(){for(var e=y.read(arguments),t=this.getCurves(),n=1/0,r=null,i=0,o=t.length;i<o;i++){var a=t[i].getNearestLocation(e);a._distance<n&&(n=a._distance,r=a)}return r},getNearestPoint:function(){var e=this.getNearestLocation.apply(this,arguments);return e?e.getPoint():e},interpolate:function(e,t,n){var r=!this._children,i=r?"_segments":"_children",o=e[i],a=t[i],s=this[i];if(!o||!a||o.length!==a.length)throw new Error("Invalid operands in interpolate() call: "+e+", "+t);var l=s.length,c=a.length;if(l<c)for(var u=r?D:U,h=l;h<c;h++)this.add(new u);else l>c&&this[r?"removeSegments":"removeChildren"](c,l);for(h=0;h<c;h++)s[h].interpolate(o[h],a[h],n);r&&(this.setClosed(e._closed),this._changed(9))},compare:function(e){var t=!1;if(e){var n=this._children||[this],r=e._children?e._children.slice():[e],i=n.length,o=r.length,a=[],s=0;t=!0;for(var l=p.findItemBoundsCollisions(n,r,v.GEOMETRIC_EPSILON),c=i-1;c>=0&&t;c--){var u=n[c];t=!1;var h=l[c];if(h)for(var f=h.length-1;f>=0&&!t;f--)u.compare(r[h[f]])&&(a[h[f]]||(a[h[f]]=!0,s++),t=!0)}t=t&&s===o}return t}}),U=B.extend({_class:"Path",_serializeFields:{segments:[],closed:!1}
2,initialize:function(e){this._closed=!1,this._segments=[],this._version=0;var t=arguments,n=Array.isArray(e)?"object"===typeof e[0]?e:t:!e||e.size!==s||e.x===s&&e.point===s?null:t;n&&n.length>0?this.setSegments(n):(this._curves=s,this._segmentSelection=0,n||"string"!==typeof e||(this.setPathData(e),e=null)),this._initialize(!n&&e)},_equals:function(e){return this._closed===e._closed&&u.equals(this._segments,e._segments)},copyContent:function(e){this.setSegments(e._segments),this._closed=e._closed},_changed:function e(t){if(e.base.call(this,t),8&t){if(this._length=this._area=s,32&t)this._version++;else if(this._curves)for(var n=0,r=this._curves.length;n<r;n++)this._curves[n]._changed()}else 64&t&&(this._bounds=s)},getStyle:function(){var e=this._parent;return(e instanceof z?e:this)._style},getSegments:function(){return this._segments},setSegments:function(e){var t=this.isFullySelected(),n=e&&e.length;if(this._segments.length=0,this._segmentSelection=0,this._curves=s,n){var r=e[n-1];"boolean"===typeof r&&(this.setClosed(r),n--),this._add(D.readList(e,0,{},n))}t&&this.setFullySelected(!0)},getFirstSegment:function(){return this._segments[0]},getLastSegment:function(){return this._segments[this._segments.length-1]},getCurves:function(){var e=this._curves,t=this._segments;if(!e){var n=this._countCurves();e=this._curves=new Array(n);for(var r=0;r<n;r++)e[r]=new N(this,t[r],t[r+1]||t[0])}return e},getFirstCurve:function(){return this.getCurves()[0]},getLastCurve:function(){var e=this.getCurves();return e[e.length-1]},isClosed:function(){return this._closed},setClosed:function(e){if(this._closed!=(e=!!e)){if(this._closed=e,this._curves){var t=this._curves.length=this._countCurves();e&&(this._curves[t-1]=new N(this,this._segments[t-1],this._segments[0]))}this._changed(41)}}},{beans:!0,getPathData:function(e,t){var n,r,i,o,a,s,l,c,u=this._segments,h=u.length,f=new g(t),d=new Array(6),p=!0,v=[];function m(t,u){if(t._transformCoordinates(e,d),n=d[0],r=d[1],p)v.push("M"+f.pair(n,r)),p=!1;else if(a=d[2],s=d[3],a===n&&s===r&&l===i&&c===o){if(!u){var h=n-i,g=r-o;v.push(0===h?"v"+f.number(g):0===g?"h"+f.number(h):"l"+f.pair(h,g))}}else v.push("c"+f.pair(l-i,c-o)+" "+f.pair(a-i,s-o)+" "+f.pair(n-i,r-o));i=n,o=r,l=d[4],c=d[5]}if(!h)return"";for(var y=0;y<h;y++)m(u[y]);return this._closed&&h>0&&(m(u[0],!0),v.push("z")),v.join("")},isEmpty:function(){return!this._segments.length},_transformContent:function(e){for(var t=this._segments,n=new Array(6),r=0,i=t.length;r<i;r++)t[r]._transformCoordinates(e,n,!0);return!0},_add:function(e,t){for(var n=this._segments,r=this._curves,i=e.length,o=null==t,a=(t=o?n.length:t,0);a<i;a++){var s=e[a];s._path&&(s=e[a]=s.clone()),s._path=this,s._index=t+a,s._selection&&this._updateSelection(s,0,s._selection)}if(o)u.push(n,e);else{n.splice.apply(n,[t,0].concat(e));a=t+i;for(var l=n.length;a<l;a++)n[a]._index=a}if(r){var c=this._countCurves(),h=t>0&&t+i-1===c?t-1:t,f=h,d=Math.min(h+i,c);e._curves&&(r.splice.apply(r,[h,0].concat(e._curves)),f+=e._curves.length);for(a=f;a<d;a++)r.splice(a,0,new N(this,null,null));this._adjustCurves(h,d)}return this._changed(41),e},_adjustCurves:function(e,t){for(var n,r=this._segments,i=this._curves,o=e;o<t;o++)(n=i[o])._path=this,n._segment1=r[o],n._segment2=r[o+1]||r[0],n._changed();(n=i[this._closed&&!e?r.length-1:e-1])&&(n._segment2=r[e]||r[0],n._changed()),(n=i[t])&&(n._segment1=r[t],n._changed())},_countCurves:function(){var e=this._segments.length;return!this._closed&&e>0?e-1:e},add:function(e){var t=arguments;return t.length>1&&"number"!==typeof e?this._add(D.readList(t)):this._add([D.read(t)])[0]},insert:function(e,t){var n=arguments;return n.length>2&&"number"!==typeof t?this._add(D.readList(n,1),e):this._add([D.read(n,1)],e)[0]},addSegment:function(){return this._add([D.read(arguments)])[0]},insertSegment:function(e){return this._add([D.read(arguments,1)],e)[0]},addSegments:function(e){return this._add(D.readList(e))},insertSegments:function(e,t){return this._add(D.readList(t),e)},removeSegment:function(e){return this.removeSegments(e,e+1)[0]||null},removeSegments:function(e,t,n){e=e||0,t=u.pick(t,this._segments.length);var r=this._segments,i=this._curves,o=r.length,a=r.splice(e,t-e),s=a.length;if(!s)return a;for(var l=0;l<s;l++){var c=a[l];c._selection&&this._updateSelection(c,c._selection,0),c._index=c._path=null}l=e;for(var h=r.length;l<h;l++)r[l]._index=l;if(i){var f=e>0&&t===o+(this._closed?1:0)?e-1:e;for(l=(i=i.splice(f,s)).length-1;l>=0;l--)i[l]._path=null;n&&(a._curves=i.slice(1)),this._adjustCurves(f,f)}return this._changed(41),a},clear:"#removeSegments",hasHandles:function(){for(var e=this._segments,t=0,n=e.length;t<n;
2t++)if(e[t].hasHandles())return!0;return!1},clearHandles:function(){for(var e=this._segments,t=0,n=e.length;t<n;t++)e[t].clearHandles()},getLength:function(){if(null==this._length){for(var e=this.getCurves(),t=0,n=0,r=e.length;n<r;n++)t+=e[n].getLength();this._length=t}return this._length},getArea:function(){var e=this._area;if(null==e){var t=this._segments,n=this._closed;e=0;for(var r=0,i=t.length;r<i;r++){var o=r+1===i;e+=N.getArea(N.getValues(t[r],t[o?0:r+1],null,o&&!n))}this._area=e}return e},isFullySelected:function(){var e=this._segments.length;return this.isSelected()&&e>0&&this._segmentSelection===7*e},setFullySelected:function(e){e&&this._selectSegments(!0),this.setSelected(e)},setSelection:function e(t){1&t||this._selectSegments(!1),e.base.call(this,t)},_selectSegments:function(e){var t=this._segments,n=t.length,r=e?7:0;this._segmentSelection=r*n;for(var i=0;i<n;i++)t[i]._selection=r},_updateSelection:function(e,t,n){e._selection=n,(this._segmentSelection+=n-t)>0&&this.setSelected(!0)},divideAt:function(e){var t,n=this.getLocationAt(e);return n&&(t=n.getCurve().divideAt(n.getCurveOffset()))?t._segment1:null},splitAt:function(e){var t=this.getLocationAt(e),n=t&&t.index,r=t&&t.time;r>.99999999&&(n++,r=0);var i=this.getCurves();if(n>=0&&n<i.length){r>=1e-8&&i[n++].divideAtTime(r);var o,a=this.removeSegments(n,this._segments.length,!0);return this._closed?(this.setClosed(!1),o=this):((o=new U(E.NO_INSERT)).insertAbove(this),o.copyAttributes(this)),o._add(a,0),this.addSegment(a[0]),o}return null},split:function(e,t){var n,r=t===s?e:(n=this.getCurves()[e])&&n.getLocationAtTime(t);return null!=r?this.splitAt(r):null},join:function(e,t){var n=t||0;if(e&&e!==this){var r=e._segments,i=this.getLastSegment(),o=e.getLastSegment();if(!o)return this;i&&i._point.isClose(o._point,n)&&e.reverse();var a=e.getFirstSegment();if(i&&i._point.isClose(a._point,n))i.setHandleOut(a._handleOut),this._add(r.slice(1));else{var s=this.getFirstSegment();s&&s._point.isClose(a._point,n)&&e.reverse(),o=e.getLastSegment(),s&&s._point.isClose(o._point,n)?(s.setHandleIn(o._handleIn),this._add(r.slice(0,r.length-1),0)):this._add(r.slice())}e._closed&&this._add([r[0]]),e.remove()}var l=this.getFirstSegment(),c=this.getLastSegment();return l!==c&&l._point.isClose(c._point,n)&&(l.setHandleIn(c._handleIn),c.remove(),this.setClosed(!0)),this},reduce:function(e){for(var t=this.getCurves(),n=e&&e.simplify,r=n?1e-7:0,i=t.length-1;i>=0;i--){var o=t[i];!o.hasHandles()&&(!o.hasLength(r)||n&&o.isCollinear(o.getNext()))&&o.remove()}return this},reverse:function(){this._segments.reverse();for(var e=0,t=this._segments.length;e<t;e++){var n=this._segments[e],r=n._handleIn;n._handleIn=n._handleOut,n._handleOut=r,n._index=e}this._curves=null,this._changed(9)},flatten:function(e){for(var t=new V(this,e||.25,256,!0).parts,n=t.length,r=[],i=0;i<n;i++)r.push(new D(t[i].curve.slice(0,2)));!this._closed&&n>0&&r.push(new D(t[n-1].curve.slice(6))),this.setSegments(r)},simplify:function(e){var t=new H(this).fit(e||2.5);return t&&this.setSegments(t),!!t},smooth:function(e){var t=this,n=e||{},r=n.type||"asymmetric",i=this._segments,o=i.length,a=this._closed;function l(e,n){var r=e&&e.index;if(null!=r){var i=e.path;if(i&&i!==t)throw new Error(e._class+" "+r+" of "+i+" is not part of "+t);n&&e instanceof N&&r++}else r="number"===typeof e?e:n;return Math.min(r<0&&a?r%o:r<0?r+o:r,o-1)}var c=a&&n.from===s&&n.to===s,u=l(n.from,0),h=l(n.to,o-1);if(u>h)if(a)u-=o;else{var f=u;u=h,h=f}if(/^(?:asymmetric|continuous)$/.test(r)){var d="asymmetric"===r,p=Math.min,g=h-u+1,v=g-1,m=c?p(g,4):1,y=m,b=m,x=[];if(a||(y=p(1,u),b=p(1,o-h-1)),(v+=y+b)<=1)return;for(var _=0,w=u-y;_<=v;_++,w++)x[_]=i[(w<0?w+o:w)%o]._point;var S=x[0]._x+2*x[1]._x,C=x[0]._y+2*x[1]._y,k=2,O=v-1,E=[S],T=[C],A=[k],P=[],j=[];for(_=1;_<v;_++){var L=_<O,M=L?4:d?2:7,R=L?4:d?3:8,D=L?2:d?0:1,I=(L||d?1:2)/k;k=A[_]=M-I,S=E[_]=R*x[_]._x+D*x[_+1]._x-I*S,C=T[_]=R*x[_]._y+D*x[_+1]._y-I*C}P[O]=E[O]/A[O],j[O]=T[O]/A[O];for(_=v-2;_>=0;_--)P[_]=(E[_]-P[_+1])/A[_],j[_]=(T[_]-j[_+1])/A[_];P[v]=(3*x[v]._x-P[O])/2,j[v]=(3*x[v]._y-j[O])/2;_=y;var F=v-b;for(w=u;_<=F;_++,w++){var B=i[w<0?w+o:w],U=B._point,z=P[_]-U._x,V=j[_]-U._y;(c||_<F)&&B.setHandleOut(z,V),(c||_>y)&&B.setHandleIn(-z,-V)}}else for(_=u;_<=h;_++)i[_<0?_+o:_].smooth(n,!c&&_===u,!c&&_===h)},toShape:function(e){if(!this._closed)return null;var t,n,r,i,o=this._segments;function a(e,t){var n=o[e],r=n.getNext(),i=o[t],a=i.getNext();return n._handleOut.isZero()&&r._handleIn.isZero()&&i._handleOut.isZero()&&a._handleIn.isZero()&&r._point.subtract(n._point).isCollinear(a._point.subtract(i._point))}function l(e){var t=o[e],n=t.getNext(),r=t._handleOut,i=n._handleIn,a=.5522847498307936;if(r.isOrthogonal(i)){var s=t._point,l=n._point,c=new k(s,r,!0).intersect(new k(l,i,!0),!0);return c&&v.isZero(r.getLength()/c.subtract(s).getLength()-a)&&v.isZero(i.getLength()/c.subtract(l).getLength()-a)}return!1}function c(e,t){return o[e]._point.getDistance(o[t]._point)}if(!this.hasHandles()&&4===o.length&&a(0,2)&&a(1,3)&&function(e){var t=o[e],n=t.getPrevious(),r=t.getNext();return n._handleOut.isZero()&&t._handleIn.isZero()&&t._handleOut.isZero()&&r._handleIn.isZero()&&t._point.subtract(n._point).isOrthogonal(r._point.subtract(t._point))}
2(1)?(t=P.Rectangle,n=new x(c(0,3),c(0,1)),i=o[1]._point.add(o[2]._point).divide(2)):8===o.length&&l(0)&&l(2)&&l(4)&&l(6)&&a(1,5)&&a(3,7)?(t=P.Rectangle,r=(n=new x(c(1,6),c(0,3))).subtract(new x(c(0,7),c(1,2))).divide(2),i=o[3]._point.add(o[4]._point).divide(2)):4===o.length&&l(0)&&l(1)&&l(2)&&l(3)&&(v.isZero(c(0,2)-c(1,3))?(t=P.Circle,r=c(0,2)/2):(t=P.Ellipse,r=new x(c(2,0)/2,c(3,1)/2)),i=o[1]._point),t){var u=this.getPosition(!0),h=new t({center:u,size:n,radius:r,insert:!1});return h.copyAttributes(this,!0),h._matrix.prepend(this._matrix),h.rotate(i.subtract(u).getAngle()+90),(e===s||e)&&h.insertAbove(this),h}return null},toPath:"#clone",compare:function e(t){if(!t||t instanceof z)return e.base.call(this,t);var n=this.getCurves(),r=t.getCurves(),i=n.length,o=r.length;if(!i||!o)return i==o;for(var a,s,l=n[0].getValues(),c=[],u=0,h=0,f=0;f<o;f++){var d=r[f].getValues();if(c.push(d),v=N.getOverlaps(l,d)){a=!f&&v[0][0]>0?o-1:f,s=v[0][1];break}}var p,g=Math.abs;for(d=c[a];l&&d;){var v;if(v=N.getOverlaps(l,d))if(g(v[0][0]-h)<1e-8){1===(h=v[1][0])&&(l=++u<i?n[u].getValues():null,h=0);var m=v[0][1];if(g(m-s)<1e-8){if(p||(p=[a,m]),1===(s=v[1][1])&&(++a>=o&&(a=0),d=c[a]||r[a].getValues(),s=0),!l)return p[0]===a&&p[1]===s;continue}}break}return!1},_hitTestSelf:function(e,t,n,r){var i,o,a,s,l,c,u=this,h=this.getStyle(),f=this._segments,d=f.length,p=this._closed,g=t._tolerancePadding,v=g,m=t.
2stroke&&h.hasStroke(),y=t.fill&&h.hasFill(),b=t.curves,x=m?h.getStrokeWidth()/2:y&&t.tolerance>0||b?0:null;function _(t,n){return e.subtract(t).divide(n).length<=1}function w(e,n,r){if(!t.selected||n.isSelected()){var i=e._point;if(n!==i&&(n=n.add(i)),_(n,v))return new R(r,u,{segment:e,point:n})}}function S(e,n){return(n||t.segments)&&w(e,e._point,"segment")||!n&&t.handles&&(w(e,e._handleIn,"handle-in")||w(e,e._handleOut,"handle-out"))}function C(e){s.add(e)}function k(t){var n,l=p||t._index>0&&t._index<d-1;return"round"===(l?i:o)?_(t._point,v):(s=new U({internal:!0,closed:!0}),l?t.isSmooth()||U._addBevelJoin(t,i,x,a,null,r,C,!0):"square"===o&&U._addSquareCap(t,o,x,null,r,C,!0),s.isEmpty()?void 0:s.contains(e)||(n=s.getNearestLocation(e))&&_(n.getPoint(),g))}if(null!==x&&(x>0?(i=h.getStrokeJoin(),o=h.getStrokeCap(),a=h.getMiterLimit(),v=v.add(U._getStrokePadding(x,r))):i=o="round"),!t.ends||t.segments||p){if(t.segments||t.handles)for(var O=0;O<d;O++)if(c=S(f[O]))return c}else if(c=S(f[0],!0)||S(f[d-1],!0))return c;if(null!==x){if(l=this.getNearestLocation(e)){var E=l.getTime();0===E||1===E&&d>1?k(l.getSegment())||(l=null):_(l.getPoint(),v)||(l=null)}if(!l&&"miter"===i&&d>1)for(O=0;O<d;O++){var T=f[O];if(e.getDistance(T._point)<=a*x&&k(T)){l=T.getLocation();break}}}return!l&&y&&this._contains(e)||l&&!m&&!b?new R("fill",this):l?new R(m?"stroke":"curve",this,{location:l,point:l.getPoint()}):null}},u.each(N._evaluateMethods,(function(e){this[e+"At"]=function(t){var n=this.getLocationAt(t);return n&&n[e]()}}),{beans:!1,getLocationOf:function(){for(var e=y.read(arguments),t=this.getCurves(),n=0,r=t.length;n<r;n++){var i=t[n].getLocationOf(e);if(i)return i}return null},getOffsetOf:function(){var e=this.getLocationOf.apply(this,arguments);return e?e.getOffset():null},getLocationAt:function(e){if("number"===typeof e){for(var t=this.getCurves(),n=0,r=0,i=t.length;r<i;r++){var o=n,a=t[r];if((n+=a.getLength())>e)return a.getLocationAt(e-o)}if(t.length>0&&e<=this.getLength())return new F(t[t.length-1],1)}else if(e&&e.getPath&&e.getPath()===this)return e;return null},getOffsetsWithTangent:function(){var e=y.read(arguments);if(e.isZero())return[];for(var t=[],n=0,r=this.getCurves(),i=0,o=r.length;i<o;i++){for(var a=r[i],s=a.getTimesWithTangent(e),l=0,c=s.length;l<c;l++){var u=n+a.getOffsetAtTime(s[l]);t.indexOf(u)<0&&t.push(u)}n+=a.length}return t}}),new function(){function e(e,t,n){var r,i,o,a,s,l,c,u,h=t._segments,f=h.length,d=new Array(6),p=!0;function g(t){if(n)t._transformCoordinates(n,d),r=d[0],i=d[1];else{var h=t._point;r=h._x,i=h._y}if(p)e.moveTo(r,i),p=!1;else{if(n)s=d[2],l=d[3];else{var f=t._handleIn;s=r+f._x,l=i+f._y}s===r&&l===i&&c===o&&u===a?e.lineTo(r,i):e.bezierCurveTo(c,u,s,l,r,i)}if(o=r,a=i,n)c=d[4],u=d[5];else{f=t._handleOut;c=o+f._x,u=a+f._y}}for(var v=0;v<f;v++)g(h[v]);t._closed&&f>0&&g(h[0])}return{_draw:function(t,n,r,i){var o=n.dontStart,a=n.dontFinish||n.clip,s=this.getStyle(),l=s.hasFill(),c=s.hasStroke(),u=s.getDashArray(),h=!fe.support.nativeDash&&c&&u&&u.length;function f(e){return u[(e%h+h)%h]}if(o||t.beginPath(),(l||c&&!h||a)&&(e(t,this,i),this._closed&&t.closePath()),!a&&(l||c)&&(this._setStyles(t,n,r),l&&(t.fill(s.getFillRule()),t.shadowColor="rgba(0,0,0,0)"),c)){if(h){o||t.beginPath();for(var d,p=new V(this,.25,32,!1,i),g=p.length,v=-s.getDashOffset(),m=0;v>0;)v-=f(m--)+f(m--);for(;v<g;)d=v+f(m++),(v>0||d>0)&&p.drawPart(t,Math.max(v,0),Math.max(d,0)),v=d+f(m++)}t.stroke()}},_drawSelected:function(t,n){t.beginPath(),e(t,this,n),t.stroke(),function(e,t,n,r){if(!(r<=0))for(var i,o,a=r/2,s=r-2,l=a-1,c=new Array(6),u=0,h=t.length;u<h;u++){var f=t[u],d=f._selection;if(f._transformCoordinates(n,c),i=c[0],o=c[1],2&d&&g(2),4&d&&g(4),e.fillRect(i-a,o-a,r,r),s>0&&!(1&d)){var p=e.fillStyle;e.fillStyle="#ffffff",e.fillRect(i-l,o-l,s,s),e.fillStyle=p}}function g(t){var n=c[t],r=c[t+1];i==n&&o==r||(e.beginPath(),e.moveTo(i,o),e.lineTo(n,r),e.stroke(),e.beginPath(),e.arc(n,r,a,0,2*Math.PI,!0),e.fill())}}(t,this._segments,n,fe.settings.handleSize)}}},new function(){function e(e){var t=e._segments;if(!t.length)throw new Error("Use a moveTo() command first");return t[t.length-1]}return{moveTo:function(){var e=this._segments;1===e.length&&this.removeSegment(0),e.length||this._add([new D(y.read(arguments))])},moveBy:function(){throw new Error("moveBy() is unsupported on Path items.")},lineTo:function(){this._add([new D(y.read(arguments))])},cubicCurveTo:function(){var t=arguments,n=y.read(t),r=y.read(t),i=y.read(t),o=e(this);o.setHandleOut(n.subtract(o._point)),this._add([new D(i,r.subtract(i))])},quadraticCurveTo:function(){var t=arguments,n=y.read(t),r=y.read(t),i=e(this)._point;this.cubicCurveTo(n.add(i.subtract(n).multiply(1/3)),n.add(r.subtract(n).multiply(1/3)),r)},curveTo:function(){var t=arguments,n=y.read(t),r=y.read(t),i=u.pick(u.read(t),.5),o=1-i,a=e(this)._point,s=n.subtract(a.multiply(o*o)).subtract(r.multiply(i*i)).divide(2*i*o);if(s.isNaN())throw new Error("Cannot put a curve through points with parameter = "+i);this.quadraticCurveTo(s,r)},arcTo:function(){var t,n,r,i,o=arguments,a=Math.abs,s=Math.sqrt,l=e(this),c=l._point,h=y.read(o),f=u.peek(o);if("boolean"===typeof(b=u.pick(f,!0)))var d=(w=c.add(h).divide(2)).add(w.subtract(c).rotate(b?-90:90));else if(u.remain(o)<=2)d=h,h=y.read(o);else if(!c.equals(h)){var p=x.read(o),g=v.isZero;if(g(p.width)||g(p.height))return this.lineTo(h);var m=u.read(o),b=!!u.read(o),_=!!u.read(o),w=c.add(h).divide(2),S=(Y=c.subtract(w).rotate(-m)).x,O=Y.y,E=a(p.width),T=a(p.height),A=E*E,P=T*T,j=S*S,L=O*O,M=s(j/A+L/P);if(M>1&&(A=(E*=M)*E,P=(T*=M)*T),a(M=(A*P-A*L-P*j)/(A*L+P*j))<1e-12&&(M=0),M<0)throw new Error("Cannot create an arc with the given arguments");t=new y(E*O/T,-T*S/E).multiply((_===b?-1:1)*s(M)).rotate(m).add(w),n=(r=(i=(new C).translate(t).rotate(m).scale(E,T))._inverseTransform(c)).getDirectedAngle(i._inverseTransform(h)),!b&&n>0?n-=360:b&&n<0&&(n+=360)}if(d){var R=new k(c.add(d).divide(2),d.subtract(c).rotate(90),!0),I=new k(d.add(h).divide(2),h.subtract(d).rotate(90),!0),N=new k(c,h),F=N.getSide(d);if(!(t=R.intersect(I,!0))){if(!F)return this.lineTo(h);throw new Error("Cannot create an arc with the given arguments")}n=(r=c.subtract(t)).getDirectedAngle(h.subtract(t));var B=N.getSide(t,!0);0===B?n=F*a(n):F===B&&(n+=n<0?360:-360)}if(n){for(var U=1e-5,z=a(n),V=z>=360?4:Math.ceil((z-U)/90),H=n/V,W=H*Math.PI/360,G=4/3*Math.sin(W)/(1+Math.cos(W)),q=[],X=0;X<=V;X++){var Y=h,$=null;if(X<V&&($=r.rotate(90).multiply(G),i?(Y=i._transformPoint(r),$=i._transformPoint(r.add($)).subtract(Y)):Y=t.add(r)),X){var K=r.rotate(-90).multiply(G);i&&(K=i._transformPoint(r.add(K)).subtract(Y)),q.push(new D(Y,K,$))}else l.setHandleOut($);r=r.rotate(H)}this._add(q)}},lineBy:function(){var t=y.read(arguments),n=e(this)._point;this.lineTo(n.add(t))},curveBy:function(){var t=arguments,n=y.read(t),r=y.read(t),i=u.read(t),o=e(this)._point;this.curveTo(o.add(n),o.add(r),i)},cubicCurveBy:function(){var t=arguments,n=y.read(t),r=y.read(t),i=y.read(t),o=e(this)._point;this.cubicCurveTo(o.add(n),o.add(r),o.add(i))},quadraticCurveBy:function(){var t=arguments,n=y.read(t),r=y.read(t),i=e(this)._point;this.quadraticCurveTo(i.add(n),i.add(r))},arcBy:function(){var t=arguments,n=e(this)._point,r=n.add(y.read(t)),i=u.pick(u.peek(t),!0);"boolean"===typeof i?this.arcTo(r,i):this.arcTo(r,n.add(y.read(t)))},closePath:function(e){this.setClosed(!0),this.join(this,e)}}},{_getBounds:function(e,t){var n=t.handle?"getHandleBounds":t.stroke?"getStrokeBounds":"getBounds";return U[n](this._segments,this._closed,this,e,t)},statics:{getBounds:function(e,t,n,r,i,o){var a=e[0];if(!a)return new w;var s=new Array(6),l=a._transformCoordinates(r,new Array(6)),c=l.slice(0,2),u=c.slice(),h=new Array(2);function f(e){e._transformCoordinates(r,s);for(var t=0;t<2;
2t++)N._addBounds(l[t],l[t+4],s[t+2],s[t],t,o?o[t]:0,c,u,h);var n=l;l=s,s=n}for(var d=1,p=e.length;d<p;d++)f(e[d]);return t&&f(a),new w(c[0],c[1],u[0]-c[0],u[1]-c[1])},getStrokeBounds:function(e,t,n,r,i){var o=n.getStyle(),a=o.hasStroke(),s=o.getStrokeWidth(),l=a&&n._getStrokeMatrix(r,i),c=a&&U._getStrokePadding(s,l),u=U.getBounds(e,t,n,r,i,c);if(!a)return u;var h=s/2,f=o.getStrokeJoin(),d=o.getStrokeCap(),p=o.getMiterLimit(),g=new w(new x(c));function v(e){u=u.include(e)}function m(e){u=u.unite(g.setCenter(e._point.transform(r)))}function y(e,t){"round"===t||e.isSmooth()?m(e):U._addBevelJoin(e,t,h,p,r,l,v)}function b(e,t){"round"===t?m(e):U._addSquareCap(e,t,h,r,l,v)}var _=e.length-(t?0:1);if(_>0){for(var S=1;S<_;S++)y(e[S],f);t?y(e[0],f):(b(e[0],d),b(e[e.length-1],d))}return u},_getStrokePadding:function(e,t){if(!t)return[e,e];var n=new y(e,0).transform(t),r=new y(0,e).transform(t),i=n.getAngleInRadians(),o=n.getLength(),a=r.getLength(),s=Math.sin(i),l=Math.cos(i),c=Math.tan(i),u=Math.atan2(a*c,o),h=Math.atan2(a,c*o);return[Math.abs(o*Math.cos(u)*l+a*Math.sin(u)*s),Math.abs(a*Math.sin(h)*l+o*Math.cos(h)*s)]},_addBevelJoin:function(e,t,n,r,i,o,a,s){var l=e.getCurve(),c=l.getPrevious(),u=l.getPoint1().transform(i),h=c.getNormalAtTime(1).multiply(n).transform(o),f=l.getNormalAtTime(0).multiply(n).transform(o),d=h.getDirectedAngle(f);if((d<0||d>=180)&&(h=h.negate(),f=f.negate()),s&&a(u),a(u.add(h)),"miter"===t){var p=new k(u.add(h),new y(-h.y,h.x),!0).intersect(new k(u.add(f),new y(-f.y,f.x),!0),!0);p&&u.getDistance(p)<=r*n&&a(p)}a(u.add(f))},_addSquareCap:function(e,t,n,r,i,o,a){var s=e._point.transform(r),l=e.getLocation(),c=l.getNormal().multiply(0===l.getTime()?n:-n).transform(i);"square"===t&&(a&&(o(s.subtract(c)),o(s.add(c))),s=s.add(c.rotate(-90))),o(s.add(c)),o(s.subtract(c))},getHandleBounds:function(e,t,n,r,i){var o,a,s=n.getStyle();if(i.stroke&&s.hasStroke()){var l=n._getStrokeMatrix(r,i),c=s.getStrokeWidth()/2,u=c;"miter"===s.getStrokeJoin()&&(u=c*s.getMiterLimit()),"square"===s.getStrokeCap()&&(u=Math.max(u,c
2*Math.SQRT2)),o=U._getStrokePadding(c,l),a=U._getStrokePadding(u,l)}for(var h=new Array(6),f=1/0,d=-f,p=f,g=d,v=0,m=e.length;v<m;v++){e[v]._transformCoordinates(r,h);for(var y=0;y<6;y+=2){var b=y?o:a,x=b?b[0]:0,_=b?b[1]:0,S=h[y],C=h[y+1],k=S-x,O=S+x,E=C-_,T=C+_;k<f&&(f=k),O>d&&(d=O),E<p&&(p=E),T>g&&(g=T)}}return new w(f,p,d-f,g-p)}}});U.inject({statics:new function(){var e=.5522847498307936,t=[new D([-1,0],[0,e],[0,-e]),new D([0,-1],[-e,0],[e,0]),new D([1,0],[0,-e],[0,e]),new D([0,1],[e,0],[-e,0])];function n(e,t,n){var r=u.getNamed(n),i=new U(r&&(1==r.insert?E.INSERT:0==r.insert?E.NO_INSERT:null));return i._add(e),i._closed=t,i.set(r,E.INSERT)}function r(e,r,i){for(var o=new Array(4),a=0;a<4;a++){var s=t[a];o[a]=new D(s._point.multiply(r).add(e),s._handleIn.multiply(r),s._handleOut.multiply(r))}return n(o,!0,i)}return{Line:function(){var e=arguments;return n([new D(y.readNamed(e,"from")),new D(y.readNamed(e,"to"))],!1,e)},Circle:function(){var e=arguments,t=y.readNamed(e,"center"),n=u.readNamed(e,"radius");return r(t,new x(n),e)},Rectangle:function(){var t,r=arguments,i=w.readNamed(r,"rectangle"),o=x.readNamed(r,"radius",0,{readNull:!0}),a=i.getBottomLeft(!0),s=i.getTopLeft(!0),l=i.getTopRight(!0),c=i.getBottomRight(!0);if(!o||o.isZero())t=[new D(a),new D(s),new D(l),new D(c)];else{var u=(o=x.min(o,i.getSize(!0).divide(2))).width,h=o.height,f=u*e,d=h*e;t=[new D(a.add(u,0),null,[-f,0]),new D(a.subtract(0,h),[0,d]),new D(s.add(0,h),null,[0,-d]),new D(s.add(u,0),[-f,0],null),new D(l.subtract(u,0),null,[f,0]),new D(l.add(0,h),[0,-d],null),new D(c.subtract(0,h),null,[0,d]),new D(c.subtract(u,0),[f,0])]}return n(t,!0,r)},RoundRectangle:"#Rectangle",Ellipse:function(){var e=arguments,t=P._readEllipse(e);return r(t.center,t.radius,e)},Oval:"#Ellipse",Arc:function(){var e=arguments,t=y.readNamed(e,"from"),n=y.readNamed(e,"through"),r=y.readNamed(e,"to"),i=u.getNamed(e),o=new U(i&&0==i.insert&&E.NO_INSERT);return o.moveTo(t),o.arcTo(n,r),o.set(i)},RegularPolygon:function(){for(var e=arguments,t=y.readNamed(e,"center"),r=u.readNamed(e,"sides"),i=u.readNamed(e,"radius"),o=360/r,a=r%3===0,s=new y(0,a?-i:i),l=a?-1:.5,c=new Array(r),h=0;h<r;h++)c[h]=new D(t.add(s.rotate((h+l)*o)));return n(c,!0,e)},Star:function(){for(var e=arguments,t=y.readNamed(e,"center"),r=2*u.readNamed(e,"points"),i=u.readNamed(e,"radius1"),o=u.readNamed(e,"radius2"),a=360/r,s=new y(0,-1),l=new Array(r),c=0;c<r;c++)l[c]=new D(t.add(s.rotate(a*c).multiply(c%2?o:i)));return n(l,!0,e)}}}});
2var z=B.extend({_class:"CompoundPath",_serializeFields:{children:[]},beans:!0,initialize:function(e){this._children=[],this._namedChildren={},this._initialize(e)||("string"===typeof e?this.setPathData(e):this.addChildren(Array.isArray(e)?e:arguments))},insertChildren:function e(t,n){var r=n,i=r[0];i&&"number"===typeof i[0]&&(r=[r]);for(var o=n.length-1;o>=0;o--){var a=r[o];r!==n||a instanceof U||(r=u.slice(r)),Array.isArray(a)?r[o]=new U({segments:a,insert:!1}):a instanceof z&&(r.splice.apply(r,[o,1].concat(a.removeChildren())),a.remove())}return e.base.call(this,t,r)},reduce:function e(t){for(var n=this._children,r=n.length-1;r>=0;r--){var i;(i=n[r].reduce(t)).isEmpty()&&i.remove()}return n.length?e.base.call(this):((i=new U(E.NO_INSERT)).copyAttributes(this),i.insertAbove(this),this.remove(),i)},isClosed:function(){for(var e=this._children,t=0,n=e.length;t<n;t++)if(!e[t]._closed)return!1;return!0},setClosed:function(e){for(var t=this._children,n=0,r=t.length;n<r;n++)t[n].setClosed(e)},getFirstSegment:function(){var e=this.getFirstChild();return e&&e.getFirstSegment()},getLastSegment:function(){var e=this.getLastChild();return e&&e.getLastSegment()},getCurves:function(){for(var e=this._children,t=[],n=0,r=e.length;n<r;n++)u.push(t,e[n].getCurves());return t},getFirstCurve:function(){var e=this.getFirstChild();return e&&e.getFirstCurve()},getLastCurve:function(){var e=this.getLastChild();return e&&e.getLastCurve()},getArea:function(){for(var e=this._children,t=0,n=0,r=e.length;n<r;n++)t+=e[n].getArea();return t},getLength:function(){for(var e=this._children,t=0,n=0,r=e.length;n<r;n++)t+=e[n].getLength();return t},getPathData:function(e,t){for(var n=this._children,r=[],i=0,o=n.length;i<o;i++){var a=n[i],s=a._matrix;r.push(a.getPathData(e&&!s.isIdentity()?e.appended(s):e,t))}return r.join("")},_hitTestChildren:function e(t,n,r){return e.base.call(this,t,n.class===U||"path"===n.type?n:u.set({},n,{fill:!1}),r)},_draw:function(e,t,n,r){var i=this._children;if(i.length){t=t.extend({dontStart:!0,dontFinish:!0}),e.beginPath();for(var o=0,a=i.length;o<a;o++)i[o].draw(e,t,r);if(!t.clip){this._setStyles(e,t,n);var s=this._style;s.hasFill()&&(e.fill(s.getFillRule()),e.shadowColor="rgba(0,0,0,0)"),s.hasStroke()&&e.stroke()}}},_drawSelected:function(e,t,n){for(var r=this._children,i=0,o=r.length;i<o;i++){var a=r[i],s=a._matrix;n[a._id]||a._drawSelected(e,s.isIdentity()?t:t.appended(s))}}},new function(){function e(e,t){var n=e._children;if(t&&!n.length)throw new Error("Use a moveTo() command first");return n[n.length-1]}return u.each(["lineTo","cubicCurveTo","quadraticCurveTo","curveTo","arcTo","lineBy","cubicCurveBy","quadraticCurveBy","curveBy","arcBy"],(function(t){this[t]=function(){var n=e(this,!0);n[t].apply(n,arguments)}}),{moveTo:function(){var t=e(this),n=t&&t.isEmpty()?t:new U(E.NO_INSERT);n!==t&&this.addChild(n),n.moveTo.apply(n,arguments)},moveBy:function(){var t=e(this,!0),n=t&&t.getLastSegment(),r=y.read(arguments);this.moveTo(n?r.add(n._point):r)},closePath:function(t){e(this,!0).closePath(t)}})},u.each(["reverse","flatten","simplify","smooth"],(function(e){this[e]=function(t){for(var n,r=this._children,i=0,o=r.length;i<o;i++)n=r[i][e](t)||n;return n}}),{}));B.inject(new function(){var e=Math.min,t=Math.max,n=Math.abs,r={unite:{1:!0,2:!0},intersect:{2:!0},subtract:{1:!0},exclude:{1:!0,"-1":!0}};function i(e){return e._children||[e]}function o(e,t){var n=e.clone(!1).reduce({simplify:!0}).transform(null,!0,!0);if(t){for(var r=i(n),o=0,a=r.length;o<a;o++){(e=r[o])._closed||e.isEmpty()||(e.closePath(1e-12),e.getFirstSegment().setHandleIn(0,0),e.getLastSegment().setHandleOut(0,0))}n=n.resolveCrossings().reorient("nonzero"===n.getFillRule(),!0)}return n}function a(e,t,n,r,i){var o=new z(E.NO_INSERT);return o.addChildren(e,!0),o=o.reduce({simplify:t}),i&&0==i.insert||o.insertAbove(r&&n.isSibling(r)&&n.getIndex()<r.getIndex()?r:n),o.copyAttributes(n,!0),o}function l(e){return e.hasOverlap()||e.isCrossing()}function c(e,t,n,s){if(s&&(0==s.trace||s.stroke)&&/^(subtract|intersect)$/.test(n))return h(e,t,n);var c=o(e,!0),f=t&&e!==t&&o(t,!0),d=r[n];d[n]=!0,f&&(d.subtract||d.exclude)^f.isClockwise()^c.isClockwise()&&f.reverse();var v,y=m(F.expand(c.getIntersections(f,l))),_=i(c),w=f&&i(f),S=[],C=[];function k(e){for(var t=0,n=e.length;t<n;t++){var r=e[t];u.push(S,r._segments),u.push(C,r.getCurves()),r._overlapsOnly=!0}}function O(e){for(var t=[],n=0,r=e&&e.length;n<r;n++)t.push(C[e[n]]);return t}if(y.length){k(_),w&&k(w);for(var E=new Array(C.length),T=0,A=C.length;T<A;T++)E[T]=C[T].getValues();var P=p.findCurveBoundsCollisions(E,E,0,!0),j={};for(T=0;T<C.length;T++){var L=C[T],M=L._path._id;(j[M]=j[M]||{})[L.getIndex()]={hor:O(P[T].hor),ver:O(P[T].ver)}}for(T=0,A=y.length;T<A;T++)b(y[T]._segment,c,f,j,d);for(T=0,A=S.length;T<A;T++){var R=S[T],D=R._intersection;R._winding||b(R,c,f,j,d),D&&D._overlap||(R._path._overlapsOnly=!1)}v=x(S,d)}else v=g(w?_.concat(w):_.slice(),(function(e){return!!d[e]}));return a(v,!0,e,t,s)}function h(e,t,n){var r=o(e),i=o(t),s=r.getIntersections(i,l),c="subtract"===n,u="divide"===n,h={},f=[];function d(e){if(!h[e._id]&&(u||i.contains(e.getPointAt(e.getLength()/2))^c))return f.unshift(e),h[e._id]=!0}for(var p=s.length-1;p>=0;p--){var g=s[p].split();g&&(d(g)&&g.getFirstSegment().setHandleIn(0,0),r.getLastSegment().setHandleOut(0,0))}return d(r),a(f,!1,e,t)}function f(e,t){for(var n=e;n;){if(n===t)return;n=n._previous}for(;e._next&&e._next!==t;)e=e._next;if(!e._next){for(;t._previous;)t=t._previous;e._next=t,t._previous=e}}function d(e){for(var t=e.length-1;t>=0;t--)e[t].clearHandles()}function g(e,t,r){var i=e&&e.length;if(i){var o=u.each(e,(function(e,t){this[e._id]={container:null,winding:e.isClockwise()?1:-1,index:t}}),{}),a=e.slice().sort((function(e,t){return n(t.getArea())-n(e.getArea())})),s=a[0],l=p.findItemBoundsCollisions(a,null,v.GEOMETRIC_EPSILON);null==r&&(r=s.isClockwise());for(var c=0;c<i;
2c++){var h=a[c],f=o[h._id],d=0,g=l[c];if(g)for(var m=null,y=g.length-1;y>=0;y--)if(g[y]<c){m=m||h.getInteriorPoint();var b=a[g[y]];if(b.contains(m)){var x=o[b._id];d=x.winding,f.winding+=d,f.container=x.exclude?x.container:b;break}}if(t(f.winding)===t(d))f.exclude=!0,e[f.index]=null;else{var _=f.container;h.setClockwise(_?!_.isClockwise():r)}}}return e}function m(e,t,n){var r,i,o,a=t&&[],s=1e-8,l=!1,c=n||[],u=n&&{};function h(e){return e._path._id+"."+e._segment1._index}for(var p=(n&&n.length)-1;p>=0;p--){(g=n[p])._path&&(u[h(g)]=!0)}for(p=e.length-1;p>=0;p--){var g,v,m=e[p],y=m._time,b=y,x=t&&!t(m);if((g=m._curve)&&(g!==i?(l=!g.hasHandles()||u&&u[h(g)],r=[],o=null,i=g):o>=s&&(y/=o)),x)r&&r.push(m);else{if(t&&a.unshift(m),o=b,y<s)v=g._segment1;else if(y>.99999999)v=g._segment2;else{var _=g.divideAtTime(y,!0);l&&c.push(g,_),v=_._segment1;for(var w=r.length-1;w>=0;w--){var S=r[w];S._time=(S._time-y)/(1-y)}}m._setSegment(v);var C=v._intersection,k=m._intersection;if(C){f(C,k);for(var O=C;O;)f(O._intersection,C),O=O._next}else v._intersection=k}}return n||d(c),a||e}function y(r,i,o,a,s){var l,c,u=Array.isArray(i)?i:i[o?"hor":"ver"],h=o?1:0,f=1^h,d=[r.x,r.y],p=d[h],g=d[f],v=1e-6,m=p-1e-9,b=p+1e-9,x=0,_=0,w=0,S=0,C=!1,k=!1,O=1,E=[];function T(n){var c=n[f+0],u=n[f+6];if(!(g<e(c,u)||g>t(c,u))){var d=n[h+0],x=n[h+2],_=n[h+4],k=n[h+6];if(c!==u){var T=g===c?0:g===u||m>t(d,x,_,k)||b<e(d,x,_,k)?1:N.solveCubic(n,f,g,E,0,1)>0?E[0]:1,A=0===T?d:1===T?k:N.getPoint(n,T)[o?"y":"x"],P=c>u?1:-1,j=l[f]>l[f+6]?1:-1,L=l[h+6];return g!==c?(A<m?w+=P:A>b?S+=P:C=!0,A>p-v&&A<p+v&&(O/=2)):(P!==j?d<m?w+=P:d>b&&(S+=P):d!=L&&(L<b&&A>b?(S+=P,C=!0):L>m&&A<m&&(w+=P,C=!0)),O/=4),l=n,!s&&A>m&&A<b&&0===N.getTangent(n,T)[o?"x":"y"]&&y(r,i,!o,a,!0)}(d<b&&k>m||k<b&&d>m)&&(C=!0)}}function A(n){var r=n[f+0],i=n[f+2],a=n[f+4],s=n[f+6];if(g<=t(r,i,a,s)&&g>=e(r,i,a,s))for(var l,c=n[h+0],u=n[h+2],d=n[h+4],p=n[h+6],v=m>t(c,u,d,p)||b<e(c,u,d,p)?[n]:N.getMonoCurves(n,o),y=0,x=v.length;y<x;y++)if(l=T(v[y]))return l}for(var P=0,j=u.length;P<j;P++){var L,M=u[P],R=M._path,D=M.getValues();if((!P||u[P-1]._path!==R)&&(l=null,R._closed||(c=N.getValues(R.getLastCurve().getSegment2(),M.getSegment1(),null,!a))[f]!==c[f+6]&&(l=c),!l)){l=D;for(var I=R.getLastCurve();I&&I!==M;){var F=I.getValues();if(F[f]!==F[f+6]){l=F;break}I=I.getPrevious()}}if(L=A(D))return L;if(P+1===j||u[P+1]._path!==R){if(c&&(L=A(c)))return L;!C||w||S||(w=S=R.isClockwise(a)^o?1:-1),x+=w,_+=S,w=S=0,C&&(k=!0,C=!1),c=null}}return x=n(x),_=n(_),{winding:t(x,_),windingL:x,windingR:_,quality:O,onPath:k}}function b(e,t,r,i,o){var a=[],s=e,l=0;do{if(b=e.getCurve()){var c=b.getLength();a.push({segment:e,curve:b,length:c}),l+=c}e=e.getNext()}while(e&&!e._intersection&&e!==s);for(var u=[.5,.25,.75],h={winding:0,quality:-1},f=0;f<u.length&&h.quality<.5;f++){c=l*u[f];for(var d=0,p=a.length;d<p;d++){var g=a[d],m=g.length;if(c<=m){var b,x=(b=g.curve)._path,_=x._parent,w=_ instanceof z?_:x,S=v.clamp(b.getTimeAt(c),.001,.999),C=b.getPointAtTime(S),k=n(b.getTangentAtTime(S).y)<Math.SQRT1_2,O=null;if(o.subtract&&r){var E=(w===t?r:t)._getWinding(C,k,!0);if(w===t&&E.winding||w===r&&!E.winding){if(E.quality<1)continue;O={winding:0,quality:1}}}(O=O||y(C,i[x._id][b.getIndex()],k,!0)).quality>h.quality&&(h=O);break}c-=m}}for(d=a.length-1;d>=0;d--)a[d].segment._winding=h}function x(e,t){var n,r=[];function i(e){var n;return!(!e||e._visited||t&&(!t[(n=e._winding||{}).winding]||t.unite&&2===n.winding&&n.windingL&&n.windingR))}function o(e){if(e)for(var t=0,r=n.length;t<r;t++)if(e===n[t])return!0;return!1}function a(e){for(var t=e._segments,n=0,r=t.length;n<r;n++)t[n]._visited=!0}function s(e,t){var r=e._intersection,a=r,s=[];function l(r,a){for(;r&&r!==a;){var l=r._segment,c=l&&l._path;if(c){var u=l.getNext()||c.getFirstSegment(),h=u._intersection;l!==e&&(o(l)||o(u)||u&&i(l)&&(i(u)||h&&i(h._segment)))&&s.push(l),t&&n.push(l)}r=r._next}}if(t&&(n=[e]),r){for(l(r);r&&r._previous;)r=r._previous;l(r,a)}return s}e.sort((function(e,t){var n=e._intersection,r=t._intersection,i=!(!n||!n._overlap),o=!(!r||!r._overlap),a=e._path,s=t._path;return i^o?i?1:-1:!n^!r?n?1:-1:a!==s?a._id-s._id:e._index-t._index}));for(var l=0,c=e.length;l<c;l++){var u,h,f,d=e[l],p=i(d),g=null,v=!1,m=!0,y=[];if(p&&d._path._overlapsOnly){var b=d._path,x=d._intersection._segment._path;b.compare(x)&&(b.getArea()&&r.push(b.clone(!1)),a(b),a(x),p=!1)}for(;p;){var _=!g,w=s(d,_),S=w.shift(),C=!(v=!_&&(o(d)||o(S)))&&S;
2if(_&&(g=new U(E.NO_INSERT),u=null),v){(d.isFirst()||d.isLast())&&(m=d._path._closed),d._visited=!0;break}if(C&&u&&(y.push(u),u=null),u||(C&&w.push(d),u={start:g._segments.length,crossings:w,visited:h=[],handleIn:f}),C&&(d=S),!i(d)){g.removeSegments(u.start);for(var k=0,O=h.length;k<O;k++)h[k]._visited=!1;h.length=0;do{(d=u&&u.crossings.shift())&&d._path||(d=null,(u=y.pop())&&(h=u.visited,f=u.handleIn))}while(u&&!i(d));if(!d)break}var T=d.getNext();g.add(new D(d._point,f,T&&d._handleOut)),d._visited=!0,h.push(d),d=T||d._path.getFirstSegment(),f=T&&T._handleIn}v&&(m&&(g.getFirstSegment().setHandleIn(f),g.setClosed(m)),0!==g.getArea()&&r.push(g))}return r}return{_getWinding:function(e,t,n){return y(e,this.getCurves(),t,n)},unite:function(e,t){return c(this,e,"unite",t)},intersect:function(e,t){return c(this,e,"intersect",t)},subtract:function(e,t){return c(this,e,"subtract",t)},exclude:function(e,t){return c(this,e,"exclude",t)},divide:function(e,t){return t&&(0==t.trace||t.stroke)?h(this,e,"divide"):a([this.subtract(e,t),this.intersect(e,t)],!0,this,e,t)},resolveCrossings:function(){var e=this._children,t=e||[this];function n(e,t){var n=e&&e._intersection;return n&&n._overlap&&n._path===t}var r=!1,i=!1,o=this.getIntersections(null,(function(e){return e.hasOverlap()&&(r=!0)||e.isCrossing()&&(i=!0)})),a=r&&i&&[];
2if(o=F.expand(o),r)for(var s=m(o,(function(e){return e.hasOverlap()}),a),l=s.length-1;l>=0;l--){var c=s[l],h=c._path,f=c._segment,p=f.getPrevious(),g=f.getNext();n(p,h)&&n(g,h)&&(f.remove(),p._handleOut._set(0,0),g._handleIn._set(0,0),p===f||p.getCurve().hasLength()||(g._handleIn.set(p._handleIn),p.remove()))}i&&(m(o,r&&function(e){var t=e.getCurve(),n=e.getSegment(),r=e._intersection,i=r._curve,o=r._segment;if(t&&i&&t._path&&i._path)return!0;n&&(n._intersection=null),o&&(o._intersection=null)},a),a&&d(a),t=x(u.each(t,(function(e){u.push(this,e._segments)}),[])));var v,y=t.length;return y>1&&e?(t!==e&&this.setChildren(t),v=this):1!==y||e||(t[0]!==this&&this.setSegments(t[0].removeSegments()),v=this),v||((v=new z(E.NO_INSERT)).addChildren(t),(v=v.reduce()).copyAttributes(this),this.replaceWith(v)),v},reorient:function(e,t){var n=this._children;return n&&n.length?this.setChildren(g(this.removeChildren(),(function(t){return!!(e?t:1&t)}),t)):t!==s&&this.setClockwise(t),this},getInteriorPoint:function(){var n=this.getBounds().getCenter(!0);if(!this.contains(n)){for(var r=this.getCurves(),i=n.y,o=[],a=[],s=0,l=r.length;s<l;s++){var c=r[s].getValues(),u=c[1],h=c[3],f=c[5],d=c[7];if(i>=e(u,h,f,d)&&i<=t(u,h,f,d))for(var p=N.getMonoCurves(c),g=0,v=p.length;g<v;g++){var m=p[g],y=m[1],b=m[7];if(y!==b&&(i>=y&&i<=b||i>=b&&i<=y)){var x=i===y?m[0]:i===b?m[6]:1===N.solveCubic(m,1,i,a,0,1)?N.getPoint(m,a[0]).x:(m[0]+m[6])/2;o.push(x)}}}o.length>1&&(o.sort((function(e,t){return e-t})),n.x=(o[0]+o[1])/2)}return n}}});var V=u.extend({_class:"PathFlattener",initialize:function(e,t,n,r,i){var o,a=[],s=[],l=0,c=1/(n||32),u=e._segments,h=u[0];function f(e,t){var n=N.getValues(e,t,i);a.push(n),d(n,e._index,0,1)}function d(e,n,i,o){if(!(o-i>c)||r&&N.isStraight(e)||N.isFlatEnough(e,t||.25)){var a=e[6]-e[0],u=e[7]-e[1],h=Math.sqrt(a*a+u*u);h>0&&(l+=h,s.push({offset:l,curve:e,index:n,time:o}))}else{var f=N.subdivide(e,.5),p=(i+o)/2;d(f[0],n,i,p),d(f[1],n,p,o)}}for(var p=1,g=u.length;p<g;p++)f(h,o=u[p]),h=o;e._closed&&f(o||h,u[0]),this.curves=a,this.parts=s,this.length=l,this.index=0},_get:function(e){for(var t,n=this.parts,r=n.length,i=this.index;t=i,i&&!(n[--i].offset<e););for(;t<r;t++){var o=n[t];if(o.offset>=e){this.index=t;var a=n[t-1],s=a&&a.index===o.index?a.time:0,l=a?a.offset:0;return{index:o.index,time:s+(o.time-s)*(e-l)/(o.offset-l)}}}return{index:n[r-1].index,time:1}},drawPart:function(e,t,n){for(var r=this._get(t),i=this._get(n),o=r.index,a=i.index;o<=a;o++){var s=N.getPart(this.curves[o],o===r.index?r.time:0,o===i.index?i.time:1);o===r.index&&e.moveTo(s[0],s[1]),e.bezierCurveTo.apply(e,s.slice(2))}}},u.each(N._evaluateMethods,(function(e){this[e+"At"]=function(t){var n=this._get(t);return N[e](this.curves[n.index],n.time)}}),{})),H=u.extend({initialize:function(e){for(var t,n=this.points=[],r=e._segments,i=e._closed,o=0,a=r.length;o<a;o++){var s=r[o].point;t&&t.equals(s)||n.push(t=s.clone())}i&&(n.unshift(n[n.length-1]),n.push(n[1])),this.closed=i},fit:function(e){var t=this.points,n=t.length,r=null;return n>0&&(r=[new D(t[0])],n>1&&(this.fitCubic(r,e,0,n-1,t[1].subtract(t[0]),t[n-2].subtract(t[n-1])),this.closed&&(r.shift(),r.pop()))),r},fitCubic:function(e,t,n,r,i,o){var a=this.points;if(r-n!==1){for(var s,l=this.chordLengthParameterize(n,r),c=Math.max(t,t*t),u=!0,h=0;h<=4;h++){var f=this.generateBezier(n,r,l,i,o),d=this.findMaxError(n,r,f,l);if(d.error<t&&u)return void this.addCurve(e,f);if(s=d.index,d.error>=c)break;u=this.reparameterize(n,r,l,f),c=d.error}var p=a[s-1].subtract(a[s+1]);this.fitCubic(e,t,n,s,i,p),this.fitCubic(e,t,s,r,p.negate(),o)}else{var g=a[n],v=a[r],m=g.getDistance(v)/3;this.addCurve(e,[g,g.add(i.normalize(m)),v.add(o.normalize(m)),v])}},addCurve:function(e,t){e[e.length-1].setHandleOut(t[1].subtract(t[0])),e.push(new D(t[3],t[2].subtract(t[3])))},generateBezier:function(e,t,n,r,i){for(var o=1e-12,a=Math.abs,s=this.points,l=s[e],c=s[t],u=[[0,0],[0,0]],h=[0,0],f=0,d=t-e+1;f<d;f++){var p=n[f],g=1-p,v=3*p*g,m=g*g*g,y=v*g,b=v*p,x=p*p*p,_=r.normalize(y),w=i.normalize(b),S=s[e+f].subtract(l.multiply(m+y)).subtract(c.multiply(b+x));u[0][0]+=_.dot(_),u[0][1]+=_.dot(w),u[1][0]=u[0][1],u[1][1]+=w.dot(w),h[0]+=_.dot(S),h[1]+=w.dot(S)}var C,k,O=u[0][0]*u[1][1]-u[1][0]*u[0][1];if(a(O)>o){var E=u[0][0]*h[1]-u[1][0]*h[0];C=(h[0]*u[1][1]-h[1]*u[0][1])/O,k=E/O}else{var T=u[0][0]+u[0][1],A=u[1][0]+u[1][1];C=k=a(T)>o?h[0]/T:a(A)>o?h[1]/A:0}var P,j,L=c.getDistance(l),M=o*L;if(C<M||k<M)C=k=L/3;else{var R=c.subtract(l);P=r.normalize(C),j=i.normalize(k),P.dot(R)-j.dot(R)>L*L&&(C=k=L/3,P=j=null)}return[l,l.add(P||r.normalize(C)),c.add(j||i.normalize(k)),c]},reparameterize:function(e,t,n,r){for(var i=e;i<=t;i++)n[i-e]=this.findRoot(r,this.points[i],n[i-e]);i=1;for(var o=n.length;i<o;i++)if(n[i]<=n[i-1])return!1;return!0},findRoot:function(e,t,n){for(var r=[],i=[],o=0;o<=2;o++)r[o]=e[o+1].subtract(e[o]).multiply(3);for(o=0;o<=1;o++)i[o]=r[o+1].subtract(r[o]).multiply(2);var a=this.evaluate(3,e,n),s=this.evaluate(2,r,n),l=this.evaluate(1,i,n),c=a.subtract(t),u=s.dot(s)+c.dot(l);return v.isMachineZero(u)?n:n-c.dot(s)/u},evaluate:function(e,t,n){for(var r=t.slice(),i=1;i<=e;i++)for(var o=0;o<=e-i;o++)r[o]=r[o].multiply(1-n).add(r[o+1].multiply(n));return r[0]},chordLengthParameterize:function(e,t){for(var n=[0],r=e+1;r<=t;r++)n[r-e]=n[r-e-1]+this.points[r].getDistance(this.points[r-1]);r=1;for(var i=t-e;r<=i;r++)n[r]/=n[i];return n},findMaxError:function(e,t,n,r){for(var i=Math.floor((t-e+1)/2),o=0,a=e+1;a<t;a++){var s=this.evaluate(3,n,r[a-e]).subtract(this.points[a]),l=s.x*s.x+s.y*s.y;l>=o&&(o=l,i=a)}return{error:o,index:i}}}),W=E.extend({_class:"TextItem",_applyMatrix:!1,_canApplyMatrix:!1,_serializeFields:{content:null},_boundsOptions:{stroke:!1,handle:!1},initialize:function(e){this._content="",this._lines=[];var t=e&&u.isPlainObject(e)&&e.x===s&&e.y===s;this._initialize(t&&e,!t&&y.read(arguments))},_equals:function(e){return this._content===e._content},copyContent:function(e){this.setContent(e._content)},getContent:function(){return this._content},setContent:function(e){this._content=""+e,this._lines=this._content.split(/\r\n|\n|\r/gm),this._changed(521)},isEmpty:function(){return!this._content},getCharacterStyle:"#getStyle",setCharacterStyle:"#setStyle",getParagraphStyle:"#getStyle",setParagraphStyle:"#setStyle"}),G=W.extend({_class:"PointText",initialize:function(){W.apply(this,arguments)},getPoint:function(){var e=this._matrix.getTranslation();return new b(e.x,e.y,this,"setPoint")},setPoint:function(){var e=y.read(arguments);this.translate(e.subtract(this._matrix.getTranslation()))}
2,_draw:function(e,t,n){if(this._content){this._setStyles(e,t,n);var r=this._lines,i=this._style,o=i.hasFill(),a=i.hasStroke(),s=i.getLeading(),l=e.shadowColor;e.font=i.getFontStyle(),e.textAlign=i.getJustification();for(var c=0,u=r.length;c<u;c++){e.shadowColor=l;var h=r[c];o&&(e.fillText(h,0,0),e.shadowColor="rgba(0,0,0,0)"),a&&e.strokeText(h,0,0),e.translate(0,s)}}},_getBounds:function(e,t){var n=this._style,r=this._lines,i=r.length,o=n.getJustification(),a=n.getLeading(),s=this.getView().getTextWidth(n.getFontStyle(),r),l=0;"left"!==o&&(l-=s/("center"===o?2:1));var c=new w(l,i?-.75*a:0,s,i*a);return e?e._transformBounds(c,c):c}}),q=u.extend(new function(){var e,t={gray:["gray"],rgb:["red","green","blue"],hsb:["hue","saturation","brightness"],hsl:["hue","saturation","lightness"],gradient:["gradient","origin","destination","highlight"]},n={},r={transparent:[0,0,0,0]};function i(t){var n,i=t.match(/^#([\da-f]{2})([\da-f]{2})([\da-f]{2})([\da-f]{2})?$/i)||t.match(/^#([\da-f])([\da-f])([\da-f])([\da-f])?$/i),o="rgb";if(i){var a=i[4]?4:3;n=new Array(a);for(var s=0;s<a;s++){var c=i[s+1];n[s]=parseInt(1==c.length?c+c:c,16)/255}}else if(i=t.match(/^(rgb|hsl)a?\((.*)\)$/)){o=i[1],n=i[2].trim().split(/[,\s]+/g);for(var u="hsl"===o,h=(s=0,Math.min(n.length,4));s<h;s++){var f=n[s];c=parseFloat(f);if(u)if(0===s){var d=f.match(/([a-z]*)$/)[1];c*={turn:360,rad:180/Math.PI,grad:.9}[d]||1}else s<3&&(c/=100);else s<3&&(c/=/%$/.test(f)?100:255);n[s]=c}}else{var p=r[t];if(!p)if(l){e||((e=le.getContext(1,1,{willReadFrequently:!0})).globalCompositeOperation="copy"),e.fillStyle="rgba(0,0,0,0)",e.fillStyle=t,e.fillRect(0,0,1,1);var g=e.getImageData(0,0,1,1).data;p=r[t]=[g[0]/255,g[1]/255,g[2]/255]}else p=[0,0,0];n=p.slice()}return[o,n]}var o=[[0,3,1],[2,0,1],[1,0,3],[1,2,0],[3,1,0],[0,1,2]],a={"rgb-hsb":function(e,t,n){var r=Math.max(e,t,n),i=r-Math.min(e,t,n);return[0===i?0:60*(r==e?(t-n)/i+(t<n?6:0):r==t?(n-e)/i+2:(e-t)/i+4),0===r?0:i/r,r]},"hsb-rgb":function(e,t,n){var r,i=(e=(e/60%6+6)%6)-(r=Math.floor(e)),a=[n,n*(1-t),n*(1-t*i),n*(1-t*(1-i))];return[a[(r=o[r])[0]],a[r[1]],a[r[2]]]},"rgb-hsl":function(e,t,n){var r=Math.max(e,t,n),i=Math.min(e,t,n),o=r-i,a=0===o,s=(r+i)/2;return[a?0:60*(r==e?(t-n)/o+(t<n?6:0):r==t?(n-e)/o+2:(e-t)/o+4),a?0:s<.5?o/(r+i):o/(2-r-i),s]},"hsl-rgb":function(e,t,n){if(0===t)return[n,n,n];for(var r=[(e=(e/360%1+1)%1)+1/3,e,e-1/3],i=n<.5?n*(1+t):n+t-n*t,o=2*n-i,a=[],s=0;s<3;s++){var l=r[s];l<0&&(l+=1),l>1&&(l-=1),a[s]=6*l<1?o+6*(i-o)*l:2*l<1?i:3*l<2?o+(i-o)*(2/3-l)*6:o}return a},"rgb-gray":function(e,t,n){return[.2989*e+.587*t+.114*n]},"gray-rgb":function(e){return[e,e,e]},"gray-hsb":function(e){return[0,0,e]},"gray-hsl":function(e){return[0,0,e]},"gradient-rgb":function(){return[]},"rgb-gradient":function(){return[]}};return u.each(t,(function(e,r){n[r]=[],u.each(e,(function(e,i){var o=u.capitalize(e),a=/^(hue|saturation)$/.test(e),s=n[r][i]="gradient"===r?"gradient"===e?function(e){var t=this._components[0];return t!==(e=X.read(Array.isArray(e)?e:arguments,0,{readNull:!0}))&&(t&&t._removeOwner(this),e&&e._addOwner(this)),e}:function(){return y.read(arguments,0,{readNull:"highlight"===e,clone:!0})}:function(e){return null==e||isNaN(e)?0:+e};this["get"+o]=function(){return this._type===r||a&&/^hs[bl]$/.test(this._type)?this._components[i]:this._convert(r)[i]},this["set"+o]=function(e){this._type===r||a&&/^hs[bl]$/.test(this._type)||(this._components=this._convert(r),this._properties=t[r],this._type=r),this._components[i]=s.call(this,e),this._changed()}}),this)}),{_class:"Color",_readIndex:!0,initialize:function e(r){var o,a,s,l,c=arguments,h=this.__read,f=0;Array.isArray(r)&&(r=(c=r)[0]);var d=null!=r&&typeof r;if("string"===d&&r in t&&(o=r,r=c[1],Array.isArray(r)?(a=r,s=c[2]):(h&&(f=1),c=u.slice(c,1),d=typeof r)),!a){if(l="number"===d?c:"object"===d&&null!=r.length?r:null){o||(o=l.length>=3?"rgb":"gray");var p=t[o].length;s=l[p],h&&(f+=l===arguments?p+(null!=s?1:0):1),l.length>p&&(l=u.slice(l,0,p))}else if("string"===d){var g=i(r);o=g[0],4===(a=g[1]).length&&(s=a[3],a.length--)}else if("object"===d)if(r.constructor===e){if(o=r._type,a=r._components.slice(),s=r._alpha,"gradient"===o)for(var v=1,m=a.length;v<m;v++){var y=a[v];y&&(a[v]=y.clone())}}else if(r.constructor===X)o="gradient",l=c;else{var b=t[o="hue"in r?"lightness"in r?"hsl":"hsb":"gradient"in r||"stops"in r||"radial"in r?"gradient":"gray"in r?"gray":"rgb"],x=n[o];this._components=a=[];for(v=0,m=b.length;v<m;v++){null==(_=r[b[v]])&&!v&&"gradient"===o&&"stops"in r&&(_={stops:r.stops,radial:r.radial}),null!=(_=x[v].call(this,_))&&(a[v]=_)}s=r.alpha}h&&o&&(f=1)}if(this._type=o||"rgb",!a){this._components=a=[];for(v=0,m=(x=n[this._type]).length;v<m;v++){var _;null!=(_=x[v].call(this,l&&l[v]))&&(a[v]=_)}}return this._components=a,this._properties=t[this._type],this._alpha=s,h&&(this.__read=f),this},set:"#initialize",_serialize:function(e,t){var n=this.getComponents();return u.serialize(/^(gray|rgb)$/.test(this._type)?n:[this._type].concat(n),e,!0,t)},_changed:function(){this._canvasStyle=null,this._owner&&(this._setter?this._owner[this._setter](this):this._owner._changed(129))},_convert:function(e){var t;return this._type===e?this._components.slice():(t=a[this._type+"-"+e])?t.apply(this,this._components):a["rgb-"+e].apply(this,a[this._type+"-rgb"].apply(this,this._components))},convert:function(e){return new q(e,this._convert(e),this._alpha)},getType:function(){return this._type},setType:function(e){this._components=this._convert(e),this._properties=t[e],this._type=e},getComponents:function(){var e=this._components.slice();return null!=this._alpha&&e.push(this._alpha),e},getAlpha:function(){return null!=this._alpha?this._alpha:1},setAlpha:function(e){this._alpha=null==e?null:Math.min(Math.max(e,0),1),this._changed()},hasAlpha:function(){return null!=this._alpha},equals:function(e){var t=u.isPlainValue(e,!0)?q.read(arguments):e;return t===this||t&&this._class===t._class&&this._type===t._type&&this.getAlpha()===t.getAlpha()&&u.equals(this._components,t._components)||!1},toString:function(){for(var e=this._properties,t=[],n="gradient"===this._type,r=g.instance,i=0,o=e.length;i<o;i++){var a=this._components[i];null!=a&&t.push(e[i]+": "+(n?a:r.number(a)))}
2return null!=this._alpha&&t.push("alpha: "+r.number(this._alpha)),"{ "+t.join(", ")+" }"},toCSS:function(e){var t=this._convert("rgb"),n=e||null==this._alpha?1:this._alpha;function r(e){return Math.round(255*(e<0?0:e>1?1:e))}return t=[r(t[0]),r(t[1]),r(t[2])],n<1&&t.push(n<0?0:n),e?"#"+((1<<24)+(t[0]<<16)+(t[1]<<8)+t[2]).toString(16).slice(1):(4==t.length?"rgba(":"rgb(")+t.join(",")+")"},toCanvasStyle:function(e,t){if(this._canvasStyle)return this._canvasStyle;if("gradient"!==this._type)return this._canvasStyle=this.toCSS();var n,r=this._components,i=r[0],o=i._stops,a=r[1],s=r[2],l=r[3],c=t&&t.inverted();if(c&&(a=c._transformPoint(a),s=c._transformPoint(s),l&&(l=c._transformPoint(l))),i._radial){var u=s.getDistance(a);if(l){var h=l.subtract(a);h.getLength()>u&&(l=a.add(h.normalize(u-.1)))}var f=l||a;n=e.createRadialGradient(f.x,f.y,0,a.x,a.y,u)}else n=e.createLinearGradient(a.x,a.y,s.x,s.y);for(var d=0,p=o.length;d<p;d++){var g=o[d],v=g._offset;n.addColorStop(null==v?d/(p-1):v,g._color.toCanvasStyle())}return this._canvasStyle=n},transform:function(e){if("gradient"===this._type){for(var t=this._components,n=1,r=t.length;n<r;n++){var i=t[n];e._transformPoint(i,i,!0)}this._changed()}},statics:{_types:t,random:function(){var e=Math.random;return new q(e(),e(),e())},_setOwner:function(e,t,n){return e&&(e._owner&&t&&e._owner!==t&&(e=e.clone()),!e._owner^!t&&(e._owner=t||null,e._setter=n||null)),e}}})},new function(){return u.each({add:function(e,t){return e+t},subtract:function(e,t){return e-t},multiply:function(e,t){return e*t},divide:function(e,t){return e/t}},(function(e,t){this[t]=function(t){t=q.read(arguments);for(var n=this._type,r=this._components,i=t._convert(n),o=0,a=r.length;o<a;o++)i[o]=e(r[o],i[o]);return new q(n,i,null!=this._alpha?e(this._alpha,t.getAlpha()):null)}}),{})}),X=u.extend({_class:"Gradient",initialize:function(e,t){this._id=m.get(),e&&u.isPlainObject(e)&&(this.set(e),e=t=null),null==this._stops&&this.setStops(e||["white","black"]),null==this._radial&&this.setRadial("string"===typeof t&&"radial"===t||t||!1)},_serialize:function(e,t){return t.add(this,(function(){return u.serialize([this._stops,this._radial],e,!0,t)}))},_changed:function(){for(var e=0,t=this._owners&&this._owners.length;e<t;e++)this._owners[e]._changed()},_addOwner:function(e){this._owners||(this._owners=[]),this._owners.push(e)},_removeOwner:function(e){var t=this._owners?this._owners.indexOf(e):-1;-1!=t&&(this._owners.splice(t,1),this._owners.length||(this._owners=s))},clone:function(){for(var e=[],t=0,n=this._stops.length;t<n;t++)e[t]=this._stops[t].clone();return new X(e,this._radial)},getStops:function(){return this._stops},setStops:function(e){if(e.length<2)throw new Error("Gradient stop list needs to contain at least two stops.");var t=this._stops;if(t)for(var n=0,r=t.length;n<r;n++)t[n]._owner=s;for(n=0,r=(t=this._stops=Y.readList(e,0,{clone:!0})).length;n<r;n++)t[n]._owner=this;this._changed()},getRadial:function(){return this._radial},setRadial:function(e){this._radial=e,this._changed()},equals:function(e){if(e===this)return!0;if(e&&this._class===e._class){var t=this._stops,n=e._stops,r=t.length;if(r===n.length){for(var i=0;i<r;i++)if(!t[i].equals(n[i]))return!1;return!0}}return!1}}),Y=u.extend({_class:"GradientStop",initialize:function(e,t){var n=e,r=t;"object"===typeof e&&t===s&&(Array.isArray(e)&&"number"!==typeof e[0]?(n=e[0],r=e[1]):("color"in e||"offset"in e||"rampPoint"in e)&&(n=e.color,r=e.offset||e.rampPoint||0)),this.setColor(n),this.setOffset(r)},clone:function(){return new Y(this._color.clone(),this._offset)},_serialize:function(e,t){var n=this._color,r=this._offset;return u.serialize(null==r?[n]:[n,r],e,!0,t)},_changed:function(){this._owner&&this._owner._changed(129)},getOffset:function(){return this._offset},setOffset:function(e){this._offset=e,this._changed()},getRampPoint:"#getOffset",setRampPoint:"#setOffset",getColor:function(){return this._color},setColor:function(){q._setOwner(this._color,null),this._color=q._setOwner(q.read(arguments,0),this,"setColor"),this._changed()},equals:function(e){return e===this||e&&this._class===e._class&&this._color.equals(e._color)&&this._offset==e._offset||!1}}),$=u.extend(new function(){var e={fillColor:null,fillRule:"nonzero",strokeColor:null,strokeWidth:1,strokeCap:"butt",strokeJoin:"miter",strokeScaling:!0,miterLimit:10,dashOffset:0,dashArray:[],shadowColor:null,shadowBlur:0,shadowOffset:new y,selectedColor:null},t=u.set({},e,{fontFamily:"sans-serif",fontWeight:"normal",fontSize:12,leading:null,justification:"left"}),n=u.set({},t,{fillColor:new q}),r={strokeWidth:193,strokeCap:193,strokeJoin:193,strokeScaling:201,miterLimit:193,fontFamily:9,fontWeight:9,fontSize:9,font:9,leading:9,justification:9},i={beans:!0},o={_class:"Style",beans:!0,initialize:function(r,i,o){this._values={},this._owner=i,this._project=i&&i._project||o||fe.project,this._defaults=!i||i instanceof T?t:i instanceof W?n:e,r&&this.set(r)}};return u.each(t,(function(e,t){var n=/Color$/.test(t),a="shadowOffset"===t,l=u.capitalize(t),c=r[t],h="set"+l,f="get"+l;o[h]=function(e){var r=this._owner,i=r&&r._children,o=i&&i.length>0&&!(r instanceof z);if(o)for(var a=0,s=i.length;a<s;a++)i[a]._style[h](e);if(("selectedColor"===t||!o)&&t in this._defaults){var l=this._values[t];l!==e&&(n&&(l&&(q._setOwner(l,null),l._canvasStyle=null),e&&e.constructor===q&&(e=q._setOwner(e,r,o&&h))),this._values[t]=e,r&&r._changed(c||129))}},o[f]=function(e){var r=this._owner,i=r&&r._children,o=i&&i.length>0&&!(r instanceof z);if(o&&!e)for(var l=0,c=i.length;l<c;l++){var d=i[l]._style[f]();if(l){if(!u.equals(p,d))return s}else p=d}else if(t in this._defaults){var p;if((p=this._values[t])===s)(p=this._defaults[t])&&p.clone&&(p=p.clone());else{var g=n?q:a?y:null;!g||p&&p.constructor===g||(this._values[t]=p=g.read([p],0,{readNull:!0,clone:!0}))}}return p&&n&&(p=q._setOwner(p,r,o&&h)),p},i[f]=function(e){return this._style[f](e)},i[h]=function(e){this._style[h](e)}})),u.each({Font:"FontFamily",WindingRule:"FillRule"},(function(e,t){var n="get"+t,r="set"+t;o[n]=i[n]="#get"+e,o[r]=i[r]="#set"+e})),E.inject(i),o},{set:function(e){var t=e instanceof $,n=t?e._values:e;if(n)for(var r in n)if(r in this._defaults){var i=n[r];this[r]=i&&t&&i.clone?i.clone():i}},equals:function(e){function t(e,t,n){var r=e._values,i=t._values,o=t._defaults;for(var a in r){var l=r[a],c=i[a];if((!n||!(a in i))&&!u.equals(l,c===s?o[a]:c))return!1}return!0}return e===this||e&&this._class===e._class&&t(this,e)&&t(e,this,!0)||!1},_dispose:function(){var e;(e=this.getFillColor())&&(e._canvasStyle=null),(e=this.getStrokeColor())&&(e._canvasStyle=null),(e=this.getShadowColor())&&(e._canvasStyle=null)},hasFill:function(){var e=this.getFillColor();return!!e&&e.alpha>0},hasStroke:function(){var e=this.getStrokeColor();return!!e&&e.alpha>
20&&this.getStrokeWidth()>0},hasShadow:function(){var e=this.getShadowColor();return!!e&&e.alpha>0&&(this.getShadowBlur()>0||!this.getShadowOffset().isZero())},getView:function(){return this._project._view},getFontStyle:function(){var e=this.getFontSize();return this.getFontWeight()+" "+e+(/[a-z]/i.test(e+"")?" ":"px ")+this.getFontFamily()},getFont:"#getFontFamily",setFont:"#setFontFamily",getLeading:function e(){var t=e.base.call(this),n=this.getFontSize();return/pt|em|%|px/.test(n)&&(n=this.getView().getPixelSize(n)),null!=t?t:1.2*n}}),K=new function(){function e(e,t,n,r){for(var i=["","webkit","moz","Moz","ms","o"],o=t[0].toUpperCase()+t.substring(1),a=0;a<6;a++){var s=i[a],l=s?s+o:t;if(l in e){if(!n)return e[l];e[l]=r;break}}}return{getStyles:function(e){var t=e&&9!==e.nodeType?e.ownerDocument:e,n=t&&t.defaultView;return n&&n.getComputedStyle(e,"")},getBounds:function(e,t){var n,r=e.ownerDocument,i=r.body,o=r.documentElement;try{n=e.getBoundingClientRect()}catch(c){n={left:0,top:0,width:0,height:0}}var a=n.left-(o.clientLeft||i.clientLeft||0),s=n.top-(o.clientTop||i.clientTop||0);if(!t){var l=r.defaultView;a+=l.pageXOffset||o.scrollLeft||i.scrollLeft,s+=l.pageYOffset||o.scrollTop||i.scrollTop}return new w(a,s,n.width,n.height)},getViewportBounds:function(e){var t=e.ownerDocument,n=t.defaultView,r=t.documentElement;return new w(0,0,n.innerWidth||r.clientWidth,n.innerHeight||r.clientHeight)},getOffset:function(e,t){return K.getBounds(e,t).getPoint()},getSize:function(e){return K.getBounds(e,!0).getSize()},isInvisible:function(e){return K.getSize(e).equals(new x(0,0))},isInView:function(e){return!K.isInvisible(e)&&K.getViewportBounds(e).intersects(K.getBounds(e,!0))},isInserted:function(e){return c.body.contains(e)},getPrefixed:function(t,n){return t&&e(t,n)},setPrefixed:function(t,n,r){if("object"===typeof n)for(var i in n)e(t,i,!0,n[i]);else e(t,n,!0,r)}}},Z={add:function(e,t){if(e)for(var n in t)for(var r=t[n],i=n.split(/[\s,]+/g),o=0,a=i.length;o<a;o++){var s=i[o],l=e===c&&("touchstart"===s||"touchmove"===s)&&{passive:!1};e.addEventListener(s,r,l)}},remove:function(e,t){if(e)for(var n in t)for(var r=t[n],i=n.split(/[\s,]+/g),o=0,a=i.length;o<a;o++)e.removeEventListener(i[o],r,!1)},getPoint:function(e){var t=e.targetTouches?e.targetTouches.length?e.targetTouches[0]:e.changedTouches[0]:e;return new y(t.pageX||t.clientX+c.documentElement.scrollLeft,t.pageY||t.clientY+c.documentElement.scrollTop)},getTarget:function(e){return e.target||e.srcElement},getRelatedTarget:function(e){return e.relatedTarget||e.toElement},getOffset:function(e,t){return Z.getPoint(e).subtract(K.getOffset(t||Z.getTarget(e)))}};Z.requestAnimationFrame=new function(){var e,t=K.getPrefixed(l,"requestAnimationFrame"),n=!1,r=[];function i(){var e=r;r=[];for(var o=0,a=e.length;o<a;o++)e[o]();(n=t&&r.length)&&t(i)}return function(o){r.push(o),t?n||(t(i),n=!0):e||(e=setInterval(i,1e3/60))}};var Q=u.extend(h,{_class:"View",initialize:function e(t,n){function r(e){return n[e]||parseInt(n.getAttribute(e),10)}function i(){var e=K.getSize(n);return e.isNaN()||e.isZero()?new x(r("width"),r("height")):e}var o;if(l&&n){this._id=n.getAttribute("id"),null==this._id&&n.setAttribute("id",this._id="paper-view-"+e._id++),Z.add(n,this._viewEvents);var a="none";if(K.setPrefixed(n.style,{userDrag:a,userSelect:a,touchCallout:a,contentZooming:a,tapHighlightColor:"rgba(0,0,0,0)"}),f.hasAttribute(n,"resize")){var s=this;Z.add(l,this._windowEvents={resize:function(){s.setViewSize(i())}})}if(o=i(),f.hasAttribute(n,"stats")&&"undefined"!==typeof Stats){this._stats=new Stats;var u=this._stats.domElement,h=u.style,d=K.getOffset(n);h.position="absolute",h.left=d.x+"px",h.top=d.y+"px",c.body.appendChild(u)}}else o=new x(n),n=null;this._project=t,this._scope=t._scope,this._element=n,this._pixelRatio||(this._pixelRatio=l&&l.devicePixelRatio||1),this._setElementSize(o.width,o.height),this._viewSize=o,e._views.push(this),e._viewsById[this._id]=this,(this._matrix=new C)._owner=this,e._focused||(e._focused=this),this._frameItems={},this._frameItemCount=0,this._itemEvents={native:{},virtual:{}},this._autoUpdate=!fe.agent.node,this._needsUpdate=!1},remove:function(){if(!this._project)return!1;Q._focused===this&&(Q._focused=null),Q._views.splice(Q._views.indexOf(this),1),delete Q._viewsById[this._id];var e=this._project;return e._view===this&&(e._view=null),Z.remove(this._element,this._viewEvents),Z.remove(l,this._windowEvents),this._element=this._project=null,this.off("frame"),this._animate=!1,this._frameItems={},!0},_events:u.each(E._itemHandlers.concat(["onResize","onKeyDown","onKeyUp"]),(function(e){this[e]={}}),{onFrame:{install:function(){this.play()},uninstall:function(){this.pause()}}}),_animate:!1,_time:0,_count:0,getAutoUpdate:function(){return this._autoUpdate},setAutoUpdate:function(e){this._autoUpdate=e,e&&this.requestUpdate()},update:function(){},draw:function(){this.update()},requestUpdate:function(){if(!this._requested){var e=this;Z.requestAnimationFrame((function(){if(e._requested=!1,e._animate){e.requestUpdate();var t=e._element;K.getPrefixed(c,"hidden")&&"true"!==f.getAttribute(t,"keepalive")||!K.isInView(t)||e._handleFrame()}
2e._autoUpdate&&e.update()})),this._requested=!0}},play:function(){this._animate=!0,this.requestUpdate()},pause:function(){this._animate=!1},_handleFrame:function(){fe=this._scope;var e=Date.now()/1e3,t=this._last?e-this._last:0;this._last=e,this.emit("frame",new u({delta:t,time:this._time+=t,count:this._count++})),this._stats&&this._stats.update()},_animateItem:function(e,t){var n=this._frameItems;t?(n[e._id]={item:e,time:0,count:0},1===++this._frameItemCount&&this.on("frame",this._handleFrameItems)):(delete n[e._id],0===--this._frameItemCount&&this.off("frame",this._handleFrameItems))},_handleFrameItems:function(e){for(var t in this._frameItems){var n=this._frameItems[t];n.item.emit("frame",new u(e,{time:n.time+=e.delta,count:n.count++}))}},_changed:function(){this._project._changed(4097),this._bounds=this._decomposed=s},getElement:function(){return this._element},getPixelRatio:function(){return this._pixelRatio},getResolution:function(){return 72*this._pixelRatio},getViewSize:function(){var e=this._viewSize;return new _(e.width,e.height,this,"setViewSize")},setViewSize:function(){var e=x.read(arguments),t=e.subtract(this._viewSize);t.isZero()||(this._setElementSize(e.width,e.height),this._viewSize.set(e),this._changed(),this.emit("resize",{size:e,delta:t}),this._autoUpdate&&this.update())},_setElementSize:function(e,t){var n=this._element;n&&(n.width!==e&&(n.width=e),n.height!==t&&(n.height=t))},getBounds:function(){return this._bounds||(this._bounds=this._matrix.inverted()._transformBounds(new w(new y,this._viewSize))),this._bounds},getSize:function(){return this.getBounds().getSize()},isVisible:function(){return K.isInView(this._element)},isInserted:function(){return K.isInserted(this._element)},getPixelSize:function(e){var t,n=this._element;if(n){var r=n.parentNode,i=c.createElement("div");i.style.fontSize=e,r.appendChild(i),t=parseFloat(K.getStyles(i).fontSize),r.removeChild(i)}else t=parseFloat(t);return t},getTextWidth:function(e,t){return 0}},u.each(["rotate","scale","shear","skew"],(function(e){var t="rotate"===e;this[e]=function(){var n=arguments,r=(t?u:y).read(n),i=y.read(n,0,{readNull:!0});return this.transform((new C)[e](r,i||this.getCenter(!0)))}}),{_decompose:function(){return this._decomposed||(this._decomposed=this._matrix.decompose())},translate:function(){var e=new C;return this.transform(e.translate.apply(e,arguments))},getCenter:function(){return this.getBounds().getCenter()},setCenter:function(){var e=y.read(arguments);this.translate(this.getCenter().subtract(e))},getZoom:function(){var e=this._decompose().scaling;return(e.x+e.y)/2},setZoom:function(e){this.transform((new C).scale(e/this.getZoom(),this.getCenter()))},getRotation:function(){return this._decompose().rotation},setRotation:function(e){var t=this.getRotation();null!=t&&null!=e&&this.rotate(e-t)},getScaling:function(){var e=this._decompose().scaling;return new b(e.x,e.y,this,"setScaling")},setScaling:function(){var e=this.getScaling(),t=y.read(arguments,0,{clone:!0,readNull:!0});e&&t&&this.scale(t.x/e.x,t.y/e.y)},getMatrix:function(){return this._matrix},setMatrix:function(){var e=this._matrix;e.set.apply(e,arguments)},transform:function(e){this._matrix.append(e)},scrollBy:function(){this.translate(y.read(arguments).negate())}}),{projectToView:function(){return this._matrix._transformPoint(y.read(arguments))},viewToProject:function(){return this._matrix._inverseTransform(y.read(arguments))},getEventPoint:function(e){return this.viewToProject(Z.getOffset(e,this._element))}},{statics:{_views:[],_viewsById:{},_id:0,create:function(e,t){return c&&"string"===typeof t&&(t=c.getElementById(t)),new(l?J:Q)(e,t)}}},new function(){if(l){var e,t,n,r,i,o=!1,a=!1,s=l.navigator;s.pointerEnabled||s.msPointerEnabled?(n="pointerdown MSPointerDown",r="pointermove MSPointerMove",i="pointerup pointercancel MSPointerUp MSPointerCancel"):(n="touchstart",r="touchmove",i="touchend touchcancel","ontouchstart"in l&&s.userAgent.match(/mobile|tablet|ip(ad|hone|od)|android|silk/i)||(n+=" mousedown",r+=" mousemove",i+=" mouseup"));var u={},h={mouseout:function(e){var t=Q._focused,n=Z.getRelatedTarget(e);if(t&&(!n||"HTML"===n.nodeName)){var r=Z.getOffset(e,t._element),i=r.x,o=Math.abs,a=o(i),s=a-(1<<25);r.x=o(s)<a?s*(i<0?-1:1):i,E(t,e,t.viewToProject(r))}},scroll:O};u[n]=function(e){var t=Q._focused=k(e);o||(o=!0,t._handleMouseEvent("mousedown",e))},h[r]=function(n){var r=Q._focused;if(!a){var i=k(n);i?r!==i&&(r&&E(r,n),e||(e=r),r=Q._focused=t=i):t&&t===r&&(e&&!e.isInserted()&&(e=null),r=Q._focused=e,e=null,O())}r&&E(r,n)},h[n]=function(){a=!0},h[i]=function(e){var t=Q._focused;t&&o&&t._handleMouseEvent("mouseup",e),a=o=!1},Z.add(c,h),Z.add(l,{load:O});var f,d,p,g,v,m,y,b,x=!1,_=!1,w={doubleclick:"click",mousedrag:"mousemove"}
2,S=!1,C={mousedown:{mousedown:1,mousedrag:1,click:1,doubleclick:1},mouseup:{mouseup:1,mousedrag:1,click:1,doubleclick:1},mousemove:{mousedrag:1,mousemove:1,mouseenter:1,mouseleave:1}};return{_viewEvents:u,_handleMouseEvent:function(e,t,n){var r=this._itemEvents,i=r.native[e],a="mousemove"===e,s=this._scope.tool,l=this;function c(e){return r.virtual[e]||l.responds(e)||s&&s.responds(e)}a&&o&&c("mousedrag")&&(e="mousedrag"),n||(n=this.getEventPoint(t));var u=this.getBounds().contains(n),h=i&&u&&l._project.hitTest(n,{tolerance:0,fill:!0,stroke:!0}),w=h&&h.item||null,C=!1,k={};if(k[e.substr(5)]=!0,i&&w!==g&&(g&&T(g,null,"mouseleave",t,n),w&&T(w,null,"mouseenter",t,n),g=w),S^u&&(T(this,null,u?"mouseenter":"mouseleave",t,n),u?this:null,C=!0),!u&&!k.drag||n.equals(d)||(A(this,w,a?e:"mousemove",t,n,d),C=!0),S=u,k.down&&u||k.up&&f){if(A(this,w,e,t,n,f),k.down){if(b=w===m&&Date.now()-y<300,p=m=w,!_&&w){for(var O=w;O&&!O.responds("mousedrag");)O=O._parent;O&&(v=w)}f=n}else k.up&&(_||w!==p||(y=Date.now(),A(this,w,b?"doubleclick":"click",t,n,f),b=!1),p=v=null);S=!1,C=!0}d=n,C&&s&&(x=s._handleMouseEvent(e,t,n,k)||x),!1!==t.cancelable&&(x&&!k.move||k.down&&c("mouseup"))&&t.preventDefault()},_handleKeyEvent:function(e,t,n,r){var i,o=this._scope,a=o.tool;function s(a){a.responds(e)&&(fe=o,a.emit(e,i=i||new te(e,t,n,r)))}this.isVisible()&&(s(this),a&&a.responds(e)&&s(a))},_countItemEvent:function(e,t){var n=this._itemEvents,r=n.native,i=n.virtual;for(var o in C)r[o]=(r[o]||0)+(C[o][e]||0)*t;i[e]=(i[e]||0)+t},statics:{updateFocus:O,_resetState:function(){o=a=x=S=!1,e=t=f=d=p=g=v=m=y=b=null}}}}function k(e){var t=Z.getTarget(e);return t.getAttribute&&Q._viewsById[t.getAttribute("id")]}function O(){var e=Q._focused;if(!e||!e.isVisible())for(var n=0,r=Q._views.length;n<r;n++)if((e=Q._views[n]).isVisible()){Q._focused=t=e;break}}function E(e,t,n){e._handleMouseEvent("mousemove",t,n)}function T(e,t,n,r,i,o,a){var s,l=!1;function c(e,n){if(e.responds(n)){if(s||(s=new re(n,r,i,t||e,o?i.subtract(o):null)),e.emit(n,s)&&(x=!0,s.prevented&&(_=!0),s.stopped))return l=!0}else{var a=w[n];if(a)return c(e,a)}}for(;e&&e!==a&&!c(e,n);)e=e._parent;return l}function A(e,t,n,r,i,o){return e._project.removeOn(n),_=x=!1,v&&T(v,null,n,r,i,o)||t&&t!==v&&!t.isDescendant(v)&&T(t,null,"mousedrag"===n?"mousemove":n,r,i,o,v)||T(e,v||t||e,n,r,i,o)}}),J=Q.extend({_class:"CanvasView",initialize:function(e,t){if(!(t instanceof l.HTMLCanvasElement)){var n=x.read(arguments,1);if(n.isZero())throw new Error("Cannot create CanvasView with the provided argument: "+u.slice(arguments,1));t=le.getCanvas(n)}var r=this._context=t.getContext("2d");if(r.save(),this._pixelRatio=1,!/^off|false$/.test(f.getAttribute(t,"hidpi"))){var i=l.devicePixelRatio||1,o=K.getPrefixed(r,"backingStorePixelRatio")||1;this._pixelRatio=i/o}Q.call(this,e,t),this._needsUpdate=!0},remove:function e(){return this._context.restore(),e.base.call(this)},_setElementSize:function e(t,n){var r=this._pixelRatio;if(e.base.call(this,t*r,n*r),1!==r){var i=this._element,o=this._context;if(!f.hasAttribute(i,"resize")){var a=i.style;a.width=t+"px",a.height=n+"px"}o.restore(),o.save(),o.scale(r,r)}},getContext:function(){return this._context},getPixelSize:function e(t){var n,r=fe.agent;if(r&&r.firefox)n=e.base.call(this,t);else{var i=this._context,o=i.font;i.font=t+" serif",n=parseFloat(i.font),i.font=o}return n},getTextWidth:function(e,t){var n=this._context,r=n.font,i=0;n.font=e;for(var o=0,a=t.length;o<a;o++)i=Math.max(i,n.measureText(t[o]).width);return n.font=r,i},update:function(){if(!this._needsUpdate)return!1;var e=this._project,t=this._context,n=this._viewSize;return t.clearRect(0,0,n.width+1,n.height+1),e&&e.draw(t,this._matrix,this._pixelRatio),this._needsUpdate=!1,!0}}),ee=u.extend({_class:"Event",initialize:function(e){this.event=e,this.type=e&&e.type},prevented:!1,stopped:!1,preventDefault:function(){this.prevented=!0,this.event.preventDefault()},stopPropagation:function(){this.stopped=!0,this.event.stopPropagation()},stop:function(){this.stopPropagation(),this.preventDefault()},getTimeStamp:function(){return this.event.timeStamp},getModifiers:function(){return ne.modifiers}}),te=ee.extend({_class:"KeyEvent",initialize:function(e,t,n,r){this.type=e,this.event=t,this.key=n,this.character=r},toString:function(){return"{ type: '"+this.type+"', key: '"+this.key+"', character: '"+this.character+"', modifiers: "+this.getModifiers()+" }"}}
2),ne=new function(){var e,t,n={"\t":"tab"," ":"space","\b":"backspace","\x7f":"delete",Spacebar:"space",Del:"delete",Win:"meta",Esc:"escape"},r={tab:"\t",space:" ",enter:"\r"},i={},o={},a=new u({shift:!1,control:!1,alt:!1,meta:!1,capsLock:!1,space:!1}).inject({option:{get:function(){return this.alt}},command:{get:function(){var e=fe&&fe.agent;return e&&e.mac?this.meta:this.control}}});function h(e){var t=e.key||e.keyIdentifier;return t=/^U\+/.test(t)?String.fromCharCode(parseInt(t.substr(2),16)):/^Arrow[A-Z]/.test(t)?t.substr(5):"Unidentified"===t||t===s?String.fromCharCode(e.keyCode):t,n[t]||(t.length>1?u.hyphenate(t):t.toLowerCase())}function f(t,n,r,s){var l,c=Q._focused;if(i[n]=t,t?o[n]=r:delete o[n],n.length>1&&(l=u.camelize(n))in a){a[l]=t;var h=fe&&fe.agent;if("meta"===l&&h&&h.mac)if(t)e={};else{for(var d in e)d in o&&f(!1,d,e[d],s);e=null}}else t&&e&&(e[n]=r);c&&c._handleKeyEvent(t?"keydown":"keyup",s,n,r)}return Z.add(c,{keydown:function(e){var n=h(e),i=fe&&fe.agent;n.length>1||i&&i.chrome&&(e.altKey||i.mac&&e.metaKey||!i.mac&&e.ctrlKey)?f(!0,n,r[n]||(n.length>1?"":n),e):t=n},keypress:function(e){if(t){var n=h(e),r=e.charCode,i=r>=32?String.fromCharCode(r):n.length>1?"":n;n!==t&&(n=i.toLowerCase()),f(!0,n,i,e),t=null}},keyup:function(e){var t=h(e);t in o&&f(!1,t,o[t],e)}}),Z.add(l,{blur:function(e){for(var t in o)f(!1,t,o[t],e)}}),{modifiers:a,isDown:function(e){return!!i[e]}}},re=ee.extend({_class:"MouseEvent",initialize:function(e,t,n,r,i){this.type=e,this.event=t,this.point=n,this.target=r,this.delta=i},toString:function(){return"{ type: '"+this.type+"', point: "+this.point+", target: "+this.target+(this.delta?", delta: "+this.delta:"")+", modifiers: "+this.getModifiers()+" }"}}),ie=ee.extend({_class:"ToolEvent",_item:null,initialize:function(e,t,n){this.tool=e,this.type=t,this.event=n},_choosePoint:function(e,t){return e||(t?t.clone():null)},getPoint:function(){return this._choosePoint(this._point,this.tool._point)},setPoint:function(e){this._point=e},getLastPoint:function(){return this._choosePoint(this._lastPoint,this.tool._lastPoint)},setLastPoint:function(e){this._lastPoint=e},getDownPoint:function(){return this._choosePoint(this._downPoint,this.tool._downPoint)},setDownPoint:function(e){this._downPoint=e},getMiddlePoint:function(){return!this._middlePoint&&this.tool._lastPoint?this.tool._point.add(this.tool._lastPoint).divide(2):this._middlePoint},setMiddlePoint:function(e){this._middlePoint=e},getDelta:function(){return!this._delta&&this.tool._lastPoint?this.tool._point.subtract(this.tool._lastPoint):this._delta},setDelta:function(e){this._delta=e},getCount:function(){return this.tool[/^mouse(down|up)$/.test(this.type)?"_downCount":"_moveCount"]},setCount:function(e){this.tool[/^mouse(down|up)$/.test(this.type)?"downCount":"count"]=e},getItem:function(){if(!this._item){var e=this.tool._scope.project.hitTest(this.getPoint());if(e){for(var t=e.item,n=t._parent;/^(Group|CompoundPath)$/.test(n._class);)t=n,n=n._parent;this._item=t}}return this._item},setItem:function(e){this._item=e},toString:function(){return"{ type: "+this.type+", point: "+this.getPoint()+", count: "+this.getCount()+", modifiers: "+this.getModifiers()+" }"}}),oe=d.extend({_class:"Tool",_list:"tools",_reference:"tool",_events:["onMouseDown","onMouseUp","onMouseDrag","onMouseMove","onActivate","onDeactivate","onEditOptions","onKeyDown","onKeyUp"],initialize:function(e){d.call(this),this._moveCount=-1,this._downCount=-1,this.set(e)},getMinDistance:function(){return this._minDistance},setMinDistance:function(e){this._minDistance=e,null!=e&&null!=this._maxDistance&&e>this._maxDistance&&(this._maxDistance=e)},getMaxDistance:function(){return this._maxDistance},setMaxDistance:function(e){this._maxDistance=e,null!=this._minDistance&&null!=e&&e<this._minDistance&&(this._minDistance=e)},getFixedDistance:function(){return this._minDistance==this._maxDistance?this._minDistance:null},setFixedDistance:function(e){this._minDistance=this._maxDistance=e},_handleMouseEvent:function(e,t,n,r){fe=this._scope,r.drag&&!this.responds(e)&&(e="mousemove");var i=r.move||r.drag,o=this.responds(e),a=!1,s=this;
2function l(e,t){var o=n,a=i?s._point:s._downPoint||o;if(i){if(s._moveCount>=0&&o.equals(a))return!1;if(a&&(null!=e||null!=t)){var l=o.subtract(a),c=l.getLength();if(c<(e||0))return!1;t&&(o=a.add(l.normalize(Math.min(c,t))))}s._moveCount++}return s._point=o,s._lastPoint=a||o,r.down&&(s._moveCount=-1,s._downPoint=o,s._downCount++),!0}function c(){o&&(a=s.emit(e,new ie(s,e,t))||a)}if(r.down)l(),c();else if(r.up)l(null,this._maxDistance),c();else if(o)for(;l(this._minDistance,this._maxDistance);)c();return a}}),ae=u.extend(h,{_class:"Tween",statics:{easings:new u({linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return e*(2-e)},easeInOutQuad:function(e){return e<.5?2*e*e:2*(2-e)*e-1},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return--e*e*e+1},easeInOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1- --e*e*e*e},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1+--e*e*e*e*e},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}})},initialize:function e(t,n,r,i,o,a){this.object=t;var s=typeof o,l="function"===s;this.type=l?s:"string"===s?o:"linear",this.easing=l?o:e.easings[this.type],this.duration=i,this.running=!1,this._then=null,this._startTime=null;var c=n||r;this._keys=c?Object.keys(c):[],this._parsedKeys=this._parseKeys(this._keys),this._from=c&&this._getState(n),this._to=c&&this._getState(r),!1!==a&&this.start()},then:function(e){return this._then=e,this},start:function(){return this._startTime=null,this.running=!0,this},stop:function(){return this.running=!1,this},update:function(e){if(this.running){e>=1&&(e=1,this.running=!1);for(var t=this.easing(e),n=this._keys,r=function(n){return"function"===typeof n?n(t,e):n},i=0,o=n&&n.length;i<o;i++){var a=n[i],s=r(this._from[a]),l=r(this._to[a]),c=s&&l&&s.__add&&l.__add?l.__subtract(s).__multiply(t).__add(s):(l-s)*t+s;this._setProperty(this._parsedKeys[a],c)}this.responds("update")&&this.emit("update",new u({progress:e,factor:t})),!this.running&&this._then&&this._then(this.object)}return this},_events:{onUpdate:{}},_handleFrame:function(e){var t=this._startTime,n=t?(e-t)/this.duration:0;t||(this._startTime=e),this.update(n)},_getState:function(e){for(var t=this._keys,n={},r=0,i=t.length;r<i;r++){var o,a=t[r],s=this._parsedKeys[a],l=this._getProperty(s);if(e){var c=this._resolveValue(l,e[a]);this._setProperty(s,c),o=(o=this._getProperty(s))&&o.clone?o.clone():o,this._setProperty(s,l)}else o=l&&l.clone?l.clone():l;n[a]=o}return n},_resolveValue:function(e,t){if(t){if(Array.isArray(t)&&2===t.length){var n=t[0];return n&&n.match&&n.match(/^[+\-\*\/]=/)?this._calculate(e,n[0],t[1]):t}if("string"===typeof t){var r=t.match(/^[+\-*/]=(.*)/);if(r){var i=JSON.parse(r[1].replace(/(['"])?([a-zA-Z0-9_]+)(['"])?:/g,'"$2": '));return this._calculate(e,t[0],i)}}}return t},_calculate:function(e,t,n){return fe.PaperScript.calculateBinary(e,t,n
2)},_parseKeys:function(e){for(var t={},n=0,r=e.length;n<r;n++){var i=e[n],o=i.replace(/\.([^.]*)/g,"/$1").replace(/\[['"]?([^'"\]]*)['"]?\]/g,"/$1");t[i]=o.split("/")}return t},_getProperty:function(e,t){for(var n=this.object,r=0,i=e.length-(t||0);r<i&&n;r++)n=n[e[r]];return n},_setProperty:function(e,t){var n=this._getProperty(e,1);n&&(n[e[e.length-1]]=t)}}),se=function(e){var t=new a.XMLHttpRequest;return t.open((e.method||"get").toUpperCase(),e.url,u.pick(e.async,!0)),e.mimeType&&t.overrideMimeType(e.mimeType),t.onload=function(){var n=t.status;0===n||200===n?e.onLoad&&e.onLoad.call(t,t.responseText):t.onerror()},t.onerror=function(){var n=t.status,r='Could not load "'+e.url+'" (Status: '+n+")";if(!e.onError)throw new Error(r);e.onError(r,n)},t.send(null)},le=u.exports.CanvasProvider={canvases:[],getCanvas:function(e,t,n){if(!l)return null;var r,i=!0;"object"===typeof e&&(t=e.height,e=e.width),this.canvases.length?r=this.canvases.pop():(r=c.createElement("canvas"),i=!1);var o=r.getContext("2d",n||{});if(!o)throw new Error("Canvas "+r+" is unable to provide a 2D context.");return r.width===e&&r.height===t?i&&o.clearRect(0,0,e+1,t+1):(r.width=e,r.height=t),o.save(),r},getContext:function(e,t,n){var r=this.getCanvas(e,t,n);return r?r.getContext("2d",n||{}):null},release:function(e){var t=e&&e.canvas?e.canvas:e;t&&t.getContext&&(t.getContext("2d").restore(),this.canvases.push(t))}},ce=new function(){var e,t,n,r,i,o,a,s,l,c,h,f=Math.min,d=Math.max,p=Math.abs;function g(e,t,n){return.2989*e+.587*t+.114*n}function v(e,t,n,r){var i=r-g(e,t,n),o=(r=g(l=e+i,c=t+i,h=n+i),f(l,c,h)),a=d(l,c,h);if(o<0){var s=r-o;l=r+(l-r)*r/s,c=r+(c-r)*r/s,h=r+(h-r)*r/s}if(a>255){var u=255-r,p=a-r;l=r+(l-r)*u/p,c=r+(c-r)*u/p,h=r+(h-r)*u/p}}function m(e,t,n){return d(e,t,n)-f(e,t,n)}function y(e,t,n,r){var i,o=[e,t,n],a=d(e,t,n),s=f(e,t,n);i=0===f(s=s===e?0:s===t?1:2,a=a===e?0:a===t?1:2)?1===d(s,a)?2:1:0,o[a]>o[s]?(o[i]=(o[i]-o[s])*r/(o[a]-o[s]),o[a]=r):o[i]=o[a]=0,o[s]=0,l=o[0],c=o[1],h=o[2]}var b={multiply:function(){l=i*e/255,c=o*t/255,h=a*n/255},screen:function(){l=i+e-i*e/255,c=o+t-o*t/255,h=a+n-a*n/255},overlay:function(){l=i<128?2*i*e/255:255-2*(255-i)*(255-e)/255,c=o<128?2*o*t/255:255-2*(255-o)*(255-t)/255,h=a<128?2*a*n/255:255-2*(255-a)*(255-n)/255},"soft-light":function(){var r=e*i/255;l=r+i*(255-(255-i)*(255-e)/255-r)/255,c=(r=t*o/255)+o*(255-(255-o)*(255-t)/255-r)/255,h=(r=n*a/255)+a*(255-(255-a)*(255-n)/255-r)/255},"hard-light":function(){l=e<128?2*e*i/255:255-2*(255-e)*(255-i)/255,c=t<128?2*t*o/255:255-2*(255-t)*(255-o)/255,h=n<128?2*n*a/255:255-2*(255-n)*(255-a)/255},"color-dodge":function(){l=0===i?0:255===e?255:f(255,255*i/(255-e)),c=0===o?0:255===t?255:f(255,255*o/(255-t)),h=0===a?0:255===n?255:f(255,255*a/(255-n))},"color-burn":function(){l=255===i?255:0===e?0:d(0,255-255*(255-i)/e),c=255===o?255:0===t?0:d(0,255-255*(255-o)/t),h=255===a?255:0===n?0:d(0,255-255*(255-a)/n)},darken:function(){l=i<e?i:e,c=o<t?o:t,h=a<n?a:n},lighten:function(){l=i>e?i:e,c=o>t?o:t,h=a>n?a:n},difference:function(){(l=i-e)<0&&(l=-l),(c=o-t)<0&&(c=-c),(h=a-n)<0&&(h=-h)},exclusion:function(){l=i+e*(255-i-i)/255,c=o+t*(255-o-o)/255,h=a+n*(255-a-a)/255},hue:function(){y(e,t,n,m(i,o,a)),v(l,c,h,g(i,o,a))},saturation:function(){y(i,o,a,m(e,t,n)),v(l,c,h,g(i,o,a))},luminosity:function(){v(i,o,a,g(e,t,n))},color:function(){v(e,t,n,g(i,o,a))},add:function(){l=f(i+e,255),c=f(o+t,255),h=f(a+n,255)},subtract:function(){l=d(i-e,0),c=d(o-t,0),h=d(a-n,0)},average:function(){l=(i+e)/2,c=(o+t)/2,h=(a+n)/2},negation:function(){l=255-p(255-e-i),c=255-p(255-t-o),h=255-p(255-n-a)}},x=this.nativeModes=u.each(["source-over","source-in","source-out","source-atop","destination-over","destination-in","destination-out","destination-atop","lighter","darker","copy","xor"],(function(e){this[e]=!0}),{}),_=le.getContext(1,1,{willReadFrequently:!0});_&&(u.each(b,(function(e,t){var n="darken"===t,r=!1;_.save();try{_.fillStyle=n?"#300":"#a00",_.fillRect(0,0,1,1),_.globalCompositeOperation=t,_.globalCompositeOperation===t&&(_.fillStyle=n?"#a00":"#300",_.fillRect(0,0,1,1),r=_.getImageData(0,0,1,1).data[0]!==n?170:51)}catch(i){}
2_.restore(),x[t]=r})),le.release(_)),this.process=function(u,f,d,p,g){var v=f.canvas,m="normal"===u;if(m||x[u])d.save(),d.setTransform(1,0,0,1,0,0),d.globalAlpha=p,m||(d.globalCompositeOperation=u),d.drawImage(v,g.x,g.y),d.restore();else{var y=b[u];if(!y)return;for(var _=d.getImageData(g.x,g.y,v.width,v.height),w=_.data,S=f.getImageData(0,0,v.width,v.height).data,C=0,k=w.length;C<k;C+=4){e=S[C],i=w[C],t=S[C+1],o=w[C+1],n=S[C+2],a=w[C+2],r=S[C+3],s=w[C+3],y();var O=r*p/255,E=1-O;w[C]=O*l+E*i,w[C+1]=O*c+E*o,w[C+2]=O*h+E*a,w[C+3]=r*p+E*s}d.putImageData(_,g.x,g.y)}}},ue=new function(){var e="http://www.w3.org/2000/svg",t="http://www.w3.org/2000/xmlns",n="http://www.w3.org/1999/xlink",r={href:n,xlink:t,xmlns:t+"/","xmlns:xlink":t+"/"};function i(e,t,n){for(var i in t){var o=t[i],a=r[i];"number"===typeof o&&n&&(o=n.number(o)),a?e.setAttributeNS(a,i,o):e.setAttribute(i,o)}return e}return{svg:e,xmlns:t,xlink:n,create:function(t,n,r){return i(c.createElementNS(e,t),n,r)},get:function(e,t){var n=r[t],i=n?e.getAttributeNS(n,t):e.getAttribute(t);return"null"===i?null:i},set:i}},he=u.each({fillColor:["fill","color"],fillRule:["fill-rule","string"],strokeColor:["stroke","color"],strokeWidth:["stroke-width","number"],strokeCap:["stroke-linecap","string"],strokeJoin:["stroke-linejoin","string"],strokeScaling:["vector-effect","lookup",{true:"none",false:"non-scaling-stroke"},function(e,t){return!t&&(e instanceof B||e instanceof P||e instanceof W)}],miterLimit:["stroke-miterlimit","number"],dashArray:["stroke-dasharray","array"],dashOffset:["stroke-dashoffset","number"],fontFamily:["font-family","string"],fontWeight:["font-weight","string"],fontSize:["font-size","number"],justification:["text-anchor","lookup",{left:"start",center:"middle",right:"end"}],opacity:["opacity","number"],blendMode:["mix-blend-mode","style"]},(function(e,t){var n=u.capitalize(t),r=e[2];this[t]={type:e[1],property:t,attribute:e[0],toSVG:r,fromSVG:r&&u.each(r,(function(e,t){this[e]=t}),{}),exportFilter:e[3],get:"get"+n,set:"set"+n}}),{});new function(){var e;function t(t,n,r){var i,o=new u,a=t.getTranslation();n&&(t.isInvertible()?(i=(t=t._shiftless())._inverseTransform(a),a=null):i=new y,o[r?"cx":"x"]=i.x,o[r?"cy":"y"]=i.y);if(!t.isIdentity()){var s=t.decompose();if(s){var l=[],c=s.rotation,h=s.scaling,f=s.skewing;a&&!a.isZero()&&l.push("translate("+e.point(a)+")"),c&&l.push("rotate("+e.number(c)+")"),v.isZero(h.x-1)&&v.isZero(h.y-1)||l.push("scale("+e.point(h)+")"),f.x&&l.push("skewX("+e.number(f.x)+")"),f.y&&l.push("skewY("+e.number(f.y)+")"),o.transform=l.join(" ")}else o.transform="matrix("+t.getValues().join(",")+")"}return o}function n(n,r){for(var i=t(n._matrix),o=n._children,a=ue.create("g",i,e),s=0,l=o.length;s<l;s++){var u=o[s],h=f(u,r);if(h)if(u.isClipMask()){var d=ue.create("clipPath");d.appendChild(h),c(u,d,"clip"),ue.set(a,{"clip-path":"url(#"+d.id+")"})}else a.appendChild(h)}return a}function r(n){var r=n._type,i=n._radius,o=t(n._matrix,!0,"rectangle"!==r);if("rectangle"===r){r="rect";var a=n._size,s=a.width,l=a.height;o.x-=s/2,o.y-=l/2,o.width=s,o.height=l,i.isZero()&&(i=null)}return i&&("circle"===r?o.r=i:(o.rx=i.width,o.ry=i.height)),ue.create(r,o,e)}var i,o={Group:n,Layer:n,Raster:function(n,r){var i=t(n._matrix,!0),o=n.getSize(),a=n.getImage();return i.x-=o.width/2,i.y-=o.height/2,i.width=o.width,i.height=o.height,i.href=0==r.embedImages&&a&&a.src||n.toDataURL(),ue.create("image",i,e)},Path:function(n,i){var o=i.matchShapes;if(o){var a=n.toShape(!1);if(a)return r(a)}var s,l=n._segments,c=l.length,u=t(n._matrix);if(o&&c>=2&&!n.hasHandles())if(c>2){s=n._closed?"polygon":"polyline";for(var h=[],f=0;f<c;f++)h.push(e.point(l[f]._point));u.points=h.join(" ")}else{s="line";var d=l[0]._point,p=l[1]._point;u.set({x1:d.x,y1:d.y,x2:p.x,y2:p.y})}else s="path",u.d=n.getPathData(null,i.precision);return ue.create(s,u,e)},Shape:r,CompoundPath:function(n,r){var i=t(n._matrix),o=n.getPathData(null,r.precision);return o&&(i.d=o),ue.create("path",i,e)},SymbolItem:function(n,r){var i=t(n._matrix,!0),o=n._definition,a=l(o,"symbol"),s=o._item,u=s.getStrokeBounds();return a||((a=ue.create("symbol",{viewBox:e.rectangle(u)})).appendChild(f(s,r)),c(o,a,"symbol")),i.href="#"+a.id,i.x+=u.x,i.y+=u.y,i.width=u.width,i.height=u.height,i.overflow="visible",ue.create("use",i,e)},PointText:function(n){var r=ue.create("text",t(n._matrix,!0),e);return r.textContent=n._content,r}};function s(t,n,r,i){var o={},a=!i&&t.getParent(),s=[];return null!=t._name&&(o.id=t._name),u.each(he,(function(n){var i=n.get,h=n.type,f=t[i]();if(n.exportFilter?n.exportFilter(t,f):0==r.reduceAttributes||!a||!u.equals(a[i](),f)){if("color"===h&&null!=f){var d=f.getAlpha();d<1&&(o[n.attribute+"-opacity"]=d)}"style"===h?s.push(n.attribute+": "+f):o[n.attribute]=null==f?"none":"color"===h?f.gradient?function(t){var n=l(t,"color");
2if(!n){var r,i=t.getGradient(),o=i._radial,a=t.getOrigin(),s=t.getDestination();if(o){r={cx:a.x,cy:a.y,r:a.getDistance(s)};var u=t.getHighlight();u&&(r.fx=u.x,r.fy=u.y)}else r={x1:a.x,y1:a.y,x2:s.x,y2:s.y};r.gradientUnits="userSpaceOnUse",n=ue.create((o?"radial":"linear")+"Gradient",r,e);for(var h=i._stops,f=0,d=h.length;f<d;f++){var p=h[f],g=p._color,v=g.getAlpha(),m=p._offset;r={offset:null==m?f/(d-1):m},g&&(r["stop-color"]=g.toCSS(!0)),v<1&&(r["stop-opacity"]=v),n.appendChild(ue.create("stop",r,e))}c(t,n,"color")}return"url(#"+n.id+")"}(f):f.toCSS(!0):"array"===h?f.join(","):"lookup"===h?n.toSVG[f]:f}})),s.length&&(o.style=s.join(";")),1===o.opacity&&delete o.opacity,t._visible||(o.visibility="hidden"),ue.set(n,o,e)}function l(e,t){return i||(i={ids:{},svgs:{}}),e&&i.svgs[t+"-"+(e._id||e.__id||(e.__id=m.get("svg")))]}function c(e,t,n){i||l();var r=i.ids[n]=(i.ids[n]||0)+1;t.id=n+"-"+r,i.svgs[n+"-"+(e._id||e.__id)]=t}function h(e,t){var n=e,r=null;if(i){for(var o in n="svg"===e.nodeName.toLowerCase()&&e,i.svgs)r||(n||(n=ue.create("svg")).appendChild(e),r=n.insertBefore(ue.create("defs"),n.firstChild)),r.appendChild(i.svgs[o]);i=null}return t.asString?(new a.XMLSerializer).serializeToString(n):n}function f(e,t,n){var r=o[e._class],i=r&&r(e,t);if(i){var a=t.onExport;a&&(i=a(e,i,t)||i);var l=JSON.stringify(e._data);l&&"{}"!==l&&"null"!==l&&i.setAttribute("data-paper-data",l)}return i&&s(e,i,t,n)}function d(t){return t||(t={}),e=new g(t.precision),t}E.inject({exportSVG:function(e){return h(f(this,e=d(e),!0),e)}}),O.inject({exportSVG:function(n){n=d(n);var r=this._children,i=this.getView(),o=u.pick(n.bounds,"view"),a=n.matrix||"view"===o&&i._matrix,s=a&&C.read([a]),l="view"===o?new w([0,0],i.getViewSize()):"content"===o?E._getBounds(r,s,{stroke:!0}).rect:w.read([o],0,{readNull:!0}),c={version:"1.1",xmlns:ue.svg,"xmlns:xlink":ue.xlink};l&&(c.width=l.width,c.height=l.height,(l.x||0===l.x||l.y||0===l.y)&&(c.viewBox=e.rectangle(l)));var p=ue.create("svg",c,e),g=p;s&&!s.isIdentity()&&(g=p.appendChild(ue.create("g",t(s),e)));for(var v=0,m=r.length;v<m;v++)g.appendChild(f(r[v],n,!0));return h(p,n)}})},new function(){var e,t={};function n(t,n,r,i,o,a){var s=ue.get(t,n)||a,l=null==s?i?null:r?"":0:r?s:parseFloat(s);return/%\s*$/.test(s)?l/100*(o?1:e[/x|^width/.test(n)?"width":"height"]):l}function r(e,t,r,i,o,a,s){return t=n(e,t||"x",!1,i,o,a),r=n(e,r||"y",!1,i,o,s),!i||null!=t&&null!=r?new y(t,r):null}function i(e,t,r,i,o){return t=n(e,t||"width",!1,i,o),r=n(e,r||"height",!1,i,o),!i||null!=t&&null!=r?new x(t,r):null}function o(e,t,n){return"none"===e?null:"number"===t?parseFloat(e):"array"===t?e?e.split(/[\s,]+/g).map(parseFloat):[]:"color"===t?S(e)||e:"lookup"===t?n[e]:e}function h(e,t,n,r){var i=e.childNodes,o="clippath"===t,a="defs"===t,s=new T,l=s._project,c=l._currentStyle,u=[];if(o||a||(s=_(s,e,r),l._currentStyle=s._style.clone()),r)for(var h=e.querySelectorAll("defs"),f=0,d=h.length;f<d;f++)k(h[f],n,!1);for(f=0,d=i.length;f<d;f++){var p,g=i[f];1!==g.nodeType||/^defs$/i.test(g.nodeName)||!(p=k(g,n,!1))||p instanceof M||u.push(p)}return s.addChildren(u),o&&(s=_(s.reduce(),e,r)),l._currentStyle=c,(o||a)&&(s.remove(),s=null),s}function f(e,t){for(var n=e.getAttribute("points").match(/[+-]?(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?/g),r=[],i=0,o=n.length;i<o;i+=2)r.push(new y(parseFloat(n[i]),parseFloat(n[i+1])));var a=new U(r);return"polygon"===t&&a.closePath(),a}function d(e,i){var o,a=(n(e,"href",!0)||"").substring(1),s="radialgradient"===i;if(a)(o=t[a].getGradient())._radial^s&&((o=o.clone())._radial=s);else{for(var l=e.childNodes,c=[],u=0,h=l.length;u<h;u++){var f=l[u];1===f.nodeType&&c.push(_(new Y,f))}o=new X(c,s)}var d,p,g,v="userSpaceOnUse"!==n(e,"gradientUnits",!0);return s?(p=(d=r(e,"cx","cy",!1,v,"50%","50%")).add(n(e,"r",!1,!1,v,"50%"),0),g=r(e,"fx","fy",!0,v)):(d=r(e,"x1","y1",!1,v,"0%","0%"),p=r(e,"x2","y2",!1,v,"100%","0%")),_(new q(o,d,p,g),e)._scaleToBounds=v,null}var p={"#document":function(e,t,n,r){for(var i=e.childNodes,o=0,a=i.length;o<a;o++){var s=i[o];if(1===s.nodeType)return k(s,n,r)}},g:h,svg:h,clippath:h,polygon:f,polyline:f,path:function(e){return B.create(e.getAttribute("d"))},lineargradient:d,radialgradient:d,image:function(e){var t=new j(n(e,"href",!0));return t.on("load",(function(){var t=i(e);this.setSize(t);var n=r(e).add(t.divide(2));this._matrix.append((new C).translate(n))})),t},symbol:function(e,t,n,r){return new M(h(e,t,n,r),!0)},defs:h,use:function(e){var i=(n(e,"href",!0)||"").substring(1),o=t[i],a=r(e);return o?o instanceof M?o.place(a):o.clone().translate(a):null},circle:function(e){return new P.Circle(r(e,"cx","cy"),n(e,"r"))},ellipse:function(e){return new P.Ellipse({center:r(e,"cx","cy"),radius:i(e,"rx","ry")})},rect:function(e){return new P.Rectangle(new w(r(e),i(e)),i(e,"rx","ry"))},line:function(e){return new U.Line(r(e,"x1","y1"),r(e,"x2","y2"))},text:function(e){var t=new G(r(e).add(r(e,"dx","dy")));return t.setContent(e.textContent.trim()||""),t},switch:h};function g(e,t,n,r){if(e.transform){for(var i=(r.getAttribute(n)||"").split(/\)\s*
2/g),o=new C,a=0,s=i.length;a<s;a++){var l=i[a];if(!l)break;for(var c=l.split(/\(\s*/),u=c[0].trim(),h=c[1].split(/[\s,]+/g),f=0,d=h.length;f<d;f++)h[f]=parseFloat(h[f]);switch(u){case"matrix":o.append(new C(h[0],h[1],h[2],h[3],h[4],h[5]));break;case"rotate":o.rotate(h[0],h[1]||0,h[2]||0);break;case"translate":o.translate(h[0],h[1]||0);break;case"scale":o.scale(h);break;case"skewX":o.skew(h[0],0);break;case"skewY":o.skew(0,h[0])}}e.transform(o)}}function v(e,t,n){var r="fill-opacity"===n?"getFillColor":"getStrokeColor",i=e[r]&&e[r]();i&&i.setAlpha(parseFloat(t))}var m=u.set(u.each(he,(function(e){this[e.attribute]=function(t,n){if(t[e.set]&&(t[e.set](o(n,e.type,e.fromSVG)),"color"===e.type)){var r=t[e.get]();if(r&&r._scaleToBounds){var i=t.getBounds();r.transform((new C).translate(i.getPoint()).scale(i.getSize()))}}}}),{}),{id:function(e,n){t[n]=e,e.setName&&e.setName(n)},"clip-path":function(e,t){var n=S(t);if(n){if((n=n.clone()).setClipMask(!0),!(e instanceof T))return new T(n,e);e.insertChild(0,n)}},gradientTransform:g,transform:g,"fill-opacity":v,"stroke-opacity":v,visibility:function(e,t){e.setVisible&&e.setVisible("visible"===t)},display:function(e,t){e.setVisible&&e.setVisible(null!==t)},"stop-color":function(e,t){e.setColor&&e.setColor(t)},"stop-opacity":function(e,t){e._color&&e._color.setAlpha(parseFloat(t))},offset:function(e,t){if(e.setOffset){var n=t.match(/(.*)%$/);e.setOffset(n?n[1]/100:parseFloat(t))}},viewBox:function(e,t,n,r,a){var s,l=new w(o(t,"array")),c=i(r,null,null,!0);if(e instanceof T){var u=c?c.divide(l.getSize()):1,h=(new C).scale(u).translate(l.getPoint().negate());s=e}else e instanceof M&&(c&&l.setSize(c),s=e._item);if(s){if("visible"!==b(r,"overflow",a)){var f=new P.Rectangle(l);f.setClipMask(!0),s.addChild(f)}h&&s.transform(h)}}});function b(e,t,n){var r=e.attributes[t],i=r&&r.value;if(!i&&e.style){var o=u.camelize(t);(i=e.style[o])||n.node[o]===n.parent[o]||(i=n.node[o])}return i?"none"===i?null:i:s}function _(e,t,n){var r=t.parentNode,i={node:K.getStyles(t)||{},parent:!n&&!/^defs$/i.test(r.tagName)&&K.getStyles(r)||{}};return u.each(m,(function(n,r){var o=b(t,r,i);e=o!==s&&n(e,o,r,t,i)||e})),e}function S(e){var n=e&&e.match(/\((?:["'#]*)([^"')]+)/),r=n&&n[1],i=r&&t[l?r.replace(l.location.href.split("#")[0]+"#",""):r];return i&&i._scaleToBounds&&((i=i.clone())._scaleToBounds=!0),i}function k(n,r,o){var a,s,l,h=n.nodeName.toLowerCase(),f="#document"!==h,d=c.body;o&&f&&(e=fe.getView().getSize(),e=i(n,null,null,!0)||e,a=ue.create("svg",{style:"stroke-width: 1px; stroke-miterlimit: 10"}),s=n.parentNode,l=n.nextSibling,a.appendChild(n),d.appendChild(a));var g=fe.settings,v=g.applyMatrix,m=g.insertItems;g.applyMatrix=!1,g.insertItems=!1;var y=p[h],b=y&&y(n,h,r,o)||null;if(g.insertItems=m,g.applyMatrix=v,b){!f||b instanceof T||(b=_(b,n,o));var x=r.onImport,w=f&&n.getAttribute("data-paper-data");x&&(b=x(n,b,r)||b),r.expandShapes&&b instanceof P&&(b.remove(),b=b.toPath()),w&&(b._data=JSON.parse(w))}return a&&(d.removeChild(a),s&&(l?s.insertBefore(n,l):s.appendChild(n))),o&&(t={},b&&u.pick(r.applyMatrix,v)&&b.matrix.apply(!0,!0)),b}function A(e,t,n){if(!e)return null;t="function"===typeof t?{onLoad:t}:t||{};var r=fe,i=null;function o(o){try{var c="object"===typeof o?o:(new a.DOMParser).parseFromString(o.trim(),"image/svg+xml");if(!c.nodeName)throw c=null,new Error("Unsupported SVG source: "+e);fe=r,i=k(c,t,!0),t&&!1===t.insert||n._insertItem(s,i);var u=t.onLoad;u&&u(i,o)}catch(h){l(h)}}function l(e,n){var r=t.onError;if(!r)throw new Error(e);r(e,n)}if("string"!==typeof e||/^[\s\S]*</.test(e)){if("undefined"!==typeof File&&e instanceof File){var u=new FileReader;return u.onload=function(){o(u.result)},u.onerror=function(){l(u.error)},u.readAsText(e)}o(e)}else{var h=c.getElementById(e);h?o(h):se({url:e,async:!0,onLoad:o,onError:l})}return i}E.inject({importSVG:function(e,t){return A(e,t,this)}}),O.inject({importSVG:function(e,t){return this.activate(),A(e,t,this)}})},u.exports.PaperScript=function(){var e,t,h,d=this,p=d.acorn;if(!p)try{p=n(363)}catch(E){}p||(p=e=t={},h=function(e){"use strict";var t,n,r,i;e.version="0.5.0",e.parse=function(e,i){return n=String(e),r=n.length,a(i),Xe(),function(e){m=y=s,t.locations&&(b=new qe),x=w=null,_=[],Je();var n=e||ht(),r=!0;for(e||(n.body=[]);f!==j;){var i=St();n.body.push(i),r&&pt(i)&<(!0),r=!1}return dt(n,"Program")}(t.program)};var o=e.defaultOptions={ecmaVersion:5,strictSemicolons:!1,allowTrailingCommas:!0,forbid
2Reserved:!1,allowReturnOutsideFunction:!1,locations:!1,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null};function a(e){for(var n in t=e||{},o)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=o[n]);i=t.sourceFile||null}var s,l,c,u,h,f,d,p,g,v,m,y,b,x,_,w,S=e.getLineInfo=function(e,t){for(var n=1,r=0;;){He.lastIndex=r;var i=He.exec(e);if(!(i&&i.index<t))break;++n,r=i.index+i[0].length}return{line:n,column:t-r}};function C(e,t){var r=S(n,e);t+=" ("+r.line+":"+r.column+")";var i=new SyntaxError(t);throw i.pos=e,i.loc=r,i.raisedAt=s,i}e.tokenize=function(e,i){n=String(e),r=n.length,a(i),Xe();var o={};function m(e){return y=c,Je(e),o.start=l,o.end=c,o.startLoc=u,o.endLoc=h,o.type=f,o.value=d,o}return m.jumpTo=function(e,r){var i;if(s=e,t.locations)for(g=1,v=He.lastIndex=0;(i=He.exec(n))&&i.index<e;)++g,v=i.index+i[0].length;p=r,Ze()},m};var k=[],O={type:"num"},T={type:"regexp"},A={type:"string"},P={type:"name"},j={type:"eof"},L={keyword:"break"},M={keyword:"case",beforeExpr:!0},R={keyword:"catch"},D={keyword:"continue"},I={keyword:"debugger"},N={keyword:"default"},F={keyword:"do",isLoop:!0},B={keyword:"else",beforeExpr:!0},U={keyword:"finally"},z={keyword:"for",isLoop:!0},V={keyword:"function"},H={keyword:"if"},W={keyword:"return",beforeExpr:!0},G={keyword:"switch"},q={keyword:"throw",beforeExpr:!0},X={keyword:"try"},Y={keyword:"var"},$={keyword:"while",isLoop:!0},K={keyword:"with"},Z={keyword:"new",beforeExpr:!0},Q={keyword:"this"},J={keyword:"null",atomValue:null},ee={keyword:"true",atomValue:!0},te={keyword:"false",atomValue:!1},ne={keyword:"in",binop:7,beforeExpr:!0},re={break:L,case:M,catch:R,continue:D,debugger:I,default:N,do:F,else:B,finally:U,for:z,function:V,if:H,return:W,switch:G,throw:q,try:X,var:Y,while:$,with:K,null:J,true:ee,false:te,new:Z,in:ne,instanceof:{keyword:"instanceof",binop:7,beforeExpr:!0},this:Q,typeof:{keyword:"typeof",prefix:!0,beforeExpr:!0},void:{keyword:"void",prefix:!0,beforeExpr:!0},delete:{keyword:"delete",prefix:!0,beforeExpr:!0}},ie={type:"[",beforeExpr:!0},oe={type:"]"},ae={type:"{",beforeExpr:!0},se={type:"}"},le={type:"(",beforeExpr:!0},ce={type:")"},ue={type:",",beforeExpr:!0},he={type:";",beforeExpr:!0},fe={type:":",beforeExpr:!0},de={type:"."},pe={type:"?",beforeExpr:!0},ge={binop:10,beforeExpr:!0},ve={isAssign:!0,beforeExpr:!0},me={isAssign:!0,beforeExpr:!0},ye={postfix:!0,prefix:!0,isUpdate:!0},be={prefix:!0,beforeExpr:!0},xe={binop:1,beforeExpr:!0},_e={binop:2,beforeExpr:!0},we={binop:3,beforeExpr:!0},Se={binop:4,beforeExpr:!0},Ce={binop:5,beforeExpr:!0},ke={binop:6,beforeExpr:!0},Oe={binop:7,beforeExpr:!0},Ee={binop:8,beforeExpr:!0},Te={binop:9,prefix:!0,beforeExpr:!0},Ae={binop:10,beforeExpr:!0};for(var Pe in e.tokTypes={bracketL:ie,bracketR:oe,braceL:ae,braceR:se,parenL:le,parenR:ce,comma:ue,semi:he,colon:fe,dot:de,question:pe,slash:ge,eq:ve,name:P,eof:j,num:O,regexp:T,string:A},re)e.tokTypes["_"+Pe]=re[Pe];function je(e){e=e.split(" ");var t="",n=[];e:for(var r=0;r<e.length;++r){for(var i=0;i<n.length;++i)if(n[i][0].length==e[r].length){n[i].push(e[r]);continue e}n.push([e[r]])}function o(e){if(1==e.length)return t+="return str === "+JSON.stringify(e[0])+";";t+="switch(str){";for(var n=0;n<e.length;++n)t+="case "+JSON.stringify(e[n])+":";t+="return true}return false;"}if(n.length>3){for(n.sort((function(e,t){return t.length-e.length})),t+="switch(str.length){",r=0;r<n.length;++r){var a=n[r];t+="case "+a[0].length+":",o(a)}t+="}"}else o(e);return new Function("str",t)}var Le,Me=je("abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile"),Re=je("class enum extends super const export import"),De=je("implements interface let package private protected public static yield"),Ie=je("eval arguments"),Ne=je("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"),Fe=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Be="\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02
2c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0\u08a2-\u08ac\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097f\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c33\u0c35-\u0c39\u0c3d\u0c58\u0c59\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d60\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f4\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f0\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191c\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19c1-\u19c7\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fcc\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua697\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua78e\ua790-\ua793\ua7a0-\ua7aa\ua7f8-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa80-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uabc0-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc",Ue=new RegExp("["+Be+"]"),ze=new RegExp("["+Be+"\u0300-\u036f\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u0620-\u0649\u0672-\u06d3\u06e7-\u06e8\u06fb-\u06fc\u0730-\u074a\u0800-\u0814\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0840-\u0857\u08e4-\u08fe\u0900-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962-\u0963\u0966-\u096f\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09d7\u09df-\u09e0\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a66-\u0a71\u0
2a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2-\u0ae3\u0ae6-\u0aef\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b5f-\u0b60\u0b66-\u0b6f\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0be6-\u0bef\u0c01-\u0c03\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62-\u0c63\u0c66-\u0c6f\u0c82\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2-\u0ce3\u0ce6-\u0cef\u0d02\u0d03\u0d46-\u0d48\u0d57\u0d62-\u0d63\u0d66-\u0d6f\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e34-\u0e3a\u0e40-\u0e45\u0e50-\u0e59\u0eb4-\u0eb9\u0ec8-\u0ecd\u0ed0-\u0ed9\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f41-\u0f47\u0f71-\u0f84\u0f86-\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u1000-\u1029\u1040-\u1049\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f-\u109d\u135d-\u135f\u170e-\u1710\u1720-\u1730\u1740-\u1750\u1772\u1773\u1780-\u17b2\u17dd\u17e0-\u17e9\u180b-\u180d\u1810-\u1819\u1920-\u192b\u1930-\u193b\u1951-\u196d\u19b0-\u19c0\u19c8-\u19c9\u19d0-\u19d9\u1a00-\u1a15\u1a20-\u1a53\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1b46-\u1b4b\u1b50-\u1b59\u1b6b-\u1b73\u1bb0-\u1bb9\u1be6-\u1bf3\u1c00-\u1c22\u1c40-\u1c49\u1c5b-\u1c7d\u1cd0-\u1cd2\u1d00-\u1dbe\u1e01-\u1f15\u200c\u200d\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2d81-\u2d96\u2de0-\u2dff\u3021-\u3028\u3099\u309a\ua640-\ua66d\ua674-\ua67d\ua69f\ua6f0-\ua6f1\ua7f8-\ua800\ua806\ua80b\ua823-\ua827\ua880-\ua881\ua8b4-\ua8c4\ua8d0-\ua8d9\ua8f3-\ua8f7\ua900-\ua909\ua926-\ua92d\ua930-\ua945\ua980-\ua983\ua9b3-\ua9c0\uaa00-\uaa27\uaa40-\uaa41\uaa4c-\uaa4d\uaa50-\uaa59\uaa7b\uaae0-\uaae9\uaaf2-\uaaf3\uabc0-\uabe1\uabec\uabed\uabf0-\uabf9\ufb20-\ufb28\ufe00-\ufe0f\ufe20-\ufe26\ufe33\ufe34\ufe4d-\ufe4f\uff10-\uff19\uff3f]"),Ve=/[\n\r\u2028\u2029]/,He=/\r\n|[\n\r\u2028\u2029]/g,We=e.isIdentifierStart=function(e){return e<65?36===e:e<91||(e<97?95===e:e<123||e>=170&&Ue.test(String.fromCharCode(e)))},Ge=e.isIdentifierChar=function(e){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||e>=170&&ze.test(String.fromCharCode(e))))};function qe(){this.line=g,this.column=s-v}function Xe(){g=1,s=v=0,p=!0,Ze()}function Ye(e,n){c=s,t.locations&&(h=new qe),f=e,Ze(),d=n,p=e.beforeExpr}function $e(){var e,r=t.onComment&&t.locations&&new qe,i=s,o=n.indexOf("*/",s+=2);if(-1===o&&C(s-2,"Unterminated comment"),s=o+2,t.locations)for(He.lastIndex=i;(e=He.exec(n))&&e.index<s;)++g,v=e.index+e[0].length;t.onComment&&t.onComment(!0,n.slice(i+2,o),i,s,r,t.locations&&new qe)}function Ke(){for(var e=s,i=t.onComment&&t.locations&&new qe,o=n.charCodeAt(s+=2);s<r&&10!==o&&13!==o&&8232!==o&&8233!==o;)++s,o=n.charCodeAt(s);t.onComment&&t.onComment(!1,n.slice(e+2,s),e,s,i,t.locations&&new qe)}function Ze(){for(;s<r;){var e=n.charCodeAt(s);if(32===e)++s;else if(13===e)++s,10===(i=n.charCodeAt(s))&&++s,t.locations&&(++g,v=s);else if(10===e||8232===e||8233===e)++s,t.locations&&(++g,v=s);else if(e>8&&e<14)++s;else if(47===e){var i;if(42===(i=n.charCodeAt(s+1)))$e();else{if(47!==i)break;Ke()}}else if(160===e)++s;else{if(!(e>=5760&&Fe.test(String.fromCharCode(e))))break;++s}}}function Qe(e){switch(e){case 46:return function(){var e=n.charCodeAt(s+1);return e>=48&&e<=57?rt(!0):(++s,Ye(de))}();case 40:return++s,Ye(le);case 41:return++s,Ye(ce);case 59:return++s,Ye(he);case 44:return++s,Ye(ue);case 91:return++s,Ye(ie);case 93:return++s,Ye(oe);case 123:return++s,Ye(ae);case 125:return++s,Ye(se);case 58:return++s,Ye(fe);case 63:return++s,Ye(pe);case 48:var i=n.charCodeAt(s+1);if(120===i||88===i)return function(){s+=2;var e=nt(16);return null==e&&C(l+2,"Expected hexadecimal number"),We(n.charCodeAt(s))&&C(s,"Identifier directly after number"),Ye(O,e)}();case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return rt(!1);case 34:case 39:return function(e){s++;for(var i="";;){s>=r&&C(l,"Unterminated string constant");var o=n.charCodeAt(s);if(o===e)return++s,Ye(A,i);if(92===o){o=n.charCodeAt(++s);var a=/^[0-7]+/.exec(n.slice(s,s+3));for(a&&(a=a[0]);a&&parseInt(a,8)>255;)a=a.slice(0,-1);if("0"===a&&(a=null),++s,a)w&&C(s-2,"Octal literal in strict mode"),i+=String.fromCharCode(parseInt(a,8)),s+=a.length-1;else switch(o){case 110:i+="\n";break;case 114:i+="\r";break;case 120:i+=String.fromCharCode(it(2));break;case 117:i+=String.fromCharCode(it(4));break;case 85:i+=String.fromCharCode(it(8));break;case 116:i+="\t";break;case 98:i+="\b";break;case 118:i+="\v";break;case 102:i+="\f";break;case 48:i+="\0";break;case 13:10===n.charCodeAt(s)&&++s;case 10:t.locations&&(v=s,++g);break;default:i+=String.fromCharCode(o)}}else 13!==o&&10!==o&&8232!==o&&8233!==o||C(l,"Unterminated string constant"),i+=String.fromCharCode(o),++s}}(e);case 47:return function(){var e=n.charCodeAt(s+1);return p?(++s,tt()):61===e?et(me,2):et(ge,1)}();case 37:case 42:return 61===n.charCodeAt(s+1)?et(me,2):et(Ae,1);case 124:case 38:return function(e){var t=n.charCodeAt(s+1);return t===e?et(124===e?xe:_e,2):61===t?et(me,2):et(124===e?we:Ce,1)}(e);case 94:return 61===n.charCodeAt(s+1)?et(me,2):et(Se,1);case 43:case 45:return function(e){var t=n.charCodeAt(s+1);return t===e?45==t&&62==n.charCodeAt(s+2)&&Ve.test(n.slice(y,s))?(s+=3,Ke(),Ze(),Je()):et(ye,2):61===t?et(me,2):et(Te,1)}(e);
2case 60:case 62:return function(e){var t=n.charCodeAt(s+1),r=1;return t===e?(r=62===e&&62===n.charCodeAt(s+2)?3:2,61===n.charCodeAt(s+r)?et(me,r+1):et(Ee,r)):33==t&&60==e&&45==n.charCodeAt(s+2)&&45==n.charCodeAt(s+3)?(s+=4,Ke(),Ze(),Je()):(61===t&&(r=61===n.charCodeAt(s+2)?3:2),et(Oe,r))}(e);case 61:case 33:return function(e){return 61===n.charCodeAt(s+1)?et(ke,61===n.charCodeAt(s+2)?3:2):et(61===e?ve:be,1)}(e);case 126:return et(be,1)}return!1}function Je(e){if(e?s=l+1:l=s,t.locations&&(u=new qe),e)return tt();if(s>=r)return Ye(j);var i=n.charCodeAt(s);if(We(i)||92===i)return at();var o=Qe(i);if(!1===o){var a=String.fromCharCode(i);if("\\"===a||Ue.test(a))return at();C(s,"Unexpected character '"+a+"'")}return o}function et(e,t){var r=n.slice(s,s+t);s+=t,Ye(e,r)}function tt(){for(var e,t,i=s;;){s>=r&&C(i,"Unterminated regular expression");var o=n.charAt(s);if(Ve.test(o)&&C(i,"Unterminated regular expression"),e)e=!1;else{if("["===o)t=!0;else if("]"===o&&t)t=!1;else if("/"===o&&!t)break;e="\\"===o}++s}var a=n.slice(i,s);++s;var l=ot();l&&!/^[gmsiy]*$/.test(l)&&C(i,"Invalid regexp flag");try{var c=new RegExp(a,l)}catch(E){E instanceof SyntaxError&&C(i,E.message),C(E)}return Ye(T,c)}function nt(e,t){for(var r=s,i=0,o=0,a=null==t?1/0:t;o<a;++o){var l,c=n.charCodeAt(s);if((l=c>=97?c-97+10:c>=65?c-65+10:c>=48&&c<=57?c-48:1/0)>=e)break;++s,i=i*e+l}return s===r||null!=t&&s-r!==t?null:i}function rt(e){var t=s,r=!1,i=48===n.charCodeAt(s);e||null!==nt(10)||C(t,"Invalid number"),46===n.charCodeAt(s)&&(++s,nt(10),r=!0);var o=n.charCodeAt(s);69!==o&&101!==o||(43!==(o=n.charCodeAt(++s))&&45!==o||++s,null===nt(10)&&C(t,"Invalid number"),r=!0),We(n.charCodeAt(s))&&C(s,"Identifier directly after number");var a,l=n.slice(t,s);return r?a=parseFloat(l):i&&1!==l.length?/[89]/.test(l)||w?C(t,"Invalid number"):a=parseInt(l,8):a=parseInt(l,10),Ye(O,a)}function it(e){var t=nt(16,e);return null===t&&C(l,"Bad character escape sequence"),t}function ot(){Le=!1;for(var e,t=!0,r=s;;){var i=n.charCodeAt(s);if(Ge(i))Le&&(e+=n.charAt(s)),++s;else{if(92!==i)break;Le||(e=n.slice(r,s)),Le=!0,117!=n.charCodeAt(++s)&&C(s,"Expecting Unicode escape sequence \\uXXXX"),++s;var o=it(4),a=String.fromCharCode(o);a||C(s-1,"Invalid Unicode escape"),(t?We(o):Ge(o))||C(s-4,"Invalid Unicode escape"),e+=a}t=!1}return Le?e:n.slice(r,s)}function at(){var e=ot(),t=P;return!Le&&Ne(e)&&(t=re[e]),Ye(t,e)}function st(){m=l,y=c,b=h,Je()}function lt(e){if(w=e,s=l,t.locations)for(;s<v;)v=n.lastIndexOf("\n",v-2)+1,--g;Ze(),Je()}function ct(){this.type=null,this.start=l,this.end=null}function ut(){this.start=u,this.end=null,null!==i&&(this.source=i)}function ht(){var e=new ct;return t.locations&&(e.loc=new ut),t.directSourceFile&&(e.sourceFile=t.directSourceFile),t.ranges&&(e.range=[l,0]),e}function ft(e){var n=new ct;return n.start=e.start,t.locations&&(n.loc=new ut,n.loc.start=e.loc.start),t.ranges&&(n.range=[e.range[0],0]),n}function dt(e,n){return e.type=n,e.end=y,t.locations&&(e.loc.end=b),t.ranges&&(e.range[1]=y),e}function pt(e){return t.ecmaVersion>=5&&"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"use strict"===e.expression.value}function gt(e){if(f===e)return st(),!0}function vt(){return!t.strictSemicolons&&(f===j||f===se||Ve.test(n.slice(y,l)))}function mt(){gt(he)||vt()||bt()}function yt(e){f===e?st():bt()}function bt(){C(l,"Unexpected token")}function xt(e){"Identifier"!==e.type&&"MemberExpression"!==e.type&&C(e.start,"Assigning to rvalue"),w&&"Identifier"===e.type&&Ie(e.name)&&C(e.start,"Assigning to "+e.name+" in strict mode")}var _t={kind:"loop"},wt={kind:"switch"};function St(){(f===ge||f===me&&"/="==d)&&Je(!0);var e=f,r=ht();switch(e){case L:case D:st();var i=e===L;gt(he)||vt()?r.label=null:f!==P?bt():(r.label=Ft(),mt());for(var o=0;o<_.length;++o){var a=_[o];if(null==r.label||a.name===r.label.name){if(null!=a.kind&&(i||"loop"===a.kind))break;if(r.label&&i)break}}return o===_.length&&C(r.start,"Unsyntactic "+e.keyword),dt(r,i?"BreakStatement":"ContinueStatement");case I:return st(),mt(),dt(r,"DebuggerStatement");case F:return st(),_.push(_t),r.body=St(),_.pop(),yt($),r.test=Ct(),mt(),dt(r,"DoWhileStatement");case z:if(st(),_.push(_t),yt(le),f===he)return Ot(r,null);if(f===Y){var s=ht();return st(),Tt(s,!0),dt(s,"VariableDeclaration"),1===s.declarations.length&>(ne)?Et(r,s):Ot(r,s)}
2return s=At(!1,!0),gt(ne)?(xt(s),Et(r,s)):Ot(r,s);case V:return st(),It(r,!0);case H:return st(),r.test=Ct(),r.consequent=St(),r.alternate=gt(B)?St():null,dt(r,"IfStatement");case W:return x||t.allowReturnOutsideFunction||C(l,"'return' outside of function"),st(),gt(he)||vt()?r.argument=null:(r.argument=At(),mt()),dt(r,"ReturnStatement");case G:st(),r.discriminant=Ct(),r.cases=[],yt(ae),_.push(wt);for(var c,u;f!=se;)if(f===M||f===N){var h=f===M;c&&dt(c,"SwitchCase"),r.cases.push(c=ht()),c.consequent=[],st(),h?c.test=At():(u&&C(m,"Multiple default clauses"),u=!0,c.test=null),yt(fe)}else c||bt(),c.consequent.push(St());return c&&dt(c,"SwitchCase"),st(),_.pop(),dt(r,"SwitchStatement");case q:return st(),Ve.test(n.slice(y,l))&&C(y,"Illegal newline after throw"),r.argument=At(),mt(),dt(r,"ThrowStatement");case X:if(st(),r.block=kt(),r.handler=null,f===R){var p=ht();st(),yt(le),p.param=Ft(),w&&Ie(p.param.name)&&C(p.param.start,"Binding "+p.param.name+" in strict mode"),yt(ce),p.guard=null,p.body=kt(),r.handler=dt(p,"CatchClause")}return r.guardedHandlers=k,r.finalizer=gt(U)?kt():null,r.handler||r.finalizer||C(r.start,"Missing catch or finally clause"),dt(r,"TryStatement");case Y:return st(),Tt(r),mt(),dt(r,"VariableDeclaration");case $:return st(),r.test=Ct(),_.push(_t),r.body=St(),_.pop(),dt(r,"WhileStatement");case K:return w&&C(l,"'with' in strict mode"),st(),r.object=Ct(),r.body=St(),dt(r,"WithStatement");case ae:return kt();case he:return st(),dt(r,"EmptyStatement");default:var g=d,v=At();if(e===P&&"Identifier"===v.type&>(fe)){for(o=0;o<_.length;++o)_[o].name===g&&C(v.start,"Label '"+g+"' is already declared");var b=f.isLoop?"loop":f===G?"switch":null;return _.push({name:g,kind:b}),r.body=St(),_.pop(),r.label=v,dt(r,"LabeledStatement")}return r.expression=v,mt(),dt(r,"ExpressionStatement")}}function Ct(){yt(le);var e=At();return yt(ce),e}function kt(e){var t,n=ht(),r=!0,i=!1;for(n.body=[],yt(ae);!gt(se);){var o=St();n.body.push(o),r&&e&&pt(o)&&(t=i,lt(i=!0)),r=!1}return i&&!t&<(!1),dt(n,"BlockStatement")}function Ot(e,t){return e.init=t,yt(he),e.test=f===he?null:At(),yt(he),e.update=f===ce?null:At(),yt(ce),e.body=St(),_.pop(),dt(e,"ForStatement")}function Et(e,t){return e.left=t,e.right=At(),yt(ce),e.body=St(),_.pop(),dt(e,"ForInStatement")}function Tt(e,t){for(e.declarations=[],e.kind="var";;){var n=ht();if(n.id=Ft(),w&&Ie(n.id.name)&&C(n.id.start,"Binding "+n.id.name+" in strict mode"),n.init=gt(ve)?At(!0,t):null,e.declarations.push(dt(n,"VariableDeclarator")),!gt(ue))break}return e}function At(e,t){var n=Pt(t);if(!e&&f===ue){var r=ft(n);for(r.expressions=[n];gt(ue);)r.expressions.push(Pt(t));return dt(r,"SequenceExpression")}return n}function Pt(e){var t=function(e){var t=function(e){return jt(Lt(),-1,e)}(e);if(gt(pe)){var n=ft(t);return n.test=t,n.consequent=At(!0),yt(fe),n.alternate=At(!0,e),dt(n,"ConditionalExpression")}return t}(e);if(f.isAssign){var n=ft(t);return n.operator=d,n.left=t,st(),n.right=Pt(e),xt(t),dt(n,"AssignmentExpression")}return t}function jt(e,t,n){var r=f.binop;if(null!=r&&(!n||f!==ne)&&r>t){var i=ft(e);i.left=e,i.operator=d;var o=f;return st(),i.right=jt(Lt(),r,n),jt(dt(i,o===xe||o===_e?"LogicalExpression":"BinaryExpression"),t,n)}return e}function Lt(){if(f.prefix){var e=ht(),t=f.isUpdate;return e.operator=d,e.prefix=!0,p=!0,st(),e.argument=Lt(),t?xt(e.argument):w&&"delete"===e.operator&&"Identifier"===e.argument.type&&C(e.start,"Deleting local variable in strict mode"),dt(e,t?"UpdateExpression":"UnaryExpression")}for(var n=Mt(Rt());f.postfix&&!vt();)(e=ft(n)).operator=d,e.prefix=!1,e.argument=n,xt(n),st(),n=dt(e,"UpdateExpression");return n}function Mt(e,t){var n;return gt(de)?((n=ft(e)).object=e,n.property=Ft(!0),n.computed=!1,Mt(dt(n,"MemberExpression"),t)):gt(ie)?((n=ft(e)).object=e,n.property=At(),n.computed=!0,yt(oe),Mt(dt(n,"MemberExpression"),t)):!t&>(le)?((n=ft(e)).callee=e,n.arguments=Nt(ce,!1),Mt(dt(n,"CallExpression"),t)):e}function Rt(){switch(f){case Q:var e=ht();return st(),dt(e,"ThisExpression");case P:return Ft();case O:case A:case T:return(e=ht()).value=d,e.raw=n.slice(l,c),st(),dt(e,"Literal");case J:case ee:case te:return(e=ht()).value=f.atomValue,e.raw=f.keyword,st(),dt(e,"Literal");case le:var r=u,i=l;st();var o=At();return o.start=i,o.end=c,t.locations&&(o.loc.start=r,o.loc.end=h),t.ranges&&(o.range=[i,c]),yt(ce),o;case ie:return e=ht(),st(),e.elements=Nt(oe,!0,!0),dt(e,"ArrayExpression");case ae:return function(){var e=ht(),n=!0,r=!1;for(e.properties=[],st();!gt(se);){if(n)n=!1;else if(yt(ue),t.allowTrailingCommas&>(se))break;var i,o={key:Dt()},a=!1;if(gt(fe)?(o.value=At(!0),i=o.kind="init"):t.ecmaVersion>=5&&"Identifier"===o.key.type&&("get"===o.key.name||"set"===o.key.name)?(a=r=!0,i=o.kind=o.key.name,o.key=Dt(),f!==le&&bt(),o.value=It(ht(),!1)):bt(),"Identifier"===o.key.type&&(w||r))for(var s=0;s<e.properties.length;++s){var l=e.properties[s];if(l.key.name===o.key.name){var c=i==l.kind||a&&"init"===l.kind||"init"===i&&("get"===l.kind||"set"===l.kind);c&&!w&&"init"===i&&"init"===l.kind&&(c=!1),c&&C(o.key.start,"Redefinition of property")}}e.properties.push(o)}return dt(e,"ObjectExpression")}();case V:return e=ht(),st(),It(e,!1);case Z:return function(){var e=ht();return st(),e.callee=Mt(Rt(),!0),gt(le)?e.arguments=Nt(ce,!1):e.arguments=k,dt(e,"NewExpression")}();default:bt()}}function Dt(){return f===O||f===A?Rt():Ft(!0)}function It(e,t){f===P?e.id=Ft():t?bt():e.id=null,e.params=[];var n=!0;for(yt(le);!gt(ce);)n?n=!1:yt(ue),e.params.push(Ft());var r=x,i=_;if(x=!0,_=[],e.body=kt(!0),x=r,_=i,w||e.body.body.length&&pt(e.body.body[0]))for(var o=e.id?-1:0;o<e.params.length;++o){var a=o<0?e.id:e.params[o];if((De(a.name)||Ie(a.name))&&C(a.start,"Defining '"+a.name+"' in strict mode"),o>=0)for(var s=0;s<o;++s)a.name===e.params[s].name&&C(a.start,"Argument name clash in strict mode")}return dt(e,t?"FunctionDeclaration":"FunctionExpression")}function Nt(e,n,r){for(var i=[],o=!0;!gt(e);){if(o)o=!1;else if(yt(ue),n&&t.allowTrailingCommas&>(e))break;r&&f===ue?i.push(null):i.push(At(!0))}return i}function Ft(e){var r=ht();return e&&"everywhere"==t.forbidReserved&&(e=!1),f===P?(!e&&(t.forbidReserved&&(3===t.ecmaVersion?Me:Re)(d)||w&&De(d))&&-1==n.slice(l,c).indexOf("\\")&&C(l,"The keyword '"+d+"' is reserved"),r.name=d):e&&f.keyword?r.name=f.keyword:bt(),p=!1,st(),dt(r,"Identifier")}},"object"==typeof e&&"object"==typeof t?h(e):(r=[e],(o="function"===typeof(i=h)?i.apply(e,r):i)===s||(t.exports=o)),p.version||(p=null));function g(e,t){return(d.acorn||p).parse(e,t)}var v={"+":"__add","-":"__subtract","*":"__multiply","/":"__divide","%":"__modulo","==":"__equals","!=":"__equals"},m={"-":"__negate","+":"__self"},b=u.each(["add","subtract","multiply","divide","modulo","equals","negate"],(function(e){this["__"+e]="#"+e}),{__self:function(){return this}});function _(e,t,n){var r=v[t];if(e&&e[r]){var i=e[r](n);return"!="===t?!i:i}switch(t){case"+":return e+n;case"-":return e-n;case"*":return e*n;case"/":return e/n;case"%":return e%n;case"==":return e==n;case"!=":return e!=n}}function w(e,t){var n=m[e];
2if(t&&t[n])return t[n]();switch(e){case"+":return+t;case"-":return-t}}function S(e,t){if(!e)return"";var n=[];function r(e){for(var t=0,r=n.length;t<r;t++){var i=n[t];if(i[0]>=e)break;e+=i[1]}return e}function i(t){return e.substring(r(t.range[0]),r(t.range[1]))}function o(t,i){for(var o=r(t.range[0]),a=r(t.range[1]),s=0,l=n.length-1;l>=0;l--)if(o>n[l][0]){s=l+1;break}n.splice(s,0,[o,i.length-a+o]),e=e.substring(0,o)+i+e.substring(a)}function s(t,n){switch(t.type){case"UnaryExpression":if(t.operator in m&&"Literal"!==t.argument.type){var a=i(t.argument);o(t,'$__("'+t.operator+'", '+a+")")}break;case"BinaryExpression":if(t.operator in v&&"Literal"!==t.left.type){var s=i(t.left),l=i(t.right),c=function(t,n){return e.substring(r(t.range[1]),r(n.range[0]))}(t.left,t.right),u=t.operator;o(t,"__$__("+s+","+c.replace(new RegExp("\\"+u),'"'+u+'"')+", "+l+")")}break;case"UpdateExpression":case"AssignmentExpression":var h=n&&n.type;if(!("ForStatement"===h||"BinaryExpression"===h&&/^[=!<>]/.test(n.operator)||"MemberExpression"===h&&n.computed))if("UpdateExpression"===t.type){var f=(a=i(t.argument))+" = "+(d="__$__("+a+', "'+t.operator[0]+'", 1)');t.prefix?f="("+f+")":"AssignmentExpression"!==h&&"VariableDeclarator"!==h&&"BinaryExpression"!==h||(i(n.left||n.id)===a&&(f=d),f=a+"; "+f),o(t,f)}else if(/^.=$/.test(t.operator)&&"Literal"!==t.left.type){s=i(t.left),l=i(t.right);var d=s+" = __$__("+s+', "'+t.operator[0]+'", '+l+")";o(t,/^\(.*\)$/.test(i(t))?"("+d+")":d)}}}var u,h=(t=t||{}).url||"",f=t.sourceMaps,d=t.paperFeatures||{},p=t.source||e,y=t.offset||0,b=fe.agent,x=b.versionNumber,_=!1,w=/\r\n|\n|\r/gm;if(f&&(b.chrome&&x>=30||b.webkit&&x>=537.76||b.firefox&&x>=23||b.node)){if(b.node)y-=2;else if(l&&h&&!l.location.href.indexOf(h)){var S=c.getElementsByTagName("html")[0].innerHTML;y=S.substr(0,S.indexOf(e)+1).match(w).length+1}var C=["AA"+function(e){var t="";for(e=(Math.abs(e)<<1)+(e<0?1:0);e||!t;){var n=31&e;(e>>=5)&&(n|=32),t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[n]}return t}((_=y>0&&!(b.chrome&&x>=36||b.safari&&x>=600||b.firefox&&x>=40||b.node))?0:y)+"A"];C.length=(e.match(w)||[]).length+1+(_?y:0),u={version:3,file:h,names:[],mappings:C.join(";AACA"),sourceRoot:"",sources:[h],sourcesContent:[p]}}return!1===d.operatorOverloading&&!1===d.moduleExports||function e(t,n,r){if(t){for(var a in t)if("range"!==a&&"loc"!==a){var l=t[a];if(Array.isArray(l))for(var c=0,u=l.length;c<u;c++)e(l[c],t,r);else l&&"object"===typeof l&&e(l,t,r)}!1!==r.operatorOverloading&&s(t,n),!1!==r.moduleExports&&function(e){switch(e.type){case"ExportDefaultDeclaration":o({range:[e.start,e.declaration.start]},"module.exports = ");break;case"ExportNamedDeclaration":var t=e.declaration,n=e.specifiers;if(t){var r=t.declarations;r&&(r.forEach((function(e){o(e,"module.exports."+i(e))})),o({range:[e.start,t.start+t.kind.length]},""))}else if(n){var a=n.map((function(e){var t=i(e);return"module.exports."+t+" = "+t+"; "})).join("");a&&o(e,a)}}}(t)}}(g(e,{ranges:!0,preserveParens:!0,sourceType:"module"}),null,d),u&&(_&&(e=new Array(y+1).join("\n")+e),/^(inline|both)$/.test(f)&&(e+="\n//# sourceMappingURL=data:application/json;base64,"+a.btoa(unescape(encodeURIComponent(JSON.stringify(u))))),e+="\n//# sourceURL="+(h||"paperscript")),{url:h,source:p,code:e,map:u}}function C(e,t,n){fe=t;var r,i=t.getView(),o=/\btool\.\w+|\s+on(?:Key|Mouse)(?:Up|Down|Move|Drag)\b/.test(e)&&!/\bnew\s+Tool\b/.test(e)?new oe:null,a=o?o._events:[],s=["onFrame","onResize"].concat(a),l=[],h=[],f="object"===typeof e?e:S(e,n);function d(t,n){for(var r in t)!n&&/^_/.test(r)||!new RegExp("([\\b\\s\\W]|^)"+r.replace(/\$/g,"\\$")+"\\b").test(e)||(l.push(r),h.push(t[r]))}e=f.code,d({__$__:_,$__:w,paper:t,tool:o},!0),d(t),e="var module = { exports: {} }; "+e,(m=u.each(s,(function(t){new RegExp("\\s+"+t+"\\b").test(e)&&(l.push(t),this.push("module.exports."+t+" = "+t+";"))}),[]).join("\n"))&&(e+="\n"+m),e+="\nreturn module.exports;";var p=fe.agent;if(c&&(p.chrome||p.firefox&&p.versionNumber<40)){var g=c.createElement("script"),v=c.head||c.getElementsByTagName("head")[0];p.firefox&&(e="\n"+e),g.appendChild(c.createTextNode("document.__paperscript__ = function("+l+") {"+e+"\n}")),v.appendChild(g),r=c.__paperscript__,delete c.__paperscript__,v.removeChild(g)}else r=Function(l,e);var m,b=(m=r&&r.apply(t,h))||{};return u.each(a,(function(e){var t=b[e];t&&(o[e]=t)})),i&&(b.onResize&&i.setOnResize(b.onResize),i.emit("resize",{size:i.size,delta:new y}),b.onFrame&&i.setOnFrame(b.onFrame),i.requestUpdate()),m}function k(e){if(/^text\/(?:x-|)paperscript$/.test(e.type)&&"true"!==f.getAttribute(e,"ignore")){var t=f.getAttribute(e,"canvas"),n=c.getElementById(t),r=e.src||e.getAttribute("data-src"),i=f.hasAttribute(e,"async"),o="data-paper-scope";if(!n)throw new Error('Unable to find canvas with id "'+t+'"');var a=f.get(n.getAttribute(o))||(new f).setup(n);return n.setAttribute(o,a._id),r?se({url:r,async:i,mimeType:"text/plain",onLoad:function(e){C(e,a,r)}}):C(e.innerHTML,a,e.baseURI),e.setAttribute("data-paper-ignore","true"),a}}function O(){u.each(c&&c.getElementsByTagName("script"),k)}return y.inject(b),x.inject(b),q.inject(b),l&&("complete"===c.readyState?setTimeout(O):Z.add(l,{load:O})),{compile:S,execute:C,load:function(e){return e?k(e):O()},parse:g,calculateBinary:_,calculateUnary:w}}.call(this);var fe=new(f.inject(u.exports,{Base:u,Numerical:v,Key:ne,DomEvent:Z,DomElement:K,document:c,window:l,Symbol:M,PlacedSymbol:L}));return fe.agent.node&&n(364)(fe),(o="function"===typeof(i=fe)?i.call(t,n,t,e):i)===s||(e.exports=o),fe}).call(this,"object"===typeof self?self:null)},,function(e,t,n){e.exports=n(296)()},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(248);function i(e){if("string"!==typeof e)throw new Error(Object(r.a)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},function(e,t,n){"use strict";n.d(t,"d",(function(){return s})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return h})),n.d(t,"e",(function(){return f}));var r=n(248);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function o(e){if(e.type)return e;if("#"===e.charAt(0))return o(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(Object(r.a)(3,e));var i=e.substring(t+1,e.length-1).split(",");return{type:n,values:i=i.map((function(e){return parseFloat(e)}))}}function a(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function s(e,t){var n=l(e),r=l(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function l(e){var t="hsl"===(e=o(e)).type?o(function(e){var t=(e=o(e)).values,n=t[0],r=t[1]/100,i=t[2]/100,s=r*Math.min(i,1-i),l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-s*Math.max(Math.min(t-3,9-t,1),-1)},c="rgb",u=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),a({type:c,values:u})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}
2)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return l(e)>.5?h(e,t):f(e,t)}function u(e,t){return e=o(e),t=i(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,a(e)}function h(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return a(e)}function f(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return a(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),i=n(50);function o(e,t){return r.useMemo((function(){return null==e&&null==t?null:function(n){Object(i.a)(e,n),Object(i.a)(t,n)}}),[e,t])}},,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return u})),n.d(t,"e",(function(){return c}));var r=n(0),i=n.n(r),o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};var a=Symbol("postpone"),s=Symbol("none");function l(e){var t=T(e).toMethods(),n=l[f];return n&&t.attach(n),t.self}function c(e){return u(e)}function u(e){var t="object"===typeof e&&null!==e?e[g]:void 0;if(t){if(t.isMounted){var n=i.a.useState({})[1];return A(t.state,t.path,(function(){return n({})}),t).self}var r=i.a.useState({state:t.state}),o=r[0],a=r[1];return A(o.state,t.path,(function(){return a({state:o.state})}),o.state).self}var s=i.a.useState((function(){return{state:T(e)}})),l=s[0],u=s[1],h=A(l.state,x,(function(){return u({state:l.state})}),l.state);if(p){var d=i.a.useRef(!1);d.current=!1,i.a.useEffect((function(){return d.current=!0,function(){d.current&&l.state.destroy()}}))}else i.a.useEffect((function(){return function(){return l.state.destroy()}}),[]);var v=c[f];return v&&h.attach(v),h.self}function h(){return{id:y}}var f=Symbol("DevTools");var d,p=void 0!==e&&null!==e&&"object"===typeof e&&void 0!==Object({NODE_ENV:"production",PUBLIC_URL:"/design",REACT_APP_API_DOMAIN:"api.vectr.com",REACT_APP_API_URL:"https://api.vectr.com",REACT_APP_SOCKET_IO_URL:"wss://api.vectr.com"})&&null!==Object({NODE_ENV:"production",PUBLIC_URL:"/design",REACT_APP_API_DOMAIN:"api.vectr.com",REACT_APP_API_URL:"https://api.vectr.com",REACT_APP_SOCKET_IO_URL:"wss://api.vectr.com"})&&!1,g=Symbol("self");!function(e){e[e.InitStateToValueFromState=101]="InitStateToValueFromState",e[e.SetStateToValueFromState=102]="SetStateToValueFromState",e[e.GetStateWhenPromised=103]="GetStateWhenPromised",e[e.SetStateWhenPromised=104]="SetStateWhenPromised",e[e.SetStateNestedToPromised=105]="SetStateNestedToPromised",e[e.SetStateWhenDestroyed=106]="SetStateWhenDestroyed",e[e.ToJson_Value=108]="ToJson_Value",e[e.ToJson_State=109]="ToJson_State",e[e.GetUnknownPlugin=120]="GetUnknownPlugin",e[e.SetProperty_State=201]="SetProperty_State",e[e.SetProperty_Value=202]="SetProperty_Value",e[e.SetPrototypeOf_State=203]="SetPrototypeOf_State",e[e.SetPrototypeOf_Value=204]="SetPrototypeOf_Value",e[e.PreventExtensions_State=205]="PreventExtensions_State",e[e.PreventExtensions_Value=206]="PreventExtensions_Value",e[e.DefineProperty_State=207]="DefineProperty_State",e[e.DefineProperty_Value=208]="DefineProperty_Value",e[e.DeleteProperty_State=209]="DeleteProperty_State",e[e.DeleteProperty_Value=210]="DeleteProperty_Value",e[e.Construct_State=211]="Construct_State",e[e.Construct_Value=212]="Construct_Value",e[e.Apply_State=213]="Apply_State",e[e.Apply_Value=214]="Apply_Value"}(d||(d={}));var v=function(e){function t(t,n,r){return e.call(this,"Error: HOOKSTATE-"+n+" [path: /"+t.join("/")+(r?", details: "+r:"")+"]. See https://hookstate.js.org/docs/exceptions#hookstate-"+n)||this}return function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(Error);var m=function(){try{new Proxy({},{});return!1}catch(e){return!0}}(),y=Symbol("Downgraded"),b=Symbol("ProxyMarker"),x=[],_=function(){function e(e){this._value=e,this._edition=0,this._subscribers=new Set,this._setSubscribers=new Set,this._destroySubscribers=new Set,this._batchStartSubscribers=new Set,this._batchFinishSubscribers=new Set,this._plugins=new Map,this._batches=0,"object"===typeof e&&Promise.resolve(e)===e?
2(this._promised=this.createPromised(e),this._value=s):e===s&&(this._promised=this.createPromised(void 0))}return e.prototype.createPromised=function(e){var t=this,n=new w(e?Promise.resolve(e):void 0,(function(e){t.promised===n&&-1!==t.edition&&(t._promised=void 0,t.set(x,e,void 0),t.update([x]))}),(function(){t.promised===n&&-1!==t.edition&&(t._edition+=1,t.update([x]))}),(function(){if(t._batchesPendingActions&&t._value!==s&&-1!==t.edition){var e=t._batchesPendingActions;t._batchesPendingActions=void 0,e.forEach((function(e){return e()}))}}));return n},Object.defineProperty(e.prototype,"edition",{get:function(){return this._edition},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"promised",{get:function(){return this._promised},enumerable:!1,configurable:!0}),e.prototype.get=function(e){var t=this._value;return t===s||e.forEach((function(e){t=t[e]})),t},e.prototype.set=function(e,t,n){if(this._edition<0)throw new v(e,d.SetStateWhenDestroyed);if(0===e.length){var r={path:e,state:t,value:t,previous:this._value,merged:n};if(t===s)this._promised=this.createPromised(void 0),delete r.value,delete r.state;else if("object"===typeof t&&Promise.resolve(t)===t)this._promised=this.createPromised(t),t=s,delete r.value,delete r.state;else if(this._promised&&!this._promised.resolver&&!this._promised.fullfilled)throw new v(e,d.SetStateWhenPromised);return(l=this._value)===s&&delete r.previous,this._value=t,this.afterSet(r),l===s&&this._value!==s&&this.promised&&this.promised.resolver&&this.promised.resolver(this._value),e}if("object"===typeof t&&Promise.resolve(t)===t)throw new v(e,d.SetStateNestedToPromised);for(var i=this._value,o=0;o<e.length-1;o+=1)i=i[e[o]];var a=e[e.length-1];if(a in i){if(t!==s){var l=i[a];return i[a]=t,this.afterSet({path:e,state:this._value,value:t,previous:l,merged:n}),e}l=i[a];return Array.isArray(i)&&"number"===typeof a?i.splice(a,1):delete i[a],this.afterSet({path:e,state:this._value,previous:l,merged:n}),e.slice(0,-1)}return t!==s?(i[a]=t,this.afterSet({path:e,state:this._value,value:t,merged:n}),e.slice(0,-1)):e},e.prototype.update=function(e){if(this._batches)return this._batchesPendingPaths=this._batchesPendingPaths||[],void(this._batchesPendingPaths=this._batchesPendingPaths.concat(e));var t=[];this._subscribers.forEach((function(n){return n.onSet(e,t)})),t.forEach((function(e){return e()}))},e.prototype.afterSet=function(e){-1!==this._edition&&(this._edition+=1,this._setSubscribers.forEach((function(t){return t(e)})))},e.prototype.startBatch=function(e,t){this._batches+=1;var n={path:e};t&&"context"in t&&(n.context=t.context),this._value!==s&&(n.state=this._value),this._batchStartSubscribers.forEach((function(e){return e(n)}))},e.prototype.finishBatch=function(e,t){var n={path:e};if(t&&"context"in t&&(n.context=t.context),this._value!==s&&(n.state=this._value),this._batchFinishSubscribers.forEach((function(e){return e(n)})),this._batches-=1,0===this._batches&&this._batchesPendingPaths){var r=this._batchesPendingPaths;this._batchesPendingPaths=void 0,this.update(r)}},e.prototype.postponeBatch=function(e){this._batchesPendingActions=this._batchesPendingActions||[],this._batchesPendingActions.push(e)},e.prototype.getPlugin=function(e){return this._plugins.get(e)},e.prototype.register=function(e){if(!this._plugins.get(e.id)){var t=e.init?e.init(this.toMethods().self):{};this._plugins.set(e.id,t),t.onSet&&this._setSubscribers.add((function(e){return t.onSet(e)})),t.onDestroy&&this._destroySubscribers.add((function(e){return t.onDestroy(e)})),t.onBatchStart&&this._batchStartSubscribers.add((function(e){return t.onBatchStart(e)})),t.onBatchFinish&&this._batchFinishSubscribers.add((function(e){return t.onBatchFinish(e)}))}},e.prototype.toMethods=function(){return new O(this,x,this.get(x),this.edition,C)},e.prototype.subscribe=function(e){this._subscribers.add(e)},e.prototype.unsubscribe=function(e){this._subscribers.delete(e)},e.prototype.destroy=function(){var e=this;this._destroySubscribers.forEach((function(t){return t(e._value!==s?{state:e._value}:{})})),this._edition=-1},e.prototype.toJSON=function(){throw new v(x,d.ToJson_Value)},e}(),w=function(e,t,n,r){var i=this;this.promise=e,e||(e=new Promise((function(e){i.resolver=e}))),this.promise=e.then((function(e){i.fullfilled=!0,i.resolver||t(e)})).catch((function(e){i.fullfilled=!0,i.error=e,n()})).then((function(){return r()}))},S=Symbol("ValueUnusedMarker");function C(){}var k=Symbol("UnmountedMarker");C[k]=!0;var O=function(){function e(e,t,n,r,i){this.state=e,this.path=t,this.valueSource=n,this.valueEdition=r,this.onSetUsed=i,this.valueCache=S}return e.prototype.getUntracked=function(e){if(this.valueEdition!==this.state.edition&&(this.valueSource=this.state.get(this.path),this.valueEdition=this.state.edition,this.isMounted?this.valueCache!==S&&(this.valueCache=S,this.get(!0)):(this.valueCache=S,delete this.childrenCache,delete this.selfCache)),this.valueSource===s&&!e){if(this.state.promised&&this.state.promised.error)throw this.state.promised.error;throw new v(this.path,d.GetStateWhenPromised)}return this.valueSource},e.prototype.get=function(e){var t=this.getUntracked(e);return this.valueCache===S&&(this.isDowngraded?this.valueCache=t:Array.isArray(t)?this.valueCache=this.valueArrayImpl(t):this.valueCache="object"===typeof t&&null!==t?this.valueObjectImpl(t):t),this.valueCache},Object.defineProperty(e.prototype,"value",{get:function(){return this.get()}
2,enumerable:!1,configurable:!0}),e.prototype.setUntracked=function(e,t){if("function"===typeof e&&(e=e(this.getUntracked())),"object"===typeof e&&null!==e&&e[b])throw new v(this.path,d.SetStateToValueFromState);return[this.state.set(this.path,e,t)]},e.prototype.set=function(e){this.state.update(this.setUntracked(e))},e.prototype.mergeUntracked=function(e){var t,n=this.getUntracked();"function"===typeof e&&(e=e(n));var r=!1;if(Array.isArray(n)){if(Array.isArray(e))return this.setUntracked(n.concat(e),e);var i=[];Object.keys(e).sort().forEach((function(t){var o=Number(t),a=e[o];a===s?(r=!0,i.push(o)):(r=r||!(o in n),n[o]=a)})),i.reverse().forEach((function(e){n.splice(e,1)})),t=this.setUntracked(n,e)}else{if("object"!==typeof n||null===n)return"string"===typeof n?this.setUntracked(n+String(e),e):this.setUntracked(e);Object.keys(e).forEach((function(t){var i=e[t];i===s?(r=!0,delete n[t]):(r=r||!(t in n),n[t]=i)})),t=this.setUntracked(n,e)}if(1!==t.length||t[0]!==this.path||r)return t;var o=t[0];return Object.keys(e).map((function(e){return o.slice().concat(e)}))},e.prototype.merge=function(e){this.state.update(this.mergeUntracked(e))},e.prototype.nested=function(e){return this.child(e).self},e.prototype.rerender=function(e){this.state.update(e)},e.prototype.destroy=function(){this.state.destroy()},e.prototype.subscribe=function(e){void 0===this.subscribers&&(this.subscribers=new Set),this.subscribers.add(e)},e.prototype.unsubscribe=function(e){this.subscribers.delete(e)},Object.defineProperty(e.prototype,"isMounted",{get:function(){return!this.onSetUsed[k]},enumerable:!1,configurable:!0}),e.prototype.onUnmount=function(){this.onSetUsed[k]=!0},e.prototype.onSet=function(e,t){var n=this,r=function(){if(n.isDowngraded&&n.valueCache!==S)return t.push(n.onSetUsed),!0;for(var r=0,i=e;r<i.length;r++){var o=i[r][n.path.length];if(void 0===o){if(n.valueCache!==S)return t.push(n.onSetUsed),!0}else{var a=n.childrenCache&&n.childrenCache[o];if(a&&a.onSet(e,t))return!0}}return!1}();return r||void 0===this.subscribers||this.subscribers.forEach((function(n){n.onSet(e,t)})),r},Object.defineProperty(e.prototype,"keys",{get:function(){var e=this.get();return Array.isArray(e)?Object.keys(e).map((function(e){return Number(e)})).filter((function(e){return Number.isInteger(e)})):"object"===typeof e&&null!==e?Object.keys(e):void 0},enumerable:!1,configurable:!0}),e.prototype.child=function(t){if(this.isMounted){this.childrenCache=this.childrenCache||{};var n=this.childrenCache[t];if(n)return n}var r=new e(this.state,this.path.slice().concat(t),this.valueSource[t],this.valueEdition,this.onSetUsed);return this.isDowngraded&&(r.isDowngraded=!0),this.childrenCache&&(this.childrenCache[t]=r),r},e.prototype.valueArrayImpl=function(e){var t=this;return m?(this.isDowngraded=!0,e):E(this.path,e,(function(){return e}),(function(e,n){if("length"===n)return e.length;if(n in Array.prototype)return Array.prototype[n];if(n===b)return t;if("symbol"===typeof n)return e[n];var r=Number(n);return Number.isInteger(r)?t.child(r).get():void 0}),(function(e,n,r){if("symbol"===typeof n)return e[n]=r,!0;throw new v(t.path,d.SetProperty_Value)}),!0)},e.prototype.valueObjectImpl=function(e){var t=this;return m?(this.isDowngraded=!0,e):E(this.path,e,(function(){return e}),(function(e,n){return n===b?t:"symbol"===typeof n?e[n]:t.child(n).get()}),(function(e,n,r){if("symbol"===typeof n)return e[n]=r,!0;throw new v(t.path,d.SetProperty_Value)}),!0)},Object.defineProperty(e.prototype,"self",{get:function(){var e=this;if(this.selfCache)return this.selfCache;var t=function(t,n){if(n===g)return e;if("symbol"!==typeof n){if("toJSON"===n)throw new v(e.path,d.ToJson_State);switch(n){case"path":return e.path;case"keys":return e.keys;case"value":return e.value;case"ornull":return e.ornull;case"promised":return e.promised;case"error":return e.error;case"get":return function(){return e.get()};case"set":return function(t){return e.set(t)};case"merge":return function(t){return e.merge(t)};case"nested":return function(t){return e.nested(t)};case"batch":return function(t,n){return e.batch(t,n)};case"attach":return function(t){return e.attach(t)};
2case"destroy":return function(){return e.destroy()}}var r=e.isDowngraded,i=e.get();if(e.isDowngraded=r,"object"===typeof i&&null!==i||i===s){if(Array.isArray(i)){if("length"===n)return i.length;if(n in Array.prototype)return Array.prototype[n];var o=Number(n);if(!Number.isInteger(o))return;return e.nested(o)}return e.nested(n.toString())}}};if(m){var n=Array.isArray(this.valueSource)?[]:{};return[g,"toJSON","path","keys","value","ornull","promised","error","get","set","merge","nested","batch","attach","destroy"].forEach((function(e){Object.defineProperty(n,e,{get:function(){return t(0,e)}})})),"object"===typeof this.valueSource&&null!==this.valueSource&&Object.keys(this.valueSource).forEach((function(e){Object.defineProperty(n,e,{enumerable:!0,get:function(){return t(0,e)}})})),this.selfCache=n,this.selfCache}return this.selfCache=E(this.path,this.valueSource,(function(){return e.get(),e.valueSource}),t,(function(t,n,r){throw new v(e.path,d.SetProperty_State)}),!1),this.selfCache},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"promised",{get:function(){return!(this.get(!0)!==s||!this.state.promised||this.state.promised.fullfilled)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"error",{get:function(){if(this.get(!0)===s){if(this.state.promised&&this.state.promised.fullfilled)return this.state.promised.error;this.get()}},enumerable:!1,configurable:!0}),e.prototype.batch=function(e,t){var n=this,r={context:t};try{this.state.startBatch(this.path,r);var i=e(this.self);return i===a&&this.state.postponeBatch((function(){return n.batch(e,t)})),i}finally{this.state.finishBatch(this.path,r)}},Object.defineProperty(e.prototype,"ornull",{get:function(){var e=this.get();return null===e||void 0===e?e:this.self},enumerable:!1,configurable:!0}),e.prototype.attach=function(e){if("function"===typeof e){var t=e();if(t.id===y){if(this.isDowngraded=!0,this.valueCache!==S){var n=this.getUntracked(!0);this.valueCache=n}return this.self}return this.state.register(t),this.self}return[this.state.getPlugin(e)||new v(this.path,d.GetUnknownPlugin,e.toString()),this]},e}();function E(e,t,n,r,i,o){var a=function(t){throw new v(e,t)};return"object"===typeof t&&null!==t||(t={}),new Proxy(t,{getPrototypeOf:function(e){var t=n();return void 0===t||null===t?null:Object.getPrototypeOf(t)},setPrototypeOf:function(e,t){return a(o?d.SetPrototypeOf_State:d.SetPrototypeOf_Value)},isExtensible:function(e){return!0},preventExtensions:function(e){return a(o?d.PreventExtensions_State:d.PreventExtensions_Value)},getOwnPropertyDescriptor:function(e,t){var i=n();if(void 0!==i&&null!==i){var o=Object.getOwnPropertyDescriptor(i,t);return o&&Array.isArray(i)&&t in Array.prototype?o:o&&{configurable:!0,enumerable:o.enumerable,get:function(){return r(i,t)},set:void 0}}},has:function(e,t){if("symbol"===typeof t)return!1;var r=n();return"object"===typeof r&&null!==r&&t in r},get:r,set:i,deleteProperty:function(e,t){return a(o?d.DeleteProperty_State:d.DeleteProperty_Value)},defineProperty:function(e,t,n){return a(o?d.DefineProperty_State:d.DefineProperty_Value)},ownKeys:function(e){var t=n();return Array.isArray(t)?Object.keys(t).concat("length"):void 0===t||null===t?[]:Object.keys(t)},apply:function(e,t,n){return a(o?d.Apply_State:d.Apply_Value)},construct:function(e,t,n){return a(o?d.Construct_State:d.Construct_Value)}})}function T(e){var t=e;if("function"===typeof e&&(t=e()),"object"===typeof t&&null!==t&&t[b])throw new v(x,d.InitStateToValueFromState);return new _(t)}function A(e,t,n,r){var o=new O(e,t,e.get(t),e.edition,n);return i.a.useLayoutEffect((function(){return r.subscribe(o),function(){o.onUnmount(),r.unsubscribe(o)}})),o}}).call(this,n(162))},,,,,,function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(286)},,,function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,"a",(function(){return r}))},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(4),i=n(0),o=n.n(i),a=n(124);function s(e,t){var n=function(t,n){return o.a.createElement(a.a,Object(r.a)({ref:n},t),e)};return n.muiName=a.a.muiName,o.a.memo(o.a.forwardRef(n))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}
2));var r=n(0),i="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;function o(e){var t=r.useRef(e);return i((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,"a",(function(){return x})),n.d(t,"b",(function(){return C})),n.d(t,"c",(function(){return g})),n.d(t,"d",(function(){return P})),n.d(t,"e",(function(){return p})),n.d(t,"f",(function(){return S})),n.d(t,"g",(function(){return L})),n.d(t,"h",(function(){return M})),n.d(t,"i",(function(){return R}));var i=n(0),o=n.n(i),a=(n(12),n(64)),s=n(173),l=n(59);function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var u=n(174),h=n.n(u);n(317);function f(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n(68);var d=function(e){var t=Object(s.a)();return t.displayName=e,t}("Router-History"),p=function(e){var t=Object(s.a)();return t.displayName=e,t}("Router"),g=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}r(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return o.a.createElement(p.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},o.a.createElement(d.Provider,{children:this.props.children||null,value:this.props.history}))},t}(o.a.Component);o.a.Component;var v=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(o.a.Component);var m={},y=0;function b(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(m[e])return m[e];var t=h.a.compile(e);return y<1e4&&(m[e]=t,y++),t}(e)(t,{pretty:!0})}function x(e){var t=e.computedMatch,n=e.to,r=e.push,i=void 0!==r&&r;return o.a.createElement(p.Consumer,null,(function(e){e||Object(l.a)(!1);var r=e.history,s=e.staticContext,u=i?r.push:r.replace,h=Object(a.c)(t?"string"===typeof n?b(n,t.params):c({},n,{pathname:b(n.pathname,t.params)}):n);return s?(u(h),null):o.a.createElement(v,{onMount:function(){u(h)},onUpdate:function(e,t){var n=Object(a.c)(t.to);Object(a.f)(n,c({},h,{key:n.key}))||u(h)},to:n})}))}var _={},w=0;function S(e,t){void 0===t&&(t={}),("string"===typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,o=void 0!==i&&i,a=n.strict,s=void 0!==a&&a,l=n.sensitive,c=void 0!==l&&l;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=_[n]||(_[n]={});if(r[e])return r[e];var i=[],o={regexp:h()(e,i,t),keys:i};return w<1e4&&(r[e]=o,w++),o}(n,{end:o,strict:s,sensitive:c}),i=r.regexp,a=r.keys,l=i.exec(e);if(!l)return null;var u=l[0],f=l.slice(1),d=e===u;return o&&!d?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:d,params:a.reduce((function(e,t,n){return e[t.name]=f[n],e}),{})}}),null)}var C=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var e=this;return o.a.createElement(p.Consumer,null,(function(t){t||Object(l.a)(!1);var n=e.props.location||t.location,r=c({},t,{location:n,match:e.props.computedMatch?e.props.computedMatch:e.props.path?S(n.pathname,e.props):t.match}
2),i=e.props,a=i.children,s=i.component,u=i.render;return Array.isArray(a)&&0===a.length&&(a=null),o.a.createElement(p.Provider,{value:r},r.match?a?"function"===typeof a?a(r):a:s?o.a.createElement(s,r):u?u(r):null:"function"===typeof a?a(r):null)}))},t}(o.a.Component);function k(e){return"/"===e.charAt(0)?e:"/"+e}function O(e,t){if(!e)return t;var n=k(e);return 0!==t.pathname.indexOf(n)?t:c({},t,{pathname:t.pathname.substr(n.length)})}function E(e){return"string"===typeof e?e:Object(a.e)(e)}function T(e){return function(){Object(l.a)(!1)}}function A(){}o.a.Component;var P=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var e=this;return o.a.createElement(p.Consumer,null,(function(t){t||Object(l.a)(!1);var n,r,i=e.props.location||t.location;return o.a.Children.forEach(e.props.children,(function(e){if(null==r&&o.a.isValidElement(e)){n=e;var a=e.props.path||e.props.from;r=a?S(i.pathname,c({},e.props,{path:a})):t.match}})),r?o.a.cloneElement(n,{location:i,computedMatch:r}):null}))},t}(o.a.Component);var j=o.a.useContext;function L(){return j(d)}function M(){return j(p).location}function R(){var e=j(p).match;return e?e.params:{}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(177),i=(n(0),n(98));function o(){return Object(r.a)()||i.a}},function(e,t,n){"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,"a",(function(){return r}))},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return se})),n.d(t,"b",(function(){return le}));var r=n(154),i=n(116),o=n(150),a=n(151),s=n(99),l=n(152);var c=n(199),u=n(119),h=n(112),f=n(84),d=n(85),p=n(55),g=n(1),v=n(39),m=n(40),y=function(e){return"string"===typeof e},b=function(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n},x=function(e){return null==e?"":""+e},_=function(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))},w=/###/g,S=function(e){return e&&e.indexOf("###")>-1?e.replace(w,"."):e},C=function(e){return!e||y(e)},k=function(e,t,n){for(var r=y(t)?t.split("."):t,i=0;i<r.length-1;){if(C(e))return{};var o=S(r[i]);!e[o]&&n&&(e[o]=new n),e=Object.prototype.hasOwnProperty.call(e,o)?e[o]:{},++i}return C(e)?{}:{obj:e,k:S(r[i])}},O=function(e,t,n){var r=k(e,t,Object),i=r.obj,o=r.k;if(void 0===i&&1!==t.length){for(var a=t[t.length-1],s=t.slice(0,t.length-1),l=k(e,s,Object);void 0===l.obj&&s.length;){var c;a="".concat(s[s.length-1],".").concat(a),s=s.slice(0,s.length-1),null!==(c=l=k(e,s,Object))&&void 0!==c&&c.obj&&"undefined"!==typeof l.obj["".concat(l.k,".").concat(a)]&&(l.obj=void 0)}l.obj["".concat(l.k,".").concat(a)]=n}else i[o]=n},E=function(e,t){var n=k(e,t),r=n.obj,i=n.k;if(r&&Object.prototype.hasOwnProperty.call(r,i))return r[i]},T=function(e,t,n){var r=E(e,n);return void 0!==r?r:E(t,n)},A=function e(t,n,r){for(var i in n)"__proto__"!==i&&"constructor"!==i&&(i in t?y(t[i])||t[i]instanceof String||y(n[i])||n[i]instanceof String?r&&(t[i]=n[i]):e(t[i],n[i],r):t[i]=n[i]);return t},P=function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},j={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},L=function(e){return y(e)?e.replace(/[&<>"'\/]/g,(function(e){return j[e]})):e},M=[" ",",","?","!",";"],R=new(function(){function e(t){Object(v.a)(this,e),this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}return Object(m.a)(e,[{key:"getRegExp",value:function(e){var t=this.regExpMap.get(e);if(void 0!==t)return t;var n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}]),e}())(20),D=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}for(var r=t.split(n),i=e,o=0;o<r.length;){if(!i||"object"!==typeof i)return;for(var a=void 0,s="",l=o;l<r.length;++l)if(l!==o&&(s+=n),void 0!==(a=i[s+=r[l]])){if(["string","number","boolean"].indexOf(typeof a)>-1&&l<r.length-1)continue;o+=l-o+1;break}i=a}return i}},I=function(e){return null===e||void 0===e?void 0:e.replace("_","-")},N={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){var n,r,i;null===(n=console)||void 0===n||null===(r=n[e])||void 0===r||null===(i=r.apply)||void 0===i||i.call(r,console,t)}},F=new(function(){function e(t){Object(v.a)(this,e);var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(t,n)}return Object(m.a)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||N,this.options=t,this.debug=t.debug}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:(y(e[0])&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,Object(g.a)(Object(g.a)({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}},{key:"clone",value:function(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}}]),e}()),B=function(){function e(){Object(v.a)(this,e),this.observers={}}return Object(m.a)(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]||(n.observers[e]=new Map);var r=n.observers[e].get(t)||0;n.observers[e].set(t,r+1)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){var i=Array.from(this.observers[e].entries());
2i.forEach((function(e){for(var t=Object(p.a)(e,2),r=t[0],i=t[1],o=0;o<i;o++)r.apply(void 0,n)}))}if(this.observers["*"]){var o=Array.from(this.observers["*"].entries());o.forEach((function(t){for(var r=Object(p.a)(t,2),i=r[0],o=r[1],a=0;a<o;a++)i.apply(i,[e].concat(n))}))}}}]),e}(),U=function(e){Object(f.a)(n,e);var t=Object(d.a)(n);function n(e){var r;Object(v.a)(this,n);var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return(r=t.call(this)).data=e||{},r.options=i,void 0===r.options.keySeparator&&(r.options.keySeparator="."),void 0===r.options.ignoreJSONStructure&&(r.options.ignoreJSONStructure=!0),r}return Object(m.a)(n,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r,i,o,a,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},l=void 0!==s.keySeparator?s.keySeparator:this.options.keySeparator,c=void 0!==s.ignoreJSONStructure?s.ignoreJSONStructure:this.options.ignoreJSONStructure;if(e.indexOf(".")>-1)o=e.split(".");else if(o=[e,t],n)if(Array.isArray(n))(a=o).push.apply(a,Object(h.a)(n));else if(y(n)&&l){var u;(u=o).push.apply(u,Object(h.a)(n.split(l)))}else o.push(n);var f=E(this.data,o);return!f&&!t&&!n&&e.indexOf(".")>-1&&(e=o[0],t=o[1],n=o.slice(2).join(".")),!f&&c&&y(n)?D(null===(r=this.data)||void 0===r||null===(i=r[e])||void 0===i?void 0:i[t],n,l):f}},{key:"addResource",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,a=[e,t];
2n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),O(this.data,a,r),i.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var i in n)(y(n[i])||Array.isArray(n[i]))&&this.addResource(e,t,i,n[i],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var s=E(this.data,a)||{};o.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?A(s,n,i):s=Object(g.a)(Object(g.a)({},s),n),O(this.data,a,s),o.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((function(e){return t[e]&&Object.keys(t[e]).length>0}))}},{key:"toJSON",value:function(){return this.data}}]),n}(B),z={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,i){var o=this;return e.forEach((function(e){var a,s;t=null!==(a=null===(s=o.processors[e])||void 0===s?void 0:s.process(t,n,r,i))&&void 0!==a?a:t})),t}},V={},H=function(e){return!y(e)&&"boolean"!==typeof e&&"number"!==typeof e},W=function(e){Object(f.a)(n,e);var t=Object(d.a)(n);function n(e){var r;Object(v.a)(this,n);var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r=t.call(this),_(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
2i18nFormat","utils"],e,Object(u.a)(r)),r.options=i,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r.logger=F.create("translator"),r}return Object(m.a)(n,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return void 0!==(null===n||void 0===n?void 0:n.res)}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=t.ns||this.options.defaultNS||[],o=n&&e.indexOf(n)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,n){t=t||"",n=n||"";var r=M.filter((function(e){return t.indexOf(e)<0&&n.indexOf(e)<0}));if(0===r.length)return!0;var i=R.getRegExp("(".concat(r.map((function(e){return"?"===e?"\\?":e})).join("|"),")")),o=!i.test(e);if(!o){var a=e.indexOf(n);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o}(e,n,r);if(o&&!a){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:y(i)?[i]:i};var l=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(l[0])>-1)&&(i=l.shift()),e=l.join(r)}return{key:e,namespaces:y(i)?[i]:i}}},{key:"translate",value:function(e,t,r){var i=this;if("object"!==typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"===typeof t&&(t=Object(g.a)({},t)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var o=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],t),l=s.key,c=s.namespaces,u=c[c.length-1],h=t.lng||this.language,f=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if("cimode"===(null===h||void 0===h?void 0:h.toLowerCase())){if(f){var d=t.nsSeparator||this.options.nsSeparator;return o?{res:"".concat(u).concat(d).concat(l),usedKey:l,exactUsedKey:l,usedLng:h,usedNS:u,usedParams:this.getUsedParamsDetails(t)}:"".concat(u).concat(d).concat(l)}return o?{res:l,usedKey:l,exactUsedKey:l,usedLng:h,usedNS:u,usedParams:this.getUsedParamsDetails(t)}:l}var p=this.resolve(e,t),v=null===p||void 0===p?void 0:p.res,m=(null===p||void 0===p?void 0:p.usedKey)||l,b=(null===p||void 0===p?void 0:p.exactUsedKey)||l,x=["[object Number]","[object Function]","[object RegExp]"],_=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,S=void 0!==t.count&&!y(t.count),C=n.hasDefaultValue(t),k=S?this.pluralResolver.getSuffix(h,t.count,t):"",O=t.ordinal&&S?this.pluralResolver.getSuffix(h,t.count,{ordinal:!1}):"",E=S&&!t.ordinal&&0===t.count,T=E&&t["defaultValue".concat(this.options.pluralSeparator,"zero")]||t["defaultValue".concat(k)]||t["defaultValue".concat(O)]||t.defaultValue,A=v;w&&!v&&C&&(A=T);var P=H(A),j=Object.prototype.toString.apply(A);if(!(w&&A&&P&&x.indexOf(j)<0)||y(_)&&Array.isArray(A))if(w&&y(_)&&Array.isArray(v))(v=v.join(_))&&(v=this.extendTranslation(v,e,t,r));else{var L=!1,M=!1;!this.isValidLookup(v)&&C&&(L=!0,v=T),this.isValidLookup(v)||(M=!0,v=l);var R=t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,D=R&&M?void 0:v,I=C&&T!==v&&this.options.updateMissing;if(M||L||I){if(this.logger.log(I?"updateKey":"missingKey",h,u,l,I?T:v),a){var N=this.resolve(l,Object(g.a)(Object(g.a)({},t),{},{keySeparator:!1}));N&&N.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var F=[],B=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&B&&B[0])for(var U=0;U<B.length;U++)F.push(B[U]);else"all"===this.options.saveMissingTo?F=this.languageUtils.toResolveHierarchy(t.lng||this.language):F.push(t.lng||this.language);var z=function(e,n,r){var o,a=C&&r!==v?r:D;i.options.missingKeyHandler?i.options.missingKeyHandler(e,u,n,a,I,t):null!==(o=i.backendConnector)&&void 0!==o&&o.saveMissing&&i.backendConnector.saveMissing(e,u,n,a,I,t),i.emit("missingKey",e,u,n,v)};this.options.saveMissing&&(this.options.saveMissingPlurals&&S?F.forEach((function(e){var n=i.pluralResolver.getSuffixes(e,t);E&&t["defaultValue".concat(i.options.pluralSeparator,"zero")]&&n.indexOf("".concat(i.options.pluralSeparator,"zero"))<0&&n.push("".concat(i.options.pluralSeparator,"zero")),n.forEac
2h((function(n){z([e],l+n,t["defaultValue".concat(n)]||T)}))})):z(F,l,T))}v=this.extendTranslation(v,e,t,p,r),M&&v===l&&this.options.appendNamespaceToMissingKey&&(v="".concat(u,":").concat(l)),(M||L)&&this.options.parseMissingKeyHandler&&(v=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(u,":").concat(l):l,L?v:void 0))}else{if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var V=this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,A,Object(g.a)(Object(g.a)({},t),{},{ns:c})):"key '".concat(l," (").concat(this.language,")' returned an object instead of string.");return o?(p.res=V,p.usedParams=this.getUsedParamsDetails(t),p):V}if(a){var W=Array.isArray(A),G=W?[]:{},q=W?b:m;for(var X in A)if(Object.prototype.hasOwnProperty.call(A,X)){var Y="".concat(q).concat(a).concat(X);G[X]=C&&!v?this.translate(Y,Object(g.a)(Object(g.a)({},t),{},{defaultValue:H(T)?T[X]:void 0},{joinArrays:!1,ns:c})):this.translate(Y,Object(g.a)(Object(g.a)({},t),{joinArrays:!1,ns:c})),G[X]===Y&&(G[X]=A[X])}v=G}}return o?(p.res=v,p.usedParams=this.getUsedParamsDetails(t),p):v}},{key:"extendTranslation",value:function(e,t,n,r,i){var o,a=this;if(null!==(o=this.i18nFormat)&&void 0!==o&&o.parse)e=this.i18nFormat.parse(e,Object(g.a)(Object(g.a)({},this.options.interpolation.defaultVariables),n),n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){var s;n.interpolation&&this.interpolator.init(Object(g.a)(Object(g.a)({},n),{interpolation:Object(g.a)(Object(g.a)({},this.options.interpolation),n.interpolation)}));var l,c=y(e)&&(void 0!==(null===n||void 0===n||null===(s=n.interpolation)||void 0===s?void 0:s.skipOnVariables)?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(c){var u=e.match(this.interpolator.nestingRegexp);l=u&&u.length}var h=n.replace&&!y(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(h=Object(g.a)(Object(g.a)({},this.options.interpolation.defaultVariables),h)),e=this.interpolator.interpolate(e,h,n.lng||this.language||r.usedLng,n),c){var f=e.match(this.interpolator.nestingRegexp);l<(f&&f.length)&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(null===i||void 0===i?void 0:i[0])!==r[0]||n.context?a.translate.apply(a,r.concat([t])):(a.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null)}),n)),n.interpolation&&this.interpolator.reset()}var d=n.postProcess||this.options.postProcess,p=y(d)?[d]:d;return null!=e&&null!==p&&void 0!==p&&p.length&&!1!==n.applyPostProcessor&&(e=z.handle(p,e,t,this.options&&this.options.postProcessPassResolved?Object(g.a)({i18nResolved:Object(g.a)(Object(g.a)({},r),{},{usedParams:this.getUsedParamsDetails(n)})},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,i,o,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return y(e)&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var l=a.extractFromKey(e,s),c=l.key;n=c;var u=l.namespaces;a.options.fallbackNS&&(u=u.concat(a.options.fallbackNS));var h=void 0!==s.count&&!y(s.count),f=h&&!s.ordinal&&0===s.count,d=void 0!==s.context&&(y(s.context)||"number"===typeof s.context)&&""!==s.context,p=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);u.forEach((function(e){var l,u;a.isValidLookup(t)||(o=e,V["".concat(p[0],"-").concat(e)]||null===(l=a.utils)||void 0===l||!l.hasLoadedNamespace||null!==(u=a.utils)&&void 0!==u&&u.hasLoadedNamespace(o)||(V["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((function(n){var o;if(!a.isValidLookup(t)){i=n;var l,u=[c];if(null!==(o=a.i18nFormat)&&void 0!==o&&o.addLookupKeys)a.i18nFormat.addLookupKeys(u,c,n,e,s);else{var p;h&&(p=a.pluralResolver.getSuffix(n,s.count,s));var g="".concat(a.options.pluralSeparator,"zero"),v="".concat(a.options.pluralSeparator,"ordinal").concat(a.options.pluralSeparator);if(h&&(u.push(c+p),s.ordinal&&0===p.indexOf(v)&&u.push(c+p.replace(v,a.options.pluralSeparator)),f&&u.push(c+g)),d){var m="".concat(c).concat(a.options.contextSeparator).concat(s.context);
2u.push(m),h&&(u.push(m+p),s.ordinal&&0===p.indexOf(v)&&u.push(m+p.replace(v,a.options.pluralSeparator)),f&&u.push(m+g))}}for(;l=u.pop();)a.isValidLookup(t)||(r=l,t=a.getResource(n,e,l,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}},{key:"isValidLookup",value:function(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return null!==(r=this.i18nFormat)&&void 0!==r&&r.getResource?this.i18nFormat.getResource(e,t,n,i):this.resourceStore.getResource(e,t,n,i)}},{key:"getUsedParamsDetails",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!y(e.replace),r=n?e.replace:e;if(n&&"undefined"!==typeof e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r=Object(g.a)(Object(g.a)({},this.options.interpolation.defaultVariables),r)),!n){r=Object(g.a)({},r);var i,o=Object(c.a)(t);try{for(o.s();!(i=o.n()).done;){var a=i.value;delete r[a]}}catch(s){o.e(s)}finally{o.f()}}return r}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),n}(B),G=function(){function e(t){Object(v.a)(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=F.create("languageUtils")}return Object(m.a)(e,[{key:"getScriptPartFromCode",value:function(e){if(!(e=I(e))||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!(e=I(e))||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if(y(e)&&e.indexOf("-")>-1){var t;try{t=Intl.getCanonicalLocales(e)[0]}catch(n){}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){return e===r?e:e.indexOf("-")<0&&r.indexOf("-")<0?void 0:e.indexOf("-")>0&&r.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===r||0===e.indexOf(r)&&r.length>1?e:void 0}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"===typeof e&&(e=e(t)),y(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],o=function(e){e&&(n.isSupportedCode(e)?i.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return y(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):y(e)&&o(this.formatLanguageCode(e)),r.forEach((function(e){i.indexOf(e)<0&&o(n.formatLanguageCode(e))})),i}}]),e}(),q={zero:0,one:1,two:2,few:3,many:4,other:5},X={select:function(e){return 1===e?"one":"other"},resolvedOptions:function(){return{pluralCategories:["one","other"]}}},Y=function(){function e(t){Object(v.a)(this,e);var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=F.create("pluralResolver"),this.pluralRulesCache={}}return Object(m.a)(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"clearCache",value:function(){this.pluralRulesCache={}}},{key:"getRule",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=I("dev"===e?"en":e),i=n.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:r,type:i});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];try{t=new Intl.PluralRules(r,{type:i})}catch(s){if(!Intl)return this.logger.error("No Intl support, please use an Intl pol
2yfill!"),X;if(!e.match(/-|_/))return X;var a=this.languageUtils.getLanguagePartFromCode(e);t=this.getRule(a,n)}return this.pluralRulesCache[o]=t,t}},{key:"needsPlural",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,n);return r||(r=this.getRule("dev",n)),(null===(t=r)||void 0===t?void 0:t.resolvedOptions().pluralCategories.length)>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((function(e){return"".concat(t).concat(e)}))}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((function(e,t){return q[e]-q[t]})).map((function(e){return"".concat(t.options.prepend).concat(n.ordinal?"ordinal".concat(t.options.prepend):"").concat(e)})):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(e,n);return r?"".concat(this.options.prepend).concat(n.ordinal?"ordinal".concat(this.options.prepend):"").concat(r.select(t)):(this.logger.warn("no plural rule found for: ".concat(e)),this.getSuffix("dev",t,n))}}]),e}(),$=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=T(e,t,n);return!o&&i&&y(n)&&void 0===(o=D(e,n,r))&&(o=D(t,n,r)),o},K=function(e){return e.replace(/\$/g,"$$$$")},Z=function(){function e(){var t;Object(v.a)(this,e);var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=F.create("interpolator"),this.options=n,this.format=(null===n||void 0===n||null===(t=n.interpolation)||void 0===t?void 0:t.format)||function(e){return e},this.init(n)}return Object(m.a)(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation,n=t.escape,r=t.escapeValue,i=t.useRawValueToEscape,o=t.prefix,a=t.prefixEscaped,s=t.suffix,l=t.suffixEscaped,c=t.formatSeparator,u=t.unescapeSuffix,h=t.unescapePrefix,f=t.nestingPrefix,d=t.nestingPrefixEscaped,p=t.nestingSuffix,g=t.nestingSuffixEscaped,v=t.nestingOptionsSeparator,m=t.maxReplaces,y=t.alwaysFormat;this.escape=void 0!==n?n:L,this.escapeValue=void 0===r||r,this.useRawValueToEscape=void 0!==i&&i,this.prefix=o?P(o):a||"{{",this.suffix=s?P(s):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=u?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=f?P(f):d||P("$t("),this.nestingSuffix=p?P(p):g||P(")"),this.nestingOptionsSeparator=v||",",this.maxReplaces=m||1e3,this.alwaysFormat=void 0!==y&&y,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e=function(e,t){return(null===e||void 0===e?void 0:e.source)===t?(e.lastIndex=0,e):new RegExp(t,"g")};this.regexp=e(this.regexp,"".concat(this.prefix,"(.+?)").concat(this.suffix)),this.regexpUnescape=e(this.regexpUnescape,"".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix)),this.nestingRegexp=e(this.nestingRegexp,"".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix))}},{key:"interpolate",value:function(e,t,n,r){var i,o,a,s,l=this,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=function(e){if(e.indexOf(l.formatSeparator)<0){var i=$(t,c,e,l.options.keySeparator,l.options.ignoreJSONStructure);return l.alwaysFormat?l.format(i,void 0,n,Object(g.a)(Object(g.a)(Object(g.a)({},r),t),{},{interpolationkey:e})):i}var o=e.split(l.formatSeparator),a=o.shift().trim(),s=o.join(l.formatSeparator).trim();return l.format($(t,c,a,l.options.keySeparator,l.options.ignoreJSONStructure),s,n,Object(g.a)(Object(g.a)(Object(g.a)({},r),t),{},{interpolationkey:a}))};this.resetRegExp();var h=(null===r||void 0===r?void 0:r.missingInterpolationHandler)||this.options.missingInterpolationHandler,f=void 0!==(null===r||void 0===r||null===(i=r.interpolation)||void 0===i?void 0:i.skipOnVariables)?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return K(e)}},{regex:this.regexp,safeValue:function(e){return l.escapeValue?K(l.escape(e)):K(e)}}
2].forEach((function(t){for(s=0;o=t.regex.exec(e);){var n=o[1].trim();if(void 0===(a=u(n)))if("function"===typeof h){var i=h(e,o,r);a=y(i)?i:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a="";else{if(f){a=o[0];continue}l.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),a=""}else y(a)||l.useRawValueToEscape||(a=x(a));var c=t.safeValue(a);if(e=e.replace(o[0],c),f?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++s>=l.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){for(var n,r,i,o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=function(e,t){var n,r=o.nestingOptionsSeparator;if(e.indexOf(r)<0)return e;var a=e.split(new RegExp("".concat(r,"[ ]*{"))),s="{".concat(a[1]);e=a[0];var l=(s=o.interpolate(s,i)).match(/'/g),c=s.match(/"/g);((null!==(n=null===l||void 0===l?void 0:l.length)&&void 0!==n?n:0)%2===0&&!c||c.length%2!==0)&&(s=s.replace(/'/g,'"'));try{i=JSON.parse(s),t&&(i=Object(g.a)(Object(g.a)({},t),i))}catch(u){return o.logger.warn("failed parsing options string in nesting for key ".concat(e),u),"".concat(e).concat(r).concat(s)}return i.defaultValue&&i.defaultValue.indexOf(o.prefix)>-1&&delete i.defaultValue,e};n=this.nestingRegexp.exec(e);){var l=[];(i=(i=Object(g.a)({},a)).replace&&!y(i.replace)?i.replace:i).applyPostProcessor=!1,delete i.defaultValue;var c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var u=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=u.shift(),l=u,c=!0}if((r=t(s.call(this,n[1].trim(),i),i))&&n[0]===e&&!y(r))return r;y(r)||(r=x(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),c&&(r=l.reduce((function(e,t){return o.format(e,t,a.lng,Object(g.a)(Object(g.a)({},a),{},{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),Q=function(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);if("currency"===t&&i.indexOf(":")<0)n.currency||(n.currency=i.trim());else if("relativetime"===t&&i.indexOf(":")<0)n.range||(n.range=i.trim());else{i.split(";").forEach((function(e){if(e){var t=e.split(":"),r=(h=t,Object(o.a)(h)||Object(a.a)(h)||Object(s.a)(h)||Object(l.a)()),i=r[0],c=r.slice(1).join(":").trim().replace(/^'+|'+$/g,""),u=i.trim();n[u]||(n[u]=c),"false"===c&&(n[u]=!1),"true"===c&&(n[u]=!0),isNaN(c)||(n[u]=parseInt(c,10))}var h}))}}return{formatName:t,formatOptions:n}},J=function(e){var t={};return function(n,r,o){var a=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(a=Object(g.a)(Object(g.a)({},a),{},Object(i.a)({},o.interpolationkey,void 0)));var s=r+JSON.stringify(a),l=t[s];return l||(l=e(I(r),o),t[s]=l),l(n)}},ee=function(){function e(){Object(v.a)(this,e);var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=F.create("formatter"),this.options=t,this.formats={number:J((function(e,t){var n=new Intl.NumberFormat(e,Object(g.a)({},t));return function(e){return n.format(e)}})),currency:J((function(e,t){var n=new Intl.NumberFormat(e,Object(g.a)(Object(g.a)({},t),{},{style:"currency"}));return function(e){return n.format(e)}})),datetime:J((function(e,t){var n=new Intl.DateTimeFormat(e,Object(g.a)({},t));return function(e){return n.format(e)}})),relativetime:J((function(e,t){var n=new Intl.RelativeTimeFormat(e,Object(g.a)({},t));return function(e){return n.format(e,t.range||"day")}})),list:J((function(e,t){var n=new Intl.ListFormat(e,Object(g.a)({},t));return function(e){return n.format(e)}}))},this.init(t)}return Object(m.a)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=J(t)}},{key:"format",value:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=t.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find((function(e){return e.indexOf(")")>-1}))){var a=o.findIndex((function(e){return e.indexOf(")")>-1}));o[0]=[o[0]].concat(Object(h.a)(o.splice(1,a))).join(this.formatSeparator)}var s=o.reduce((function(e,t){var o=Q(t),a=o.formatName,s=o.formatOptions;if(r.formats[a]){var l=e;try{var c,u=(null===i||void 0===i||null===(c=i.formatParams)||void 0===c?void 0:c[i.interpolationkey])||{},h=u.locale||u.lng||i.locale||i.lng||n;l=r.formats[a](e,h,Object(g.a)(Object(g.a)(Object(g.a)({},s),i),u))}catch(f){r.logger.warn(f)}return l}return r.logger.warn("there was no format function for ".concat(a)),e}),e);return s}}]),e}(),te=function(e){Object(f.a)(n,e);var t=Object(d.a)(n);
2function n(e,r,i){var o,a,s;Object(v.a)(this,n);var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(s=t.call(this)).backend=e,s.store=r,s.services=i,s.languageUtils=i.languageUtils,s.options=l,s.logger=F.create("backendConnector"),s.waitingReads=[],s.maxParallelReads=l.maxParallelReads||10,s.readingCalls=0,s.maxRetries=l.maxRetries>=0?l.maxRetries:5,s.retryTimeout=l.retryTimeout>=1?l.retryTimeout:350,s.state={},s.queue=[],null===(o=s.backend)||void 0===o||null===(a=o.init)||void 0===a||a.call(o,i,l.backend,l),s}return Object(m.a)(n,[{key:"queueLoad",value:function(e,t,n,r){var i=this,o={},a={},s={},l={};return e.forEach((function(e){var r=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&i.store.hasResourceBundle(e,t)?i.state[s]=2:i.state[s]<0||(1===i.state[s]?void 0===a[s]&&(a[s]=!0):(i.state[s]=1,r=!1,void 0===a[s]&&(a[s]=!0),void 0===o[s]&&(o[s]=!0),void 0===l[t]&&(l[t]=!0)))})),r||(s[e]=!0)})),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),i=r[0],o=r[1];t&&this.emit("failedLoading",i,o,t),!t&&n&&this.store.addResourceBundle(i,o,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);var a={};this.queue.forEach((function(n){!function(e,t,n,r){var i=k(e,t,Object),o=i.obj,a=i.k;o[a]=o[a]||[],o[a].push(n)}(n.loaded,[i],o),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]={});var t=n.loaded[e];t.length&&t.forEach((function(t){void 0===a[e][t]&&(a[e][t]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads)this.waitingReads.push({lng:e,ns:t,fcName:n,tried:i,wait:o,callback:a});else{this.readingCalls++;var s=function(s,l){if(r.readingCalls--,r.waitingReads.length>0){var c=r.waitingReads.shift();r.read(c.lng,c.ns,c.fcName,c.tried,c.wait,c.callback)}s&&l&&i<r.maxRetries?setTimeout((function(){r.read.call(r,e,t,n,i+1,2*o,a)}),o):a(s,l)},l=this.backend[n].bind(this.backend);if(2!==l.length)return l(e,t,s);try{var c=l(e,t);c&&"function"===typeof c.then?c.then((function(e){return s(null,e)})).catch(s):s(null,c)}catch(u){s(u)}}}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();y(e)&&(e=this.languageUtils.toResolveHierarchy(e)),y(t)&&(t=[t]);var o=this.queueLoad(e,t,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(o," for language ").concat(i," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(o," for language ").concat(i),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,i){var o,a,s,l,c,u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},h=arguments.length>6&&void 0!==arguments[6]?arguments[6]:function(){};if(null===(o=this.services)||void 0===o||null===(a=o.utils)||void 0===a||!a.hasLoadedNamespace||null!==(s=this.services)&&void 0!==s&&null!==(l=s.utils)&&void 0!==l&&l.hasLoadedNamespace(t)){if(void 0!==n&&null!==n&&""!==n){if(null!==(c=this.backend)&&void 0!==c&&c.create){var f=Object(g.a)(Object(g.a)({},u),{},{isUpdate:i}),d=this.backend.create.bind(this.backend);if(d.length<6)try{var p;(p=5===d.length?d(e,t,n,r,f):d(e,t,n,r))&&"function"===typeof p.then?p.then((function(e){return h(null,e)}
2)).catch(h):h(null,p)}catch(v){h(v)}else d(e,t,n,r,h,f)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}else this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")}}]),n}(B),ne=function(){return{debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===typeof e[1]&&(t=e[1]),y(e[1])&&(t.defaultValue=e[1]),y(e[2])&&(t.tDescription=e[2]),"object"===typeof e[2]||"object"===typeof e[3]){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}},re=function(e){var t,n;return y(e.ns)&&(e.ns=[e.ns]),y(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),y(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),(null===(t=e.supportedLngs)||void 0===t||null===(n=t.indexOf)||void 0===n?void 0:n.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),"boolean"===typeof e.initImmediate&&(e.initAsync=e.initImmediate),e},ie=function(){},oe=function(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((function(t){"function"===typeof e[t]&&(e[t]=e[t].bind(e))}))},ae=function(e){Object(f.a)(n,e);var t=Object(d.a)(n);function n(){var e;Object(v.a)(this,n);var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if((e=t.call(this)).options=re(i),e.services={},e.logger=F,e.modules={external:[]},oe(Object(u.a)(e)),o&&!e.isInitialized&&!i.isClone){if(!e.options.initAsync)return e.init(i,o),Object(r.a)(e,Object(u.a)(e));setTimeout((function(){e.init(i,o)}),0)}return e}return Object(m.a)(n,[{key:"init",value:function(){var e=this,t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"===typeof n&&(r=n,n={}),null==n.defaultNS&&n.ns&&(y(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));var i=ne();this.options=Object(g.a)(Object(g.a)(Object(g.a)({},i),this.options),re(n)),this.options.interpolation=Object(g.a)(Object(g.a)({},i.interpolation),this.options.interpolation),void 0!==n.keySeparator&&(this.options.userDefinedKeySeparator=n.keySeparator),void 0!==n.nsSeparator&&(this.options.userDefinedNsSeparator=n.nsSeparator);var o=function(e){return e?"function"===typeof e?new e:e:null};if(!this.options.isClone){var a;this.modules.logger?F.init(o(this.modules.logger),this.options):F.init(null,this.options),a=this.modules.formatter?this.modules.formatter:ee;var s=new G(this.options);this.store=new U(this.options.resources,this.options);var l=this.services;l.logger=F,l.resourceStore=this.store,l.languageUtils=s,l.pluralResolver=new Y(s,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!a||this.options.interpolation.format&&this.options.interpolation.format!==i.interpolation.format||(l.formatter=o(a),l.formatter.init(l,this.options),this.options.interpolation.format=l.formatter.format.bind(l.formatter)),l.interpolator=new Z(this.options),l.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},l.backendConnector=new te(o(this.modules.backend),l.resourceStore,l,this.options),l.backendConnector.on("*",(function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];t.emit.apply(t,[e].concat(r))})),this.modules.languageDetector&&(l.languageDetector=o(this.modules.languageDetector),l.languageDetector.init&&l.languageDetector.init(l,this.options.detection,this.options)),this.modules.i18nFormat&&(l.i18nFormat=o(this.modules.i18nFormat),l.i18nFormat.init&&l.i18nFormat.init(this)),this.translator=new W(this.services,this.options),this.translator.on("*",(function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];t.emit.apply(t,[e].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.format=this.options.interpolation.format,r||(r=ie),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&"dev"!==c[0]&&(this.options.lng=c[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var u=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];u.forEach((function(n){e[n]=function(){var e;return(e=t.store)[n].apply(e,arguments)}}));var h=["addResource","addResources","addResourceBundle","removeResourceBundle"];h.forEach((function(n){e[n]=function(){var e;return(e=t.store)[n].apply(e,arguments),t}}));var f=b(),d=function(){var t=function(t,n){e.isInitializing=!1,e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),f.resolve(n),r(t,n)};if(e.languages&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initAsync?d():setTimeout(d,0),f}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ie,r=n,i=y(e)?e:this.language;if("function"===typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){var o,a;if("cimode"===(null===i||void 0===i?void 0:i.toLowerCase())&&(!this.options.preload||0===this.options.preload.length))return r();var s=[],l=function(e){e&&("cimode"!==e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){"cimode"!==e&&s.indexOf(e)<0&&s.push(e)})))};if(i)l(i);else{var c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
2c.forEach((function(e){return l(e)}))}null===(o=this.options.preload)||void 0===o||null===(a=o.forEach)||void 0===a||a.call(o,(function(e){return l(e)})),this.services.backendConnector.load(s,this.options.ns,(function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),r(e)}))}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=b();return"function"===typeof e&&(n=e,e=void 0),"function"===typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=ie),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&z.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<this.languages.length;t++){var n=this.languages[t];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(e,t){var n=this,r=this;this.isLanguageChangingTo=e;var i=b();this.emit("languageChanging",e);var o=function(e){n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,n.setResolvedLanguage(e)},a=function(a){e||a||!n.services.languageDetector||(a=[]);var s,l,c=y(a)?a:n.services.languageUtils.getBestMatchFromCodes(a);c&&(n.language||o(c),n.translator.language||n.translator.changeLanguage(c),null===(s=n.services.languageDetector)||void 0===s||null===(l=s.cacheUserLanguage)||void 0===l||l.call(s,c));n.loadResources(c,(function(e){!function(e,a){a?(o(a),n.translator.changeLanguage(a),n.isLanguageChangingTo=void 0,n.emit("languageChanged",a),n.logger.log("languageChanged",a)):n.isLanguageChangingTo=void 0,i.resolve((function(){return r.t.apply(r,arguments)})),t&&t(e,(function(){return r.t.apply(r,arguments)}))}(e,c)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(e,t,n){var r=this,i=function e(t,i){var o;if("object"!==typeof i){for(var a=arguments.length,s=new Array(a>2?a-2:0),l=2;l<a;l++)s[l-2]=arguments[l];o=r.options.overloadTranslationOptionHandler([t,i].concat(s))}else o=Object(g.a)({},i);o.lng=o.lng||e.lng,o.lngs=o.lngs||e.lngs,o.ns=o.ns||e.ns,""!==o.keyPrefix&&(o.keyPrefix=o.keyPrefix||n||e.keyPrefix);var c,u=r.options.keySeparator||".";return c=o.keyPrefix&&Array.isArray(t)?t.map((function(e){return"".concat(o.keyPrefix).concat(u).concat(e)})):o.keyPrefix?"".concat(o.keyPrefix).concat(u).concat(t):t,r.t(c,o)};return y(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}},{key:"t",value:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return null===(e=this.translator)||void 0===e?void 0:e.translate.apply(e,n)}},{key:"exists",value:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return null===(e=this.translator)||void 0===e?void 0:e.exists.apply(e,n)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
2if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=n.lng||this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||0===r||2===r};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!this.hasResourceBundle(r,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!a(r,e)||i&&!a(o,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=b();return this.options.ns?(y(e)&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=this,r=b();y(e)&&(e=[e]);var i=this.options.preload||[],o=e.filter((function(e){return i.indexOf(e)<0&&n.services.languageUtils.isSupportedCode(e)}));return o.length?(this.options.preload=i.concat(o),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){var t,n;if(e||(e=this.resolvedLanguage||((null===(t=this.languages)||void 0===t?void 0:t.length)>0?this.languages[0]:this.language)),!e)return"rtl";var r=(null===(n=this.services)||void 0===n?void 0:n.languageUtils)||new G(ne());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(r.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ie,i=t.forkResourceStore;i&&delete t.forkResourceStore;var o=Object(g.a)(Object(g.a)(Object(g.a)({},this.options),t),{isClone:!0}),a=new n(o);void 0===t.debug&&void 0===t.prefix||(a.logger=a.logger.clone(t));var s=["store","services","language"];if(s.forEach((function(t){a[t]=e[t]})),a.services=Object(g.a)({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},i){var l=Object.keys(this.store.data).reduce((function(t,n){return t[n]=Object(g.a)({},e.store.data[n]),Object.keys(t[n]).reduce((function(e,r){return e[r]=Object(g.a)({},t[n][r]),e}),{})}),{});a.store=new U(l,o),a.services.resourceStore=a.store}return a.translator=new W(a.services,o),a.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];a.emit.apply(a,[e].concat(n))})),a.init(o,r),a.translator.options=o,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}],[{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new n(e,t)}}]),n}(B),se=ae.createInstance();se.createInstance=ae.createInstance;se.createInstance,se.dir,se.init,se.loadResources,se.reloadResources,se.use,se.changeLanguage,se.getFixedT;var le=se.t;se.exists,se.setDefaultNamespace,se.hasLoadedNamespace,se.loadNamespaces,se.loadLanguages},,function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}));var r=function(e){return e.scrollTop};function i(e,t){var n=e.timeout,r=e.style,i=void 0===r?{}:r;return{duration:i.transitionDuration||"number"===typeof n?n:n[t.mode]||0,delay:i.transitionDelay}}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(207);var i=n(208);function o(e,t){return Object(r.a)(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||Object(i.a)()}},function(e,t,n){"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,"a",(function(){return r}))},,,function(e,t,n){"use strict";var r=n(4),i=n(7),o=n(0),a=(n(12),n(6)),s=n(9),l=n(14),c={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h
25:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},u=o.forwardRef((function(e,t){var n=e.align,s=void 0===n?"inherit":n,u=e.classes,h=e.className,f=e.color,d=void 0===f?"initial":f,p=e.component,g=e.display,v=void 0===g?"initial":g,m=e.gutterBottom,y=void 0!==m&&m,b=e.noWrap,x=void 0!==b&&b,_=e.paragraph,w=void 0!==_&&_,S=e.variant,C=void 0===S?"body1":S,k=e.variantMapping,O=void 0===k?c:k,E=Object(i.a)(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),T=p||(w?"p":O[C]||c[C])||"span";return o.createElement(T,Object(r.a)({className:Object(a.a)(u.root,h,"inherit"!==C&&u[C],"initial"!==d&&u["color".concat(Object(l.a)(d))],x&&u.noWrap,y&&u.gutterBottom,w&&u.paragraph,"inherit"!==s&&u["align".concat(Object(l.a)(s))],"initial"!==v&&u["display".concat(Object(l.a)(v))]),ref:t},E))}));t.a=Object(s.a)((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(u)},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(150);var i=n(99),o=n(152);function a(e,t){return Object(r.a)(e)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||Object(i.a)(e,t)||Object(o.a)()}},,function(e,t,n){"use strict";var r=n(210),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function a(e){return"undefined"===typeof e}function s(e){return null!==e&&"object"===typeof e}function l(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===i.call(e)}function u(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:o,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!==typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"===typeof e},isNumber:function(e){return"number"===typeof e},isObject:s,isPlainObject:l,isUndefined:a,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:c,isStream:function(e){return s(e)&&c(e.pipe)},isURLSearchParams:function(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}
2,forEach:u,merge:function e(){var t={};function n(n,r){l(t[r])&&l(n)?t[r]=e(t[r],n):l(n)?t[r]=e({},n):o(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)u(arguments[r],n);return t},extend:function(e,t,n){return u(t,(function(t,i){e[i]=n&&"function"===typeof t?r(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(7),i={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},o={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function a(e){return"".concat(Math.round(e),"ms")}t.a={easing:i,duration:o,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,s=void 0===n?o.standard:n,l=t.easing,c=void 0===l?i.easeInOut:l,u=t.delay,h=void 0===u?0:u;Object(r.a)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof s?s:a(s)," ").concat(c," ").concat("string"===typeof h?h:a(h))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}}},function(e,t,n){"use strict";var r="Invariant failed";t.a=function(e,t){if(!e)throw new Error(r)}},,,function(e,t,n){"use strict";function r(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],r&&"undefined"===typeof t[n]&&(e[n]=r[n]),e}),{})}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),i=n(81);function o(){return r.useContext(i.a)}},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function i(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}n.d(t,"a",(function(){return S})),n.d(t,"b",(function(){return A})),n.d(t,"d",(function(){return j})),n.d(t,"c",(function(){return g})),n.d(t,"f",(function(){return v})),n.d(t,"e",(function(){return p}));var a=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],a=t&&t.split("/")||[],s=e&&i(e),l=t&&i(t),c=s||l;if(e&&i(e)?a=r:r.length&&(a.pop(),a=a.concat(r)),!a.length)return"/";if(a.length){var u=a[a.length-1];n="."===u||".."===u||""===u}else n=!1;for(var h=0,f=a.length;f>=0;f--){var d=a[f];"."===d?o(a,f):".."===d?(o(a,f),h++):h&&(o(a,f),h--)}if(!c)for(;h--;h)a.unshift("..");!c||""===a[0]||a[0]&&i(a[0])||a.unshift("");var p=a.join("/");return n&&"/"!==p.substr(-1)&&(p+="/"),p};function s(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var l=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"===typeof t||"object"===typeof n){var r=s(t),i=s(n);return r!==t||i!==n?e(r,i):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1},c=n(59);function u(e){return"/"===e.charAt(0)?e:"/"+e}function h(e){return"/"===e.charAt(0)?e.substr(1):e}function f(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function d(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function p(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function g(e,t,n,i){var o;"string"===typeof e?(o=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(o=r({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invali
2d percent-encoding.'):s}return n&&(o.key=n),i?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=a(o.pathname,i.pathname)):o.pathname=i.pathname:o.pathname||(o.pathname="/"),o}function v(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&l(e.state,t.state)}function m(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"===typeof e?e(t,n):e;"string"===typeof o?"function"===typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var y=!("undefined"===typeof window||!window.document||!window.document.createElement);function b(e,t){t(window.confirm(e))}var x="popstate",_="hashchange";function w(){try{return window.history.state||{}}catch(e){return{}}}function S(e){void 0===e&&(e={}),y||Object(c.a)(!1);var t=window.history,n=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history}(),i=!(-1===window.navigator.userAgent.indexOf("Trident")),o=e,a=o.forceRefresh,s=void 0!==a&&a,l=o.getUserConfirmation,h=void 0===l?b:l,v=o.keyLength,S=void 0===v?6:v,C=e.basename?d(u(e.basename)):"";function k(e){var t=e||{},n=t.key,r=t.state,i=window.location,o=i.pathname+i.search+i.hash;return C&&(o=f(o,C)),g(o,r,n)}function O(){return Math.random().toString(36).substr(2,S)}var E=m();function T(e){r(U,e),U.length=t.length,E.notifyListeners(U.location,U.action)}function A(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||L(k(e.state))}function P(){L(k(w()))}var j=!1;function L(e){if(j)j=!1,T();else{E.confirmTransitionTo(e,"POP",h,(function(t){t?T({action:"POP",location:e}):function(e){var t=U.location,n=R.indexOf(t.key);-1===n&&(n=0);var r=R.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(j=!0,I(i))}(e)}))}}var M=k(w()),R=[M.key];function D(e){return C+p(e)}function I(e){t.go(e)}var N=0;function F(e){1===(N+=e)&&1===e?(window.addEventListener(x,A),i&&window.addEventListener(_,P)):0===N&&(window.removeEventListener(x,A),i&&window.removeEventListener(_,P))}var B=!1;var U={length:t.length,action:"POP",location:M,createHref:D,push:function(e,r){var i="PUSH",o=g(e,r,O(),U.location);E.confirmTransitionTo(o,i,h,(function(e){if(e){var r=D(o),a=o.key,l=o.state;if(n)if(t.pushState({key:a,state:l},null,r),s)window.location.href=r;else{var c=R.indexOf(U.location.key),u=R.slice(0,c+1);u.push(o.key),R=u,T({action:i,location:o})}else window.location.href=r}}))},replace:function(e,r){var i="REPLACE",o=g(e,r,O(),U.location);E.confirmTransitionTo(o,i,h,(function(e){if(e){var r=D(o),a=o.key,l=o.state;if(n)if(t.replaceState({key:a,state:l},null,r),s)window.location.replace(r);else{var c=R.indexOf(U.location.key);-1!==c&&(R[c]=o.key),T({action:i,location:o})}else window.location.replace(r)}}))},go:I,goBack:function(){I(-1)},goForward:function(){I(1)},block:function(e){void 0===e&&(e=!1);var t=E.setPrompt(e);return B||(F(1),B=!0),function(){return B&&(B=!1,F(-1)),t()}},listen:function(e){var t=E.appendListener(e);return F(1),function(){F(-1),t()}}};return U}var C="hashchange",k={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+h(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:h,decodePath:u},slash:{encodePath:u,decodePath:u}};function O(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function E(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function T(e){window.location.replace(O(window.location.href)+"#"+e)}function A(e){void 0===e&&(e={}),y||Object(c.a)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),i=n.getUserConfirmation,o=void 0===i?b:i,a=n.hashType,s=void 0===a?"slash":a,l=e.basename?d(u(e.basename)):"",h=k[s],v=h.encodePath,x=h.decodePath;function _(){var e=x(E());return l&&(e=f(e,l)),g(e)}var w=m();function S(e){r(U,e),U.length=t.length,w.notifyListeners(U.location,U.action)}var A=!1,P=null;function j(){var e,t,n=E(),r=v(n);if(n!==r)T(r);else{var i=_(),a=U.location;if(!A&&(t=i,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(P===p(i))return;P=null,function(e){if(A)A=!1,S();else{var t="POP";w.confirmTransitionTo(e,t,o,(function(n){n?S({action:t,location:e}):function(e){var t=U.location,n=D.lastIndexOf(p(t));-1===n&&(n=0);var r=D.lastIndexOf(p(e));-1===r&&(r=0);var i=n-r;i&&(A=!0,I(i))}(e)}))}}(i)}}var L=E(),M=v(L);L!==M&&T(M);var R=_(),D=[p(R)];function I(e){t.go(e)}var N=0;function F(e){1===(N+=e)&&1===e?window.addEventListener(C,j):0===N&&window.removeEventListener(C,j)}var B=!1;var U={length:t.length,action:"POP",location:R,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=O(window.location.href)),n+"#"+v(l+p(e))},push:function(e,t){var n="PUSH",r=g(e,void 0,void 0,U.location);w.confirmTransitionTo(r,n,o,(function(e){if(e){var t=p(r),i=v(l+t);if(E()!==i){P=t,function(e){window.location.hash=e}(i);var o=D.lastIndexOf(p(U.location)),a=D.slice(0,o+1);a.push(t),D=a,S({action:n,location:r})}else S()}}))},replace:function(e,t){var n="REPLACE",r=g(e,void 0,void 0,U.location);w.confirmTransitionTo(r,n,o,(function(e){if(e){var t=p(r),i=v(l+t);E()!==i&&(P=t,T(i));var o=D.indexOf(p(U.location));-1!==o&&(D[o]=t),S({action:n,location:r})}}))},go:I,goBack:function(){I(-1)},goForward:function(){I(1)},block:function(e){void 0===e&&(e=!1);var t=w.setPrompt(e);return B||(F(1),B=!0),function(){return B&&(B=!1,F(-1)),t()}},listen:function(e){var t=w.appendListener(e);return F(1),function(){F(-1),t()}}};return U}function P(e,t,n){return Math.min(Math.max(e,t),n)}function j(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,i=t.initialEntries,o=void 0===i?["/"]:i,a=t.initialIndex,s=void 0===a?0:a,l=t.keyLength,c=void 0===l?6:l,u=m();function h(e){r(x,e),x.length=x.entries.length,u.notifyListeners(x.location,x.action)}function f(){return Math.random().toString(36).substr(2,c)}var d=P(s,0,o.length-1),v=o.map((function(e){return g(e,void 0,"string"===typeof e?f():e.key||f())})),y=p;function b(e){var t=P(x.index+e,0,x.entries.length-1),r=x.entries[t];u.confirmTransitionTo(r,"POP",n,(function(e){e?h({action:"POP",location:r,index:t}):h()}))}var x={length:v.length,action:"POP",location:v[d],index:d,entries:v,createHref:y,push:function(e,t){var r="PUSH",i=g(e,t,f(),x.location);u.confirmTransitionTo(i,r,n,(function(e){if(e){var t=x.index+1,n=x.entries.slice(0);n.length>t?n.splice(t,n.length-t,i):n.push(i),h({action:r,location:i,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",i=g(e,t,f(),x.location);u.confirmTransitionTo(i,r,n,(function(e){e&&(x.entries[x.index]=i,h({action:r,location:i}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=x.index+e;return t>
2=0&&t<x.entries.length},block:function(e){return void 0===e&&(e=!1),u.setPrompt(e)},listen:function(e){return u.appendListener(e)}};return x}},,,function(e,t,n){"use strict";function r(e,t){return function(){return null}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(294),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(p){var i=d(n);i&&i!==p&&e(t,i,r)}var a=u(n);h&&(a=a.concat(h(n)));for(var s=l(t),g=l(n),v=0;v<a.length;++v){var m=a[v];if(!o[m]&&(!r||!r[m])&&(!g||!g[m])&&(!s||!s[m])){var y=f(n,m);try{c(t,m,y)}catch(b){}}}}return t}},function(e,t,n){"use strict";var r=n(7),i=n(4),o=n(0),a=(n(12),n(6)),s=n(9),l=[0,1,2,3,4,5,6,7,8,9,10],c=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=parseFloat(e);return"".concat(n/t).concat(String(e).replace(String(n),"")||"px")}var h=o.forwardRef((function(e,t){var n=e.alignContent,s=void 0===n?"stretch":n,l=e.alignItems,c=void 0===l?"stretch":l,u=e.classes,h=e.className,f=e.component,d=void 0===f?"div":f,p=e.container,g=void 0!==p&&p,v=e.direction,m=void 0===v?"row":v,y=e.item,b=void 0!==y&&y,x=e.justify,_=e.justifyContent,w=void 0===_?"flex-start":_,S=e.lg,C=void 0!==S&&S,k=e.md,O=void 0!==k&&k,E=e.sm,T=void 0!==E&&E,A=e.spacing,P=void 0===A?0:A,j=e.wrap,L=void 0===j?"wrap":j,M=e.xl,R=void 0!==M&&M,D=e.xs,I=void 0!==D&&D,N=e.zeroMinWidth,F=void 0!==N&&N,B=Object(r.a)(e,["alignContent","alignItems","classes","className","component","container","direction","item","justify","justifyContent","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),U=Object(a.a)(u.root,h,g&&[u.container,0!==P&&u["spacing-xs-".concat(String(P))]],b&&u.item,F&&u.zeroMinWidth,"row"!==m&&u["direction-xs-".concat(String(m))],"wrap"!==L&&u["wrap-xs-".concat(String(L))],"stretch"!==c&&u["align-items-xs-".concat(String(c))],"stretch"!==s&&u["align-content-xs-".concat(String(s))],"flex-start"!==(x||w)&&u["justify-content-xs-".concat(String(x||w))],!1!==I&&u["grid-xs-".concat(String(I))],!1!==T&&u["grid-sm-".concat(String(T))],!1!==O&&u["grid-md-".concat(String(O))],!1!==C&&u["grid-lg-".concat(String(C))],!1!==R&&u["grid-xl-".concat(String(R))]);return o.createElement(d,Object(i.a)({className:U,ref:t},B))})),f=Object(s.a)((function(e){return Object(i.a)({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-content-xs-center":{justifyContent:"center"},"justify-content-xs-flex-end":{justifyContent:"flex-end"},"justify-content-xs-space-between":{justifyContent:"space-between"},"justify-content-xs-space-around":{justifyContent:"space-around"},"justify-content-xs-space-evenly":{justifyContent:"space-evenly"}},function(e,t){var n={};return l.forEach((function(r){var i=e.spacing(r);0!==i&&(n["spacing-".concat(t,"-").concat(r)]={margin:"-".concat(u(i,2)),width:"calc(100% + ".concat(u(i),")"),"& > $item":{padding:u(i,2)}})})),n}(e,"xs"),e.breakpoints.keys.reduce((function(t,n){return function(e,t,n){var r={};
2c.forEach((function(e){var t="grid-".concat(n,"-").concat(e);if(!0!==e)if("auto"!==e){var i="".concat(Math.round(e/12*1e8)/1e6,"%");r[t]={flexBasis:i,flexGrow:0,maxWidth:i}}else r[t]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};else r[t]={flexBasis:0,flexGrow:1,maxWidth:"100%"}})),"xs"===n?Object(i.a)(e,r):e[t.breakpoints.up(n)]=r}(t,e,n),t}),{}))}),{name:"MuiGrid"})(h);t.a=f},function(e,t,n){"use strict";n.d(t,"b",(function(){return P})),n.d(t,"a",(function(){return S}));var r=n(1),i=(n(13),n(0));n(116),n(112),n(234);Object.create(null);var o,a=function(e,t,n,i){var o,a,s,l,c,u,h=[n,Object(r.a)({code:t},i||{})];if(null!==e&&void 0!==e&&null!==(o=e.services)&&void 0!==o&&null!==(a=o.logger)&&void 0!==a&&a.forward)return e.services.logger.forward(h,"warn","react-i18next::",!0);if(d(h[0])&&(h[0]="react-i18next:: ".concat(h[0])),null!==e&&void 0!==e&&null!==(s=e.services)&&void 0!==s&&null!==(l=s.logger)&&void 0!==l&&l.warn)(u=e.services.logger).warn.apply(u,h);else if(null!==(c=console)&&void 0!==c&&c.warn){var f;(f=console).warn.apply(f,h)}},s={},l=function(e,t,n,r){d(n)&&s[n]||(d(n)&&(s[n]=new Date),a(e,t,n,r))},c=function(e,t){return function(){if(e.isInitialized)t();else{e.on("initialized",(function n(){setTimeout((function(){e.off("initialized",n)}),0),t()}))}}},u=function(e,t,n){e.loadNamespaces(t,c(e,n))},h=function(e,t,n,r){if(d(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return u(e,n,r);n.forEach((function(t){e.options.ns.indexOf(t)<0&&e.options.ns.push(t)})),e.loadLanguages(t,c(e,r))},f=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:n.lng,precheck:function(t,r){var i;if((null===(i=n.bindI18n)||void 0===i?void 0:i.indexOf("languageChanging"))>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):(l(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0)},d=function(e){return"string"===typeof e},p=function(e){return"object"===typeof e&&null!==e},g=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,v={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xa9","©":"\xa9","®":"\xae","®":"\xae","…":"\u2026","…":"\u2026","/":"/","/":"/"},m=function(e){return v[e]},y={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(e){return e.replace(g,m)}},b=function(){return y},x=function(){return o};n(91),n(125);var _=n(39),w=n(40),S={type:"3rdParty",init:function(e){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};y=Object(r.a)(Object(r.a)({},y),e)}(e.options.react),function(e){o=e}(e)}},C=Object(i.createContext)(),k=function(){function e(){Object(_.a)(this,e),this.usedNamespaces={}}return Object(w.a)(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();var O=n(55),E=function(e,t){var n=Object(i.useRef)();return Object(i.useEffect)((function(){n.current=t?n.current:e}),[e,t]),n.current},T=function(e,t,n,r){return e.getFixedT(t,n,r)},A=function(e,t,n,r){return Object(i.useCallback)(T(e,t,n,r),[e,t,n,r])},P=function(e){var t,n,o,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=s.i18n,g=Object(i.useContext)(C)||{},v=g.i18n,m=g.defaultNS,y=c||v||x();
2if(y&&!y.reportNamespaces&&(y.reportNamespaces=new k),!y){l(y,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");var _=function(e,t){return d(t)?t:p(t)&&d(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e},w=[_,{},!1];return w.t=_,w.i18n={},w.ready=!1,w}null!==(t=y.options.react)&&void 0!==t&&t.wait&&l(y,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var S=Object(r.a)(Object(r.a)(Object(r.a)({},b()),y.options.react),s),P=S.useSuspense,j=S.keyPrefix,L=e||m||(null===(n=y.options)||void 0===n?void 0:n.defaultNS);L=d(L)?[L]:L||["translation"],null===(o=(a=y.reportNamespaces).addUsedNamespaces)||void 0===o||o.call(a,L);var M=(y.isInitialized||y.initializedStoreOnce)&&L.every((function(e){return f(e,y,S)})),R=A(y,s.lng||null,"fallback"===S.nsMode?L:L[0],j),D=function(){return R},I=function(){return T(y,s.lng||null,"fallback"===S.nsMode?L:L[0],j)},N=Object(i.useState)(D),F=Object(O.a)(N,2),B=F[0],U=F[1],z=L.join();s.lng&&(z="".concat(s.lng).concat(z));var V=E(z),H=Object(i.useRef)(!0);Object(i.useEffect)((function(){var e=S.bindI18n,t=S.bindI18nStore;H.current=!0,M||P||(s.lng?h(y,s.lng,L,(function(){H.current&&U(I)})):u(y,L,(function(){H.current&&U(I)}))),M&&V&&V!==z&&H.current&&U(I);var n=function(){H.current&&U(I)};return e&&(null===y||void 0===y||y.on(e,n)),t&&(null===y||void 0===y||y.store.on(t,n)),function(){H.current=!1,y&&(null===e||void 0===e||e.split(" ").forEach((function(e){return y.off(e,n)}))),t&&y&&t.split(" ").forEach((function(e){return y.store.off(e,n)}))}}),[y,z]),Object(i.useEffect)((function(){H.current&&M&&U(D)}),[y,j,M]);var W=[B,y,M];if(W.t=B,W.i18n=y,W.ready=M,M)return W;if(!M&&!P)return W;throw new Promise((function(e){s.lng?h(y,s.lng,L,(function(){return e()})):u(y,L,(function(){return e()}))}))}},function(e,t,n){"use strict";n.d(t,"c",(function(){return L})),n.d(t,"a",(function(){return M})),n.d(t,"d",(function(){return F}));var r=n(0),i=Object.prototype.hasOwnProperty;var o=new WeakMap,a=0;var s=function(){function e(e){void 0===e&&(e={}),this.cache=new Map(Object.entries(e)),this.subs=[]}return e.prototype.get=function(e){var t=this.serializeKey(e)[0];return this.cache.get(t)},e.prototype.set=function(e,t){var n=this.serializeKey(e)[0];this.cache.set(n,t),this.notify()},e.prototype.keys=function(){return Array.from(this.cache.keys())},e.prototype.has=function(e){var t=this.serializeKey(e)[0];return this.cache.has(t)},e.prototype.clear=function(){this.cache.clear(),this.notify()},e.prototype.delete=function(e){var t=this.serializeKey(e)[0];this.cache.delete(t),this.notify()},e.prototype.serializeKey=function(e){var t=null;if("function"===typeof e)try{e=e()}catch(n){e=""}return Array.isArray(e)?(t=e,e=function(e){if(!e.length)return"";for(var t="arg",n=0;n<e.length;++n)if(null!==e[n]){var r=void 0;"object"!==typeof e[n]&&"function"!==typeof e[n]?r="string"===typeof e[n]?'"'+e[n]+'"':String(e[n]):o.has(e[n])?r=o.get(e[n]):(r=a,o.set(e[n],a++)),t+="@"+r}else t+="@null";return t}(e)):e=String(e||""),[e,t,e?"err@"+e:"",e?"validating@"+e:""]},e.prototype.subscribe=function(e){var t=this;if("function"!==typeof e)throw new Error("Expected the listener to be a function.");var n=!0;return this.subs.push(e),function(){if(n){n=!1;var r=t.subs.indexOf(e);r>-1&&(t.subs[r]=t.subs[t.subs.length-1],t.subs.length--)}}},e.prototype.notify=function(){for(var e=0,t=this.subs;e<t.length;e++){(0,t[e])()}},e}(),l=!0,c={isOnline:function(){return l},isDocumentVisible:function(){return"undefined"===typeof document||void 0===document.visibilityState||"hidden"!==document.visibilityState},fetcher:function(e){return fetch(e).then((function(e){return e.json()}))},registerOnFocus:function(e){"undefined"!==typeof window&&void 0!==window.addEventListener&&"undefined"!==typeof document&&void 0!==document.addEventListener&&(document.addEventListener("visibilitychange",(function(){return e()}),!1),window.addEventListener("focus",(function(){return e()}),!1))},registerOnReconnect:function(e){"undefined"!==typeof window&&void 0!==window.addEventListener&&(window.addEventListener("online",(function(){l=!0,e()}),!1),window.addEventListener("offline",(function(){return l=!1}),!1))}},u=function(){return(u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},h=new s;var f="undefined"!==typeof window&&navigator.connection&&-1!==["slow-2g","2g"].indexOf(navigator.connection.effectiveType),d=u({onLoadingSlow:function(){},onSuccess:function(){},onError:function(){},onErrorRetry:function(e,t,n,r,i){if(n.isDocumentVisible()&&!("number"===typeof n.errorRetryCount&&i.retryCount>n.errorRetryCount)){var o=Math.min(i.retryCount,8),a=~~((Math.random()+.5)*(1<<o))*n.errorRetryInterval;setTimeout(r,a,i)}},errorRetryInterval:1e3*(f?10:5),focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:1e3*(f?5:3),refreshInterval:0,revalidateOnFocus:!0,revalidateOnReconnect:!0,refreshWhenHidden:!1,refreshWhenOffline:!1,shouldRetryOnError:!0,suspense:!1,compare:function e(t,n){var r,o;
2if(t===n)return!0;if(t&&n&&(r=t.constructor)===n.constructor){if(r===Date)return t.getTime()===n.getTime();if(r===RegExp)return t.toString()===n.toString();if(r===Array){if((o=t.length)===n.length)for(;o--&&e(t[o],n[o]););return-1===o}if(!r||"object"===typeof t){for(r in o=0,t){if(i.call(t,r)&&++o&&!i.call(n,r))return!1;if(!(r in n)||!e(t[r],n[r]))return!1}return Object.keys(n).length===o}}return t!==t&&n!==n},isPaused:function(){return!1}},c),p="undefined"===typeof window||!!("undefined"!==typeof Deno&&Deno&&Deno.version&&Deno.version.deno),g=p?null:window.requestAnimationFrame?function(e){return window.requestAnimationFrame(e)}:function(e){return setTimeout(e,1)},v=p?r.useEffect:r.useLayoutEffect,m=Object(r.createContext)({});m.displayName="SWRConfigContext";var y=m,b=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},x=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},_={},w={},S={},C={},k={},O={},E={},T=function(){var e=0;return function(){return++e}}();if(!p){var A=function(e){if(d.isDocumentVisible()&&d.isOnline())for(var t in e)e[t][0]&&e[t][0]()};"function"===typeof d.registerOnFocus&&d.registerOnFocus((function(){return A(S)})),"function"===typeof d.registerOnReconnect&&d.registerOnReconnect((function(){return A(C)}))}var P=function(e,t){void 0===t&&(t=!0);var n=h.serializeKey(e),r=n[0],i=n[2],o=n[3];if(!r)return Promise.resolve();var a=k[r];if(r&&a){for(var s=h.get(r),l=h.get(i),c=h.get(o),u=[],f=0;f<a.length;++f)u.push(a[f](t,s,l,c,f>0));return Promise.all(u).then((function(){return h.get(r)}))}return Promise.resolve(h.get(r))},j=function(e,t,n,r){var i=k[e];if(e&&i)for(var o=0;o<i.length;++o)i[o](!1,t,n,r)},L=function(e,t,n){return void 0===n&&(n=!0),b(void 0,void 0,void 0,(function(){var r,i,o,a,s,l,c,u,f,d,p,g,v;return x(this,(function(m){switch(m.label){case 0:if(r=h.serializeKey(e),i=r[0],o=r[2],!i)return[2];if("undefined"===typeof t)return[2,P(e,n)];if(O[i]=T()-1,E[i]=0,a=O[i],s=w[i],u=!1,t&&"function"===typeof t)try{t=t(h.get(i))}catch(y){t=void 0,c=y}if(!t||"function"!==typeof t.then)return[3,5];u=!0,m.label=1;case 1:return m.trys.push([1,3,,4]),[4,t];case 2:return l=m.sent(),[3,4];case 3:return f=m.sent(),c=f,[3,4];case 4:return[3,6];case 5:l=t,m.label=6;case 6:if((d=function(){if(a!==O[i]||s!==w[i]){if(c)throw c;return!0}})())return[2,l];if("undefined"!==typeof l&&h.set(i,l),h.set(o,c),E[i]=T()-1,!u&&d())return[2,l];if(p=k[i]){for(g=[],v=0;v<p.length;++v)g.push(p[v](!!n,l,c,void 0,v>0));return[2,Promise.all(g).then((function(){if(c)throw c;return h.get(i)}))]}if(c)throw c;return[2,l]}}))}))};Object.defineProperty(y.Provider,"default",{value:d});var M=y.Provider,R=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=t[0],o=Object.assign({},d,Object(r.useContext)(y),t.length>2?t[2]:2===t.length&&"object"===typeof t[1]?t[1]:{}),a=t.length>2||2===t.length&&"function"===typeof t[1]||null===t[1]?t[1]:o.fetcher,s=h.serializeKey(i),l=s[0],c=s[1],u=s[2],f=s[3],m=Object(r.useRef)(o);v((function(){m.current=o}));var A=function(){return o.revalidateOnMount||!o.initialData&&void 0===o.revalidateOnMount},P=function(){var e=h.get(l);return"undefined"===typeof e?o.initialData:e},M=function(){return!!h.get(f)||l&&A()},R=P(),D=h.get(u),I=M(),N=Object(r.useRef)({data:!1,error:!1,isValidating:!1}),F=Object(r.useRef)({data:R,error:D,isValidating:I});Object(r.useDebugValue)(F.current.data);var B,U,z=Object(r.useState)({})[1],V=Object(r.useCallback)((function(e){var t=!1;for(var n in e)F.current[n]!==e[n]&&(F.current[n]=e[n],N.current[n]&&(t=!0));if(t){if(H.current||!G.current)return;z({})}}),[]),H=Object(r.useRef)(!1),W=Object(r.useRef)(l),G=Object(r.useRef)(!1),q=Object(r.useCallback)((function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];H.current||G.current&&l===W.current&&(t=m.current)[e].apply(t,n)}),[l]),X=Object(r.useCallback)((function(e,t){return L(W.current,e,t)}),[]),Y=function(e,t){return e[l]?e[l].push(t):e[l]=[t],function(){var n=e[l],r=n.indexOf(t);r>=0&&(n[r]=n[n.length-1],n.pop())}},$=Object(r.useCallback)((function(t){return void 0===t&&(t={}),b(e,void 0,void 0,(function(){var e,n,r,i,s,d,p,g,v,y;return x(this,(function(b){switch(b.label){case 0:if(!l||!a)return[2,!1];if(H.current)return[2,!1];if(m.current.isPaused())return[2,!1];e=t.retryCount,n=void 0===e?0:e,r=t.dedupe,i=void 0!==r&&r,s=!0,d="undefined"!==typeof _[l]&&i,b.label=1;case 1:return b.trys.push([1,6,,7]),V({isValidating:!0}),h.set(f,!0),d||j(l,F.current.data,F.current.error,!0),p=void 0,g=void 0,d?(g=w[l],[4,_[l]]):[3,3];case 2:return p=b.sent(),[3,5];case 3:return o.loadingTimeout&&!h.get(l)&&setTimeout((function(){s&&q("onLoadingSlow",l,o)}),o.loadingTimeout),_[l]=null!==c?a.apply(void 0,c):a(l),w[l]=g=T(),[4,_[l]];case 4:p=b.sent(),setTimeout((function(){delete _[l],delete w[l]}),o.dedupingInterval),q("onSuccess",p,l,o),b.label=5;case 5:return w[l]>g?[2,!1]:O[l]&&(g<=O[l]||g<=E[l]||0===E[l])?(V({isValidating:!1}),[2,!1]):(h.set(u,void 0),h.set(f,!1),v={isValidating:!1},"undefined"!==typeof F.current.error&&(v.error=void 0),o.compare(F.current.data,p)||(v.data=p),o.compare(h.get(l),p)||h.set(l,p),V(v),d||j(l,p,v.error,!1),[3,7]);case 6:return y=b.sent(),delete _[l],delete w[l],m.current.isPaused()?(V({isValidating:!1}),[2,!1]):(h.set(u,y),F.current.error!==y&&(V({isValidating:!1,error:y}),d||j(l,void 0,y,!1)),q("onError",y,l,o),o.shouldRetryOnError&&q("onErrorRetry",y,l,o,$,{retryCount:n+1,dedupe:!0}),[3,7]);case 7:return s=!1,[2,!0]}}))}))}),[l]);if(v((function(){if(l){H.current=!1;var e=G.current;G.current=!0;var t=F.current.data,n=P();W.current=l,o.compare(t,n)||V({data:n});var r=function(){return $({dedupe:!0})};
2(e||A())&&("undefined"===typeof n||p?r():g(r));var i=!1,a=Y(S,(function(){!i&&m.current.revalidateOnFocus&&(i=!0,r(),setTimeout((function(){return i=!1}),m.current.focusThrottleInterval))})),s=Y(C,(function(){m.current.revalidateOnReconnect&&r()})),c=Y(k,(function(e,t,n,i,a){void 0===e&&(e=!0),void 0===a&&(a=!0);var s={},l=!1;return"undefined"===typeof t||o.compare(F.current.data,t)||(s.data=t,l=!0),F.current.error!==n&&(s.error=n,l=!0),"undefined"!==typeof i&&F.current.isValidating!==i&&(s.isValidating=i,l=!0),l&&V(s),!!e&&(a?r():$())}));return function(){V=function(){return null},H.current=!0,a(),s(),c()}}}),[l,$]),v((function(){var t=null;return m.current.refreshInterval&&(t=setTimeout((function n(){return b(e,void 0,void 0,(function(){return x(this,(function(e){switch(e.label){case 0:return F.current.error||!m.current.refreshWhenHidden&&!m.current.isDocumentVisible()||!m.current.refreshWhenOffline&&!m.current.isOnline()?[3,2]:[4,$({dedupe:!0})];case 1:e.sent(),e.label=2;case 2:return m.current.refreshInterval&&t&&(t=setTimeout(n,m.current.refreshInterval)),[2]}}))}))}),m.current.refreshInterval)),function(){t&&(clearTimeout(t),t=null)}}),[o.refreshInterval,o.refreshWhenHidden,o.refreshWhenOffline,$]),o.suspense){if(B=h.get(l),U=h.get(u),"undefined"===typeof B&&(B=R),"undefined"===typeof U&&(U=D),"undefined"===typeof B&&"undefined"===typeof U){if(_[l]||$(),_[l]&&"function"===typeof _[l].then)throw _[l];B=_[l]}if("undefined"===typeof B&&U)throw U}var K=Object(r.useMemo)((function(){var e={revalidate:$,mutate:X};return Object.defineProperties(e,{error:{get:function(){return N.current.error=!0,o.suspense?U:W.current===l?F.current.error:D},enumerable:!0},data:{get:function(){return N.current.data=!0,o.suspense?B:W.current===l?F.current.data:R},enumerable:!0},isValidating:{get:function(){return N.current.isValidating=!0,!!l&&F.current.isValidating},enumerable:!0}}),e}),[$,R,D,X,l,o.suspense,U,B]);return K},D=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},I=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},N=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function F(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=t[0],o=Object.assign({},d,Object(r.useContext)(y),t.length>2?t[2]:2===t.length&&"object"===typeof t[1]?t[1]:{}),a=t.length>2||2===t.length&&"function"===typeof t[1]?t[1]:o.fetcher,s=o.initialSize,l=void 0===s?1:s,c=o.revalidateAll,u=void 0!==c&&c,f=o.persistSize,p=void 0!==f&&f,g=N(o,["initialSize","revalidateAll","persistSize"]),m=null;try{m=h.serializeKey(i(0,null))[0]}catch(P){}var b=Object(r.useState)({})[1],x=null;m&&(x="ctx@"+m);var _=null;m&&(_="len@"+m);var w=Object(r.useRef)(!1),S=Object(r.useCallback)((function(){var e=h.get(_);return"undefined"!==typeof e?e:l}),[_,l]),C=Object(r.useRef)(S());v((function(){w.current?h.set(_,p?C.current:l):w.current=!0}),[m]);var k=Object(r.useRef)(),O=R(m?["inf",m]:null,(function(){return D(e,void 0,void 0,(function(){var e,t,n,r,s,l,c,f,d,p,g;return I(this,(function(v){switch(v.label){case 0:e=h.get(x)||{},t=e.data,n=e.force,r=[],s=S(),l=null,c=0,v.label=1;case 1:return c<s?(f=h.serializeKey(i(c,l)),d=f[0],p=f[1],d?(g=h.get(d),u||n||"undefined"===typeof g||"undefined"===typeof n&&0===c&&"undefined"!==typeof k.current||t&&!o.compare(t[c],g)?null===p?[3,3]:[4,a.apply(void 0,p)]:[3,6]):[3,8]):[3,8];case 2:return g=v.sent(),[3,5];case 3:return[4,a(d)];case 4:g=v.sent(),v.label=5;case 5:h.set(d,g),v.label=6;case 6:r.push(g),l=g,v.label=7;case 7:return++c,[3,1];case 8:return h.delete(x),[2,r]}}))}))}),g);v((function(){k.current=O.data}),[O.data]);var E=Object(r.useCallback)((function(e,t){if(void 0===t&&(t=!0),t&&"undefined"!==typeof e){var n=k.current;h.set(x,{data:n,force:!1})}else t&&h.set(x,{force:!0});return O.mutate(e,t)}),[x]),T=Object(r.useCallback)((function(e){var t;return"function"===typeof e?t=e(S()):"number"===typeof e&&(t=e),"number"===typeof t&&(h.set(_,t),C.current=t),b({}),E((function(e){return e}))}),[_,S,E,b]),A={size:S(),setSize:T,mutate:E};return Object.defineProperties(A,{error:{get:function(){return O.error},enumerable:!0},data:{get:function(){return O.data},enumerable:!0},revalidate:{get:function(){return O.revalidate},enumerable:!0},isValidating:{get:function(){return O.isValidating},enumerable:!0}}),A}t.b=R},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21,t="",n=crypto.getRandomValues(new Uint8Array(e));e--;){var r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Te}));var r=n(115),i=n(0),o=n.n(i),a=n(230),s=n.n(a),l=n(231),c=n(232),u=n(176),h=n(68),f=n.n(h);function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var p=function(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n},g=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!Object(r.typeOf)(e)},v=Object.freeze([]),m=Object.freeze({});function y(e){return"function"==typeof e}function b(e){return e.displayName||e.name||"Component"}function x(e){return e&&"string"==typeof e.styledComponentId}var _="undefined"!=typeof e&&(Object({NODE_ENV:"production",PUBLIC_URL:"/design",REACT_APP_API_DOMAIN:"api.vectr.com",REACT_APP_API_URL:"https://api.vectr.com",REACT_APP_SOCKET_IO_URL:"wss://api.vectr.com"}).REACT_APP_SC_ATTR||Object({NODE_ENV:"production",PUBLIC_URL:"/design",REACT_APP_API_DOMAIN:"api.vectr.com",REACT_APP_API_URL:"https://api.vectr.com",REACT_APP_SOCKET_IO_URL:"wss://api.vectr.com"}).SC_ATTR)||"data-styled",w="undefined"!=typeof window&&"HTMLElement"in window,S=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof e&&void 0!==Object({NODE_ENV:"production",PUBLIC_URL:"/design",REACT_APP_API_DOMAIN:"api.vectr.com",REACT_APP_API_URL:"https://api.vectr.com",REACT_APP_SOCKET_IO_URL:"wss://api.vectr.com"}).REACT_APP_SC_DISABLE_SPEEDY&&""!==Object({NODE_ENV:"production",PUBLIC_URL:"/design",REACT_APP_API_DOMAIN:"api.vectr.com",REACT_APP_API_URL:"https://api.vectr.com",REACT_APP_SOCKET_IO_URL:"wss://api.vectr.com"}).REACT_APP_SC_DISABLE_SPEEDY?"false"!==Object({NODE_ENV:"production",PUBLIC_URL:"/design",REACT_APP_API_DOMAIN:"api.vectr.com",REACT_APP_API_URL:"https://api.vectr.com",REACT_APP_SOCKET_IO_URL:"wss://api.vectr.com"}).REACT_APP_SC_DISABLE_SPEEDY&&Object({NODE_ENV:"production",PUBLIC_URL:"/design",REACT_APP_API_DOMAIN:"api.vectr.com",REACT_APP_API_URL:"https://api.vectr.com",REACT_APP_SOCKET_IO_URL:"wss://api.vectr.com"}).REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof e&&void 0!==Object({NODE_ENV:"production",PUBLIC_URL:"/design",REACT_APP_API_DOMAIN:"api.vectr.com",REACT_APP_API_URL:"https://api.vectr.com",REACT_APP_SOCKET_IO_URL:"wss://api.vectr.com"}).SC_DISABLE_SPEEDY&&""!==Object({NODE_ENV:"production",PUBLIC_URL:"/design",REACT_APP_API_DOMAIN:"api.vectr.com",REACT_APP_API_URL:"https://api.vectr.com",REACT_APP_SOCKET_IO_URL:"wss://api.vectr.com"}).SC_DISABLE_SPEEDY&&("false"!==Object({NODE_ENV:"production",PUBLIC_URL:"/design",REACT_APP_API_DOMAIN:"api.vectr.com",REACT_APP_API_URL:"https://api.vectr.com",REACT_APP_SOCKET_IO_URL:"wss://api.vectr.com"}).SC_DISABLE_SPEEDY&&Object({NODE_ENV:"production",PUBLIC_URL:"/design",REACT_APP_API_DOMAIN:"api.vectr.com",REACT_APP_API_URL:"https://api.vectr.com",REACT_APP_SOCKET_IO_URL:"wss://api.vectr.com"}).SC_DISABLE_SPEEDY));function C(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var k=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)(i<<=1)<0&&C(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o<i;o++)this.groupSizes[o]=0}for(var a=this.indexOfGroup(e+1),s=0,l=t.length;s<l;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var i=n;i<r;i++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o<i;o++)t+=this.tag.getRule(o)+"/*!sc*/\n";return t},e}(),O=new Map,E=new Map,T=1,A=function(e){if(O.has(e))return O.get(e);for(;E.has(T);)T++;var t=T++;return O.set(e,t),E.set(t,e),t},P=function(e){return E.get(e)},j=function(e,t){O.set(e,t),E.set(t,e)},L="style["+_+'][data-styled-version="5.3.0"]',M=new RegExp("^"+_+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),R=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o<a;o++)(r=i[o])&&e.registerName(t,r)},D=function(e,t){for(var n=t.innerHTML.split("/*!sc*/\n"),r=[],i=0,o=n.length;i<o;i++){var a=n[i].trim();if(a){var s=a.match(M);if(s){var l=0|parseInt(s[1],10),c=s[2];0!==l&&(j(c,l),R(e,c,s[3]),e.getTag().insertRules(l,r)),r.length=0}else r.push(a)}}},I=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},N=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(_))return r}}(n),o=void 0!==i?i.nextSibling:null;r.setAttribute(_,"active"),r.setAttribute("data-styled-version","5.3.0");var a=I();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},F=function(){function e(e){var t=this.element=N(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var i=t[n];if(i.ownerNode===e)return i}C(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),B=function(){function e(e){var t=this.element=N(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),U=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),z=w,V={isServer:!w,useCSSOMInjection:!S},H=function(){function e(e,t,n){void 0===e&&(e=m),void 0===t&&(t={}),this.options=d({},V,{},e),this.gs=t,this.names=new Map(n),!this.options.isServer&&w&&z&&(z=!1,function(e){for(var t=document.querySelectorAll(L),n=0,r=t.length;n<r;n++){var i=t[n];i&&"active"!==i.getAttribute(_)&&(D(e,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}e.registerId=function(e){return A(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(d({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,i=t.target,e=n?new U(i):r?new F(i):new B(i),new k(e)));var e,t,n,r,i},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(A(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(A(e),n)}
vendor: 4,516 bytes, line 2
2,t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(A(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",i=0;i<n;i++){var o=P(i);if(void 0!==o){var a=e.names.get(o),s=t.getGroup(i);if(void 0!==a&&0!==s.length){var l=_+".g"+i+'[id="'+o+'"]',c="";void 0!==a&&a.forEach((function(e){e.length>0&&(c+=e+",")})),r+=""+s+l+'{content:"'+c+'"}/*!sc*/\n'}}}return r}(this)},e}(),W=/(a)(d)/gi,G=function(e){return String.fromCharCode(e+(e>25?39:97))};function q(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=G(t%52)+n;return(G(t%52)+n).replace(W,"$1-$2")}var X=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Y=function(e){return X(5381,e)};function $(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(y(n)&&!x(n))return!1}return!0}var K=Y("5.3.0"),Z=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&$(e),this.componentId=t,this.baseHash=X(K,t),this.baseStyle=n,H.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))i.push(this.staticRulesId);else{var o=ge(this.rules,e,t,n).join(""),a=q(X(this.baseHash,o.length)>>>0);if(!t.hasNameForId(r,a)){var s=n(o,"."+a,void 0,r);t.insertRules(r,a,s)}i.push(a),this.staticRulesId=a}else{for(var l=this.rules.length,c=X(this.baseHash,n.hash),u="",h=0;h<l;h++){var f=this.rules[h];if("string"==typeof f)u+=f;else if(f){var d=ge(f,e,t,n),p=Array.isArray(d)?d.join(""):d;c=X(c,p+h),u+=p}}if(u){var g=q(c>>>0);if(!t.hasNameForId(r,g)){var v=n(u,"."+g,void 0,r);t.insertRules(r,g,v)}i.push(g)}}return i.join(" ")},e}(),Q=/^\s*\/\/.*$/gm,J=[":","[",".","#"];function ee(e){var t,n,r,i,o=void 0===e?m:e,a=o.options,s=void 0===a?m:a,c=o.plugins,u=void 0===c?v:c,h=new l.a(s),f=[],d=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,o,a,s,l,c,u,h){switch(n){case 1:if(0===u&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===c)return r+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(i[0]+r),"";default:return r+(0===h?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),p=function(e,r,o){return 0===r&&-1!==J.indexOf(o[n.length])||o.match(i)?e:"."+t};function g(e,o,a,s){void 0===s&&(s="&");var l=e.replace(Q,""),c=o&&a?a+" "+o+" { "+l+" }":l;return t=s,n=o,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),h(a||!o?"":o,c)}return h.use([].concat(u,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(n)>0&&(i[0]=i[0].replace(r,p))},d,function(e){if(-2===e){var t=f;return f=[],t}}])),g.hash=u.length?u.reduce((function(e,t){return t.name||C(15),X(e,t.name)}),5381).toString():"",g}var te=o.a.createContext(),ne=(te.Consumer,o.a.createContext()),re=(ne.Consumer,new H),ie=ee();function oe(){return Object(i.useContext)(te)||re}function ae(){return Object(i.useContext)(ne)||ie}function se(e){var t=Object(i.useState)(e.stylisPlugins),n=t[0],r=t[1],a=oe(),l=Object(i.useMemo)((function(){var t=a;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),c=Object(i.useMemo)((function(){return ee({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return Object(i.useEffect)((function(){s()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),o.a.createElement(te.Provider,{value:l},o.a.createElement(ne.Provider,{value:c},e.children))}var le=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=ie);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return C(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=ie),this.name+e.hash},e}(),ce=/([A-Z])/,ue=/([A-Z])/g,he=/^ms-/,fe=function(e){return"-"+e.toLowerCase()};function de(e){return ce.test(e)?e.replace(ue,fe).replace(he,"-ms-"):e}var pe=function(e){return null==e||!1===e||""===e};function ge(e,t,n,r){if(Array.isArray(e)){for(var i,o=[],a=0,s=e.length;a<s;a+=1)""!==(i=ge(e[a],t,n,r))&&(Array.isArray(i)?o.push.apply(o,i):o.push(i));return o}
2return pe(e)?"":x(e)?"."+e.styledComponentId:y(e)?"function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!t?e:ge(e(t),t,n,r):e instanceof le?n?(e.inject(n,r),e.getName(r)):e:g(e)?function e(t,n){var r,i,o=[];for(var a in t)t.hasOwnProperty(a)&&!pe(t[a])&&(g(t[a])?o.push.apply(o,e(t[a],a)):y(t[a])?o.push(de(a)+":",t[a],";"):o.push(de(a)+": "+(r=a,(null==(i=t[a])||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||r in c.a?String(i).trim():i+"px")+";")));return n?[n+" {"].concat(o,["}"]):o}(e):e.toString();var l}function ve(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return y(e)||g(e)?ge(p(v,[e].concat(n))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:ge(p(e,n))}new Set;var me=function(e,t,n){return void 0===n&&(n=m),e.theme!==n.theme&&e.theme||t||n.theme},ye=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,be=/(^-|-$)/g;function xe(e){return e.replace(ye,"-").replace(be,"")}var _e=function(e){return q(Y(e)>>>0)};function we(e){return"string"==typeof e&&!0}var Se=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Ce=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function ke(e,t,n){var r=e[n];Se(t)&&Se(r)?Oe(r,t):e[n]=t}function Oe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i];if(Se(a))for(var s in a)Ce(s)&&ke(e,a[s],s)}return e}var Ee=o.a.createContext();Ee.Consumer;function Te(e){var t=Object(i.useContext)(Ee),n=Object(i.useMemo)((function(){return function(e,t){return e?y(e)?e(t):Array.isArray(e)||"object"!=typeof e?C(8):t?d({},t,{},e):e:C(14)}(e.theme,t)}),[e.theme,t]);return e.children?o.a.createElement(Ee.Provider,{value:n},e.children):null}var Ae={};function Pe(e,t,n){var r=x(e),a=!we(e),s=t.attrs,l=void 0===s?v:s,c=t.componentId,h=void 0===c?function(e,t){var n="string"!=typeof e?"sc":xe(e);Ae[n]=(Ae[n]||0)+1;var r=n+"-"+_e("5.3.0"+n+Ae[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):c,p=t.displayName,g=void 0===p?function(e){return we(e)?"styled."+e:"Styled("+b(e)+")"}(e):p,_=t.displayName&&t.componentId?xe(t.displayName)+"-"+t.componentId:t.componentId||h,w=r&&e.attrs?Array.prototype.concat(e.attrs,l).filter(Boolean):l,S=t.shouldForwardProp;r&&e.shouldForwardProp&&(S=t.shouldForwardProp?function(n,r,i){return e.shouldForwardProp(n,r,i)&&t.shouldForwardProp(n,r,i)}:e.shouldForwardProp);var C,k=new Z(n,_,r?e.componentStyle:void 0),O=k.isStatic&&0===l.length,E=function(e,t){return function(e,t,n,r){var o=e.attrs,a=e.componentStyle,s=e.defaultProps,l=e.foldedComponentIds,c=e.shouldForwardProp,h=e.styledComponentId,f=e.target,p=function(e,t,n){void 0===e&&(e=m);var r=d({},t,{theme:e}),i={};return n.forEach((function(e){var t,n,o,a=e;for(t in y(a)&&(a=a(r)),a)r[t]=i[t]="className"===t?(n=i[t],o=a[t],n&&o?n+" "+o:n||o):a[t]})),[r,i]}(me(t,Object(i.useContext)(Ee),s)||m,t,o),g=p[0],v=p[1],b=function(e,t,n,r){var i=oe(),o=ae();return t?e.generateAndInjectStyles(m,i,o):e.generateAndInjectStyles(n,i,o)}(a,r,g),x=n,_=v.$as||t.$as||v.as||t.as||f,w=we(_),S=v!==t?d({},t,{},v):t,C={};for(var k in S)"$"!==k[0]&&"as"!==k&&("forwardedAs"===k?C.as=S[k]:(c?c(k,u.a,_):!w||Object(u.a)(k))&&(C[k]=S[k]));return t.style&&v.style!==t.style&&(C.style=d({},t.style,{},v.style)),C.className=Array.prototype.concat(l,h,b!==h?b:null,t.className,v.className).filter(Boolean).join(" "),C.ref=x,Object(i.createElement)(_,C)}(C,e,t,O)};return E.displayName=g,(C=o.a.forwardRef(E)).attrs=w,C.componentStyle=k,C.displayName=g,C.shouldForwardProp=S,C.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):v,C.styledComponentId=_,C.target=r?e.target:e,C.withComponent=function(e){var r=t.componentId,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,["componentId"]),o=r&&r+"-"+(we(e)?e:xe(b(e)));return Pe(e,d({},i,{attrs:w,componentId:o}),n)},Object.defineProperty(C,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?Oe({},e.defaultProps,t):t}}),C.toString=function(){return"."+C.styledComponentId},a&&f()(C,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}
2),C}var je=function(e){return function e(t,n,i){if(void 0===i&&(i=m),!Object(r.isValidElementType)(n))return C(1,String(n));var o=function(){return t(n,i,ve.apply(void 0,arguments))};return o.withConfig=function(r){return e(t,n,d({},i,{},r))},o.attrs=function(r){return e(t,n,d({},i,{attrs:Array.prototype.concat(i.attrs,r).filter(Boolean)}))},o}(Pe,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){je[e]=je(e)}));!function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=$(e),H.registerId(this.componentId+1)}var t=e.prototype;t.createStyles=function(e,t,n,r){var i=r(ge(this.rules,t,n,r).join(""),""),o=this.componentId+e;n.insertRules(o,o,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&H.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)}}();!function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString(),n=I();return"<style "+[n&&'nonce="'+n+'"',_+'="true"','data-styled-version="5.3.0"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?C(2):e._emitSheetCSS()}
2,this.getStyleElement=function(){var t;if(e.sealed)return C(2);var n=((t={})[_]="",t["data-styled-version"]="5.3.0",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=I();return r&&(n.nonce=r),[o.a.createElement("style",d({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new H({isServer:!0}),this.sealed=!1}var t=e.prototype;t.collectStyles=function(e){return this.sealed?C(2):o.a.createElement(se,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return C(3)}}();t.b=je}).call(this,n(162))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0);function i(e){var t=e.controlled,n=e.default,i=(e.name,e.state,r.useRef(void 0!==t).current),o=r.useState(n),a=o[0],s=o[1];return[i?t:a,r.useCallback((function(e){i||s(e)}),[])]}},function(e,t,n){(function(e,r){var i;(function(){var o,a="Expected a function",s="__lodash_hash_undefined__",l="__lodash_placeholder__",c=16,u=32,h=64,f=128,d=256,p=1/0,g=9007199254740991,v=NaN,m=4294967295,y=[["ary",f],["bind",1],["bindKey",2],["curry",8],["curryRight",c],["flip",512],["partial",u],["partialRight",h],["rearg",d]],b="[object Arguments]",x="[object Array]",_="[object Boolean]",w="[object Date]",S="[object Error]",C="[object Function]",k="[object GeneratorFunction]",O="[object Map]",E="[object Number]",T="[object Object]",A="[object Promise]",P="[object RegExp]",j="[object Set]",L="[object String]",M="[object Symbol]",R="[object WeakMap]",D="[object ArrayBuffer]",I="[object DataView]",N="[object Float32Array]",F="[object Float64Array]",B="[object Int8Array]",U="[object Int16Array]",z="[object Int32Array]",V="[object Uint8Array]",H="[object Uint8ClampedArray]",W="[object Uint16Array]",G="[object Uint32Array]",q=/\b__p \+= '';/g,X=/\b(__p \+=) '' \+/g,Y=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,Z=RegExp($.source),Q=RegExp(K.source),J=/<%-([\s\S]+?)%>/g,ee=/<%([\s\S]+?)%>/g,te=/<%=([\s\S]+?)%>/g,ne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,re=/^\w*$/,ie=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oe=/[\\^$.*+?()[\]{}|]/g,ae=RegExp(oe.source),se=/^\s+/,le=/\s/,ce=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ue=/\{\n\/\* \[wrapped with (.+)\] \*/,he=/,? & /,fe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,de=/[()=,{}\[\]\/\s]/,pe=/\\(\\)?/g,ge=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ve=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,ye=/^0b[01]+$/i,be=/^\[object .+?Constructor\]$/,xe=/^0o[0-7]+$/i,_e=/^(?:0|[1-9]\d*)$/,we=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 6,176 bytes, line 2
27f]/g,Se=/($^)/,Ce=/['\n\r\u2028\u2029\\]/g,ke="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Oe="\\u2700-\\u27bf",Ee="a-z\\xdf-\\xf6\\xf8-\\xff",Te="A-Z\\xc0-\\xd6\\xd8-\\xde",Ae="\\ufe0e\\ufe0f",Pe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",je="['\u2019]",Le="[\\ud800-\\udfff]",Me="["+Pe+"]",Re="["+ke+"]",De="\\d+",Ie="[\\u2700-\\u27bf]",Ne="["+Ee+"]",Fe="[^\\ud800-\\udfff"+Pe+De+Oe+Ee+Te+"]",Be="\\ud83c[\\udffb-\\udfff]",Ue="[^\\ud800-\\udfff]",ze="(?:\\ud83c[\\udde6-\\uddff]){2}",Ve="[\\ud800-\\udbff][\\udc00-\\udfff]",He="["+Te+"]",We="(?:"+Ne+"|"+Fe+")",Ge="(?:"+He+"|"+Fe+")",qe="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Xe="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Ye="(?:"+Re+"|"+Be+")"+"?",$e="[\\ufe0e\\ufe0f]?",Ke=$e+Ye+("(?:\\u200d(?:"+[Ue,ze,Ve].join("|")+")"+$e+Ye+")*"),Ze="(?:"+[Ie,ze,Ve].join("|")+")"+Ke,Qe="(?:"+[Ue+Re+"?",Re,ze,Ve,Le].join("|")+")",Je=RegExp(je,"g"),et=RegExp(Re,"g"),tt=RegExp(Be+"(?="+Be+")|"+Qe+Ke,"g"),nt=RegExp([He+"?"+Ne+"+"+qe+"(?="+[Me,He,"$"].join("|")+")",Ge+"+"+Xe+"(?="+[Me,He+We,"$"].join("|")+")",He+"?"+We+"+"+qe,He+"+"+Xe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",De,Ze].join("|"),"g"),rt=RegExp("[\\u200d\\ud800-\\udfff"+ke+Ae+"]"),it=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ot=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],at=-1,st={};st[N]=st[F]=st[B]=st[U]=st[z]=st[V]=st[H]=st[W]=st[G]=!0,st[b]=st[x]=st[D]=st[_]=st[I]=st[w]=st[S]=st[C]=st[O]=st[E]=st[T]=st[P]=st[j]=st[L]=st[R]=!1;var lt={};lt[b]=lt[x]=lt[D]=lt[I]=lt[_]=lt[w]=lt[N]=lt[F]=lt[B]=lt[U]=lt[z]=lt[O]=lt[E]=lt[T]=lt[P]=lt[j]=lt[L]=lt[M]=lt[V]=lt[H]=lt[W]=lt[G]=!0,lt[S]=lt[C]=lt[R]=!1;var ct={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ut=parseFloat,ht=parseInt,ft="object"==typeof e&&e&&e.Object===Object&&e,dt="object"==typeof self&&self&&self.Object===Object&&self,pt=ft||dt||Function("return this")(),gt=t&&!t.nodeType&&t,vt=gt&&"object"==typeof r&&r&&!r.nodeType&&r,mt=vt&&vt.exports===gt,yt=mt&&ft.process,bt=function(){try{var e=vt&&vt.require&&vt.require("util").types;return e||yt&&yt.binding&&yt.binding("util")}catch(t){}}(),xt=bt&&bt.isArrayBuffer,_t=bt&&bt.isDate,wt=bt&&bt.isMap,St=bt&&bt.isRegExp,Ct=bt&&bt.isSet,kt=bt&&bt.isTypedArray;function Ot(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Et(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function Tt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function At(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Pt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function jt(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function Lt(e,t){return!!(null==e?0:e.length)&&Vt(e,t,0)>-1}function Mt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Rt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Dt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function It(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function Nt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Ft(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Bt=qt("length");function Ut(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function zt(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Vt(e,t,n){return t===t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):zt(e,Wt,n)}function Ht(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Wt(e){return e!==e}function Gt(e,t){var n=null==e?0:e.length;return n?$t(e,t)/n:v}function qt(e){return function(t){return null==t?o:t[e]}}function Xt(e){return function(t){return null==e?o:e[t]}}function Yt(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function $t(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function Kt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Zt(e){return e?e.slice(0,vn(e)+1).replace(se,""):e}function Qt(e){return function(t){return e(t)}}function Jt(e,t){return Rt(t,(function(t){return e[t]}))}function en(e,t){return e.has(t)}function tn(e,t){for(var n=-1,r=e.length;++n<r&&Vt(t,e[n],0)>-1;);return n}function nn(e,t){for(var n=e.length;n--&&Vt(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var on=Xt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"
2c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),an=Xt({"&":"&","<":"<",">":">",'"':""","'":"'"});function sn(e){return"\\"+ct[e]}function ln(e){return rt.test(e)}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function un(e,t){return function(n){return e(t(n))}}function hn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&a!==l||(e[n]=l,o[i++]=n)}return o}function fn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function dn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function pn(e){return ln(e)?function(e){var t=tt.lastIndex=0;for(;tt.test(e);)++t;return t}(e):Bt(e)}function gn(e){return ln(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.split("")}(e)}function vn(e){for(var t=e.length;t--&&le.test(e.charAt(t)););return t}var mn=Xt({"&":"&","<":"<",">":">",""":'"',"'":"'"});var yn=function e(t){var n=(t=null==t?pt:yn.defaults(pt.Object(),t,yn.pick(pt,ot))).Array,r=t.Date,i=t.Error,le=t.Function,ke=t.Math,Oe=t.Object,Ee=t.RegExp,Te=t.String,Ae=t.TypeError,Pe=n.prototype,je=le.prototype,Le=Oe.prototype,Me=t["__core-js_shared__"],Re=je.toString,De=Le.hasOwnProperty,Ie=0,Ne=function(){var e=/[^.]+$/.exec(Me&&Me.keys&&Me.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Fe=Le.toString,Be=Re.call(Oe),Ue=pt._,ze=Ee("^"+Re.call(De).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ve=mt?t.Buffer:o,He=t.Symbol,We=t.Uint8Array,Ge=Ve?Ve.allocUnsafe:o,qe=un(Oe.getPrototypeOf,Oe),Xe=Oe.create,Ye=Le.propertyIsEnumerable,$e=Pe.splice,Ke=He?He.isConcatSpreadable:o,Ze=He?He.iterator:o,Qe=He?He.toStringTag:o,tt=function(){try{var e=fo(Oe,"defineProperty");return e({},"",{}),e}catch(t){}}(),rt=t.clearTimeout!==pt.clearTimeout&&t.clearTimeout,ct=r&&r.now!==pt.Date.now&&r.now,ft=t.setTimeout!==pt.setTimeout&&t.setTimeout,dt=ke.ceil,gt=ke.floor,vt=Oe.getOwnPropertySymbols,yt=Ve?Ve.isBuffer:o,bt=t.isFinite,Bt=Pe.join,Xt=un(Oe.keys,Oe),bn=ke.max,xn=ke.min,_n=r.now,wn=t.parseInt,Sn=ke.random,Cn=Pe.reverse,kn=fo(t,"DataView"),On=fo(t,"Map"),En=fo(t,"Promise"),Tn=fo(t,"Set"),An=fo(t,"WeakMap"),Pn=fo(Oe,"create"),jn=An&&new An,Ln={},Mn=Uo(kn),Rn=Uo(On),Dn=Uo(En),In=Uo(Tn),Nn=Uo(An),Fn=He?He.prototype:o,Bn=Fn?Fn.valueOf:o,Un=Fn?Fn.toString:o;function zn(e){if(rs(e)&&!qa(e)&&!(e instanceof Gn)){if(e instanceof Wn)return e;if(De.call(e,"__wrapped__"))return zo(e)}return new Wn(e)}var Vn=function(){function e(){}return function(t){if(!ns(t))return{};if(Xe)return Xe(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Hn(){}function Wn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Gn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Xn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function $n(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Yn;++t<n;)this.add(e[t])}function Kn(e){var t=this.__data__=new Xn(e);this.size=t.size}function Zn(e,t){var n=qa(e),r=!n&&Ga(e),i=!n&&!r&&Ka(e),o=!n&&!r&&!i&&hs(e),a=n||r||i||o,s=a?Kt(e.length,Te):[],l=s.length;for(var c in e)!t&&!De.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||xo(c,l))||s.push(c);return s}function Qn(e){var t=e.length;return t?e[$r(0,t-1)]:o}function Jn(e,t){return No(Pi(e),lr(t,0,e.length))}function er(e){return No(Pi(e))}function tr(e,t,n){(n!==o&&!Va(e[t],n)||n===o&&!(t in e))&&ar(e,t,n)}function nr(e,t,n){var r=e[t];De.call(e,t)&&Va(r,n)&&(n!==o||t in e)||ar(e,t,n)}function rr(e,t){for(var n=e.length;n--;)if(Va(e[n][0],t))return n;return-1}function ir(e,t,n,r){return dr(e,(function(e,i,o){t(r,e,n(e),o)})),r}function or(e,t){return e&&ji(t,Ms(t),e)}function ar(e,t,n){"__proto__"==t&&tt?tt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function sr(e,t){for(var r=-1,i=t.length,a=n(i),s=null==e;++r<i;)a[r]=s?o:Ts(e,t[r]);return a}function lr(e,t,n){return e===e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function cr(e,t,n,r,i,a){var s,l=1&t,c=2&t,u=4&t;if(n&&(s=i?n(e,r,i,a):n(e)),s!==o)return s;if(!ns(e))return e;var h=qa(e);if(h){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&De.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}
vendor: 12,652 bytes, line 2
2(e),!l)return Pi(e,s)}else{var f=vo(e),d=f==C||f==k;if(Ka(e))return Ci(e,l);if(f==T||f==b||d&&!i){if(s=c||d?{}:yo(e),!l)return c?function(e,t){return ji(e,go(e),t)}(e,function(e,t){return e&&ji(t,Rs(t),e)}(s,e)):function(e,t){return ji(e,po(e),t)}(e,or(s,e))}else{if(!lt[f])return i?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case D:return ki(e);case _:case w:return new r(+e);case I:return function(e,t){var n=t?ki(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case N:case F:case B:case U:case z:case V:case H:case W:case G:return Oi(e,n);case O:return new r;case E:case L:return new r(e);case P:return function(e){var t=new e.constructor(e.source,ve.exec(e));return t.lastIndex=e.lastIndex,t}(e);case j:return new r;case M:return i=e,Bn?Oe(Bn.call(i)):{}}var i}(e,f,l)}}a||(a=new Kn);var p=a.get(e);if(p)return p;a.set(e,s),ls(e)?e.forEach((function(r){s.add(cr(r,t,n,r,e,a))})):is(e)&&e.forEach((function(r,i){s.set(i,cr(r,t,n,i,e,a))}));var g=h?o:(u?c?oo:io:c?Rs:Ms)(e);return Tt(g||e,(function(r,i){g&&(r=e[i=r]),nr(s,i,cr(r,t,n,i,e,a))})),s}function ur(e,t,n){var r=n.length;if(null==e)return!r;for(e=Oe(e);r--;){var i=n[r],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function hr(e,t,n){if("function"!=typeof e)throw new Ae(a);return Mo((function(){e.apply(o,n)}),t)}function fr(e,t,n,r){var i=-1,o=Lt,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=Rt(t,Qt(n))),r?(o=Mt,a=!1):t.length>=200&&(o=en,a=!1,t=new $n(t));e:for(;++i<s;){var u=e[i],h=null==n?u:n(u);if(u=r||0!==u?u:0,a&&h===h){for(var f=c;f--;)if(t[f]===h)continue e;l.push(u)}else o(t,h,r)||l.push(u)}return l}zn.templateSettings={escape:J,evaluate:ee,interpolate:te,variable:"",imports:{_:zn}},zn.prototype=Hn.prototype,zn.prototype.constructor=zn,Wn.prototype=Vn(Hn.prototype),Wn.prototype.constructor=Wn,Gn.prototype=Vn(Hn.prototype),Gn.prototype.constructor=Gn,qn.prototype.clear=function(){this.__data__=Pn?Pn(null):{},this.size=0},qn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},qn.prototype.get=function(e){var t=this.__data__;if(Pn){var n=t[e];return n===s?o:n}return De.call(t,e)?t[e]:o},qn.prototype.has=function(e){var t=this.__data__;return Pn?t[e]!==o:De.call(t,e)},qn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Pn&&t===o?s:t,this},Xn.prototype.clear=function(){this.__data__=[],this.size=0},Xn.prototype.delete=function(e){var t=this.__data__,n=rr(t,e);return!(n<0)&&(n==t.length-1?t.pop():$e.call(t,n,1),--this.size,!0)},Xn.prototype.get=function(e){var t=this.__data__,n=rr(t,e);return n<0?o:t[n][1]},Xn.prototype.has=function(e){return rr(this.__data__,e)>-1},Xn.prototype.set=function(e,t){var n=this.__data__,r=rr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Yn.prototype.clear=function(){this.size=0,this.__data__={hash:new qn,map:new(On||Xn),string:new qn}},Yn.prototype.delete=function(e){var t=uo(this,e).delete(e);return this.size-=t?1:0,t},Yn.prototype.get=function(e){return uo(this,e).get(e)},Yn.prototype.has=function(e){return uo(this,e).has(e)},Yn.prototype.set=function(e,t){var n=uo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},$n.prototype.add=$n.prototype.push=function(e){return this.__data__.set(e,s),this},$n.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.clear=function(){this.__data__=new Xn,this.size=0},Kn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Kn.prototype.get=function(e){return this.__data__.get(e)},Kn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Xn){var r=n.__data__;if(!On||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Yn(r)}return n.set(e,t),this.size=n.size,this};var dr=Ri(_r),pr=Ri(wr,!0);function gr(e,t){var n=!0;return dr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function vr(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],s=t(a);if(null!=s&&(l===o?s===s&&!us(s):n(s,l)))var l=s,c=a}return c}function mr(e,t){var n=[];return dr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function yr(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=bo),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?yr(s,t-1,n,r,i):Dt(i,s):r||(i[i.length]=s)}return i}var br=Di(),xr=Di(!0);function _r(e,t){return e&&br(e,t,Ms)}function wr(e,t){return e&&xr(e,t,Ms)}function Sr(e,t){return jt(t,(function(t){return Ja(e[t])}))}function Cr(e,t){for(var n=0,r=(t=xi(t,e)).length;null!=e&&n<r;)e=e[Bo(t[n++])];return n&&n==r?e:o}function kr(e,t,n){var r=t(e);return qa(e)?r:Dt(r,n(e))}function Or(e){return null==e?e===o?"[object Undefined]":"[object Null]":Qe&&Qe in Oe(e)?function(e){var t=De.call(e,Qe),n=e[Qe];try{e[Qe]=o;var r=!0}catch(a){}var i=Fe.call(e);r&&(t?e[Qe]=n:delete e[Qe]);return i}(e):function(e){return Fe.call(e)}(e)}function Er(e,t){return e>t}function Tr(e,t){return null!=e&&De.call(e,t)}function Ar(e,t){return null!=e&&t in Oe(e)}function Pr(e,t,r){for(var i=r?Mt:Lt,a=e[0].length,s=e.length,l=s,c=n(s),u=1/0,h=[];l--;){var f=e[l];l&&t&&(f=Rt(f,Qt(t))),u=xn(f.length,u),c[l]=!r&&(t||a>=120&&f.length>=120)?new $n(l&&f):o}f=e[0];var d=-1,p=c[0];e:for(;++d<a&&h.length<u;){var g=f[d],v=t?t(g):g;if(g=r||0!==g?g:0,!(p?en(p,v):i(h,v,r))){for(l=s;--l;){var m=c[l];if(!(m?en(m,v):i(e[l],v,r)))continue e}p&&p.push(v),h.push(g)}}return h}function jr(e,t,n){var r=null==(e=Ao(e,t=xi(t,e)))?e:e[Bo(Qo(t))];return null==r?o:Ot(r,e,n)}function Lr(e){return rs(e)&&Or(e)==b}function Mr(e,t,n,r,i){return e===t||(null==e||null==t||!rs(e)&&!rs(t)?e!==e&&t!==t:function(e,t,n,r,i,a){var s=qa(e),l=qa(t),c=s?x:vo(e),u=l?x:vo(t),h=(c=c==b?T:c)==T,f=(u=u==b?T:u)==T,d=c==u;if(d&&Ka(e)){if(!Ka(t))return!1;s=!0,h=!1}if(d&&!h)return a||(a=new Kn),s||hs(e)?no(e,t,n,r,i,a):function(e,t,n,r,i,o,a){switch(n){case I:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case D:return!(e.byteLength!=t.byteLength||!o(new We(e),new We(t)));case _:case w:case E:return Va(+e,+t);case S:return e.name==t.name&&e.message==t.message;case P:case L:return e==t+"";case O:var s=cn;case j:var l=1&r;if(s||(s=fn),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=no(s(e),s(t),r,i,o,a);return a.delete(e),u;case M:if(Bn)return Bn.call(e)==Bn.call(t)}return!1}(e,t,c,n,r,i,a);if(!(1&n)){var p=h&&De.call(e,"__wrapped__"),g=f&&De.call(t,"__wrapped__");if(p||g){var v=p?e.value():e,m=g?t.value():t;return a||(a=new Kn),i(v,m,n,r,a)}}if(!d)return!1;return a||(a=new Kn),function(e,t,n,r,i,a){var s=1&n,l=io(e),c=l.length,u=io(t).length;if(c!=u&&!s)return!1;var h=c;for(;h--;){var f=l[h];if(!(s?f in t:De.call(t,f)))return!1}var d=a.get(e),p=a.get(t);if(d&&p)return d==t&&p==e;var g=!0;a.set(e,t),a.set(t,e);var v=s;for(;++h<c;){var m=e[f=l[h]],y=t[f];if(r)var b=s?r(y,m,f,t,e,a):r(m,y,f,e,t,a);if(!(b===o?m===y||i(m,y,n,r,a):b)){g=!1;break}v||(v="constructor"==f)}if(g&&!v){var x=e.constructor,_=t.constructor;x==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof _&&_ instanceof _||(g=!1)}return a.delete(e),a.delete(t),g}(e,t,n,r,i,a)}(e,t,n,r,Mr,i))}function Rr(e,t,n,r){var i=n.length,a=i,s=!r;if(null==e)return!a;for(e=Oe(e);i--;){var l=n[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){var c=(l=n[i])[0],u=e[c],h=l[1];if(s&&l[2]){if(u===o&&!(c in e))return!1}else{var f=new Kn;if(r)var d=r(u,h,c,e,t,f);if(!(d===o?Mr(h,u,3,r,f):d))return!1}}return!0}function Dr(e){return!(!ns(e)||(t=e,Ne&&Ne in t))&&(Ja(e)?ze:be).test(Uo(e));var t}function Ir(e){return"function"==typeof e?e:null==e?ol:"object"==typeof e?qa(e)?Vr(e[0],e[1]):zr(e):pl(e)}function Nr(e){if(!ko(e))return Xt(e);var t=[];for(var n in Oe(e))De.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Fr(e){if(!ns(e))return function(e){var t=[];if(null!=e)for(var n in Oe(e))t.push(n);return t}(e);var t=ko(e),n=[];for(var r in e)("constructor"!=r||!t&&De.call(e,r))&&n.push(r);return n}function Br(e,t){return e<t}function Ur(e,t){var r=-1,i=Ya(e)?n(e.length):[];return dr(e,(function(e,n,o){i[++r]=t(e,n,o)})),i}function zr(e){var t=ho(e);return 1==t.length&&t[0][2]?Eo(t[0][0],t[0][1]):function(n){return n===e||Rr(n,e,t)}}function Vr(e,t){return wo(e)&&Oo(t)?Eo(Bo(e),t):function(n){var r=Ts(n,e);return r===o&&r===t?As(n,e):Mr(t,r,3)}}function Hr(e,t,n,r,i){e!==t&&br(t,(function(a,s){if(i||(i=new Kn),ns(a))!function(e,t,n,r,i,a,s){var l=jo(e,n),c=jo(t,n),u=s.get(c);if(u)return void tr(e,n,u);var h=a?a(l,c,n+"",e,t,s):o,f=h===o;if(f){var d=qa(c),p=!d&&Ka(c),g=!d&&!p&&hs(c);h=c,d||p||g?qa(l)?h=l:$a(l)?h=Pi(l):p?(f=!1,h=Ci(c,!0)):g?(f=!1,h=Oi(c,!0)):h=[]:as(c)||Ga(c)?(h=l,Ga(l)?h=bs(l):ns(l)&&!Ja(l)||(h=yo(c))):f=!1}f&&(s.set(c,h),i(h,c,r,a,s),s.delete(c));tr(e,n,h)}(e,t,s,n,Hr,r,i);else{var l=r?r(jo(e,s),a,s+"",e,t,i):o;l===o&&(l=a),tr(e,s,l)}}),Rs)}function Wr(e,t){var n=e.length;if(n)return xo(t+=t<0?n:0,n)?e[t]:o}function Gr(e,t,n){t=t.length?Rt(t,(function(e){return qa(e)?function(t){return Cr(t,1===e.length?e[0]:e)}:e})):[ol];var r=-1;return t=Rt(t,Qt(co())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Ur(e,(function(e,n,i){return{criteria:Rt(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;for(;++r<a;){var l=Ei(i[r],o[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function qr(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=Cr(e,a);n(s,a)&&ei(o,xi(a,e),s)}return o}function Xr(e,t,n,r){var i=r?Ht:Vt,o=-1,a=t.length,s=e;for(e===t&&(t=Pi(t)),n&&(s=Rt(e,Qt(n)));++o<a;)for(var l=0,c=t[o],u=n?n(c):c;(l=i(s,u,l,r))>-1;)s!==e&&$e.call(s,l,1),$e.call(e,l,1);return e}function Yr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;xo(i)?$e.call(e,i,1):fi(e,i)}}return e}function $r(e,t){return e+gt(Sn()*(t-e+1))}function Kr(e,t){var n="";if(!e||t<1||t>g)return n;do{t%2&&(n+=e),(t=gt(t/2))&&(e+=e)}while(t);return n}function Zr(e,t){return Ro(To(e,t,ol),e+"")}function Qr(e){return Qn(Vs(e))}function Jr(e,t){var n=Vs(e);return No(n,lr(t,0,n.length))}function ei(e,t,n,r){if(!ns(e))return e;for(var i=-1,a=(t=xi(t,e)).length,s=a-1,l=e;null!=l&&++i<a;){var c=Bo(t[i]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=s){var h=l[c];(u=r?r(h,c,l):o)===o&&(u=ns(h)?h:xo(t[i+1])?[]:{})}nr(l,c,u),l=l[c]}return e}var ti=jn?function(e,t){return jn.set(e,t),e}:ol,ni=tt?function(e,t){return tt(e,"toString",{configurable:!0,enumerable:!1,value:nl(t),writable:!0})}:ol;function ri(e){return No(Vs(e))}function ii(e,t,r){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=n(o);++i<o;)a[i]=e[i+t];return a}function oi(e,t){var n;return dr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function ai(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t===t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!us(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return si(e,t,ol,n)}function si(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!==t,l=null===t,c=us(t),u=t===o;i<a;){var h=gt((i+a)/2),f=n(e[h]),d=f!==o,p=null===f,g=f===f,v=us(f);if(s)var m=r||g;else m=u?g&&(r||d):l?g&&d&&(r||!p):c?g&&d&&!p&&(r||!v):!p&&!v&&(r?f<=t:f<t);m?i=h+1:a=h}return xn(a,4294967294)}function li(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Va(s,l)){var l=s;o[i++]=0===a?0:a}}return o}function ci(e){return"number"==typeof e?e:us(e)?v:+e}function ui(e){if("string"==typeof e)return e;if(qa(e))return Rt(e,ui)+"";if(us(e))return Un?Un.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function hi(e,t,n){var r=-1,i=Lt,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=Mt;else if(o>=200){var c=t?null:Ki(e);if(c)return fn(c);a=!1,i=en,l=new $n}else l=t?[]:s;e:for(;++r<o;){var u=e[r],h=t?t(u):u;if(u=n||0!==u?u:0,a&&h===h){for(var f=l.length;f--;)if(l[f]===h)continue e;t&&l.push(h),s.push(u)}else i(l,h,n)||(l!==s&&l.push(h),s.push(u))}return s}function fi(e,t){return null==(e=Ao(e,t=xi(t,e)))||delete e[Bo(Qo(t))]}function di(e,t,n,r){return ei(e,t,n(Cr(e,t)),r)}function pi(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ii(e,r?0:o,r?o+1:i):ii(e,r?o+1:0,r?i:o)}function gi(e,t){var n=e;return n instanceof Gn&&(n=n.value()),It(t,(function(e,t){return t.func.apply(t.thisArg,Dt([e],t.args))}),n)}function vi(e,t,r){var i=e.length;if(i<2)return i?hi(e[0]):[];for(var o=-1,a=n(i);++o<i;)for(var s=e[o],l=-1;++l<i;)l!=o&&(a[o]=fr(a[o]||s,e[l],t,r));return hi(yr(a,1),t,r)}
vendor: 2,002 bytes, line 2
2function mi(e,t,n){for(var r=-1,i=e.length,a=t.length,s={};++r<i;){var l=r<a?t[r]:o;n(s,e[r],l)}return s}function yi(e){return $a(e)?e:[]}function bi(e){return"function"==typeof e?e:ol}function xi(e,t){return qa(e)?e:wo(e,t)?[e]:Fo(xs(e))}var _i=Zr;function wi(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:ii(e,t,n)}var Si=rt||function(e){return pt.clearTimeout(e)};function Ci(e,t){if(t)return e.slice();var n=e.length,r=Ge?Ge(n):new e.constructor(n);return e.copy(r),r}function ki(e){var t=new e.constructor(e.byteLength);return new We(t).set(new We(e)),t}function Oi(e,t){var n=t?ki(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ei(e,t){if(e!==t){var n=e!==o,r=null===e,i=e===e,a=us(e),s=t!==o,l=null===t,c=t===t,u=us(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||r&&s&&c||!n&&c||!i)return 1;if(!r&&!a&&!u&&e<t||u&&n&&i&&!r&&!a||l&&n&&i||!s&&i||!c)return-1}return 0}function Ti(e,t,r,i){for(var o=-1,a=e.length,s=r.length,l=-1,c=t.length,u=bn(a-s,0),h=n(c+u),f=!i;++l<c;)h[l]=t[l];for(;++o<s;)(f||o<a)&&(h[r[o]]=e[o]);for(;u--;)h[l++]=e[o++];return h}function Ai(e,t,r,i){for(var o=-1,a=e.length,s=-1,l=r.length,c=-1,u=t.length,h=bn(a-l,0),f=n(h+u),d=!i;++o<h;)f[o]=e[o];for(var p=o;++c<u;)f[p+c]=t[c];for(;++s<l;)(d||o<a)&&(f[p+r[s]]=e[o++]);return f}function Pi(e,t){var r=-1,i=e.length;for(t||(t=n(i));++r<i;)t[r]=e[r];return t}function ji(e,t,n,r){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var l=t[a],c=r?r(n[l],e[l],l,n,e):o;c===o&&(c=e[l]),i?ar(n,l,c):nr(n,l,c)}return n}function Li(e,t){return function(n,r){var i=qa(n)?Et:ir,o=t?t():{};return i(n,e,co(r,2),o)}}function Mi(e){return Zr((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,s=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,s&&_o(n[0],n[1],s)&&(a=i<3?o:a,i=1),t=Oe(t);++r<i;){var l=n[r];l&&e(t,l,r,a)}return t}))}function Ri(e,t){return function(n,r){if(null==n)return n;if(!Ya(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Oe(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}
vendor: 14,242 bytes, line 2
2function Di(e){return function(t,n,r){for(var i=-1,o=Oe(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}function Ii(e){return function(t){var n=ln(t=xs(t))?gn(t):o,r=n?n[0]:t.charAt(0),i=n?wi(n,1).join(""):t.slice(1);return r[e]()+i}}function Ni(e){return function(t){return It(Js(Gs(t).replace(Je,"")),e,"")}}function Fi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Vn(e.prototype),r=e.apply(n,t);return ns(r)?r:n}}function Bi(e){return function(t,n,r){var i=Oe(t);if(!Ya(t)){var a=co(n,3);t=Ms(t),n=function(e){return a(i[e],e,i)}}var s=e(t,n,r);return s>-1?i[a?t[s]:s]:o}}function Ui(e){return ro((function(t){var n=t.length,r=n,i=Wn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Ae(a);if(i&&!l&&"wrapper"==so(s))var l=new Wn([],!0)}for(r=l?r:n;++r<n;){var c=so(s=t[r]),u="wrapper"==c?ao(s):o;l=u&&So(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[so(u[0])].apply(l,u[3]):1==s.length&&So(s)?l[c]():l.thru(s)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&qa(r))return l.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}function zi(e,t,r,i,a,s,l,c,u,h){var d=t&f,p=1&t,g=2&t,v=24&t,m=512&t,y=g?o:Fi(e);return function o(){for(var f=arguments.length,b=n(f),x=f;x--;)b[x]=arguments[x];if(v)var _=lo(o),w=rn(b,_);if(i&&(b=Ti(b,i,a,v)),s&&(b=Ai(b,s,l,v)),f-=w,v&&f<h){var S=hn(b,_);return Yi(e,t,zi,o.placeholder,r,b,S,c,u,h-f)}var C=p?r:this,k=g?C[e]:e;return f=b.length,c?b=Po(b,c):m&&f>1&&b.reverse(),d&&u<f&&(b.length=u),this&&this!==pt&&this instanceof o&&(k=y||Fi(k)),k.apply(C,b)}}function Vi(e,t){return function(n,r){return function(e,t,n,r){return _r(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function Hi(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=ui(n),r=ui(r)):(n=ci(n),r=ci(r)),i=e(n,r)}return i}}function Wi(e){return ro((function(t){return t=Rt(t,Qt(co())),Zr((function(n){var r=this;return e(t,(function(e){return Ot(e,r,n)}))}))}))}function Gi(e,t){var n=(t=t===o?" ":ui(t)).length;if(n<2)return n?Kr(t,e):t;var r=Kr(t,dt(e/pn(t)));return ln(t)?wi(gn(r),0,e).join(""):r.slice(0,e)}function qi(e){return function(t,r,i){return i&&"number"!=typeof i&&_o(t,r,i)&&(r=i=o),t=gs(t),r===o?(r=t,t=0):r=gs(r),function(e,t,r,i){for(var o=-1,a=bn(dt((t-e)/(r||1)),0),s=n(a);a--;)s[i?a:++o]=e,e+=r;return s}(t,r,i=i===o?t<r?1:-1:gs(i),e)}}function Xi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ys(t),n=ys(n)),e(t,n)}}function Yi(e,t,n,r,i,a,s,l,c,f){var d=8&t;t|=d?u:h,4&(t&=~(d?h:u))||(t&=-4);var p=[e,t,i,d?a:o,d?s:o,d?o:a,d?o:s,l,c,f],g=n.apply(o,p);return So(e)&&Lo(g,p),g.placeholder=r,Do(g,e,t)}function $i(e){var t=ke[e];return function(e,n){if(e=ys(e),(n=null==n?0:xn(vs(n),292))&&bt(e)){var r=(xs(e)+"e").split("e");return+((r=(xs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Ki=Tn&&1/fn(new Tn([,-0]))[1]==p?function(e){return new Tn(e)}:ul;function Zi(e){return function(t){var n=vo(t);return n==O?cn(t):n==j?dn(t):function(e,t){return Rt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Qi(e,t,r,i,s,p,g,v){var m=2&t;if(!m&&"function"!=typeof e)throw new Ae(a);var y=i?i.length:0;if(y||(t&=-97,i=s=o),g=g===o?g:bn(vs(g),0),v=v===o?v:vs(v),y-=s?s.length:0,t&h){var b=i,x=s;i=s=o}var _=m?o:ao(e),w=[e,t,r,i,s,b,x,p,g,v];if(_&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,a=r==f&&8==n||r==f&&n==d&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!a)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var s=t[3];if(s){var c=e[3];e[3]=c?Ti(c,s,t[4]):s,e[4]=c?hn(e[3],l):t[4]}(s=t[5])&&(c=e[5],e[5]=c?Ai(c,s,t[6]):s,e[6]=c?hn(e[5],l):t[6]);(s=t[7])&&(e[7]=s);r&f&&(e[8]=null==e[8]?t[8]:xn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(w,_),e=w[0],t=w[1],r=w[2],i=w[3],s=w[4],!(v=w[9]=w[9]===o?m?0:e.length:bn(w[9]-y,0))&&24&t&&(t&=-25),t&&1!=t)S=8==t||t==c?function(e,t,r){var i=Fi(e);return function a(){for(var s=arguments.length,l=n(s),c=s,u=lo(a);c--;)l[c]=arguments[c];var h=s<3&&l[0]!==u&&l[s-1]!==u?[]:hn(l,u);return(s-=h.length)<r?Yi(e,t,zi,a.placeholder,o,l,h,o,o,r-s):Ot(this&&this!==pt&&this instanceof a?i:e,this,l)}}(e,t,v):t!=u&&33!=t||s.length?zi.apply(o,w):function(e,t,r,i){var o=1&t,a=Fi(e);return function t(){for(var s=-1,l=arguments.length,c=-1,u=i.length,h=n(u+l),f=this&&this!==pt&&this instanceof t?a:e;++c<u;)h[c]=i[c];for(;l--;)h[c++]=arguments[++s];return Ot(f,o?r:this,h)}}(e,t,r,i);else var S=function(e,t,n){var r=1&t,i=Fi(e);return function t(){return(this&&this!==pt&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,r);return Do((_?ti:Lo)(S,w),e,t)}function Ji(e,t,n,r){return e===o||Va(e,Le[n])&&!De.call(r,n)?t:e}function eo(e,t,n,r,i,a){return ns(e)&&ns(t)&&(a.set(t,e),Hr(e,t,o,eo,a),a.delete(t)),e}function to(e){return as(e)?o:e}function no(e,t,n,r,i,a){var s=1&n,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(e),h=a.get(t);if(u&&h)return u==t&&h==e;var f=-1,d=!0,p=2&n?new $n:o;for(a.set(e,t),a.set(t,e);++f<l;){var g=e[f],v=t[f];if(r)var m=s?r(v,g,f,t,e,a):r(g,v,f,e,t,a);if(m!==o){if(m)continue;d=!1;break}if(p){if(!Ft(t,(function(e,t){if(!en(p,t)&&(g===e||i(g,e,n,r,a)))return p.push(t)}))){d=!1;break}}else if(g!==v&&!i(g,v,n,r,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function ro(e){return Ro(To(e,o,Xo),e+"")}function io(e){return kr(e,Ms,po)}function oo(e){return kr(e,Rs,go)}var ao=jn?function(e){return jn.get(e)}:ul;function so(e){for(var t=e.name+"",n=Ln[t],r=De.call(Ln,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function lo(e){return(De.call(zn,"placeholder")?zn:e).placeholder}function co(){var e=zn.iteratee||al;return e=e===al?Ir:e,arguments.length?e(arguments[0],arguments[1]):e}function uo(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function ho(e){for(var t=Ms(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Oo(i)]}return t}function fo(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Dr(n)?n:o}var po=vt?function(e){return null==e?[]:(e=Oe(e),jt(vt(e),(function(t){return Ye.call(e,t)})))}:ml,go=vt?function(e){for(var t=[];e;)Dt(t,po(e)),e=qe(e);return t}:ml,vo=Or;function mo(e,t,n){for(var r=-1,i=(t=xi(t,e)).length,o=!1;++r<i;){var a=Bo(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&ts(i)&&xo(a,i)&&(qa(e)||Ga(e))}function yo(e){return"function"!=typeof e.constructor||ko(e)?{}:Vn(qe(e))}function bo(e){return qa(e)||Ga(e)||!!(Ke&&e&&e[Ke])}function xo(e,t){var n=typeof e;return!!(t=null==t?g:t)&&("number"==n||"symbol"!=n&&_e.test(e))&&e>-1&&e%1==0&&e<t}function _o(e,t,n){if(!ns(n))return!1;var r=typeof t;return!!("number"==r?Ya(n)&&xo(t,n.length):"string"==r&&t in n)&&Va(n[t],e)}function wo(e,t){if(qa(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!us(e))||(re.test(e)||!ne.test(e)||null!=t&&e in Oe(t))}function So(e){var t=so(e),n=zn[t];if("function"!=typeof n||!(t in Gn.prototype))return!1;if(e===n)return!0;var r=ao(n);return!!r&&e===r[0]}(kn&&vo(new kn(new ArrayBuffer(1)))!=I||On&&vo(new On)!=O||En&&vo(En.resolve())!=A||Tn&&vo(new Tn)!=j||An&&vo(new An)!=R)&&(vo=function(e){var t=Or(e),n=t==T?e.constructor:o,r=n?Uo(n):"";if(r)switch(r){case Mn:return I;case Rn:return O;case Dn:return A;case In:return j;case Nn:return R}return t});var Co=Me?Ja:yl;function ko(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Le)}function Oo(e){return e===e&&!ns(e)}function Eo(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==o||e in Oe(n)))}}function To(e,t,r){return t=bn(t===o?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=bn(i.length-t,0),s=n(a);++o<a;)s[o]=i[t+o];o=-1;for(var l=n(t+1);++o<t;)l[o]=i[o];return l[t]=r(s),Ot(e,this,l)}}function Ao(e,t){return t.length<2?e:Cr(e,ii(t,0,-1))}function Po(e,t){for(var n=e.length,r=xn(t.length,n),i=Pi(e);r--;){var a=t[r];e[r]=xo(a,n)?i[a]:o}return e}function jo(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var Lo=Io(ti),Mo=ft||function(e,t){return pt.setTimeout(e,t)},Ro=Io(ni);function Do(e,t,n){var r=t+"";return Ro(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ce,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Tt(y,(function(n){var r="_."+n[0];t&n[1]&&!Lt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ue);return t?t[1].split(he):[]}(r),n)))}function Io(e){var t=0,n=0;return function(){var r=_n(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function No(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var a=$r(n,i),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Fo=function(e){var t=Ia(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ie,(function(e,n,r,i){t.push(r?i.replace(pe,"$1"):n||e)})),t}));function Bo(e){if("string"==typeof e||us(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Uo(e){if(null!=e){try{return Re.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function zo(e){if(e instanceof Gn)return e.clone();var t=new Wn(e.__wrapped__,e.__chain__);return t.__actions__=Pi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Vo=Zr((function(e,t){return $a(e)?fr(e,yr(t,1,$a,!0)):[]})),Ho=Zr((function(e,t){var n=Qo(t);return $a(n)&&(n=o),$a(e)?fr(e,yr(t,1,$a,!0),co(n,2)):[]})),Wo=Zr((function(e,t){var n=Qo(t);return $a(n)&&(n=o),$a(e)?fr(e,yr(t,1,$a,!0),o,n):[]}));function Go(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:vs(n);return i<0&&(i=bn(r+i,0)),zt(e,co(t,3),i)}function qo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=vs(n),i=n<0?bn(r+i,0):xn(i,r-1)),zt(e,co(t,3),i,!0)}function Xo(e){return(null==e?0:e.length)?yr(e,1):[]}function Yo(e){return e&&e.length?e[0]:o}var $o=Zr((function(e){var t=Rt(e,yi);return t.length&&t[0]===e[0]?Pr(t):[]})),Ko=Zr((function(e){var t=Qo(e),n=Rt(e,yi);return t===Qo(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Pr(n,co(t,2)):[]})),Zo=Zr((function(e){var t=Qo(e),n=Rt(e,yi);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Pr(n,o,t):[]}));function Qo(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Jo=Zr(ea);function ea(e,t){return e&&e.length&&t&&t.length?Xr(e,t):e}var ta=ro((function(e,t){var n=null==e?0:e.length,r=sr(e,t);return Yr(e,Rt(t,(function(e){return xo(e,n)?+e:e})).sort(Ei)),r}));function na(e){return null==e?e:Cn.call(e)}var ra=Zr((function(e){return hi(yr(e,1,$a,!0))})),ia=Zr((function(e){var t=Qo(e);return $a(t)&&(t=o),hi(yr(e,1,$a,!0),co(t,2))})),oa=Zr((function(e){var t=Qo(e);return t="function"==typeof t?t:o,hi(yr(e,1,$a,!0),o,t)}));function aa(e){if(!e||!e.length)return[];var t=0;return e=jt(e,(function(e){if($a(e))return t=bn(e.length,t),!0})),Kt(t,(function(t){return Rt(e,qt(t))}))}function sa(e,t){if(!e||!e.length)return[];var n=aa(e);return null==t?n:Rt(n,(function(e){return Ot(t,o,e)}))}var la=Zr((function(e,t){return $a(e)?fr(e,t):[]})),ca=Zr((function(e){return vi(jt(e,$a))})),ua=Zr((function(e){var t=Qo(e);return $a(t)&&(t=o),vi(jt(e,$a),co(t,2))})),ha=Zr((function(e){var t=Qo(e);return t="function"==typeof t?t:o,vi(jt(e,$a),o,t)})),fa=Zr(aa);var da=Zr((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,sa(e,n)}));function pa(e){var t=zn(e);return t.__chain__=!0,t}function ga(e,t){return t(e)}var va=ro((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return sr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Gn&&xo(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ga,args:[i],thisArg:o}),new Wn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)}));var ma=Li((function(e,t,n){De.call(e,n)?++e[n]:ar(e,n,1)}));var ya=Bi(Go),ba=Bi(qo);function xa(e,t){return(qa(e)?Tt:dr)(e,co(t,3))}function _a(e,t){return(qa(e)?At:pr)(e,co(t,3))}var wa=Li((function(e,t,n){De.call(e,n)?e[n].push(t):ar(e,n,[t])}));var Sa=Zr((function(e,t,r){var i=-1,o="function"==typeof t,a=Ya(e)?n(e.length):[];return dr(e,(function(e){a[++i]=o?Ot(t,e,r):jr(e,t,r)})),a})),Ca=Li((function(e,t,n){ar(e,n,t)}));function ka(e,t){return(qa(e)?Rt:Ur)(e,co(t,3))}var Oa=Li((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Ea=Zr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&_o(e,t[0],t[1])?t=[]:n>2&&_o(t[0],t[1],t[2])&&(t=[t[0]]),Gr(e,yr(t,1),[])})),Ta=ct||function(){return pt.Date.now()};function Aa(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Qi(e,f,o,o,o,o,t)}function Pa(e,t){var n;if("function"!=typeof t)throw new Ae(a);return e=vs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var ja=Zr((function(e,t,n){var r=1;if(n.length){var i=hn(n,lo(ja));r|=u}return Qi(e,r,t,n,i)})),La=Zr((function(e,t,n){var r=3;if(n.length){var i=hn(n,lo(La));r|=u}return Qi(t,r,e,n,i)}));function Ma(e,t,n){var r,i,s,l,c,u,h=0,f=!1,d=!1,p=!0;if("function"!=typeof e)throw new Ae(a);function g(t){var n=r,a=i;return r=i=o,h=t,l=e.apply(a,n)}function v(e){return h=e,c=Mo(y,t),f?g(e):l}function m(e){var n=e-u;return u===o||n>=t||n<0||d&&e-h>=s}function y(){var e=Ta();if(m(e))return b(e);c=Mo(y,function(e){var n=t-(e-u);return d?xn(n,s-(e-h)):n}(e))}function b(e){return c=o,p&&r?g(e):(r=i=o,l)}function x(){var e=Ta(),n=m(e);if(r=arguments,i=this,u=e,n){if(c===o)return v(u);if(d)return Si(c),c=Mo(y,t),g(u)}return c===o&&(c=Mo(y,t)),l}return t=ys(t)||0,ns(n)&&(f=!!n.leading,s=(d="maxWait"in n)?bn(ys(n.maxWait)||0,t):s,p="trailing"in n?!!n.trailing:p),x.cancel=function(){c!==o&&Si(c),h=0,r=u=i=c=o},x.flush=function(){return c===o?l:b(Ta())},x}
vendor: 1,597 bytes, line 2
2var Ra=Zr((function(e,t){return hr(e,1,t)})),Da=Zr((function(e,t,n){return hr(e,ys(t)||0,n)}));function Ia(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ae(a);var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Ia.Cache||Yn),n}function Na(e){if("function"!=typeof e)throw new Ae(a);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ia.Cache=Yn;var Fa=_i((function(e,t){var n=(t=1==t.length&&qa(t[0])?Rt(t[0],Qt(co())):Rt(yr(t,1),Qt(co()))).length;return Zr((function(r){for(var i=-1,o=xn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return Ot(e,this,r)}))})),Ba=Zr((function(e,t){var n=hn(t,lo(Ba));return Qi(e,u,o,t,n)})),Ua=Zr((function(e,t){var n=hn(t,lo(Ua));return Qi(e,h,o,t,n)})),za=ro((function(e,t){return Qi(e,d,o,o,o,t)}));function Va(e,t){return e===t||e!==e&&t!==t}var Ha=Xi(Er),Wa=Xi((function(e,t){return e>=t})),Ga=Lr(function(){return arguments}())?Lr:function(e){return rs(e)&&De.call(e,"callee")&&!Ye.call(e,"callee")},qa=n.isArray,Xa=xt?Qt(xt):function(e){return rs(e)&&Or(e)==D};function Ya(e){return null!=e&&ts(e.length)&&!Ja(e)}function $a(e){return rs(e)&&Ya(e)}var Ka=yt||yl,Za=_t?Qt(_t):function(e){return rs(e)&&Or(e)==w};function Qa(e){if(!rs(e))return!1;var t=Or(e);return t==S||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!
vendor: 10,813 bytes, line 2
2as(e)}function Ja(e){if(!ns(e))return!1;var t=Or(e);return t==C||t==k||"[object AsyncFunction]"==t||"[object Proxy]"==t}function es(e){return"number"==typeof e&&e==vs(e)}function ts(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=g}function ns(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function rs(e){return null!=e&&"object"==typeof e}var is=wt?Qt(wt):function(e){return rs(e)&&vo(e)==O};function os(e){return"number"==typeof e||rs(e)&&Or(e)==E}function as(e){if(!rs(e)||Or(e)!=T)return!1;var t=qe(e);if(null===t)return!0;var n=De.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Re.call(n)==Be}var ss=St?Qt(St):function(e){return rs(e)&&Or(e)==P};var ls=Ct?Qt(Ct):function(e){return rs(e)&&vo(e)==j};function cs(e){return"string"==typeof e||!qa(e)&&rs(e)&&Or(e)==L}function us(e){return"symbol"==typeof e||rs(e)&&Or(e)==M}var hs=kt?Qt(kt):function(e){return rs(e)&&ts(e.length)&&!!st[Or(e)]};var fs=Xi(Br),ds=Xi((function(e,t){return e<=t}));function ps(e){if(!e)return[];if(Ya(e))return cs(e)?gn(e):Pi(e);if(Ze&&e[Ze])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ze]());var t=vo(e);return(t==O?cn:t==j?fn:Vs)(e)}function gs(e){return e?(e=ys(e))===p||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function vs(e){var t=gs(e),n=t%1;return t===t?n?t-n:t:0}function ms(e){return e?lr(vs(e),0,m):0}function ys(e){if("number"==typeof e)return e;if(us(e))return v;if(ns(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ns(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Zt(e);var n=ye.test(e);return n||xe.test(e)?ht(e.slice(2),n?2:8):me.test(e)?v:+e}function bs(e){return ji(e,Rs(e))}function xs(e){return null==e?"":ui(e)}var _s=Mi((function(e,t){if(ko(t)||Ya(t))ji(t,Ms(t),e);else for(var n in t)De.call(t,n)&&nr(e,n,t[n])})),ws=Mi((function(e,t){ji(t,Rs(t),e)})),Ss=Mi((function(e,t,n,r){ji(t,Rs(t),e,r)})),Cs=Mi((function(e,t,n,r){ji(t,Ms(t),e,r)})),ks=ro(sr);var Os=Zr((function(e,t){e=Oe(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&_o(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],s=Rs(a),l=-1,c=s.length;++l<c;){var u=s[l],h=e[u];(h===o||Va(h,Le[u])&&!De.call(e,u))&&(e[u]=a[u])}return e})),Es=Zr((function(e){return e.push(o,eo),Ot(Is,o,e)}));function Ts(e,t,n){var r=null==e?o:Cr(e,t);return r===o?n:r}function As(e,t){return null!=e&&mo(e,t,Ar)}var Ps=Vi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),e[t]=n}),nl(ol)),js=Vi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),De.call(e,t)?e[t].push(n):e[t]=[n]}),co),Ls=Zr(jr);function Ms(e){return Ya(e)?Zn(e):Nr(e)}function Rs(e){return Ya(e)?Zn(e,!0):Fr(e)}var Ds=Mi((function(e,t,n){Hr(e,t,n)})),Is=Mi((function(e,t,n,r){Hr(e,t,n,r)})),Ns=ro((function(e,t){var n={};if(null==e)return n;var r=!1;t=Rt(t,(function(t){return t=xi(t,e),r||(r=t.length>1),t})),ji(e,oo(e),n),r&&(n=cr(n,7,to));for(var i=t.length;i--;)fi(n,t[i]);return n}));var Fs=ro((function(e,t){return null==e?{}:function(e,t){return qr(e,t,(function(t,n){return As(e,n)}))}(e,t)}));function Bs(e,t){if(null==e)return{};var n=Rt(oo(e),(function(e){return[e]}));return t=co(t),qr(e,n,(function(e,n){return t(e,n[0])}))}var Us=Zi(Ms),zs=Zi(Rs);function Vs(e){return null==e?[]:Jt(e,Ms(e))}var Hs=Ni((function(e,t,n){return t=t.toLowerCase(),e+(n?Ws(t):t)}));function Ws(e){return Qs(xs(e).toLowerCase())}function Gs(e){return(e=xs(e))&&e.replace(we,on).replace(et,"")}var qs=Ni((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Xs=Ni((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ys=Ii("toLowerCase");var $s=Ni((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Ks=Ni((function(e,t,n){return e+(n?" ":"")+Qs(t)}));var Zs=Ni((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Qs=Ii("toUpperCase");function Js(e,t,n){return e=xs(e),(t=n?o:t)===o?function(e){return it.test(e)}(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.match(fe)||[]}(e):e.match(t)||[]}var el=Zr((function(e,t){try{return Ot(e,o,t)}catch(n){return Qa(n)?n:new i(n)}})),tl=ro((function(e,t){return Tt(t,(function(t){t=Bo(t),ar(e,t,ja(e[t],e))})),e}));function nl(e){return function(){return e}}var rl=Ui(),il=Ui(!0);function ol(e){return e}function al(e){return Ir("function"==typeof e?e:cr(e,1))}var sl=Zr((function(e,t){return function(n){return jr(n,e,t)}})),ll=Zr((function(e,t){return function(n){return jr(e,n,t)}}));function cl(e,t,n){var r=Ms(t),i=Sr(t,r);null!=n||ns(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Sr(t,Ms(t)));var o=!(ns(n)&&"chain"in n)||!!n.chain,a=Ja(e);return Tt(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=Pi(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Dt([this.value()],arguments))})})),e}function ul(){}var hl=Wi(Rt),fl=Wi(Pt),dl=Wi(Ft);function pl(e){return wo(e)?qt(Bo(e)):function(e){return function(t){return Cr(t,e)}}(e)}var gl=qi(),vl=qi(!0);function ml(){return[]}function yl(){return!1}var bl=Hi((function(e,t){return e+t}),0),xl=$i("ceil"),_l=Hi((function(e,t){return e/t}),1),wl=$i("floor");var Sl=Hi((function(e,t){return e*t}),1),Cl=$i("round"),kl=Hi((function(e,t){return e-t}),0);return zn.after=function(e,t){if("function"!=typeof t)throw new Ae(a);return e=vs(e),function(){if(--e<1)return t.apply(this,arguments)}},zn.ary=Aa,zn.assign=_s,zn.assignIn=ws,zn.assignInWith=Ss,zn.assignWith=Cs,zn.at=ks,zn.before=Pa,zn.bind=ja,zn.bindAll=tl,zn.bindKey=La,zn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return qa(e)?e:[e]},zn.chain=pa,zn.chunk=function(e,t,r){t=(r?_o(e,t,r):t===o)?1:bn(vs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,l=n(dt(i/t));a<i;)l[s++]=ii(e,a,a+=t);return l},zn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},zn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),r=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Dt(qa(r)?Pi(r):[r],yr(t,1))},zn.cond=function(e){var t=null==e?0:e.length,n=co();return e=t?Rt(e,(function(e){if("function"!=typeof e[1])throw new Ae(a);return[n(e[0]),e[1]]})):[],Zr((function(n){for(var r=-1;++r<t;){var i=e[r];if(Ot(i[0],this,n))return Ot(i[1],this,n)}}))},zn.conforms=function(e){return function(e){var t=Ms(e);return function(n){return ur(n,e,t)}}(cr(e,1))},zn.constant=nl,zn.countBy=ma,zn.create=function(e,t){var n=Vn(e);return null==t?n:or(n,t)},zn.curry=function e(t,n,r){var i=Qi(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},zn.curryRight=function e(t,n,r){var i=Qi(t,c,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},zn.debounce=Ma,zn.defaults=Os,zn.defaultsDeep=Es,zn.defer=Ra,zn.delay=Da,zn.difference=Vo,zn.differenceBy=Ho,zn.differenceWith=Wo,zn.drop=function(e,t,n){var r=null==e?0:e.length;return r?ii(e,(t=n||t===o?1:vs(t))<0?0:t,r):[]},zn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ii(e,0,(t=r-(t=n||t===o?1:vs(t)))<0?0:t):[]},zn.dropRightWhile=function(e,t){return e&&e.length?pi(e,co(t,3),!0,!0):[]},zn.dropWhile=function(e,t){return e&&e.length?pi(e,co(t,3),!0):[]},zn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&_o(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=vs(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:vs(r))<0&&(r+=i),r=n>r?0:ms(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},zn.filter=function(e,t){return(qa(e)?jt:mr)(e,co(t,3))},zn.flatMap=function(e,t){return yr(ka(e,t),1)},zn.flatMapDeep=function(e,t){return yr(ka(e,t),p)},zn.flatMapDepth=function(e,t,n){return n=n===o?1:vs(n),yr(ka(e,t),n)},zn.flatten=Xo,zn.flattenDeep=function(e){return(null==e?0:e.length)?yr(e,p):[]},zn.flattenDepth=function(e,t){return(null==e?0:e.length)?yr(e,t=t===o?1:vs(t)):[]},zn.flip=function(e){return Qi(e,512)},zn.flow=rl,zn.flowRight=il,zn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},zn.functions=function(e){return null==e?[]:Sr(e,Ms(e))},zn.functionsIn=function(e){return null==e?[]:Sr(e,Rs(e))},zn.groupBy=wa,zn.initial=function(e){return(null==e?0:e.length)?ii(e,0,-1):[]},zn.intersection=$o,zn.intersectionBy=Ko,zn.intersectionWith=Zo,zn.invert=Ps,zn.invertBy=js,zn.invokeMap=Sa,zn.iteratee=al,zn.keyBy=Ca,zn.keys=Ms,zn.keysIn=Rs,zn.map=ka,zn.mapKeys=function(e,t){var n={};return t=co(t,3),_r(e,(function(e,r,i){ar(n,t(e,r,i),e)})),n},zn.mapValues=function(e,t){var n={};return t=co(t,3),_r(e,(function(e,r,i){ar(n,r,t(e,r,i))})),n},zn.matches=function(e){return zr(cr(e,1))},zn.matchesProperty=function(e,t){return Vr(e,cr(t,1))},zn.memoize=Ia,zn.merge=Ds,zn.mergeWith=Is,zn.method=sl,zn.methodOf=ll,zn.mixin=cl,zn.negate=Na,zn.nthArg=function(e){return e=vs(e),Zr((function(t){return Wr(t,e)}))},zn.omit=Ns,zn.omitBy=function(e,t){return Bs(e,Na(co(t)))},zn.once=function(e){return Pa(2,e)},zn.orderBy=function(e,t,n,r){return null==e?[]:(qa(t)||(t=null==t?[]:[t]),qa(n=r?o:n)||(n=null==n?[]:[n]),Gr(e,t,n))},zn.over=hl,zn.overArgs=Fa,zn.overEvery=fl,zn.overSome=dl,zn.partial=Ba,zn.partialRight=Ua,zn.partition=Oa,zn.pick=Fs,zn.pickBy=Bs,zn.property=pl,zn.propertyOf=function(e){return function(t){return null==e?o:Cr(e,t)}},zn.pull=Jo,zn.pullAll=ea,zn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Xr(e,t,co(n,2)):e},zn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Xr(e,t,o,n):e},zn.pullAt=ta,zn.range=gl,zn.rangeRight=vl,zn.rearg=za,zn.reject=function(e,t){return(qa(e)?jt:mr)(e,Na(co(t,3)))},zn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=co(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return Yr(e,i),n},zn.rest=function(e,t){if("function"!=typeof e)throw new Ae(a);return Zr(e,t=t===o?t:vs(t))},zn.reverse=na,zn.sampleSize=function(e,t,n){return t=(n?_o(e,t,n):t===o)?1:vs(t),(qa(e)?Jn:Jr)(e,t)},zn.set=function(e,t,n){return null==e?e:ei(e,t,n)},zn.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:ei(e,t,n,r)},zn.shuffle=function(e){return(qa(e)?er:ri)(e)},zn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&_o(e,t,n)?(t=0,n=r):(t=null==t?0:vs(t),n=n===o?r:vs(n)),ii(e,t,n)):[]},zn.sortBy=Ea,zn.sortedUniq=function(e){return e&&e.length?li(e):[]},zn.sortedUniqBy=function(e,t){return e&&e.length?li(e,co(t,2)):[]},zn.split=function(e,t,n){return n&&"number"!=typeof n&&_o(e,t,n)&&(t=n=o),(n=n===o?m:n>>>0)?(e=xs(e))&&("string"==typeof t||null!=t&&!ss(t))&&!(t=ui(t))&&ln(e)?wi(gn(e),0,n):e.split(t,n):[]},zn.spread=function(e,t){if("function"!=typeof e)throw new Ae(a);return t=null==t?0:bn(vs(t),0),Zr((function(n){var r=n[t],i=wi(n,0,t);return r&&Dt(i,r),Ot(e,this,i)}))},zn.tail=function(e){var t=null==e?0:e.length;return t?ii(e,1,t):[]}
vendor: 5,008 bytes, line 2
2,zn.take=function(e,t,n){return e&&e.length?ii(e,0,(t=n||t===o?1:vs(t))<0?0:t):[]},zn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ii(e,(t=r-(t=n||t===o?1:vs(t)))<0?0:t,r):[]},zn.takeRightWhile=function(e,t){return e&&e.length?pi(e,co(t,3),!1,!0):[]},zn.takeWhile=function(e,t){return e&&e.length?pi(e,co(t,3)):[]},zn.tap=function(e,t){return t(e),e},zn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Ae(a);return ns(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ma(e,t,{leading:r,maxWait:t,trailing:i})},zn.thru=ga,zn.toArray=ps,zn.toPairs=Us,zn.toPairsIn=zs,zn.toPath=function(e){return qa(e)?Rt(e,Bo):us(e)?[e]:Pi(Fo(xs(e)))},zn.toPlainObject=bs,zn.transform=function(e,t,n){var r=qa(e),i=r||Ka(e)||hs(e);if(t=co(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:ns(e)&&Ja(o)?Vn(qe(e)):{}}return(i?Tt:_r)(e,(function(e,r,i){return t(n,e,r,i)})),n},zn.unary=function(e){return Aa(e,1)},zn.union=ra,zn.unionBy=ia,zn.unionWith=oa,zn.uniq=function(e){return e&&e.length?hi(e):[]},zn.uniqBy=function(e,t){return e&&e.length?hi(e,co(t,2)):[]},zn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?hi(e,o,t):[]},zn.unset=function(e,t){return null==e||fi(e,t)},zn.unzip=aa,zn.unzipWith=sa,zn.update=function(e,t,n){return null==e?e:di(e,t,bi(n))},zn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:di(e,t,bi(n),r)},zn.values=Vs,zn.valuesIn=function(e){return null==e?[]:Jt(e,Rs(e))},zn.without=la,zn.words=Js,zn.wrap=function(e,t){return Ba(bi(t),e)},zn.xor=ca,zn.xorBy=ua,zn.xorWith=ha,zn.zip=fa,zn.zipObject=function(e,t){return mi(e||[],t||[],nr)},zn.zipObjectDeep=function(e,t){return mi(e||[],t||[],ei)},zn.zipWith=da,zn.entries=Us,zn.entriesIn=zs,zn.extend=ws,zn.extendWith=Ss,cl(zn,zn),zn.add=bl,zn.attempt=el,zn.camelCase=Hs,zn.capitalize=Ws,zn.ceil=xl,zn.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=ys(n))===n?n:0),t!==o&&(t=(t=ys(t))===t?t:0),lr(ys(e),t,n)},zn.clone=function(e){return cr(e,4)},zn.cloneDeep=function(e){return cr(e,5)},zn.cloneDeepWith=function(e,t){return cr(e,5,t="function"==typeof t?t:o)},zn.cloneWith=function(e,t){return cr(e,4,t="function"==typeof t?t:o)},zn.conformsTo=function(e,t){return null==t||ur(e,t,Ms(t))},zn.deburr=Gs,zn.defaultTo=function(e,t){return null==e||e!==e?t:e},zn.divide=_l,zn.endsWith=function(e,t,n){e=xs(e),t=ui(t);var r=e.length,i=n=n===o?r:lr(vs(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},zn.eq=Va,zn.escape=function(e){return(e=xs(e))&&Q.test(e)?e.replace(K,an):e},zn.escapeRegExp=function(e){return(e=xs(e))&&ae.test(e)?e.replace(oe,"\\$&"):e},zn.every=function(e,t,n){var r=qa(e)?Pt:gr;return n&&_o(e,t,n)&&(t=o),r(e,co(t,3))},zn.find=ya,zn.findIndex=Go,zn.findKey=function(e,t){return Ut(e,co(t,3),_r)},zn.findLast=ba,zn.findLastIndex=qo,zn.findLastKey=function(e,t){return Ut(e,co(t,3),wr)},zn.floor=wl,zn.forEach=xa,zn.forEachRight=_a,zn.forIn=function(e,t){return null==e?e:br(e,co(t,3),Rs)},zn.forInRight=function(e,t){return null==e?e:xr(e,co(t,3),Rs)},zn.forOwn=function(e,t){return e&&_r(e,co(t,3))},zn.forOwnRight=function(e,t){return e&&wr(e,co(t,3))},zn.get=Ts,zn.gt=Ha,zn.gte=Wa,zn.has=function(e,t){return null!=e&&mo(e,t,Tr)},zn.hasIn=As,zn.head=Yo,zn.identity=ol,zn.includes=function(e,t,n,r){e=Ya(e)?e:Vs(e),n=n&&!r?vs(n):0;var i=e.length;return n<0&&(n=bn(i+n,0)),cs(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Vt(e,t,n)>-1},zn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:vs(n);return i<0&&(i=bn(r+i,0)),Vt(e,t,i)},zn.inRange=function(e,t,n){return t=gs(t),n===o?(n=t,t=0):n=gs(n),function(e,t,n){return e>=xn(t,n)&&e<bn(t,n)}(e=ys(e),t,n)},zn.invoke=Ls,zn.isArguments=Ga,zn.isArray=qa,zn.isArrayBuffer=Xa,zn.isArrayLike=Ya,zn.isArrayLikeObject=$a,zn.isBoolean=function(e){return!0===e||!1===e||rs(e)&&Or(e)==_},zn.isBuffer=Ka,zn.isDate=Za,zn.isElement=function(e){return rs(e)&&1===e.nodeType&&!as(e)},zn.isEmpty=function(e){if(null==e)return!0;if(Ya(e)&&(qa(e)||"string"==typeof e||"function"==typeof e.splice||Ka(e)||hs(e)||Ga(e)))return!e.length;var t=vo(e);if(t==O||t==j)return!e.size;if(ko(e))return!Nr(e).length;for(var n in e)if(De.call(e,n))return!1;return!0},zn.isEqual=function(e,t){return Mr(e,t)},zn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?Mr(e,t,o,n):!!r},zn.isError=Qa,zn.isFinite=function(e){return"number"==typeof e&&bt(e)},zn.isFunction=Ja,zn.isInteger=es,zn.isLength=ts,zn.isMap=is,zn.isMatch=function(e,t){return e===t||Rr(e,t,ho(t))},zn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,Rr(e,t,ho(t),n)},zn.isNaN=function(e){return os(e)&&e!=+e},zn.isNative=function(e){if(Co(e))throw new i("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Dr(e)},zn.isNil=function(e){return null==e},zn.isNull=function(e){return null===e},zn.isNumber=os,zn.isObject=ns,zn.isObjectLike=rs,zn.isPlainObject=as,zn.isRegExp=ss,zn.isSafeInteger=function(e){return es(e)&&e>=-9007199254740991&&e<=g}
vendor: 4,465 bytes, line 2
2,zn.isSet=ls,zn.isString=cs,zn.isSymbol=us,zn.isTypedArray=hs,zn.isUndefined=function(e){return e===o},zn.isWeakMap=function(e){return rs(e)&&vo(e)==R},zn.isWeakSet=function(e){return rs(e)&&"[object WeakSet]"==Or(e)},zn.join=function(e,t){return null==e?"":Bt.call(e,t)},zn.kebabCase=qs,zn.last=Qo,zn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=vs(n))<0?bn(r+i,0):xn(i,r-1)),t===t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):zt(e,Wt,i,!0)},zn.lowerCase=Xs,zn.lowerFirst=Ys,zn.lt=fs,zn.lte=ds,zn.max=function(e){return e&&e.length?vr(e,ol,Er):o},zn.maxBy=function(e,t){return e&&e.length?vr(e,co(t,2),Er):o},zn.mean=function(e){return Gt(e,ol)},zn.meanBy=function(e,t){return Gt(e,co(t,2))},zn.min=function(e){return e&&e.length?vr(e,ol,Br):o},zn.minBy=function(e,t){return e&&e.length?vr(e,co(t,2),Br):o},zn.stubArray=ml,zn.stubFalse=yl,zn.stubObject=function(){return{}},zn.stubString=function(){return""},zn.stubTrue=function(){return!0},zn.multiply=Sl,zn.nth=function(e,t){return e&&e.length?Wr(e,vs(t)):o},zn.noConflict=function(){return pt._===this&&(pt._=Ue),this},zn.noop=ul,zn.now=Ta,zn.pad=function(e,t,n){e=xs(e);var r=(t=vs(t))?pn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Gi(gt(i),n)+e+Gi(dt(i),n)},zn.padEnd=function(e,t,n){e=xs(e);var r=(t=vs(t))?pn(e):0;return t&&r<t?e+Gi(t-r,n):e},zn.padStart=function(e,t,n){e=xs(e);var r=(t=vs(t))?pn(e):0;return t&&r<t?Gi(t-r,n)+e:e},zn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),wn(xs(e).replace(se,""),t||0)},zn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&_o(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=gs(e),t===o?(t=e,e=0):t=gs(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=Sn();return xn(e+i*(t-e+ut("1e-"+((i+"").length-1))),t)}return $r(e,t)},zn.reduce=function(e,t,n){var r=qa(e)?It:Yt,i=arguments.length<3;return r(e,co(t,4),n,i,dr)},zn.reduceRight=function(e,t,n){var r=qa(e)?Nt:Yt,i=arguments.length<3;return r(e,co(t,4),n,i,pr)},zn.repeat=function(e,t,n){return t=(n?_o(e,t,n):t===o)?1:vs(t),Kr(xs(e),t)},zn.replace=function(){var e=arguments,t=xs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},zn.result=function(e,t,n){var r=-1,i=(t=xi(t,e)).length;for(i||(i=1,e=o);++r<i;){var a=null==e?o:e[Bo(t[r])];a===o&&(r=i,a=n),e=Ja(a)?a.call(e):a}return e},zn.round=Cl,zn.runInContext=e,zn.sample=function(e){return(qa(e)?Qn:Qr)(e)},zn.size=function(e){if(null==e)return 0;if(Ya(e))return cs(e)?pn(e):e.length;var t=vo(e);return t==O||t==j?e.size:Nr(e).length},zn.snakeCase=$s,zn.some=function(e,t,n){var r=qa(e)?Ft:oi;return n&&_o(e,t,n)&&(t=o),r(e,co(t,3))},zn.sortedIndex=function(e,t){return ai(e,t)},zn.sortedIndexBy=function(e,t,n){return si(e,t,co(n,2))},zn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ai(e,t);if(r<n&&Va(e[r],t))return r}return-1},zn.sortedLastIndex=function(e,t){return ai(e,t,!0)},zn.sortedLastIndexBy=function(e,t,n){return si(e,t,co(n,2),!0)},zn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=ai(e,t,!0)-1;if(Va(e[n],t))return n}return-1},zn.startCase=Ks,zn.startsWith=function(e,t,n){return e=xs(e),n=null==n?0:lr(vs(n),0,e.length),t=ui(t),e.slice(n,n+t.length)==t},zn.subtract=kl,zn.sum=function(e){return e&&e.length?$t(e,ol):0},zn.sumBy=function(e,t){return e&&e.length?$t(e,co(t,2)):0},zn.template=function(e,t,n){var r=zn.templateSettings;n&&_o(e,t,n)&&(t=o),e=xs(e),t=Ss({},t,r,Ji);var a,s,l=Ss({},t.imports,r.imports,Ji),c=Ms(l),u=Jt(l,c),h=0,f=t.interpolate||Se,d="__p += '",p=Ee((t.escape||Se).source+"|"+f.source+"|"+(f===te?ge:Se).source+"|"+(t.evaluate||Se).source+"|$","g"),g="//# sourceURL="+(De.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++at+"]")+"\n";e.replace(p,(function(t,n,r,i,o,l){return r||(r=i),d+=e.slice(h,l).replace(Ce,sn),n&&(a=!0,d+="' +\n__e("+n+") +\n'"),o&&(s=!0,d+="';\n"+o+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),h=l+t.length,t})),d+="';\n";var v=De.call(t,"variable")&&t.variable;if(v){if(de.test(v))throw new i("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(s?d.replace(q,""):d).replace(X,"$1").replace(Y,"$1;"),d="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";
2\n")+d+"return __p\n}";var m=el((function(){return le(c,g+"return "+d).apply(o,u)}));if(m.source=d,Qa(m))throw m;return m},zn.times=function(e,t){if((e=vs(e))<1||e>g)return[];var n=m,r=xn(e,m);t=co(t),e-=m;for(var i=Kt(r,t);++n<e;)t(n);return i},zn.toFinite=gs,zn.toInteger=vs,zn.toLength=ms,zn.toLower=function(e){return xs(e).toLowerCase()},zn.toNumber=ys,zn.toSafeInteger=function(e){return e?lr(vs(e),-9007199254740991,g):0===e?e:0},zn.toString=xs,zn.toUpper=function(e){return xs(e).toUpperCase()},zn.trim=function(e,t,n){if((e=xs(e))&&(n||t===o))return Zt(e);if(!e||!(t=ui(t)))return e;var r=gn(e),i=gn(t);return wi(r,tn(r,i),nn(r,i)+1).join("")},zn.trimEnd=function(e,t,n){if((e=xs(e))&&(n||t===o))return e.slice(0,vn(e)+1);if(!e||!(t=ui(t)))return e;var r=gn(e);return wi(r,0,nn(r,gn(t))+1).join("")},zn.trimStart=function(e,t,n){if((e=xs(e))&&(n||t===o))return e.replace(se,"");if(!e||!(t=ui(t)))return e;var r=gn(e);return wi(r,tn(r,gn(t))).join("")},zn.truncate=function(e,t){var n=30,r="...";if(ns(t)){var i="separator"in t?t.separator:i;n="length"in t?vs(t.length):n,r="omission"in t?ui(t.omission):r}var a=(e=xs(e)).length;if(ln(e)){var s=gn(e);a=s.length}if(n>=a)return e;var l=n-pn(r);if(l<1)return r;var c=s?wi(s,0,l).join(""):e.slice(0,l);if(i===o)return c+r;if(s&&(l+=c.length-l),ss(i)){if(e.slice(l).search(i)){var u,h=c;for(i.global||(i=Ee(i.source,xs(ve.exec(i))+"g")),i.lastIndex=0;u=i.exec(h);)var f=u.index;c=c.slice(0,f===o?l:f)}}else if(e.indexOf(ui(i),l)!=l){var d=c.lastIndexOf(i);d>-1&&(c=c.slice(0,d))}return c+r},zn.unescape=function(e){return(e=xs(e))&&Z.test(e)?e.replace($,mn):e},zn.uniqueId=function(e){var t=++Ie;return xs(e)+t},zn.upperCase=Zs,zn.upperFirst=Qs,zn.each=xa,zn.eachRight=_a,zn.first=Yo,cl(zn,function(){var e={};return _r(zn,(function(t,n){De.call(zn.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),zn.VERSION="4.17.21",Tt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){zn[e].placeholder=zn})),Tt(["drop","take"],(function(e,t){Gn.prototype[e]=function(n){n=n===o?1:bn(vs(n),0);var r=this.__filtered__&&!t?new Gn(this):this.clone();return r.__filtered__?r.__takeCount__=xn(n,r.__takeCount__):r.__views__.push({size:xn(n,m),type:e+(r.__dir__<0?"Right":"")}),r},Gn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Tt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Gn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:co(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Tt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Gn.prototype[e]=function(){return this[n](1).value()[0]}})),Tt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Gn.prototype[e]=function(){return this.__filtered__?new Gn(this):this[n](1)}})),Gn.prototype.compact=function(){return this.filter(ol)},Gn.prototype.find=function(e){return this.filter(e).head()},Gn.prototype.findLast=function(e){return this.reverse().find(e)},Gn.prototype.invokeMap=Zr((function(e,t){return"function"==typeof e?new Gn(this):this.map((function(n){return jr(n,e,t)}))})),Gn.prototype.reject=function(e){return this.filter(Na(co(e)))},Gn.prototype.slice=function(e,t){e=vs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Gn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=vs(t))<0?n.dropRight(-t):n.take(t-e)),n)},Gn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Gn.prototype.toArray=function(){return this.take(m)},_r(Gn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=zn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(zn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof Gn,c=s[0],u=l||qa(t),h=function(e){var t=i.apply(zn,Dt([e],s));return r&&f?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var f=this.__chain__,d=!!this.__actions__.length,p=a&&!f,g=l&&!d;if(!a&&u){t=g?t:new Gn(this);var v=e.apply(t,s);return v.__actions__.push({func:ga,args:[h],thisArg:o}),new Wn(v,f)}return p&&g?e.apply(this,s):(v=this.thru(h),p?r?v.value()[0]:v.value():v)})})),Tt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Pe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);zn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(qa(i)?i:[],e)}return this[n]((function(n){return t.apply(qa(n)?n:[],e)}))}})),_r(Gn.prototype,(function(e,t){var n=zn[t];if(n){var r=n.name+"";De.call(Ln,r)||(Ln[r]=[]),Ln[r].push({name:t,func:n})}})),Ln[zi(o,2).name]=[{name:"wrapper",func:o}],Gn.prototype.clone=function(){var e=new Gn(this.__wrapped__);return e.__actions__=Pi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Pi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Pi(this.__views__),e},Gn.prototype.reverse=function(){if(this.__filtered__){var e=new Gn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Gn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=qa(e),r=t
2<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=xn(t,e+a);break;case"takeRight":e=bn(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,l=s-a,c=r?s:a-1,u=this.__iteratees__,h=u.length,f=0,d=xn(l,this.__takeCount__);if(!n||!r&&i==l&&d==l)return gi(e,this.__actions__);var p=[];e:for(;l--&&f<d;){for(var g=-1,v=e[c+=t];++g<h;){var m=u[g],y=m.iteratee,b=m.type,x=y(v);if(2==b)v=x;else if(!x){if(1==b)continue e;break e}}p[f++]=v}return p},zn.prototype.at=va,zn.prototype.chain=function(){return pa(this)},zn.prototype.commit=function(){return new Wn(this.value(),this.__chain__)},zn.prototype.next=function(){this.__values__===o&&(this.__values__=ps(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},zn.prototype.plant=function(e){for(var t,n=this;n instanceof Hn;){var r=zo(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},zn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Gn){var t=e;return this.__actions__.length&&(t=new Gn(this)),(t=t.reverse()).__actions__.push({func:ga,args:[na],thisArg:o}),new Wn(t,this.__chain__)}return this.thru(na)},zn.prototype.toJSON=zn.prototype.valueOf=zn.prototype.value=function(){return gi(this.__wrapped__,this.__actions__)},zn.prototype.first=zn.prototype.head,Ze&&(zn.prototype[Ze]=function(){return this}),zn}();pt._=yn,(i=function(){return yn}.call(t,n,t,r))===o||(r.exports=i)}).call(this)}).call(this,n(104),n(274)(e))},function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r),t.apply(this,r)}}),(function(){}))}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";var r=n(0),i=r.createContext({});t.a=i},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(0),i=r.createContext();function o(){return r.useContext(i)}t.a=i},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(109);var i=n(154);function o(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Object(r.a)(e);if(t){var a=Object(r.a)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return Object(i.a)(this,n)}}},function(e,t,n){"use strict";t.a=function(e,t){}},,,function(e,t,n){"use strict";var r=n(255);t.a=function(e,t){return t?Object(r.a)(e,t,{clone:!1}):e}},,function(e,t,n){e.exports=n(315)},function(e,t,n){"use strict";n.d(t,"a",(function(){return _})),n.d(t,"b",(function(){return w}));var r=n(0),i=n.n(r),o=n(180),a=n(371),s=n(375),l=n(252),c=n(374),u=n(373);function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?d(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var m=Object(r.createContext)(),y=function(e){var t=e.open,n=e.options,r=e.onCancel,h=e.onConfirm,d=e.onClose,p=n.title,g=n.description,v=n.content,m=n.confirmationText,y=n.cancellationText,b=n.dialogProps,x=n.confirmationButtonProps,_=n.cancellationButtonProps;return i.a.createElement(a.a,f({fullWidth:!0},b,{open:t,onClose:d}),p&&i.a.createElement(u.a,null,p),v?i.a.createElement(l.a,null,v):g&&i.a.createElement(l.a,null,i.a.createElement(c.a,null,g)),i.a.createElement(s.a,null,i.a.createElement(o.a,f({},_,{onClick:r}),y),i.a.createElement(o.a,f({color:"primary"},x,{onClick:h}),m)))},b={title:"Are you sure?",description:"",content:null,confirmationText:"Ok",cancellationText:"Cancel",dialogProps:{},confirmationButtonProps:{},cancellationButtonProps:{}},x=function(e,t){var n=p(p({},e.dialogProps||b.dialogProps),t.dialogProps||{}),r=p(p({},e.confirmationButtonProps||b.confirmationButtonProps),t.confirmationButtonProps||{}),i=p(p({},e.cancellationButtonProps||b.cancellationButtonProps),t.cancellationButtonProps||{});return p(p(p(p({},b),e),t),{},{dialogProps:n,confirmationButtonProps:r,cancellationButtonProps:i})},_=function(e){var t=e.children,n=e.defaultOptions,o=void 0===n?{}:n,a=g(Object(r.useState)(p(p({},b),o)),2),s=a[0],l=a[1],c=g(Object(r.useState)([]),2),u=c[0],h=c[1],f=g(u,2),d=f[0],v=f[1],_=Object(r.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise((function(t,n){l(x(o,e)),h([t,n])}))}),[]),w=Object(r.useCallback)((function(){h([])}),[]),S=Object(r.useCallback)((function(){v(),w()}),[v,w]),C=Object(r.useCallback)((function(){d(),w()}),[d,w]);return i.a.createElement(r.Fragment,null,i.a.createElement(m.Provider,{value:_},t),i.a.createElement(y,{open:2===u.length,options:s,onClose:w,onCancel:S,onConfirm:C}))},w=function(){return Object(r.useContext)(m)}},function(e,t,n){"use strict";n.r(t);var r=n(14);n.d(t,"capitalize",(function(){return r.a}));var i=n(78);n.d(t,"createChainedFunction",(function(){return i.a}));var o=n(32);n.d(t,"createSvgIcon",(function(){return o.a}));var a=n(95);n.d(t,"debounce",(function(){return a.a}));var s=n(67);n.d(t,"deprecatedPropType",(function(){return s.a}));var l=n(97);n.d(t,"isMuiElement",(function(){return l.a}));var c=n(28);n.d(t,"ownerDocument",(function(){return c.a}));var u=n(117);n.d(t,"ownerWindow",(function(){return u.a}));var h=n(170);n.d(t,"requirePropFactory",(function(){return h.a}));var f=n(50);n.d(t,"setRef",(function(){return f.a}));var d=n(165);n.d(t,"unsupportedProp",(function(){return d.a}));var p=n(76);n.d(t,"useControlled",(function(){return p.a}));var g=n(33);n.d(t,"useEventCallback",(function(){return g.a}));var v=n(16);n.d(t,"useForkRef",(function(){return v.a}));var m=n(136);n.d(t,"unstable_useId",(function(){return m.a}));var y=n(94);n.d(t,"useIsFocusVisible",(function(){return y.a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(0),i=n(25),o=!0,a=!1,s=null,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function c(e){e.metaKey||e.altKey||e.ctrlKey||(o=!0)}function u(){o=!1}function h(){"hidden"===this.visibilityState&&a&&(o=!0)}function f(e){var t=e.target;try{return t.matches(":focus-visible")}catch(n){}return o||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!l[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function d(){a=!0,window.clearTimeout(s),s=window.setTimeout((function(){a=!1}),100)}function p(){return{isFocusVisible:f,onBlurVisible:d,ref:r.useCallback((function(e){var t,n=i.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",c,!0),t.addEventListener("mousedown",u,!0),t.addEventListener("pointerdown",u,!0),t.addEventListener("touchstart",u,!0),t.addEventListener("visibilitychange",h,!0))}),[])}}},function(e,t,n){"use strict";function r(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=this,s=function(){e.apply(a,i)};clearTimeout(t),t=setTimeout(s,n)}return r.clear=function(){clearTimeout(t)},r}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0);function i(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},function(e,t,n){"use strict";var r=n(246),i=Object(r.a)();t.a=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(129);function i(e,t){if(e){if("string"===typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},function(e,t,n){var r,i,o=n(219),a=n(327),s={length:n(336),area:n(337),mass:n(338),volume:n(339),each:n(340),temperature:n(341),time:n(342),digital:n(343),partsPer:n(344),speed:n(345),pace:n(346),pressure:n(347),current:n(348),voltage:n(349),power:n(350),reactivePower:n(351),apparentPower:n(352),energy:n(353),reactiveEnergy:n(354),volumeFlowRate:n(355),illuminance:n(356),frequency:n(357),angle:n(358)};(i=function(e,t){this.val=t?e/t:e}).prototype.from=function(e){if(this.destination)throw new Error(".from must be called before .to");return this.origin=this.getUnit(e),this.origin||this.throwUnsupportedUnitError(e),this},i.prototype.to=function(e){if(!this.origin)throw new Error(".to must be called after .from");var t,n;if(this.destination=this.getUnit(e),this.destination||this.throwUnsupportedUnitError(e),this.origin.abbr===this.destination.abbr)return this.val;if(this.destination.measure!=this.origin.measure)throw new Error("Cannot convert incompatible measures of "+this.destination.measure+" and "+this.origin.measure);return t=this.val*this.origin.unit.to_anchor,this.origin.unit.anchor_shift&&(t-=this.origin.unit.anchor_shift),this.origin.system!=this.destination.system&&("function"===typeof(n=s[this.origin.measure]._anchors[this.origin.system].transform)?t=n(t):t*=s[this.origin.measure]._anchors[this.origin.system].ratio),this.destination.unit.anchor_shift&&(t+=this.destination.unit.anchor_shift),t/this.destination.unit.to_anchor},i.prototype.toBest=function(e){if(!this.origin)throw new Error(".toBest must be called after .from");var t;e=Object.assign({exclude:[],cutOffNumber:1},e);return a(this.possibilities(),function(n){var r=this.describe(n);if(-1===e.exclude.indexOf(n)&&r.system===this.origin.system){var i=this.to(n);(!t||i>=e.cutOffNumber&&i<t.val)&&(t={val:i,unit:n,singular:r.singular,plural:r.plural})}}.bind(this)),t},i.prototype.getUnit=function(e){var t;return a(s,(function(n,r){if(a(n,(function(n,i){return"_anchors"!=i&&(a(n,(function(n,o){if(o==e)return t={abbr:e,measure:r,system:i,unit:n},!1})),!t&&void 0)})),t)return!1})),t};var l=function(e){return{abbr:e.abbr,measure:e.measure,system:e.system,singular:e.unit.name.singular,plural:e.unit.name.plural}};i.prototype.describe=function(e){var t=i.prototype.getUnit(e),n=null;try{n=l(t)}catch(r){this.throwUnsupportedUnitError(e)}return n},i.prototype.list=function(e){var t=[];return a(s,(function(n,r){e&&e!==r||a(n,(function(e,n){if("_anchors"==n)return!1;a(e,(function(e,i){t=t.concat(l({abbr:i,measure:r,system:n,unit:e}))}))}))})),t},i.prototype.throwUnsupportedUnitError=function(e){var t=[];throw a(s,(function(e,n){a(e,(function(e,n){if("_anchors"==n)return!1;t=t.concat(o(e))}))})),new Error("Unsupported unit "+e+", use one of: "+t.join(", "))},i.prototype.possibilities=function(e){var t=[];return this.origin||e?(e=e||this.origin.measure,a(s[e],(function(e,n){if("_anchors"==n)return!1;t=t.concat(o(e))}))):a(o(s),(function(e){a(s[e],(function(e,n){if("_anchors"==n)return!1;t=t.concat(o(e))}))})),t},i.prototype.measures=function(){return o(s)},r=function(e){return new i(e)},e.exports=r},,,function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},,,,function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function i(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(r(e.value)&&""!==e.value||t&&r(e.defaultValue)&&""!==e.defaultValue)}function o(e){return e.startAdornment}n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}
2))},function(e,t,n){e.exports=n(298)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(129);var i=n(151),o=n(99);function a(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(i.a)(e)||Object(o.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},,,function(e,t,n){"use strict";e.exports=n(293)},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(28);function i(e){return Object(r.a)(e).defaultView||window}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(209);function i(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||Object(r.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},,,function(e,t,n){"use strict";var r=n(0),i=n.n(r);t.a=i.a.createContext(null)},,function(e,t,n){"use strict";var r=n(4),i=n(7),o=n(0),a=(n(12),n(6)),s=n(9),l=n(14),c=o.forwardRef((function(e,t){var n=e.children,s=e.classes,c=e.className,u=e.color,h=void 0===u?"inherit":u,f=e.component,d=void 0===f?"svg":f,p=e.fontSize,g=void 0===p?"medium":p,v=e.htmlColor,m=e.titleAccess,y=e.viewBox,b=void 0===y?"0 0 24 24":y,x=Object(i.a)(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return o.createElement(d,Object(r.a)({className:Object(a.a)(s.root,c,"inherit"!==h&&s["color".concat(Object(l.a)(h))],"default"!==g&&"medium"!==g&&s["fontSize".concat(Object(l.a)(g))]),focusable:"false",viewBox:b,color:v,"aria-hidden":!m||void 0,role:m?"img":void 0,ref:t},x),n,m?o.createElement("title",null,m):null)}));c.muiName="SvgIcon",t.a=Object(s.a)((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(c)},function(e,t,n){"use strict";function r(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,l,"next",e)}function l(e){r(a,i,o,s,l,"throw",e)}s(void 0)}))}}n.d(t,"a",(function(){return i}))},,,function(e,t){var n=Object.prototype.toString,r=RegExp("^"+String(n).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$");e.exports=r},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(36);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var o=n(0),a=n.n(o),s=n(64);n(12);function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function c(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var u=n(59),h=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).history=Object(s.a)(t.props),t}return i(t,e),t.prototype.render=function(){return a.a.createElement(r.c,{history:this.history,children:this.props.children})},t}(a.a.Component);a.a.Component;var f=function(e,t){return"function"===typeof e?e(t):e},d=function(e,t){return"string"===typeof e?Object(s.c)(e,null,null,t):e},p=function(e){return e},g=a.a.forwardRef;"undefined"===typeof g&&(g=p);var v=g((function(e,t){var n=e.innerRef,r=e.navigate,i=e.onClick,o=c(e,["innerRef","navigate","onClick"]),s=o.target,u=l({},o,{onClick:function(e){try{i&&i(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||s&&"_self"!==s||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return u.ref=p!==g&&t||n,a.a.createElement("a",u)}));var m=g((function(e,t){var n=e.component,i=void 0===n?v:n,o=e.replace,s=e.to,h=e.innerRef,m=c(e,["component","replace","to","innerRef"]);return a.a.createElement(r.e.Consumer,null,(function(e){e||Object(u.a)(!1);var n=e.history,r=d(f(s,e.location),e.location),c=r?n.createHref(r):"",v=l({},m,{href:c,navigate:function(){var t=f(s,e.location);(o?n.replace:n.push)(t)}});return p!==g?v.ref=t||h:v.innerRef=h,a.a.createElement(i,v)}))})),y=function(e){return e},b=a.a.forwardRef;"undefined"===typeof b&&(b=y);b((function(e,t){var n=e["aria-current"],i=void 0===n?"page":n,o=e.activeClassName,s=void 0===o?"active":o,h=e.activeStyle,p=e.className,g=e.exact,v=e.isActive,x=e.location,_=e.sensitive,w=e.strict,S=e.style,C=e.to,k=e.innerRef,O=c(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return a.a.createElement(r.e.Consumer,null,(function(e){e||Object(u.a)(!1);var n=x||e.location,o=d(f(C,n),n),c=o.pathname,E=c&&c.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),T=E?Object(r.f)(n.pathname,{path:E,exact:g,sensitive:_,strict:w}):null,A=!!(v?v(T,n):T),P=A?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(p,s):p,j=A?l({},S,{},h):S,L=l({"aria-current":A&&i||null,className:P,style:j,to:o},O);return y!==b?L.ref=t||k:L.innerRef=k,a.a.createElement(m,L)}))}))},function(e,t,n){(function(n){var r,i,o;i=[],void 0===(o="function"===typeof(r=function(){"use strict";function t(e,t){return"undefined"==typeof t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}function r(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){l(r.response,t,n
2)},r.onerror=function(){console.error("could not download file")},r.send()}function i(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function o(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(r){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,s=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(e,t,n){var s=a.URL||a.webkitURL,l=document.createElement("a");t=t||e.name||"download",l.download=t,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?o(l):i(l.href)?r(e,t,n):o(l,l.target="_blank")):(l.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(l.href)}),4e4),setTimeout((function(){o(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,a){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,a),n);else if(i(e))r(e,n,a);else{var s=document.createElement("a");s.href=e,s.target="_blank",setTimeout((function(){o(s)}))}}:function(e,t,n,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof e)return r(e,t,n);var o="application/octet-stream"===e.type,l=/constructor/i.test(a.HTMLElement)||a.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||o&&l||s)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var e=u.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location=e,i=null},u.readAsDataURL(e)}else{var h=a.URL||a.webkitURL,f=h.createObjectURL(e);i?i.location=f:location.href=f,i=null,setTimeout((function(){h.revokeObjectURL(f)}),4e4)}});a.saveAs=l.saveAs=l,e.exports=l})?r.apply(t,i):r)||(e.exports=o)}).call(this,n(104))},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});for(var r="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),i={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},o={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:r?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},a={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},s=1;s<20;s++)a["f"+s]=111+s;function l(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return c(e,t)})),i=function(e){return r.some((function(t){return u(t,e)}))};return null==n?i:i(n)}function c(e,t){var n=t&&t.byKey,r={},s=(e=e.replace("++","+add")).split("+"),l=s.length;for(var c in i)r[i[c]]=!1;var u=!0,d=!1,p=void 0;try{for(var g,v=s[Symbol.iterator]();!(u=(g=v.next()).done);u=!0){var m=g.value,y=m.endsWith("?")&&m.length>1;y&&(m=m.slice(0,-1));var b=f(m),x=i[b];if(m.length>1&&!x&&!o[m]&&!a[b])throw new TypeError('Unknown modifier: "'+m+'"');1!==l&&x||(n?r.key=b:r.which=h(m)),x&&(r[x]=!y||null)}}catch(_){d=!0,p=_}finally{try{!u&&v.return&&v.return()}finally{if(d)throw p}}return r}function u(e,t){for(var n in e){var r=e[n],i=void 0;if(null!=r&&((null!=(i="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&i!==r))return!1}return!0}function h(e){return e=f(e),a[e]||e.toUpperCase().charCodeAt(0)}function f(e){return e=e.toLowerCase(),e=o[e]||e}t.default=l,t.isHotkey=l,t.isCodeHotkey=function(e,t){return l(e,t)},t.isKeyHotkey=function(e,t){return l(e,{byKey:!0},t)},t.parseHotkey=c,t.compareHotkey=u,t.toKeyCode=h,t.toKeyName=f},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0);function i(e){var t=r.useState(e),n=t[0],i=t[1],o=e||n;return r.useEffect((function(){null==n&&i("mui-".concat(Math.round(1e5*Math.random())))}),[n]),o}},function(e,t,n){"use strict";var r=n(0);t.a=function(e){var t=Object(r.useRef)(e);return t.current=e,t}},,,,function(e,t,n){var r=n(167);e.exports=function(e){return!(!e||!r[typeof e])}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return O})),String.prototype.codePointAt||function(){var e=function(){try{var e={},t=Object.defineProperty,n=t(e,e,e)&&t}catch(r){}return n}(),t=function(e){if(null==this)throw TypeError();var t=String(this),n=t.length,r=e?Number(e):0;if(r!=r&&(r=0),!(r<0||r>=n)){var i,o=t.charCodeAt(r);return o>=55296&&o<=56319&&n>r+1&&(i=t.charCodeAt(r+1))>=56320&&i<=57343?1024*(o-55296)+i-56320+65536:o}};e?e(String.prototype,"codePointAt",{value:t,configurable:!0,writable:!0}):String.prototype.codePointAt=t}();function r(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function i(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new r,this.dtree=new r}var o=new r,a=new r,s=new Uint8Array(30),l=new Uint16Array(30),c=new Uint8Array(30),u=new Uint16Array(30),h=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),f=new r,d=new Uint8Array(320);function p(e,t,n,r){var i,o;for(i=0;i<n;++i)e[i]=0;for(i=0;i<30-n;++i)e[i+n]=i/n|0;for(o=r,i=0;i<30;++i)t[i]=o,o+=1<<e[i]}var g=new Uint16Array(16);function v(e,t,n,r){var i,o;for(i=0;i<16;++i)e.table[i]=0;for(i=0;i<r;++i)e.table[t[n+i]]++;for(e.table[0]=0,o=0,i=0;i<16;++i)g[i]=o,o+=e.table[i];for(i=0;i<r;++i)t[n+i]&&(e.trans[g[t[n+i]]++]=i)}function m(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=1&e.tag;return e.tag>>>=1,t}function y(e,t,n){if(!t)return n;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var r=e.tag&65535>>>16-t;return e.tag>>>
2=t,e.bitcount-=t,r+n}function b(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var n=0,r=0,i=0,o=e.tag;do{r=2*r+(1&o),o>>>=1,++i,n+=t.table[i],r-=t.table[i]}while(r>=0);return e.tag=o,e.bitcount-=i,t.trans[n+r]}function x(e,t,n){var r,i,o,a,s,l;for(r=y(e,5,257),i=y(e,5,1),o=y(e,4,4),a=0;a<19;++a)d[a]=0;for(a=0;a<o;++a){var c=y(e,3,0);d[h[a]]=c}for(v(f,d,0,19),s=0;s<r+i;){var u=b(e,f);switch(u){case 16:var p=d[s-1];for(l=y(e,2,3);l;--l)d[s++]=p;break;case 17:for(l=y(e,3,3);l;--l)d[s++]=0;break;case 18:for(l=y(e,7,11);l;--l)d[s++]=0;break;default:d[s++]=u}}v(t,d,0,r),v(n,d,r,i)}function _(e,t,n){for(;;){var r,i,o,a,h=b(e,t);if(256===h)return 0;if(h<256)e.dest[e.destLen++]=h;else for(r=y(e,s[h-=257],l[h]),i=b(e,n),a=o=e.destLen-y(e,c[i],u[i]);a<o+r;++a)e.dest[e.destLen++]=e.dest[a]}}function w(e){for(var t,n;e.bitcount>8;)e.sourceIndex--,e.bitcount-=8;if((t=256*(t=e.source[e.sourceIndex+1])+e.source[e.sourceIndex])!==(65535&~(256*e.source[e.sourceIndex+3]+e.source[e.sourceIndex+2])))return-3;for(e.sourceIndex+=4,n=t;n;--n)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,0}!function(e,t){var n;for(n=0;n<7;++n)e.table[n]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,n=0;n<24;++n)e.trans[n]=256+n;for(n=0;n<144;++n)e.trans[24+n]=n;for(n=0;n<8;++n)e.trans[168+n]=280+n;for(n=0;n<112;++n)e.trans[176+n]=144+n;for(n=0;n<5;++n)t.table[n]=0;for(t.table[5]=32,n=0;n<32;++n)t.trans[n]=n}(o,a),p(s,l,4,3),p(c,u,2,1),s[28]=0,l[28]=258;var S=function(e,t){var n,r,s=new i(e,t);do{switch(n=m(s),y(s,2,0)){case 0:r=w(s);break;case 1:r=_(s,o,a);break;case 2:x(s,s.ltree,s.dtree),r=_(s,s.ltree,s.dtree);break;default:r=-3}if(0!==r)throw new Error("Data error")}while(!n);return s.destLen<s.dest.length?"function"===typeof s.dest.slice?s.dest.slice(0,s.destLen):s.dest.subarray(0,s.destLen):s.dest};function C(e,t,n,r,i){return Math.pow(1-i,3)*e+3*Math.pow(1-i,2)*i*t+3*(1-i)*Math.pow(i,2)*n+Math.pow(i,3)*r}function k(){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN}function O(){this.commands=[],this.fill="black",this.stroke=null,this.strokeWidth=1}function E(e){throw new Error(e)}function T(e,t){e||E(t)}k.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)},k.prototype.addPoint=function(e,t){"number"===typeof e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),"number"===typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))},k.prototype.addX=function(e){this.addPoint(e,null)},k.prototype.addY=function(e){this.addPoint(null,e)},k.prototype.addBezier=function(e,t,n,r,i,o,a,s){var l=[e,t],c=[n,r],u=[i,o],h=[a,s];this.addPoint(e,t),this.addPoint(a,s);for(var f=0;f<=1;f++){var d=6*l[f]-12*c[f]+6*u[f],p=-3*l[f]+9*c[f]-9*u[f]+3*h[f],g=3*c[f]-3*l[f];if(0!==p){var v=Math.pow(d,2)-4*g*p;if(!(v<0)){var m=(-d+Math.sqrt(v))/(2*p);0<m&&m<1&&(0===f&&this.addX(C(l[f],c[f],u[f],h[f],m)),1===f&&this.addY(C(l[f],c[f],u[f],h[f],m)));var y=(-d-Math.sqrt(v))/(2*p);0<y&&y<1&&(0===f&&this.addX(C(l[f],c[f],u[f],h[f],y)),1===f&&this.addY(C(l[f],c[f],u[f],h[f],y)))}}else{if(0===d)continue;var b=-g/d;0<b&&b<1&&(0===f&&this.addX(C(l[f],c[f],u[f],h[f],b)),1===f&&this.addY(C(l[f],c[f],u[f],h[f],b)))}}},k.prototype.addQuad=function(e,t,n,r,i,o){var a=e+2/3*(n-e),s=t+2/3*(r-t),l=a+1/3*(i-e),c=s+1/3*(o-t);this.addBezier(e,t,a,s,l,c,i,o)},O.prototype.moveTo=function(e,t){this.commands.push({type:"M",x:e,y:t})},O.prototype.lineTo=function(e,t){this.commands.push({type:"L",x:e,y:t})},O.prototype.curveTo=O.prototype.bezierCurveTo=function(e,t,n,r,i,o){this.commands.push({type:"C",x1:e,y1:t,x2:n,y2:r,x:i,y:o})},O.prototype.quadTo=O.prototype.quadraticCurveTo=function(e,t,n,r){this.commands.push({type:"Q",x1:e,y1:t,x:n,y:r})},O.prototype.close=O.prototype.closePath=function(){this.commands.push({type:"Z"})},O.prototype.extend=function(e){if(e.commands)e=e.commands;else if(e instanceof k){var t=e;return this.moveTo(t.x1,t.y1),this.lineTo(t.x2,t.y1),this.lineTo(t.x2,t.y2),this.lineTo(t.x1,t.y2),void this.close()}Array.prototype.push.apply(this.commands,e)},O.prototype.getBoundingBox=function(){for(var e=new k,t=0,n=0,r=0,i=0,o=0;o<this.commands.length;o++){var a=this.commands[o];switch(a.type){case"M":e.addPoint(a.x,a.y),t=r=a.x,n=i=a.y;break;case"L":e.addPoint(a.x,a.y),r=a.x,i=a.y;break;case"Q":e.addQuad(r,i,a.x1,a.y1,a.x,a.y),r=a.x,i=a.y;break;case"C":e.addBezier(r,i,a.x1,a.y1,a.x2,a.y2,a.x,a.y),r=a.x,i=a.y;break;case"Z":r=t,i=n;break;default:throw new Error("Unexpected path command "+a.type)}}return e.isEmpty()&&e.addPoint(0,0),e},O.prototype.draw=function(e){e.beginPath();for(var t=0;t<this.commands.length;t+=1){var n=this.commands[t];"M"===n.type?e.moveTo(n.x,n.y):"L"===n.type?e.lineTo(n.x,n.y):"C"===n.type?e.bezierCurveTo(n.x1,n.y1,n.x2,n.y2,n.x,n.y):"Q"===n.type?e.quadraticCurveTo(n.x1,n.y1,n.x,n.y):"Z"===n.type&&e.closePath()}this.fill&&(e.fillStyle=this.fill,e.fill()),this.stroke&&(e.strokeStyle=this.stroke,e.lineWidth=this.strokeWidth,e.stroke())},O.prototype.toPathData=function(e){function t(t){return Math.round(t)===t?""+Math.round(t):t.toFixed(e)}function n(){for(var e=arguments,n="",r=0;r<arguments.length;r+=1){var i=e[r];i>=0&&r>0&&(n+=" "),n+=t(i)}return n}e=void 0!==e?e:2;for(var r="",i=0;i<this.commands.length;i+=1){var o=this.commands[i];"M"===o.type?r+="M"+n(o.x,o.y):"L"===o.type?r+="L"+n(o.x,o.y):"C"===o.type?r+="C"+n(o.x1,o.y1,o.x2,o.y2,o.x,o.y):"Q"===o.type?r+="Q"+n(o.x1,o.y1,o.x,o.y):"Z"===o.type&&(r+="Z")}return r},O.prototype.toSVG=function(e){var t='<path d="';return t+=this.toPathData(e),t+='"',this.fill&&"black"!==this.fill&&(null===this.fill?t+=' fill="none"':t+=' fill="'+this.fill+'"'),this.stroke&&(t+=' stroke="'+this.stroke+'" stroke-width="'+this.strokeWidth+'"'),t+="/>"},O.prototype.toDOMElement=function(e){var t=this.toPathData(e),n=document.createElementNS("http://www.w3.org/2000/svg","path");return n.setAttribute("d",t),n};var A={fail:E,argument:T,assert:T}
2,P=2147483648,j={},L={},M={};function R(e){return function(){return e}}L.BYTE=function(e){return A.argument(e>=0&&e<=255,"Byte value should be between 0 and 255."),[e]},M.BYTE=R(1),L.CHAR=function(e){return[e.charCodeAt(0)]},M.CHAR=R(1),L.CHARARRAY=function(e){for(var t=[],n=0;n<e.length;n+=1)t[n]=e.charCodeAt(n);return t},M.CHARARRAY=function(e){return e.length},L.USHORT=function(e){return[e>>8&255,255&e]},M.USHORT=R(2),L.SHORT=function(e){return e>=32768&&(e=-(65536-e)),[e>>8&255,255&e]},M.SHORT=R(2),L.UINT24=function(e){return[e>>16&255,e>>8&255,255&e]},M.UINT24=R(3),L.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},M.ULONG=R(4),L.LONG=function(e){return e>=P&&(e=-(2*P-e)),[e>>24&255,e>>16&255,e>>8&255,255&e]},M.LONG=R(4),L.FIXED=L.ULONG,M.FIXED=M.ULONG,L.FWORD=L.SHORT,M.FWORD=M.SHORT,L.UFWORD=L.USHORT,M.UFWORD=M.USHORT,L.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,255&e]},M.LONGDATETIME=R(8),L.TAG=function(e){return A.argument(4===e.length,"Tag should be exactly 4 ASCII characters."),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},M.TAG=R(4),L.Card8=L.BYTE,M.Card8=M.BYTE,L.Card16=L.USHORT,M.Card16=M.USHORT,L.OffSize=L.BYTE,M.OffSize=M.BYTE,L.SID=L.USHORT,M.SID=M.USHORT,L.NUMBER=function(e){return e>=-107&&e<=107?[e+139]:e>=108&&e<=1131?[247+((e-=108)>>8),255&e]:e>=-1131&&e<=-108?[251+((e=-e-108)>>8),255&e]:e>=-32768&&e<=32767?L.NUMBER16(e):L.NUMBER32(e)},M.NUMBER=function(e){return L.NUMBER(e).length},L.NUMBER16=function(e){return[28,e>>8&255,255&e]},M.NUMBER16=R(3),L.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,255&e]},M.NUMBER32=R(5),L.REAL=function(e){var t=e.toString(),n=/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(t);if(n){var r=parseFloat("1e"+((n[2]?+n[2]:0)+n[1].length));t=(Math.round(e*r)/r).toString()}for(var i="",o=0,a=t.length;o<a;o+=1){var s=t[o];i+="e"===s?"-"===t[++o]?"c":"b":"."===s?"a":"-"===s?"e":s}for(var l=[30],c=0,u=(i+=1&i.length?"f":"ff").length;c<u;c+=2)l.push(parseInt(i.substr(c,2),16));return l},M.REAL=function(e){return L.REAL(e).length},L.NAME=L.CHARARRAY,M.NAME=M.CHARARRAY,L.STRING=L.CHARARRAY,M.STRING=M.CHARARRAY,j.UTF8=function(e,t,n){for(var r=[],i=n,o=0;o<i;o++,t+=1)r[o]=e.getUint8(t);return String.fromCharCode.apply(null,r)},j.UTF16=function(e,t,n){for(var r=[],i=n/2,o=0;o<i;o++,t+=2)r[o]=e.getUint16(t);return String.fromCharCode.apply(null,r)},L.UTF16=function(e){for(var t=[],n=0;n<e.length;n+=1){var r=e.charCodeAt(n);t[t.length]=r>>8&255,t[t.length]=255&r}return t},M.UTF16=function(e){return 2*e.length};var D={"x-mac-croatian":"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc\u2020\xb0\xa2\xa3\xa7\u2022\xb6\xdf\xae\u0160\u2122\xb4\xa8\u2260\u017d\xd8\u221e\xb1\u2264\u2265\u2206\xb5\u2202\u2211\u220f\u0161\u222b\xaa\xba\u03a9\u017e\xf8\xbf\xa1\xac\u221a\u0192\u2248\u0106\xab\u010c\u2026\xa0\xc0\xc3\xd5\u0152\u0153\u0110\u2014\u201c\u201d\u2018\u2019\xf7\u25ca\uf8ff\xa9\u2044\u20ac\u2039\u203a\xc6\xbb\u2013\xb7\u201a\u201e\u2030\xc2\u0107\xc1\u010d\xc8\xcd\xce\xcf\xcc\xd3\xd4\u0111\xd2\xda\xdb\xd9\u0131\u02c6\u02dc\xaf\u03c0\xcb\u02da\xb8\xca\xe6\u02c7","x-mac-cyrillic":"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u2020\xb0\u0490\xa3\xa7\u2022\xb6\u0406\xae\xa9\u2122\u0402\u0452\u2260\u0403\u0453\u221e\xb1\u2264\u2265\u0456\xb5\u0491\u0408\u0404\u0454\u0407\u0457\u0409\u0459\u040a\u045a\u0458\u0405\xac\u221a\u0192\u2248\u2206\xab\xbb\u2026\xa0\u040b\u045b\u040c\u045c\u0455\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u201e\u040e\u045e\u040f\u045f\u2116\u0401\u0451\u044f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e","x-mac-gaelic":"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc\u2020\xb0\xa2\xa3\xa7\u2022\xb6\xdf\xae\xa9\u2122\xb4\xa8\u2260\xc6\xd8\u1e02\xb1\u2264\u2265\u1e03\u010a\u010b\u1e0a\u1e0b\u1e1e\u1e1f\u0120\u0121\u1e40\xe6\xf8\u1e41\u1e56\u1e57\u027c\u0192\u017f\u1e60\xab\xbb\u2026\xa0\xc0\xc3\xd5\u0152\u0153\u2013\u2014\u201c\u201d\u2018\u2019\u1e61\u1e9b\xff\u0178\u1e6a\u20ac\u2039\u203a\u0176\u01
277\u1e6b\xb7\u1ef2\u1ef3\u204a\xc2\xca\xc1\xcb\xc8\xcd\xce\xcf\xcc\xd3\xd4\u2663\xd2\xda\xdb\xd9\u0131\xdd\xfd\u0174\u0175\u1e84\u1e85\u1e80\u1e81\u1e82\u1e83","x-mac-greek":"\xc4\xb9\xb2\xc9\xb3\xd6\xdc\u0385\xe0\xe2\xe4\u0384\xa8\xe7\xe9\xe8\xea\xeb\xa3\u2122\xee\xef\u2022\xbd\u2030\xf4\xf6\xa6\u20ac\xf9\xfb\xfc\u2020\u0393\u0394\u0398\u039b\u039e\u03a0\xdf\xae\xa9\u03a3\u03aa\xa7\u2260\xb0\xb7\u0391\xb1\u2264\u2265\xa5\u0392\u0395\u0396\u0397\u0399\u039a\u039c\u03a6\u03ab\u03a8\u03a9\u03ac\u039d\xac\u039f\u03a1\u2248\u03a4\xab\xbb\u2026\xa0\u03a5\u03a7\u0386\u0388\u0153\u2013\u2015\u201c\u201d\u2018\u2019\xf7\u0389\u038a\u038c\u038e\u03ad\u03ae\u03af\u03cc\u038f\u03cd\u03b1\u03b2\u03c8\u03b4\u03b5\u03c6\u03b3\u03b7\u03b9\u03be\u03ba\u03bb\u03bc\u03bd\u03bf\u03c0\u03ce\u03c1\u03c3\u03c4\u03b8\u03c9\u03c2\u03c7\u03c5\u03b6\u03ca\u03cb\u0390\u03b0\xad","x-mac-icelandic":"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc\xdd\xb0\xa2\xa3\xa7\u2022\xb6\xdf\xae\xa9\u2122\xb4\xa8\u2260\xc6\xd8\u221e\xb1\u2264\u2265\xa5\xb5\u2202\u2211\u220f\u03c0\u222b\xaa\xba\u03a9\xe6\xf8\xbf\xa1\xac\u221a\u0192\u2248\u2206\xab\xbb\u2026\xa0\xc0\xc3\xd5\u0152\u0153\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u25ca\xff\u0178\u2044\u20ac\xd0\xf0\xde\xfe\xfd\xb7\u201a\u201e\u2030\xc2\xca\xc1\xcb\xc8\xcd\xce\xcf\xcc\xd3\xd4\uf8ff\xd2\xda\xdb\xd9\u0131\u02c6\u02dc\xaf\u02d8\u02d9\u02da\xb8\u02dd\u02db\u02c7","x-mac-inuit":"\u1403\u1404\u1405\u1406\u140a\u140b\u1431\u1432\u1433\u1434\u1438\u1439\u1449\u144e\u144f\u1450\u1451\u1455\u1456\u1466\u146d\u146e\u146f\u1470\u1472\u1473\u1483\u148b\u148c\u148d\u148e\u1490\u1491\xb0\u14a1\u14a5\u14a6\u2022\xb6\u14a7\xae\xa9\u2122\u14a8\u14aa\u14ab\u14bb\u14c2\u14c3\u14c4\u14c5\u14c7\u14c8\u14d0\u14ef\u14f0\u14f1\u14f2\u14f4\u14f5\u1505\u14d5\u14d6\u14d7\u14d8\u14da\u14db\u14ea\u1528\u1529\u152a\u152b\u152d\u2026\xa0\u152e\u153e\u1555\u1556\u1557\u2013\u2014\u201c\u201d\u2018\u2019\u1558\u1559\u155a\u155d\u1546\u1547\u1548\u1549\u154b\u154c\u1550\u157f\u1580\u1581\u1582\u1583\u1584\u1585\u158f\u1590\u1591\u1592\u1593\u1594\u1595\u1671\u1672\u1673\u1674\u1675\u1676\u1596\u15a0\u15a1\u15a2\u15a3\u15a4\u15a5\u15a6\u157c\u0141\u0142","x-mac-ce":"\xc4\u0100\u0101\xc9\u0104\xd6\xdc\xe1\u0105\u010c\xe4\u010d\u0106\u0107\xe9\u0179\u017a\u010e\xed\u010f\u0112\u0113\u0116\xf3\u0117\xf4\xf6\xf5\xfa\u011a\u011b\xfc\u2020\xb0\u0118\xa3\xa7\u2022\xb6\xdf\xae\xa9\u2122\u0119\xa8\u2260\u0123\u012e\u012f\u012a\u2264\u2265\u012b\u0136\u2202\u2211\u0142\u013b\u013c\u013d\u013e\u0139\u013a\u0145\u0146\u0143\xac\u221a\u0144\u0147\u2206\xab\xbb\u2026\xa0\u0148\u0150\xd5\u0151\u014c\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u25ca\u014d\u0154\u0155\u0158\u2039\u203a\u0159\u0156\u0157\u0160\u201a\u201e\u0161\u015a\u015b\xc1\u0164\u0165\xcd\u017d\u017e\u016a\xd3\xd4\u016b\u016e\xda\u016f\u0170\u0171\u0172\u0173\xdd\xfd\u0137\u017b\u0141\u017c\u0122\u02c7",macintosh:"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc\u2020\xb0\xa2\xa3\xa7\u2022\xb6\xdf\xae\xa9\u2122\xb4\xa8\u2260\xc6\xd8\u221e\xb1\u2264\u2265\xa5\xb5\u2202\u2211\u220f\u03c0\u222b\xaa\xba\u03a9\xe6\xf8\xbf\xa1\xac\u221a\u0192\u2248\u2206\xab\xbb\u2026\xa0\xc0\xc3\xd5\u0152\u0153\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u25ca\xff\u0178\u2044\u20ac\u2039\u203a\ufb01\ufb02\u2021\xb7\u201a\u201e\u2030\xc2\xca\xc1\xcb\xc8\xcd\xce\xcf\xcc\xd3\xd4\uf8ff\xd2\xda\xdb\xd9\u0131\u02c6\u02dc\xaf\u02d8\u02d9\u02da\xb8\u02dd\u02db\u02c7","x-mac-romanian":"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc\u2020\xb0\xa2\xa3\xa7\u2022\xb6\xdf\xae\xa9\u2122\xb4\xa8\u2260\u0102\u0218\u221e\xb1\u2264\u2265\xa5\xb5\u2202\u2211\u220f\u03c0\u222b\xaa\xba\u03a9\u0103\u0219\xbf\xa1\xac\u221a\u0192\u2248\u2206\xab\xbb\u2026\xa0\xc0\xc3\xd5\u0152\u0153\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u25ca\xff\u0178\u2044\u20ac\u2039\u203a\u021a\u021b\u2021\xb7\u201a\u201e\u2030\xc2\xca\xc1\xcb\xc8\xcd\xce\xcf\xcc\xd3\xd4\uf8ff\xd2\xda\xdb\xd9\u0131\u02c6\u02dc\xaf\u02d8\u02d9\u02da\xb8\u02dd\u02db\u02c7","x-mac-turkish":"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc\u2020\xb0\xa2\xa3\xa7\u2022\xb6\xdf\xae\xa9\u2122\xb4\xa8\u2260\xc6\xd8\u221e\xb1\u2264\u2265\xa5\xb5\u2202\u2211\u220f\u03c0\u222b\xaa\xba\u03a9\xe6\xf8\xbf\xa1\xac\u221a\u0192\u2248\u2206\xab\xbb\u2026\xa0\xc0\xc3\xd5\u0152\u0153\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u25ca\xff\u0178\u011e\u011f\u0130\u0131\u015e\u015f\u2021\xb7\u201a\u201e\u2030\xc2\xca\xc1\xcb\xc8\xcd\xce\xcf\xcc\xd3\xd4\uf8ff\xd2\xda\xdb\xd9\uf8a0\u02c6\u02dc\xaf\u02d8\u02d9\u02da\xb8\u02dd\u02db\u02c7"};j.MACSTRING=function(e,t,n,r){var i=D[r];if(void 0!==i){for(var o="",a=0;a<n;a++){var s=e.getUint8(t+a);o+=s<=127?String.fromCharCode(s):i[127&s]}return o}};var I,N="function"===typeof WeakMap&&new WeakMap;function F(e){return e>=-128&&e<=127}function B(e,t,n){for(var r=0,i=e.length;t<i&&r<64&&0===e[t];)++t,++r;return n.push(128|r-1),t}function U(e,t,n){for(var r=0,i=e.length,o=t;o<i&&r<64;){var a=e[o];if(!F(a))break;if(0===a&&o+1<i&&0===e[o+1])break;++o,++r}n.push(r-1);for(var s=t;s<o;++s)n.push(e[s]+256&255);return o}function z(e,t,n){for(var r=0,i=e.length,o=t;o<i&&r<64;){var a=e[o];if(0===a)break;if(F(a)&&o+1<i&&F(e[o+1]))break;++o,++r}n.push(64|r-1);for(var s=t;s<o;++s){var l=e[s];n.push(l+65536>>8&255,l+256&255)}return o}L.MACSTRING=function(e,t){var n=function(e){if(!I)for(var t in I={},D)I[t]=new String(t);var n=I[e];
vendor: 4,811 bytes, line 2
2if(void 0!==n){if(N){var r=N.get(n);if(void 0!==r)return r}var i=D[e];if(void 0!==i){for(var o={},a=0;a<i.length;a++)o[i.charCodeAt(a)]=a+128;return N&&N.set(n,o),o}}}(t);if(void 0!==n){for(var r=[],i=0;i<e.length;i++){var o=e.charCodeAt(i);if(o>=128&&void 0===(o=n[o]))return;r[i]=o}return r}},M.MACSTRING=function(e,t){var n=L.MACSTRING(e,t);return void 0!==n?n.length:0},L.VARDELTAS=function(e){for(var t=0,n=[];t<e.length;){var r=e[t];t=0===r?B(e,t,n):r>=-128&&r<=127?U(e,t,n):z(e,t,n)}return n},L.INDEX=function(e){for(var t=1,n=[t],r=[],i=0;i<e.length;i+=1){var o=L.OBJECT(e[i]);Array.prototype.push.apply(r,o),t+=o.length,n.push(t)}if(0===r.length)return[0,0];for(var a=[],s=1+Math.floor(Math.log(t)/Math.log(2))/8|0,l=[void 0,L.BYTE,L.USHORT,L.UINT24,L.ULONG][s],c=0;c<n.length;c+=1){var u=l(n[c]);Array.prototype.push.apply(a,u)}return Array.prototype.concat(L.Card16(e.length),L.OffSize(s),a,r)},M.INDEX=function(e){return L.INDEX(e).length},L.DICT=function(e){for(var t=[],n=Object.keys(e),r=n.length,i=0;i<r;i+=1){var o=parseInt(n[i],0),a=e[o];t=(t=t.concat(L.OPERAND(a.value,a.type))).concat(L.OPERATOR(o))}return t},M.DICT=function(e){return L.DICT(e).length},L.OPERATOR=function(e){return e<1200?[e]:[12,e-1200]},L.OPERAND=function(e,t){var n=[];if(Array.isArray(t))for(var r=0;r<t.length;r+=1)A.argument(e.length===t.length,"Not enough arguments given for type"+t),n=n.concat(L.OPERAND(e[r],t[r]));else if("SID"===t)n=n.concat(L.NUMBER(e));else if("offset"===t)n=n.concat(L.NUMBER32(e));else if("number"===t)n=n.concat(L.NUMBER(e));else{if("real"!==t)throw new Error("Unknown operand type "+t);n=n.concat(L.REAL(e))}return n},L.OP=L.BYTE,M.OP=M.BYTE;var V="function"===typeof WeakMap&&new WeakMap;function H(e,t,n){for(var r=0;r<t.length;r+=1){var i=t[r];this[i.name]=i.value}if(this.tableName=e,this.fields=t,n)for(var o=Object.keys(n),a=0;a<o.length;a+=1){var s=o[a],l=n[s];void 0!==this[s]&&(this[s]=l)}}function W(e,t,n){void 0===n&&(n=t.length);var r=new Array(t.length+1);r[0]={name:e+"Count",type:"USHORT",value:n};for(var i=0;i<t.length;i++)r[i+1]={name:e+i,type:"USHORT",value:t[i]};return r}function G(e,t,n){var r=t.length,i=new Array(r+1);i[0]={name:e+"Count",type:"USHORT",value:r};for(var o=0;o<r;o++)i[o+1]={name:e+o,type:"TABLE",value:n(t[o],o)};return i}function q(e,t,n){var r=t.length,i=[];i[0]={name:e+"Count",type:"USHORT",value:r};for(var o=0;o<r;o++)i=i.concat(n(t[o],o));return i}function X(e){1===e.format?H.call(this,"coverageTable",[{name:"coverageFormat",type:"USHORT",value:1}].concat(W("glyph",e.glyphs))):A.assert(!1,"Can't create coverage table format 2 yet.")}function Y(e){H.call(this,"scriptListTable",q("scriptRecord",e,(function(e,t){var n=e.script,r=n.defaultLangSys;return A.assert(!!r,"Unable to write GSUB: script "+e.tag+" has no default language system."),[{name:"scriptTag"+t,type:"TAG",value:e.tag},{name:"script"+t,type:"TABLE",value:new H("scriptTable",[{name:"defaultLangSys",type:"TABLE",value:new H("defaultLangSys",[{name:"lookupOrder",type:"USHORT",value:0},{name:"reqFeatureIndex",type:"USHORT",value:r.reqFeatureIndex}].concat(W("featureIndex",r.featureIndexes)))}].concat(q("langSys",n.langSysRecords,(function(e,t){var n=e.langSys;return[{name:"langSysTag"+t,type:"TAG",value:e.tag},{name:"langSys"+t,type:"TABLE",value:new H("langSys",[{name:"lookupOrder",type:"USHORT",value:0},{name:"reqFeatureIndex",type:"USHORT",value:n.reqFeatureIndex}].concat(W("featureIndex",n.featureIndexes)))}]}))))}]})))}function $(e){H.call(this,"featureListTable",q("featureRecord",e,(function(e,t){var n=e.feature;return[{name:"featureTag"+t,type:"TAG",value:e.tag},{name:"feature"+t,type:"TABLE",value:new H("featureTable",[{name:"featureParams",type:"USHORT",value:n.featureParams}].concat(W("lookupListIndex",n.lookupListIndexes)))}]})))}function K(e,t){H.call(this,"lookupListTable",G("lookup",e,(function(e){var n=t[e.lookupType];return A.assert(!!n,"Unable to write GSUB lookup type "+e.lookupType+" tables."),new H("lookupTable",[{name:"lookupType",type:"USHORT",value:e.lookupType},{name:"lookupFlag",type:"USHORT",value:e.lookupFlag}].concat(G("subtable",e.subtables,n)))})))}L.CHARSTRING=function(e){if(V){var t=V.get(e);if(void 0!==t)return t}for(var n=[],r=e.length,i=0;i<r;i+=1){var o=e[i];n=n.concat(L[o.type](o.value))}return V&&V.set(e,n),n},M.CHARSTRING=function(e){return L.CHARSTRING(e).length},L.OBJECT=function(e){var t=L[e.type];return A.argument(void 0!==t,"No encoding function for type "+e.type),t(e.value)},M.OBJECT=function(e){var t=M[e.type];return A.argument(void 0!==t,"No sizeOf function for type "+e.type),t(e.value)},L.TABLE=function(e){for(var t=[],n=e.fields.length,r=[],i=[],o=0;o<n;o+=1){var a=e.fields[o],s=L[a.type];A.argument(void 0!==s,"No encoding function for field type "+a.type+" ("+a.name+")");var l=e[a.name];
2void 0===l&&(l=a.value);var c=s(l);"TABLE"===a.type?(i.push(t.length),t=t.concat([0,0]),r.push(c)):t=t.concat(c)}for(var u=0;u<r.length;u+=1){var h=i[u],f=t.length;A.argument(f<65536,"Table "+e.tableName+" too big."),t[h]=f>>8,t[h+1]=255&f,t=t.concat(r[u])}return t},M.TABLE=function(e){for(var t=0,n=e.fields.length,r=0;r<n;r+=1){var i=e.fields[r],o=M[i.type];A.argument(void 0!==o,"No sizeOf function for field type "+i.type+" ("+i.name+")");var a=e[i.name];void 0===a&&(a=i.value),t+=o(a),"TABLE"===i.type&&(t+=2)}return t},L.RECORD=L.TABLE,M.RECORD=M.TABLE,L.LITERAL=function(e){return e},M.LITERAL=function(e){return e.length},H.prototype.encode=function(){return L.TABLE(this)},H.prototype.sizeOf=function(){return M.TABLE(this)},X.prototype=Object.create(H.prototype),X.prototype.constructor=X,Y.prototype=Object.create(H.prototype),Y.prototype.constructor=Y,$.prototype=Object.create(H.prototype),$.prototype.constructor=$,K.prototype=Object.create(H.prototype),K.prototype.constructor=K;var Z={Table:H,Record:H,Coverage:X,ScriptList:Y,FeatureList:$,LookupList:K,ushortList:W,tableList:G,recordList:q};function Q(e,t){return e.getUint8(t)}function J(e,t){return e.getUint16(t,!1)}function ee(e,t){return e.getUint32(t,!1)}function te(e,t){return e.getInt16(t,!1)+e.getUint16(t+2,!1)/65535}var ne={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function re(e,t){this.data=e,this.offset=t,this.relativeOffset=0}re.prototype.parseByte=function(){var e=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},re.prototype.parseChar=function(){var e=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},re.prototype.parseCard8=re.prototype.parseByte,re.prototype.parseUShort=function(){var e=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},re.prototype.parseCard16=re.prototype.parseUShort,re.prototype.parseSID=re.prototype.parseUShort,re.prototype.parseOffset16=re.prototype.parseUShort,re.prototype.parseShort=function(){var e=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},re.prototype.parseF2Dot14=function(){var e=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,e},re.prototype.parseULong=function(){var e=ee(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},re.prototype.parseOffset32=re.prototype.parseULong,re.prototype.parseFixed=function(){var e=te(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},re.prototype.parseString=function(e){var t=this.data,n=this.offset+this.relativeOffset,r="";this.relativeOffset+=e;for(var i=0;i<e;i++)r+=String.fromCharCode(t.getUint8(n+i));return r},re.prototype.parseTag=function(){return this.parseString(4)},re.prototype.parseLongDateTime=function(){var e=ee(this.data,this.offset+this.relativeOffset+4);return e-=2082844800,this.relativeOffset+=8,e},re.prototype.parseVersion=function(e){var t=J(this.data,this.offset+this.relativeOffset),n=J(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,void 0===e&&(e=4096),t+n/e/10},re.prototype.skip=function(e,t){void 0===t&&(t=1),this.relativeOffset+=ne[e]*t},re.prototype.parseULongList=function(e){void 0===e&&(e=this.parseULong());for(var t=new Array(e),n=this.data,r=this.offset+this.relativeOffset,i=0;i<e;i++)t[i]=n.getUint32(r),r+=4;return this.relativeOffset+=4*e,t},re.prototype.parseOffset16List=re.prototype.parseUShortList=function(e){void 0===e&&(e=this.parseUShort());for(var t=new Array(e),n=this.data,r=this.offset+this.relativeOffset,i=0;i<e;i++)t[i]=n.getUint16(r),r+=2;return this.relativeOffset+=2*e,t},re.prototype.parseShortList=function(e){for(var t=new Array(e),n=this.data,r=this.offset+this.relativeOffset,i=0;i<e;i++)t[i]=n.getInt16(r),r+=2;return this.relativeOffset+=2*e,t},re.prototype.parseByteList=function(e){for(var t=new Array(e),n=this.data,r=this.offset+this.relativeOffset,i=0;i<e;i++)t[i]=n.getUint8(r++);return this.relativeOffset+=e,t},re.prototype.parseList=function(e,t){t||(t=e,e=this.parseUShort());for(var n=new Array(e),r=0;r<e;r++)n[r]=t.call(this);return n},re.prototype.parseList32=function(e,t){t||(t=e,e=this.parseULong());for(var n=new Array(e),r=0;r<e;r++)n[r]=t.call(this);return n},re.prototype.parseRecordList=function(e,t){t||(t=e,e=this.parseUShort());for(var n=new Array(e),r=Object.keys(t),i=0;i<e;i++){for(var o={},a=0;a<r.length;a++){var s=r[a],l=t[s];o[s]=l.call(this)}n[i]=o}return n},re.prototype.parseRecordList32=function(e,t){t||(t=e,e=this.parseULong());for(var n=new Array(e),r=Object.keys(t),i=0;i<e;i++){for(var o={},a=0;a<r.length;a++){var s=r[a],l=t[s];o[s]=l.call(this)}n[i]=o}return n},re.prototype.parseStruct=function(e){if("function"===typeof e)return e.call(this);for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r],o=e[i];n[i]=o.call(this)}return n},re.prototype.parseValueRecord=function(e){if(void 0===e&&(e=this.parseUShort()),0!==e){var t={};return 1&e&&(t.xPlacement=this.parseShort()),2&e&&(t.yPlacement=this.parseShort()),4&e&&(t.xAdvance=this.parseShort()),8&e&&(t.yAdvance=this.parseShort()),16&e&&(t.xPlaDevice=void 0,this.parseShort()),32&e&&(t.yPlaDevice=void 0,this.parseShort()),64&e&&(t.xAdvDevice=void 0,this.parseShort()),128&e&&(t.yAdvDevice=void 0,this.parseShort()),t}},re.prototype.parseValueRecordList=function(){for(var e=this.parseUShort(),t=this.parseUShort(),n=new Array(t),r=0;r<t;r++)n[r]=this.parseValueRecord(e);return n},re.prototype.parsePointer=function(e){var t=this.parseOffset16();if(t>0)return new re(this.data,this.offset+t).parseStruct(e)},re.prototype.parsePointer32=function(e){var t=this.parseOffset32();if(t>0)return new re(this.data,this.offset+t).parseStruct(e)},re.prototype.parseListOfLists=function(e){for(var t=this.parseOffset16List(),n=t.length,r=this.relativeOffset,i=new Array(n),o=0;o<n;o++){var a=t[o];if(0!==a)if(this.relativeOffset=a,e){for(var s=this.parseOffset16List(),l=new Array(s.length),c=0;c<s.length;c++)this.relativeOffset=a+s[c],l[c]=e.call(this);i[o]=l}else i[o]=this.parseUShortList();else i[o]=void 0}return this.relativeOffset=r,i},re.prototype.parseCoverage=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort(),n=this.parseUShort();if(1===t)return{format:1,glyphs:this.parseUShortList(n)};if(2===t){for(var r=new Array(n),i=0;i<n;i++)r[i]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:r}}throw new Error("0x"+e.toString(16)+": Coverage format must be 1 or 2.")},re.prototype.parseClassDef=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};if(2===t)return{format:2,ranges:this.parseRecordList({start:re.uShort,end:re.uShort,classId:re.uShort})};throw new Error("0x"+e.toString(16)+": ClassDef format must be 1 or 2.")},re.list=function(e,t){return function(){return this.parseList(e,t)}},re.list32=function(e,t){return function(){return this.parseList32(e,t)}},re.recordList=function(e,t){return function(){return this.parseRecordList(e,t)}},re.recordList32=function(e,t){return function(){return this.parseRecordList32(e,t)}},re.pointer=function(e){return function(){return this.parsePointer(e)}},re.pointer32=function(e){return function(){return this.parsePointer32(e)}},re.tag=re.prototype.parseTag,re.byte=re.prototype.parseByte,re.uShort=re.offset16=re.prototype.parseUShort,re.uShortList=re.prototype.parseUShortList,re.uLong=re.offset32=re.prototype.parseULong,re.uLongList=re.prototype.parseULongList,re.struct=re.prototype.parseStruct,re.coverage=re.prototype.parseCoverage,re.classDef=re.prototype.parseClassDef;var ie={reserved:re.uShort,reqFeatureIndex:re.uShort,featureIndexes:re.uShortList};re.prototype.parseScriptList=function(){return this.parsePointer(re.recordList({tag:re.tag,script:re.pointer({defaultLangSys:re.pointer(ie),langSysRecords:re.recordList({tag:re.tag,langSys:re.pointer(ie)})})}))||[]},re.prototype.parseFeatureList=function(){return this.parsePointer(re.recordList({tag:re.tag,feature:re.pointer({featureParam
2s:re.offset16,lookupListIndexes:re.uShortList})}))||[]},re.prototype.parseLookupList=function(e){return this.parsePointer(re.list(re.pointer((function(){var t=this.parseUShort();A.argument(1<=t&&t<=9,"GPOS/GSUB lookup type "+t+" unknown.");var n=this.parseUShort(),r=16&n;return{lookupType:t,lookupFlag:n,subtables:this.parseList(re.pointer(e[t])),markFilteringSet:r?this.parseUShort():void 0}}))))||[]},re.prototype.parseFeatureVariationsList=function(){return this.parsePointer32((function(){var e=this.parseUShort(),t=this.parseUShort();return A.argument(1===e&&t<1,"GPOS/GSUB feature variations table unknown."),this.parseRecordList32({conditionSetOffset:re.offset32,featureTableSubstitutionOffset:re.offset32})}))||[]};var oe={getByte:Q,getCard8:Q,getUShort:J,getCard16:J,getShort:function(e,t){return e.getInt16(t,!1)},getULong:ee,getFixed:te,getTag:function(e,t){for(var n="",r=t;r<t+4;r+=1)n+=String.fromCharCode(e.getInt8(r));return n},getOffset:function(e,t,n){for(var r=0,i=0;i<n;i+=1)r<<=8,r+=e.getUint8(t+i);return r},getBytes:function(e,t,n){for(var r=[],i=t;i<n;i+=1)r.push(e.getUint8(i));return r},bytesToString:function(e){for(var t="",n=0;n<e.length;n+=1)t+=String.fromCharCode(e[n]);return t},Parser:re};function ae(e,t,n){e.segments.push({end:t,start:t,delta:-(t-n),offset:0,glyphIndex:n})}var se={parse:function(e,t){var n={};n.version=oe.getUShort(e,t),A.argument(0===n.version,"cmap table version should be 0."),n.numTables=oe.getUShort(e,t+2);for(var r=-1,i=n.numTables-1;i>=0;i-=1){var o=oe.getUShort(e,t+4+8*i),a=oe.getUShort(e,t+4+8*i+2);if(3===o&&(0===a||1===a||10===a)||0===o&&(0===a||1===a||2===a||3===a||4===a)){r=oe.getULong(e,t+4+8*i+4);break}}if(-1===r)throw new Error("No valid cmap sub-tables found.");var s=new oe.Parser(e,t+r);if(n.format=s.parseUShort(),12===n.format)!function(e,t){var n;t.parseUShort(),e.length=t.parseULong(),e.language=t.parseULong(),e.groupCount=n=t.parseULong(),e.glyphIndexMap={};for(var r=0;r<n;r+=1)for(var i=t.parseULong(),o=t.parseULong(),a=t.parseULong(),s=i;s<=o;s+=1)e.glyphIndexMap[s]=a,a++}(n,s);else{if(4!==n.format)throw new Error("Only format 4 and 12 cmap tables are supported (found format "+n.format+").");!function(e,t,n,r,i){var o;e.length=t.parseUShort(),e.language=t.parseUShort(),e.segCount=o=t.parseUShort()>>1,t.skip("uShort",3),e.glyphIndexMap={};for(var a=new oe.Parser(n,r+i+14),s=new oe.Parser(n,r+i+16+2*o),l=new oe.Parser(n,r+i+16+4*o),c=new oe.Parser(n,r+i+16+6*o),u=r+i+16+8*o,h=0;h<o-1;h+=1)for(var f=void 0,d=a.parseUShort(),p=s.parseUShort(),g=l.parseShort(),v=c.parseUShort(),m=p;m<=d;m+=1)0!==v?(u=c.offset+c.relativeOffset-2,u+=v,u+=2*(m-p),0!==(f=oe.getUShort(n,u))&&(f=f+g&65535)):f=m+g&65535,e.glyphIndexMap[m]=f}(n,s,e,t,r)}return n},make:function(e){var t,n=!0;for(t=e.length-1;t>0;t-=1){if(e.get(t).unicode>65535){console.log("Adding CMAP format 12 (needed!)"),n=!1;break}}var r=[{name:"version",type:"USHORT",value:0},{name:"numTables",type:"USHORT",value:n?1:2},{name:"platformID",type:"USHORT",value:3},{name:"encodingID",type:"USHORT",value:1},{name:"offset",type:"ULONG",value:n?12:20}];n||(r=r.concat([{name:"cmap12PlatformID",type:"USHORT",value:3},{name:"cmap12EncodingID",type:"USHORT",value:10},{name:"cmap12Offset",type:"ULONG",value:0}])),r=r.concat([{name:"format",type:"USHORT",value:4},{name:"cmap4Length",type:"USHORT",value:0},{name:"language",type:"USHORT",value:0},{name:"segCountX2",type:"USHORT",value:0},{name:"searchRange",type:"USHORT",value:0},{name:"entrySelector",type:"USHORT",value:0},{name:"rangeShift",type:"USHORT",value:0}]);var i=new Z.Table("cmap",r);for(i.segments=[],t=0;t<e.length;t+=1){for(var o=e.get(t),a=0;a<o.unicodes.length;a+=1)ae(i,o.unicodes[a],t);i.segments=i.segments.sort((function(e,t){return e.start-t.start}))}!function(e){e.segments.push({end:65535,start:65535,delta:1,offset:0})}(i);var s=i.segments.length,l=0,c=[],u=[],h=[],f=[],d=[],p=[];for(t=0;t<s;t+=1){var g=i.segments[t];g.end<=65535&&g.start<=65535?(c=c.concat({name:"end_"+t,type:"USHORT",value:g.end}),u=u.concat({name:"start_"+t,type:"USHORT",value:g.start}),h=h.concat({name:"idDelta_"+t,type:"SHORT",value:g.delta}),f=f.concat({name:"idRangeOffset_"+t,type:"USHORT",value:g.offset}),void 0!==g.glyphId&&(d=d.concat({name:"glyph_"+t,type:"USHORT",value:g.glyphId}))):l+=1,n||void 0===g.glyphIndex||(p=(p=(p=p.concat({name:"cmap12Start_"+t,type:"ULONG",value:g.start})).concat({name:"cmap12End_"+t,type:"ULONG",value:g.end})).concat({name:"cmap12Glyph_"+t,type:"ULONG",value:g.glyphIndex}))}if(i.segCountX2=2*(s-l),i.searchRange=2*Math.pow(2,Math.floor(Math.log(s-l)/Math.log(2))),i.entrySelector=Math.log(i.searchRange/2)/Math.log(2),i.rangeShift=i.segCountX2-i.searchRange,i.fields=i.fields.concat(c),i.fields.push({name:"reservedPad",type:"USHORT",value:0}),i.fields=i.fields.concat(u),i.fields=i.fields.concat(h),i.fields=i.fields.concat(f),i.fields=i.fields.concat(d),i.cmap4Length=14+2*c.length+2+2*u.length+2*h.length+2*f.length+2*d.length,!n){var v=16+4*p.length;i.cmap12Offset=20+i.cmap4Length,i.fields=i.fields.concat([{name:"cmap12Format",type:"USHORT",value:12},{name:"cmap12Reserved",type:"USHORT",value:0},{name:"cmap12Length",type:"ULONG",value:v},{name:"cmap12Language",type:"ULONG",value:0},{name:"cmap12nGroups",type:"ULONG",value:p.length/3}]),i.fields=i.fields.concat(p)}return i}},le=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodce
2ntered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","266 ff","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"],ce=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","end
2ash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls"],ue=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"],he=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslas
2h","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"];function fe(e){this.font=e}function de(e){this.cmap=e}function pe(e,t){this.encoding=e,this.charset=t}function ge(e){switch(e.version){case 1:this.names=he.slice();break;case 2:this.names=new Array(e.numberOfGlyphs);for(var t=0;t<e.numberOfGlyphs;t++)e.glyphNameIndex[t]<he.length?this.names[t]=he[e.glyphNameIndex[t]]:this.names[t]=e.names[e.glyphNameIndex[t]-he.length];break;case 2.5:this.names=new Array(e.numberOfGlyphs);for(var n=0;n<e.numberOfGlyphs;n++)this.names[n]=he[n+e.glyphNameIndex[n]];break;case 3:default:this.names=[]}}function ve(e,t){t.lowMemory?function(e){e._IndexToUnicodeMap={};for(var t=e.tables.cmap.glyphIndexMap,n=Object.keys(t),r=0;r<n.length;r+=1){var i=n[r],o=t[i];void 0===e._IndexToUnicodeMap[o]?e._IndexToUnicodeMap[o]={unicodes:[parseInt(i)]}:e._IndexToUnicodeMap[o].unicodes.push(parseInt(i))}}(e):function(e){for(var t,n=e.tables.cmap.glyphIndexMap,r=Object.keys(n),i=0;i<r.length;i+=1){var o=r[i],a=n[o];(t=e.glyphs.get(a)).addUnicode(parseInt(o))}for(var s=0;s<e.glyphs.length;s+=1)t=e.glyphs.get(s),e.cffEncoding?e.isCIDFont?t.name="gid"+s:t.name=e.cffEncoding.charset[s]:e.glyphNames.names&&(t.name=e.glyphNames.glyphIndexToName(s))}(e)}fe.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),n=this.font.glyphs;if(n)for(var r=0;r<n.length;r+=1)for(var i=n.get(r),o=0;o<i.unicodes.length;o+=1)if(i.unicodes[o]===t)return r;return null},de.prototype.charToGlyphIndex=function(e){return this.cmap.glyphIndexMap[e.codePointAt(0)]||0},pe.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),n=this.encoding[t];return this.charset.indexOf(n)},ge.prototype.nameToGlyphIndex=function(e){return this.names.indexOf(e)},ge.prototype.glyphIndexToName=function(e){return this.names[e]};var me={line:function(e,t,n,r,i){e.beginPath(),e.moveTo(t,n),e.lineTo(r,i),e.stroke()}};function ye(e){this.bindConstructorValues(e)}function be(e,t,n){Object.defineProperty(e,t,{get:function(){return e.path,e[n]},set:function(t){e[n]=t},enumerable:!0,configurable:!0})}function xe(e,t){if(this.font=e,this.glyphs={},Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];r.path.unitsPerEm=e.unitsPerEm,this.glyphs[n]=r}this.length=t&&t.length||0}ye.prototype.bindConstructorValues=function(e){this.index=e.index||0,this.name=e.name||null,this.unicode=e.unicode||void 0,this.unicodes=e.unicodes||void 0!==e.unicode?[e.unicode]:[],"xMin"in e&&(this.xMin=e.xMin),"yMin"in e&&(this.yMin=e.yMin),"xMax"in e&&(this.xMax=e.xMax),"yMax"in e&&(this.yMax=e.yMax),"advanceWidth"in e&&(this.advanceWidth=e.advanceWidth),Object.defineProperty(this,"path",function(e,t){var n=t||new O;return{configurable:!0,get:function(){return"function"===typeof n&&(n=n()),n},set:function(e){n=e}}}(0,e.path))},ye.prototype.addUnicode=function(e){0===this.unicodes.length&&(this.unicode=e),this.unicodes.push(e)},ye.prototype.getBoundingBox=function(){return this.path.getBoundingBox()},ye.prototype.getPath=function(e,t,n,r,i){var o,a;e=void 0!==e?e:0,t=void 0!==t?t:0,n=void 0!==n?n:72,r||(r={});var s=r.xScale,l=r.yScale;
2if(r.hinting&&i&&i.hinting&&(a=this.path&&i.hinting.exec(this,n)),a)o=i.hinting.getCommands(a),e=Math.round(e),t=Math.round(t),s=l=1;else{o=this.path.commands;var c=1/(this.path.unitsPerEm||1e3)*n;void 0===s&&(s=c),void 0===l&&(l=c)}for(var u=new O,h=0;h<o.length;h+=1){var f=o[h];"M"===f.type?u.moveTo(e+f.x*s,t+-f.y*l):"L"===f.type?u.lineTo(e+f.x*s,t+-f.y*l):"Q"===f.type?u.quadraticCurveTo(e+f.x1*s,t+-f.y1*l,e+f.x*s,t+-f.y*l):"C"===f.type?u.curveTo(e+f.x1*s,t+-f.y1*l,e+f.x2*s,t+-f.y2*l,e+f.x*s,t+-f.y*l):"Z"===f.type&&u.closePath()}return u},ye.prototype.getContours=function(){if(void 0===this.points)return[];for(var e=[],t=[],n=0;n<this.points.length;n+=1){var r=this.points[n];t.push(r),r.lastPointOfContour&&(e.push(t),t=[])}return A.argument(0===t.length,"There are still points left in the current contour."),e},ye.prototype.getMetrics=function(){for(var e=this.path.commands,t=[],n=[],r=0;r<e.length;r+=1){var i=e[r];"Z"!==i.type&&(t.push(i.x),n.push(i.y)),"Q"!==i.type&&"C"!==i.type||(t.push(i.x1),n.push(i.y1)),"C"===i.type&&(t.push(i.x2),n.push(i.y2))}var o={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,n),xMax:Math.max.apply(null,t),yMax:Math.max.apply(null,n),leftSideBearing:this.leftSideBearing};return isFinite(o.xMin)||(o.xMin=0),isFinite(o.xMax)||(o.xMax=this.advanceWidth),isFinite(o.yMin)||(o.yMin=0),isFinite(o.yMax)||(o.yMax=0),o.rightSideBearing=this.advanceWidth-o.leftSideBearing-(o.xMax-o.xMin),o},ye.prototype.draw=function(e,t,n,r,i){this.getPath(t,n,r,i).draw(e)},ye.prototype.drawPoints=function(e,t,n,r){function i(t,n,r,i){e.beginPath();for(var o=0;o<t.length;
2o+=1)e.moveTo(n+t[o].x*i,r+t[o].y*i),e.arc(n+t[o].x*i,r+t[o].y*i,2,0,2*Math.PI,!1);e.closePath(),e.fill()}t=void 0!==t?t:0,n=void 0!==n?n:0,r=void 0!==r?r:24;for(var o=1/this.path.unitsPerEm*r,a=[],s=[],l=this.path,c=0;c<l.commands.length;c+=1){var u=l.commands[c];void 0!==u.x&&a.push({x:u.x,y:-u.y}),void 0!==u.x1&&s.push({x:u.x1,y:-u.y1}),void 0!==u.x2&&s.push({x:u.x2,y:-u.y2})}e.fillStyle="blue",i(a,t,n,o),e.fillStyle="red",i(s,t,n,o)},ye.prototype.drawMetrics=function(e,t,n,r){var i;t=void 0!==t?t:0,n=void 0!==n?n:0,r=void 0!==r?r:24,i=1/this.path.unitsPerEm*r,e.lineWidth=1,e.strokeStyle="black",me.line(e,t,-1e4,t,1e4),me.line(e,-1e4,n,1e4,n);var o=this.xMin||0,a=this.yMin||0,s=this.xMax||0,l=this.yMax||0,c=this.advanceWidth||0;e.strokeStyle="blue",me.line(e,t+o*i,-1e4,t+o*i,1e4),me.line(e,t+s*i,-1e4,t+s*i,1e4),me.line(e,-1e4,n+-a*i,1e4,n+-a*i),me.line(e,-1e4,n+-l*i,1e4,n+-l*i),e.strokeStyle="green",me.line(e,t+c*i,-1e4,t+c*i,1e4)},xe.prototype.get=function(e){if(void 0===this.glyphs[e]){this.font._push(e),"function"===typeof this.glyphs[e]&&(this.glyphs[e]=this.glyphs[e]());var t=this.glyphs[e],n=this.font._IndexToUnicodeMap[e];if(n)for(var r=0;r<n.unicodes.length;r++)t.addUnicode(n.unicodes[r]);this.font.cffEncoding?this.font.isCIDFont?t.name="gid"+e:t.name=this.font.cffEncoding.charset[e]:this.font.glyphNames.names&&(t.name=this.font.glyphNames.glyphIndexToName(e)),this.glyphs[e].advanceWidth=this.font._hmtxTableData[e].advanceWidth,this.glyphs[e].leftSideBearing=this.font._hmtxTableData[e].leftSideBearing}else"function"===typeof this.glyphs[e]&&(this.glyphs[e]=this.glyphs[e]());return this.glyphs[e]},xe.prototype.push=function(e,t){this.glyphs[e]=t,this.length++};var _e={GlyphSet:xe,glyphLoader:function(e,t){return new ye({index:t,font:e})},ttfGlyphLoader:function(e,t,n,r,i,o){return function(){var a=new ye({index:t,font:e});return a.path=function(){n(a,r,i);var t=o(e.glyphs,a);return t.unitsPerEm=e.unitsPerEm,t},be(a,"xMin","_xMin"),be(a,"xMax","_xMax"),be(a,"yMin","_yMin"),be(a,"yMax","_yMax"),a}},cffGlyphLoader:function(e,t,n,r){return function(){var i=new ye({index:t,font:e});return i.path=function(){var t=n(e,i,r);return t.unitsPerEm=e.unitsPerEm,t},i}}};function we(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n+=1)if(!we(e[n],t[n]))return!1;return!0}return!1}function Se(e){return e.length<1240?107:e.length<33900?1131:32768}function Ce(e,t,n){var r,i,o=[],a=[],s=oe.getCard16(e,t);if(0!==s){var l=oe.getByte(e,t+2);r=t+(s+1)*l+2;for(var c=t+3,u=0;u<s+1;u+=1)o.push(oe.getOffset(e,c,l)),c+=l;i=r+o[s]}else i=t+2;for(var h=0;h<o.length-1;h+=1){var f=oe.getBytes(e,r+o[h],r+o[h+1]);n&&(f=n(f)),a.push(f)}return{objects:a,startOffset:t,endOffset:i}}function ke(e,t){if(28===t)return e.parseByte()<<8|e.parseByte();if(29===t)return e.parseByte()<<24|e.parseByte()<<16|e.parseByte()<<8|e.parseByte();if(30===t)return function(e){for(var t="",n=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"];;){var r=e.parseByte(),i=r>>4,o=15&r;if(15===i)break;if(t+=n[i],15===o)break;t+=n[o]}return parseFloat(t)}(e);if(t>=32&&t<=246)return t-139;if(t>=247&&t<=250)return 256*(t-247)+e.parseByte()+108;if(t>=251&&t<=254)return 256*-(t-251)-e.parseByte()-108;throw new Error("Invalid b0 "+t)}function Oe(e,t,n){t=void 0!==t?t:0;var r=new oe.Parser(e,t),i=[],o=[];for(n=void 0!==n?n:e.length;r.relativeOffset<n;){var a=r.parseByte();a<=21?(12===a&&(a=1200+r.parseByte()),i.push([a,o]),o=[]):o.push(ke(r,a))}return function(e){for(var t={},n=0;n<e.length;n+=1){var r=e[n][0],i=e[n][1],o=void 0;if(o=1===i.length?i[0]:i,t.hasOwnProperty(r)&&!isNaN(t[r]))throw new Error("Object "+t+" already has key "+r);t[r]=o}return t}(i)}function Ee(e,t){return t=t<=390?le[t]:e[t-391]}function Te(e,t,n){for(var r,i={},o=0;o<t.length;o+=1){var a=t[o];if(Array.isArray(a.type)){var s=[];s.length=a.type.length;for(var l=0;l<a.type.length;l++)void 0===(r=void 0!==e[a.op]?e[a.op][l]:void 0)&&(r=void 0!==a.value&&void 0!==a.value[l]?a.value[l]:null),"SID"===a.type[l]&&(r=Ee(n,r)),s[l]=r;i[a.name]=s}else void 0===(r=e[a.op])&&(r=void 0!==a.value?a.value:null),"SID"===a.type&&(r=Ee(n,r)),i[a.name]=r}return i}var Ae=[{name:"version",op:0,type:"SID"},{name:"notice",op:1,type:"SID"},{name:"copyright",op:1200,type:"SID"},{name:"fullName",op:2,type:"SID"},{name:"familyName",op:3,type:"SID"},{name:"weight",op:4,type:"SID"},{name:"isFixedPitch",op:1201,type:"number",value:0},{name:"italicAngle",op:1202,type:"number",value:0},{name:"underlinePosition",op:1203,type:"number",value:-100},{name:"underlineThickness",op:1204,type:"number",value:50},{name:"paintType",op:1205,type:"number",value:0},{name:"charstringType",op:1206,type:"number",value:2}
2,{name:"fontMatrix",op:1207,type:["real","real","real","real","real","real"],value:[.001,0,0,.001,0,0]},{name:"uniqueId",op:13,type:"number"},{name:"fontBBox",op:5,type:["number","number","number","number"],value:[0,0,0,0]},{name:"strokeWidth",op:1208,type:"number",value:0},{name:"xuid",op:14,type:[],value:null},{name:"charset",op:15,type:"offset",value:0},{name:"encoding",op:16,type:"offset",value:0},{name:"charStrings",op:17,type:"offset",value:0},{name:"private",op:18,type:["number","offset"],value:[0,0]},{name:"ros",op:1230,type:["SID","SID","number"]},{name:"cidFontVersion",op:1231,type:"number",value:0},{name:"cidFontRevision",op:1232,type:"number",value:0},{name:"cidFontType",op:1233,type:"number",value:0},{name:"cidCount",op:1234,type:"number",value:8720},{name:"uidBase",op:1235,type:"number"},{name:"fdArray",op:1236,type:"offset"},{name:"fdSelect",op:1237,type:"offset"},{name:"fontName",op:1238,type:"SID"}],Pe=[{name:"subrs",op:19,type:"offset",value:0},{name:"defaultWidthX",op:20,type:"number",value:0},{name:"nominalWidthX",op:21,type:"number",value:0}];function je(e,t){return Te(Oe(e,0,e.byteLength),Ae,t)}function Le(e,t,n,r){return Te(Oe(e,t,n),Pe,r)}function Me(e,t,n,r){for(var i=[],o=0;o<n.length;o+=1){var a=je(new DataView(new Uint8Array(n[o]).buffer),r);a._subrs=[],a._subrsBias=0;var s=a.private[0],l=a.private[1];if(0!==s&&0!==l){var c=Le(e,l+t,s,r);if(a._defaultWidthX=c.defaultWidthX,a._nominalWidthX=c.nominalWidthX,0!==c.subrs){var u=Ce(e,l+c.subrs+t);a._subrs=u.objects,a._subrsBias=Se(a._subrs)}a._privateDict=c}i.push(a)}return i}function Re(e,t,n){var r,i,o,a,s,l,c,u,h=new O,f=[],d=0,p=!1,g=!1,v=0,m=0;if(e.isCIDFont){var y=e.tables.cff.topDict._fdSelect[t.index],b=e.tables.cff.topDict._fdArray[y];s=b._subrs,l=b._subrsBias,c=b._defaultWidthX,u=b._nominalWidthX}else s=e.tables.cff.topDict._subrs,l=e.tables.cff.topDict._subrsBias,c=e.tables.cff.topDict._defaultWidthX,u=e.tables.cff.topDict._nominalWidthX;var x=c;function _(e,t){g&&h.closePath(),h.moveTo(e,t),g=!0}function w(){f.length%2!==0&&!p&&(x=f.shift()+u),d+=f.length>>1,f.length=0,p=!0}return function n(c){for(var y,b,S,C,k,O,E,T,A,P,j,L,M=0;M<c.length;){var R=c[M];switch(M+=1,R){case 1:case 3:w();break;case 4:f.length>1&&!p&&(x=f.shift()+u,p=!0),m+=f.pop(),_(v,m);break;case 5:for(;f.length>0;)v+=f.shift(),m+=f.shift(),h.lineTo(v,m);break;case 6:for(;f.length>0&&(v+=f.shift(),h.lineTo(v,m),0!==f.length);)m+=f.shift(),h.lineTo(v,m);break;case 7:for(;f.length>0&&(m+=f.shift(),h.lineTo(v,m),0!==f.length);)v+=f.shift(),h.lineTo(v,m);break;case 8:for(;f.length>0;)r=v+f.shift(),i=m+f.shift(),o=r+f.shift(),a=i+f.shift(),v=o+f.shift(),m=a+f.shift(),h.curveTo(r,i,o,a,v,m);break;case 10:k=f.pop()+l,(O=s[k])&&n(O);break;case 11:return;case 12:switch(R=c[M],M+=1,R){case 35:r=v+f.shift(),i=m+f.shift(),o=r+f.shift(),a=i+f.shift(),E=o+f.shift(),T=a+f.shift(),A=E+f.shift(),P=T+f.shift(),j=A+f.shift(),L=P+f.shift(),v=j+f.shift(),m=L+f.shift(),f.shift(),h.curveTo(r,i,o,a,E,T),h.curveTo(A,P,j,L,v,m);break;case 34:r=v+f.shift(),i=m,o=r+f.shift(),a=i+f.shift(),E=o+f.shift(),T=a,A=E+f.shift(),P=a,j=A+f.shift(),L=m,v=j+f.shift(),h.curveTo(r,i,o,a,E,T),h.curveTo(A,P,j,L,v,m);break;case 36:r=v+f.shift(),i=m+f.shift(),o=r+f.shift(),a=i+f.shift(),E=o+f.shift(),T=a,A=E+f.shift(),P=a,j=A+f.shift(),L=P+f.shift(),v=j+f.shift(),h.curveTo(r,i,o,a,E,T),h.curveTo(A,P,j,L,v,m);break;case 37:r=v+f.shift(),i=m+f.shift(),o=r+f.shift(),a=i+f.shift(),E=o+f.shift(),T=a+f.shift(),A=E+f.shift(),P=T+f.shift(),j=A+f.shift(),L=P+f.shift(),Math.abs(j-v)>Math.abs(L-m)?v=j+f.shift():m=L+f.shift(),h.curveTo(r,i,o,a,E,T),h.curveTo(A,P,j,L,v,m);break;default:console.log("Glyph "+t.index+": unknown operator 1200"+R),f.length=0}break;case 14:f.length>0&&!p&&(x=f.shift()+u,p=!0),g&&(h.closePath(),g=!1);break;case 18:w();break;case 19:case 20:w(),M+=d+7>>3;break;case 21:f.length>2&&!p&&(x=f.shift()+u,p=!0),m+=f.pop(),_(v+=f.pop(),m);break;case 22:f.length>1&&!p&&(x=f.shift()+u,p=!0),_(v+=f.pop(),m);break;case 23:w();break;case 24:for(;f.length>2;)r=v+f.shift(),i=m+f.shift(),o=r+f.shift(),a=i+f.shift(),v=o+f.shift(),m=a+f.shift(),h.curveTo(r,i,o,a,v,m);v+=f.shift(),m+=f.shift(),h.lineTo(v,m);break;case 25:for(;f.length>6;)v+=f.shift(),m+=f.shift(),h.lineTo(v,m);r=v+f.shift(),i=m+f.shift(),o=r+f.shift(),a=i+f.shift(),v=o+f.shift(),m=a+f.shift(),h.curveTo(r,i,o,a,v,m);break;case 26:for(f.length%2&&(v+=f.shift());f.length>0;)r=v,i=m+f.shift(),o=r+f.shift(),a=i+f.shift(),v=o,m=a+f.shift(),h.curveTo(r,i,o,a,v,m);break;case 27:for(f.length%2&&(m+=f.shift());f.length>0;
2)r=v+f.shift(),i=m,o=r+f.shift(),a=i+f.shift(),v=o+f.shift(),m=a,h.curveTo(r,i,o,a,v,m);break;case 28:y=c[M],b=c[M+1],f.push((y<<24|b<<16)>>16),M+=2;break;case 29:k=f.pop()+e.gsubrsBias,(O=e.gsubrs[k])&&n(O);break;case 30:for(;f.length>0&&(r=v,i=m+f.shift(),o=r+f.shift(),a=i+f.shift(),v=o+f.shift(),m=a+(1===f.length?f.shift():0),h.curveTo(r,i,o,a,v,m),0!==f.length);)r=v+f.shift(),i=m,o=r+f.shift(),a=i+f.shift(),m=a+f.shift(),v=o+(1===f.length?f.shift():0),h.curveTo(r,i,o,a,v,m);break;case 31:for(;f.length>0&&(r=v+f.shift(),i=m,o=r+f.shift(),a=i+f.shift(),m=a+f.shift(),v=o+(1===f.length?f.shift():0),h.curveTo(r,i,o,a,v,m),0!==f.length);)r=v,i=m+f.shift(),o=r+f.shift(),a=i+f.shift(),v=o+f.shift(),m=a+(1===f.length?f.shift():0),h.curveTo(r,i,o,a,v,m);break;default:R<32?console.log("Glyph "+t.index+": unknown operator "+R):R<247?f.push(R-139):R<251?(y=c[M],M+=1,f.push(256*(R-247)+y+108)):R<255?(y=c[M],M+=1,f.push(256*-(R-251)-y-108)):(y=c[M],b=c[M+1],S=c[M+2],C=c[M+3],M+=4,f.push((y<<24|b<<16|S<<8|C)/65536))}}}(n),t.advanceWidth=x,h}function De(e,t){var n,r=le.indexOf(e);return r>=0&&(n=r),(r=t.indexOf(e))>=0?n=r+le.length:(n=le.length+t.length,t.push(e)),n}function Ie(e,t,n){for(var r={},i=0;i<e.length;i+=1){var o=e[i],a=t[o.name];void 0===a||we(a,o.value)||("SID"===o.type&&(a=De(a,n)),r[o.op]={name:o.name,type:o.type,value:a})}return r}function Ne(e,t){var n=new Z.Record("Top DICT",[{name:"dict",type:"DICT",value:{}}]);return n.dict=Ie(Ae,e,t),n}function Fe(e){var t=new Z.Record("Top DICT INDEX",[{name:"topDicts",type:"INDEX",value:[]}]);return t.topDicts=[{name:"topDict_0",type:"TABLE",value:e}],t}function Be(e){var t=[],n=e.path;t.push({name:"width",type:"NUMBER",value:e.advanceWidth});for(var r=0,i=0,o=0;o<n.commands.length;o+=1){var a=void 0,s=void 0,l=n.commands[o];if("Q"===l.type){var c=1/3,u=2/3;l={type:"C",x:l.x,y:l.y,x1:c*r+u*l.x1,y1:c*i+u*l.y1,x2:c*l.x+u*l.x1,y2:c*l.y+u*l.y1}}if("M"===l.type)a=Math.round(l.x-r),s=Math.round(l.y-i),t.push({name:"dx",type:"NUMBER",value:a}),t.push({name:"dy",type:"NUMBER",value:s}),t.push({name:"rmoveto",type:"OP",value:21}),r=Math.round(l.x),i=Math.round(l.y);else if("L"===l.type)a=Math.round(l.x-r),s=Math.round(l.y-i),t.push({name:"dx",type:"NUMBER",value:a}),t.push({name:"dy",type:"NUMBER",value:s}),t.push({name:"rlineto",type:"OP",value:5}),r=Math.round(l.x),i=Math.round(l.y);else if("C"===l.type){var h=Math.round(l.x1-r),f=Math.round(l.y1-i),d=Math.round(l.x2-l.x1),p=Math.round(l.y2-l.y1);a=Math.round(l.x-l.x2),s=Math.round(l.y-l.y2),t.push({name:"dx1",type:"NUMBER",value:h}),t.push({name:"dy1",type:"NUMBER",value:f}),t.push({name:"dx2",type:"NUMBER",value:d}),t.push({name:"dy2",type:"NUMBER",value:p}),t.push({name:"dx",type:"NUMBER",value:a}),t.push({name:"dy",type:"NUMBER",value:s}),t.push({name:"rrcurveto",type:"OP",value:8}),r=Math.round(l.x),i=Math.round(l.y)}}return t.push({name:"endchar",type:"OP",value:14}),t}var Ue={parse:function(e,t,n,r){n.tables.cff={};var i=function(e,t){var n={};return n.formatMajor=oe.getCard8(e,t),n.formatMinor=oe.getCard8(e,t+1),n.size=oe.getCard8(e,t+2),n.offsetSize=oe.getCard8(e,t+3),n.startOffset=t,n.endOffset=t+4,n}(e,t),o=Ce(e,i.endOffset,oe.bytesToString),a=Ce(e,o.endOffset),s=Ce(e,a.endOffset,oe.bytesToString),l=Ce(e,s.endOffset);n.gsubrs=l.objects,n.gsubrsBias=Se(n.gsubrs);var c=Me(e,t,a.objects,s.objects);if(1!==c.length)throw new Error("CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = "+c.length);var u=c[0];if(n.tables.cff.topDict=u,u._privateDict&&(n.defaultWidthX=u._privateDict.defaultWidthX,n.nominalWidthX=u._privateDict.nominalWidthX),void 0!==u.ros[0]&&void 0!==u.ros[1]&&(n.isCIDFont=!0),n.isCIDFont){var h=u.fdArray,f=u.fdSelect;if(0===h||0===f)throw new Error("Font is marked as a CID font, but FDArray and/or FDSelect information is missing");var d=Ce(e,h+=t),p=Me(e,t,d.objects,s.objects);u._fdArray=p,f+=t,u._fdSelect=function(e,t,n,r){var i,o=[],a=new oe.Parser(e,t),s=a.parseCard8();if(0===s)for(var l=0;l<n;l++){if((i=a.parseCard8())>=r)throw new Error("CFF table CID Font FDSelect has bad FD index value "+i+" (FD count "+r+")");o.push(i)}else{if(3!==s)throw new Error("CFF Table CID Font FDSelect table has unsupported format "+s);var c,u=a.parseCard16(),h=a.parseCard16();if(0!==h)throw new Error("CFF Table CID Font FDSelect format 3 range has bad initial GID "+h);for(var f=0;f<u;f++){if(i=a.parseCard8(),c=a.parseCard16(),i>=r)throw new Error("CFF table CID Font FDSelect has bad FD index value "+i+" (FD count "+r+")");if(c>n)throw new Error("CFF Table CID Font FDSelect format 3 range has bad GID "+c);for(;h<c;h++)o.push(i);h=c}if(c!==n)throw new Error("CFF Table CID Font FDSelect format 3 range has bad final GID "+c)}return o}(e,f,n.numGlyphs,p.length)}var g,v=t+u.private[1],m=Le(e,v,u.private[0],s.objects);if(n.defaultWidthX=m.defaultWidthX,n.nominalWidthX=m.nominalWidthX,0!==m.subrs){var y=v+m.subrs,b=Ce(e,y);n.subrs=b.objects,n.subrsBias=Se(n.subrs)}else n.subrs=[],n.subrsBias=0;r.lowMemory?(g=function(e,t){var n,r,i=[],o=oe.getCard16(e,t);if(0!==o){var a=oe.getByte(e,t+2);n=t+(o+1)*a+2;for(var s=t+3,l=0;l<o+1;l+=1)i.push(oe.getOffset(e,s,a)),s+=a;r=n+i[o]}else r=t+2;return{offsets:i,startOffset:t,endOffset:r}}(e,t+u.charStrings),n.nGlyphs=g.offsets.length):(g=Ce(e,t+u.charStrings),n.nGlyphs=g.objects.length);var x=function(e,t,n,r){var i,o,a=new oe.Parser(e,t);n-=1;var s=[".notdef"],l=a.parseCard8();if(0===l)for(var c=0;c<n;c+=1)i=a.parseSID(),s.push(Ee(r,i));else if(1===l)for(;s.length<=n;){i=a.parseSID(),o=a.parseCard8();for(var u=0;u<=o;u+=1)s.push(Ee(r,i)),i+=1}else{if(2!==l)throw new Error("Unknown charset format "+l);for(;s.length<=n;){i=a.parseSID(),o=a.parseCard16();for(var h=0;h<=o;h+=1)s.push(Ee(r,i)),i+=1}}return s}(e,t+u.charset,n.nGlyphs,s.objects);if(0===u.encoding?n.cffEncoding=new pe(ce,x):1===u.encoding?n.cffEncoding=new pe(ue,x):n.cffEncoding=function(e,t,n){var r,i={},o=new oe.Parser(e,t),a=o.parseCard8();if(0===a)for(var s=o.parseCard8(),l=0;l<s;l+=1)i[r=o.parseCard8()]=l;else{if(1!==a)throw new Error("Unknown encoding format "+a);var c=o.parseCard8();r=1;for(var u=0;u<c;u+=1)for(var h=o.parseCard8(),f=o.parseCard8(),d=h;d<=h+f;d+=1)i[d]=r,r+=1}return new pe(i,n)}(e,t+u.encoding,x),n.encoding=n.encoding||n.cffEncoding,n.glyphs=new _e.GlyphSet(n),r.lowMemory)n._push=function(r){var i=function(e,t,n,r,i){var o=oe.getCard16(n,r),a=0;0!==o&&(a=r+(o+1)*oe.getByte(n,r+2)+2);var s=oe.getBytes(n,a+t[e],a+t[e+1]);return i&&(s=i(s)),s}(r,g.offsets,e,t+u.charStrings);n.glyphs.push(r,_e.cffGlyphLoader(n,r,Re,i))};else for(var _=0;_<n.nGlyphs;_+=1){var w=g.objects[_];n.glyphs.push(_,_e.cffGlyphLoader(n,_,Re,w))}},make:function(e,t){for(var n,r=new Z.Table("CFF ",[{name:"header",type:"RECORD"},{name:"nameIndex",type:"RECORD"},{name:"topDictIndex",type:"RECORD"},{name:"stringIndex",type:"RECORD"},{name:"globalSubrIndex",type:"RECORD"},{name:"charsets",type:"RECORD"},{name:"charStringsIndex",type:"RECORD"},{name:"privateDict",type:"RECORD"}]),i=1/t.unitsPerEm,o={version:t.version,fullName:t.fullName,familyName:t.familyName,weight:t.weightName,fontBBox:t.fontBBox||[0,0,0,0],fontMatrix:[i,0,0,i,0,0],charset:999,encoding:0,charStrings:999,private:[0,999]},a=[],s=1;s<e.length;s+=1)n=e.get(s),a.push(n.name);var l=[];r.header=new Z.Record("Header",[{name:"major",type:"Card8",value:1},{name:"minor",type:"Card8",value:0},{name:"hdrSize",type:"Card8",value:4},{name:"major",type:"Card8",value:1}]),r.nameIndex=function(e){var t=new Z.Record("Name INDEX",[{name:"names",type:"INDEX",value:[]}]);t.names=[];for(var n=0;n<e.length;n+=1)t.names.push({name:"name_"+n,type:"NAME",value:e[n]});return t}([t.postScriptName]);var c=Ne(o,l);r.topDictIndex=Fe(c),r.globalSubrIndex=new Z.Record("Global Subr INDEX",[{name:"subrs",type:"INDEX",value:[]}]),r.charsets=function(e,t){for(var n=new Z.Record("Charsets",[{name:"format",type:"Card8",value:0}]),r=0;r<e.length;r+=1){var i=De(e[r],t);n.fields.push({name:"glyph_"+r,type:"SID",value:i})}return n}(a,l),r.charStringsIndex=function(e){for(var t=new Z.Record("CharStrings INDEX",[{name:"charStrings",type:"INDEX",value:[]}]),n=0;n<e.length;n+=1){var r=e.get(n),i=Be(r);t.charStrings.push({name:r.name,type:"CHARSTRING",value:i})}return t}(e),r.privateDict=function(e,t){var n=new Z.Record("Private DICT",[{name:"dict",type:"DICT",value:{}}]);return n.dict=Ie(Pe,e,t),n}({},l),r.stringIndex=function(e){var t=new Z.Record("String INDEX",[{name:"strings",type:"INDEX",value:[]}]);t.strings=[];for(var n=0;n<e.length;n+=1)t.strings.push({name:"string_"+n,type:"STRING",value:e[n]});return t}(l);var u=r.header.sizeOf()+r.nameIndex.sizeOf()+r.topDictIndex.sizeOf()+r.stringIndex.sizeOf()+r.globalSubrIndex.sizeOf();return o.charset=u,o.encoding=0,o.charStrings=o.charset+r.charsets.sizeOf(),o.private[1]=o.charStrings+r.charStringsIndex.sizeOf(),c=Ne(o,l),r.topDictIndex=Fe(c),r}};var ze={parse:function(e,t){var n={},r=new oe.Parser(e,t);return n.version=r.parseVersion(),n.fontRevision=Math.round(1e3*r.parseFixed())/1e3,n.checkSumAdjustment=r.parseULong(),n.magicNumber=r.parseULong(),A.argument(1594834165===n.magicNumber,"Font header has wrong magic number."),n.flags=r.parseUShort(),n.unitsPerEm=r.parseUShort(),n.created=r.parseLongDateTime(),n.modified=r.parseLongDateTime(),n.xMin=r.parseShort(),n.yMin=r.parseShort(),n.xMax=r.parseShort(),n.yMax=r.parseShort(),n.macStyle=r.parseUShort(),n.lowestRecPPEM=r.parseUShort(),n.fontDirectionHint=r.parseShort(),n.indexToLocFormat=r.parseShort(),n.glyphDataFormat=r.parseShort(),n},make:function(e){var t=Math.round((new Date).getTime()/1e3)+2082844800,n=t;return e.createdTimestamp&&(n=e.createdTimestamp+2082844800),new Z.Table("head",[{name:"version",type:"FIXED",value:65536},{name:"fontRevision",type:"FIXED",value:65536},{name:"checkSumAdjustment",type:"ULONG",value:0},{name:"magicNumber",type:"ULONG",value:1594834165},{name:"flags",type:"USHORT",value:0},{name:"unitsPerEm",type:"USHORT",value:1e3},{name:"created",type:"LONGDATETIME",value:n},{name:"modified",type:"LONGDATETIME",value:t},{name:"xMin",type:"SHORT",value:0},{name:"yMin",type:"SHORT",value:0},{name:"xMax",type:"SHORT",value:0},{name:"yMax",type:"SHORT",value:0},{name:"macStyle",type:"USHORT",value:0},{name:"lowestRecPPEM",type:"USHORT",value:0},{name:"fontDirectionHint",type:"SHORT",value:2},{name:"indexToLocFormat",type:"SHORT",value:0},{name:"glyphDataFormat",type:"SHORT",value:0}],e)}};var Ve={parse:function(e,t){var n={},r=new oe.Parser(e,t);return n.version=r.parseVersion(),n.ascender=r.parseShort(),n.descender=r.parseShort(),n.lineGap=r.parseShort(),n.advanceWidthMax=r.parseUShort(),n.minLeftSideBearing=r.parseShort(),n.minRightSideBearing=r.parseShort(),n.xMaxExtent=r.parseShort(),n.caretSlopeRise=r.parseShort(),n.caretSlopeRun=r.parseShort(),n.caretOffset=r.parseShort(),r.relativeOffset+=8,n.metricDataFormat=r.parseShort(),n.numberOfHMetrics=r.parseUShort(),n},make:function(e){return new Z.Table("hhea",[{name:"version",type:"FIXED",value:65536},{name:"ascender",type:"FWORD",value:0},{name:"descender",type:"FWORD",value:0},{name:"lineGap",type:"FWORD",value:0},{name:"advanceWidthMax",type:"UFWORD",value:0},{name:"minLeftSideBearing",type:"FWORD",value:0},{name:"minRightSideBearing",type:"FWORD",value:0},{name:"xMaxExtent",type:"FWORD",value:0},{name:"caretSlopeRise",type:"SHORT",value:1},{name:"caretSlopeRun",type:"SHORT",value:0},{name:"caretOffset",type:"SHORT",value:0},{name:"reserved1",type:"SHORT",value:0},{name:"reserved2",type:"SHORT",value:0},{name:"reserved3",type:"SHORT",value:0},{name:"reserved4",type:"SHORT",value:0},{name:"metricDataFormat",type:"SHORT",value:0},{name:"numberOfHMetrics",type:"USHORT",value:0}],e)}};var He={parse:function(e,t,n,r,i,o,a){a.lowMemory?function(e,t,n,r,i){var o,a;e._hmtxTableData={};for(var s=new oe.Parser(t,n),l=0;l<i;l+=1)l<r&&(o=s.parseUShort(),a=s.parseShort()),e._hmtxTableData[l]={advanceWidth:o,leftSideBearing:a}}(e,t,n,r,i):function(e,t,n,r,i){for(var o,a,s=new oe.Parser(e,t),l=0;l<r;l+=1){l<n&&(o=s.parseUShort(),a=s.parseShort());var c=i.get(l);c.advanceWidth=o,c.leftSideBearing=a}}(t,n,r,i,o)},make:function(e){for(var t=new Z.Table("hmtx",[]),n=0;n<e.length;n+=1){var r=e.get(n),i=r.advanceWidth||0,o=r.leftSideBearing||0;t.fields.push({name:"advanceWidth_"+n,type:"USHORT",value:i}),t.fields.push({name:"leftSideBearing_"+n,type:"SHORT",value:o})}return t}};var We={make:function(e){for(var t=new Z.Table("ltag",[{name:"version",type:"ULONG",value:1},{name:"flags",type:"ULONG",value:0},{name:"numTags",type:"ULONG",value:e.length}]),n="",r=12+4*e.length,i=0;i<e.length;++i){var o=n.indexOf(e[i]);o<0&&(o=n.length,n+=e[i]),t.fields.push({name:"offset "+i,type:"USHORT",value:r+o}),t.fields.push({name:"length "+i,type:"USHORT",value:e[i].length})}return t.fields.push({name:"stringPool",type:"CHARARRAY",value:n}),t},parse:function(e,t){var n=new oe.Parser(e,t),r=n.parseULong();A.argument(1===r,"Unsupported ltag table version."),n.skip("uLong",1);for(var i=n.parseULong(),o=[],a=0;a<i;a++){for(var s="",l=t+n.parseUShort(),c=n.parseUShort(),u=l;u<l+c;++u)s+=String.fromCharCode(e.getInt8(u));o.push(s)}return o}};var Ge={parse:function(e,t){var n={},r=new oe.Parser(e,t);return n.version=r.parseVersion(),n.numGlyphs=r.parseUShort(),1===n.version&&(n.maxPoints=r.parseUShort(),n.maxContours=r.parseUShort(),n.maxCompositePoints=r.parseUShort(),n.maxCompositeContours=r.parseUShort(),n.maxZones=r.parseUShort(),n.maxTwilightPoints=r.parseUShort(),n.maxStorage=r.parseUShort(),n.maxFunctionDefs=r.parseUShort(),n.maxInstructionDefs=r.parseUShort(),n.maxStackElements=r.parseUShort(),n.maxSizeOfInstru
2ctions=r.parseUShort(),n.maxComponentElements=r.parseUShort(),n.maxComponentDepth=r.parseUShort()),n},make:function(e){return new Z.Table("maxp",[{name:"version",type:"FIXED",value:20480},{name:"numGlyphs",type:"USHORT",value:e}])}},qe=["copyright","fontFamily","fontSubfamily","uniqueID","fullName","version","postScriptName","trademark","manufacturer","designer","description","manufacturerURL","designerURL","license","licenseURL","reserved","preferredFamily","preferredSubfamily","compatibleFullName","sampleText","postScriptFindFontName","wwsFamily","wwsSubfamily"],Xe={0:"en",1:"fr",2:"de",3:"it",4:"nl",5:"sv",6:"es",7:"da",8:"pt",9:"no",10:"he",11:"ja",12:"ar",13:"fi",14:"el",15:"is",16:"mt",17:"tr",18:"hr",19:"zh-Hant",20:"ur",21:"hi",22:"th",23:"ko",24:"lt",25:"pl",26:"hu",27:"es",28:"lv",29:"se",30:"fo",31:"fa",32:"ru",33:"zh",34:"nl-BE",35:"ga",36:"sq",37:"ro",38:"cz",39:"sk",40:"si",41:"yi",42:"sr",43:"mk",44:"bg",45:"uk",46:"be",47:"uz",48:"kk",49:"az-Cyrl",50:"az-Arab",51:"hy",52:"ka",53:"mo",54:"ky",55:"tg",56:"tk",57:"mn-CN",58:"mn",59:"ps",60:"ks",61:"ku",62:"sd",63:"bo",64:"ne",65:"sa",66:"mr",67:"bn",68:"as",69
2:"gu",70:"pa",71:"or",72:"ml",73:"kn",74:"ta",75:"te",76:"si",77:"my",78:"km",79:"lo",80:"vi",81:"id",82:"tl",83:"ms",84:"ms-Arab",85:"am",86:"ti",87:"om",88:"so",89:"sw",90:"rw",91:"rn",92:"ny",93:"mg",94:"eo",128:"cy",129:"eu",130:"ca",131:"la",132:"qu",133:"gn",134:"ay",135:"tt",136:"ug",137:"dz",138:"jv",139:"su",140:"gl",141:"af",142:"br",143:"iu",144:"gd",145:"gv",146:"ga",147:"to",148:"el-polyton",149:"kl",150:"az",151:"nn"},Ye={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:5,11:1,12:4,13:0,14:6,15:0,16:0,17:0,18:0,19:2,20:4,21:9,22:21,23:3,24:29,25:29,26:29,27:29,28:29,29:0,30:0,31:4,32:7,33:25,34:0,35:0,36:0,37:0,38:29,39:29,40:0,41:5,42:7,43:7,44:7,45:7,46:7,47:7,48:7,49:7,50:4,51:24,52:23,53:7,54:7,55:7,56:7,57:27,58:7,59:4,60:4,61:4,62:4,63:26,64:9,65:9,66:9,67:13,68:13,69:11,70:10,71:12,72:17,73:16,74:14,75:15,76:18,77:19,78:20,79:22,80:30,81:0,82:0,83:0,84:4,85:28,86:28,87:28,88:0,89:0,90:0,91:0,92:0,93:0,94:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:7,136:4,137:26,138:0,139:0,140:0,141:0,142:0,143:28,144:0,145:0,146:0,147:0,148:6,149:0,150:0,151:0},$e={1078:"af",1052:"sq",1156:"gsw",1118:"am",5121:"ar-DZ",15361:"ar-BH",3073:"ar",2049:"ar-IQ",11265:"ar-JO",13313:"ar-KW",12289:"ar-LB",4097:"ar-LY",6145:"ary",8193:"ar-OM",16385:"ar-QA",1025:"ar-SA",10241:"ar-SY",7169:"aeb",14337:"ar-AE",9217:"ar-YE",1067:"hy",1101:"as",2092:"az-Cyrl",1068:"az",1133:"ba",1069:"eu",1059:"be",2117:"bn",1093:"bn-IN",8218:"bs-Cyrl",5146:"bs",1150:"br",1026:"bg",1027:"ca",3076:"zh-HK",5124:"zh-MO",2052:"zh",4100:"zh-SG",1028:"zh-TW",1155:"co",1050:"hr",4122:"hr-BA",1029:"cs",1030:"da",1164:"prs",1125:"dv",2067:"nl-BE",1043:"nl",3081:"en-AU",10249:"en-BZ",4105:"en-CA",9225:"en-029",16393:"en-IN",6153:"en-IE",8201:"en-JM",17417:"en-MY",5129:"en-NZ",13321:"en-PH",18441:"en-SG",7177:"en-ZA",11273:"en-TT",2057:"en-GB",1033:"en",12297:"en-ZW",1061:"et",1080:"fo",1124:"fil",1035:"fi",2060:"fr-BE",3084:"fr-CA",1036:"fr",5132:"fr-LU",6156:"fr-MC",4108:"fr-CH",1122:"fy",1110:"gl",1079:"ka",3079:"de-AT",1031:"de",5127:"de-LI",4103:"de-LU",2055:"de-CH",1032:"el",1135:"kl",1095:"gu",1128:"ha",1037:"he",1081:"hi",1038:"hu",1039:"is",1136:"ig",1057:"id",1117:"iu",2141:"iu-Latn",2108:"ga",1076:"xh",1077:"zu",104
20:"it",2064:"it-CH",1041:"ja",1099:"kn",1087:"kk",1107:"km",1158:"quc",1159:"rw",1089:"sw",1111:"kok",1042:"ko",1088:"ky",1108:"lo",1062:"lv",1063:"lt",2094:"dsb",1134:"lb",1071:"mk",2110:"ms-BN",1086:"ms",1100:"ml",1082:"mt",1153:"mi",1146:"arn",1102:"mr",1148:"moh",1104:"mn",2128:"mn-CN",1121:"ne",1044:"nb",2068:"nn",1154:"oc",1096:"or",1123:"ps",1045:"pl",1046:"pt",2070:"pt-PT",1094:"pa",1131:"qu-BO",2155:"qu-EC",3179:"qu",1048:"ro",1047:"rm",1049:"ru",9275:"smn",4155:"smj-NO",5179:"smj",3131:"se-FI",1083:"se",2107:"se-SE",8251:"sms",6203:"sma-NO",7227:"sms",1103:"sa",7194:"sr-Cyrl-BA",3098:"sr",6170:"sr-Latn-BA",2074:"sr-Latn",1132:"nso",1074:"tn",1115:"si",1051:"sk",1060:"sl",11274:"es-AR",16394:"es-BO",13322:"es-CL",9226:"es-CO",5130:"es-CR",7178:"es-DO",12298:"es-EC",17418:"es-SV",4106:"es-GT",18442:"es-HN",2058:"es-MX",19466:"es-NI",6154:"es-PA",15370:"es-PY",10250:"es-PE",20490:"es-PR",3082:"es",1034:"es",21514:"es-US",14346:"es-UY",8202:"es-VE",2077:"sv-FI",1053:"sv",1114:"syr",1064:"tg",2143:"tzm",1097:"ta",1092:"tt",1098:"te",1054:"th",1105:"bo",1055:"tr",1090:"tk",1152:"ug",1058:"uk",1070:"hsb",1056:"ur",2115:"uz-Cyrl",1091:"uz",1066:"vi",1106:"cy",1160:"wo",1157:"sah",1144:"ii",1130:"yo"};function Ke(e,t,n){switch(e){case 0:if(65535===t)return"und";if(n)return n[t];break;case 1:return Xe[t];case 3:return $e[t]}}var Ze="utf-16",Qe={0:"macintosh",1:"x-mac-japanese",2:"x-mac-chinesetrad",3:"x-mac-korean",6:"x-mac-greek",7:"x-mac-cyrillic",9:"x-mac-devanagai",10:"x-mac-gurmukhi",11:"x-mac-gujarati",12:"x-mac-oriya",13:"x-mac-bengali",14:"x-mac-tamil",15:"x-mac-telugu",16:"x-mac-kannada",17:"x-mac-malayalam",18:"x-mac-sinhalese",19:"x-mac-burmese",20:"x-mac-khmer",21:"x-mac-thai",22:"x-mac-lao",23:"x-mac-georgian",24:"x-mac-armenian",25:"x-mac-chinesesimp",26:"x-mac-tibetan",27:"x-mac-mongolian",28:"x-mac-ethiopic",29:"x-mac-ce",30:"x-mac-vietnamese",31:"x-mac-extarabic"},Je={15:"x-mac-icelandic",17:"x-mac-turkish",18:"x-mac-croatian",24:"x-mac-ce",25:"x-mac-ce",26:"x-mac-ce",27:"x-mac-ce",28:"x-mac-ce",30:"x-mac-icelandic",37:"x-mac-romanian",38:"x-mac-ce",39:"x-mac-ce",40:"x-mac-ce",143:"x-mac-inuit",146:"x-mac-gaelic"};function et(e,t,n){switch(e){case 0:return Ze;case 1:return Je[n]||Qe[t];case 3:if(1===t||10===t)return Ze}}function tt(e){var t={};for(var n in e)t[e[n]]=parseInt(n);return t}function nt(e,t,n,r,i,o){return new Z.Record("NameRecord",[{name:"platformID",type:"USHORT",value:e},{name:"encodingID",type:"USHORT",value:t},{name:"languageID",type:"USHORT",value:n},{name:"nameID",type:"USHORT",value:r},{name:"length",type:"USHORT",value:i},{name:"offset",type:"USHORT",value:o}])}function rt(e,t){var n=function(e,t){var n=e.length,r=t.length-n+1;e:for(var i=0;i<r;i++)for(;i<r;i++){for(var o=0;o<n;o++)if(t[i+o]!==e[o])continue e;return i}return-1}(e,t);if(n<0){n=t.length;for(var r=0,i=e.length;r<i;++r)t.push(e[r])}return n}var it={parse:function(e,t,n){for(var r={},i=new oe.Parser(e,t),o=i.parseUShort(),a=i.parseUShort(),s=i.offset+i.parseUShort(),l=0;l<a;l++){var c=i.parseUShort(),u=i.parseUShort(),h=i.parseUShort(),f=i.parseUShort(),d=qe[f]||f,p=i.parseUShort(),g=i.parseUShort(),v=Ke(c,h,n),m=et(c,u,h);if(void 0!==m&&void 0!==v){var y=void 0;if(y=m===Ze?j.UTF16(e,s+g,p):j.MACSTRING(e,s+g,p,m)){var b=r[d];void 0===b&&(b=r[d]={}),b[v]=y}}}return 1===o&&i.parseUShort(),r},make:function(e,t){var n,r=[],i={},o=tt(qe);for(var a in e){var s=o[a];if(void 0===s&&(s=a),n=parseInt(s),isNaN(n))throw new Error('Name table entry "'+a+'" does not exist, see nameTableNames for complete list.');i[n]=e[a],r.push(n)}for(var l=tt(Xe),c=tt($e),u=[],h=[],f=0;f<r.length;f++){var d=i[n=r[f]];for(var p in d){var g=d[p],v=1,m=l[p],y=Ye[m],b=et(v,y,m),x=L.MACSTRING(g,b);void 0===x&&(v=0,(m=t.indexOf(p))<0&&(m=t.length,t.push(p)),y=4,x=L.UTF16(g));var _=rt(x,h);u.push(nt(v,y,m,n,x.length,_));var w=c[p];if(void 0!==w){var S=L.UTF16(g),C=rt(S,h);u.push(nt(3,1,w,n,S.length,C))}}}u.sort((function(e,t){return e.platformID-t.platformID||e.encodingID-t.encodingID||e.languageID-t.languageID||e.nameID-t.nameID}));for(var k=new Z.Table("name",[{name:"format",type:"USHORT",value:0},{name:"count",type:"USHORT",value:u.length},{name:"stringOffset",type:"USHORT",value:6+12*u.length}]),O=0;O<u.length;O++)k.fields.push({name:"record_"+O,type:"RECORD",value:u[O]});return k.fields.push({name:"strings",type:"LITERAL",value:h}),k}},ot=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];var at={parse:function(e,t){var n={},r=new oe.Parser(e,t);n.version=r.parseUShort(),n.xAvgCharWidth=r.parseShort(),n.usWeightClass=r.parseUShort(),n.usWidthClass=r.parseUShort(),n.fsType=r.parseUShort(),n.ySubscriptXSize=r.parseShort(),n.ySubscriptYSize=r.parseShort(),n.ySubscriptXOffset=r.parseShort(),n.ySubscriptYOffset=r.parseShort(),n.ySuperscriptXSize=r.parseShort(),n.ySuperscriptYSize=r.parseShort(),n.ySuperscriptXOffset=r.parseShort(),n.ySuperscriptYOffset=r.parseShort(),n.yStrikeoutSize=r.parseShort(),n.yStrikeoutPosition=r.parseShort(),n.sFamilyClass=r.parseShort(),n.panose=[];for(var i=0;i<10;i++)n.panose[i]=r.parseByte();return n.ulUnicodeRange1=r.parseULong(),n.ulUnicodeRange2=r.parseULong(),n.ulUnicodeRange3=r.parseULong(),n.ulUnicodeRange4=r.parseULong(),n.achVendID=String.fromCharCode(r.parseByte(),r.parseByte(),r.parseByte(),r.parseByte()),n.fsSelection=r.parseUShort(),n.usFirstCharIndex=r.parseUShort(),n.usLastCharIndex=r.parseUShort(),n.sTypoAscender=r.parseShort(),n.sTypoDescender=r.parseShort(),n.sTypoLineGap=r.parseShort(),n.usWinAscent=r.parseUShort(),n.usWinDescent=r.parseUShort(),n.version>=1&&(n.ulCodePageRange1=r.parseULong(),n.ulCodePageRange2=r.parseULong()),n.version>=2&&(n.sxHeight=r.parseShort(),n.sCapHeight=r.parseShort(),n.usDefaultChar=r.parseUShort(),n.usBreakChar=r.parseUShort(),n.usMaxContent=r.parseUShort()),n},make:function(e){return new Z.Table("OS/2",[{name:"version",type:"USHORT",value:3},{name:"xAvgCharWidth",type:"SHORT",value:0},{name:"usWeightClass",type:"USHORT",value:0},{name:"usWidthClass",type:"USHORT",value:0},{name:"fsType",type:"USHORT",value:0},{name:"ySubscriptXSize",type:"SHORT",value:650},{name:"ySubscriptYSize",type:"SHORT",value:699},{name:"ySubscriptXOffset",type:"SHORT",value:0},{name:"ySubscriptYOffset",type:"SHORT",value:140},{name:"ySuperscriptXSize",type:"SHORT",value:650},{name:"ySuperscriptYSize",type:"SHORT",value:699},{name:"ySuperscriptXOffset",type:"SHORT",value:0},{name:"ySuperscriptYOffset",type:"SHORT",value:479},{name:"yStrikeoutSize",type:"SHORT",value:49},{name:"yStrikeoutPosition",type:"SHORT",value:258},{name:"sFamilyClass",type:"SHORT",value:0},{name:"bFamilyType",type:"BYTE",value:0},{name:"bSerifStyle",type:"BYTE",value:0},{name:"bWeight",type:"BYTE",value:0},{name:"bProportion",type:"BYTE",value:0},{name:"bContrast",type:"BYTE",value:0},{name:"bStrokeVariation",type:"BYTE",value:0},{name:"bArmStyle",type:"BYTE",value:0},{name:"bLetterform",type:"BYTE",value:0},{name:"bMidline",type:"BYTE",value:0},{name:"bXHeight",type:"BYTE",value:0},{name:"ulUnicodeRange1",type:"ULONG",value:0},{name:"ulUnicodeRange2",type:"ULONG",value:0},{name:"ulUnicodeRange3",type:"ULONG",value:0},{name:"ulUnicodeRange4",type:"ULONG",value:0},{name:"achVendID",type:"CHARARRAY",value:"XXXX"},{name:"fsSelection",type:"USHORT",value:0},{name:"usFirstCharIndex",type:"USHORT",value:0},{name:"usLastCharIndex",type:"USHORT",value:0},{name:"sTypoAscender",type:"SHORT",value:0},{name:"sTypoDescender",type:"SHORT",value:0},{name:"sTypoLineGap",type:"SHORT",value:0},{name:"usWinAscent",type:"USHORT",value:0},{name:"usWinDescent",type:"USHORT",value:0},{name:"ulCodePageRange1",type:"ULONG",value:0},{name:"ulCodePageRange2",type:"ULONG",value:0},{name:"sxHeight",type:"SHORT",value:0},{name:"sCapHeight",type:"SHORT",value:0},{name:"usDefaultChar",type:"USHORT",value:0},{name:"usBreakChar",type:"USHORT",value:0},{name:"usMaxContext",type:"USHORT",value:0}],e)},unicodeRanges:ot,getUnicodeRange:function(e){for(var t=0;t<ot.length;t+=1){var n=ot[t];if(e>=n.begin&&e<n.end)return t}return-1}};var st={parse:function(e,t){var n={},r=new oe.Parser(e,t);switch(n.version=r.parseVersion(),n.italicAngle=r.parseFixed(),n.underlinePosition=r.parseShort(),n.underlineThickness=r.parseShort(),n.isFixedPitch=r.parseULong(),n.minMemType42=r.parseULong(),n.maxMemType42=r.parseULong(),n.minMemType1=r.parseULong(),n.maxMemType1=r.parseULong(),n.version){case 1:n.names=he.slice();break;case 2:n.numberOfGlyphs=r.parseUShort(),n.glyphNameIndex=new Array(n.numberOfGlyphs);for(var i=0;i<n.numberOfGlyphs;i++)n.glyphNameIndex[i]=r.parseUShort();n.names=[];for(var o=0;o<n.numberOfGlyphs;o++)if(n.glyphNameIndex[o]>=he.length){var a=r.parseChar();n.names.push(r.parseString(a))}break;case 2.5:n.numberOfGlyphs=r.parseUShort(),n.offset=new Array(n.numberOfGlyphs);for(var s=0;s<n.numberOfGlyphs;s++)n.offset[s]=r.parseChar()}return n},make:function(){return new Z.Table("post",[{name:"version",type:"FIXED",value:196608},{name:"italicAngle",type:"FIXED",value:0},{name:"underlinePosition",type:"FWORD",value:0},{name:"underlineThickness",type:"FWORD",value:0},{name:"isFixedPitch",type:"ULONG",value:0},{name:"minMemType42",type:"ULONG",value:0},{name:"maxMemType42",type:"ULONG",value:0},{name:"minMemType1",type:"ULONG",value:0},{name:"maxMemType1",type:"ULONG",value:0}])}},lt=new Array(9);lt[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(re.coverage),deltaGlyphId:this.parseUShort()}:2===t?{substFormat:2,coverage:this.parsePointer(re.coverage),substitute:this.parseOffset16List()}:void A.assert(!1,"0x"+e.toString(16)+": lookup type 1 format must be 1 or 2.")},lt[2]=function(){var e=this.parseUShort();return A.argument(1===e,"GSUB Multiple Substitution Subtable identifier-format must be 1"),{substFormat:e,coverage:this.parsePointer(re.coverage),sequences:this.parseListOfLists()}},lt[3]=function(){var e=this.parseUShort();return A.argument(1===e,"GSUB Alternate Substitution Subtable identifier-format must be 1"),{substFormat:e,coverage:this.parsePointer(re.coverage),alternateSets:this.parseListOfLists()}},lt[4]=function(){var e=this.parseUShort();return A.argument(1===e,"GSUB ligature table identifier-format must be 1"),{substFormat:e,coverage:this.parsePointer(re.coverage),ligatureSets:this.parseListOfLists((function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}}))}};var ct={sequenceIndex:re.uShort,lookupListIndex:re.uShort};lt[5]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{substFormat:t,coverage:this.parsePointer(re.coverage),ruleSets:this.parseListOfLists((function(){var e=this.parseUShort(),t=this.parseUShort();return{input:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,ct)}}))};if(2===t)return{substFormat:t,coverage:this.parsePointer(re.coverage),classDef:this.parsePointer(re.classDef),classSets:this.parseListOfLists((function(){var e=this.parseUShort(),t=this.parseUShort();return{classes:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,ct)}}))};if(3===t){var n=this.parseUShort(),r=this.parseUShort();return{substFormat:t,coverages:this.parseList(n,re.pointer(re.coverage)),lookupRecords:this.parseRecordList(r,ct)}}A.assert(!1,"0x"+e.toString(16)+": lookup type 5 format must be 1, 2 or 3.")},lt[6]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(re.coverage),chainRuleSets:this.parseListOfLists((function(){return{backtrack:this.parseUShortList(),input
2:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(ct)}}))}:2===t?{substFormat:2,coverage:this.parsePointer(re.coverage),backtrackClassDef:this.parsePointer(re.classDef),inputClassDef:this.parsePointer(re.classDef),lookaheadClassDef:this.parsePointer(re.classDef),chainClassSet:this.parseListOfLists((function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(ct)}}))}:3===t?{substFormat:3,backtrackCoverage:this.parseList(re.pointer(re.coverage)),inputCoverage:this.parseList(re.pointer(re.coverage)),lookaheadCoverage:this.parseList(re.pointer(re.coverage)),lookupRecords:this.parseRecordList(ct)}:void A.assert(!1,"0x"+e.toString(16)+": lookup type 6 format must be 1, 2 or 3.")},lt[7]=function(){var e=this.parseUShort();A.argument(1===e,"GSUB Extension Substitution subtable identifier-format must be 1");var t=this.parseUShort(),n=new re(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:t,extension:lt[t].call(n)}},lt[8]=function(){var e=this.parseUShort();return A.argument(1===e,"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1"),{substFormat:e,coverage:this.parsePointer(re.coverage),backtrackCoverage:this.parseList(re.pointer(re.coverage)),lookaheadCoverage:this.parseList(re.pointer(re.coverage)),substitutes:this.parseUShortList()}};var ut=new Array(9);ut[1]=function(e){return 1===e.substFormat?new Z.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:1},{name:"coverage",type:"TABLE",value:new Z.Coverage(e.coverage)},{name:"deltaGlyphID",type:"USHORT",value:e.deltaGlyphId}]):new Z.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:2},{name:"coverage",type:"TABLE",value:new Z.Coverage(e.coverage)}].concat(Z.ushortList("substitute",e.substitute)))},ut[3]=function(e){return A.assert(1===e.substFormat,"Lookup type 3 substFormat must be 1."),new Z.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:1},{name:"coverage",type:"TABLE",value:new Z.Coverage(e.coverage)}].concat(Z.tableList("altSet",e.alternateSets,(function(e){return new Z.Table("alternateSetTable",Z.ushortList("alternate",e))}))))},ut[4]=function(e){return A.assert(1===e.substFormat,"Lookup type 4 substFormat must be 1."),new Z.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:1},{name:"coverage",type:"TABLE",value:new Z.Coverage(e.coverage)}].concat(Z.tableList("ligSet",e.ligatureSets,(function(e){return new Z.Table("ligatureSetTable",Z.tableList("ligature",e,(function(e){return new Z.Table("ligatureTable",[{name:"ligGlyph",type:"USHORT",value:e.ligGlyph}].concat(Z.ushortList("component",e.components,e.components.length+1)))})))}))))};var ht={parse:function(e,t){var n=new re(e,t=t||0),r=n.parseVersion(1);return A.argument(1===r||1.1===r,"Unsupported GSUB table version."),1===r?{version:r,scripts:n.parseScriptList(),features:n.parseFeatureList(),lookups:n.parseLookupList(lt)}:{version:r,scripts:n.parseScriptList(),features:n.parseFeatureList(),lookups:n.parseLookupList(lt),variations:n.parseFeatureVariationsList()}},make:function(e){return new Z.Table("GSUB",[{name:"version",type:"ULONG",value:65536},{name:"scripts",type:"TABLE",value:new Z.ScriptList(e.scripts)},{name:"features",type:"TABLE",value:new Z.FeatureList(e.features)},{name:"lookups",type:"TABLE",value:new Z.LookupList(e.lookups,ut)}])}};var ft={parse:function(e,t){var n=new oe.Parser(e,t),r=n.parseULong();A.argument(1===r,"Unsupported META table version."),n.parseULong(),n.parseULong();for(var i=n.parseULong(),o={},a=0;a<i;a++){var s=n.parseTag(),l=n.parseULong(),c=n.parseULong(),u=j.UTF8(e,t+l,c);o[s]=u}return o},make:function(e){var t=Object.keys(e).length,n="",r=16+12*t,i=new Z.Table("meta",[{name:"version",type:"ULONG",value:1},{name:"flags",type:"ULONG",value:0},{name:"offset",type:"ULONG",value:r},{name:"numTags",type:"ULONG",value:t}]);for(var o in e){var a=n.length;n+=e[o],i.fields.push({name:"tag "+o,type:"TAG",value:o}),i.fields.push({name:"offset "+o,type:"ULONG",value:r+a}),i.fields.push({name:"length "+o,type:"ULONG",value:e[o].length})}return i.fields.push({name:"stringPool",type:"CHARARRAY",value:n}),i}};function dt(e){return Math.log(e)/Math.log(2)|0}function pt(e){for(;e.length%4!==0;)e.push(0);for(var t=0,n=0;n<e.length;n+=4)t+=(e[n]<<24)+(e[n+1]<<16)+(e[n+2]<<8)+e[n+3];return t%=Math.pow(2,32)}function gt(e,t,n,r){return new Z.Record("Table Record",[{name:"tag",type:"TAG",value:void 0!==e?e:""},{name:"checkSum",type:"ULONG",value:void 0!==t?t:0},{name:"offset",type:"ULONG",value:void 0!==n?n:0},{name:"length",type:"ULONG",value:void 0!==r?r:0}])}function vt(e){var t=new Z.Table("sfnt",[{name:"version",type:"TAG",value:"OTTO"},{name:"numTables",type:"USHORT",value:0},{name:"searchRange",type:"USHORT",value:0},{name:"entrySelector",type:"USHORT",value:0},{name:"rangeShift",type:"USHORT",value:0}]);t.tables=e,t.numTables=e.length;var n=Math.pow(2,dt(t.numTables));
vendor: 8,428 bytes, line 2
2t.searchRange=16*n,t.entrySelector=dt(n),t.rangeShift=16*t.numTables-t.searchRange;for(var r=[],i=[],o=t.sizeOf()+gt().sizeOf()*t.numTables;o%4!==0;)o+=1,i.push({name:"padding",type:"BYTE",value:0});for(var a=0;a<e.length;a+=1){var s=e[a];A.argument(4===s.tableName.length,"Table name"+s.tableName+" is invalid.");var l=s.sizeOf(),c=gt(s.tableName,pt(s.encode()),o,l);for(r.push({name:c.tag+" Table Record",type:"RECORD",value:c}),i.push({name:s.tableName+" table",type:"RECORD",value:s}),o+=l,A.argument(!isNaN(o),"Something went wrong calculating the offset.");o%4!==0;)o+=1,i.push({name:"padding",type:"BYTE",value:0})}return r.sort((function(e,t){return e.value.tag>t.value.tag?1:-1})),t.fields=t.fields.concat(r),t.fields=t.fields.concat(i),t}function mt(e,t,n){for(var r=0;r<t.length;r+=1){var i=e.charToGlyphIndex(t[r]);if(i>0)return e.glyphs.get(i).getMetrics()}return n}function yt(e){for(var t=0,n=0;n<e.length;n+=1)t+=e[n];return t/e.length}var bt={make:vt,fontToTable:function(e){for(var t,n=[],r=[],i=[],o=[],a=[],s=[],l=[],c=0,u=0,h=0,f=0,d=0,p=0;p<e.glyphs.length;p+=1){var g=e.glyphs.get(p),v=0|g.unicode;if(isNaN(g.advanceWidth))throw new Error("Glyph "+g.name+" ("+p+"): advanceWidth is not a number.");(t>v||void 0===t)&&v>0&&(t=v),c<v&&(c=v);var m=at.getUnicodeRange(v);if(m<32)u|=1<<m;else if(m<64)h|=1<<m-32;else if(m<96)f|=1<<m-64;else{if(!(m<123))throw new Error("Unicode ranges bits > 123 are reserved for internal usage");d|=1<<m-96}if(".notdef"!==g.name){var y=g.getMetrics();n.push(y.xMin),r.push(y.yMin),i.push(y.xMax),o.push(y.yMax),s.push(y.leftSideBearing),l.push(y.rightSideBearing),a.push(g.advanceWidth)}}var b={xMin:Math.min.apply(null,n),yMin:Math.min.apply(null,r),xMax:Math.max.apply(null,i),yMax:Math.max.apply(null,o),advanceWidthMax:Math.max.apply(null,a),advanceWidthAvg:yt(a),minLeftSideBearing:Math.min.apply(null,s),maxLeftSideBearing:Math.max.apply(null,s),minRightSideBearing:Math.min.apply(null,l)};b.ascender=e.ascender,b.descender=e.descender;var x=ze.make({flags:3,unitsPerEm:e.unitsPerEm,xMin:b.xMin,yMin:b.yMin,xMax:b.xMax,yMax:b.yMax,lowestRecPPEM:3,createdTimestamp:e.createdTimestamp}),_=Ve.make({ascender:b.ascender,descender:b.descender,advanceWidthMax:b.advanceWidthMax,minLeftSideBearing:b.minLeftSideBearing,minRightSideBearing:b.minRightSideBearing,xMaxExtent:b.maxLeftSideBearing+(b.xMax-b.xMin),numberOfHMetrics:e.glyphs.length}),w=Ge.make(e.glyphs.length),S=at.make(Object.assign({xAvgCharWidth:Math.round(b.advanceWidthAvg),usFirstCharIndex:t,usLastCharIndex:c,ulUnicodeRange1:u,ulUnicodeRange2:h,ulUnicodeRange3:f,ulUnicodeRange4:d,sTypoAscender:b.ascender,sTypoDescender:b.descender,sTypoLineGap:0,usWinAscent:b.yMax,usWinDescent:Math.abs(b.yMin),ulCodePageRange1:1,sxHeight:mt(e,"xyvw",{yMax:Math.round(b.ascender/2)}).yMax,sCapHeight:mt(e,"HIKLEFJMNTZBDPRAGOQSUVWXY",b).yMax,usDefaultChar:e.hasChar(" ")?32:0,usBreakChar:e.hasChar(" ")?32:0},e.tables.os2)),C=He.make(e.glyphs),k=se.make(e.glyphs),O=e.getEnglishName("fontFamily"),E=e.getEnglishName("fontSubfamily"),T=O+" "+E,A=e.getEnglishName("postScriptName");A||(A=O.replace(/\s/g,"")+"-"+E);var P={};for(var j in e.names)P[j]=e.names[j];P.uniqueID||(P.uniqueID={en:e.getEnglishName("manufacturer")+":"+T}),P.postScriptName||(P.postScriptName={en:A}),P.preferredFamily||(P.preferredFamily=e.names.fontFamily),P.preferredSubfamily||(P.preferredSubfamily=e.names.fontSubfamily);var L=[],M=it.make(P,L),R=L.length>0?We.make(L):void 0,D=st.make(),I=Ue.make(e.glyphs,{version:e.getEnglishName("version"),fullName:T,familyName:O,weightName:E,postScriptName:A,unitsPerEm:e.unitsPerEm,fontBBox:[0,b.yMin,b.ascender,b.advanceWidthMax]}),N=e.metas&&Object.keys(e.metas).length>0?ft.make(e.metas):void 0,F=[x,_,w,S,M,k,D,I,C];R&&F.push(R),e.tables.gsub&&F.push(ht.make(e.tables.gsub)),N&&F.push(N);for(var B=vt(F),U=pt(B.encode()),z=B.fields,V=!1,H=0;H<z.length;H+=1)if("head table"===z[H].name){z[H].value.checkSumAdjustment=2981146554-U,V=!0;break}if(!V)throw new Error("Could not find head table with checkSum to adjust.");return B},computeCheckSum:pt};function xt(e,t){for(var n=0,r=e.length-1;n<=r;){var i=n+r>>>1,o=e[i].tag;if(o===t)return i;o<t?n=i+1:r=i-1}return-n-1}function _t(e,t){for(var n=0,r=e.length-1;n<=r;){var i=n+r>>>1,o=e[i];if(o===t)return i;o<t?n=i+1:r=i-1}return-n-1}function wt(e,t){for(var n,r=0,i=e.length-1;r<=i;){var o=r+i>>>1,a=(n=e[o]).start;if(a===t)return n;a<t?r=o+1:i=o-1}if(r>0)return t>(n=e[r-1]).end?0:n}function St(e,t){this.font=e,this.tableName=t}function Ct(e){St.call(this,e,"gpos")}function kt(e){St.call(this,e,"gsub")}function Ot(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function Et(e,t,n){for(var r=e.subtables,i=0;i<r.length;i++){var o=r[i];if(o.substFormat===t)return o}if(n)return r.push(n),n}function Tt(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r<e.length;++r)n[r]=e[r];return t}function At(e,t){if(!e)throw t}function Pt(e,t,n,r,i){var o;return(t&r)>0?(o=e.parseByte(),0===(t&i)&&(o=-o),o=n+o):o=(t&i)>0?n:n+e.parseShort(),o}function jt(e,t,n){var r,i,o=new oe.Parser(t,n);if(e.numberOfContours=o.parseShort(),e._xMin=o.parseShort(),e._yMin=o.parseShort(),e._xMax=o.parseShort(),e._yMax=o.parseShort(),e.numberOfContours>0){for(var a=e.endPointIndices=[],s=0;s<e.numberOfContours;s+=1)a.push(o.parseUShort());e.instructionLength=o.parseUShort(),e.instructions=[];for(var l=0;l<e.instructionLength;l+=1)e.instructions.push(o.parseByte());var c=a[a.length-1]+1;r=[];for(var u=0;u<c;u+=1)if(i=o.parseByte(),r.push(i),(8&i)>0)for(var h=o.parseByte(),f=0;f<h;f+=1)r.push(i),u+=1;if(A.argument(r.length===c,"Bad flags."),a.length>0){var d,p=[];if(c>0){for(var g=0;g<c;g+=1)i=r[g],(d={}).onCurve=!!(1&i),d.lastPointOfContour=a.indexOf(g)>=0,p.push(d);for(var v=0,m=0;m<c;m+=1)i=r[m],(d=p[m]).x=Pt(o,i,v,2,16),v=d.x;for(var y=0,b=0;b<c;b+=1)i=r[b],(d=p[b]).y=Pt(o,i,y,4,32),y=d.y}e.points=p}else e.points=[]}else if(0===e.numberOfContours)e.points=[];else{e.isComposite=!0,e.points=[],e.components=[];for(var x=!0;x;){r=o.parseUShort();var _={glyphIndex:o.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};(1&r)>0?(2&r)>0?(_.dx=o.parseShort(),_.dy=o.parseShort()):_.matchedPoints=[o.parseUShort(),o.parseUShort()]:(2&r)>0?(_.dx=o.parseChar(),_.dy=o.parseChar()):_.matchedPoints=[o.parseByte(),o.parseByte()],(8&r)>0?_.xScale=_.yScale=o.parseF2Dot14():(64&r)>0?(_.xScale=o.parseF2Dot14(),_.yScale=o.parseF2Dot14()):(128&r)>0&&(_.xScale=o.parseF2Dot14(),_.scale01=o.parseF2Dot14(),_.scale10=o.parseF2Dot14(),_.yScale=o.parseF2Dot14()),e.components.push(_),x=!!(32&r)}if(256&r){e.instructionLength=o.parseUShort(),e.instructions=[];for(var w=0;w<e.instructionLength;w+=1)e.instructions.push(o.parseByte())}}}function Lt(e,t){for(var n=[],r=0;r<e.length;r+=1){var i=e[r],o={x:t.xScale*i.x+t.scale01*i.y+t.dx,y:t.scale10*i.x+t.yScale*i.y+t.dy,onCurve:i.onCurve,lastPointOfContour:i.lastPointOfContour};n.push(o)}return n}function Mt(e){var t=new O;if(!e)return t;for(var n=function(e){for(var t=[],n=[],r=0;r<e.length;r+=1){var i=e[r];n.push(i),i.lastPointOfContour&&(t.push(n),n=[])}return A.argument(0===n.length,"There are still points left in the current contour."),t}(e),r=0;r<n.length;++r){var i=n[r],o=null,a=i[i.length-1],s=i[0];if(a.onCurve)t.moveTo(a.x,a.y);else if(s.onCurve)t.moveTo(s.x,s.y);else{var l={x:.5*(a.x+s.x),y:.5*(a.y+s.y)};t.moveTo(l.x,l.y)}for(var c=0;c<i.length;++c)if(o=a,a=s,s=i[(c+1)%i.length],a.onCurve)t.lineTo(a.x,a.y);else{var u=s;o.onCurve||{x:.5*(a.x+o.x),y:.5*(a.y+o.y)},s.onCurve||(u={x:.5*(a.x+s.x),y:.5*(a.y+s.y)}),t.quadraticCurveTo(a.x,a.y,u.x,u.y)}t.closePath()}return t}function Rt(e,t){if(t.isComposite)for(var n=0;n<t.components.length;n+=1){var r=t.components[n],i=e.get(r.glyphIndex);if(i.getPath(),i.points){var o=void 0;if(void 0===r.matchedPoints)o=Lt(i.points,r);else{if(r.matchedPoints[0]>t.points.length-1||r.matchedPoints[1]>i.points.length-1)throw Error("Matched points out of range in "+t.name);var a=t.points[r.matchedPoints[0]],s=i.points[r.matchedPoints[1]],l={xScale:r.xScale,scale01:r.scale01,scale10:r.scale10,yScale:r.yScale,dx:0,dy:0};s=Lt([s],l)[0],l.dx=a.x-s.x,l.dy=a.y-s.y,o=Lt(i.points,l)}t.points=t.points.concat(o)}}return Mt(t.points)}St.prototype={searchTag:xt,binSearch:_t,getTable:function(e){var t=this.font.tables[this.tableName];return!t&&e&&(t=this.font.tables[this.tableName]=this.createDefaultTable()),t}
2,getScriptNames:function(){var e=this.getTable();return e?e.scripts.map((function(e){return e.tag})):[]},getDefaultScriptName:function(){var e=this.getTable();if(e){for(var t=!1,n=0;n<e.scripts.length;n++){var r=e.scripts[n].tag;if("DFLT"===r)return r;"latn"===r&&(t=!0)}return t?"latn":void 0}},getScriptTable:function(e,t){var n=this.getTable(t);if(n){e=e||"DFLT";var r=n.scripts,i=xt(n.scripts,e);if(i>=0)return r[i].script;if(t){var o={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return r.splice(-1-i,0,o),o.script}}},getLangSysTable:function(e,t,n){var r=this.getScriptTable(e,n);if(r){if(!t||"dflt"===t||"DFLT"===t)return r.defaultLangSys;var i=xt(r.langSysRecords,t);if(i>=0)return r.langSysRecords[i].langSys;if(n){var o={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return r.langSysRecords.splice(-1-i,0,o),o.langSys}}},getFeatureTable:function(e,t,n,r){var i=this.getLangSysTable(e,t,r);if(i){for(var o,a=i.featureIndexes,s=this.font.tables[this.tableName].features,l=0;l<a.length;l++)if((o=s[a[l]]).tag===n)return o.feature;if(r){var c=s.length;return A.assert(0===c||n>=s[c-1].tag,"Features must be added in alphabetical order."),o={tag:n,feature:{params:0,lookupListIndexes:[]}},s.push(o),a.push(c),o.feature}}},getLookupTables:function(e,t,n,r,i){var o=this.getFeatureTable(e,t,n,i),a=[];if(o){for(var s,l=o.lookupListIndexes,c=this.font.tables[this.tableName].lookups,u=0;u<l.length;u++)(s=c[l[u]]).lookupType===r&&a.push(s);if(0===a.length&&i){s={lookupType:r,lookupFlag:0,subtables:[],markFilteringSet:void 0};var h=c.length;return c.push(s),l.push(h),[s]}}return a},getGlyphClass:function(e,t){switch(e.format){case 1:return e.startGlyph<=t&&t<e.startGlyph+e.classes.length?e.classes[t-e.startGlyph]:0;case 2:var n=wt(e.ranges,t);return n?n.classId:0}},getCoverageIndex:function(e,t){switch(e.format){case 1:var n=_t(e.glyphs,t);return n>=0?n:-1;case 2:var r=wt(e.ranges,t);return r?r.index+t-r.start:-1}},expandCoverage:function(e){if(1===e.format)return e.glyphs;for(var t=[],n=e.ranges,r=0;r<n.length;r++)for(var i=n[r],o=i.start,a=i.end,s=o;s<=a;s++)t.push(s);return t}},Ct.prototype=St.prototype,Ct.prototype.init=function(){var e=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(e)},Ct.prototype.getKerningValue=function(e,t,n){for(var r=0;r<e.length;r++)for(var i=e[r].subtables,o=0;o<i.length;o++){var a=i[o],s=this.getCoverageIndex(a.coverage,t);if(!(s<0))switch(a.posFormat){case 1:for(var l=a.pairSets[s],c=0;c<l.length;c++){var u=l[c];if(u.secondGlyph===n)return u.value1&&u.value1.xAdvance||0}break;case 2:var h=this.getGlyphClass(a.classDef1,t),f=this.getGlyphClass(a.classDef2,n),d=a.classRecords[h][f];return d.value1&&d.value1.xAdvance||0}}return 0},Ct.prototype.getKerningTables=function(e,t){if(this.font.tables.gpos)return this.getLookupTables(e,t,"kern",2)},kt.prototype=St.prototype,kt.prototype.createDefaultTable=function(){return{version:1,scripts:[{tag:"DFLT",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}},kt.prototype.getSingle=function(e,t,n){for(var r=[],i=this.getLookupTables(t,n,e,1),o=0;o<i.length;o++)for(var a=i[o].subtables,s=0;s<a.length;s++){var l=a[s],c=this.expandCoverage(l.coverage),u=void 0;if(1===l.substFormat){var h=l.deltaGlyphId;for(u=0;u<c.length;u++){var f=c[u];r.push({sub:f,by:f+h})}}else{var d=l.substitute;for(u=0;u<c.length;u++)r.push({sub:c[u],by:d[u]})}}return r},kt.prototype.getAlternates=function(e,t,n){for(var r=[],i=this.getLookupTables(t,n,e,3),o=0;o<i.length;o++)for(var a=i[o].subtables,s=0;s<a.length;s++)for(var l=a[s],c=this.expandCoverage(l.coverage),u=l.alternateSets,h=0;h<c.length;h++)r.push({sub:c[h],by:u[h]});return r},kt.prototype.getLigatures=function(e,t,n){for(var r=[],i=this.getLookupTables(t,n,e,4),o=0;o<i.length;o++)for(var a=i[o].subtables,s=0;s<a.length;s++)for(var l=a[s],c=this.expandCoverage(l.coverage),u=l.ligatureSets,h=0;h<c.length;h++)for(var f=c[h],d=u[h],p=0;p<d.length;p++){var g=d[p];r.push({sub:[f].concat(g.components),by:g.ligGlyph})}return r},kt.prototype.addSingle=function(e,t,n,r){var i=Et(this.getLookupTables(n,r,e,1,!0)[0],2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});A.assert(1===i.coverage.format,"Ligature: unable to modify coverage table format "+i.coverage.format);var o=t.sub,a=this.binSearch(i.coverage.glyphs,o);a<0&&(a=-1-a,i.coverage.glyphs.splice(a,0,o),i.substitute.splice(a,0,0)),i.substitute[a]=t.by},kt.prototype.addAlternate=function(e,t,n,r){var i=Et(this.getLookupTables(n,r,e,3,!0)[0],1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});A.assert(1===i.coverage.format,"Ligature: unable to modify coverage table format "+i.coverage.format);var o=t.sub,a=this.binSearch(i.coverage.glyphs,o);a<0&&(a=-1-a,i.coverage.glyphs.splice(a,0,o),i.alternateSets.splice(a,0,0)),i.alternateSets[a]=t.by},kt.prototype.addLigature=function(e,t,n,r){var i=this.getLookupTables(n,r,e,4,!0)[0],o=i.subtables[0];o||(o={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},i.subtables[0]=o),A.assert(1===o.coverage.format,"Ligature: unable to modify coverage table format "+o.coverage.format);var a=t.sub[0],s=t.sub.slice(1),l={ligGlyph:t.by,components:s},c=this.binSearch(o.coverage.glyphs,a);if(c>=0){for(var u=o.ligatureSets[c],h=0;h<u.length;h++)if(Ot(u[h].components,s))return;u.push(l)}else c=-1-c,o.coverage.glyphs.splice(c,0,a),o.ligatureSets.splice(c,0,[l])},kt.prototype.getFeature=function(e,t,n){if(/ss\d\d/.test(e))return this.get
2Single(e,t,n);switch(e){case"aalt":case"salt":return this.getSingle(e,t,n).concat(this.getAlternates(e,t,n));case"dlig":case"liga":case"rlig":return this.getLigatures(e,t,n)}},kt.prototype.add=function(e,t,n,r){if(/ss\d\d/.test(e))return this.addSingle(e,t,n,r);switch(e){case"aalt":case"salt":return"number"===typeof t.by?this.addSingle(e,t,n,r):this.addAlternate(e,t,n,r);case"dlig":case"liga":case"rlig":return this.addLigature(e,t,n,r)}};var Dt,It,Nt,Ft,Bt={getPath:Mt,parse:function(e,t,n,r,i){return i.lowMemory?function(e,t,n,r){var i=new _e.GlyphSet(r);return r._push=function(o){var a=n[o];a!==n[o+1]?i.push(o,_e.ttfGlyphLoader(r,o,jt,e,t+a,Rt)):i.push(o,_e.glyphLoader(r,o))},i}(e,t,n,r):function(e,t,n,r){for(var i=new _e.GlyphSet(r),o=0;o<n.length-1;o+=1){var a=n[o];a!==n[o+1]?i.push(o,_e.ttfGlyphLoader(r,o,jt,e,t+a,Rt)):i.push(o,_e.glyphLoader(r,o))}return i}(e,t,n,r)}};function Ut(e){this.font=e,this.getCommands=function(e){return Bt.getPath(e).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function zt(e){return e}function Vt(e){return Math.sign(e)*Math.round(Math.abs(e))}function Ht(e){return Math.sign(e)*Math.round(Math.abs(2*e))/2}function Wt(e){return Math.sign(e)*(Math.round(Math.abs(e)+.5)-.5)}function Gt(e){return Math.sign(e)*Math.ceil(Math.abs(e))}function qt(e){return Math.sign(e)*Math.floor(Math.abs(e))}var Xt=function(e){var t=this.srPeriod,n=this.srPhase,r=1;return e<0&&(e=-e,r=-1),e+=this.srThreshold-n,e=Math.trunc(e/t)*t,(e+=n)<0?n*r:e*r},Yt={x:1,y:0,axis:"x",distance:function(e,t,n,r){return(n?e.xo:e.x)-(r?t.xo:t.x)},interpolate:function(e,t,n,r){var i,o,a,s,l,c,u;if(!r||r===this)return i=e.xo-t.xo,o=e.xo-n.xo,l=t.x-t.xo,c=n.x-n.xo,0===(u=(a=Math.abs(i))+(s=Math.abs(o)))?void(e.x=e.xo+(l+c)/2):void(e.x=e.xo+(l*s+c*a)/u);i=r.distance(e,t,!0,!0),o=r.distance(e,n,!0,!0),l=r.distance(t,t,!1,!0),c=r.distance(n,n,!1,!0),0!==(u=(a=Math.abs(i))+(s=Math.abs(o)))?Yt.setRelative(e,e,(l*s+c*a)/u,r,!0):Yt.setRelative(e,e,(l+c)/2,r,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(e,t,n,r,i){if(r&&r!==this){var o=i?t.xo:t.x,a=i?t.yo:t.y,s=o+n*r.x,l=a+n*r.y;e.x=s+(e.y-l)/r.normalSlope}else e.x=(i?t.xo:t.x)+n},slope:0,touch:function(e){e.xTouched=!0},touched:function(e){return e.xTouched},untouch:function(e){e.xTouched=!1}},$t={x:0,y:1,axis:"y",distance:function(e,t,n,r){return(n?e.yo:e.y)-(r?t.yo:t.y)},interpolate:function(e,t,n,r){var i,o,a,s,l,c,u;if(!r||r===this)return i=e.yo-t.yo,o=e.yo-n.yo,l=t.y-t.yo,c=n.y-n.yo,0===(u=(a=Math.abs(i))+(s=Math.abs(o)))?void(e.y=e.yo+(l+c)/2):void(e.y=e.yo+(l*s+c*a)/u);i=r.distance(e,t,!0,!0),o=r.distance(e,n,!0,!0),l=r.distance(t,t,!1,!0),c=r.distance(n,n,!1,!0),0!==(u=(a=Math.abs(i))+(s=Math.abs(o)))?$t.setRelative(e,e,(l*s+c*a)/u,r,!0):$t.setRelative(e,e,(l+c)/2,r,!0)},normalSlope:0,setRelative:function(e,t,n,r,i){if(r&&r!==this){var o=i?t.xo:t.x,a=i?t.yo:t.y,s=o+n*r.x,l=a+n*r.y;e.y=l+r.normalSlope*(e.x-s)}else e.y=(i?t.yo:t.y)+n},slope:Number.POSITIVE_INFINITY,touch:function(e){e.yTouched=!0},touched:function(e){return e.yTouched},untouch:function(e){e.yTouched=!1}};function Kt(e,t){this.x=e,this.y=t,this.axis=void 0,this.slope=t/e,this.normalSlope=-e/t,Object.freeze(this)}function Zt(e,t){var n=Math.sqrt(e*e+t*t);return t/=n,1===(e/=n)&&0===t?Yt:0===e&&1===t?$t:new Kt(e,t)}function Qt(e,t,n,r){this.x=this.xo=Math.round(64*e)/64,this.y=this.yo=Math.round(64*t)/64,this.lastPointOfContour=n,this.onCurve=r,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}Object.freeze(Yt),Object.freeze($t),Kt.prototype.distance=function(e,t,n,r){return this.x*Yt.distance(e,t,n,r)+this.y*$t.distance(e,t,n,r)},Kt.prototype.interpolate=function(e,t,n,r){var i,o,a,s,l,c,u;a=r.distance(e,t,!0,!0),s=r.distance(e,n,!0,!0),i=r.distance(t,t,!1,!0),o=r.distance(n,n,!1,!0),0!==(u=(l=Math.abs(a))+(c=Math.abs(s)))?this.setRelative(e,e,(i*c+o*l)/u,r,!0):this.setRelative(e,e,(i+o)/2,r,!0)},Kt.prototype.setRelative=function(e,t,n,r,i){r=r||this;var o=i?t.xo:t.x,a=i?t.yo:t.y,s=o+n*r.x,l=a+n*r.y,c=r.normalSlope,u=this.slope,h=e.x,f=e.y;e.x=(u*h-c*s+l-f)/(u-c),e.y=u*(e.x-h)+f},Kt.prototype.touch=function(e){e.xTouched=!0,e.yTouched=!0},Qt.prototype.nextTouched=function(e){for(var t=this.nextPointOnContour;!e.touched(t)&&t!==this;)t=t.nextPointOnContour;return t},Qt.prototype.prevTouched=function(e){for(var t=this.prevPointOnContour;!e.touched(t)&&t!==this;)t=t.prevPointOnContour;return t};var Jt=Object.freeze(new Qt(0,0)),en={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function tn(e,t){switch(this.env=e,this.stack=[],this.prog=t,e){case"glyf":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case"prep":this.fv=this.pv=this.dpv=Yt,this.round=Vt}}function nn(e){for(var t=e.tZone=new Array(e.gZone.length),n=0;n<t.length;n++)t[n]=new Qt(0,0)}function rn(e,t){var n,r=e.prog,i=e.ip,o=1;do{if(88===(n=r[++i]))o++;else if(89===n)o--;else if(64===n)i+=r[i+1]+1;else if(65===n)i+=2*r[i+1]+1;else if(n>=176&&n<=183)i+=n-176+1;else if(n>=184&&n<=191)i+=2*(n-184+1);else if(t&&1===o&&27===n)break}while(o>0);e.ip=i}function on(e,t){exports.DEBUG&&console.log(t.step,"SVTCA["+e.axis+"]"),t.fv=t.pv=t.dpv=e}function an(e,t){exports.DEBUG&&console.log(t.step,"SPVTCA["+e.axis+"]"),t.pv=t.dpv=e}function sn(e,t){exports.DEBUG&&console.log(t.step,"SFVTCA["+e.axis+"]"),t.fv=e}function ln(e,t){var n,r,i=t.stack,o=i.pop(),a=i.pop(),s=t.z2[o],l=t.z1[a];
2exports.DEBUG&&console.log("SPVTL["+e+"]",o,a),e?(n=s.y-l.y,r=l.x-s.x):(n=l.x-s.x,r=l.y-s.y),t.pv=t.dpv=Zt(n,r)}function cn(e,t){var n,r,i=t.stack,o=i.pop(),a=i.pop(),s=t.z2[o],l=t.z1[a];exports.DEBUG&&console.log("SFVTL["+e+"]",o,a),e?(n=s.y-l.y,r=l.x-s.x):(n=l.x-s.x,r=l.y-s.y),t.fv=Zt(n,r)}function un(e){exports.DEBUG&&console.log(e.step,"POP[]"),e.stack.pop()}function hn(e,t){var n=t.stack.pop(),r=t.z0[n],i=t.fv,o=t.pv;exports.DEBUG&&console.log(t.step,"MDAP["+e+"]",n);var a=o.distance(r,Jt);e&&(a=t.round(a)),i.setRelative(r,Jt,a,o),i.touch(r),t.rp0=t.rp1=n}function fn(e,t){var n,r,i,o=t.z2,a=o.length-2;exports.DEBUG&&console.log(t.step,"IUP["+e.axis+"]");for(var s=0;s<a;s++)n=o[s],e.touched(n)||(r=n.prevTouched(e))!==n&&(r===(i=n.nextTouched(e))&&e.setRelative(n,n,e.distance(r,r,!1,!0),e,!0),e.interpolate(n,r,i,e))}function dn(e,t){for(var n=t.stack,r=e?t.rp1:t.rp2,i=(e?t.z0:t.z1)[r],o=t.fv,a=t.pv,s=t.loop,l=t.z2;s--;){var c=n.pop(),u=l[c],h=a.distance(i,i,!1,!0);o.setRelative(u,u,h,a),o.touch(u),exports.DEBUG&&console.log(t.step,(t.loop>1?"loop "+(t.loop-s)+": ":"")+"SHP["+(e?"rp1":"rp2")+"]",c)}t.loop=1}function pn(e,t){var n=t.stack,r=e?t.rp1:t.rp2,i=(e?t.z0:t.z1)[r],o=t.fv,a=t.pv,s=n.pop(),l=t.z2[t.contours[s]],c=l;exports.DEBUG&&console.log(t.step,"SHC["+e+"]",s);var u=a.distance(i,i,!1,!0);do{c!==i&&o.setRelative(c,c,u,a),c=c.nextPointOnContour}while(c!==l)}function gn(e,t){var n,r,i=t.stack,o=e?t.rp1:t.rp2,a=(e?t.z0:t.z1)[o],s=t.fv,l=t.pv,c=i.pop();switch(exports.DEBUG&&console.log(t.step,"SHZ["+e+"]",c),c){case 0:n=t.tZone;break;case 1:n=t.gZone;break;default:throw new Error("Invalid zone")}for(var u=l.distance(a,a,!1,!0),h=n.length-2,f=0;f<h;f++)r=n[f],s.setRelative(r,r,u,l)}function vn(e,t){var n=t.stack,r=n.pop()/64,i=n.pop(),o=t.z1[i],a=t.z0[t.rp0],s=t.fv,l=t.pv;s.setRelative(o,a,r,l),s.touch(o),exports.DEBUG&&console.log(t.step,"MSIRP["+e+"]",r,i),t.rp1=t.rp0,t.rp2=i,e&&(t.rp0=i)}function mn(e,t){var n=t.stack,r=n.pop(),i=n.pop(),o=t.z0[i],a=t.fv,s=t.pv,l=t.cvt[r];exports.DEBUG&&console.log(t.step,"MIAP["+e+"]",r,"(",l,")",i);var c=s.distance(o,Jt);e&&(Math.abs(c-l)<t.cvCutIn&&(c=l),c=t.round(c)),a.setRelative(o,Jt,c,s),0===t.zp0&&(o.xo=o.x,o.yo=o.y),a.touch(o),t.rp0=t.rp1=i}function yn(e,t){var n=t.stack,r=n.pop(),i=t.z2[r];exports.DEBUG&&console.log(t.step,"GC["+e+"]",r),n.push(64*t.dpv.distance(i,Jt,e,!1))}function bn(e,t){var n=t.stack,r=n.pop(),i=n.pop(),o=t.z1[r],a=t.z0[i],s=t.dpv.distance(a,o,e,e);exports.DEBUG&&console.log(t.step,"MD["+e+"]",r,i,"->",s),t.stack.push(Math.round(64*s))}function xn(e,t){var n=t.stack,r=n.pop(),i=t.fv,o=t.pv,a=t.ppem,s=t.deltaBase+16*(e-1),l=t.deltaShift,c=t.z0;exports.DEBUG&&console.log(t.step,"DELTAP["+e+"]",r,n);for(var u=0;u<r;u++){var h=n.pop(),f=n.pop();if(s+((240&f)>>4)===a){var d=(15&f)-8;d>=0&&d++,exports.DEBUG&&console.log(t.step,"DELTAPFIX",h,"by",d*l);var p=c[h];i.setRelative(p,p,d*l,o)}}}function _n(e,t){var n=t.stack,r=n.pop();exports.DEBUG&&console.log(t.step,"ROUND[]"),n.push(64*t.round(r/64))}function wn(e,t){var n=t.stack,r=n.pop(),i=t.ppem,o=t.deltaBase+16*(e-1),a=t.deltaShift;exports.DEBUG&&console.log(t.step,"DELTAC["+e+"]",r,n);for(var s=0;s<r;s++){var l=n.pop(),c=n.pop();if(o+((240&c)>>4)===i){var u=(15&c)-8;u>=0&&u++;var h=u*a;exports.DEBUG&&console.log(t.step,"DELTACFIX",l,"by",h),t.cvt[l]+=h}}}function Sn(e,t){var n,r,i=t.stack,o=i.pop(),a=i.pop(),s=t.z2[o],l=t.z1[a];exports.DEBUG&&console.log(t.step,"SDPVTL["+e+"]",o,a),e?(n=s.y-l.y,r=l.x-s.x):(n=l.x-s.x,r=l.y-s.y),t.dpv=Zt(n,r)}function Cn(e,t){var n=t.stack,r=t.prog,i=t.ip;exports.DEBUG&&console.log(t.step,"PUSHB["+e+"]");for(var o=0;o<e;o++)n.push(r[++i]);t.ip=i}function kn(e,t){var n=t.ip,r=t.prog,i=t.stack;exports.DEBUG&&console.log(t.ip,"PUSHW["+e+"]");for(var o=0;o<e;o++){var a=r[++n]<<8|r[++n];32768&a&&(a=-(1+(65535^a))),i.push(a)}t.ip=n}function On(e,t,n,r,i,o){var a,s,l,c,u=o.stack,h=e&&u.pop(),f=u.pop(),d=o.rp0,p=o.z0[d],g=o.z1[f],v=o.minDis,m=o.fv,y=o.dpv;l=(s=a=y.distance(g,p,!0,!0))>=0?1:-1,s=Math.abs(s),e&&(c=o.cvt[h],r&&Math.abs(s-c)<o.cvCutIn&&(s=c)),n&&s<v&&(s=v),r&&(s=o.round(s)),m.setRelative(g,p,l*s,y),m.touch(g),exports.DEBUG&&console.log(o.step,(e?"MIRP[":"MDRP[")+(t?"M":"m")+(n?">":"_")+(r?"R":"_")+(0===i?"Gr":1===i?"Bl":2===i?"Wh":"")+"]",e?h+"("+o.cvt[h]+","+c+")":"",f,"(d =",a,"->
2",l*s,")"),o.rp1=o.rp0,o.rp2=f,t&&(o.rp0=f)}function En(e){this.char=e,this.state={},this.activeState=null}function Tn(e,t,n){this.contextName=n,this.startIndex=e,this.endOffset=t}function An(e,t,n){this.contextName=e,this.openRange=null,this.ranges=[],this.checkStart=t,this.checkEnd=n}function Pn(e,t){this.context=e,this.index=t,this.length=e.length,this.current=e[t],this.backtrack=e.slice(0,t),this.lookahead=e.slice(t+1)}function jn(e){this.eventId=e,this.subscribers=[]}function Ln(e){var t=this,n=["start","end","next","newToken","contextStart","contextEnd","insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD","updateContextsRanges"];n.forEach((function(e){Object.defineProperty(t.events,e,{value:new jn(e)})})),e&&n.forEach((function(n){var r=e[n];"function"===typeof r&&t.events[n].subscribe(r)}));["insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD"].forEach((function(e){t.events[e].subscribe(t.updateContextsRanges)}))}function Mn(e){this.tokens=[],this.registeredContexts={},this.contextCheckers=[],this.events={},this.registeredModifiers=[],Ln.call(this,e)}function Rn(e){return/[\u0600-\u065F\u066A-\u06D2\u06FA-\u06FF]/.test(e)}function Dn(e){return/[\u0630\u0690\u0621\u0631\u0661\u0671\u0622\u0632\u0672\u0692\u06C2\u0623\u0673\u0693\u06C3\u0624\u0694\u06C4\u0625\u0675\u0695\u06C5\u06E5\u0676\u0696\u06C6\u0627\u0677\u0697\u06C7\u0648\u0688\u0698\u06C8\u0689\u0699\u06C9\u068A\u06CA\u066B\u068B\u06CB\u068C\u068D\u06CD\u06FD\u068E\u06EE\u06FE\u062F\u068F\u06CF\u06EF]/.test(e)}function In(e){return/[\u0600-\u0605\u060C-\u060E\u0610-\u061B\u061E\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED]/.test(e)}function Nn(e){return/[A-z]/.test(e)}function Fn(e){this.font=e,this.features={}}function Bn(e){this.id=e.id,this.tag=e.tag,this.substitution=e.substitution}function Un(e,t){if(!e)return-1;switch(t.format){case 1:return t.glyphs.indexOf(e);case 2:for(var n=t.ranges,r=0;r<n.length;r++){var i=n[r];if(e>=i.start&&e<=i.end){var o=e-i.start;return i.index+o}}break;default:return-1}return-1}function zn(e,t){return-1===Un(e,t.coverage)?null:e+t.deltaGlyphId}function Vn(e,t){var n=Un(e,t.coverage);return-1===n?null:t.substitute[n]}function Hn(e,t){for(var n=[],r=0;r<e.length;r++){var i=e[r],o=t.current,a=Un(o=Array.isArray(o)?o[0]:o,i);-1!==a&&n.push(a)}return n.length!==e.length?-1:n}function Wn(e,t){var n=t.inputCoverage.length+t.lookaheadCoverage.length+t.backtrackCoverage.length;if(e.context.length<n)return[];var r=Hn(t.inputCoverage,e);if(-1===r)return[];var i=t.inputCoverage.length-1;if(e.lookahead.length<t.lookaheadCoverage.length)return[];for(var o=e.lookahead.slice(i);o.length&&In(o[0].char);)o.shift();var a=new Pn(o,0),s=Hn(t.lookaheadCoverage,a),l=[].concat(e.backtrack);for(l.reverse();l.length&&In(l[0].char);)l.shift();if(l.length<t.backtrackCoverage.length)return[];var c=new Pn(l,0),u=Hn(t.backtrackCoverage,c),h=[];if(r.length===t.inputCoverage.length&&s.length===t.lookaheadCoverage.length&&u.length===t.backtrackCoverage.length)for(var f=0;f<t.lookupRecords.length;f++)for(var d=t.lookupRecords[f].lookupListIndex,p=this.getLookupByIndex(d),g=0;g<p.subtables.length;g++){var v=p.subtables[g],m=this.getLookupMethod(p,v);if("12"===this.getSubstitutionType(p,v))for(var y=0;y<r.length;y++){var b=m(e.get(y));b&&h.push(b)}}return h}function Gn(e,t){var n,r=Un(e.current,t.coverage);if(-1===r)return null;for(var i=t.ligatureSets[r],o=0;o<i.length;o++){n=i[o];for(var a=0;a<n.components.length;a++){if(e.lookahead[a]!==n.components[a])break;if(a===n.components.length-1)return n}}return null}function qn(e,t){var n=Un(e,t.coverage);return-1===n?null:t.sequences[n]}Ut.prototype.exec=function(e,t){if("number"!==typeof t)throw new Error("Point size is not a number!");if(!(this._errorState>2)){var n=this.font,r=this._prepState;if(!r||r.ppem!==t){var i=this._fpgmState;if(!i){tn.prototype=en,(i=this._fpgmState=new tn("fpgm",n.tables.fpgm)).funcs=[],i.font=n,exports.DEBUG&&(console.log("---EXEC FPGM---"),i.step=-1);try{It(i)}catch(c){return console.log("Hinting error in FPGM:"+c),void(this._errorState=3)}}tn.prototype=i,(r=this._prepState=new tn("prep",n.tables.prep)).ppem=t;var o=n.tables.cvt;
2if(o)for(var a=r.cvt=new Array(o.length),s=t/n.unitsPerEm,l=0;l<o.length;l++)a[l]=o[l]*s;else r.cvt=[];exports.DEBUG&&(console.log("---EXEC PREP---"),r.step=-1);try{It(r)}catch(c){this._errorState<2&&console.log("Hinting error in PREP:"+c),this._errorState=2}}if(!(this._errorState>1))try{return Nt(e,r)}catch(c){return this._errorState<1&&(console.log("Hinting error:"+c),console.log("Note: further hinting errors are silenced")),void(this._errorState=1)}}},Nt=function(e,t){var n,r,i,o=t.ppem/t.font.unitsPerEm,a=o,s=e.components;if(tn.prototype=t,s){var l=t.font;r=[],n=[];for(var c=0;c<s.length;c++){var u=s[c],h=l.glyphs.get(u.glyphIndex);i=new tn("glyf",h.instructions),exports.DEBUG&&(console.log("---EXEC COMP "+c+"---"),i.step=-1),Ft(h,i,o,a);for(var f=Math.round(u.dx*o),d=Math.round(u.dy*a),p=i.gZone,g=i.contours,v=0;v<p.length;v++){var m=p[v];m.xTouched=m.yTouched=!1,m.xo=m.x=m.x+f,m.yo=m.y=m.y+d}var y=r.length;r.push.apply(r,p);for(var b=0;b<g.length;b++)n.push(g[b]+y)}e.instructions&&!i.inhibitGridFit&&((i=new tn("glyf",e.instructions)).gZone=i.z0=i.z1=i.z2=r,i.contours=n,r.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*o),0)),exports.DEBUG&&(console.log("---EXEC COMPOSITE---"),i.step=-1),It(i),r.length-=2)}else i=new tn("glyf",e.instructions),exports.DEBUG&&(console.log("---EXEC GLYPH---"),i.step=-1),Ft(e,i,o,a),r=i.gZone;return r},Ft=function(e,t,n,r){for(var i,o,a,s=e.points||[],l=s.length,c=t.gZone=t.z0=t.z1=t.z2=[],u=t.contours=[],h=0;h<l;h++)i=s[h],c[h]=new Qt(i.x*n,i.y*r,i.lastPointOfContour,i.onCurve);for(var f=0;f<l;f++)i=c[f],o||(o=i,u.push(f)),i.lastPointOfContour?(i.nextPointOnContour=o,o.prevPointOnContour=i,o=void 0):(a=c[f+1],i.nextPointOnContour=a,a.prevPointOnContour=i);if(!t.inhibitGridFit){if(exports.DEBUG){console.log("PROCESSING GLYPH",t.stack);for(var d=0;d<l;d++)console.log(d,c[d].x,c[d].y)}if(c.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*n),0)),It(t),c.length-=2,exports.DEBUG){console.log("FINISHED GLYPH",t.stack);for(var p=0;p<l;p++)console.log(p,c[p].x,c[p].y)}}},It=function(e){var t=e.prog;if(t){var n,r=t.length;for(e.ip=0;e.ip<r;e.ip++){if(exports.DEBUG&&e.step++,!(n=Dt[t[e.ip]]))throw new Error("unknown instruction: 0x"+Number(t[e.ip]).toString(16));n(e)}}},Dt=[on.bind(void 0,$t),on.bind(void 0,Yt),an.bind(void 0,$t),an.bind(void 0,Yt),sn.bind(void 0,$t),sn.bind(void 0,Yt),ln.bind(void 0,0),ln.bind(void 0,1),cn.bind(void 0,0),cn.bind(void 0,1),function(e){var t=e.stack,n=t.pop(),r=t.pop();exports.DEBUG&&console.log(e.step,"SPVFS[]",n,r),e.pv=e.dpv=Zt(r,n)},function(e){var t=e.stack,n=t.pop(),r=t.pop();exports.DEBUG&&console.log(e.step,"SPVFS[]",n,r),e.fv=Zt(r,n)},function(e){var t=e.stack,n=e.pv;exports.DEBUG&&console.log(e.step,"GPV[]"),t.push(16384*n.x),t.push(16384*n.y)},function(e){var t=e.stack,n=e.fv;exports.DEBUG&&console.log(e.step,"GFV[]"),t.push(16384*n.x),t.push(16384*n.y)},function(e){e.fv=e.pv,exports.DEBUG&&console.log(e.step,"SFVTPV[]")},function(e){var t=e.stack,n=t.pop(),r=t.pop(),i=t.pop(),o=t.pop(),a=t.pop(),s=e.z0,l=e.z1,c=s[n],u=s[r],h=l[i],f=l[o],d=e.z2[a];exports.DEBUG&&console.log("ISECT[], ",n,r,i,o,a);var p=c.x,g=c.y,v=u.x,m=u.y,y=h.x,b=h.y,x=f.x,_=f.y,w=(p-v)*(b-_)-(g-m)*(y-x),S=p*m-g*v,C=y*_-b*x;d.x=(S*(y-x)-C*(p-v))/w,d.y=(S*(b-_)-C*(g-m))/w},function(e){e.rp0=e.stack.pop(),exports.DEBUG&&console.log(e.step,"SRP0[]",e.rp0)},function(e){e.rp1=e.stack.pop(),exports.DEBUG&&console.log(e.step,"SRP1[]",e.rp1)},function(e){e.rp2=e.stack.pop(),exports.DEBUG&&console.log(e.step,"SRP2[]",e.rp2)},function(e){var t=e.stack.pop();switch(exports.DEBUG&&console.log(e.step,"SZP0[]",t),e.zp0=t,t){case 0:e.tZone||nn(e),e.z0=e.tZone;break;case 1:e.z0=e.gZone;break;default:throw new Error("Invalid zone pointer")}},function(e){var t=e.stack.pop();switch(exports.DEBUG&&console.log(e.step,"SZP1[]",t),e.zp1=t,t){case 0:e.tZone||nn(e),e.z1=e.tZone;break;case 1:e.z1=e.gZone;break;default:throw new Error("Invalid zone pointer")}},function(e){var t=e.stack.pop();switch(exports.DEBUG&&console.log(e.step,"SZP2[]",t),e.zp2=t,t){case 0:e.tZone||nn(e),e.z2=e.tZone;break;case 1:e.z2=e.gZone;break;default:throw new Error("Invalid zone pointer")}},function(e){var t=e.stack.pop();switch(exports.DEBUG&&console.log(e.step,"SZPS[]",t),e.zp0=e.zp1=e.zp2=t,t){case 0:e.tZone||nn(e),e.z0=e.z1=e.z2=e.tZone;break;case 1:e.z0=e.z1=e.z2=e.gZone;break;default:throw new Error("Invalid zone pointer")}},function(e){e.loop=e.stack.pop(),exports.DEBUG&&console.log(e.step,"SLOOP[]",e.loop)},function(e){exports.DEBUG&&console.log(e.step,"RTG[]"),e.round=Vt},function(e){exports.DEBUG&&console.log(e.step,"RTHG[]"),e.round=Wt},function(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"SMD[]",t),e.minDis=t/64},function(e){exports.DEBUG&&console.log(e.step,"ELSE[]"),rn(e,!1)},function(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"JMPR[]",t),e.ip+=t-1},function(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"SCVTCI[]",t),e.cvCutIn=t/64},void 0,void 0,function(e){var t=e.stack;exports.DEBUG&&console.log(e.step,"DUP[]"),t.push(t[t.length-1])},un,function(e){exports.DEBUG&&console.log(e.step,"CLEAR[]"),e.stack.length=0},function(e){var t=e.stack,n=t.pop(),r=t.pop();exports.DEBUG&&console.log(e.step,"SWAP[]"),t.push(n),t.push(r)},function(e){var t=e.stack;exports.DEBUG&&console.log(e.step,"DEPTH[]"),t.push(t.length)},function(e){var t=e.stack,n=t.pop();exports.DEBUG&&console.log(e.step,"CINDEX[]",n),t.push(t[t.length-n])},function(e){var t=e.stack,n=t.pop();exports.DEBUG&&console.log(e.step,"MINDEX[]",n),t.push(t.splice(t.length-n,1)[0])},void 0,void 0,void 0,function(e){var t=e.stack,n=t.pop(),r=t.pop();exports.DEBUG&&console.log(e.step,"LOOPCALL[]",n,r);var i=e.ip,o=e.prog;e.prog=e.funcs[n];for(var a=0;a<r;a++)It(e),exports.DEBUG&&console.log(++e.step,a+1<r?"next loopcall":"done loopcall",a);e.ip=i,e.prog=o},function(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"CALL[]",t);var n=e.ip,r=e.prog;e.prog=e.funcs[t],It(e),e.ip=n,e.prog=r,exports.DEBUG&&console.log(++e.step,"returning from",t)},function(e){if("fpgm"!==e.env)throw new Error("FDEF not allowed here");var t=e.stack,n=e.prog,r=e.ip,i=t.pop(),o=r;for(exports.DEBUG&&console.log(e.step,"FDEF[]",i);45!==n[++r];);e.ip=r,e.funcs[i]=n.slice(o+1,r)}
2,void 0,hn.bind(void 0,0),hn.bind(void 0,1),fn.bind(void 0,$t),fn.bind(void 0,Yt),dn.bind(void 0,0),dn.bind(void 0,1),pn.bind(void 0,0),pn.bind(void 0,1),gn.bind(void 0,0),gn.bind(void 0,1),function(e){for(var t=e.stack,n=e.loop,r=e.fv,i=t.pop()/64,o=e.z2;n--;){var a=t.pop(),s=o[a];exports.DEBUG&&console.log(e.step,(e.loop>1?"loop "+(e.loop-n)+": ":"")+"SHPIX[]",a,i),r.setRelative(s,s,i),r.touch(s)}e.loop=1},function(e){for(var t=e.stack,n=e.rp1,r=e.rp2,i=e.loop,o=e.z0[n],a=e.z1[r],s=e.fv,l=e.dpv,c=e.z2;i--;){var u=t.pop(),h=c[u];exports.DEBUG&&console.log(e.step,(e.loop>1?"loop "+(e.loop-i)+": ":"")+"IP[]",u,n,"<->",r),s.interpolate(h,o,a,l),s.touch(h)}e.loop=1},vn.bind(void 0,0),vn.bind(void 0,1),function(e){for(var t=e.stack,n=e.rp0,r=e.z0[n],i=e.loop,o=e.fv,a=e.pv,s=e.z1;i--;){var l=t.pop(),c=s[l];exports.DEBUG&&console.log(e.step,(e.loop>1?"loop "+(e.loop-i)+": ":"")+"ALIGNRP[]",l),o.setRelative(c,r,0,a),o.touch(c)}e.loop=1},function(e){exports.DEBUG&&console.log(e.step,"RTDG[]"),e.round=Ht},mn.bind(void 0,0),mn.bind(void 0,1),function(e){var t=e.prog,n=e.ip,r=e.stack,i=t[++n];exports.DEBUG&&console.log(e.step,"NPUSHB[]",i);for(var o=0;o<i;o++)r.push(t[++n]);e.ip=n},function(e){var t=e.ip,n=e.prog,r=e.stack,i=n[++t];exports.DEBUG&&console.log(e.step,"NPUSHW[]",i);for(var o=0;o<i;o++){var a=n[++t]<<8|n[++t];32768&a&&(a=-(1+(65535^a))),r.push(a)}e.ip=t},function(e){var t=e.stack,n=e.store;n||(n=e.store=[]);var r=t.pop(),i=t.pop();exports.DEBUG&&console.log(e.step,"WS",r,i),n[i]=r},function(e){var t=e.stack,n=e.store,r=t.pop();exports.DEBUG&&console.log(e.step,"RS",r);var i=n&&n[r]||0;t.push(i)},function(e){var t=e.stack,n=t.pop(),r=t.pop();exports.DEBUG&&console.log(e.step,"WCVTP",n,r),e.cvt[r]=n/64},function(e){var t=e.stack,n=t.pop();exports.DEBUG&&console.log(e.step,"RCVT",n),t.push(64*e.cvt[n])},yn.bind(void 0,0),yn.bind(void 0,1),void 0,bn.bind(void 0,0),bn.bind(void 0,1),function(e){exports.DEBUG&&console.log(e.step,"MPPEM[]"),e.stack.push(e.ppem)},void 0,function(e){exports.DEBUG&&console.log(e.step,"FLIPON[]"),e.autoFlip=!0},void 0,void 0,function(e){var t=e.stack,n=t.pop(),r=t.pop();exports.DEBUG&&console.log(e.step,"LT[]",n,r),t.push(r<n?1:0)},function(e){var t=e.stack,n=t.pop(),r=t.pop();exports.DEBUG&&console.log(e.step,"LTEQ[]",n,r),t.push(r<=n?1:0)},function(e){var t=e.stack,n=t.pop(),r=t.pop();exports.DEBUG&&console.log(e.step,"GT[]",n,r),t.push(r>n?1:0)},function(e){var t=e.stack,n=t.pop(),r=t.pop();exports.DEBUG&&console.log(e.step,"GTEQ[]",n,r),t.push(r>=n?1:0)},function(e){var t=e.stack,n=t.pop(),r=t.pop();exports.DEBUG&&console.log(e.step,"EQ[]",n,r),t.push(n===r?1:0)},function(e){var t=e.stack,n=t.pop(),r=t.pop();exports.DEBUG&&console.log(e.step,"NEQ[]",n,r),t.push(n!==r?1:0)},function(e){var t=e.stack,n=t.pop();exports.DEBUG&&console.log(e.step,"ODD[]",n),t.push(Math.trunc(n)%2?1:0)},function(e){var t=e.stack,n=t.pop();exports.DEBUG&&console.log(e.step,"EVEN[]",n),t.push(Math.trunc(n)%2?0:1)},function(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"IF[]",t),t||(rn(e,!0),exports.DEBUG&&console.log(e.step,"EIF[]"))},function(e){exports.DEBUG&&console.log(e.step,"EIF[]")},function(e){var t=e.stack,n=t.pop(),r=t.pop();exports.DEBUG&&console.log(e.step,"AND[]",n,r),t.push(n&&r?1:0)},function(e){var t=e.stack,n=t.pop(),r=t.pop();exports.DEBUG&&console.log(e.step,"OR[]",n,r),t.push(n||r?1:0)},function(e){var t=e.stack,n=t.pop();exports.DEBUG&&console.log(e.step,"NOT[]",n),t.push(n?0:1)},xn.bind(void 0,1),function(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"SDB[]",t),e.deltaBase=t},function(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"SDS[]",t),e.deltaShift=Math.pow(.5,t)},function(e){var t=e.stack,n=t.pop(),r=t.pop();exports.DEBUG&&console.log(e.step,"ADD[]",n,r),t.push(r+n)},function(e){var t=e.stack,n=t.pop(),r=t.pop();exports.DEBUG&&console.log(e.step,"SUB[]",n,r),t.push(r-n)},function(e){var t=e.stack,n=t.pop(),r=t.pop();exports.DEBUG&&console.log(e.step,"DIV[]",n,r),t.push(64*r/n)},function(e){var t=e.stack,n=t.pop(),r=t.pop();exports.DEBUG&&console.log(e.step,"MUL[]",n,r),t.push(r*n/64)},function(e){var t=e.stack,n=t.pop();exports.DEBUG&&console.log(e.step,"ABS[]",n),t.push(Math.abs(n))},function(e){var t=e.stack,n=t.pop();exports.DEBUG&&console.log(e.step,"NEG[]",n),t.push(-n)},function(e){var t=e.stack,n=t.pop();exports.DEBUG&&console.log(e.step,"FLOOR[]",n),t.push(64*Math.floor(n/64))},function(e){var t=e.stack,n=t.pop();exports.DEBUG&&console.log(e.step,"CEILING[]",n),t.push(64*Math.ceil(n/64))}
2,_n.bind(void 0,0),_n.bind(void 0,1),_n.bind(void 0,2),_n.bind(void 0,3),void 0,void 0,void 0,void 0,function(e){var t=e.stack,n=t.pop(),r=t.pop();exports.DEBUG&&console.log(e.step,"WCVTF[]",n,r),e.cvt[r]=n*e.ppem/e.font.unitsPerEm},xn.bind(void 0,2),xn.bind(void 0,3),wn.bind(void 0,1),wn.bind(void 0,2),wn.bind(void 0,3),function(e){var t,n=e.stack.pop();switch(exports.DEBUG&&console.log(e.step,"SROUND[]",n),e.round=Xt,192&n){case 0:t=.5;break;case 64:t=1;break;case 128:t=2;break;default:throw new Error("invalid SROUND value")}switch(e.srPeriod=t,48&n){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error("invalid SROUND value")}n&=15,e.srThreshold=0===n?0:(n/8-.5)*t},function(e){var t,n=e.stack.pop();switch(exports.DEBUG&&console.log(e.step,"S45ROUND[]",n),e.round=Xt,192&n){case 0:t=Math.sqrt(2)/2;break;case 64:t=Math.sqrt(2);break;case 128:t=2*Math.sqrt(2);break;default:throw new Error("invalid S45ROUND value")}switch(e.srPeriod=t,48&n){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error("invalid S45ROUND value")}n&=15,e.srThreshold=0===n?0:(n/8-.5)*t},void 0,void 0,function(e){exports.DEBUG&&console.log(e.step,"ROFF[]"),e.round=zt},void 0,function(e){exports.DEBUG&&console.log(e.step,"RUTG[]"),e.round=Gt},function(e){exports.DEBUG&&console.log(e.step,"RDTG[]"),e.round=qt},un,un,void 0,void 0,void 0,void 0,void 0,function(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"SCANCTRL[]",t)},Sn.bind(void 0,0),Sn.bind(void 0,1),function(e){var t=e.stack,n=t.pop(),r=0;exports.DEBUG&&console.log(e.step,"GETINFO[]",n),1&n&&(r=35),32&n&&(r|=4096),t.push(r)},void 0,function(e){var t=e.stack,n=t.pop(),r=t.pop(),i=t.pop();exports.DEBUG&&console.log(e.step,"ROLL[]"),t.push(r),t.push(n),t.push(i)},function(e){var t=e.stack,n=t.pop(),r=t.pop();exports.DEBUG&&console.log(e.step,"MAX[]",n,r),t.push(Math.max(r,n))},function(e){var t=e.stack,n=t.pop(),r=t.pop();exports.DEBUG&&console.log(e.step,"MIN[]",n,r),t.push(Math.min(r,n))},function(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"SCANTYPE[]",t)},function(e){var t=e.stack.pop(),n=e.stack.pop();switch(exports.DEBUG&&console.log(e.step,"INSTCTRL[]",t,n),t){case 1:return void(e.inhibitGridFit=!!n);case 2:return void(e.ignoreCvt=!!n);default:throw new Error("invalid INSTCTRL[] selector")}},void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Cn.bind(void 0,1),Cn.bind(void 0,2),Cn.bind(void 0,3),Cn.bind(void 0,4),Cn.bind(void 0,5),Cn.bind(void 0,6),Cn.bind(void 0,7),Cn.bind(void 0,8),kn.bind(void 0,1),kn.bind(void 0,2),kn.bind(void 0,3),kn.bind(void 0,4),kn.bind(void 0,5),kn.bind(void 0,6),kn.bind(void 0,7),kn.bind(void 0,8),On.bind(void 0,0,0,0,0,0),On.bind(void 0,0,0,0,0,1),On.bind(void 0,0,0,0,0,2),On.bind(void 0,0,0,0,0,3),On.bind(void 0,0,0,0,1,0),On.bind(void 0,0,0,0,1,1),On.bind(void 0,0,0,0,1,2),On.bind(void 0,0,0,0,1,3),On.bind(void 0,0,0,1,0,0),On.bind(void 0,0,0,1,0,1),On.bind(void 0,0,0,1,0,2),On.bind(void 0,0,0,1,0,3),On.bind(void 0,0,0,1,1,0),On.bind(void 0,0,0,1,1,1),On.bind(void 0,0,0,1,1,2),On.bind(void 0,0,0,1,1,3),On.bind(void 0,0,1,0,0,0),On.bind(void 0,0,1,0,0,1),On.bind(void 0,0,1,0,0,2),On.bind(void 0,0,1,0,0,3),On.bind(void 0,0,1,0,1,0),On.bind(void 0,0,1,0,1,1),On.bind(void 0,0,1,0,1,2),On.bind(void 0,0,1,0,1,3),On.bind(void 0,0,1,1,0,0),On.bind(void 0,0,1,1,0,1),On.bind(void 0,0,1,1,0,2),On.bind(void 0,0,1,1,0,3),On.bind(void 0,0,1,1,1,0),On.bind(void 0,0,1,1,1,1),On.bind(void 0,0,1,1,1,2),On.bind(void 0,0,1,1,1,3),On.bind(void 0,1,0,0,0,0),On.bind(void 0,1,0,0,0,1),On.bind(void 0,1,0,0,0,2),On.bind(void 0,1,0,0,0,3),On.bind(void 0,1,0,0,1,0),On.bind(void 0,1,0,0,1,1),On.bind(void 0,1,0,0,1,2),On.bind(void 0,1,0,0,1,3),On.bind(void 0,1,0,1,0,0),On.bind(void 0,1,0,1,0,1),On.bind(void 0,1,0,1,0,2),On.bind(void 0,1,0,1,0,3),On.bind(void 0,1,0,1,1,0),On.bind(void 0,1,0,1,1,1),On.bind(void 0,1,0,1,1,2),On.bind(void 0,1,0,1,1,3),On.bind(void 0,1,1,0,0,0),On.bind(void 0,1,1,0,0,1),On.bind(void 0,1,1,0,0,2),On.bind(void 0,1,1,0,0,3),On.bind(void 0,1,1,0,1,0),On.bind(void 0,1,1,0,1,1),On.bind(void 0,1,1,0,1,2),On.bind(void 0,1,1,0,1,3),On.bind(void 0,1,1,1,0,0),On.bind(void 0,1,1,1,0,1),On.bind(void 0,1,1,1,0,2),On.bind(void 0,1,1,1,0,3),On.bind(void 0,1,1,1,1,0),On.bind(void 0,1,1,1,1,1),On.bind(void 0,1,1,1,1,2),On.bind(void 0,1,1,1,1,3)],En.prototype.setState=function(e,t){return this.state[e]=t,this.activeState={key:e,value:this.state[e]},this.activeState},En.prototype.getState=function(e){return this.state[e]||null},Mn.prototype.inboundIndex=function(e){return e>=0&&e<this.tokens.length},Mn.prototype.composeRUD=function(e){var t=this,n=e.map((function(e){return t[e[0]].apply(t,e.slice(1).concat(true))})),r=function(e){return"object"===typeof e&&e.hasOwnProperty("FAIL")};if(n.every(r))return{FAIL:"composeRUD: one or more operations hasn't completed successfully",report:n.filter(r)};this.dispatch("composeRUD",[n.filter((function(e){return!r(e)}))])},Mn.prototype.replaceRange=function(e,t,n,r){t=null!==t?t:this.tokens.length;var i=n.every((function(e){return e instanceof En}));if(!isNaN(e)&&this.inboundIndex(e)&&i){var o=this.tokens.splice.apply(this.tokens,[e,t].concat(n));return r||this.dispatch("replaceToken",[e,t,n]),[o,n]}return{FAIL:"replaceRange: invalid tokens or startIndex."}},Mn.prototype.replaceToken=function(e,t,n){if(!isNaN(e)&&this.inboundIndex(e)&&t instanceof En){var r=this.tokens.splice(e,1,t);return n||this.dispatch("replaceToken",[e,t]),[r[0],t]}
2return{FAIL:"replaceToken: invalid token or index."}},Mn.prototype.removeRange=function(e,t,n){t=isNaN(t)?this.tokens.length:t;var r=this.tokens.splice(e,t);return n||this.dispatch("removeRange",[r,e,t]),r},Mn.prototype.removeToken=function(e,t){if(!isNaN(e)&&this.inboundIndex(e)){var n=this.tokens.splice(e,1);return t||this.dispatch("removeToken",[n,e]),n}return{FAIL:"removeToken: invalid token index."}},Mn.prototype.insertToken=function(e,t,n){return e.every((function(e){return e instanceof En}))?(this.tokens.splice.apply(this.tokens,[t,0].concat(e)),n||this.dispatch("insertToken",[e,t]),e):{FAIL:"insertToken: invalid token(s)."}},Mn.prototype.registerModifier=function(e,t,n){this.events.newToken.subscribe((function(r,i){var o=[r,i],a=[r,i];if(null===t||!0===t.apply(this,o)){var s=n.apply(this,a);r.setState(e,s)}})),this.registeredModifiers.push(e)},jn.prototype.subscribe=function(e){return"function"===typeof e?this.subscribers.push(e)-1:{FAIL:"invalid '"+this.eventId+"' event handler"}},jn.prototype.unsubscribe=function(e){this.subscribers.splice(e,1)},Pn.prototype.setCurrentIndex=function(e){this.index=e,this.current=this.context[e],this.backtrack=this.context.slice(0,e),this.lookahead=this.context.slice(e+1)},Pn.prototype.get=function(e){switch(!0){case 0===e:return this.current;case e<0&&Math.abs(e)<=this.backtrack.length:return this.backtrack.slice(e)[0];case e>0&&e<=this.lookahead.length:return this.lookahead[e-1];default:return null}},Mn.prototype.rangeToText=function(e){if(e instanceof Tn)return this.getRangeTokens(e).map((function(e){return e.char})).join("")},Mn.prototype.getText=function(){return this.tokens.map((function(e){return e.char})).join("")},Mn.prototype.getContext=function(e){var t=this.registeredContexts[e];return t||null},Mn.prototype.on=function(e,t){var n=this.events[e];return n?n.subscribe(t):null},Mn.prototype.dispatch=function(e,t){var n=this,r=this.events[e];r instanceof jn&&r.subscribers.forEach((function(e){e.apply(n,t||[])}))},Mn.prototype.registerContextChecker=function(e,t,n){if(this.getContext(e))return{FAIL:"context name '"+e+"' is already registered."};if("function"!==typeof t)return{FAIL:"missing context start check."};if("function"!==typeof n)return{FAIL:"missing context end check."};
2var r=new An(e,t,n);return this.registeredContexts[e]=r,this.contextCheckers.push(r),r},Mn.prototype.getRangeTokens=function(e){var t=e.startIndex+e.endOffset;return[].concat(this.tokens.slice(e.startIndex,t))},Mn.prototype.getContextRanges=function(e){var t=this.getContext(e);return t?t.ranges:{FAIL:"context checker '"+e+"' is not registered."}},Mn.prototype.resetContextsRanges=function(){var e=this.registeredContexts;for(var t in e){if(e.hasOwnProperty(t))e[t].ranges=[]}},Mn.prototype.updateContextsRanges=function(){this.resetContextsRanges();for(var e=this.tokens.map((function(e){return e.char})),t=0;t<e.length;t++){var n=new Pn(e,t);this.runContextCheck(n)}this.dispatch("updateContextsRanges",[this.registeredContexts])},Mn.prototype.setEndOffset=function(e,t){var n=new Tn(this.getContext(t).openRange.startIndex,e,t),r=this.getContext(t).ranges;return n.rangeId=t+"."+r.length,r.push(n),this.getContext(t).openRange=null,n},Mn.prototype.runContextCheck=function(e){var t=this,n=e.index;this.contextCheckers.forEach((function(r){var i=r.contextName,o=t.getContext(i).openRange;if(!o&&r.checkStart(e)&&(o=new Tn(n,null,i),t.getContext(i).openRange=o,t.dispatch("contextStart",[i,n])),o&&r.checkEnd(e)){var a=n-o.startIndex+1,s=t.setEndOffset(a,i);t.dispatch("contextEnd",[i,s])}}))},Mn.prototype.tokenize=function(e){this.tokens=[],this.resetContextsRanges();var t=Array.from(e);this.dispatch("start");for(var n=0;n<t.length;n++){var r=t[n],i=new Pn(t,n);this.dispatch("next",[i]),this.runContextCheck(i);var o=new En(r);this.tokens.push(o),this.dispatch("newToken",[o,i])}return this.dispatch("end",[this.tokens]),this.tokens},Fn.prototype.getDefaultScriptFeaturesIndexes=function(){for(var e=this.font.tables.gsub.scripts,t=0;t<e.length;t++){var n=e[t];if("DFLT"===n.tag)return n.script.defaultLangSys.featureIndexes}return[]},Fn.prototype.getScriptFeaturesIndexes=function(e){if(!this.font.tables.gsub)return[];if(!e)return this.getDefaultScriptFeaturesIndexes();for(var t=this.font.tables.gsub.scripts,n=0;n<t.length;n++){var r=t[n];if(r.tag===e&&r.script.defaultLangSys)return r.script.defaultLangSys.featureIndexes;var i=r.langSysRecords;if(i)for(var o=0;o<i.length;o++){var a=i[o];if(a.tag===e)return a.langSys.featureIndexes}}return this.getDefaultScriptFeaturesIndexes()},Fn.prototype.mapTagsToFeatures=function(e,t){for(var n={},r=0;r<e.length;r++){var i=e[r].tag,o=e[r].feature;n[i]=o}this.features[t].tags=n},Fn.prototype.getScriptFeatures=function(e){var t=this.features[e];if(this.features.hasOwnProperty(e))return t;var n=this.getScriptFeaturesIndexes(e);if(!n)return null;var r=this.font.tables.gsub;return t=n.map((function(e){return r.features[e]})),this.features[e]=t,this.mapTagsToFeatures(t,e),t},Fn.prototype.getSubstitutionType=function(e,t){return e.lookupType.toString()+t.substFormat.toString()},Fn.prototype.getLookupMethod=function(e,t){var n=this;switch(this.getSubstitutionType(e,t)){case"11":return function(e){return zn.apply(n,[e,t])};case"12":return function(e){return Vn.apply(n,[e,t])};case"63":return function(e){return Wn.apply(n,[e,t])};case"41":return function(e){return Gn.apply(n,[e,t])};case"21":return function(e){return qn.apply(n,[e,t])};default:throw new Error("lookupType: "+e.lookupType+" - substFormat: "+t.substFormat+" is not yet supported")}},Fn.prototype.lookupFeature=function(e){var t=e.contextParams,n=t.index,r=this.getFeature({tag:e.tag,script:e.script});if(!r)return new Error("font '"+this.font.names.fullName.en+"' doesn't support feature '"+e.tag+"' for script '"+e.script+"'.");for(var i=this.getFeatureLookups(r),o=[].concat(t.context),a=0;a<i.length;a++)for(var s=i[a],l=this.getLookupSubtables(s),c=0;c<l.length;c++){var u=l[c],h=this.getSubstitutionType(s,u),f=this.getLookupMethod(s,u),d=void 0;switch(h){case"11":(d=f(t.current))&&o.splice(n,1,new Bn({id:11,tag:e.tag,substitution:d}));break;case"12":(d=f(t.current))&&o.splice(n,1,new Bn({id:12,tag:e.tag,substitution:d}));break;case"63":d=f(t),Array.isArray(d)&&d.length&&o.splice(n,1,new Bn({id:63,tag:e.tag,substitution:d}));break;case"41":(d=f(t))&&o.splice(n,1,new Bn({id:41,tag:e.tag,substitution:d}));break;case"21":(d=f(t.current))&&o.splice(n,1,new Bn({id:21,tag:e.tag,substitution:d}))}t=new Pn(o,n),Array.isArray(d)&&!d.length||(d=null)}return o.length?o:null},Fn.prototype.supports=function(e){if(!e.script)return!1;
2this.getScriptFeatures(e.script);var t=this.features.hasOwnProperty(e.script);if(!e.tag)return t;var n=this.features[e.script].some((function(t){return t.tag===e.tag}));return t&&n},Fn.prototype.getLookupSubtables=function(e){return e.subtables||null},Fn.prototype.getLookupByIndex=function(e){return this.font.tables.gsub.lookups[e]||null},Fn.prototype.getFeatureLookups=function(e){return e.lookupListIndexes.map(this.getLookupByIndex.bind(this))},Fn.prototype.getFeature=function(e){if(!this.font)return{FAIL:"No font was found"};this.features.hasOwnProperty(e.script)||this.getScriptFeatures(e.script);var t=this.features[e.script];return t?t.tags[e.tag]?this.features[e.script].tags[e.tag]:null:{FAIL:"No feature for script "+e.script}};var Xn={startCheck:function(e){var t=e.current,n=e.get(-1);return null===n&&Rn(t)||!Rn(n)&&Rn(t)},endCheck:function(e){var t=e.get(1);return null===t||!Rn(t)}};var Yn={startCheck:function(e){var t=e.current,n=e.get(-1);return(Rn(t)||In(t))&&!Rn(n)},endCheck:function(e){var t=e.get(1);switch(!0){case null===t:return!0;case!Rn(t)&&!In(t):var n=/\s/.test(t);if(!n)return!0;if(n){if(!e.lookahead.some((function(e){return Rn(e)||In(e)})))return!0}break;default:return!1}}};var $n={11:function(e,t,n){t[n].setState(e.tag,e.substitution)},12:function(e,t,n){t[n].setState(e.tag,e.substitution)},63:function(e,t,n){e.substitution.forEach((function(r,i){t[n+i].setState(e.tag,r)}))},41:function(e,t,n){var r=t[n];r.setState(e.tag,e.substitution.ligGlyph);for(var i=e.substitution.components.length,o=0;o<i;o++)(r=t[n+o+1]).setState("deleted",!0)}};function Kn(e,t,n){e instanceof Bn&&$n[e.id]&&$n[e.id](e,t,n)}function Zn(e){var t=this,n="arab",r=this.featuresTags.arab,i=this.tokenizer.getRangeTokens(e);if(1!==i.length){var o=new Pn(i.map((function(e){return e.getState("glyphIndex")})),0),a=new Pn(i.map((function(e){return e.char})),0);i.forEach((function(e,s){if(!In(e.char)){o.setCurrentIndex(s),a.setCurrentIndex(s);var l,c=0;switch(function(e){for(var t=[].concat(e.backtrack),n=t.length-1;n>=0;n--){var r=t[n],i=Dn(r),o=In(r);if(!i&&!o)return!0;if(i)return!1}return!1}(a)&&(c|=1),function(e){if(Dn(e.current))return!1;for(var t=0;t<e.lookahead.length;t++)if(!In(e.lookahead[t]))return!0;return!1}(a)&&(c|=2),c){case 1:l="fina";break;case 2:l="init";break;case 3:l="medi"}if(-1!==r.indexOf(l)){var u=t.query.lookupFeature({tag:l,script:n,contextParams:o});if(u instanceof Error)return console.info(u.message);u.forEach((function(e,t){e instanceof Bn&&(Kn(e,i,t),o.context[t]=e.substitution)}))}}}))}}function Qn(e,t){return new Pn(e.map((function(e){return e.activeState.value})),t||0)}function Jn(e){var t=this,n=this.tokenizer.getRangeTokens(e),r=Qn(n);r.context.forEach((function(e,i){r.setCurrentIndex(i);var o=t.query.lookupFeature({tag:"rlig",script:"arab",contextParams:r});o.length&&(o.forEach((function(e){return Kn(e,n,i)})),r=Qn(n))}))}var er={startCheck:function(e){var t=e.current,n=e.get(-1);return null===n&&Nn(t)||!Nn(n)&&Nn(t)},endCheck:function(e){var t=e.get(1);return null===t||!Nn(t)}};function tr(e,t){return new Pn(e.map((function(e){return e.activeState.value})),t||0)}function nr(e){var t=this,n=this.tokenizer.getRangeTokens(e),r=tr(n);r.context.forEach((function(e,i){r.setCurrentIndex(i);var o=t.query.lookupFeature({tag:"liga",script:"latn",contextParams:r});o.length&&(o.forEach((function(e){return Kn(e,n,i)})),r=tr(n))}))}function rr(e){this.baseDir=e||"ltr",this.tokenizer=new Mn,this.featuresTags={}}function ir(e){var t=this.contextChecks[e+"Check"];return this.tokenizer.registerContextChecker(e,t.startCheck,t.endCheck)}function or(){return ir.call(this,"latinWord"),ir.call(this,"arabicWord"),ir.call(this,"arabicSentence"),this.tokenizer.tokenize(this.text)}function ar(){var e=this;this.tokenizer.getContextRanges("arabicSentence").forEach((function(t){var n=e.tokenizer.getRangeTokens(t);e.tokenizer.replaceRange(t.startIndex,t.endOffset,n.reverse())}))}function sr(){if(-1===this.tokenizer.registeredModifiers.indexOf("glyphIndex"))throw new Error("glyphIndex modifier is required to apply arabic presentation features.")}function lr(){var e=this;this.featuresTags.hasOwnProperty("arab")&&(sr.call(this),this.tokenizer.getContextRanges("arabicWord").forEach((function(t){Zn.call(e,t)})))}function cr(){var e=this,t="arab";this.featuresTags.hasOwnProperty(t)&&(-1!==this.featuresTags.arab.indexOf("rlig")&&(sr.call(this),this.tokenizer.getContextRanges("arabicWord").forEach((function(t){Jn.call(e,t)}))))}function ur(){var e=this,t="latn";this.featuresTags.hasOwnProperty(t)&&(-1!==this.featuresTags.latn.indexOf("liga")&&(sr.call(this),this.tokenizer.getContextRanges("latinWord").forEach((function(t){nr.call(e,t)}))))}function hr(e){(e=e||{}).tables=e.tables||{},e.empty||(At(e.familyName,"When creating a new Font object, familyName is required."),At(e.styleName,"When creating a new Font object, styleName is required."),At(e.unitsPerEm,"When creating a new Font object, unitsPerEm is required."),At(e.ascender,"When creating a new Font object, ascender is required."),At(e.descender<=0,"When creating a new Font object, negative descender value is required."),this.names={fontFamily:{en:e.familyName||" "}
2,fontSubfamily:{en:e.styleName||" "},fullName:{en:e.fullName||e.familyName+" "+e.styleName},postScriptName:{en:e.postScriptName||(e.familyName+e.styleName).replace(/\s/g,"")},designer:{en:e.designer||" "},designerURL:{en:e.designerURL||" "},manufacturer:{en:e.manufacturer||" "},manufacturerURL:{en:e.manufacturerURL||" "},license:{en:e.license||" "},licenseURL:{en:e.licenseURL||" "},version:{en:e.version||"Version 0.1"},description:{en:e.description||" "},copyright:{en:e.copyright||" "},trademark:{en:e.trademark||" "}},this.unitsPerEm=e.unitsPerEm||1e3,this.ascender=e.ascender,this.descender=e.descender,this.createdTimestamp=e.createdTimestamp,this.tables=Object.assign(e.tables,{os2:Object.assign({usWeightClass:e.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:e.widthClass||this.usWidthClasses.MEDIUM,fsSelection:e.fsSelection||this.fsSelectionValues.REGULAR},e.tables.os2)})),this.supported=!0,this.glyphs=new _e.GlyphSet(this,e.glyphs||[]),this.encoding=new fe(this),this.position=new Ct(this),this.substitution=new kt(this),this.tables=this.tables||{},this._push=null,this._hmtxTableData={},Object.defineProperty(this,"hinting",{get:function(){return this._hinting?this._hinting:"truetype"===this.outlinesFormat?this._hinting=new Ut(this):void 0}})}function fr(e,t){var n=JSON.stringify(e),r=256;for(var i in t){var o=parseInt(i);if(o&&!(o<256)){if(JSON.stringify(t[i])===n)return o;r<=o&&(r=o+1)}}return t[r]=e,r}function dr(e,t,n){var r=fr(t.name,n);return[{name:"tag_"+e,type:"TAG",value:t.tag},{name:"minValue_"+e,type:"FIXED",value:t.minValue<<16},{name:"defaultValue_"+e,type:"FIXED",value:t.defaultValue<<16},{name:"maxValue_"+e,type:"FIXED",value:t.maxValue<<16},{name:"flags_"+e,type:"USHORT",value:0},{name:"nameID_"+e,type:"USHORT",value:r}]}function pr(e,t,n){var r={},i=new oe.Parser(e,t);return r.tag=i.parseTag(),r.minValue=i.parseFixed(),r.defaultValue=i.parseFixed(),r.maxValue=i.parseFixed(),i.skip("uShort",1),r.name=n[i.parseUShort()]||{},r}function gr(e,t,n,r){for(var i=[{name:"nameID_"+e,type:"USHORT",value:fr(t.name,r)},{name:"flags_"+e,type:"USHORT",value:0}],o=0;o<n.length;++o){var a=n[o].tag;i.push({name:"axis_"+e+" "+a,type:"FIXED",value:t.coordinates[a]<<16})}return i}function vr(e,t,n,r){var i={},o=new oe.Parser(e,t);i.name=r[o.parseUShort()]||{},o.skip("uShort",1),i.coordinates={};for(var a=0;a<n.length;++a)i.coordinates[n[a].tag]=o.parseFixed();return i}rr.prototype.setText=function(e){this.text=e},rr.prototype.contextChecks={latinWordCheck:er,arabicWordCheck:Xn,arabicSentenceCheck:Yn},rr.prototype.registerFeatures=function(e,t){var n=this,r=t.filter((function(t){return n.query.supports({script:e,tag:t})}));this.featuresTags.hasOwnProperty(e)?this.featuresTags[e]=this.featuresTags[e].concat(r):this.featuresTags[e]=r},rr.prototype.applyFeatures=function(e,t){if(!e)throw new Error("No valid font was provided to apply features");this.query||(this.query=new Fn(e));for(var n=0;n<t.length;n++){var r=t[n];this.query.supports({script:r.script})&&this.registerFeatures(r.script,r.tags)}},rr.prototype.registerModifier=function(e,t,n){this.tokenizer.registerModifier(e,t,n)},rr.prototype.checkContextReady=function(e){return!!this.tokenizer.getContext(e)},rr.prototype.applyFeaturesToContexts=function(){this.checkContextReady("arabicWord")&&(lr.call(this),cr.call(this)),this.checkContextReady("latinWord")&&ur.call(this),this.checkContextReady("arabicSentence")&&ar.call(this)},rr.prototype.processText=function(e){this.text&&this.text===e||(this.setText(e),or.call(this),this.applyFeaturesToContexts())},rr.prototype.getBidiText=function(e){return this.processText(e),this.tokenizer.getText()},rr.prototype.getTextGlyphs=function(e){this.processText(e);for(var t=[],n=0;n<this.tokenizer.tokens.length;n++){var r=this.tokenizer.tokens[n];if(!r.state.deleted){var i=r.activeState.value;t.push(Array.isArray(i)?i[0]:i)}}return t},hr.prototype.hasChar=function(e){return null!==this.encoding.charToGlyphIndex(e)},hr.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)},hr.prototype.charToGlyph=function(e){var t=this.charToGlyphIndex(e),n=this.glyphs.get(t);return n||(n=this.glyphs.get(0)),n},hr.prototype.updateFeatures=function(e){return this.defaultRenderOptions.features.map((function(t){return"latn"===t.script?{script:"latn",tags:t.tags.filter((function(t){return e[t]}))}:t}))},hr.prototype.stringToGlyphs=function(e,t){var n=this,r=new rr;r.registerModifier("glyphIndex",null,(function(e){return n.charToGlyphIndex(e.char)}));var i=t?this.updateFeatures(t.features):this.defaultRenderOptions.features;r.applyFeatures(this,i);for(var o=r.getTextGlyphs(e),a=o.length,s=new Array(a),l=this.glyphs.get(0),c=0;c<a;c+=1)s[c]=this.glyphs.get(o[c])||l;return s},hr.prototype.nameToGlyphIndex=function(e){return this.glyphNames.nameToGlyphIndex(e)},hr.prototype.nameToGlyph=function(e){var t=this.nameToGlyphIndex(e),n=this.glyphs.get(t);return n||(n=this.glyphs.get(0)),n},hr.prototype.glyphIndexToName=function(e){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(e):""},hr.prototype.getKerningValue=function(e,t){e=e.index||e,t=t.index||t;var n=this.position.defaultKerningTables;return n?this.position.getKerningValue(n,e,t):this.kerningPairs[e+","+t]||0},hr.prototype.defaultRenderOptions={kerning:!0,features:[{script:"arab",tags:["init","medi","fina","rlig"]},{script:"latn",tags:["liga","rlig"]}]},hr.prototype.forEachGlyph=function(e,t,n,r,i,o){t=void 0!==t?t:0,n=void 0!==n?n:0,r=void 0!==r?r:72,i=Object.assign({},this.defaultRenderOptions,i);var a,s=1/this.unitsPerEm*r,l=this.stringToGlyphs(e,i);if(i.kerning){var c=i.script||this.position.getDefaultScriptName();a=this.position.getKerningTables(c,i.language)}for(var u=0;u<l.length;u+=1){var h=l[u];
2if(o.call(this,h,t,n,r,i),h.advanceWidth&&(t+=h.advanceWidth*s),i.kerning&&u<l.length-1)t+=(a?this.position.getKerningValue(a,h.index,l[u+1].index):this.getKerningValue(h,l[u+1]))*s;i.letterSpacing?t+=i.letterSpacing*r:i.tracking&&(t+=i.tracking/1e3*r)}return t},hr.prototype.getPath=function(e,t,n,r,i){var o=new O;return this.forEachGlyph(e,t,n,r,i,(function(e,t,n,r){var a=e.getPath(t,n,r,i,this);o.extend(a)})),o},hr.prototype.getPaths=function(e,t,n,r,i){var o=[];return this.forEachGlyph(e,t,n,r,i,(function(e,t,n,r){var a=e.getPath(t,n,r,i,this);o.push(a)})),o},hr.prototype.getAdvanceWidth=function(e,t,n){return this.forEachGlyph(e,0,0,t,n,(function(){}))},hr.prototype.draw=function(e,t,n,r,i,o){this.getPath(t,n,r,i,o).draw(e)},hr.prototype.drawPoints=function(e,t,n,r,i,o){this.forEachGlyph(t,n,r,i,o,(function(t,n,r,i){t.drawPoints(e,n,r,i)}))},hr.prototype.drawMetrics=function(e,t,n,r,i,o){this.forEachGlyph(t,n,r,i,o,(function(t,n,r,i){t.drawMetrics(e,n,r,i)}))},hr.prototype.getEnglishName=function(e){var t=this.names[e];if(t)return t.en},hr.prototype.validate=function(){var e=this;function t(t){var n=e.getEnglishName(t);n&&n.trim().length}t("fontFamily"),t("weightName"),t("manufacturer"),t("copyright"),t("version"),this.unitsPerEm},hr.prototype.toTables=function(){return bt.fontToTable(this)},hr.prototype.toBuffer=function(){return console.warn("Font.toBuffer is deprecated. Use Font.toArrayBuffer instead."),this.toArrayBuffer()},hr.prototype.toArrayBuffer=function(){for(var e=this.toTables().encode(),t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r<e.length;r++)n[r]=e[r];return t},hr.prototype.download=function(t){var r=this.getEnglishName("fontFamily"),i=this.getEnglishName("fontSubfamily");t=t||r.replace(/\s/g,"")+"-"+i+".otf";var o=this.toArrayBuffer();if("undefined"!==typeof window)if(window.URL=window.URL||window.webkitURL,window.URL){var a=new DataView(o),s=new Blob([a],{type:"font/opentype"}),l=document.createElement("a");l.href=window.URL.createObjectURL(s),l.download=t;var c=document.createEvent("MouseEvents");c.initEvent("click",!0,!1),l.dispatchEvent(c)}else console.warn("Font file could not be downloaded. Try using a different browser.");else{var u=n(169),h=function(t){for(var n=new e(t.byteLength),r=new
2Uint8Array(t),i=0;i<n.length;++i)n[i]=r[i];return n}(o);u.writeFileSync(t,h)}},hr.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512},hr.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9},hr.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};var mr={make:function(e,t){var n=new Z.Table("fvar",[{name:"version",type:"ULONG",value:65536},{name:"offsetToData",type:"USHORT",value:0},{name:"countSizePairs",type:"USHORT",value:2},{name:"axisCount",type:"USHORT",value:e.axes.length},{name:"axisSize",type:"USHORT",value:20},{name:"instanceCount",type:"USHORT",value:e.instances.length},{name:"instanceSize",type:"USHORT",value:4+4*e.axes.length}]);n.offsetToData=n.sizeOf();for(var r=0;r<e.axes.length;r++)n.fields=n.fields.concat(dr(r,e.axes[r],t));for(var i=0;i<e.instances.length;i++)n.fields=n.fields.concat(gr(i,e.instances[i],e.axes,t));return n},parse:function(e,t,n){var r=new oe.Parser(e,t),i=r.parseULong();A.argument(65536===i,"Unsupported fvar table version.");var o=r.parseOffset16();r.skip("uShort",1);for(var a=r.parseUShort(),s=r.parseUShort(),l=r.parseUShort(),c=r.parseUShort(),u=[],h=0;h<a;h++)u.push(pr(e,t+o+h*s,n));for(var f=[],d=t+o+a*s,p=0;p<l;p++)f.push(vr(e,d+p*c,u,n));return{axes:u,instances:f}}},yr=new Array(10);yr[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{posFormat:1,coverage:this.parsePointer(re.coverage),value:this.parseValueRecord()}:2===t?{posFormat:2,coverage:this.parsePointer(re.coverage),values:this.parseValueRecordList()}:void A.assert(!1,"0x"+e.toString(16)+": GPOS lookup type 1 format must be 1 or 2.")},yr[2]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();A.assert(1===t||2===t,"0x"+e.toString(16)+": GPOS lookup type 2 format must be 1 or 2.");var n=this.parsePointer(re.coverage),r=this.parseUShort(),i=this.parseUShort();if(1===t)return{posFormat:t,coverage:n,valueFormat1:r,valueFormat2:i,pairSets:this.parseList(re.pointer(re.list((function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(r),value2:this.parseValueRecord(i)}}))))};if(2===t){var o=this.parsePointer(re.classDef),a=this.parsePointer(re.classDef),s=this.parseUShort(),l=this.parseUShort();return{posFormat:t,coverage:n,valueFormat1:r,valueFormat2:i,classDef1:o,classDef2:a,class1Count:s,class2Count:l,classRecords:this.parseList(s,re.list(l,(function(){return{value1:this.parseValueRecord(r),value2:this.parseValueRecord(i)}})))}}},yr[3]=function(){return{error:"GPOS Lookup 3 not supported"}},yr[4]=function(){return{error:"GPOS Lookup 4 not supported"}},yr[5]=function(){return{error:"GPOS Lookup 5 not supported"}}
2,yr[6]=function(){return{error:"GPOS Lookup 6 not supported"}},yr[7]=function(){return{error:"GPOS Lookup 7 not supported"}},yr[8]=function(){return{error:"GPOS Lookup 8 not supported"}},yr[9]=function(){return{error:"GPOS Lookup 9 not supported"}};var br=new Array(10);var xr={parse:function(e,t){var n=new re(e,t=t||0),r=n.parseVersion(1);return A.argument(1===r||1.1===r,"Unsupported GPOS table version "+r),1===r?{version:r,scripts:n.parseScriptList(),features:n.parseFeatureList(),lookups:n.parseLookupList(yr)}:{version:r,scripts:n.parseScriptList(),features:n.parseFeatureList(),lookups:n.parseLookupList(yr),variations:n.parseFeatureVariationsList()}},make:function(e){return new Z.Table("GPOS",[{name:"version",type:"ULONG",value:65536},{name:"scripts",type:"TABLE",value:new Z.ScriptList(e.scripts)},{name:"features",type:"TABLE",value:new Z.FeatureList(e.features)},{name:"lookups",type:"TABLE",value:new Z.LookupList(e.lookups,br)}])}};var _r={parse:function(e,t){var n=new oe.Parser(e,t),r=n.parseUShort();if(0===r)return function(e){var t={};e.skip("uShort");var n=e.parseUShort();A.argument(0===n,"Unsupported kern sub-table version."),e.skip("uShort",2);var r=e.parseUShort();e.skip("uShort",3);for(var i=0;i<r;i+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+","+a]=s}return t}(n);if(1===r)return function(e){var t={};e.skip("uShort"),e.parseULong()>1&&console.warn("Only the first kern subtable is supported."),e.skip("uLong");var n=255&e.parseUShort();if(e.skip("uShort"),0===n){var r=e.parseUShort();e.skip("uShort",3);for(var i=0;i<r;i+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+","+a]=s}}return t}(n);throw new Error("Unsupported kern table version ("+r+").")}};var wr={parse:function(e,t,n,r){for(var i=new oe.Parser(e,t),o=r?i.parseUShort:i.parseULong,a=[],s=0;s<n+1;s+=1){var l=o.call(i);r&&(l*=2),a.push(l)}return a}};function Sr(e,t){n(169).readFile(e,(function(e,n){if(e)return t(e.message);t(null,Tt(n))}))}function Cr(e,t){var n=new XMLHttpRequest;n.open("get",e,!0),n.responseType="arraybuffer",n.onload=function(){return n.response?t(null,n.response):t("Font could not be loaded: "+n.statusText)},n.onerror=function(){t("Font could not be loaded")},n.send()}function kr(e,t){for(var n=[],r=12,i=0;i<t;i+=1){var o=oe.getTag(e,r),a=oe.getULong(e,r+4),s=oe.getULong(e,r+8),l=oe.getULong(e,r+12);n.push({tag:o,checksum:a,offset:s,length:l,compression:!1}),r+=16}return n}function Or(e,t){if("WOFF"===t.compression){var n=new Uint8Array(e.buffer,t.offset+2,t.compressedLength-2),r=new Uint8Array(t.length);if(S(n,r),r.byteLength!==t.length)throw new Error("Decompression error: "+t.tag+" decompressed length doesn't match recorded length");return{data:new DataView(r.buffer,0),offset:0}}return{data:e,offset:t.offset}}function Er(e,t){var n,r;t=void 0===t||null===t?{}:t;var i,o,a,s,l,c,u,h,f,d,p,g,v=new hr({empty:!0}),m=new DataView(e,0),y=[],b=oe.getTag(m,0);if(b===String.fromCharCode(0,1,0,0)||"true"===b||"typ1"===b)v.outlinesFormat="truetype",y=kr(m,i=oe.getUShort(m,4));else if("OTTO"===b)v.outlinesFormat="cff",y=kr(m,i=oe.getUShort(m,4));else{if("wOFF"!==b)throw new Error("Unsupported OpenType signature "+b);var x=oe.getTag(m,4);
2if(x===String.fromCharCode(0,1,0,0))v.outlinesFormat="truetype";else{if("OTTO"!==x)throw new Error("Unsupported OpenType flavor "+b);v.outlinesFormat="cff"}y=function(e,t){for(var n=[],r=44,i=0;i<t;i+=1){var o=oe.getTag(e,r),a=oe.getULong(e,r+4),s=oe.getULong(e,r+8),l=oe.getULong(e,r+12),c=void 0;c=s<l&&"WOFF",n.push({tag:o,offset:a,compression:c,compressedLength:s,length:l}),r+=20}return n}(m,i=oe.getUShort(m,12))}for(var _=0;_<i;_+=1){var w=y[_],S=void 0;switch(w.tag){case"cmap":S=Or(m,w),v.tables.cmap=se.parse(S.data,S.offset),v.encoding=new de(v.tables.cmap);break;case"cvt ":S=Or(m,w),g=new oe.Parser(S.data,S.offset),v.tables.cvt=g.parseShortList(w.length/2);break;case"fvar":a=w;break;case"fpgm":S=Or(m,w),g=new oe.Parser(S.data,S.offset),v.tables.fpgm=g.parseByteList(w.length);break;case"head":S=Or(m,w),v.tables.head=ze.parse(S.data,S.offset),v.unitsPerEm=v.tables.head.unitsPerEm,n=v.tables.head.indexToLocFormat;break;case"hhea":S=Or(m,w),v.tables.hhea=Ve.parse(S.data,S.offset),v.ascender=v.tables.hhea.ascender,v.descender=v.tables.hhea.descender,v.numberOfHMetrics=v.tables.hhea.numberOfHMetrics;break;case"hmtx":u=w;break;case"ltag":S=Or(m,w),r=We.parse(S.data,S.offset);break;case"maxp":S=Or(m,w),v.tables.maxp=Ge.parse(S.data,S.offset),v.numGlyphs=v.tables.maxp.numGlyphs;break;case"name":d=w;break;case"OS/2":S=Or(m,w),v.tables.os2=at.parse(S.data,S.offset);break;case"post":S=Or(m,w),v.tables.post=st.parse(S.data,S.offset),v.glyphNames=new ge(v.tables.post);break;case"prep":S=Or(m,w),g=new oe.Parser(S.data,S.offset),v.tables.prep=g.parseByteList(w.length);break;case"glyf":s=w;break;case"loca":f=w;break;case"CFF ":o=w;break;case"kern":h=w;break;case"GPOS":l=w;break;case"GSUB":c=w;break;case"meta":p=w}}var C=Or(m,d);if(v.tables.name=it.parse(C.data,C.offset,r),v.names=v.tables.name,s&&f){var k=0===n,O=Or(m,f),E=wr.parse(O.data,O.offset,v.numGlyphs,k),T=Or(m,s);v.glyphs=Bt.parse(T.data,T.offset,E,v,t)}else{if(!o)throw new Error("Font doesn't contain TrueType or CFF outlines.");var A=Or(m,o);Ue.parse(A.data,A.offset,v,t)}var P=Or(m,u);if(He.parse(v,P.data,P.offset,v.numberOfHMetrics,v.numGlyphs,v.glyphs,t),ve(v,t),h){var j=Or(m,h);v.kerningPairs=_r.parse(j.data,j.offset)}else v.kerningPairs={};if(l){var L=Or(m,l);v.tables.gpos=xr.parse(L.data,L.offset),v.position.init()}if(c){var M=Or(m,c);v.tables.gsub=ht.parse(M.data,M.offset)}if(a){var R=Or(m,a);v.tables.fvar=mr.parse(R.data,R.offset,v.names)}if(p){var D=Or(m,p);v.tables.meta=ft.parse(D.data,D.offset),v.metas=v.tables.meta}return v}var Tr=Object.freeze({__proto__:null,Font:hr,Glyph:ye,Path:O,BoundingBox:k,_parse:oe,parse:Er,load:function(e,t,n){var r="undefined"===typeof window?Sr:Cr;return new Promise((function(i,o){r(e,(function(e,r){if(e){if(t)return t(e);o(e)}var a;try{a=Er(r,n)}catch(s){if(t)return t(s,null);o(s)}if(t)return t(null,a);i(a)}))}))},loadSync:function(e,t){return Er(Tt(n(169).readFileSync(e)),t)}});t.b=Tr}).call(this,n(272).Buffer)},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(227);function i(e,t){if(r.a)return e?"function"===typeof e?e():"current"in e?e.current:e:t}},,function(e,t,n){"use strict";var r=n(0),i=n.n(r).a.createContext(null);t.a=i},function(e,t,n){"use strict";t.a={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},function(e,t,n){"use strict";var r="function"===typeof Symbol&&Symbol.for;t.a=r?Symbol.for("mui.nested"):"__THEME_NESTED__"},function(e,t,n){"use strict";function r(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";
2function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return o}));var i=n(119);function o(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?Object(i.a)(e):t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));n(153),n(100);function r(e){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){return(i="function"===typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}n(12),n(89);var o={xs:0,sm:600,md:960,lg:1280,xl:1920},a={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(o[e],"px)")}};function s(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||a;return t.reduce((function(e,i,o){return e[r.up(r.keys[o])]=n(t[o]),e}),{})}if("object"===i(t)){var o=e.theme.breakpoints||a;return Object.keys(t).reduce((function(e,r){return e[o.up(r)]=n(t[r]),e}),{})}return n(t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=/[a-zA-Z0-9:_-]/,i=/[\s\t\r\n]/,o=/['"]/;function a(e){var t="",n=[],a=u,s=null,l=null;function c(t){var n=function(e,t,n){if("number"===typeof n)throw new Error("locate takes a { startIndex, offsetLine, offsetColumn } object as the third argument");return function(e,t){void 0===t&&(t={});var n=t.offsetLine||0,r=t.offsetColumn||0,i=e.split("\n"),o=0,a=i.map((function(e,t){var n=o+e.length+1,r={start:o,end:n,line:t};return o=n,r})),s=0;function l(e,t){return e.start<=t&&t<e.end}function c(e,t){return{line:n+e.line,column:r+t-e.start,character:t}}return function(t,n){"string"===typeof t&&(t=e.indexOf(t,n||0));for(var r=a[s],i=t>=r.end?1:-1;r;){if(l(r,t))return c(r,t);r=a[s+=i]}}}(e,n)(t,n&&n.startIndex)}(e,b),r=n.line,i=n.column,o=e.slice(0,b),a=/(^|\n).*$/.exec(o)[0].replace(/\t/g," "),s=e.slice(b),l=""+a+/.*(\n|$)/.exec(s)[0]+"\n"+function(e,t){for(var n="";t--;)n+=e;return n}(" ",a.length)+"^";throw new Error(t+" ("+r+":"+i+"). If this is valid SVG, it's probably a bug in svg-parser. Please raise an issue at https://github.com/Rich-Harris/svg-parser/issues \u2013 thanks!\n\n"+l)}function u(){for(;b<e.length&&"<"!==e[b]||!r.test(e[b+1]);)t+=e[b++];return h()}function h(){for(var t="";b<e.length&&"<"!==e[b];)t+=e[b++];return/\S/.test(t)&&s.children.push({type:"text",value:t}),"<"===e[b]?f:h}function f(){var t=e[b];if("?"===t)return h;if("!"===t){if("--"===e.slice(b+1,b+3))return d;if("[CDATA["===e.slice(b+1,b+8))return p;if(/doctype/i.test(e.slice(b+1,b+8)))return h}if("/"===t)return g;var r,i={type:"element",tagName:v(),properties:{},children:[]};for(s?s.children.push(i):l=i;b<e.length&&(r=m());)i.properties[r.name]=r.value;var o=!1;return"/"===e[b]&&(b+=1,o=!0),">"!==e[b]&&c("Expected >"),o||(s=i,n.push(i)),h}function d(){var t=e.indexOf("--\x3e",b);return~t||c("expected --\x3e"),b=t+2,h}function p(){var t=e.indexOf("]]>",b);return~t||c("expected ]]>"),s.children.push(e.slice(b+7,t)),b=t+2,h}function g(){var t=v();return t||c("Expected tag name"),t!==s.tagName&&c("Expected closing tag </"+t+"> to match opening tag <"+s.tagName+">"),y(),">"!==e[b]&&c("Expected >"),n.pop(),s=n[n.length-1],h}function v(){for(var t="";b<e.length&&r.test(e[b]);)t+=e[b++];return t}function m(){if(!i.test(e[b]))return null;y();var t=v();if(!t)return null;var n=!0;return y(),"="===e[b]&&(b+=1,y(),n=o.test(e[b])?function(){for(var t=e[b++],n="",r=!1;b<e.length;){var i=e[b++];if(i===t&&!r)return n;"\\"!==i||r||(r=!0),n+=r?"\\"+i:i,r=!1}}():function(){var t="";do{var n=e[b];if(" "===n||">"===n||"/"===n)return t;t+=n,b+=1}while(b<e.length);return t}(),isNaN(n)||""===n.trim()||(n=+n)),{name:t,value:n}}function y(){for(;b<e.length&&i.test(e[b]);)b+=1}for(var b=u.length;b<e.length;)a||c("Unexpected character"),a=a(),b+=1;return a!==h&&c("Unexpected end of input"),"svg"===l.tagName&&(l.metadata=t),{type:"root",children:[l]}}},function(e,t,n){"use strict";var r=n(4),i=n(34),o=n(82),a=n(0),s=n.n(a),l=n(6),c=(n(12),n(68)),u=n.n(c),h=n(398);function f(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}var d=n(98);t.a=function(e){var t=function(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=r.name,c=Object(o.a)(r,["name"]),d=a,p="function"===typeof t?function(e){return{root:function(n){return t(Object(i.a)({theme:e},n))}}}:{root:t},g=Object(h.a)(p,Object(i.a)({Component:e,name:a||e.displayName,classNamePrefix:d},c));
2t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var v=s.a.forwardRef((function(t,r){var a=t.children,c=t.className,u=t.clone,h=t.component,d=Object(o.a)(t,["children","className","clone","component"]),p=g(t),v=Object(l.a)(p.root,c),m=d;if(n&&(m=f(m,n)),u)return s.a.cloneElement(a,Object(i.a)({className:Object(l.a)(a.props.className,v)},m));if("function"===typeof a)return a(Object(i.a)({className:v},m));var y=h||e;return s.a.createElement(y,Object(i.a)({ref:r,className:v},m),a)}));return u()(v,e),v}}(e);return function(e,n){return t(e,Object(r.a)({defaultTheme:d.a},n))}}},function(e,t,n){"use strict";var r=n(135),i=n(108),o=(n(12),n(0)),a=n.n(o),s=n(25),l=n.n(s),c=!1,u=n(122),h="unmounted",f="exited",d="entering",p="entered",g="exiting",v=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=f,r.appearStatus=d):i=p:i=t.unmountOnExit||t.mountOnEnter?h:f,r.state={status:i},r.nextCallback=null,r}Object(i.a)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===h?{status:f}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==d&&n!==p&&(t=d):n!==d&&n!==p||(t=g)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===d?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===f&&this.setState({status:h})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[l.a.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),u=r?s.appear:s.enter;!e&&!n||c?this.safeSetState({status:p},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:d},(function(){t.props.onEntering(o,a),t.onTransitionEnd(u,(function(){t.safeSetState({status:p},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:l.a.findDOMNode(this);t&&!c?(this.props.onExit(r),this.safeSetState({status:g},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:f},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:f},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:l.a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===h)return null;var t=this.props,n=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Object(r.a)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a.a.createElement(u.a.Provider,{value:null},"function"===typeof n?n(e,i):a.a.cloneElement(a.a.Children.only(n),i))},t}(a.a.Component);function m(){}v.contextType=u.a,v.propTypes={},v.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter
2:!0,exit:!0,onEnter:m,onEntering:m,onEntered:m,onExit:m,onExiting:m,onExited:m},v.UNMOUNTED=h,v.EXITED=f,v.ENTERING=d,v.ENTERED=p,v.EXITING=g;t.a=v},,,,function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,c=[],u=!1,h=-1;function f(){u&&l&&(u=!1,l.length?c=l.concat(c):h=-1,c.length&&d())}function d(){if(!u){var e=s(f);u=!0;for(var t=c.length;t;){for(l=c,c=[];++h<t;)l&&l[h].run();h=-1,t=c.length}l=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function g(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new p(e,t)),1!==c.length||u||s(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,t){for(var n,s,l=a(e),c=1;c<arguments.length;c++){for(var u in n=Object(arguments[c]))i.call(n,u)&&(l[u]=n[u]);if(r){s=r(n);for(var h=0;h<s.length;h++)o.call(n,s[h])&&(l[s[h]]=n[s[h]])}}return l}},function(e,t,n){"use strict";function r(e,t,n,r,i){return null}n.d(t,"a",(function(){return r}))},function(e,t,n){var r=n(218);e.exports=function(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){e.exports={boolean:!1,function:!0,object:!0,number:!1,string:!1,undefined:!1}},function(e,t,n){var r=n(222),i=n(128),o={configurable:!1,enumerable:!1,value:null,writable:!1},a=function(){try{var e={},t=i.test(t=Object.defineProperty)&&t,n=t(e,e,e)&&t}catch(r){}return n}(),s=a?function(e,t){o.value=t,a(e,"__bindData__",o)}:r;e.exports=s},,function(e,t,n){"use strict";function r(e){return function(){return null}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;for(var n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return!1;return!0}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),o=n(108),a=n(12),s=n.n(a),l=1073741823,c="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:{};function u(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var h=i.a.createContext||function(e,t){var n,i,a="__create-react-context-"+function(){var e="__global_unique_id__";return c[e]=(c[e]||0)+1}()+"__",h=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=u(t.props.value),t}Object(o.a)(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[a]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,i=e.value;((o=r)===(a=i)?0!==o||1/o===1/a:o!==o&&a!==a)?n=0:(n="function"===typeof t?t(r,i):l,0!==(n|=0)&&this.emitter.set(e.value,n))}var o,a},r.render=function(){return this.props.children},n}(r.Component);h.childContextTypes=((n={})[a]=s.a.object.isRequired,n);var f=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!==((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}Object(o.a)(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?l:t},r.componentDidMount=function(){this.context[a]&&this.context[a].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?l:e},r.componentWillUnmount=function(){this.context[a]&&this.context[a].off(this.onUpdate)},r.getValue=function(){return this.context[a]?this.context[a].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return f.contextTypes=((i={})[a]=s.a.object,i),{Provider:h,Consumer:f}};t.a=h}).call(this,n(104))},function(e,t,n){var r=n(316);e.exports=d,e.exports.parse=o,e.exports.compile=function(e,t){return s(o(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=f;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,a=0,s="",u=t&&t.delimiter||"/";null!=(n=i.exec(e));){var h=n[0],f=n[1],d=n.index;if(s+=e.slice(a,d),a=d+h.length,f)s+=f[1];else{var p=e[a],g=n[2],v=n[3],m=n[4],y=n[5],b=n[6],x=n[7];s&&(r.push(s),s="");var _=null!=g&&null!=p&&p!==g,w="+"===b||"*"===b,S="?"===b||"*"===b,C=n[2]||u,k=m||y;
2r.push({name:v||o++,prefix:g||"",delimiter:C,optional:S,repeat:w,partial:_,asterisk:!!x,pattern:k?c(k):x?".*":"[^"+l(C)+"]+?"})}}return a<e.length&&(s+=e.substr(a)),s&&r.push(s),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function s(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"===typeof e[i]&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",h(t)));return function(t,i){for(var o="",s=t||{},l=(i||{}).pretty?a:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!==typeof u){var h,f=s[u.name];if(null==f){if(u.optional){u.partial&&(o+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(f)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var d=0;d<f.length;d++){if(h=l(f[d]),!n[c].test(h))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(h)+"`");o+=(0===d?u.prefix:u.delimiter)+h}}else{if(h=u.asterisk?encodeURI(f).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(f),!n[c].test(h))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+h+'"');o+=u.prefix+h}}else o+=u}return o}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function u(e,t){return e.keys=t,e}function h(e){return e&&e.sensitive?"":"i"}function f(e,t,n){r(t)||(n=t||n,t=[]);for(var i=(n=n||{}).strict,o=!1!==n.end,a="",s=0;s<e.length;s++){var c=e[s];if("string"===typeof c)a+=l(c);else{var f=l(c.prefix),d="(?:"+c.pattern+")";t.push(c),c.repeat&&(d+="(?:"+f+d+")*"),a+=d=c.optional?c.partial?f+"("+d+")?":"(?:"+f+"("+d+"))?":f+"("+d+")"}}var p=l(n.delimiter||"/"),g=a.slice(-p.length)===p;return i||(a=(g?a.slice(0,-p.length):a)+"(?:"+p+"(?=$))?"),a+=o?"$":i&&g?"":"(?="+p+"|$)",u(new RegExp("^"+a,h(n)),t)}function d(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return u(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(d(e[i],t,n).source);return u(new RegExp("(?:"+r.join("|")+")",h(n)),t)}(e,t,n):function(e,t,n){return f(o(e,n),t,n)}(e,t,n)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));Math.PI,Math.PI,Math.PI,Object.freeze([1,0,0,1,0,0]);const r="left",i="fill",o={top:0,left:0,width:0,height:0,angle:0,flipX:!1,flipY:!1,scaleX:1,scaleY:1,minScaleLimit:0,skewX:0,skewY:0,originX:r,originY:"top",strokeWidth:1,strokeUniform:!1,padding:0,opacity:1,paintFirst:i,fill:"rgb(0,0,0)",fillRule:"nonzero",stroke:null,strokeDashArray:null,strokeDashOffset:0,strokeLineCap:"butt",strokeLineJoin:"miter",strokeMiterLimit:4,globalCompositeOperation:"source-over",backgroundColor:"",shadow:null,visible:!0,includeDefaultValues:!0,excludeFromExport:!1,objectCaching:!0,clipPath:void 0,inverted:!1,absolutePositioned:!1,centeredRotation:!0,centeredScaling:!1,dirty:!0},a={noScaleCache:!0,lockMovementX:!1,lockMovementY:!1,lockRotation:!1,lockScalingX:!1,lockScalingY:!1,lockSkewingX:!1,lockSkewingY:!1,lockScalingFlip:!1,cornerSize:13,touchCornerSize:24,transparentCorners:!0,cornerColor:"rgb(178,204,255)",cornerStrokeColor:"",cornerStyle:"rect",cornerDashArray:null,hasControls:!0,borderColor:"rgb(178,204,255)",borderDashArray:null,borderOpacityWhenMoving:.4,borderScaleFactor:1,hasBorders:!0,selectionBackgroundColor:"",selectable:!0,evented:!0,perPixelTargetFind:!1,activeOn:"down",hoverCursor:null,moveCursor:null}},function(e,t,n){"use strict";var r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInl
2ine|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,i=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return r.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));t.a=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),i=n.n(r),o=n(146);function a(){return i.a.useContext(o.a)}},function(e,t,n){"use strict";var r=n(4),i=n(398),o=n(98);t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(i.a)(e,Object(r.a)({defaultTheme:o.a},t))}},function(e,t,n){"use strict";var r=n(7),i=n(4),o=n(0),a=(n(12),n(6)),s=n(9),l=o.forwardRef((function(e,t){var n=e.classes,s=e.className,l=e.component,c=void 0===l?"div":l,u=e.square,h=void 0!==u&&u,f=e.elevation,d=void 0===f?1:f,p=e.variant,g=void 0===p?"elevation":p,v=Object(r.a)(e,["classes","className","component","square","elevation","variant"]);return o.createElement(c,Object(i.a)({className:Object(a.a)(n.root,s,"outlined"===g?n.outlined:n["elevation".concat(d)],!h&&n.rounded),ref:t},v))}));t.a=Object(s.a)((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),Object(i.a)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(l)},function(e,t,n){"use strict";var r=n(7),i=n(4),o=n(0),a=(n(12),n(6)),s=n(9),l=n(15),c=n(182),u=n(14),h=o.forwardRef((function(e,t){var n=e.children,s=e.classes,l=e.className,h=e.color,f=void 0===h?"default":h,d=e.component,p=void 0===d?"button":d,g=e.disabled,v=void 0!==g&&g,m=e.disableElevation,y=void 0!==m&&m,b=e.disableFocusRipple,x=void 0!==b&&b,_=e.endIcon,w=e.focusVisibleClassName,S=e.fullWidth,C=void 0!==S&&S,k=e.size,O=void 0===k?"medium":k,E=e.startIcon,T=e.type,A=void 0===T?"button":T,P=e.variant,j=void 0===P?"text":P,L=Object(r.a)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),M=E&&o.createElement("span",{className:Object(a.a)(s.startIcon,s["iconSize".concat(Object(u.a)(O))])},E),R=_&&o.createElement("span",{className:Object(a.a)(s.endIcon,s["iconSize".concat(Object(u.a)(O))])},_);return o.createElement(c.a,Object(i.a)({className:Object(a.a)(s.root,s[j],l,"inherit"===f?s.colorInherit:"default"!==f&&s["".concat(j).concat(Object(u.a)(f))],"medium"!==O&&[s["".concat(j,"Size").concat(Object(u.a)(O))],s["size".concat(Object(u.a)(O))]],y&&s.disableElevation,v&&s.disabled,C&&s.fullWidth),component:p,disabled:v,focu
2sRipple:!x,focusVisibleClassName:Object(a.a)(s.focusVisible,w),ref:t,type:A},L),o.createElement("span",{className:s.label},M,n,R))}));t.a=Object(s.a)((function(e){return{root:Object(i.a)({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:Object(l.a)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(l.a)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(l.a)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(Object(l.a)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:Object(l.a)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(Object(l.a)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:Object(l.a)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(h)},function(e,t,n){"use strict";var r=n(4),i=n(7),o=n(0),a=(n(12),n(6)),s=n(110),l=n(9),c=n(14),u=n(97),h=n(81),f=o.forwardRef((function(e,t){var n=e.children,l=e.classes,f=e.className,d=e.color,p=void 0===d?"primary":d,g=e.component,v=void 0===g?"div"
2:g,m=e.disabled,y=void 0!==m&&m,b=e.error,x=void 0!==b&&b,_=e.fullWidth,w=void 0!==_&&_,S=e.focused,C=e.hiddenLabel,k=void 0!==C&&C,O=e.margin,E=void 0===O?"none":O,T=e.required,A=void 0!==T&&T,P=e.size,j=e.variant,L=void 0===j?"standard":j,M=Object(i.a)(e,["children","classes","className","color","component","disabled","error","fullWidth","focused","hiddenLabel","margin","required","size","variant"]),R=o.useState((function(){var e=!1;return n&&o.Children.forEach(n,(function(t){if(Object(u.a)(t,["Input","Select"])){var n=Object(u.a)(t,["Select"])?t.props.input:t;n&&Object(s.a)(n.props)&&(e=!0)}})),e})),D=R[0],I=R[1],N=o.useState((function(){var e=!1;return n&&o.Children.forEach(n,(function(t){Object(u.a)(t,["Input","Select"])&&Object(s.b)(t.props,!0)&&(e=!0)})),e})),F=N[0],B=N[1],U=o.useState(!1),z=U[0],V=U[1],H=void 0!==S?S:z;y&&H&&V(!1);var W=o.useCallback((function(){B(!0)}),[]),G={adornedStart:D,setAdornedStart:I,color:p,disabled:y,error:x,filled:F,focused:H,fullWidth:w,hiddenLabel:k,margin:("small"===P?"dense":void 0)||E,onBlur:function(){V(!1)},onEmpty:o.useCallback((function(){B(!1)}),[]),onFilled:W,onFocus:function(){V(!0)},registerEffect:undefined,required:A,variant:L};return o.createElement(h.a.Provider,{value:G},o.createElement(v,Object(r.a)({className:Object(a.a)(l.root,f,"none"!==E&&l["margin".concat(Object(c.a)(E))],w&&l.fullWidth),ref:t},M),n))}));t.a=Object(l.a)({root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},{name:"MuiFormControl"})(f)},function(e,t,n){"use strict";var r=n(4),i=n(7),o=n(0),a=n.n(o),s=(n(12),n(25)),l=n(6),c=n(16),u=n(33),h=n(9),f=n(94),d=n(118),p=n(135),g=n(190);var v=n(108),m=n(122);function y(e,t){var n=Object.create(null);return e&&o.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&Object(o.isValidElement)(e)?t(e):e}(e)})),n}function b(e,t,n){return null!=n[t]?n[t]:e.props[t]}function x(e,t,n){var r=y(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var c=i[l][r];s[i[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);
2return Object.keys(i).forEach((function(a){var s=i[a];if(Object(o.isValidElement)(s)){var l=a in t,c=a in r,u=t[a],h=Object(o.isValidElement)(u)&&!u.props.in;!c||l&&!h?c||!l||h?c&&l&&Object(o.isValidElement)(u)&&(i[a]=Object(o.cloneElement)(s,{onExited:n.bind(null,s),in:u.props.in,exit:b(s,"exit",e),enter:b(s,"enter",e)})):i[a]=Object(o.cloneElement)(s,{in:!1}):i[a]=Object(o.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:b(s,"exit",e),enter:b(s,"enter",e)})}})),i}var _=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},w=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}Object(v.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,a=t.handleExited;
2return{children:t.firstRender?(n=e,r=a,y(n.children,(function(e){return Object(o.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:b(e,"appear",n),enter:b(e,"enter",n),exit:b(e,"exit",n)})}))):x(e,i,a),firstRender:!1}},n.handleExited=function(e,t){var n=y(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Object(g.a)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Object(p.a)(e,["component","childFactory"]),i=this.state.contextValue,o=_(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?a.a.createElement(m.a.Provider,{value:i},o):a.a.createElement(m.a.Provider,{value:i},a.a.createElement(t,r,o))},t}(a.a.Component);w.propTypes={},w.defaultProps={component:"div",childFactory:function(e){return e}};var S=w,C="undefined"===typeof window?o.useEffect:o.useLayoutEffect;var k=function(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,i=e.rippleX,a=e.rippleY,s=e.rippleSize,c=e.in,h=e.onExited,f=void 0===h?function(){}:h,d=e.timeout,p=o.useState(!1),g=p[0],v=p[1],m=Object(l.a)(t.ripple,t.rippleVisible,r&&t.ripplePulsate),y={width:s,height:s,top:-s/2+a,left:-s/2+i},b=Object(l.a)(t.child,g&&t.childLeaving,r&&t.childPulsate),x=Object(u.a)(f);return C((function(){if(!c){v(!0);var e=setTimeout(x,d);return function(){clearTimeout(e)}}}),[x,c,d]),o.createElement("span",{className:m,style:y},o.createElement("span",{className:b}))},O=o.forwardRef((function(e,t){var n=e.center,a=void 0!==n&&n,s=e.classes,c=e.className,u=Object(i.a)(e,["center","classes","className"]),h=o.useState([]),f=h[0],p=h[1],g=o.useRef(0),v=o.useRef(null);o.useEffect((function(){v.current&&(v.current(),v.current=null)}),[f]);var m=o.useRef(!1),y=o.useRef(null),b=o.useRef(null),x=o.useRef(null);o.useEffect((function(){return function(){clearTimeout(y.current)}}),[]);var _=o.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,i=e.rippleSize,a=e.cb;p((function(e){return[].concat(Object(d.a)(e),[o.createElement(k,{key:g.current,classes:s,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i})])})),g.current+=1,v.current=a}),[s]),w=o.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,i=void 0!==r&&r,o=t.center,s=void 0===o?a||t.pulsate:o,l=t.fakeElement,c=void 0!==l&&l;if("mousedown"===e.type&&m.current)m.current=!1;else{"touchstart"===e.type&&(m.current=!0);var u,h,f,d=c?null:x.current,p=d?d.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(p.width/2),h=Math.round(p.height/2);else{var g=e.touches?e.touches[0]:e,v=g.clientX,w=g.clientY;u=Math.round(v-p.left),h=Math.round(w-p.top)}if(s)(f=Math.sqrt((2*Math.pow(p.width,2)+Math.pow(p.height,2))/3))%2===0&&(f+=1);else{var S=2*Math.max(Math.abs((d?d.clientWidth:0)-u),u)+2,C=2*Math.max(Math.abs((d?d.clientHeight:0)-h),h)+2;f=Math.sqrt(Math.pow(S,2)+Math.pow(C,2))}e.touches?null===b.current&&(b.current=function(){_({pulsate:i,rippleX:u,rippleY:h,rippleSize:f,cb:n})},y.current=setTimeout((function(){b.current&&(b.current(),b.current=null)}),80)):_({pulsate:i,rippleX:u,rippleY:h,rippleSize:f,cb:n})}}),[a,_]),C=o.useCallback((function(){w({},{pulsate:!0})}),[w]),O=o.useCallback((function(e,t){if(clearTimeout(y.current),"touchend"===e.type&&b.current)return e.persist(),b.current(),b.current=null,void(y.current=setTimeout((function(){O(e,t)})));b.current=null,p((function(e){return e.length>0?e.slice(1):e})),v.current=t}),[]);return o.useImperativeHandle(t,(function(){return{pulsate:C,start:w,stop:O}}),[C,w,O]),o.createElement("span",Object(r.a)({className:Object(l.a)(s.root,c),ref:x},u),o.createElement(S,{component:null,exit:!0},f))})),E=Object(h.a)((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500m
2s ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(o.memo(O)),T=o.forwardRef((function(e,t){var n=e.action,a=e.buttonRef,h=e.centerRipple,d=void 0!==h&&h,p=e.children,g=e.classes,v=e.className,m=e.component,y=void 0===m?"button":m,b=e.disabled,x=void 0!==b&&b,_=e.disableRipple,w=void 0!==_&&_,S=e.disableTouchRipple,C=void 0!==S&&S,k=e.focusRipple,O=void 0!==k&&k,T=e.focusVisibleClassName,A=e.onBlur,P=e.onClick,j=e.onFocus,L=e.onFocusVisible,M=e.onKeyDown,R=e.onKeyUp,D=e.onMouseDown,I=e.onMouseLeave,N=e.onMouseUp,F=e.onTouchEnd,B=e.onTouchMove,U=e.onTouchStart,z=e.onDragLeave,V=e.tabIndex,H=void 0===V?0:V,W=e.TouchRippleProps,G=e.type,q=void 0===G?"button":G,X=Object(i.a)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),Y=o.useRef(null);var $=o.useRef(null),K=o.useState(!1),Z=K[0],Q=K[1];x&&Z&&Q(!1);var J=Object(f.a)(),ee=J.isFocusVisible,te=J.onBlurVisible,ne=J.ref;function re(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:C;return Object(u.a)((function(r){return t&&t(r),!n&&$.current&&$.current[e](r),!0}))}o.useImperativeHandle(n,(function(){return{focusVisible:function(){Q(!0),Y.current.focus()}}}),[]),o.useEffect((function(){Z&&O&&!w&&$.current.pulsate()}),[w,O,Z]);var ie=re("start",D),oe=re("stop",z),ae=re("stop",N),se=re("stop",(function(e){Z&&e.preventDefault(),I&&I(e)})),le=re("start",U),ce=re("stop",F),ue=re("stop",B),he=re("stop",(function(e){Z&&(te(e),Q(!1)),A&&A(e)}),!1),fe=Object(u.a)((function(e){Y.current||(Y.current=e.currentTarget),ee(e)&&(Q(!0),L&&L(e)),j&&j(e)})),de=function(){var e=s.findDOMNode(Y.current);return y&&"button"!==y&&!("A"===e.tagName&&e.href)},pe=o.useRef(!1),ge=Object(u.a)((function(e){O&&!pe.current&&Z&&$.current&&" "===e.key&&(pe.current=!0,e.persist(),$.current.stop(e,(function(){$.current.start(e)}))),e.target===e.currentTarget&&de()&&" "===e.key&&e.preventDefault(),M&&M(e),e.target===e.currentTarget&&de()&&"Enter"===e.key&&!x&&(e.preventDefault(),P&&P(e))})),ve=Object(u.a)((function(e){O&&" "===e.key&&$.current&&Z&&!e.defaultPrevented&&(pe.current=!1,e.persist(),$.current.stop(e,(function(){$.current.pulsate(e)}))),R&&R(e),P&&e.target===e.currentTarget&&de()&&" "===e.key&&!e.defaultPrevented&&P(e)})),me=y;"button"===me&&X.href&&(me="a");var ye={};"button"===me?(ye.type=q,ye.disabled=x):("a"===me&&X.href||(ye.role="button"),ye["aria-disabled"]=x);var be=Object(c.a)(a,t),xe=Object(c.a)(ne,Y),_e=Object(c.a)(be,xe),we=o.useState(!1),Se=we[0],Ce=we[1];o.useEffect((function(){Ce(!0)}),[]);var ke=Se&&!w&&!x;return o.createElement(me,Object(r.a)({className:Object(l.a)(g.root,v,Z&&[g.focusVisible,T],x&&g.disabled),onBlur:he,onClick:P,onFocus:fe,onKeyDown:ge,onKeyUp:ve,onMouseDown:ie,onMouseLeave:se,onMouseUp:ae,onDragLeave:oe,onTouchEnd:ce,onTouchMove:ue,onTouchStart:le,ref:_e,tabIndex:x?-1:H},ye,X),p,ke?o.createElement(E,Object(r.a)({ref:$,center:d},W)):null)}));t.a=Object(h.a)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(T)},function(e,t,n){"use strict";n.d(t,"a",(function(){return ne})),n.d(t,"b",(function(){return re}));var r=n(0),i=n.n(r),o=n(25),a=n(6),s=n(367),l=n(256),c=n(9),u=n(15),h=n(178),f=n(249),d=n(124),p=n(368);n(68);function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(){return(v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function m(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var y=i.a.createContext(),b={root:{},anchorOriginTopCenter:{},anchorOriginBottomCenter:{},anchorOriginTopRight:{},anchorOriginBottomRight:{},anchorOriginTopLeft:{},anchorOriginBottomLeft:{}},x={containerRoot:{},containerAnchorOriginTopCenter:{},containerAnchorOriginBottomCenter:{},containerAnchorOriginTopRight:{},containerAnchorOriginBottomRight:{},containerAnchorOriginTopLeft:{},containerAnchorOriginBottomLeft:{}},_={default:20,dense:4},w={default:6,dense:2},S={maxSnack:3,dense:!1,hideIconVariant:!1,variant:"default",autoHideDuration:5e3,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:s.a,transitionDuration:{enter:225,exit:195}},C=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},k=function(e){return Object.keys(e).filter((function(e){return!x[e]})).reduce((function(t,n){var r;return v({},t,((r={})[n]=e[n],r))}),{})},O={TIMEOUT:"timeout",CLICKAWAY:"clickaway",MAXSNACK:"maxsnack",INSTRUCTED:"instructed"},E=function(e){return"containerAnchorOrigin"+e},T=function(e){var t=e.vertical,n=e.horizontal;return"anchorOrigin"+C(t)+C(n)},A=function(e){return"variant"+C(e)},P=function(e){return!!e||0===e},j=function(e){return"number"===typeof e||null===e};function L(e,t,n){return void 0===e&&(e={}),void 0===t&&(t={}),void 0===n&&(n={}),v({},n,{},t,{},e)}var M=function(e){var t;return Object(l.a)({root:(t={display:"flex",flexWrap:"wrap",flexGrow:1},t[e.breakpoints.up("sm")]={flexGrow:"initial",minWidth:288},t)})},R=Object(r.forwardRef)((function(e,t){var n=e.classes,r=e.className,o=m(e,["classes","className"]);return i.a.createElement("div",Object.assign({ref:t,className:Object(a.a)(n.root,r)},o))}
2)),D=Object(c.a)(M)(R),I={right:"left",left:"right",bottom:"up",top:"down"},N=function(e){return"center"!==e.horizontal?I[e.horizontal]:I[e.vertical]},F=function(e){return i.a.createElement(d.a,Object.assign({},e),i.a.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41\n 10.59L10 14.17L17.59 6.58L19 8L10 17Z"}))},B=function(e){return i.a.createElement(d.a,Object.assign({},e),i.a.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},U=function(e){return i.a.createElement(d.a,Object.assign({},e),i.a.createElement("path",{d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,\n 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,\n 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"}))},z=function(e){return i.a.createElement(d.a,Object.assign({},e),i.a.createElement("path",{d:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,\n 0 22,12A10,10 0 0,0 12,2Z"}))},V={fontSize:20,marginInlineEnd:8},H={default:void 0,success:i.a.createElement(F,{style:V}),warning:i.a.createElement(B,{style:V}),error:i.a.createElement(U,{style:V}),info:i.a.createElement(z,{style:V})};function W(e,t){return e.reduce((function(e,n){return null==n?e:function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=[].concat(i);t&&-1===a.indexOf(t)&&a.push(t),e.apply(this,a),n.apply(this,a)}}),(function(){}))}var G="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;function q(e){var t=Object(r.useRef)(e);return G((function(){t.current=e})),Object(r.useCallback)((function(){return t.current.apply(void 0,arguments)}),[])}var X=Object(r.forwardRef)((function(e,t){var n=e.children,i=e.autoHideDuration,o=e.ClickAwayListenerProps,a=e.disableWindowBlurListener,s=void 0!==a&&a,l=e.onClose,c=e.onMouseEnter,u=e.onMouseLeave,h=e.open,f=e.resumeHideDuration,d=m(e,["children","autoHideDuration","ClickAwayListenerProps","disableWindowBlurListener","onClose","onMouseEnter","onMouseLeave","open","resumeHideDuration"]),g=Object(r.useRef)(),y=q((function(){l&&l.apply(void 0,arguments)})),b=q((function(e){l&&null!=e&&(clearTimeout(g.current),g.current=setTimeout((function(){y(null,O.TIMEOUT)}),e))}));Object(r.useEffect)((function(){return h&&b(i),function(){clearTimeout(g.current)}}),[h,i,b]);var x=function(){clearTimeout(g.current)},_=Object(r.useCallback)((function(){null!=i&&b(null!=f?f:.5*i)}),[i,f,b]);return Object(r.useEffect)((function(){if(!s&&h)return window.addEventListener("focus",_),window.addEventListener("blur",x),function(){window.removeEventListener("focus",_),window.removeEventListener("blur",x)}}),[s,_,h]),Object(r.createElement)(p.a,v({onClickAway:function(e){l&&l(e,O.CLICKAWAY)}},o),Object(r.createElement)("div",v({onMouseEnter:function(e){c&&c(e),x()},onMouseLeave:function(e){u&&u(e),_()},ref:t},d),n))})),Y=function(e){var t=e.palette.mode||e.palette.type,n=Object(u.c)(e.palette.background.default,"light"===t?.8:.98);return Object(l.a)(v({},b,{contentRoot:v({},e.typography.body2,{backgroundColor:n,color:e.palette.getContrastText(n),alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"}),lessPadding:{paddingLeft:20},variantSuccess:{backgroundColor:"#43a047",color:"#fff"},variantError:{backgroundColor:"#d32f2f",color:"#fff"},variantInfo:{backgroundColor:"#2196f3",color:"#fff"},variantWarning:{backgroundColor:"#ff9800",color:"#fff"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8},wrappedRoot:{position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0}}))},$=function(e){var t=e.classes,n=m(e,["classes"]),o=Object(r.useRef)(),s=Object(r.useState)(!0),l=s[0],c=s[1];Object(r.useEffect)((function(){return function(){o.current&&clearTimeout(o.current)}}),[]);var u=W([n.snack.onClose,n.onClose],n.snack.key),h=n.style,d=n.ariaAttributes,p=n.className,g=n.hideIconVariant,y=n.iconVariant,b=n.snack,x=n.action,_=n.content,w=n.TransitionComponent,C=n.TransitionProps,k=n.transitionDuration,E=m(n,["style","dense","ariaAttributes","className","hideIconVariant","iconVariant","snack","action","content","TransitionComponent","TransitionProps","transitionDuration","onEnter","onEntered","onEntering","onExit","onExited","onExiting"]),P=b.key,j=b.open,M=b.className,R=b.variant,I=b.content,F=b.action,B=b.ariaAttributes,U=b.anchorOrigin,z=b.message,V=b.TransitionComponent,G=b.TransitionProps,q=b.transitionDuration,Y=m(b,["persist","key","open","entered","requestClose","className","variant","content","action","ariaAttributes","anchorOrigin","message","TransitionComponent","TransitionProps","transitionDuration","onEnter","onEntered","onEntering","onExit","onExited","onExiting"]),$=v({},H,{},y)[R],K=v({"aria-describedby":"notistack-snackbar"},L(B,d)),Z=V||w||S.TransitionComponent,Q=L(q,k,S.transitionDuration),J=v({direction:N(U)},L(G,C)),ee=F||x;"function"===typeof ee&&(ee=ee(P));var te=I||_;"function"===typeof te&&(te=te(P,b.message));var ne=["onEnter","onEntering","onEntered","onExit","onExiting","onExited"].reduce((function(e,t){var r;return v({},e,((r={})[t]=W([n.snack[t],n[t]],n.snack.key),r))}),{});return i.a.createElement(f.a,{unmountOnExit:!0,timeout:175,in:l,onExited:ne.onExited},i.a.createElement(X,Object.assign({},E,Y,{open:j,className:Object(a.a)(t.root,t.wrappedRoot,t[T(U)]),onClose:u}),i.a.createElement(Z,Object.assign({appear:!0,in:j,timeout:Q},J,{onExit:ne.onExit,onExiting:ne.onExiting,onExited:function(){o.current=setTimeout((function(){c(!l)}),125)},onEnter:ne.onEnter,onEntering:ne.onEntering,onEntered:W([ne.onEntered,function(){n.snack.requestClose&&u(null,O.INSTRCUTED)}])}),te||i.a.createElement(D,Object.assign({},K,{role:"alert",style:h,className:Object(a.a)(t.contentRoot,t[A(R)],p,M,!g&&$&&t.lessPadding)}),i.a.createElement("div",{id:K["aria-describedby"],className:t.message},g?null:$,z),ee&&i.a.createElement("div",{className:t.action},ee)))))},K=Object(c.a)(Y)($),Z="& > .MuiCollapse-container, & > .MuiCollapse-root",Q="& > .MuiCollapse-container > .MuiCollapse-wrapper, & > .MuiCollapse-root > .MuiCollapse-wrapper",J=Object(h.a)((function(e){var t,n,r,i,o;return{root:(t={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:e.zIndex.snackbar,height:"auto",width:"auto",transition:"top 300ms ease 0ms, right 300ms ease 0ms, bottom 300ms ease 0ms, left 300ms ease 0ms, margin 300ms ease 0ms, max-width 300ms ease 0ms",pointerEvents:"none"},t[Z]={pointerEvents:"all"},t[Q]={padding:w.default+"px 0px",transition:"padding 300ms ease 0ms"},t.maxWidth="calc(100% - "+2*_.default+"px)",t[e.breakpoints.down("xs")]={width:"100%",maxWidth:"calc(100% - 32px)"},t),rootDense:(n={},n[Q]={padding:w.dense+"px 0px"},n),top:{top:_.default-w.default,flexDirection:"column"},bottom:{bottom:_.default-w.default,flexDirection:"column-reverse"},left:(r={left:_.default},r[e.breakpoints.up("sm")]={alignItems:"flex-start"},r[e.breakpoints.down("xs")]={left:"16px"},r),right:(i={right:_.default},i[e.breakpoints.up("sm")]={alignItems:"flex-end"},i[e.breakpoints.down("xs")]={right:"16px"},i),center:(o={left:"50%",transform:"translateX(-50%)"},o[e.breakpoints.up("sm")]={alignItems:"center"},o)}})),ee=function(e){var t=J(),n=e.className,r=e.anchorOrigin,o=e.dense,s=m(e,["className","anchorOrigin","dense"]),l=Object(a.a)(t[r.vertical],t[r.horizontal],t.root,n,o&&t.rootDense);return i.a.createElement("div",Object.assign({className:l},s))},te=i.a.memo(ee),ne=function(e){var t,n,r,s,l;function c(t){var n;return(n=e.call(this,t)||this).enqueueSnackbar=function(e,t){void 0===t&&(t={});var r=t,i=r.key,o=r.preventDuplicate,a=m(r,["key","preventDuplicate"]),s=P(i),l=s?i:(new Date).getTime()+Math.random(),c=function(e,t,n){return function(r){return"autoHideDuration"===r?j(e.autoHideDuration)?e.autoHideDuration:j(t.autoHideDuration)?t.autoHideDuration:S.autoHideDuration:e[r]||t[r]||n[r]}}(a,n.props,S),u=v({key:l},a,{message:e,open:!0,entered:!1,requestClose:!1,variant:c("variant"),anchorOrigin:c("anchorOrigin"),autoHideDuration:c("autoHideDuration")});return a.persist&&(u.autoHideDuration=void 0),n.setState((function(t){if(void 0===o&&n.props.preventDuplicate||o){var r=function(t){return s?t.key===i:t.message===e},a=t.queue.findIndex(r)>-1,l=t.snacks.findIndex(r)>-1;if(a||l)return t}return n.handleDisplaySnack(v({},t,{queue:[].concat(t.queue,[u])}))})),l},n.handleDisplaySnack=function(e){return e.snacks.length>=n.maxSnack?n.handleDismissOldest(e):n.processQueue(e)},n.processQueue=function(e){var t=e.queue,n=e.snacks;return t.length>0?v({},e,{snacks:[].concat(n,[t[0]]),queue:t.slice(1,t.length)}):e},n.handleDismissOldest=function(e){if(e.snacks.some((function(e){return!e.open||e.requestClose})))return e;var t=!1,r=!1;e.snacks.reduce((function(e,t){return e+(t.open&&t.persist?1:0)}),0)===n.maxSnack&&(r=!0);var i=e.snacks.map((function(e){return t||e.persist&&!r?v({},e):(t=!0,e.entered?(e.onClose&&e.onClose(null,O.MAXSNACK,e.key),n.props.onClose&&n.props.onClose(null,O.MAXSNACK,e.key),v({},e,{open:!1})):v({},e,{requestClose:!0}))}));return v({},e,{snacks:i})},n.handleEnteredSnack=function(e,t,r){if(!P(r))throw new Error("handleEnteredSnack Cannot be called with undefined key");n.setState((function(e){return{snacks:e.snacks.map((function(e){return e.key===r?v({},e,{entered:!0}):v({},e)}))}}))},n.handleCloseSnack=function(e,t,r){if(n.props.onClose&&n.props.onClose(e,t,r),t!==O.CLICKAWAY){var i=void 0===r;n.setState((function(e){var t=e.snacks,n=e.queue;return{snacks:t.map((function(e){return i||e.key===r?e.entered?v({},e,{open:!1}):v({},e,{requestClose:!0}):v({},e)})),queue:n.filter((function(e){return e.key!==r}))}}))}},n.closeSnackbar=function(e){var t=n.state.snacks.find((function(t){return t.key===e}));P(e)&&t&&t.onClose&&t.onClose(null,O.INSTRUCTED,e),n.handleCloseSnack(null,O.INSTRUCTED,e)},n.handleExitedSnack=function(e,t,r){var i=t||r;if(!P(i))throw new Error("handleExitedSnack Cannot be called with undefined key");n.setState((function(e){var t=n.processQueue(v({},e,{snacks:e.snacks.filter((function(e){return e.key!==i}))}));return 0===t.queue.length?t:n.handleDismissOldest(t)}))},n.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:n.enqueueSnackbar,closeSnackbar:n.closeSnackbar}},n}return n=e,(t=c).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,c.prototype.render=function(){var e=this,t=this.state.contextValue,n=this.props,r=n.iconVariant,s=n.dense,l=void 0===s?S.dense:s,c=n.hideIconVariant,u=void 0===c?S.hideIconVariant:c,h=n.domRoot,f=n.children,d=n.classes,p=void 0===d?{}:d,g=m(n,["maxSnack","preventDuplicate","variant","anchorOrigin","iconVariant","dense","hideIconVariant","domRoot","children","classes"]),b=this.state.snacks.reduce((function(e,t){var n,r,i=(r=t.anchorOrigin,""+C(r.vertical)+C(r.horizontal)),o=e[i]||[];return v({},e,((n={})[i]=[].concat(o,[t]),n))}),{}),x=Object.keys(b).map((function(t){var n=b[t];return i.a.createElement(te,{key:t,dense:l,anchorOrigin:n[0].anchorOrigin,className:Object(a.a)(p.containerRoot,p[E(t)])},n.map((function(t){return i.a.createElement(K,Object.assign({},g,{key:t.key,snack:t,dense:l,iconVariant:r,hideIconVariant:u,classes:k(p),onClose:e.handleCloseSnack,onExited:W([e.handleExitedSnack,e.props.onExited]),onEntered:W([e.handleEnteredSnack,e.props.onEntered])}))})))}));return i.a.createElement(y.Provider,{value:t},f,h?Object(o.createPortal)(x,h):x)},r=c,(s=[{key:"maxSnack",get:function(){return this.props.maxSnack||S.maxSnack}}])&&g(r.prototype,s),l&&g(r,l),c}(r.Component),re=function(){return Object(r.useContext)(y)}},,,,,function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}n.d(t,"a",(function(){return r}))},,,,,,,,function(e,t,n){"use strict";var r=n(4),i=n(49),o=n(7),a=n(0),s=(n(12),n(6)),l=n(76),c=n(63),u=n(9),h=n(250),f=a.forwardRef((function(e,t){var n=e.autoFocus,u=e.checked,f=e.checkedIcon,d=e.classes,p=e.className,g=e.defaultChecked,v=e.disabled,m=e.icon,y=e.id,b=e.inputProps,x=e.inputRef,_=e.n
2ame,w=e.onBlur,S=e.onChange,C=e.onFocus,k=e.readOnly,O=e.required,E=e.tabIndex,T=e.type,A=e.value,P=Object(o.a)(e,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),j=Object(l.a)({controlled:u,default:Boolean(g),name:"SwitchBase",state:"checked"}),L=Object(i.a)(j,2),M=L[0],R=L[1],D=Object(c.a)(),I=v;D&&"undefined"===typeof I&&(I=D.disabled);var N="checkbox"===T||"radio"===T;return a.createElement(h.a,Object(r.a)({component:"span",className:Object(s.a)(d.root,p,M&&d.checked,I&&d.disabled),disabled:I,tabIndex:null,role:void 0,onFocus:function(e){C&&C(e),D&&D.onFocus&&D.onFocus(e)},onBlur:function(e){w&&w(e),D&&D.onBlur&&D.onBlur(e)},ref:t},P),a.createElement("input",Object(r.a)({autoFocus:n,checked:u,defaultChecked:g,className:d.input,disabled:I,id:N&&y,name:_,onChange:function(e){var t=e.target.checked;R(t),S&&S(e,t)},readOnly:k,ref:x,required:O,tabIndex:E,type:T,value:A},b)),M?f:m)}));t.a=Object(u.a)({root:{padding:9},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}},{name:"PrivateSwitchBase"})(f)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(99);function i(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=Object(r.a)(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}},,function(e,t,n){"use strict";var r=n(0),i=n(137);t.a=function(e){var t=Object(i.a)(e);Object(r.useEffect)((function(){return function(){t.current()}}),[])}},function(e,t,n){"use strict";var r=n(0),i=n(32);t.a=Object(i.a)(r.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));Object.create;function r(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||t)}Object.create;var i=n(237),o=new Map,a=function(e){return e.cloneNode(!0)},s=function(){return"file:"===window.location.protocol},l=function(e,t,n){var r=new XMLHttpRequest;r.onreadystatechange=function(){try{if(!/\.svg/i.test(e)&&2===r.readyState){var t=r.getResponseHeader("Content-Type");if(!t)throw new Error("Content type not found");var o=Object(i.parse)(t).type;if("image/svg+xml"!==o&&"text/plain"!==o)throw new Error("Invalid content type: "+o)}if(4===r.readyState){if(404===r.status||null===r.responseXML)throw new Error(s()?"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.":"Unable to load SVG file: "+e);if(!(200===r.status||s()&&0===r.status))throw new Error("There was a problem injecting the SVG: "+r.status+" "+r.statusText);n(null,r)}}catch(a){r.abort(),n(a,r)}},r.open("GET",e),r.withCredentials=t,r.overrideMimeType&&r.overrideMimeType("text/xml"),r.send()},c={},u=function(e,t){c[e]=c[e]||[],c[e].push(t)},h=function(e,t,n){if(o.has(e)){var r=o.get(e);if(void 0===r)return void u(e,n);if(r instanceof SVGSVGElement)return void n(null,a(r))}o.set(e,void 0),u(e,n),l(e,t,(function(t,n){t?o.set(e,t):n.responseXML instanceof Document&&n.responseXML.documentElement&&n.responseXML.documentElement instanceof SVGSVGElement&&o.set(e,n.responseXML.documentElement),function(e){for(var t=function(t,n){setTimeout((function(){if(Array.isArray(c[e])){var n=o.get(e),r=c[e][t];n instanceof SVGSVGElement&&r(null,a(n)),n instanceof Error&&r(n),t===c[e].length-1&&delete c[e]}}),0)},n=0,r=c[e].length;n<r;n++)t(n)}(e)}))},f=function(e,t,n){l(e,t,(function(e,t){e?n(e):t.responseXML instanceof Document&&t.responseXML.documentElement&&t.responseXML.documentElement instanceof SVGSVGElement&&n(null,t.responseXML.documentElement)}))},d=0,p=[],g={},v="http://www.w3.org/1999/xlink",m=function(e,t,n,i,o,a,s){var l=e.getAttribute("data-src")||e.getAttribute("src");if(l){if(-1!==p.indexOf(e))return p.splice(p.indexOf(e),1),void(e=null);p.push(e),e.setAttribute("src",""),(i?h:f)(l,o,(function(i,o){if(!o)return p.splice(p.indexOf(e),1),e=null,void s(i);var c=e.getAttribute("id");c&&o.setAttribute("id",c);var u=e.getAttribute("title");u&&o.setAttribute("title",u);var h=e.getAttribute("width");h&&o.setAttribute("width",h);var f=e.getAttribute("height");f&&o.setAttribute("height",f);var m=Array.from(new Set(r(r(r([],(o.getAttribute("class")||"").split(" ")),["injected-svg"]),(e.getAttribute("class")||"").split(" ")))).join(" ").trim();o.setAttribute("class",m);var y=e.getAttribute("style");y&&o.setAttribute("style",y),o.setAttribute("data-src",l);var b=[].filter.call(e.attributes,(function(e){return/^data-\w[\w-]*$/.test(e.name)}
2));if(Array.prototype.forEach.call(b,(function(e){e.name&&e.value&&o.setAttribute(e.name,e.value)})),n){var x,_,w,S,C,k={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],path:[],pattern:["fill","stroke"],radialGradient:["fill","stroke"]};Object.keys(k).forEach((function(e){x=e,w=k[e];for(var t=function(e,t){var n;S=_[e].id,C=S+"-"+ ++d,Array.prototype.forEach.call(w,(function(e){for(var t=0,r=(n=o.querySelectorAll("["+e+'*="'+S+'"]')).length;t<r;t++){var i=n[t].getAttribute(e);i&&!i.match(new RegExp('url\\("?#'+S+'"?\\)'))||n[t].setAttribute(e,"url(#"+C+")")}}));for(var r=o.querySelectorAll("[*|href]"),i=[],a=0,s=r.length;a<s;a++){var l=r[a].getAttributeNS(v,"href");l&&l.toString()==="#"+_[e].id&&i.push(r[a])}for(var c=0,u=i.length;c<u;c++)i[c].setAttributeNS(v,"href","#"+C);_[e].id=C},n=0,r=(_=o.querySelectorAll(x+"[id]")).length;n<r;n++)t(n)}))}o.removeAttribute("xmlns:a");for(var O,E,T=o.querySelectorAll("script"),A=[],P=0,j=T.length;P<j;P++)(E=T[P].getAttribute("type"))&&"application/ecmascript"!==E&&"application/javascript"!==E&&"text/javascript"!==E||((O=T[P].innerText||T[P].textContent)&&A.push(O),o.removeChild(T[P]));if(A.length>0&&("always"===t||"once"===t&&!g[l])){for(var L=0,M=A.length;L<M;L++)new Function(A[L])(window);g[l]=!0}var R=o.querySelectorAll("style");if(Array.prototype.forEach.call(R,(function(e){e.textContent+=""})),o.setAttribute("xmlns","http://www.w3.org/2000/svg"),o.setAttribute("xmlns:xlink",v),a(o),!e.parentNode)return p.splice(p.indexOf(e),1),e=null,void s(new Error("Parent node is null"));e.parentNode.replaceChild(o,e),p.splice(p.indexOf(e),1),e=null,s(null,o)}))}else s(new Error("Invalid data-src or src attribute"))},y=function(e,t){var n=void 0===t?{}:t,r=n.afterAll,i=void 0===r?function(){}:r,o=n.afterEach,a=void 0===o?function(){}:o,s=n.beforeEach,l=void 0===s?function(){}:s,c=n.cacheRequests,u=void 0===c||c,h=n.evalScripts,f=void 0===h?"never":h,d=n.httpRequestWithCredentials,p=void 0!==d&&d,g=n.renumerateIRIElements,v=void 0===g||g;if(e&&"length"in e)for(var y=0,b=0,x=e.length;b<x;b++)m(e[b],f,v,u,p,l,(function(t,n){a(t,n),e&&"length"in e&&e.length===++y&&i(y)}));else e?m(e,f,v,u,p,l,(function(t,n){a(t,n),i(1),e=null})):i(0)}},,,,function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(57);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";(function(t){var r=n(57),i=n(303),o={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s={adapter:function(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t))&&(e=n(214)),e}(),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){s.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){s.headers[e]=r.merge(o)})),e.exports=s}).call(this,n(162))},function(e,t,n){"use strict";var r=n(57),i=n(304),o=n(306),a=n(211),s=n(307),l=n(310),c=n(311),u=n(215);e.exports=function(e){return new Promise((function(t,n){var h=e.data,f=e.headers;r.isFormData(h)&&delete f["Content-Type"];var d=new XMLHttpRequest;if(e.auth){var p=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";f.Authorization="Basic "+btoa(p+":"+g)}var v=s(e.baseURL,e.url);if(d.open(e.method.toUpperCase(),a(v,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in d?l(d.getAllResponseHeaders()):null,o={data:e.responseType&&"text"!==e.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:r,config:e,request:d};i(t,n,o),d=null}},d.onabort=function(){d&&(n(u("Request aborted",e,"ECONNABORTED",d)),d=null)},d.onerror=function(){n(u("Network Error",e,null,d)),d=null},d.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var m=(e.withCredentials||c(v))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;m&&(f[e.xsrfHeaderName]=m)}if("setRequestHeader"in d&&r.forEach(f,(function(e,t){"undefined"===typeof h&&"content-type"===t.toLowerCase()?delete f[t]:d.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),e.responseType)try{d.responseType=e.responseType}catch(y){if("json"!==e.responseType)throw y}"function"===typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){d&&(d.abort(),n(e),d=null)})),h||(h=null),d.send(h)}))}},function(e,t,n){"use strict";var r=n(305);e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},function(e,t,n){"use strict";var r=n(57);e.exports=function(e,t){t=t||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function l(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function c(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=l(void 0,e[i])):n[i]=l(e[i],t[i])}r.forEach(i,(function(e){r.isUndefined(t[e])||(n[e]=l(void 0,t[e]))})),r.forEach(o,c),r.forEach(a,(function(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=l(void 0,e[i])):n[i]=l(void 0,t[i])})),r.forEach(s,(function(r){r in t?n[r]=l(e[r],t[r]):r in e&&(n[r]=l(void 0,e[r]))}));var u=i.concat(o).concat(a).concat(s),h=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===u.indexOf(e)}));return r.forEach(h,c),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")}
2,r.prototype.__CANCEL__=!0,e.exports=r},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t,n){var r=n(141),i=n(128),o=n(326),a=i.test(a=Object.keys)&&a,s=a?function(e){return r(e)?a(e):[]}:o;e.exports=s},function(e,t,n){var r=n(328),i=n(333),o=n(168),a=n(334),s=/^\s*function[ \n\r\t]+\w/,l=/\bthis\b/,c=Function.prototype.toString;e.exports=function(e,t,n){if("function"!=typeof e)return i;if("undefined"==typeof t||!("prototype"in e))return e;var u=e.__bindData__;if("undefined"==typeof u&&(a.funcNames&&(u=!e.name),!(u=u||!a.funcDecomp))){var h=c.call(e);a.funcNames||(u=!s.test(h)),u||(u=l.test(h),o(e,u))}if(!1===u||!0!==u&&1&u[1])return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,o){return e.call(t,n,r,i,o)}}return r(e,t)}},function(e,t,n){(function(t){var r=n(141),i=(n(222),n(128).test(i=Object.create)&&i);function o(e,t){return r(e)?i(e):{}}i||(o=function(){function e(){}return function(n){if(r(n)){e.prototype=n;var i=new e;e.prototype=null}return i||t.Object()}}()),e.exports=o}).call(this,n(104))},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t,n){t||(t=0),"undefined"==typeof n&&(n=e?e.length:0);for(var r=-1,i=n-t||0,o=Array(i<0?0:i);++r<i;)o[r]=e[t+r];return o}},,,,function(e,t,n){"use strict";var r=!("undefined"===typeof window||!window.document||!window.document.createElement);t.a=r},,function(e,t,n){"use strict";var r=n(0),i=n(201),o=n(171),a=n(144),s=function(e){return function(t,n,s){var l=Object(r.useRef)(!1),c=Object(r.useRef)([]),u=Object(r.useRef)([]),h=Object(r.useRef)();e((function(){var e,r=(Array.isArray(s)?s:[s]).map((function(e){return Object(a.a)(e)}));l.current||(l.current=!0,c.current=r,u.current=n,h.current=t()),r.length===c.current.length&&Object(o.a)(r,c.current)&&Object(o.a)(n,u.current)||(null===(e=h.current)||void 0===e||e.call(h),c.current=r,u.current=n,h.current=t())})),Object(i.a)((function(){var e;null===(e=h.current)||void 0===e||e.call(h),l.current=!1}))}}(r.useEffect);t.a=s},function(e,t){e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var c=o[l];if(!s(c))return!1;var u=e[c],h=t[c];if(!1===(i=n?n.call(r,u,h,c):void 0)||void 0===i&&u!==h)return!1}return!0}},function(e,t,n){"use strict";t.a=function(e){function t(e,r,l,c,f){for(var d,p,g,v,x,w=0,S=0,C=0,k=0,O=0,L=0,R=g=d=0,I=0,N=0,F=0,B=0,U=l.length,z=U-1,V="",H="",W="",G="";I<U;){if(p=l.charCodeAt(I),I===z&&0!==S+k+C+w&&(0!==S&&(p=47===S?10:47),k=C=w=0,U++,z++),0===S+k+C+w){if(I===z&&(0<N&&(V=V.replace(h,"")),0<V.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:V+=l.charAt(I)}p=59}switch(p){case 123:for(d=(V=V.trim()).charCodeAt(0),g=1,B=++I;I<U;){switch(p=l.charCodeAt(I)){case 123:g++;break;case 125:g--;break;case 47:switch(p=l.charCodeAt(I+1)){case 42:case 47:e:{for(R=I+1;R<z;++R)switch(l.charCodeAt(R)){case 47:if(42===p&&42===l.charCodeAt(R-1)&&I+2!==R){I=R+1;break e}break;case 10:if(47===p){I=R+1;break e}}I=R}}break;case 91:p++;case 40:p++;case 34:case 39:for(;I++<z&&l.charCodeAt(I)!==p;);}if(0===g)break;I++}switch(g=l.substring(B,I),0===d&&(d=(V=V.replace(u,"").trim()).charCodeAt(0)),d){case 64:switch(0<N&&(V=V.replace(h,"")),p=V.charCodeAt(1)){case 100:case 109:case 115:case 45:N=r;break;default:N=j}if(B=(g=t(r,N,g,p,f+1)).length,0<M&&(x=s(3,g,N=n(j,V,F),r,T,E,B,p,f,c),V=N.join(""),void 0!==x&&0===(B=(g=x.trim()).length)&&(p=0,g="")),0<B)switch(p){case 115:V=V.replace(_,a);case 100:case 109:case 45:g=V+"{"+g+"}";break;case 107:g=(V=V.replace(m,"$1 $2"))+"{"+g+"}",g=1===P||2===P&&o("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=V+g,112===c&&(H+=g,g="")}else g="";break;default:g=t(r,n(r,V,F),g,c,f+1)}W+=g,g=F=N=R=d=0,V="",p=l.charCodeAt(++I);break;case 125:case 59:if(1<(B=(V=(0<N?V.replace(h,""):V).trim()).length))switch(0===R&&(d=V.charCodeAt(0),45===d||96<d&&123>d)&&(B=(V=V.replace(" ",":")).length),0<M&&void 0!==(x=s(1,V,r,e,T,E,H.length,c,f,c))&&0===(B=(V=x.trim()).length)&&(V="\0\0"),d=V.charCodeAt(0),p=V.charCodeAt(1),d){case 0:break;case 64:if(105===p||99===p){G+=V+l.charAt(I);break}
vendor: 4,133 bytes, line 2
2default:58!==V.charCodeAt(B-1)&&(H+=i(V,d,p,V.charCodeAt(2)))}F=N=R=d=0,V="",p=l.charCodeAt(++I)}}switch(p){case 13:case 10:47===S?S=0:0===1+d&&107!==c&&0<V.length&&(N=1,V+="\0"),0<M*D&&s(0,V,r,e,T,E,H.length,c,f,c),E=1,T++;break;case 59:case 125:if(0===S+k+C+w){E++;break}default:switch(E++,v=l.charAt(I),p){case 9:case 32:if(0===k+w+S)switch(O){case 44:case 58:case 9:case 32:v="";break;default:32!==p&&(v=" ")}break;case 0:v="\\0";break;case 12:v="\\f";break;case 11:v="\\v";break;case 38:0===k+S+w&&(N=F=1,v="\f"+v);break;case 108:if(0===k+S+w+A&&0<R)switch(I-R){case 2:112===O&&58===l.charCodeAt(I-3)&&(A=O);case 8:111===L&&(A=L)}break;case 58:0===k+S+w&&(R=I);break;case 44:0===S+C+k+w&&(N=1,v+="\r");break;case 34:case 39:0===S&&(k=k===p?0:0===k?p:k);break;case 91:0===k+S+C&&w++;break;case 93:0===k+S+C&&w--;break;case 41:0===k+S+w&&C--;break;case 40:if(0===k+S+w){if(0===d)switch(2*O+3*L){case 533:break;default:d=1}C++}break;case 64:0===S+C+k+w+R+g&&(g=1);break;case 42:case 47:if(!(0<k+w+C))switch(S){case 0:switch(2*p+3*l.charCodeAt(I+1)){case 235:S=47;break;case 220:B=I,S=42}break;case 42:47===p&&42===O&&B+2!==I&&(33===l.charCodeAt(B+2)&&(H+=l.substring(B,I+1)),v="",S=0)}}0===S&&(V+=v)}L=O,O=p,I++}if(0<(B=H.length)){if(N=r,0<M&&(void 0!==(x=s(2,H,N,e,T,E,B,c,f,c))&&0===(H=x).length))return G+H+W;if(H=N.join(",")+"{"+H+"}",0!==P*A){switch(2!==P||o(H,2)||(A=0),A){case 111:H=H.replace(b,":-moz-$1")+H;break;case 112:H=H.replace(y,"::-webkit-input-$1")+H.replace(y,"::-moz-$1")+H.replace(y,":-ms-input-$1")+H}A=0}}return G+H+W}function n(e,t,n){var i=t.trim().split(g);t=i;var o=i.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<o;++s)t[s]=r(e,t[s],n).trim();break;default:var l=s=0;for(t=[];s<o;++s)for(var c=0;c<a;++c)t[l++]=r(e[c]+" ",i[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(v,"$1"+e.trim());case 58:return e.trim()+t.replace(v,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(v,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function i(e,t,n,r){var a=e+";",s=2*t+3*n+4*r;if(944===s){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===P||2===P&&o(l,1)?"-webkit-"+l+l:l}if(0===P||2===P&&!o(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(O,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return d.test(a)?a.replace(f,":-webkit-")+a.replace(f,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(x,"tb");break;case 232:l=a.replace(x,"tb-rl");break;case 220:l=a.replace(x,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";
2case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(S,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(S,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===k.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+a}return a}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),R(2!==t?r:r.replace(C,"$1"),n,t)}function a(e,t){var n=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(w," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,i,o,a,s,l,u){for(var h,f=0,d=t;f<M;++f)switch(h=L[f].call(c,e,d,n,r,i,o,a,s,l,u)){case void 0:case!1:case!0:case null:break;default:d=h}if(d!==t)return d}function l(e){return void 0!==(e=e.prefix)&&(R=null,e?"function"!==typeof e?P=1:(P=2,R=e):P=0),l}function c(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<M){var i=s(-1,n,r,r,T,E,0,0,0,0);void 0!==i&&"string"===typeof i&&(n=i)}var o=t(j,r,n,0,0);return 0<M&&(void 0!==(i=s(-2,o,r,r,T,E,o.length,0,0,0))&&(o=i)),"",A=0,E=T=1,o}var u=/^\0+/g,h=/[\0\r\f]/g,f=/: */g,d=/zoo|gra/,p=/([,: ])(transform)/g,g=/,\r+?/g,v=/([\t\r\n ])*\f?&/g,m=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,b=/:(read-only)/g,x=/[svh]\w+-[tblr]{2}/,_=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,S=/-self|flex-/g,C=/[^]*?(:[rp][el]a[\w-]+)[^]*/,k=/stretch|:\s*\w+\-(?:conte|avail)/,O=/([^-])(image-set\()/,E=1,T=1,A=0,P=1,j=[],L=[],M=0,R=null,D=0;return c.use=function e(t){switch(t){case void 0:case null:M=L.length=0;break;default:if("function"===typeof t)L[M++]=t;else if("object"===typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else D=0|!!t}return e},c.set=l,void 0!==e&&l(e),c}},function(e,t,n){"use strict";t.a={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype=new Error,r.prototype.name="InvalidCharacterError";var i="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new r("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,i,o=0,a=0,s="";i=t.charAt(a++);~i&&(n=o%4?64*n+i:i,o++%4)?s+=String.fromCharCode(255&n>>(-2*o&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return s};function o(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(i(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return i(t)}}function a(e){this.message=e}a.prototype=new Error,a.prototype.name="InvalidTokenError",t.a=function(e,t){if("string"!=typeof e)throw new a("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(o(e.split(".")[n]))}catch(e){throw new a("Invalid token specified: "+e.message)}}},function(e,t){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},function(e,t,n){var r=n(264),i=n(265),o=n(270),a=n(267),s=n(325),l=n(269);self,e.exports=function(){"use strict";var e={d:function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}
2),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.d(t,{default:function(){return D}});var n={};function c(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};t instanceof HTMLCollection||t instanceof NodeList?t=Array.from(t):Array.isArray(t)||(t=[t]),Array.isArray(n)||(n=[n]);var o,a=l(t);try{for(a.s();!(o=a.n()).done;){var c,u=o.value,h=l(n);try{for(h.s();!(c=h.n()).done;){var f=c.value;u[e](f,r,s({capture:!1},i))}}catch(d){h.e(d)}finally{h.f()}}}catch(d){a.e(d)}finally{a.f()}return Array.prototype.slice.call(arguments,1)}e.r(n),e.d(n,{adjustableInputNumbers:function(){return v},createElementFromString:function(){return f},createFromTemplate:function(){return d},eventPath:function(){return p},off:function(){return h},on:function(){return u},resolveElement:function(){return g}});var u=c.bind(null,"addEventListener"),h=c.bind(null,"removeEventListener");function f(e){var t=document.createElement("div");return t.innerHTML=e.trim(),t.firstElementChild}function d(e){var t=function(e,t){var n=e.getAttribute(t);return e.removeAttribute(t),n};return function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t(n,":obj"),o=t(n,":ref"),a=i?r[i]={}:r;o&&(r[o]=n);for(var s=0,l=Array.from(n.children);s<l.length;s++){var c=l[s],u=t(c,":arr"),h=e(c,u?{}:a);u&&(a[u]||(a[u]=[])).push(Object.keys(h).length?h:c)}return r}(f(e))}function p(e){var t=e.path||e.composedPath&&e.composedPath();if(t)return t;var n=e.target.parentElement;for(t=[e.target,n];n=n.parentElement;)t.push(n);return t.push(document,window),t}function g(e){return e instanceof Element?e:"string"==typeof e?e.split(/>>/g).reduce((function(e,t,n,r){return e=e.querySelector(t),n<r.length-1?e.shadowRoot:e}),document):null}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e};function n(n){var r=[.001,.01,.1][Number(n.shiftKey||2*n.ctrlKey)]*(n.deltaY<0?1:-1),i=0,o=e.selectionStart;e.value=e.value.replace(/[\d.]+/g,(function(e,n){return n<=o&&n+e.length>=o?(o=n,t(Number(e),r,i)):(i++,e)})),e.focus(),e.setSelectionRange(o,o),n.preventDefault(),e.dispatchEvent(new Event("input"))}u(e,"focus",(function(){return u(window,"wheel",n,{passive:!1})})),u(e,"blur",(function(){return h(window,"wheel",n)}))}var m=Math.min,y=Math.max,b=Math.floor,x=Math.round;function _(e,t,n){t/=100,n/=100;var r=b(e=e/360*6),i=e-r,o=n*(1-t),a=n*(1-i*t),s=n*(1-(1-i)*t),l=r%6;return[255*[n,a,o,o,s,n][l],255*[s,n,n,a,o,o][l],255*[o,o,s,n,n,a][l]]}function w(e,t,n){var r=(2-(t/=100))*(n/=100)/2;return 0!==r&&(t=1===r?0:r<.5?t*n/(2*r):t*n/(2-2*r)),[e,100*t,100*r]}function S(e,t,n){var r,i,o=m(e/=255,t/=255,n/=255),a=y(e,t,n),s=a-o;if(0===s)r=i=0;else{i=s/a;var l=((a-e)/6+s/2)/s,c=((a-t)/6+s/2)/s,u=((a-n)/6+s/2)/s;e===a?r=u-c:t===a?r=1/3+l-u:n===a&&(r=2/3+c-l),r<0?r+=1:r>1&&(r-=1)}return[360*r,100*i,100*a]}function C(e,t,n,r){return t/=100,n/=100,a(S(255*(1-m(1,(e/=100)*(1-(r/=100))+r)),255*(1-m(1,t*(1-r)+r)),255*(1-m(1,n*(1-r)+r))))}function k(e,t,n){t/=100;var r=2*(t*=(n/=100)<.5?n:1-n)/(n+t)*100,i=100*(n+t);return[e,isNaN(r)?0:r,i]}function O(e){return S.apply(void 0,a(e.match(/.{2}/g).map((function(e){return parseInt(e,16)}))))}function E(e){e=e.match(/^[a-zA-Z]+$/)?function(e){if("black"===e.toLowerCase())return"#000";var t=document.createElement("canvas").getContext("2d");return t.fillStyle=e,"#000"===t.fillStyle?null:t.fillStyle}(e):e;var t,n={cmyk:/^cmyk[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)/i,rgba:/^((rgba)|rgb)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsla:/^((hsla)|hsl)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsva:/^((hsva)|hsv)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hexa:/^#?(([\dA-Fa-f]{3,4})|([\dA-Fa-f]{6})|([\dA-Fa-f]{8}))$/i},r=function(e){return e.map((function(e){return/^(|\d+)\.\d+|\d+$/.test(e)?Number(e):void 0}))};e:for(var i in n)if(t=n[i].exec(e)){var s=function(e){return!!t[2]==("number"==typeof e)};switch(i){case"cmyk":var l=r(t),c=o(l,5),u=c[1],h=c[2],f=c[3],d=c[4];if(u>100||h>100||f>100||d>100)break e;return{values:C(u,h,f,d),type:i};case"rgba":var p=r(t),g=o(p,7),v=g[3],m=g[4],y=g[5],b=g[6];if(v>255||m>255||y>255||b<0||b>1||!s(b))break e;return{values:[].concat(a(S(v,m,y)),[b]),a:b,type:i};case"hexa":var x=o(t,2)[1];4!==x.length&&3!==x.length||(x=x.split("").map((function(e){return e+e})).join(""));var _=x.substring(0,6),w=x.substring(6);return w=w?parseInt(w,16)/255:void 0,{values:[].concat(a(O(_)),[w]),a:w,type:i};case"hsla":var E=r(t),T=o(E,7),A=T[3],P=T[4],j=T[5],L=T[6];if(A>360||P>100||j>100||L<0||L>1||!s(L))break e;return{values:[].concat(a(k(A,P,j)),[L]),a:L,type:i};case"hsva":var M=r(t),R=o(M,7),D=R[3],I=R[4],N=R[5],F=R[6];if(D>360||I>100||N>100||F<0||F>1||!s(F))break e;return{values:[D,I,N,F],a:F,type:i}}}return{values:null,type:null}}function T(){var e=function(e,t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;return t(~n?e.map((function(e){return Number(e.toFixed(n))})):e)}},t={h:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,s:arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,v:arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a:arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,toHSVA:function(){var n=[t.h,t.s,t.v,t.a];return n.toString=e(n,(function(e){return"hsva(".concat(e[0],", ").concat(e[1],"%, ").concat(e[2],"%, ").concat(t.a,")")})),n},toHSLA:function(){var n=[].concat(a(w(t.h,t.s,t.v)),[t.a]);return n.toString=e(n,(function(e){return"hsla(".concat(e[0],", ").concat(e[1],"%, ").concat(e[2],"%, ").concat(t.a,")")})),n},toRGBA:function(){var n=[].concat(a(_(t.h,t.s,t.v)),[t.a]);return n.toString=e(n,(function(e){return"rgba(".concat(e[0],", ").concat(e[1],", ").concat(e[2],", ").concat(t.a,")")})),n},toCMYK:function(){var n=function(e,t,n){var r=_(e,t,n),i=r[0]/255,o=r[1]/255,a=r[2]/255,s=m(1-i,1-o,1-a);return[100*(1===s?0:(1-i-s)/(1-s)),100*(1===s?0:(1-o-s)/(1-s)),100*(1===s?0:(1-a-s)/(1-s)),100*s]}(t.h,t.s,t.v);return n.toString=e(n,(function(e){return"cmyk(".concat(e[0],"%, ").concat(e[1],"%, ").concat(e[2],"%, ").concat(e[3],"%)")})),n},toHEXA:function(){var e=function(e,t,n){return _(e,t,n).map((function(e){return x(e).toString(16).padStart(2,"0")}))}(t.h,t.s,t.v),n=t.a>=1?"":Number((255*t.a).toFixed(0)).toString(16).toUpperCase().padStart(2,"0");return n&&e.push(n),e.toString=function(){return"#".concat(e.join("").toUpperCase())},e},clone:function(){return T(t.h,t.s,t.v,t.a)}};return t}var A=function(e){return Math.max(Math.min(e,1),0)};function P(e){var t={options:Object.assign({lock:null,onchange:function(){return 0},onstop:function(){return 0}},e),_keyboard:function(e){var n=t.options,r=e.type,i=e.key;if(document.activeElement===n.wrapper){var o=t.options.lock,a="ArrowUp"===i,s="ArrowRight"===i,l="ArrowDown"===i,c="ArrowLeft"===i;if("keydown"===r&&(a||s||l||c)){var u=0,h=0;"v"===o?u=a||s?1:-1:"h"===o?u=a||s?-1:1:(h=a?-1:l?1:0,u=c?-1:s?1:0),t.update(A(t.cache.x+.01*u),A(t.cache.y+.01*h)),e.preventDefault()}else i.startsWith("Arrow")&&(t.options.onstop(),e.preventDefault())}},_tapstart:function(e){u(document,["mouseup","touchend","touchcancel"],t._tapstop),u(document,["mousemove","touchmove"],t._tapmove),e.cancelable&&e.preventDefault(),t._tapmove(e)},_tapmove:function(e){var n=t.options,r=t.cache,i=n.lock,o=n.element,a=n.wrapper.getBoundingClientRect(),s=0,l=0;if(e){var c=e&&e.touches&&e.touches[0];s=e?(c||e).clientX:0,l=e?(c||e).clientY:0,s<a.left?s=a.left:s>a.left+a.width&&(s=a.left+a.width),l<a.top?l=a.top:l>a.top+a.height&&(l=a.top+a.height),s-=a.left,l-=a.top}else r&&(s=r.x*a.width,l=r.y*a.height);"h"!==i&&(o.style.left="calc(".concat(s/a.width*100,"% - ").concat(o.offsetWidth/2,"px)")),"v"!==i&&(o.style.top="calc(".concat(l/a.height*100,"% - ").concat(o.offsetHeight/2,"px)")),t.cac
2he={x:s/a.width,y:l/a.height};var u=A(s/a.width),h=A(l/a.height);switch(i){case"v":return n.onchange(u);case"h":return n.onchange(h);default:return n.onchange(u,h)}},_tapstop:function(){t.options.onstop(),h(document,["mouseup","touchend","touchcancel"],t._tapstop),h(document,["mousemove","touchmove"],t._tapmove)},trigger:function(){t._tapmove()},update:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=t.options.wrapper.getBoundingClientRect(),i=r.left,o=r.top,a=r.width,s=r.height;"h"===t.options.lock&&(n=e),t._tapmove({clientX:i+a*e,clientY:o+s*n})},destroy:function(){var e=t.options,n=t._tapstart,r=t._keyboard;h(document,["keydown","keyup"],r),h([e.wrapper,e.element],"mousedown",n),h([e.wrapper,e.element],"touchstart",n,{passive:!1})}},n=t.options,r=t._tapstart,i=t._keyboard;return u([n.wrapper,n.element],"mousedown",r),u([n.wrapper,n.element],"touchstart",r,{passive:!1}),u(document,["keydown","keyup"],i),t}function j(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e=Object.assign({onchange:function(){return 0},className:"",elements:[]},e);var t=u(e.elements,"click",(function(t){e.elements.forEach((function(n){return n.classList[t.target===n?"add":"remove"](e.className)})),e.onchange(t),t.stopPropagation()}));return{destroy:function(){return h.apply(void 0,a(t))}}}var L={variantFlipOrder:{start:"sme",middle:"mse",end:"ems"},positionFlipOrder:{top:"tbrl",right:"rltb",bottom:"btrl",left:"lrbt"},position:"bottom",margin:8},M=function(e,t,n){var r=s(s({container:document.documentElement.getBoundingClientRect()},L),n),i=r.container,a=r.margin,c=r.position,u=r.variantFlipOrder,h=r.positionFlipOrder,f=t.style,d=f.left,p=f.top;t.style.left="0",t.style.top="0";var g,v=e.getBoundingClientRect(),m=t.getBoundingClientRect(),y={t:v.top-m.height-a,b:v.bottom+a,r:v.right+a,l:v.left-m.width-a},b={vs:v.left,vm:v.left+v.width/2+-m.width/2,ve:v.left+v.width-m.width,hs:v.top,hm:v.bottom-v.height/2-m.height/2,he:v.bottom-m.height},x=c.split("-"),_=o(x,2),w=_[0],S=_[1],C=void 0===S?"middle":S,k=h[w],O=u[C],E=i.top,T=i.left,A=i.bottom,P=i.right,j=l(k);try{for(j.s();!(g=j.n()).done;){var M=g.value,R="t"===M||"b"===M,D=y[M],I=o(R?["top","left"]:["left","top"],2),N=I[0],F=I[1],B=R?[m.height,m.width]:[m.width,m.height],U=o(B,2),z=U[0],V=U[1],H=o(R?[A,P]:[P,A],2),W=H[0],G=H[1],q=o(R?[E,T]:[T,E],2),X=q[0],Y=q[1];if(!(D<X||D+z>W)){var $,K=l(O);try{for(K.s();!($=K.n()).done;){var Z=$.value,Q=b[(R?"v":"h")+Z];if(!(Q<Y||Q+V>G))return t.style[F]=Q-m[F]+"px",t.style[N]=D-m[N]+"px",M+Z}}catch(J){K.e(J)}finally{K.f()}}}}catch(J){j.e(J)}finally{j.f()}return t.style.left=d,t.style.top=p,null};function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var D=function(){function e(t){var n=this;r(this,e),R(this,"_initializingActive",!0),R(this,"_recalc",!0),R(this,"_nanopop",null),R(this,"_root",null),R(this,"_color",T()),R(this,"_lastColor",T()),R(this,"_swatchColors",[]),R(this,"_setupAnimationFrame",null),R(this,"_eventListener",{init:[],save:[],hide:[],show:[],clear:[],change:[],changestop:[],cancel:[],swatchselect:[],dropper:[],info:[]}),this.options=t=Object.assign(s({},e.DEFAULT_OPTIONS),t);var i=t,o=i.swatches,a=i.components,l=i.theme,c=i.sliders,u=i.lockOpacity,h=i.padding;["nano","monolith"].includes(l)&&!c&&(t.sliders="h"),a.interaction||(a.interaction={});var f=a.preview,d=a.opacity,p=a.hue,g=a.palette;a.opacity=!u&&d,a.palette=g||f||d||p,this._preBuild(),this._buildComponents(),this._bindEvents(),this._finalBuild(),o&&o.length&&o.forEach((function(e){return n.addSwatch(e)}));var v=this._root,m=v.button,y=v.app;this._nanopop=function(e,t,n){var r="object"!=typeof e||e instanceof HTMLElement?s({reference:e,popper:t},n):e;return{update:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,t=Object.assign(r,e),n=t.reference,i=t.popper;if(!i||!n)throw new Error("Popper- or reference-element missing.");return M(n,i,r)}}}(m,y,{margin:h}),m.setAttribute("role","button"),m.setAttribute("aria-label",this._t("btn:toggle"));var b=this;this._setupAnimationFrame=requestAnimationFrame((function e(){if(!y.offsetWidth)return requestAnimationFrame(e);b.setColor(t.default),b._rePositioningPicker(),t.defaultRepresentation&&(b._representation=t.defaultRepresentation,b.setColorRepresentation(b._representation)),t.showAlways&&b.show(),b._initializingActive=!1,b._emit("init")}))}return i(e,[{key:"_preBuild",value:function(){for(var e=this.options,t=0,n=["el","container"];t<n.length;t++){var r=n[t];e[r]=g(e[r])}this._root=function(e){var t=e.options,n=t.components,r=t.useAsButton,i=t.inline,o=t.appClass,a=t.theme,s=t.lockOpacity,l=function(e){return e?"":'style="display:none" hidden'},c=function(t){return e._t(t)},u=d('\n <div :ref="root" class="pickr">\n\n '.concat(r?"":'<button type="button" :ref="button" class="pcr-button"></button>','\n\n <div :ref="app" class="pcr-app ').concat(o||"",'" data-theme="').concat(a,'" ').concat(i?'style="position: unset"':"",' aria-label="').concat(c("ui:dialog"),'" role="window">\n <div class="pcr-selection" ').concat(l(n.palette),'>\n <div :obj="preview" class="pcr-color-preview" ').concat(l(n.preview),'>\n <button type="button" :ref="lastColor" class="pcr-last-color" aria-label="').concat(c("btn:last-color"),'"></button>\n <div :ref="currentColor" class="pcr-current-color"></div>\n </div>
2\n\n <div :obj="palette" class="pcr-color-palette">\n <div :ref="picker" class="pcr-picker"></div>\n <div :ref="palette" class="pcr-palette" tabindex="0" aria-label="').concat(c("aria:palette"),'" role="listbox"></div>\n </div>\n\n <div :obj="hue" class="pcr-color-chooser" ').concat(l(n.hue),'>\n <div :ref="picker" class="pcr-picker"></div>\n <div :ref="slider" class="pcr-hue pcr-slider" tabindex="0" aria-label="').concat(c("aria:hue"),'" role="slider"></div>\n </div>\n\n <div :obj="opacity" class="pcr-color-opacity" ').concat(l(n.opacity),'>\n <div :ref="picker" class="pcr-picker"></div>\n <div :ref="slider" class="pcr-opacity pcr-slider" tabindex="0" aria-label="').concat(c("aria:opacity"),'" role="slider"></div>\n </div>\n </div>\n\n <div class="pcr-color-opacity-input" ').concat(l(n.opacity),'>\n <span>Opacity: </span>\n <div class="opacity-input">\n <input :ref="opacityinput" aria-label="').concat(c("aria:opacity"),'"/>\n <span class="append">%</span>\n </div>\n <div :ref="dropper" class="pcr-dropper" type="button" ').concat(l(null!=n.interaction.dropper),' aria-label="').concat(c("aria:btn:dropper"),'">\n <div :ref="dropperInner" class="pcr-dropper-inner" data-src="').concat(n.interaction.dropper,'" ></div>\n </div>\n </div>\n\n <div class="pcr-swatches ').concat(n.palette?"":"pcr-last",'" :ref="swatches">\n <input :ref="add" class="pcr-add" value="').concat(c("btn:add"),'" type="button" ').concat(l(n.interaction.add),' aria-label="').concat(c("aria:btn:add"),'">\n </div>\n\n <div :obj="interaction" class="pcr-interaction" ').concat(l(Object.keys(n.interaction).length),'>\n <input :ref="result" class="pcr-result" type="text" spellcheck="false" ').concat(l(n.interaction.input),' aria-label="').concat(c("aria:input"),'">\n\n <select :ref="select">\n <option value="').concat(s?"HEX":"HEXA",'">HEX</option>\n <option value="').concat(s?"RGB":"RGBA",'">RGB</option>\n <option value="CMYK">CMYK</option>\n </select>\n <input :arr="options" class="pcr-type" data-type="HEXA" value="').concat(s?"HEX":"HEXA",'" type="button" ').concat(l(n.interaction.hex),'>\n <input :arr="options" class="pcr-type" data-type="RGBA" value="').concat(s?"RGB":"RGBA",'" type="button" ').concat(l(n.interaction.rgba),'>\n <input :arr="options" class="pcr-type" data-type="HSLA" value="').concat(s?"HSL":"HSLA",'" type="button" ').concat(l(n.interaction.hsla),'>\n <input :arr="options" class="pcr-type" data-type="HSVA" value="').concat(s?"HSV":"HSVA",'" type="button" ').concat(l(n.interaction.hsva),'>\n <input :arr="options" class="pcr-type" data-type="CMYK" value="CMYK" type="button" ').concat(l(n.interaction.cmyk),'>\n\n <input :ref="save" class="pcr-save" value="').concat(c("btn:save"),'" type="button" ').concat(l(n.interaction.save),' aria-label="').concat(c("aria:btn:save"),'">\n <input :ref="cancel" class="pcr-cancel" value="').concat(c("btn:cancel"),'" type="button" ').concat(l(n.interaction.cancel),' aria-label="').concat(c("aria:btn:cancel"),'">\n <input :ref="clear" class="pcr-clear" value="').concat(c("btn:clear"),'" type="button" ').concat(l(n.interaction.clear),' aria-label="').concat(c("aria:btn:clear"),'">\n </div>\n </div>\n </div>\n ')),h=u.interaction;return h.options.find((function(e){return!e.hidden&&!e.classList.add("active")})),h.type=function(){return h.options.find((function(e){return e.classList.contains("active")}))},u}(this),e.useAsButton&&(this._root.button=e.el),e.container.appendChild(this._root.root)}},{key:"_finalBuild",value:function(){var e=this.options,t=this._root;if(e.container.removeChild(t.root),e.inline){var n=e.el.parentElement;e.el.nextSibling?n.insertBefore(t.app,e.el.nextSibling):n.appendChild(t.app)}else e.container.appendChild(t.app);e.useAsButton?e.inline&&e.el.remove():e.el.parentNode.replaceChild(t.root,e.el),e.disabled&&this.disable(),e.comparison||(t.button.style.transition="none",e.useAsButton||(t.preview.lastColor.style.transition="none")),this.hide()}},{key:"_buildComponents",value:function(){var e=this,t=this,n=this.options.components,r=(t.options.sliders||"v").repeat(2),i=r.match(/^[vh]+$/g)?r:[],a=o(i,2),s=a[0],c=a[1],u=function(){return e._color||(e._color=e._lastColor.clone())},h={palette:P({element:t._root.palette.picker,wrapper:t._root.palette.palette,onstop:function(){return t._emit
2("changestop","slider",t)},onchange:function(e,r){if(n.palette){var i=u(),o=t._root,a=t.options,s=o.preview,c=s.lastColor,h=s.currentColor;t._recalc&&(i.s=100*e,i.v=100-100*r,i.v<0&&(i.v=0),t._updateOutput("slider"));var f=i.toRGBA().toString(0);this.element.style.background=f,this.wrapper.style.background="\n linear-gradient(to top, rgba(0, 0, 0, ".concat(i.a,"), transparent),\n linear-gradient(to left, hsla(").concat(i.h,", 100%, 50%, ").concat(i.a,"), rgba(255, 255, 255, ").concat(i.a,"))\n "),a.comparison?a.useAsButton||t._lastColor||c.style.setProperty("--pcr-color",f):(o.button.style.setProperty("--pcr-color",f),o.button.classList.remove("clear"));var d,p=i.toHEXA().toString(),g=l(t._swatchColors);try{for(g.s();!(d=g.n()).done;){var v=d.value,m=v.el,y=v.color;m.classList[p===y.toHEXA().toString()?"add":"remove"]("pcr-active")}}catch(b){g.e(b)}finally{g.f()}h.style.setProperty("--pcr-color",f)}}}),hue:P({lock:"v"===c?"h":"v",element:t._root.hue.picker,wrapper:t._root.hue.slider,onstop:function(){return t._emit("changestop","slider",t)},onchange:function(e){if(n.hue&&n.palette){var r=u();t._recalc&&(r.h=360*e),this.element.style.backgroundColor="hsl(".concat(r.h,", 100%, 50%)"),h.palette.trigger()}}}),opacity:P({lock:"v"===s?"h":"v",element:t._root.opacity.picker,wrapper:t._root.opacity.slider,onstop:function(){return t._emit("changestop","slider",t)},onchange:function(e){if(n.opacity&&n.palette){var r=u();t._recalc&&(r.a=Math.round(100*e)/100),this.element.style.background="rgba(0, 0, 0, ".concat(r.a,")"),h.palette.trigger(),t._root.opacityinput.value=parseInt(100*r.a)}}}),selectable:j({elements:t._root.interaction.options,className:"active",onchange:function(e){t._representation=e.target.getAttribute("data-type").toUpperCase(),t._recalc&&t._updateOutput("swatch"),t._setRepresentSelect(t._representation)}})};this._components=h}},{key:"_toBriefColor",value:function(e){return-1!==e.indexOf(",")&&(((e=e.trim()).startsWith("cmyk(")||e.startsWith("rgba("))&&(e=e.substr(5)),e.endsWith(")")&&(e=e.substr(0,e.length-1))),e}},{key:"_toFullColor",value:function(e){return-1!==e.indexOf(",")&&-1===e.indexOf("cmyk(")&&-1===e.indexOf("rgba(")?-1!==e.indexOf("%")?"cmyk(".concat(e,")"):"rgba(".concat(e,")"):e}},{key:"_setRepresentSelect",value:function(e){for(var t=this._root.interaction.select.options,n=0;n<t.length;n++)t[n].value==e&&(t[n].selected=!0)}},{key:"_bindEvents",value:function(){var e=this,t=this._root,n=this.options,r=[u(t.interaction.clear,"click",(function(){return e._clearColor()})),u([t.interaction.cancel,t.preview.lastColor],"click",(function(){e.setHSVA.apply(e,a((e._lastColor||e._color).toHSVA()).concat([!0])),e._emit("cancel")})),u(t.interaction.save,"click",(function(){!e.applyColor()&&!n.showAlways&&e.hide()})),u(t.interaction.result,["keyup","input"],(function(t){e.setColor(e._toFullColor(t.target.value),!0)&&!e._initializingActive&&(e._emit("change",e._color,"input",e),e._emit("changestop","input",e)),t.stopImmediatePropagation()})),u(t.interaction.result,["focus","blur"],(function(t){e._recalc="blur"===t.type,e._recalc&&e._updateOutput(null)})),u([t.palette.palette,t.palette.picker,t.hue.slider,t.hue.picker,t.opacity.slider,t.opacity.picker],["mousedown","touchstart"],(function(){return e._recalc=!0}),{passive:!0}),u(t.add,"click",(function(){var t=e.getColor().toHEXA().toString(0);e.options.swatches.some((function(n){var r=e._parseLocalColor(n).values;return T.apply(void 0,a(r)).toHEXA().toString(0)===t}))?e._emit("info",{code:"CUSTOM_COLOR_EXIST",message:"Custom color exist."}):(e.addSwatch(t),e.options.swatches.push(t))})),u(t.opacityinput,["keyup","input"],(function(t){var n=Math.max(0,Math.min(1,parseFloat(t.target.value)/100));if(e.options.components.opacity&&e.options.components.palette){var r=e.getColor();e._recalc&&(r.a=Math.round(100*n)/100),e._components.opacity.update(r.a),e._emit("changestop","input",e),t.stopImmediatePropagation()}})),u(t.interaction.select,"change",(function(t){e._representation=t.target.value.toUpperCase(),e.setColorRepresentation(e._representation)})),u(t.dropper,"click",(function(){e._emit("dropper",null)}))];if(!n.showAlways){var i=n.closeWithKey;r.push(u(t.button,"click",(function(){return e.isOpen()?e.hide():e.show()})),u(document,"keyup",(function(t){return e.isOpen()&&(t.key===i||t.code===i)&&e.hide()})),u(document,["touchstart","mousedown"],(function(r){if(e.isOpen()&&!p(r).some((function(e){return e===t.app||e===t.button}))){if(n.canClose&&!n.canClose(r))return;e.hide()}}),{capture:!0}))}if(r.push(u(document,"keyup",(function(t){var n="Delete",r="Backspace";!document.activeElement||document.activeElement.getAttribute("aria-label")!==e._t("btn:swatch")||t.key!==n&&t.code!==n&&t.key!==r&&t.code!==r||e._swatchColors.some((function(t,n){var r=t.el===document.activeElement;return r&&e.removeSwatch(n),r}))}))),n.adjustableNumbers){var o={rgba:[255,255,255,1],hsva:[360,100,100,1],hsla:[360,100,100,1],cmyk:[100,100,100,100]};v(t.interaction.result,(function(t,n,r){var i=o[e.getColorRepresentation().toLowerCase()];if(i){var a=i[r],s=t+(a>=100?1e3*n:n);return s<=0?0:Number((s<a?s:a).toPrecision(3))}return t}))}if(n.autoReposition&&!n.inline){var s=null,l=this;r.push(u(window,["scroll","resize"],(function(){l.isOpen()&&(n.closeOnScroll&&l.hide(),null===s?(s=setTimeout((function(){return s=null}),100),requestAnimationFrame((function e(){l._rePositioningPicker(),null!==s&&requestAnimationFrame(e)}))):(clearTimeout(s),s=setTimeout((function(){return s=null}),100)))}),{capture:!0}))}this._eventBindings=r}},{key:"_rePositioningPicker",value:function(){var e=this.options;if(!e.inline&&!this._nanopop.update({container:document.body.getBoundingClientRect(),position:e.position})){var t=this._root.app,n=t.getBoundingClientRect();t.style.top=(window.innerHeight-n.height)/2+"px",t.style.left=(window.innerWidth-n.width)/2+"px"}}},{key:"_updateOutput",value:function(e){var t=this._root,n=this._color,r=this.options;if(t.interaction.type()){var i="to".concat(t.interaction.type().getAttribute("data-type"));t.interaction.result.value=this._toBriefColor("function"==typeof n[i]?n[i]().toString(r.outputPrecision):"")}!this._initializingActive&&this._recalc&&this._emit("change",n,e,this)}},{key:"_clearColor",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._root,n=this.options;n.useAsButton||t.button.style.setProperty("--pcr-color","rgba(0, 0, 0, 0.15)"),t.button.classList.add("clear"),n.showAlways||this.hide(),this._lastColor=null,this._initializingActive||e||(this._emit("save",null),this._emit("clear"))}},{key:"_parseLocalColor",value:function(e){var t=E(e),n=t.values,r=t.type,i=t.a,o=this.options.lockOpacity,a=void 0!==i&&1!==i;return n&&3===n.length&&(n[3]=void 0),{values:!n||o&&a?null:n,type:r}}},{key:"_t",value:function(t){return this.options.i18n[t]||e.I18N_DEFAULTS[t]}},{key:"_emit",value:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this._eventListener[e].forEach((function(e){return e.apply(void 0,r.concat([t]))}))}},{key:"on",value:function(e,t){return this._eventListener[e].push(t),this}},{key:"off",value:function(e,t){var n=this._eventListener[e]||[],r=n.indexOf(t);return~r&&n.splice(r,1),this}},{key:"addSwatch",value:function(e){var t=this,n=this._parseLocalColor(e).values;if(n){var r=this._swatchColors,i=this._root,o=T.apply(void 0,a(n)),s=f('<button type="button" style="--pcr-color: '.concat(o.toRGBA().toString(0),'" aria-label="').concat(this._t("btn:swatch"),'"/>'));return i.swatches.insertBefore(s,i.add),r.push({el:s,color:o}),this._eventBindings.push(u(s,"click",(function(){t.setHSVA.apply(t,a(o.toHSVA()).concat([!0])),t._emit("swatchselect",o),t._emit("change",o,"swatch",t)}))),i.add.style.display=r.length<this.options.swatchesNum?"block":"none",!0}return!1}},{key:"removeSwatch",value:function(e){var t=this._swatchColors[e];if(t){var n=t.el;return this._root.swatches.removeChild(n),this._swatchColors.splice(e,1),this.options.swatches.splice(e,1),this._root.add.style.display=this._swatchColors.length<this.options.swatchesNum?"block":"none",!0}return!1}},{key:"applyColor",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._root,n=t.preview,r=t.button,i=this._color.toRGBA().toString(0);return n.lastColor.style.setProperty("--pcr-color",i),this.options.useAsButton||r.style.setProperty("--pcr-color",i),r.classList.remove("clear"),this._lastColor=this._color.clone(),this._initializingActive||e||this._emit("save",this._color),this}},{key:"destroy",value:function(){var e=this;cancelAnimationFrame(this._setupAnimationFrame),this._eventBindings.forEac
2h((function(e){return h.apply(void 0,a(e))})),Object.keys(this._components).forEach((function(t){return e._components[t].destroy()}))}},{key:"destroyAndRemove",value:function(){var e=this;this.destroy();var t=this._root,n=t.root,r=t.app;n.parentElement&&n.parentElement.removeChild(n),r.parentElement.removeChild(r),Object.keys(this).forEach((function(t){return e[t]=null}))}},{key:"hide",value:function(){return!!this.isOpen()&&(this._root.app.classList.remove("visible"),this._emit("hide"),!0)}},{key:"show",value:function(){return!this.options.disabled&&!this.isOpen()&&(this._root.app.classList.add("visible"),this._rePositioningPicker(),this._emit("show",this._color),this)}},{key:"isOpen",value:function(){return this._root.app.classList.contains("visible")}},{key:"setHSVA",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:360,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=this._recalc;if(this._recalc=!1,e<0||e>360||t<0||t>100||n<0||n>100||r<0||r>1)return!1;this._color=T(e,t,n,r);var a=this._components,s=a.hue,l=a.opacity,c=a.palette;return s.update(e/360),l.update(r),c.update(t/100,1-n/100),this._root.opacityinput.value=parseInt(100*r),i||this.applyColor(),o&&this._updateOutput(),this._recalc=o,!0}},{key:"setColor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null===e)return this._clearColor(t),!0;var n=this._parseLocalColor(e),r=n.values,i=n.type;if(r){var o=i.toUpperCase(),s=this._root.interaction.options,c=s.find((function(e){return e.getAttribute("data-type")===o}));if(c&&!c.hidden){var u,h=l(s);try{for(h.s();!(u=h.n()).done;){var f=u.value;f.classList[f===c?"add":"remove"]("active")}}catch(d){h.e(d)}finally{h.f()}}return c&&this._setRepresentSelect(o),!!this.setHSVA.apply(this,a(r).concat([t]))&&this.setColorRepresentation(o)}return!1}},{key:"setColorRepresentation",value:function(e){return e=e.toUpperCase(),!!this._root.interaction.options.find((function(t){return t.getAttribute("data-type").startsWith(e)&&!t.click()}))}},{key:"getColorRepresentation",value:function(){return this._representation}},{key:"getColor",value:function(){return this._color}},{key:"getSelectedColor",value:function(){return this._lastColor}},{key:"getRoot",value:function(){return this._root}},{key:"disable",value:function(){return this.hide(),this.options.disabled=!0,this._root.button.classList.add("disabled"),this}},{key:"enable",value:function(){return this.options.disabled=!1,this._root.button.classList.remove("disabled"),this}},{key:"setCanClose",value:function(e){e?this.options.canClose=e:delete this.options.canClose}}]),e}();return R(D,"utils",n),R(D,"version","1.8.6"),R(D,"I18N_DEFAULTS",{"ui:dialog":"color picker dialog","btn:toggle":"toggle color picker dialog","btn:swatch":"color swatch","btn:last-color":"use previous color","btn:save":"Save","btn:cancel":"Cancel","btn:clear":"Clear","btn:add":"+","aria:btn:save":"save and close","aria:btn:cancel":"cancel and close","aria:btn:clear":"clear and close","aria:input":"color input field","aria:palette":"color selection area","aria:hue":"hue selection slider","aria:opacity":"selection slider"}),R(D,"DEFAULT_OPTIONS",{appClass:null,theme:"classic",useAsButton:!1,padding:8,disabled:!1,comparison:!0,closeOnScroll:!1,outputPrecision:0,lockOpacity:!1,autoReposition:!0,container:"body",components:{interaction:{}},i18n:{}
2,swatches:null,swatchesNum:18,inline:!1,sliders:null,default:"#42445a",defaultRepresentation:null,position:"bottom-middle",adjustableNumbers:!0,showAlways:!1,closeWithKey:"Escape",canClose:null}),R(D,"create",(function(e){return new D(e)})),t.default}()},function(e,t,n){"use strict";function r(e){var t=-1;i||(i=function(){for(var e=new Int32Array(256),t=0;t<256;t++){for(var n=t,r=0;r<8;r++)n=1&n?3988292384^n>>>1:n>>>1;e[t]=n}return e}());for(var n=0;n<e.length;n++)t=i[255&(t^e[n])]^t>>>8;return-1^t}Object.defineProperty(t,"__esModule",{value:!0}),t.changeDpiBlob=function(e,t){var n=e.slice(0,33);return new Promise((function(r,i){var o=new FileReader;o.onload=function(){var n=new Uint8Array(o.result),i=e.slice(33),a=p(n,t,e.type);r(new Blob([a,i],{type:e.type}))},o.readAsArrayBuffer(n)}))},t.changeDpiDataUrl=function(e,t){var n=e.split(","),r=n[0],i=n[1],u=void 0,h=void 0,f=!1;if(-1!==r.indexOf(o)){u=o;var d=function(e){var t=e.indexOf(s);-1===t&&(t=e.indexOf(l));-1===t&&(t=e.indexOf(c));return t}(i);d>=0?(h=4*Math.ceil((d+28)/3),f=!0):h=44}-1!==r.indexOf(a)&&(u=a,h=24);for(var g=i.substring(0,h),v=i.substring(h),m=atob(g),y=new Uint8Array(m.length),b=0;b<y.length;b++)y[b]=m.charCodeAt(b);var x=p(y,t,u,f),_=btoa(String.fromCharCode.apply(String,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(x)));return[r,",",_,v].join("")};var i=void 0,o="image/png",a="image/jpeg",s="AAlwSFlz",l="AAAJcEhZ",c="AAAACXBI",u="p".charCodeAt(0),h="H".charCodeAt(0),f="Y".charCodeAt(0),d="s".charCodeAt(0);function p(e,t,n,i){if(n===a)return e[13]=1,e[14]=t>>8,e[15]=255&t,e[16]=t>>8,e[17]=255&t,e;if(n===o){var s=new Uint8Array(13);
2t*=39.3701,s[0]=u,s[1]=h,s[2]=f,s[3]=d,s[4]=t>>>24,s[5]=t>>>16,s[6]=t>>>8,s[7]=255&t,s[8]=s[4],s[9]=s[5],s[10]=s[6],s[11]=s[7],s[12]=1;var l=r(s),c=new Uint8Array(4);if(c[0]=l>>>24,c[1]=l>>>16,c[2]=l>>>8,c[3]=255&l,i){var p=function(e){for(var t=e.length-1;t>=4;t--)if(9===e[t-4]&&e[t-3]===u&&e[t-2]===h&&e[t-1]===f&&e[t]===d)return t-3}(e);return e.set(s,p),e.set(c,p+13),e}var g=new Uint8Array(4);g[0]=0,g[1]=0,g[2]=0,g[3]=9;var v=new Uint8Array(54);return v.set(e,0),v.set(g,33),v.set(s,37),v.set(c,50),v}}},function(e,t,n){"use strict";var r=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,i=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,o=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,a=/\\([\u000b\u0020-\u00ff])/g,s=/([\\"])/g,l=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;function c(e){var t=String(e);if(o.test(t))return t;if(t.length>0&&!i.test(t))throw new TypeError("invalid parameter value");return'"'+t.replace(s,"\\$1")+'"'}function u(e){this.parameters=Object.create(null),this.type=e}t.format=function(e){if(!e||"object"!==typeof e)throw new TypeError("argument obj is required");var t=e.parameters,n=e.type;if(!n||!l.test(n))throw new TypeError("invalid type");var r=n;if(t&&"object"===typeof t)for(var i,a=Object.keys(t).sort(),s=0;s<a.length;s++){if(i=a[s],!o.test(i))throw new TypeError("invalid parameter name");r+="; "+i+"="+c(t[i])}return r},t.parse=function(e){if(!e)throw new TypeError("argument string is required");var t="object"===typeof e?function(e){var t;"function"===typeof e.getHeader?t=e.getHeader("content-type"):"object"===typeof e.headers&&(t=e.headers&&e.headers["content-type"]);if("string"!==typeof t)throw new TypeError("content-type header is missing from object");return t}(e):e;if("string"!==typeof t)throw new TypeError("argument string is required to be a string");var n=t.indexOf(";"),i=-1!==n?t.substr(0,n).trim():t.trim();if(!l.test(i))throw new TypeError("invalid media type");var o=new u(i.toLowerCase());if(-1!==n){var s,c,h;for(r.lastIndex=n;c=r.exec(t);){if(c.index!==n)throw new TypeError("invalid parameter format");n+=c[0].length,s=c[1].toLowerCase(),'"'===(h=c[2])[0]&&(h=h.substr(1,h.length-2).replace(a,"$1")),o.parameters[s]=h}if(n!==t.length)throw new TypeError("invalid parameter format")}return o}},function(e,t,n){"use strict";t.a=n.p+"static/media/browser.0bec054f.cjs"},function(e,t,n){"use strict";var r=n(260),i=n(261);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(262)).default)(o.createElement("path",{d:"M3 17v2h6v-2H3zM3 5v2h10V5H3zm10 16v-2h8v-2h-8v-2h-2v6h2zM7 9v2H3v2h4v2h2V9H7zm14 4v-2H11v2h10zm-6-4h2V7h4V5h-4V3h-2v6z"}),"Tune");t.default=a},function(e,t,n){"use strict";var r,i="object"===typeof Reflect?Reflect:null,o=i&&"function"===typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=i&&"function"===typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!==e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"===typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}m(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"===typeof e.on&&m(e,"error",t,n)}(e,i,{once:!0})}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var l=10;function c(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function h(e,t,n,r){var i,o,a,s;if(c(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"===typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=u(e))>0&&a.length>i&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,s=l,console&&console.warn&&console.warn(s)}return e}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=f.bind(r);return i.listener=n,r.wrapFn=i,i}function p(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"===typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):v(i,i.length)}function g(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"===typeof n)return 1;if(void 0!==n)return n.length}return 0}function v(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function m(e,t,n,r){if("function"===typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!==typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){r.once&&e.removeEventListener(t,i),n(o)}))}}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(e){if("number"!==typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");l=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=i[e];if(void 0===l)return!1;if("function"===typeof l)o(l,this,t);else{var c=l.length,u=v(l,c);for(n=0;n<c;++n)o(u[n],this,t)}return!0},s.prototype.addListener=function(e,t){return h(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return h(this,e,t,!0)},s.prototype.once=function(e,t){return c(t),this.on(e,d(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,d(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,o,a;if(c(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit
vendor: 11,624 bytes, line 2
2("removeListener",e,n.listener||t));else if("function"!==typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"===typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return p(this,e,!0)},s.prototype.rawListeners=function(e){return p(this,e,!1)},s.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},s.prototype.listenerCount=g,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){var r;!function(){function i(e,t,n){return e.call.apply(e.bind,arguments)}function o(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function a(e,t,n){return(a=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?i:o).apply(null,arguments)}var s=Date.now||function(){return+new Date};function l(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var c=!!window.FontFace;function u(e,t,n,r){if(t=e.c.createElement(t),n)for(var i in n)n.hasOwnProperty(i)&&("style"==i?t.style.cssText=n[i]:t.setAttribute(i,n[i]));return r&&t.appendChild(e.c.createTextNode(r)),t}function h(e,t,n){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(n,e.lastChild)}function f(e){e.parentNode&&e.parentNode.removeChild(e)}function d(e,t,n){t=t||[],n=n||[];for(var r=e.className.split(/\s+/),i=0;i<t.length;i+=1){for(var o=!1,a=0;a<r.length;a+=1)if(t[i]===r[a]){o=!0;break}o||r.push(t[i])}for(t=[],i=0;i<r.length;i+=1){for(o=!1,a=0;a<n.length;a+=1)if(r[i]===n[a]){o=!0;break}o||t.push(r[i])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function p(e,t){for(var n=e.className.split(/\s+/),r=0,i=n.length;r<i;r++)if(n[r]==t)return!0;return!1}function g(e,t,n){function r(){s&&i&&o&&(s(a),s=null)}t=u(e,"link",{rel:"stylesheet",href:t,media:"all"});var i=!1,o=!0,a=null,s=n||null;c?(t.onload=function(){i=!0,r()},t.onerror=function(){i=!0,a=Error("Stylesheet failed to load"),r()}):setTimeout((function(){i=!0,r()}),0),h(e,"head",t)}function v(e,t,n,r){var i=e.c.getElementsByTagName("head")[0];if(i){var o=u(e,"script",{src:t}),a=!1;return o.onload=o.onreadystatechange=function(){a||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(a=!0,n&&n(null),o.onload=o.onreadystatechange=null,"HEAD"==o.parentNode.tagName&&i.removeChild(o))},i.appendChild(o),setTimeout((function(){a||(a=!0,n&&n(Error("Script load timeout")))}),r||5e3),o}return null}function m(){this.a=0,this.c=null}function y(e){return e.a++,function(){e.a--,x(e)}}function b(e,t){e.c=t,x(e)}function x(e){0==e.a&&e.c&&(e.c(),e.c=null)}function _(e){this.a=e||"-"}function w(e,t){this.c=e,this.f=4,this.a="n";var n=(t||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function S(e){var t=[];e=e.split(/,\s*/);for(var n=0;n<e.length;n++){var r=e[n].replace(/['"]/g,"");-1!=r.indexOf(" ")||/^\d/.test(r)?t.push("'"+r+"'"):t.push(r)}return t.join(",")}function C(e){return e.a+e.f}function k(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function O(e){var t=4,n="n",r=null;return e&&((r=e.match(/(normal|oblique|italic)/i))&&r[1]&&(n=r[1].substr(0,1).toLowerCase()),(r=e.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?t=7:/[1-9]00/.test(r[1])&&(t=parseInt(r[1].substr(0,1),10)))),n+t}function E(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new _("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function T(e){if(e.g){var t=p(e.f,e.a.c("wf","active")),n=[],r=[e.a.c("wf","loading")];t||n.push(e.a.c("wf","inactive")),d(e.f,n,r)}A(e,"inactive")}function A(e,t,n){e.j&&e.h[t]&&(n?e.h[t](n.c,C(n)):e.h[t]())}function P(){this.c={}}function j(e,t){this.c=e,this.f=t,this.a=u(this.c,"span",{"aria-hidden":"true"},this.f)}function L(e){h(e.c,"body",e.a)}function M(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+S(e.c)+";font-style:"+k(e)+";font-weight:"+e.f+"00;"}function R(e,t,n,r,i,o){this.g=e,this.j=t,this.a=r,this.c=n,this.f=i||3e3,this.h=o||void 0}function D(e,t,n,r,i,o,a){this.v=e,this.B=t,this.c=n,this.a=r,this.s=a||"BESbswy",this.f={},this.w=i||3e3,this.u=o||null,this.m=this.j=this.h=this.g=null,this.g=new j(this.c,this.s),this.h=new j(this.c,this.s),this.j=new j(this.c,this.s),this.m=new j(this.c,this.s),e=M(e=new w(this.a.c+",serif",C(this.a))),this.g.a.style.cssText=e,e=M(e=new w(this.a.c+",sans-serif",C(this.a))),this.h.a.style.cssText=e,e=M(e=new w("serif",C(this.a))),this.j.a.style.cssText=e,e=M(e=new w("sans-serif",C(this.a))),this.m.a.style.cssText=e,L(this.g),L(this.h),L(this.j),L(this.m)}_.prototype.c=function(e){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},R.prototype.start=function(){var e=this.c.o.document,t=this,n=s(),r=new Promise((function(r,i){!function o(){s()-n>=t.f?i():e.fonts.load(function(e){return k(e)+" "+e.f+"00 300px "+S(e.c)}(t.a),t.h).then((function(e){1<=e.length?r():setTimeout(o,25)}),(function(){i()}))}()})),i=null,o=new Promise((function(e,n){i=setTimeout(n,t.f)}));Promise.race([o,r]).then((function(){i&&(clearTimeout(i),i=null),t.g(t.a)}),(function(){t.j(t.a)}))};var I={D:"serif",C:"sans-serif"},N=null;function F(){if(null===N){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);N=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return N}function B(e,t,n){for(var r in I)if(I.hasOwnProperty(r)&&t===e.f[I[r]]&&n===e.f[I[r]])return!0;return!1}function U(e){var t,n=e.g.a.offsetWidth,r=e.h.a.offsetWidth;(t=n===e.f.serif&&r===e.f["sans-serif"])||(t=F()&&B(e,n,r)),t?s()-e.A>=e.w?F()&&B(e,n,r)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?z(e,e.v):z(e,e.B):function(e){setTimeout(a((function(){U(this)}),e),50)}(e):z(e,e.v)}function z(e,t){setTimeout(a((function(){f(this.g.a),f(this.h.a),f(this.j.a),f(this.m.a),t(this.a)}),e),0)}function V(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}D.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=s(),U(this)};var H=null;function W(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&d(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),A(e,"active")):T(e.a))}function G(e){this.j=e,this.a=new P,this.h=0,this.f=this.g=!0}function q(e,t,n,r,i){var o=0==--e.h;(e.f||e.g)&&setTimeout((function(){var e=i||null,s=r||{};if(0===n.length&&o)T(t.a);else{t.f+=n.length,o&&(t.j=o);var l,c=[];for(l=0;l<n.length;l++){var u=n[l],h=s[u.c],f=t.a,p=u;if(f.g&&d(f.f,[f.a.c("wf",p.c,C(p).toString(),"loading")]),A(f,"fontloading",p),f=null,null===H)if(window.FontFace){p=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var g=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);H=p?42<parseInt(p[1],10):!g}else H=!1;f=H?new R(a(t.g,t),a(t.h,t),t.c,u,t.s,h):new D(a(t.g,t),a(t.h,t),t.c,u,t.s,e,h),c.push(f)}for(l=0;l<c.length;l++)c[l].start()}}),0)}function X(e,t){this.c=e,this.a=t}function Y(e,t){this.c=e,this.a=t}function $(e,t){this.c=e||K,this.a=[],this.f=[],this.g=t||""}V.prototype.g=function(e){var t=this.a;t.g&&d(t.f,[t.a.c("wf",e.c,C(e).toString(),"active")],[t.a.c("wf",e.c,C(e).toString(),"loading"),t.a.c("wf",e.c,C(e).toString(),"inactive")]),A(t,"fontactive",e),this.m=!0,W(this)},V.prototype.h=function(e){var t=this.a;if(t.g){var n=p(t.f,t.a.c("wf",e.c,C(e).toString(),"active")),r=[],i=[t.a.c("wf",e.c,C(e).toString(),"loading")];n||r.push(t.a.c("wf",e.c,C(e).toString(),"inactive")),d(t.f,r,i)}A(t,"fontinactive",e),W(this)},G.prototype.load=function(e){this.c=new l(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,n){var r=[],i=n.timeout;!function(e){e.g&&d(e.f,[e.a.c("wf","loading")]),A(e,"loading")}(t);r=function(e,t,n){var r,i=[];for(r in t)if(t.hasOwnProperty(r)){var o=e.c[r];o&&i.push(o(t[r],n))}return i}(e.a,n,e.c);var o=new V(e.c,t,i);for(e.h=r.length,t=0,n=r.length;t<n;t++)r[t].load((function(t,n,r){q(e,o,t,n,r)}))}(this,new E(this.c,e),e)},X.prototype.load=function(e){function t(){if(o["__mti_fntLst"+r]){var n,i=o["__mti_fntLst"+r](),a=[];if(i)for(var s=0;s<i.length;s++){var l=i[s].fontfamily;void 0!=i[s].fontStyle&&void 0!=i[s].fontWeight?(n=i[s].fontStyle+i[s].fontWeight,a.push(new w(l,n))):a.push(new w(l))}e(a)}else setTimeout((function(){t()}),50)}var n=this,r=n.a.projectId,i=n.a.version;if(r){var o=n.c.o;v(this.c,(n.a.api||"https://fast.fonts.net/jsapi")+"/"+r+".js"+(i?"?v="+i:""),(function(i){i?e([]):(o["__MonotypeConfiguration__"+r]=function(){return n.a},t())})).id="__MonotypeAPIScript__"+r}else e([])},Y.prototype.load=function(e){var t,n,r=this.a.urls||[],i=this.a.families||[],o=this.a.testStrings||{},a=new m;for(t=0,n=r.length;t<n;t++)g(this.c,r[t],y(a));var s=[];for(t=0,n=i.length;t<n;t++)if((r=i[t].split(":"))[1])for(var l=r[1].split(","),c=0;c<l.length;c+=1)s.push(new w(r[0],l[c]));else s.push(new w(r[0]));b(a,(function(){e(s,o)}))};var K="https://fonts.googleapis.com/css";function Z(e){this.f=e,this.a=[],this.c={}}var Q={latin:"BESbswy","latin-ext":"\xe7\xf6\xfc\u011f\u015f",cyrillic:"\u0439\u044f\u0416",greek:"\u03b1\u03b2\u03a3",khmer:"\u1780\u1781\u1782",Hanuman:"\u1780\u1781\u1782"},J={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},ee={i:"i",italic:"i",n:"n",normal:"n"},te=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function ne(e,t){this.c=e,this.a=t}var re={Arimo:!0,Cousine:!0,Tinos:!0};function ie(e,t){this.c=e,this.a=t}function oe(e,t){this.c=e,this.f=t,this.a=[]}ne.prototype.load=function(e){var t=new m,n=this.c,r=new $(this.a.api,this.a.text),i=this.a.families;!function(e,t){for(var n=t.length,r=0;r<n;r++){var i=t[r].split(":");3==i.length&&e.f.push(i.pop());var o="";2==i.length&&""!=i[1]&&(o=":"),e.a.push(i.join(o))}}(r,i);var o=new Z(i);!function(e){for(var t=e.f.length,n=0;n<t;n++){var r=e.f[n].split(":"),i=r[0].replace(/\+/g," "),o=["n4"];if(2<=r.length){var a;if(a=[],s=r[1])for(var s,l=(s=s.split(",")).length,c=0;c<l;c++){var u;if((u=s[c]).match(/^[\w-]+$/))if(null==(h=te.exec(u.toLowerCase())))u="";
2else{if(u=null==(u=h[2])||""==u?"n":ee[u],null==(h=h[1])||""==h)h="4";else var h=J[h]||(isNaN(h)?"4":h.substr(0,1));u=[u,h].join("")}else u="";u&&a.push(u)}0<a.length&&(o=a),3==r.length&&(a=[],0<(r=(r=r[2])?r.split(","):a).length&&(r=Q[r[0]])&&(e.c[i]=r))}for(e.c[i]||(r=Q[i])&&(e.c[i]=r),r=0;r<o.length;r+=1)e.a.push(new w(i,o[r]))}}(o),g(n,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,n=[],r=0;r<t;r++)n.push(e.a[r].replace(/ /g,"+"));return t=e.c+"?family="+n.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(r),y(t)),b(t,(function(){e(o.a,o.c,re)}))},ie.prototype.load=function(e){var t=this.a.id,n=this.c.o;t?v(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",(function(t){if(t)e([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){t=n.Typekit.config.fn;for(var r=[],i=0;i<t.length;i+=2)for(var o=t[i],a=t[i+1],s=0;s<a.length;s++)r.push(new w(o,a[s]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(l){}e(r)}}),2e3):e([])},oe.prototype.load=function(e){var t=this.f.id,n=this.c.o,r=this;t?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[t]=function(t,n){for(var i=0,o=n.fonts.length;i<o;++i){var a=n.fonts[i];r.a.push(new w(a.name,O("font-weight:"+a.weight+";font-style:"+a.style)))}e(r.a)},v(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+t+".js",(function(t){t&&e([])}))):e([])};var ae=new G(window);ae.a.c.custom=function(e,t){return new Y(t,e)},ae.a.c.fontdeck=function(e,t){return new oe(t,e)},ae.a.c.monotype=function(e,t){return new X(t,e)},ae.a.c.typekit=function(e,t){return new ie(t,e)},ae.a.c.google=function(e,t){return new ne(t,e)};var se={load:a(ae.load,ae)};void 0===(r=function(){return se}.call(t,n,t,e))||(e.exports=r)}()},function(e,t,n){"use strict";function r(e){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){return(i="function"===typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";var r=n(4),i=n(7),o=n(0),a=(n(115),n(12),n(6)),s=n(9),l=n(391),c=n(392),u=n(25),h=n(50),f=n(41),d={vertical:"top",horizontal:"right"},p={vertical:"top",horizontal:"left"},g=o.forwardRef((function(e,t){var n=e.autoFocus,s=void 0===n||n,g=e.children,v=e.classes,m=e.disableAutoFocusItem,y=void 0!==m&&m,b=e.MenuListProps,x=void 0===b?{}:b,_=e.onClose,w=e.onEntering,S=e.open,C=e.PaperProps,k=void 0===C?{}:C,O=e.PopoverClasses,E=e.transitionDuration,T=void 0===E?"auto":E,A=e.TransitionProps,P=(A=void 0===A?{}:A).onEntering,j=Object(i.a)(A,["onEntering"]),L=e.variant,M=void 0===L?"selectedMenu":L,R=Object(i.a)(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"]),D=Object(f.a)(),I=s&&!y&&S,N=o.useRef(null),F=o.useRef(null),B=-1;o.Children.map(g,(function(e,t){o.isValidElement(e)&&(e.props.disabled||("menu"!==M&&e.props.selected||-1===B)&&(B=t))}));var U=o.Children.map(g,(function(e,t){return t===B?o.cloneElement(e,{ref:function(t){F.current=u.findDOMNode(t),Object(h.a)(e.ref,t)}}):e}));return o.createElement(l.a,Object(r.a)({getContentAnchorEl:function(){return F.current},classes:O,onClose:_,TransitionProps:Object(r.a)({onEntering:function(e,t){N.current&&N.current.adjustStyleForScrollbar(e,D),w&&w(e,t),P&&P(e,t)}},j),anchorOrigin:"rtl"===D.direction?d:p,transformOrigin:"rtl"===D.direction?d:p,PaperProps:Object(r.a)({},k,{classes:Object(r.a)({},k.classes,{root:v.paper})}),open:S,ref:t,transitionDuration:T},R),o.createElement(c.a,Object(r.a)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),_&&_(e,"tabKeyDown"))},actions:N,autoFocus:s&&(-1===B||y),autoFocusItem:I,variant:M},x,{className:Object(a.a)(v.list,x.className)}),U))}));t.a=Object(s.a)({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(g)},function(e,t,n){"use strict";(function(e){var n="undefined"!==typeof window&&"undefined"!==typeof document&&"undefined"!==typeof navigator,r=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(n&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var i=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),r))}};function o(e){return e&&"[object Function]"==={}.toString.call(e)}function a(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}
vendor: 9,470 bytes, line 2
2function s(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function l(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=a(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:l(s(e))}function c(e){return e&&e.referenceNode?e.referenceNode:e}var u=n&&!(!window.MSInputMethodContext||!document.documentMode),h=n&&/MSIE 10/.test(navigator.userAgent);function f(e){return 11===e?u:10===e?h:u||h}function d(e){if(!e)return document.documentElement;for(var t=f(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===a(n,"position")?d(n):n:e?e.ownerDocument.documentElement:document.documentElement}function p(e){return null!==e.parentNode?p(e.parentNode):e}function g(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a=o.commonAncestorContainer;if(e!==a&&t!==a||r.contains(i))return function(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||d(e.firstElementChild)===e)}(a)?a:d(a);var s=p(e);return s.host?g(s.host,t):g(e,p(t).host)}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var i=e.ownerDocument.documentElement,o=e.ownerDocument.scrollingElement||i;return o[n]}return e[n]}function m(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=v(t,"top"),i=v(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}function y(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function b(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],f(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function x(e){var t=e.body,n=e.documentElement,r=f(10)&&getComputedStyle(n);return{height:b("Height",t,n,r),width:b("Width",t,n,r)}}var _=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},w=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),S=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function k(e){return C({},e,{right:e.left+e.width,bottom:e.top+e.height})}function O(e){var t={};try{if(f(10)){t=e.getBoundingClientRect();var n=v(e,"top"),r=v(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(d){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o="HTML"===e.nodeName?x(e.ownerDocument):{},s=o.width||e.clientWidth||i.width,l=o.height||e.clientHeight||i.height,c=e.offsetWidth-s,u=e.offsetHeight-l;if(c||u){var h=a(e);c-=y(h,"x"),u-=y(h,"y"),i.width-=c,i.height-=u}return k(i)}function E(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=f(10),i="HTML"===t.nodeName,o=O(e),s=O(t),c=l(e),u=a(t),h=parseFloat(u.borderTopWidth),d=parseFloat(u.borderLeftWidth);n&&i&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var p=k({top:o.top-s.top-h,left:o.left-s.left-d,width:o.width,height:o.height});if(p.marginTop=0,p.marginLeft=0,!r&&i){var g=parseFloat(u.marginTop),v=parseFloat(u.marginLeft);p.top-=h-g,p.bottom-=h-g,p.left-=d-v,p.right-=d-v,p.marginTop=g,p.marginLeft=v}return(r&&!n?t.contains(c):t===c&&"BODY"!==c.nodeName)&&(p=m(p,t)),p}function T(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=E(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:v(n),s=t?0:v(n,"left"),l={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o};return k(l)}function A(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===a(e,"position"))return!0;var n=s(e);return!!n&&A(n)}function P(e){if(!e||!e.parentElement||f())return document.documentElement;for(var t=e.parentElement;t&&"none"===a(t,"transform");)t=t.parentElement;return t||document.documentElement}function j(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=i?P(e):g(e,c(t));if("viewport"===r)o=T(a,i);else{var u=void 0;"scrollParent"===r?"BODY"===(u=l(s(t))).nodeName&&(u=e.ownerDocument.documentElement):u="window"===r?e.ownerDocument.documentElement:r;var h=E(u,a,i);if("HTML"!==u.nodeName||A(a))o=h;else{var f=x(e.ownerDocument),d=f.height,p=f.width;o.top+=h.top-h.marginTop,o.bottom=d+h.top,o.left+=h.left-h.marginLeft,o.right=p+h.left}}var v="number"===typeof(n=n||0);return o.left+=v?n:n.left||0,o.top+=v?n:n.top||0,o.right-=v?n:n.right||0,o.bottom-=v?n:n.bottom||0,o}function L(e){return e.width*e.height}function M(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=j(n,r,o,i),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map((function(e){return C({key:e},s[e],{area:L(s[e])})})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,h=e.split("-")[1];return u+(h?"-"+h:"")}function R(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=r?P(t):g(t,c(n));return E(n,i,r)}function D(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function I(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function N(e,t,n){n=n.split("-")[0];var r=D(e),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",l=o?"height":"width",c=o?"width":"height";return i[a]=t[a]+t[l]/2-r[l]/2,i[s]=n===s?t[s]-r[c]:t[I(s)],i}function F(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function B(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=F(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&o(n)&&(t.offsets.popper=k(t.offsets.popper),t.offsets.reference=k(t.offsets.reference),t=n(t,e))})),t}function U(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=R(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=M(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=N(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=B(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function z(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function V(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],o=i?""+i+n:e;if("undefined"!==typeof document.body.style[o])return o}return null}function H(){return this.state.isDestroyed=!0,z(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[V("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function W(e){var t=e.ownerDocument;return t?t.defaultView:window}function G(e,t,n,r){var i="BODY"===e.nodeName,o=i?e.ownerDocument.defaultView:e;o.addEventListener(t,n,{passive:!0}),i||G(l(o.parentNode),t,n,r),r.push(o)}function q(e,t,n,r){n.updateBound=r,W(e).addEventListener("resize",n.updateBound,{passive:!0});var i=l(e);return G(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function X(){this.state.eventsEnabled||(this.state=q(this.reference,this.options,this.state,this.scheduleUpdate))}function Y(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,W(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEac
vendor: 10,174 bytes, line 2
2h((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function $(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function K(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&$(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var Z=n&&/Firefox/i.test(navigator.userAgent);function Q(e,t,n){var r=F(e,(function(e){return e.name===t})),i=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!i){var o="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}var J=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],ee=J.slice(3);function te(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=ee.indexOf(e),r=ee.slice(n+1).concat(ee.slice(0,n));return t?r.reverse():r}var ne="flip",re="clockwise",ie="counterclockwise";function oe(e,t,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(F(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return(c=c.map((function(e,r){var i=(1===r?!o:o)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}return k(s)[t]/100*o}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;return o}(e,i,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,r){$(n)&&(i[t]+=n*("-"===e[r-1]?-1:1))}))})),i}var ae={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:S({},l,o[l]),end:S({},l,o[l]+o[c]-a[c])};e.offsets.popper=C({},a,u[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,a=i.reference,s=r.split("-")[0],l=void 0;return l=$(+n)?[+n,0]:oe(n,o,a,s),"left"===s?(o.top+=l[0],o.left-=l[1]):"right"===s?(o.top+=l[0],o.left+=l[1]):"top"===s?(o.left+=l[0],o.top-=l[1]):"bottom"===s&&(o.left+=l[0],o.top+=l[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||d(e.instance.popper);e.instance.reference===n&&(n=d(n));var r=V("transform"),i=e.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var l=j(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=a,i[r]=s,t.boundaries=l;var c=t.priority,u=e.offsets.popper,h={primary:function(e){var n=u[e];return u[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(u[e],l[e])),S({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=u[n];return u[e]>l[e]&&!t.escapeWithReference&&(r=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),S({},n,r)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=C({},u,h[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]<o(r[l])&&(e.offsets.popper[l]=o(r[l])-n[c]),n[l]>o(r[s])&&(e.offsets.popper[l]=o(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Q(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"===typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,s=o.popper,l=o.reference,c=-1!==["left","right"].indexOf(i),u=c?"height":"width",h=c?"Top":"Left",f=h.toLowerCase(),d=c?"left":"top",p=c?"bottom":"right",g=D(r)[u];l[p]-g<s[f]&&(e.offsets.popper[f]-=s[f]-(l[p]-g)),l[f]+g>s[p]&&(e.offsets.popper[f]+=l[f]+g-s[p]),e.offsets.popper=k(e.offsets.popper);var v=l[f]+l[u]/2-g/2,m=a(e.instance.popper),y=parseFloat(m["margin"+h]),b=parseFloat(m["border"+h+"Width"]),x=v-e.offsets.popper[f]-y-b;return x=Math.max(Math.min(s[u]-g,x),0),e.arrowElement=r,e.offsets.arrow=(S(n={},f,Math.round(x)),S(n,d,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(z(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=j(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=I(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case ne:a=[r,i];break;case re:a=te(r);break;case ie:a=te(r,!0);break;default:a=t.behavior}return a.forEach((function(s,l){if(r!==s||a.length===l+1)return e;r=e.placement.split("-")[0],i=I(r);var c=e.offsets.popper,u=e.offsets.reference,h=Math.floor,f="left"===r&&h(c.right)>h(u.left)||"right"===r&&h(c.left)<h(u.right)||"top"===r&&h(c.bottom)>h(u.top)||"bottom"===r&&h(c.top)<h(u.bottom),d=h(c.left)<h(n.left),p=h(c.right)>h(n.right),g=h(c.top)<h(n.top),v=h(c.bottom)>h(n.bottom),m="left"===r&&d||"right"===r&&p||"top"===r&&g||"bottom"===r&&v,y=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(y&&"start"===o&&d||y&&"end"===o&&p||!y&&"start"===o&&g||!y&&"end"===o&&v),x=!!t.flipVariationsByContent&&(y&&"start"===o&&p||y&&"end"===o&&d||!y&&"start"===o&&v||!y&&"end"===o&&g),_=b||x;(f||m||_)&&(e.flipped=!0,(f||m)&&(r=a[l+1]),_&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=C({},e.offsets.popper,N(e.instance.popper,e.offsets.reference,e.placement)),e=B(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),e.placement=I(t),e.offsets.popper=k(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Q(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=F(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=F(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==o?o:t.gpuAcceleration,s=d(e.instance.popper),l=O(s),c={position:i.position},u=function(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=Math.round,a=Math.floor,s=function(e){return e},l=o(i.width),c=o(r.width),u=-1!==["left","right"].indexOf(e.placement),h=-1!==e.placement.indexOf("-"),f=t?u||h||l%2===c%2?o:a:s,d=t?o:s;return{left:f(l%2===1&&c%2===1&&!h&&t?r.left-1:r.left),top:d(r.top),bottom:d(r.bottom),right:f(r.right)}}(e,window.devicePixelRatio<2||!Z),h="bottom"===n?"top":"bottom",f="right"===r?"left":"right",p=V("transform"),g=void 0,v=void 0;if(v="bottom"===h?"HTML"===s.nodeName?-s.clientHeight+u.bottom:-l.height+u.bottom:u.top,g="right"===f?"HTML"===s.nodeName?-s.clientWidth+u.right:-l.width+u.right:u.left,a&&p)c[p]="translate3d("+g+"px, "+v+"px, 0)",c[h]=0,c[f]=0,c.willChange="transform";else{var m="bottom"===h?-1:1,y="right"===f?-1:1;c[h]=v*m,c[f]=g*y,c.willChange=h+", "+f}var b={"x-placement":e.placement};return e.attributes=C({},b,e.attributes),e.styles=C({},c,e.styles),e.arrowStyles=C({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return K(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&K(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,i){var o=R(i,t,e,n.positionFixed),a=M(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),K(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},se=function(){function e(t,n){var r=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};_(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=i(this.update.bind(this)),this.options=C({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(C({},e.Defaults.modifiers,a.modifiers)).forEach((function(t){r.options.modifiers[t]=C({},e.Defaults.modifiers[t]||{},a.modifiers?a.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return C({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order}
2)),this.modifiers.forEach((function(e){e.enabled&&o(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return w(e,[{key:"update",value:function(){return U.call(this)}},{key:"destroy",value:function(){return H.call(this)}},{key:"enableEventListeners",value:function(){return X.call(this)}},{key:"disableEventListeners",value:function(){return Y.call(this)}}]),e}();se.Utils=("undefined"!==typeof window?window:e).PopperUtils,se.placements=J,se.Defaults=ae,t.a=se}).call(this,n(104))},function(e,t,n){"use strict";n.d(t,"a",(function(){return T}));var r=n(39),i=n(40),o=[],a=o.slice,s=o.forEach;function l(e){return s.call(a.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e}var c=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,u=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{path:"/"},r=n,i=encodeURIComponent(t),o="".concat(e,"=").concat(i);if(r.maxAge>0){var a=r.maxAge-0;if(Number.isNaN(a))throw new Error("maxAge should be a Number");o+="; Max-Age=".concat(Math.floor(a))}if(r.domain){if(!c.test(r.domain))throw new TypeError("option domain is invalid");o+="; Domain=".concat(r.domain)}if(r.path){if(!c.test(r.path))throw new TypeError("option path is invalid");o+="; Path=".concat(r.path)}if(r.expires){if("function"!==typeof r.expires.toUTCString)throw new TypeError("option expires is invali
2d");o+="; Expires=".concat(r.expires.toUTCString())}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.sameSite){var s="string"===typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite;switch(s){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return o},h=function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};n&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+60*n*1e3)),r&&(i.domain=r),document.cookie=u(e,encodeURIComponent(t),i)},f=function(e){for(var t="".concat(e,"="),n=document.cookie.split(";"),r=0;r<n.length;r++){for(var i=n[r];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return i.substring(t.length,i.length)}return null},d={name:"cookie",lookup:function(e){var t=e.lookupCookie;if(t&&"undefined"!==typeof document)return f(t)||void 0},cacheUserLanguage:function(e,t){var n=t.lookupCookie,r=t.cookieMinutes,i=t.cookieDomain,o=t.cookieOptions;n&&"undefined"!==typeof document&&h(n,e,r,i,o)}},p={name:"querystring",lookup:function(e){var t,n=e.lookupQuerystring;if("undefined"!==typeof window){var r,i=window.location.search;!window.location.search&&(null===(r=window.location.hash)||void 0===r?void 0:r.indexOf("?"))>-1&&(i=window.location.hash.substring(window.location.hash.indexOf("?")));for(var o=i.substring(1).split("&"),a=0;a<o.length;a++){var s=o[a].indexOf("=");if(s>0)o[a].substring(0,s)===n&&(t=o[a].substring(s+1))}}return t}},g=null,v=function(){if(null!==g)return g;try{g="undefined"!==window&&null!==window.localStorage;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(t){g=!1}return g},m={name:"localStorage",lookup:function(e){var t=e.lookupLocalStorage;if(t&&v())return window.localStorage.getItem(t)||void 0},cacheUserLanguage:function(e,t){var n=t.lookupLocalStorage;n&&v()&&window.localStorage.setItem(n,e)}},y=null,b=function(){if(null!==y)return y;try{y="undefined"!==window&&null!==window.sessionStorage;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(t){y=!1}return y},x={name:"sessionStorage",lookup:function(e){var t=e.lookupSessionStorage;if(t&&b())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage:function(e,t){var n=t.lookupSessionStorage;n&&b()&&window.sessionStorage.setItem(n,e)}},_={name:"navigator",lookup:function(e){var t=[];if("undefined"!==typeof navigator){var n=navigator,r=n.languages,i=n.userLanguage,o=n.language;if(r)for(var a=0;a<r.length;a++)t.push(r[a]);i&&t.push(i),o&&t.push(o)}return t.length>0?t:void 0}},w={name:"htmlTag",lookup:function(e){var t,n=e.htmlTag||("undefined"!==typeof document?document.documentElement:null);return n&&"function"===typeof n.getAttribute&&(t=n.getAttribute("lang")),t}},S={name:"path",lookup:function(e){var t,n=e.lookupFromPathIndex;if("undefined"!==typeof window){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(Array.isArray(r))return null===(t=r["number"===typeof n?n:0])||void 0===t?void 0:t.replace("/","")}}},C={name:"subdomain",lookup:function(e){var t,n,r=e.lookupFromSubdomainIndex,i="number"===typeof r?r+1:1,o="undefined"!==typeof window&&(null===(t=window.location)||void 0===t||null===(n=t.hostname)||void 0===n?void 0:n.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(o)return o[i]}},k=!1;try{document.cookie,k=!0}catch(A){}var O=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];k||O.splice(1,1);var E=function(){return{order:O,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(e){return e}}},T=function(){function e(t){Object(r.a)(this,e);var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}return Object(i.a)(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{languageUtils:{}},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=l(t,this.options||{},E()),"string"===typeof this.options.convertDetectedLanguage&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(e){return e.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(d),this.addDetector(p),this.addDetector(m),this.addDetector(x
2),this.addDetector(_),this.addDetector(w),this.addDetector(S),this.addDetector(C)}},{key:"addDetector",value:function(e){return this.detectors[e.name]=e,this}},{key:"detect",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.order,n=[];return t.forEach((function(t){if(e.detectors[t]){var r=e.detectors[t].lookup(e.options);r&&"string"===typeof r&&(r=[r]),r&&(n=n.concat(r))}})),n=n.map((function(t){return e.options.convertDetectedLanguage(t)})),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}},{key:"cacheUserLanguage",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||n.forEach((function(n){t.detectors[n]&&t.detectors[n].cacheUserLanguage(e,t.options)})))}}]),e}();T.type="languageDetector"},function(e,t,n){"use strict";var r=n(37),i=n(7),o=n(255),a=n(4),s=["xs","sm","md","lg","xl"];function l(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,o=void 0===r?"px":r,l=e.step,c=void 0===l?5:l,u=Object(i.a)(e,["values","unit","step"]);function h(e){var t="number"===typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(o,")")}function f(e,t){var r=s.indexOf(t);return r===s.length-1?h(e):"@media (min-width:".concat("number"===typeof n[e]?n[e]:e).concat(o,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof n[s[r+1]]?n[s[r+1]]:t)-c/100).concat(o,")")}return Object(a.a)({keys:s,values:n,up:h,down:function(e){var t=s.indexOf(e)+1,r=n[s[t]];return t===s.length?h("xs"):"@media (max-width:".concat(("number"===typeof r&&t>0?r:e)-c/100).concat(o,")")},between:f,only:function(e){return f(e,e)},width:function(e){return n[e]}},u)}function c(e,t,n){var i;return Object(a.a)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),Object(a.a)({paddingLeft:t(2),paddingRight:t(2)},n,Object(r.a)({},e.up("sm"),Object(a.a)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(i={minHeight:56},Object(r.a)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),Object(r.a)(i,e.up("sm"),{minHeight:64}),i)},n)}var u=n(248),h={black:"#000",white:"#fff"},f={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},d={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},p={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},g={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},v={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},m={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},y={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},b=n(15),x={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:h.white,default:f[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackgroun
2d:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},_={text:{primary:h.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:f[800],default:"#303030"},action:{active:h.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function w(e,t,n,r){var i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Object(b.e)(e.main,i):"dark"===t&&(e.dark=Object(b.b)(e.main,o)))}function S(e){var t=e.primary,n=void 0===t?{light:d[300],main:d[500],dark:d[700]}:t,r=e.secondary,s=void 0===r?{light:p.A200,main:p.A400,dark:p.A700}:r,l=e.error,c=void 0===l?{light:g[300],main:g[500],dark:g[700]}:l,S=e.warning,C=void 0===S?{light:v[300],main:v[500],dark:v[700]}:S,k=e.info,O=void 0===k?{light:m[300],main:m[500],dark:m[700]}:k,E=e.success,T=void 0===E?{light:y[300],main:y[500],dark:y[700]}:E,A=e.type,P=void 0===A?"light":A,j=e.contrastThreshold,L=void 0===j?3:j,M=e.tonalOffset,R=void 0===M?.2:M,D=Object(i.a)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function I(e){return Object(b.d)(e,_.text.primary)>=L?_.text.primary:x.text.primary}var N=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=Object(a.a)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(Object(u.a)(4,t));if("string"!==typeof e.main)throw new Error(Object(u.a)(5,JSON.stringify(e.main)));return w(e,"light",n,R),w(e,"dark",r,R),e.contrastText||(e.contrastText=I(e.main)),e},F={dark:_,light:x};return Object(o.a)(Object(a.a)({common:h,type:P,primary:N(n),secondary:N(s,"A400","A200","A700"),error:N(c),warning:N(C),info:N(O),success:N(T),grey:f,contrastThreshold:L,getContrastText:I,augmentColor:N,tonalOffset:R},F[P]),D)}function C(e){return Math.round(1e5*e)/1e5}function k(e){return C(e)}var O={textTransform:"uppercase"},E='"Roboto", "Helvetica", "Arial", sans-serif';function T(e,t){var n="function"===typeof t?t(e):t,r=n.fontFamily,s=void 0===r?E:r,l=n.fontSize,c=void 0===l?14:l,u=n.fontWeightLight,h=void 0===u?300:u,f=n.fontWeightRegular,d=void 0===f?400:f,p=n.fontWeightMedium,g=void 0===p?500:p,v=n.fontWeightBold,m=void 0===v?700:v,y=n.htmlFontSize,b=void 0===y?16:y,x=n.allVariants,_=n.pxToRem,w=Object(i.a)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var S=c/14,T=_||function(e){return"".concat(e/b*S,"rem")},A=function(e,t,n,r,i){return Object(a.a)({fontFamily:s,fontWeight:e,fontSize:T(t),lineHeight:n},s===E?{letterSpacing:"".concat(C(r/t),"em")}:{},i,x)},P={h1:A(h,96,1.167,-1.5),h2:A(h,60,1.2,-.5),h3:A(d,48,1.167,0),h4:A(d,34,1.235,.25),h5:A(d,24,1.334,0),h6:A(g,20,1.6,.15),subtitle1:A(d,16,1.75,.15),subtitle2:A(g,14,1.57,.1),body1:A(d,16,1.5,.15),body2:A(d,14,1.43,.15),button:A(g,14,1.75,.4,O),caption:A(d,12,1.66,.4),overline:A(d,12,2.66,1,O)};return Object(o.a)(Object(a.a)({htmlFontSize:b,pxToRem:T,round:k,fontFamily:s,fontSize:c,fontWeightLight:h,fontWeightRegular:d,fontWeightMedium:g,fontWeightBold:m},P),w,{clone:!1})}function A(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var P=["none",A(0,2,1,-1,0,1,1,0,0,1,3,0),A(0,3,1,-2,0,2,2,0,0,1,5,0),A(0,3,3,-2,0,3,4,0,0,1,8,0),A(0,2,4,-1,0,4,5,0,0,1,10,0),A(0,3,5,-1,0,5,8,0,0,1,14,0),A(0,3,5,-1,0,6,10,0,0,1,18,0),A(0,4,5,-2,0,7,10,1,0,2,16,1),A(0,5,5,-3,0,8,10,1,0,3,14,2),A(0,5,6,-3,0,9,12,1,0,3,16,2),A(0,6,6,-3,0,10,14,1,0,4,18,3),A(0,6,7,-4,0,11,15,1,0,4,20,3),A(0,7,8,-4,0,12,17,2,0,5,22,4),A(0,7,8,-4,0,13,19,2,0,5,24,4),A(0,7,9,-4,0,14,21,2,0,5,26,4),A(0,8,9,-5,0,15,22,2,0,6,28,5),A(0,8,10,-5,0,16,24,2,0,6,30,5),A(0,8,11,-5,0,17,26,2,0,6,32,5),A(0,9,11,-5,0,18,28,2,0,7,34,6),A(0,9,12,-6,0,19,29,2,0,7,36,6
2),A(0,10,13,-6,0,20,31,3,0,8,38,7),A(0,10,13,-6,0,21,33,3,0,8,40,7),A(0,10,14,-6,0,22,35,3,0,8,42,7),A(0,11,14,-7,0,23,36,3,0,9,44,8),A(0,11,15,-7,0,24,38,3,0,9,46,8)],j={borderRadius:4},L=n(447);function M(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=Object(L.a)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"===typeof e)return e;var n=t(e);return"number"===typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}var R=n(58),D=n(147);function I(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,a=void 0===r?{}:r,s=e.palette,u=void 0===s?{}:s,h=e.spacing,f=e.typography,d=void 0===f?{}:f,p=Object(i.a)(e,["breakpoints","mixins","palette","spacing","typography"]),g=S(u),v=l(n),m=M(h),y=Object(o.a)({breakpoints:v,direction:"ltr",mixins:c(v,m,a),overrides:{},palette:g,props:{},shadows:P,typography:T(g,d),spacing:m,shape:j,transitions:R.a,zIndex:D.a},p),b=arguments.length,x=new Array(b>1?b-1:0),_=1;_<b;_++)x[_-1]=arguments[_];return y=x.reduce((function(e,t){return Object(o.a)(e,t)}),y)}t.a=I},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(109);function i(e,t,n){return(i="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Object(r.a)(e)););return e}(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}},function(e,t,n){"use strict";function r(e){for(var t="https://material-ui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(4),i=n(49),o=n(7),a=n(0),s=n(6),l=(n(12),n(158)),c=n(9),u=n(58),h=n(47),f=n(41),d=n(16),p=a.forwardRef((function(e,t){var n=e.children,c=e.classes,p=e.className,g=e.collapsedHeight,v=e.collapsedSize,m=void 0===v?"0px":v,y=e.component,b=void 0===y?"div":y,x=e.disableStrictModeCompat,_=void 0!==x&&x,w=e.in,S=e.onEnter,C=e.onEntered,k=e.onEntering,O=e.onExit,E=e.onExited,T=e.onExiting,A=e.style,P=e.timeout,j=void 0===P?u.b.standard:P,L=e.TransitionComponent,M=void 0===L?l.a:L,R=Object(o.a)(e,["children","classes","className","collapsedHeight","collapsedSize","component","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),D=Object(f.a)(),I=a.useRef(),N=a.useRef(null),F=a.useRef(),B="number"===typeof(g||m)?"".concat(g||m,"px"):g||m;a.useEffect((function(){return function(){clearTimeout(I.current)}}),[]);var U=D.unstable_strictMode&&!_,z=a.useRef(null),V=Object(d.a)(t,U?z:void 0),H=function(e){return function(t,n){if(e){var r=U?[z.current,t]:[t,n],o=Object(i.a)(r,2),a=o[0],s=o[1];void 0===s?e(a):e(a,s)}}},W=H((function(e,t){e.style.height=B,S&&S(e,t)})),G=H((function(e,t){var n=N.current?N.current.clientHeight:0,r=Object(h.a)({style:A,timeout:j},{mode:"enter"}).duration;if("auto"===j){var i=D.transitions.getAutoHeightDuration(n);e.style.transitionDuration="".concat(i,"ms"),F.current=i}else e.style.transitionDuration="string"===typeof r?r:"".concat(r,"ms");e.style.height="".concat(n,"px"),k&&k(e,t)})),q=H((function(e,t){e.style.height="auto",C&&C(e,t)})),X=H((function(e){var t=N.current?N.current.clientHeight:0;e.style.height="".concat(t,"px"),O&&O(e)})),Y=H(E),$=H((function(e){var t=N.current?N.current.clientHeight:0,n=Object(h.a)({style:A,timeout:j},{mode:"exit"}).duration;if("auto"===j){var r=D.transitions.getAutoHeightDuration(t);e.style.transitionDuration="".concat(r,"ms"),F.current=r}else e.style.transitionDuration="string"===typeof n?n:"".concat(n,"ms");e.style.height=B,T&&T(e)}));return a.createElement(M,Object(r.a)({in:w,onEnter:W,onEntered:q,onEntering:G,onExit:X,onExited:Y,onExiting:$,addEndListener:function(e,t){var n=U?e:t;"auto"===j&&(I.current=setTimeout(n,F.current||0))},nodeRef:U?z:void 0,timeout:"auto"===j?null:j},R),(function(e,t){return a.createElement(b,Object(r.a)({className:Object(s.a)(c.root,c.container,p,{entered:c.entered,exited:!w&&"0px"===B&&c.hidden}[e]),style:Object(r.a)({minHeight:B},A),ref:V},t),a.createElement("div",{className:c.wrapper,ref:N},a.createElement("div",{className:c.wrapperInner},n)))}))}));p.muiSupportAuto=!0,t.a=Object(c.a)((function(e){return{root:{height:0,overflow:"hidden",transition:e.transitions.create("height")},entered:{height:"auto",overflow:"visible"},hidden:{visibility:"hidden"},wrapper:{display:"flex"},wrapperInner:{width:"100%"}}}),{name:"MuiCollapse"})(p)},function(e,t,n){"use strict";var r=n(4),i=n(7),o=n(0),a=(n(12),n(6)),s=n(9),l=n(15),c=n(182),u=n(14),h=o.forwardRef((function(e,t){var n=e.edge,s=void 0!==n&&n,l=e.children,h=e.classes,f=e.className,d=e.color,p=void 0===d?"default":d,g=e.disabled,v=void 0!==g&&g,m=e.disableFocusRipple,y=void 0!==m&&m,b=e.size,x=void 0===b?"medium":b,_=Object(i.a)(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return o.createElement(c.a,Object(r.a)({className:Object(a.a)(h.root,f,"default"!==p&&h["color".concat(Object(u.a)(p))],v&&h.disabled,"small"===x&&h["size".concat(Object(u.a)(x))],{start:h.edgeStart,end:h.edgeEnd}[s]),centerRipple:!0,focusRipple:!y,disabled:v,ref:t},_),o.createElement("span",{className:h.label},l))}));t.a=Object(s.a)((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:Object(l.a)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(l.a)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(l.a)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(h)},function(e,t,n){"use strict";var r=n(4),i=n(49),o=n(7),a=n(0),s=(n(12),n(158)),l=n(58),c=n(41),u=n(47),h=n(16),f={entering:{opacity:1},entered:{opacity:1}},d={enter:l.b.enteringScreen,exit:l.b.leavingScreen},p=a.forwardRef((function(e,t){var n=e.children,l=e.disableStrictModeCompat,p=void 0!==l&&l,g=e.in,v=e.onEnter,m=e.onEntered,y=e.onEntering,b=e.onExit,x=e.onExited,_=e.onExiting,w=e.style,S=e.TransitionComponent,C=void 0===S?s.a:S,k=e.timeout,O=void 0===k?d:k,E=Object(o.a)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),T=Object(c.a)(),A=T.unstable_strictMode&&!p,P=a.useRef(null),j=Object(h.a)(n.ref,t),L=Object(h.a)(A?P:void 0,j),M=function(e){return function(t,n){if(e){var r=A?[P.current,t]:[t,n],o=Object(i.a)(r,2),a=o[0],s=o[1];void 0===s?e(a):e(a,s)}}},R=M(y),D=M((function(e,t){Object(u.b)(e);var n=Object(u.a)({style:w,timeout:O},{mode:"enter"});e.style.webkitTransition=T.transitions.create("opacity",n),e.style.transition=T.transitions.create("opacity",n),v&&v(e,t)})),I=M(m),N=M(_),F=M((function(e){var t=Object(u.a)({style:w,timeout:O},{mode:"exit"});e.style.webkitTransition=T.transitions.create("opacity",t),e.style.transition=T.transitions.create("opacity",t),b&&b(e)})),B=M(x);return a.createElement(C,Object(r.a)({appear:!0,in:g,nodeRef:A?P:void 0,onEnter:D,onEntered:I,onEntering:R,onExit:F,onExited:B,onExiting:N,timeout:O},E),(function(e,t){return a.cloneElement(n,Object(r.a)({style:Object(r.a)({opacity:0,visibility:"exited"!==e||g?void 0:"hidden"},f[e],w,n.props.style),ref:L},t))}))}));t.a=p},function(e,t,n){"use strict";var r=n(4),i=n(7),o=n(0),a=(n(12),n(6)),s=n(9),l=o.forwardRef((function(e,t){var n=e.classes,s=e.className,l=e.dividers,c=void 0!==l&&l,u=Object(i.a)(e,["classes","className","dividers"]);return o.createElement("div",Object(r.a)({className:Object(a.a)(n.root,s,c&&n.dividers),ref:t},u))}));t.a=Object(s.a)((function(e){return{root:{flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"8px 24px","&:first-child":{paddingTop:20}},dividers:{padding:"16px 24px",borderTop:"1px solid ".concat(e.palette.divider),borderBottom:"1px solid ".concat(e.palette.divider)}}}),{name:"MuiDialogContent"})(l)},function(e,t,n){"use strict";var r=n(4),i=n(49),o=n(7),a=n(0),s=(n(12),n(158)),l=n(41),c=n(47),u=n(16);function h(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var f={entering:{opacity:1,transform:h(1)},entered:{opacity:1,transform:"none"}},d=a.forwardRef((function(e,t){var n=e.children,d=e.disableStrictModeCompat,p=void 0!==d&&d,g=e.in,v=e.onEnter,m=e.onEntered,y=e.onEntering,b=e.onExit,x=e.onExited,_=e.onExiting,w=e.style,S=e.timeout,C=void 0===S?"auto":S,k=e.TransitionComponent,O=void 0===k?s.a:k,E=Object(o.a)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),T=a.useRef(),A=a.useRef(),P=Object(l.a)(),j=P.unstable_strictMode&&!p,L=a.useRef(null),M=Object(u.a)(n.ref,t),R=Object(u.a)(j?L:void 0,M),D=function(e){return function(t,n){if(e){var r=j?[L.current,t]:[t,n],o=Object(i.a)(r,2),a=o[0],s=o[1];void 0===s?e(a):e(a,s)}}},I=D(y),N=D((function(e,t){Object(c.b)(e);var n,r=Object(c.a)({style:w,timeout:C},{mode:"enter"}),i=r.duration,o=r.delay;"auto"===C?(n=P.transitions.getAutoHeightDuration(e.clientHeight),A.current=n):n=i,e.style.transition=[P.transitions.create("opacity",{duration:n,delay:o}),P.transitions.create("transform",{duration:.666*n,delay:o})].join(","),v&&v(e,t)})),F=D(m),B=D(_),U=D((function(e){var t,n=Object(c.a)({style:w,timeout:C},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===C?(t=P.transitions.getAutoHeightDuration(e.clientHeight),A.current=t):t=r,e.style.transition=[P.transitions.create("opacity",{duration:t,delay:i}),P.transitions.create("transform",{duration:.666*t,delay:i||.333*t}
2)].join(","),e.style.opacity="0",e.style.transform=h(.75),b&&b(e)})),z=D(x);return a.useEffect((function(){return function(){clearTimeout(T.current)}}),[]),a.createElement(O,Object(r.a)({appear:!0,in:g,nodeRef:j?L:void 0,onEnter:N,onEntered:F,onEntering:I,onExit:U,onExited:z,onExiting:B,addEndListener:function(e,t){var n=j?e:t;"auto"===C&&(T.current=setTimeout(n,A.current||0))},timeout:"auto"===C?null:C},E),(function(e,t){return a.cloneElement(n,Object(r.a)({style:Object(r.a)({opacity:0,transform:h(.75),visibility:"exited"!==e||g?void 0:"hidden"},f[e],w,n.props.style),ref:R},t))}))}));d.muiSupportAuto=!0,t.a=d},function(e,t,n){"use strict";var r=n(7),i=n(4),o=n(0),a=n(25),s=(n(12),n(177)),l=n(434),c=n(28),u=n(370),h=n(78),f=n(16),d=n(33),p=n(147);function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var v=n(118),m=n(149),y=n(117);function b(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function x(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function _(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,o=[t,n].concat(Object(v.a)(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===o.indexOf(e)&&-1===a.indexOf(e.tagName)&&b(e,i)}))}function w(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function S(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=Object(c.a)(e);return t.body===e?Object(y.a)(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){var a=Object(m.a)();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(x(o)+a,"px"),n=Object(c.a)(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(x(e)+a,"px")}))}var s=o.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:o;r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){i[t]?e.style.paddingRight=i[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var C=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.containers=[]}var t,n,r;return t=e,(n=[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&b(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);_(t,e.mountNode,e.modalRef,r,!0);var i=w(this.containers,(function(e){return e.container===t}));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=w(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=S(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=w(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&b(e.modalRef,!0),_(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var i=r.modals[r.modals.length-1];i.modalRef&&b(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}])&&g(t.prototype,n),r&&g(t,r),e}();var k=function(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,i=e.disableEnforceFocus,s=void 0!==i&&i,l=e.disableRestoreFocus,u=void 0!==l&&l,h=e.getDoc,d=e.isEnabled,p=e.open,g=o.useRef(),v=o.useRef(null),m=o.useRef(null),y=o.useRef(),b=o.useRef(null),x=o.useCallback((function(e){b.current=a.findDOMNode(e)}),[]),_=Object(f.a)(t.ref,x),w=o.useRef();return o.useEffect((function(){w.current=p}),[p]),!w.current&&p&&"undefined"!==typeof window&&(y.current=h().activeElement),o.useEffect((function(){if(p){var e=Object(c.a)(b.current);r||!b.current||b.current.contains(e.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex",-1),b.current.focus());
2var t=function(){null!==b.current&&(e.hasFocus()&&!s&&d()&&!g.current?b.current&&!b.current.contains(e.activeElement)&&b.current.focus():g.current=!1)},n=function(t){!s&&d()&&9===t.keyCode&&e.activeElement===b.current&&(g.current=!0,t.shiftKey?m.current.focus():v.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var i=setInterval((function(){t()}),50);return function(){clearInterval(i),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),u||(y.current&&y.current.focus&&y.current.focus(),y.current=null)}}}),[r,s,u,d,p]),o.createElement(o.Fragment,null,o.createElement("div",{tabIndex:0,ref:v,"data-test":"sentinelStart"}),o.cloneElement(t,{ref:_}),o.createElement("div",{tabIndex:0,ref:m,"data-test":"sentinelEnd"}))},O={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},E=o.forwardRef((function(e,t){var n=e.invisible,a=void 0!==n&&n,s=e.open,l=Object(r.a)(e,["invisible","open"]);return s?o.createElement("div",Object(i.a)({"aria-hidden":!0,ref:t},l,{style:Object(i.a)({},O.root,a?O.invisible:{},l.style)})):null}));var T=new C,A=o.forwardRef((function(e,t){var n=Object(s.a)(),g=Object(l.a)({name:"MuiModal",props:Object(i.a)({},e),theme:n}),v=g.BackdropComponent,m=void 0===v?E:v,y=g.BackdropProps,x=g.children,_=g.closeAfterTransition,w=void 0!==_&&_,S=g.container,C=g.disableAutoFocus,O=void 0!==C&&C,A=g.disableBackdropClick,P=void 0!==A&&A,j=g.disableEnforceFocus,L=void 0!==j&&j,M=g.disableEscapeKeyDown,R=void 0!==M&&M,D=g.disablePortal,I=void 0!==D&&D,N=g.disableRestoreFocus,F=void 0!==N&&N,B=g.disableScrollLock,U=void 0!==B&&B,z=g.hideBackdrop,V=void 0!==z&&z,H=g.keepMounted,W=void 0!==H&&H,G=g.manager,q=void 0===G?T:G,X=g.onBackdropClick,Y=g.onClose,$=g.onEscapeKeyDown,K=g.onRendered,Z=g.open,Q=Object(r.a)(g,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),J=o.useState(!0),ee=J[0],te=J[1],ne=o.useRef({}),re=o.useRef(null),ie=o.useRef(null),oe=Object(f.a)(ie,t),ae=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(g),se=function(){return Object(c.a)(re.current)},le=function(){return ne.current.modalRef=ie.current,ne.current.mountNode=re.current,ne.current},ce=function(){q.mount(le(),{disableScrollLock:U}),ie.current.scrollTop=0},ue=Object(d.a)((function(){var e=function(e){return e="function"===typeof e?e():e,a.findDOMNode(e)}(S)||se().body;q.add(le(),e),ie.current&&ce()})),he=o.useCallback((function(){return q.isTopModal(le())}),[q]),fe=Object(d.a)((function(e){re.current=e,e&&(K&&K(),Z&&he()?ce():b(ie.current,!0))})),de=o.useCallback((function(){q.remove(le())}),[q]);if(o.useEffect((function(){return function(){de()}}),[de]),o.useEffect((function(){Z?ue():ae&&w||de()}),[Z,de,ae,w,ue]),!W&&!Z&&(!ae||ee))return null;var pe=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:p.a}),ge={};return void 0===x.props.tabIndex&&(ge.tabIndex=x.props.tabIndex||"-1"),ae&&(ge.onEnter=Object(h.a)((function(){te(!1)}),x.props.onEnter),ge.onExited=Object(h.a)((function(){te(!0),w&&de()}),x.props.onExited)),o.createElement(u.a,{ref:fe,container:S,disablePortal:I},o.createElement("div",Object(i.a)({ref:oe,onKeyDown:function(e){"Escape"===e.key&&he()&&($&&$(e),R||(e.stopPropagation(),Y&&Y(e,"escapeKeyDown")))},role:"presentation"},Q,{style:Object(i.a)({},pe.root,!Z&&ee?pe.hidden:{},Q.style)}),V?null:o.createElement(m,Object(i.a)({open:Z,onClick:function(e){e.target===e.currentTarget&&(X&&X(e),!P&&Y&&Y(e,"backdropClick"))}},y)),o.createElement(k,{disableEnforceFocus:L,disableAutoFocus:O,disableRestoreFocus:F,getDoc:se,isEnabled:he,open:Z},o.cloneElement(x,ge))))}));t.a=A},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function i(e){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){return(o="function"===typeof Symbol&&"symbol"===i(Symbol.iterator)?function(e){return i(e)}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":i(e)})(e)}function a(e){return e&&"object"===o(e)&&e.constructor===Object}function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},i=n.clone?r({},e):e;return a(e)&&a(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(a(t[r])&&r in e?i[r]=s(e[r],t[r],n):i[r]=t[r])})),i}n.d(t,"a",(function(){return s}))},function(e,t,n){"use strict";function r(e){return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(7),i=n(4),o=n(248),a=n(0),s=(n(12),n(6)),l=n(62),c=n(81),u=n(9),h=n(14),f=n(16),d=n(95);function p(e,t){return parseInt(e[t],10)||0}var g="undefined"!==typeof window?a.useLayoutEffect:a.useEffect,v={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}
2,m=a.forwardRef((function(e,t){var n=e.onChange,o=e.rows,s=e.rowsMax,l=e.rowsMin,c=e.maxRows,u=e.minRows,h=void 0===u?1:u,m=e.style,y=e.value,b=Object(r.a)(e,["onChange","rows","rowsMax","rowsMin","maxRows","minRows","style","value"]),x=c||s,_=o||l||h,w=a.useRef(null!=y).current,S=a.useRef(null),C=Object(f.a)(t,S),k=a.useRef(null),O=a.useRef(0),E=a.useState({}),T=E[0],A=E[1],P=a.useCallback((function(){var t=S.current,n=window.getComputedStyle(t),r=k.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");var i=n["box-sizing"],o=p(n,"padding-bottom")+p(n,"padding-top"),a=p(n,"border-bottom-width")+p(n,"border-top-width"),s=r.scrollHeight-o;r.value="x";var l=r.scrollHeight-o,c=s;_&&(c=Math.max(Number(_)*l,c)),x&&(c=Math.min(Number(x)*l,c));var u=(c=Math.max(c,l))+("border-box"===i?o+a:0),h=Math.abs(c-s)<=1;A((function(e){return O.current<20&&(u>0&&Math.abs((e.outerHeightStyle||0)-u)>1||e.overflow!==h)?(O.current+=1,{overflow:h,outerHeightStyle:u}):e}))}),[x,_,e.placeholder]);a.useEffect((function(){var e=Object(d.a)((function(){O.current=0,P()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[P]),g((function(){P()})),a.useEffect((function(){O.current=0}),[y]);return a.createElement(a.Fragment,null,a.createElement("textarea",Object(i.a)({value:y,onChange:function(e){O.current=0,w||P(),n&&n(e)},ref:C,rows:_,style:Object(i.a)({height:T.outerHeightStyle,overflow:T.overflow?"hidden":null},m)},b)),a.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:k,tabIndex:-1,style:Object(i.a)({},v,m)}))})),y=n(110),b="undefined"===typeof window?a.useEffect:a.useLayoutEffect,x=a.forwardRef((function(e,t){var n=e["aria-describedby"],u=e.autoComplete,d=e.autoFocus,p=e.classes,g=e.className,v=(e.color,e.defaultValue),x=e.disabled,_=e.endAdornment,w=(e.error,e.fullWidth),S=void 0!==w&&w,C=e.id,k=e.inputComponent,O=void 0===k?"input":k,E=e.inputProps,T=void 0===E?{}:E,A=e.inputRef,P=(e.margin,e.multiline),j=void 0!==P&&P,L=e.name,M=e.onBlur,R=e.onChange,D=e.onClick,I=e.onFocus,N=e.onKeyDown,F=e.onKeyUp,B=e.placeholder,U=e.readOnly,z=e.renderSuffix,V=e.rows,H=e.rowsMax,W=e.rowsMin,G=e.maxRows,q=e.minRows,X=e.startAdornment,Y=e.type,$=void 0===Y?"text":Y,K=e.value,Z=Object(r.a)(e,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","maxRows","minRows","startAdornment","type","value"]),Q=null!=T.value?T.value:K,J=a.useRef(null!=Q).current,ee=a.useRef(),te=a.useCallback((function(e){0}),[]),ne=Object(f.a)(T.ref,te),re=Object(f.a)(A,ne),ie=Object(f.a)(ee,re),oe=a.useState(!1),ae=oe[0],se=oe[1],le=Object(c.b)();var ce=Object(l.a)({props:e,muiFormControl:le,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});ce.focused=le?le.focused:ae,a.useEffect((function(){!le&&x&&ae&&(se(!1),M&&M())}),[le,x,ae,M]);var ue=le&&le.onFilled,he=le&&le.onEmpty,fe=a.useCallback((function(e){Object(y.b)(e)?ue&&ue():he&&he()}),[ue,he]);b((function(){J&&fe({value:Q})}),[Q,fe,J]);a.useEffect((function(){fe(ee.current)}),[]);var de=O,pe=Object(i.a)({},T,{ref:ie});"string"!==typeof de?pe=Object(i.a)({inputRef:ie,type:$},pe,{ref:null}):j?!V||G||q||H||W?(pe=Object(i.a)({minRows:V||q,rowsMax:H,maxRows:G},pe),de=m):de="textarea":pe=Object(i.a)({type:$},pe);return a.useEffect((function(){le&&le.setAdornedStart(Boolean(X))}),[le,X]),a.createElement("div",Object(i.a)({className:Object(s.a)(p.root,p["color".concat(Object(h.a)(ce.color||"primary"))],g,ce.disabled&&p.disabled,ce.error&&p.error,S&&p.fullWidth,ce.focused&&p.focused,le&&p.formControl,j&&p.multiline,X&&p.adornedStart,_&&p.adornedEnd,"dense"===ce.margin&&p.marginDense),onClick:function(e){ee.current&&e.currentTarget===e.target&&ee.current.focus(),D&&D(e)},ref:t},Z),X,a.createElement(c.a.Provider,{value:null},a.createElement(de,Object(i.a)({"aria-invalid":ce.error,"aria-describedby":n,autoComplete:u,autoFocus:d,defaultValue:v,disabled:ce.disabled,id:C,onAnimationStart:function(e){fe("mui-auto-fill-cancel"===e.animationName?ee.current:{value:"x"})},name:L,placeholder:B,readOnly:U,required:ce.required,rows:V,value:Q,onKeyDown:N,onKeyUp:F},pe,{className:Object(s.a)(p.input,T.className,ce.disabled&&p.disabled,j&&p.inputMultiline,ce.hiddenLabel&&p.inputHiddenLabel,X&&p.inputAdornedStart,_&&p.inputAdornedEnd,"search"===$&&p.inputTypeSearch,"dense"===ce.margin&&p.inputMarginDense),onBlur:function(e){M&&M(e),T.onBlur&&T.onBlur(e),le&&le.onBlur?le.onBlur(e):se(!1)},onChange:function(e){if(!J){var t=e.target||ee.current;if(null==t)throw new Error(Object(o.a)(1));fe({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];T.onChange&&T.onChange.apply(T,[e].concat(r)),R&&R.apply(void 0,[e].concat(r))},onFocus:function(e){ce.disabled?e.stopPropagation():(I&&I(e),T.onF
2ocus&&T.onFocus(e),le&&le.onFocus?le.onFocus(e):se(!0))}}))),_,z?z(Object(i.a)({},ce,{startAdornment:X})):null)}));t.a=Object(u.a)((function(e){var t="light"===e.palette.type,n={color:"currentColor",opacity:t?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o={opacity:t?.42:.5};return{"@global":{"@keyframes mui-auto-fill":{},"@keyframes mui-auto-fill-cancel":{}},root:Object(i.a)({},e.typography.body1,{color:e.palette.text.primary,lineHeight:"1.1876em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:e.palette.text.disabled,cursor:"default"}}),formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px"),"&$marginDense":{paddingTop:3}},colorSecondary:{},fullWidth:{width:"100%"},input:{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",height:"1.1876em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},"&$disabled":{opacity:1},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},inputMarginDense:{paddingTop:3},inputMultiline:{height:"auto",resize:"none",padding:0},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{},inputHiddenLabel:{}}}),{name:"MuiInputBase"})(x)},,,function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t){e.exports=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(93)},,function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},,function(e,t,n){var r=n(322),i=n(323),o=n(166),a=n(324);e.exports=function(e){return r(e)||i(e)||o(e)||a()}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){var r=n(166);e.exports=function(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}},function(e,t,n){var r=n(319),i=n(320),o=n(166),a=n(321);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||a()}},,function(e,t,n){"use strict";(function(e){var r=n(359),i=n(360),o=n(361);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!l.TYPED_ARRAY_SUPPORT&&!(this instanceof l))return new l(e,t,n);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return h(this,e)}return c(this,e,t,n)}function c(e,t,n,r){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=f(e,t);return e}(e,t,n,r):"string"===typeof t?function(e,t,n){"string"===typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(t,n),i=(e=s(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|d(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||(r=t.length)!==r?s(e,0):f(e,t);if("Buffer"===t.type&&o(t.data))return f(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function h(e,t){if(u(t),e=s(e,t<0?0:0|d(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function f(e,t){var n=t.length<0?0:0|d(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function d(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(l.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&
vendor: 4,700 bytes, line 2
2(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(e).length;default:if(r)return z(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,n);case"utf8":case"utf-8":return O(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"===typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var u=-1;for(o=n;o<s;o++)if(c(e,o)===c(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===l)return u*a}else-1!==u&&(o-=o-u),u=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var h=!0,f=0;f<l;f++)if(c(e,o+f)!==c(t,f)){h=!1;break}if(h)return o}return-1}function b(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function x(e,t,n,r){return H(z(t,e.length-n),e,n,r)}function _(e,t,n,r){return H(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function w(e,t,n,r){return _(e,t,n,r)}function S(e,t,n,r){return H(V(t),e,n,r)}function C(e,t,n,r){return H(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function k(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function O(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,l,c=e[i],u=null,h=c>239?4:c>223?3:c>191?2:1;if(i+h<=n)switch(h){case 1:c<128&&(u=c);break;case 2:128===(192&(o=e[i+1]))&&(l=(31&c)<<6|63&o)>127&&(u=l);break;case 3:o=e[i+1],a=e[i+2],128===(192&o)&&128===(192&a)&&(l=(15&c)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,h=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=h}return function(e){var t=e.length;if(t<=E)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=E));return n}(r)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}(),t.kMaxLength=a(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return c(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,r){return u(t),t<=0?s(e,t):void 0!==n?"string"===typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return h(null,e)},l.allocUnsafeSlow=function(e){return h(null,e)}
vendor: 11,795 bytes, line 2
2,l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=l.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},l.byteLength=p,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?O(this,0,e):g.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,r,i){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),c=this.slice(r,i),u=e.slice(t,n),h=0;h<s;++h)if(c[h]!==u[h]){o=c[h],a=u[h];break}return o<a?-1:a<o?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return x(this,e,t,n);case"ascii":return _(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var E=4096;function T(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function A(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function P(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=U(e[o]);return i}function j(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function L(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,n,r,i,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function R(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function D(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function I(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(e,t,n,r,o){return o||I(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function F(e,t,n,r,o){return o||I(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var i=t-e;n=new l(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||L(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||L(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUInt8=function(e,t){return t||L(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||L(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||L(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||L(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||L(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||L(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||L(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return t||L(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||L(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||L(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||L(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||L(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||L(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||L(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||L(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||M(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||M(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):D(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);M(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);M(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):D(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return F(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return F(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},l.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"===typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=l.isBuffer(e)?e:z(new l(e,r).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var B=/[^+\/0-9A-Za-z-_]/g;function U(e){return e<16?"0"+e.toString(16):e.toString(16)}function z(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>
2-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function V(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function H(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(104))},,function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r;!function(i,o){var a,s,l=typeof o,c=i.document,u=i.location,h=i.jQuery,f=i.$,d={},p=[],g="1.9.1",v=p.concat,m=p.push,y=p.slice,b=p.indexOf,x=d.toString,_=d.hasOwnProperty,w=g.trim,S=function e(t,n){return new e.fn.init(t,n,s)},C=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,k=/\S+/g,O=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,E=/^(?:(<[\w\W]+>)[^>]*|#([\w-]*))$/,T=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,A=/^[\],:{}\s]*$/,P=/(?:^|:|,)(?:\s*\[)+/g,j=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,L=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,M=/^-ms-/,R=/-([\da-z])/gi,D=function(e,t){return t.toUpperCase()},I=function(e){(c.addEventListener||"load"===e.type||"complete"===c.readyState)&&(N(),S.ready())},N=function(){c.addEventListener?(c.removeEventListener("DOMContentLoaded",I,!1),i.removeEventListener("load",I,!1)):(c.detachEvent("onreadystatechange",I),i.detachEvent("onload",I))};function F(e){var t=e.length,n=S.type(e);return!S.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)))}(S.fn=S.prototype={jquery:g,constructor:S,init:function(e,t,n){var r,i;if(!e)return this;if("string"==typeof e){if(!(r="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:E.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:c,!0)),T.test(r[1])&&S.isPlainObject(t))for(r in t)S.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}if((i=c.getElementById(r[2]))&&i.parentNode){if(i.id!==r[2])return n.find(e);this.length=1,this[0]=i}return this.context=c,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):S.isFunction(e)?n.ready(e):(e.selector!==o&&(this.selector=e.selector,this.context=e.context),S.makeArray(e,this))},selector:"",length:0,size:function(){return this.length},toArray:function(){return y.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e){var t=S.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return S.each(this,e,t)},ready:function(e){return S.ready.promise().done(e),this},slice:function(){return this.pushStack(y.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},map:function(e){return this.pushStack(S.map(this,(function(t,n){return e.call(t,n,t)})))},end:function(){return this.prevObject||this.constructor(null)},push:m,sort:[].sort,splice:[].splice}).init.prototype=S.fn,S.extend=S.fn.extend=function(){var e,t,n,r,i,a,s=arguments[0]||{},l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),"object"==typeof s||S.isFunction(s)||(s={}),c===l&&(s=this,--l);c>l;l++)if(null!=(i=arguments[l]))for(r in i)e=s[r],s!==(n=i[r])&&(u&&n&&(S.isPlainObject(n)||(t=S.isArray(n)))?(t?(t=!1,a=e&&S.isArray(e)?e:[]):a=e&&S.isPlainObject(e)?e:{},s[r]=S.extend(u,a,n)):n!==o&&(s[r]=n));return s},S.extend({noConflict:function(e){return i.$===S&&(i.$=f),e&&i.jQuery===S&&(i.jQuery=h),S},isReady:!1,readyWait:1,holdReady:function(e){e?S.readyWait++:S.ready(!0)},ready:function(e){if(!0===e?!--S.readyWait:!S.isReady){if(!c.body)return setTimeout(S.ready);S.isReady=!0,!0!==e&&--S.readyWait>0||(a.resolveWith(c,[S]),S.fn.trigger&&S(c).trigger("ready").off("ready"))}},isFunction:function(e){return"function"===S.type(e)},isArray:Array.isArray||function(e){return"array"===S.type(e)},isWindow:function(e){return null!=e&&e==e.window}
2,isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[x.call(e)]||"object":typeof e},isPlainObject:function(e){if(!e||"object"!==S.type(e)||e.nodeType||S.isWindow(e))return!1;try{if(e.constructor&&!_.call(e,"constructor")&&!_.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(a){return!1}var t;for(t in e);return t===o||_.call(e,t)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw Error(e)},parseHTML:function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||c;var r=T.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=S.buildFragment([e],t,i),i&&S(i).remove(),S.merge([],r.childNodes))},parseJSON:function(e){return i.JSON&&i.JSON.parse?i.JSON.parse(e):null===e?e:"string"==typeof e&&((e=S.trim(e))&&A.test(e.replace(j,"@").replace(L,"]").replace(P,"")))?Function("return "+e)():(S.error("Invalid JSON: "+e),o)},parseXML:function(e){var t;if(!e||"string"!=typeof e)return null;try{i.DOMParser?t=(new DOMParser).parseFromString(e,"text/xml"):((t=new ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e))}catch(c){t=o}return t&&t.documentElement&&!t.getElementsByTagName("parsererror").length||S.error("Invalid XML: "+e),t},noop:function(){},globalEval:function(e){e&&S.trim(e)&&(i.execScript||function(e){i.eval.call(i,e)})(e)},camelCase:function(e){return e.replace(M,"ms-").replace(R,D)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r=0,i=e.length,o=F(e);if(n){if(o)for(;i>r&&!1!==t.apply(e[r],n);r++);else for(r in e)if(!1===t.apply(e[r],n))break}else if(o)for(;i>r&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:w&&!w.call("\ufeff\xa0")?function(e){return null==e?"":w.call(e)}:function(e){return null==e?"":(e+"").replace(O,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(F(Object(e))?S.merge(n,"string"==typeof e?[e]:e):m.call(n,e)),n},inArray:function(e,t,n){var r;if(t){if(b)return b.call(t,e,n);for(r=t.length,n=n?0>n?Math.max(0,r+n):n:0;r>n;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,t){var n=t.length,r=e.length,i=0;if("number"==typeof n)for(;n>i;i++)e[r++]=t[i];else for(;t[i]!==o;)e[r++]=t[i++];return e.length=r,e},grep:function(e,t,n){var r=[],i=0,o=e.length;for(n=!!n;o>i;i++)n!==!!t(e[i],i)&&r.push(e[i]);return r},map:function(e,t,n){var r,i=0,o=e.length,a=[];if(F(e))for(;o>i;i++)null!=(r=t(e[i],i,n))&&(a[a.length]=r);else for(i in e)null!=(r=t(e[i],i,n))&&(a[a.length]=r);return v.apply([],a)},guid:1,proxy:function(e,t){var n,r,i;return"string"==typeof t&&(i=e[t],t=e,e=i),S.isFunction(e)?(n=y.call(arguments,2),(r=function(){return e.apply(t||this,n.concat(y.call(arguments)))}).guid=e.guid=e.guid||S.guid++,r):o},access:function(e,t,n,r,i,a,s){var l=0,c=e.length,u=null==n;if("object"===S.type(n))for(l in i=!0,n)S.access(e,t,l,n[l],!0,a,s);else if(r!==o&&(i=!0,S.isFunction(r)||(s=!0),u&&(s?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.call(S(e),n)})),t))for(;c>l;l++)t(e[l],n,s?r:r.call(e[l],l,t(e[l],n)));return i?e:u?t.call(e):c?t(e[0],n):a},now:function(){return(new Date).getTime()}}),S.ready.promise=function(e){if(!a)if(a=S.Deferred(),"complete"===c.readyState)setTimeout(S.ready);else if(c.addEventListener)c.addEventListener("DOMContentLoaded",I,!1),i.addEventListener("load",I,!1);else{c.attachEvent("onreadystatechange",I),i.attachEvent("onload",I);var t=!1;try{t=null==i.frameElement&&c.documentElement}catch(l){}t&&t.doScroll&&function e(){if(!S.isReady){try{t.doScroll("left")}catch(i){return setTimeout(e,50)}N(),S.ready()}}()}return a.promise(e)},S.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()})),s=S(c);var B={};S.Callbacks=function(e){e="string"==typeof e?B[e]||function(e){var t=B[e]={};return S.each(e.match(k)||[],(function(e,n){t[n]=!0})),t}(e):S.extend({},e);var t,n,r,i,a,s,l=[],c=!e.once&&[],u=function o(u){for(n=e.memory&&u,r=!0,a=s||0,s=0,i=l.length,t=!0;l&&i>a;a++)if(!1===l[a].apply(u[0],u[1])&&e.stopOnFalse){n=!1;break}t=!1,l&&(c?c.length&&o(c.shift()):n?l=[]:h.disable())},h={add:function(){if(l){var r=l.length;(function t(n){S.each(n,(function(n,r){var i=S.type(r);"function"===i?e.unique&&h.has(r)||l.push(r):r&&r.length&&"string"!==i&&t(r)}))})(arguments),t?i=l.length:n&&(s=r,u(n))}return this},remove:function(){return l&&S.each(arguments,(function(e,n){for(var r;(r=S.inArray(n,l,r))>-1;)l.splice(r,1),t&&(i>=r&&i--,a>=r&&a--)})),this},has:function(e){return e?S.inArray(e,l)>-1:!(!l||!l.length)},empty:function(){return l=[],this},disable:function(){return l=c=n=o,this},disabled:function(){return!l},lock:function(){return c=o,n||h.disable(),this},locked:function(){return!c},fireWith:function(e,n){return n=[e,(n=n||[]).slice?n.slice():n],!l||r&&!c||(t?c.push(n):u(n)),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!r}};return h},S.extend({Deferred:function(e){var t=[["resolve","done",S.Callbacks("once memory"),"resolved"],["reject","fail",S.Callbacks("once memory"),"rejected"],["notify","progress",S.Callbacks("memory")]],n="pe
2nding",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return S.Deferred((function(n){S.each(t,(function(t,o){var a=o[0],s=S.isFunction(e[t])&&e[t];i[o[1]]((function(){var e=s&&s.apply(this,arguments);e&&S.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[a+"With"](this===r?n.promise():this,s?[e]:arguments)}))})),e=null})).promise()},promise:function(e){return null!=e?S.extend(e,r):r}},i={};return r.pipe=r.then,S.each(t,(function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add((function(){n=s}),t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith})),r.promise(i),e&&e.call(i,i),i},when:function(e){var t,n,r,i=0,o=y.call(arguments),a=o.length,s=1!==a||e&&S.isFunction(e.promise)?a:0,l=1===s?e:S.Deferred(),c=function(e,n,r){return function(i){n[e]=this,r[e]=arguments.length>1?y.call(arguments):i,r===t?l.notifyWith(n,r):--s||l.resolveWith(n,r)}};if(a>1)for(t=Array(a),n=Array(a),r=Array(a);a>i;i++)o[i]&&S.isFunction(o[i].promise)?o[i].promise().done(c(i,r,o)).fail(l.reject).progress(c(i,n,t)):--s;return s||l.resolveWith(r,o),l.promise()}}),S.support=function(){var e,t,n,r,o,a,s,u,h,f,d=c.createElement("div");if(d.setAttribute("className","t"),d.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",t=d.getElementsByTagName("*"),n=d.getElementsByTagName("a")[0],!t||!n||!t.length)return{};s=(o=c.createElement("select")).appendChild(c.createElement("option")),r=d.getElementsByTagName("input")[0],n.style.cssText="top:1px;float:left;opacity:.5",e={getSetAttribute:"t"!==d.className,leadingWhitespace:3===d.firstChild.nodeType,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/top/.test(n.getAttribute("style")),hrefNormalized:"/a"===n.getAttribute("href"),opacity:/^0.5/.test(n.style.opacity),cssFloat:!!n.style.cssFloat,checkOn:!!r.value,optSelected:s.selected,enctype:!!c.createElement("form").enctype,html5Clone:"<:nav></:nav>"!==c.createElement("nav").cloneNode(!0).outerHTML,boxModel:"CSS1Compat"===c.compatMode,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},r.checked=!0,e.noCloneChecked=r.cloneNode(!0).checked,o.disabled=!0,e.optDisabled=!s.disabled;try{delete d.test}catch(y){e.deleteExpando=!1}for(f in(r=c.createElement("input")).setAttribute("value",""),e.input=""===r.getAttribute("value"),r.value="t",r.setAttribute("type","radio"),e.radioValue="t"===r.value,r.setAttribute("checked","t"),r.setAttribute("name","t"),(a=c.createDocumentFragment()).appendChild(r),e.appendChecked=r.checked,e.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked,d.attachEvent&&(d.attachEvent("onclick",(function(){e.noCloneEvent=!1})),d.cloneNode(!0).click()),{submit:!0,change:!0,focusin:!0})d.setAttribute(u="on"+f,"t"),e[f+"Bubbles"]=u in i||!1===d.attributes[u].expando;return d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",e.clearCloneStyle="content-box"===d.style.backgroundClip,S((function(){var t,n,r,o="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",a=c.getElementsByTagName("body")[0];a&&((t=c.createElement("div")).style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",a.appendChild(t).appendChild(d),d.innerHTML="<table><tr><td></td><td>t</td></tr></table>",(r=d.getElementsByTagName("td"))[0].style.cssText="padding:0;margin:0;border:0;display:none",h=0===r[0].offsetHeight,r[0].style.display="",r[1].style.display="none",e.reliableHiddenOffsets=h&&0===r[0].offsetHeight,d.innerHTML="",d.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",e.boxSizing=4===d.offsetWidth,e.doesNotIncludeMarginInBodyOffset=1!==a.offsetTop,i.getComputedStyle&&(e.pixelPosition="1%"!==(i.getComputedStyle(d,null)||{}).top,e.boxSizingReliable="4px"===(i.getComputedStyle(d,null)||{width:"4px"}).width,(n=d.appendChild(c.createElement("div"))).style.cssText=d.style.cssText=o,n.style.marginRight=n.style.width="0",d.style.width="1px",e.reliableMarginRight=!parseFloat((i.getComputedStyle(n,null)||{}).marginRight)),typeof d.style.zoom!==l&&(d.innerHTML="",d.style.cssText=o+"width:1px;padding:1px;display:inline;zoom:1",e.inlineBlockNeedsLayout=3===d.offsetWidth,d.style.display="block",d.innerHTML="<div></div>",d.firstChild.style.width="5px",e.shrinkWrapBlocks=3!==d.offsetWidth,e.inlineBlockNeedsLayout&&(a.style.zoom=1)),a.removeChild(t),t=d=r=n=null)})),t=o=a=s=n=r=null,e}();var U=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,z=/([A-Z])/g;function V(e,t,n,r){if(S.acceptData(e)){var i,a,s=S.expando,l="string"==typeof t,c=e.nodeType,u=c?S.cache:e,h=c?e[s]:e[s]&&s;if(h&&u[h]&&(r||u[h].data)||!l||n!==o)return h||(c?e[s]=h=p.pop()||S.guid++:h=s),u[h]||(u[h]={},c||(u[h].toJSON=S.noop)),("object"==typeof t||"function"==typeof t)&&(r?u[h]=S.extend(u[h],t):u[h].data=S.extend(u[h].data,t)),i=u[h],r||(i.data||(i.data={}
2),i=i.data),n!==o&&(i[S.camelCase(t)]=n),l?null==(a=i[t])&&(a=i[S.camelCase(t)]):a=i,a}}function H(e,t,n){if(S.acceptData(e)){var r,i,o,a=e.nodeType,s=a?S.cache:e,l=a?e[S.expando]:S.expando;if(s[l]){if(t&&(o=n?s[l]:s[l].data)){S.isArray(t)?t=t.concat(S.map(t,S.camelCase)):t in o?t=[t]:t=(t=S.camelCase(t))in o?[t]:t.split(" ");for(r=0,i=t.length;i>r;r++)delete o[t[r]];if(!(n?G:S.isEmptyObject)(o))return}(n||(delete s[l].data,G(s[l])))&&(a?S.cleanData([e],!0):S.support.deleteExpando||s!=s.window?delete s[l]:s[l]=null)}}}function W(e,t,n){if(n===o&&1===e.nodeType){var r="data-"+t.replace(z,"-$1").toLowerCase();if("string"==typeof(n=e.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:U.test(n)?S.parseJSON(n):n)}catch(c){}S.data(e,t,n)}else n=o}return n}function G(e){var t;for(t in e)if(("data"!==t||!S.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}S.extend({cache:{},expando:"jQuery"+(g+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return!!(e=e.nodeType?S.cache[e[S.expando]]:e[S.expando])&&!G(e)},data:function(e,t,n){return V(e,t,n)},removeData:function(e,t){return H(e,t)},_data:function(e,t,n){return V(e,t,n,!0)},_removeData:function(e,t){return H(e,t,!0)},acceptData:function(e){if(e.nodeType&&1!==e.nodeType&&9!==e.nodeType)return!1;var t=e.nodeName&&S.noData[e.nodeName.toLowerCase()];return!t||!0!==t&&e.getAttribute("classid")===t}}),S.fn.extend({data:function(e,t){var n,r,i=this[0],a=0,s=null;if(e===o){if(this.length&&(s=S.data(i),1===i.nodeType&&!S._data(i,"parsedAttrs"))){for(n=i.attributes;n.length>a;a++)(r=n[a].name).indexOf("data-")||(r=S.camelCase(r.slice(5)),W(i,r,s[r]));S._data(i,"parsedAttrs",!0)}return s}return"object"==typeof e?this.each((function(){S.data(this,e)})):S.access(this,(function(t){return t===o?i?W(i,e,S.data(i,e)):null:(this.each((function(){S.data(this,e,t)})),o)}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){S.removeData(this,e)}))}}),S.extend({queue:function(e,t,n){var r;return e?(r=S._data(e,t=(t||"fx")+"queue"),n&&(!r||S.isArray(n)?r=S._data(e,t,S.makeArray(n)):r.push(n)),r||[]):o},dequeue:function(e,t){var n=S.queue(e,t=t||"fx"),r=n.length,i=n.shift(),o=S._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),o.cur=i,i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,(function(){S.dequeue(e,t)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return S._data(e,n)||S._data(e,n,{empty:S.Callbacks("once memory").add((function(){S._removeData(e,t+"queue"),S._removeData(e,n)}))})}}),S.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),n>arguments.length?S.queue(this[0],e):t===o?this:this.each((function(){var n=S.queue(this,e,t);S._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&S.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){S.dequeue(this,e)}))},delay:function(e,t){return e=S.fx&&S.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=S.Deferred(),a=this,s=this.length,l=function(){--r||i.resolveWith(a,[a])};for("string"!=typeof e&&(t=e,e=o),e=e||"fx";s--;)(n=S._data(a[s],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(l));return l(),i.promise(t)}});var q,X,Y=/[\t\r\n]/g,$=/\r/g,K=/^(?:input|select|textarea|button|object)$/i,Z=/^(?:a|area)$/i,Q=/^(?:checked|selected|autofocus|autoplay|async|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped)$/i,J=/^(?:checked|selected)$/i,ee=S.support.getSetAttribute,te=S.support.input;S.fn.extend({attr:function(e,t){return S.access(this,S.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){S.removeAttr(this,e)}))},prop:function(e,t){return S.access(this,S.prop,e,t,arguments.length>1)},removeProp:function(e){return e=S.propFix[e]||e,this.each((function(){try{this[e]=o,delete this[e]}catch(a){}}))},addClass:function(e){var t,n,r,i,o,a=0,s=this.length,l="string"==typeof e&&e;if(S.isFunction(e))return this.each((function(t){S(this).addClass(e.call(this,t,this.className))}));if(l)for(t=(e||"").match(k)||[];s>a;a++)if(r=1===(n=this[a]).nodeType&&(n.className?(" "+n.className+" ").replace(Y," "):" ")){for(o=0;i=t[o++];)0>r.indexOf(" "+i+" ")&&(r+=i+" ");n.className=S.trim(r)}return this},removeClass:function(e){var t,n,r,i,o,a=0,s=this.length,l=0===arguments.length||"string"==typeof e&&e;if(S.isFunction(e))return this.each((function(t){S(this).removeClass(e.call(this,t,this.className))}));if(l)for(t=(e||"").match(k)||[];s>a;a++)if(r=1===(n=this[a]).nodeType&&(n.className?(" "+n.className+" ").replace(Y," "):"")){for(o=0;i=t[o++];)for(;r.indexOf(" "+i+" ")>=0;)r=r.replace(" "+i+" "," ");n.className=e?S.trim(r):""}return this},toggleClass:function(e,t){var n=typeof e,r="boolean"==typeof t;return S.isFunction(e)?this.each((function(n){S(this).toggleClass(e.call(this,n,this.className,t),t)})):this.each((function(){if("string"===n)for(var i,o=0,a=S(this),s=t,c=e.match(k)||[];
2i=c[o++];)s=r?s:!a.hasClass(i),a[s?"addClass":"removeClass"](i);else(n===l||"boolean"===n)&&(this.className&&S._data(this,"__className__",this.className),this.className=this.className||!1===e?"":S._data(this,"__className__")||"")}))},hasClass:function(e){for(var t=" "+e+" ",n=0,r=this.length;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(Y," ").indexOf(t)>=0)return!0;return!1},val:function(e){var t,n,r,i=this[0];return arguments.length?(r=S.isFunction(e),this.each((function(t){var i,a=S(this);1===this.nodeType&&(null==(i=r?e.call(this,t,a.val()):e)?i="":"number"==typeof i?i+="":S.isArray(i)&&(i=S.map(i,(function(e){return null==e?"":e+""}))),(n=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&n.set(this,i,"value")!==o||(this.value=i))}))):i?(n=S.valHooks[i.type]||S.valHooks[i.nodeName.toLowerCase()])&&"get"in n&&(t=n.get(i,"value"))!==o?t:"string"==typeof(t=i.value)?t.replace($,""):null==t?"":t:void 0}}),S.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||0>i,a=o?null:[],s=o?i+1:r.length,l=0>i?s:o?i:0;s>l;l++)if(!(!(n=r[l]).selected&&l!==i||(S.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&S.nodeName(n.parentNode,"optgroup"))){if(t=S(n).val(),o)return t;a.push(t)}return a}
2,set:function(e,t){var n=S.makeArray(t);return S(e).find("option").each((function(){this.selected=S.inArray(S(this).val(),n)>=0})),n.length||(e.selectedIndex=-1),n}}},attr:function(e,t,n){var r,i,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return typeof e.getAttribute===l?S.prop(e,t,n):((i=1!==s||!S.isXMLDoc(e))&&(t=t.toLowerCase(),r=S.attrHooks[t]||(Q.test(t)?X:q)),n===o?r&&i&&"get"in r&&null!==(a=r.get(e,t))?a:(typeof e.getAttribute!==l&&(a=e.getAttribute(t)),null==a?o:a):null!==n?r&&i&&"set"in r&&(a=r.set(e,n,t))!==o?a:(e.setAttribute(t,n+""),n):(S.removeAttr(e,t),o))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(k);if(o&&1===e.nodeType)for(;n=o[i++];)r=S.propFix[n]||n,Q.test(n)?!ee&&J.test(n)?e[S.camelCase("default-"+n)]=e[r]=!1:e[r]=!1:S.attr(e,n,""),e.removeAttribute(ee?n:r)},attrHooks:{type:{set:function(e,t){if(!S.support.radioValue&&"radio"===t&&S.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},propFix:{tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(e,t,n){var r,i,a=e.nodeType;if(e&&3!==a&&8!==a&&2!==a)return(1!==a||!S.isXMLDoc(e))&&(t=S.propFix[t]||t,i=S.propHooks[t]),n!==o?i&&"set"in i&&(r=i.set(e,n,t))!==o?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=e.getAttributeNode("tabindex");return t&&t.specified?parseInt(t.value,10):K.test(e.nodeName)||Z.test(e.nodeName)&&e.href?0:o}}}}),X={get:function(e,t){var n=S.prop(e,t),r="boolean"==typeof n&&e.getAttribute(t),i="boolean"==typeof n?te&&ee?null!=r:J.test(t)?e[S.camelCase("default-"+t)]:!!r:e.getAttributeNode(t);return i&&!1!==i.value?t.toLowerCase():o},set:function(e,t,n){return!1===t?S.removeAttr(e,n):te&&ee||!J.test(n)?e.setAttribute(!ee&&S.propFix[n]||n,n):e[S.camelCase("default-"+n)]=e[n]=!0,n}},te&&ee||(S.attrHooks.value={get:function(e,t){var n=e.getAttributeNode(t);return S.nodeName(e,"input")?e.defaultValue:n&&n.specified?n.value:o},set:function(e,t,n){return S.nodeName(e,"input")?(e.defaultValue=t,o):q&&q.set(e,t,n)}}),ee||(q=S.valHooks.button={get:function(e,t){var n=e.getAttributeNode(t);return n&&("id"===t||"name"===t||"coords"===t?""!==n.value:n.specified)?n.value:o},set:function(e,t,n){var r=e.getAttributeNode(n);return r||e.setAttributeNode(r=e.ownerDocument.createAttribute(n)),r.value=t+="","value"===n||t===e.getAttribute(n)?t:o}},S.attrHooks.contenteditable={get:q.get,set:function(e,t,n){q.set(e,""!==t&&t,n)}},S.each(["width","height"],(function(e,t){S.attrHooks[t]=S.extend(S.attrHooks[t],{set:function(e,n){return""===n?(e.setAttribute(t,"auto"),n):o}})}))),S.support.hrefNormalized||(S.each(["href","src","width","height"],(function(e,t){S.attrHooks[t]=S.extend(S.attrHooks[t],{get:function(e){var n=e.getAttribute(t,2);return null==n?o:n}})})),S.each(["href","src"],(function(e,t){S.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}))),S.support.style||(S.attrHooks.style={get:function(e){return e.style.cssText||o},set:function(e,t){return e.style.cssText=t+""}}),S.support.optSelected||(S.propHooks.selected=S.extend(S.propHooks.selected,{get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}})),S.support.enctype||(S.propFix.enctype="encoding"),S.support.checkOn||S.each(["radio","checkbox"],(function(){S.valHooks[this]={get:function(e){return null===e.getAttribute("value")?"on":e.value}}})),S.each(["radio","checkbox"],(function(){S.valHooks[this]=S.extend(S.valHooks[this],{set:function(e,t){return S.isArray(t)?e.checked=S.inArray(S(e).val(),t)>=0:o}})}));var ne=/^(?:input|select|textarea)$/i,re=/^key/,ie=/^(?:mouse|contextmenu)|click/,oe=/^(?:focusinfocus|focusoutblur)$/,ae=/^([^.]*)(?:\.(.+)|)$/;function se(){return!0}function le(){return!1}S.event={global:{},add:function(e,t,n,r,i){var a,s,l,c,u,h,f,d,p,g,v,m=S._data(e);if(m){for(n.handler&&(n=(c=n).handler,i=c.selector),n.guid||(n.guid=S.guid++),(s=m.events)||(s=m.events={}),(h=m.handle)||((h=m.handle=function(e){return e&&S.event.triggered===e.type?o:S.event.dispatch.apply(h.elem,arguments)}).elem=e),l=(t=(t||"").match(k)||[""]).length;l--;)p=v=(a=ae.exec(t[l])||[])[1],g=(a[2]||"").split(".").sort(),u=S.event.special[p]||{},p=(i?u.delegateType:u.bindType)||p,u=S.event.special[p]||{},f=S.extend({type:p,origType:v,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&S.expr.match.needsContext.test(i),namespace:g.join(".")},c),(d=s[p])||((d=s[p]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,r,g,h)||(e.addEventListener?e.addEventListener(p,h,!1):e.attachEvent&&e.attachEvent("on"+p,h))),u.add&&(u.add.call(e,f),f.handler.guid||(f.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,f):d.push(f),S.event.global[p]=!0;e=null}},remove:function(e,t,n,r,i){var o,a,s,l,c,u,h,f,d,p,g,v=S.hasData(e)&&S._data(e);if(v&&(u=v.events)){for(c=(t=(t||"").match(k)||[""]).length;c--;)if(d=g=(s=ae.exec(t[c])||[])[1],p=(s[2]||"").split(".").sort(),d){for(h=S.event.special[d]||{},f=u[d=(r?h.delegateType:h.bindType)||d]||[],s=s[2]&&RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=o=f.length;o--;)a=f[o],!i&&g!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(f.splice(o,1),a.selector&&f.delegateCount--,h.remove&&h.remove.call(e,a));l&&!f.length&&(h.teardown&&!1!==h.teardown.call(e,p,v.handle)||S.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)S.event.remove(e,d+t[c],n,r,!0);S.isEmptyObject(u)&&(delete v.handle,S._removeData(e,"events"))}},trigger:function(e,t,n,r){var a,s,l,u,h,f,d,p=[n||c],g=_.call(e,"type")?e.type:e,v=_.call(e,"namespace")?e.namespace.split("."):[];if(l=f=n=n||c,3!==n.nodeType&&8!==n.nodeType&&!oe.test(g+S.event.triggered)&&(g.indexOf(".")>=0&&(v=g.split("."),g=v.shift(),v.sort()),s=0>g.indexOf(":")&&"on"+g,(e=e[S.expando]?e:new S.Event(g,"object"==typeof e&&e)).isTrigger=!0,e.namespace=v.join("."),e.namespace_re=e.namespace?RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=
2o,e.target||(e.target=n),t=null==t?[e]:S.makeArray(t,[e]),h=S.event.special[g]||{},r||!h.trigger||!1!==h.trigger.apply(n,t))){if(!r&&!h.noBubble&&!S.isWindow(n)){for(u=h.delegateType||g,oe.test(u+g)||(l=l.parentNode);l;l=l.parentNode)p.push(l),f=l;f===(n.ownerDocument||c)&&p.push(f.defaultView||f.parentWindow||i)}for(d=0;(l=p[d++])&&!e.isPropagationStopped();)e.type=d>1?u:h.bindType||g,(a=(S._data(l,"events")||{})[e.type]&&S._data(l,"handle"))&&a.apply(l,t),(a=s&&l[s])&&S.acceptData(l)&&a.apply&&!1===a.apply(l,t)&&e.preventDefault();if(e.type=g,!(r||e.isDefaultPrevented()||h._default&&!1!==h._default.apply(n.ownerDocument,t)||"click"===g&&S.nodeName(n,"a"))&&S.acceptData(n)&&s&&n[g]&&!S.isWindow(n)){(f=n[s])&&(n[s]=null),S.event.triggered=g;try{n[g]()}catch(w){}S.event.triggered=o,f&&(n[s]=f)}return e.result}},dispatch:function(e){e=S.event.fix(e);var t,n,r,i,a,s=[],l=y.call(arguments),c=(S._data(this,"events")||{})[e.type]||[],u=S.event.special[e.type]||{};if(l[0]=e,e.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,e)){for(s=S.event.handlers.call(this,e,c),t=0;(i=s[t++])&&!e.isPropagationStopped();)for(e.currentTarget=i.elem,a=0;(r=i.handlers[a++])&&!e.isImmediatePropagationStopped();)(!e.namespace_re||e.namespace_re.test(r.namespace))&&(e.handleObj=r,e.data=r.data,(n=((S.event.special[r.origType]||{}).handle||r.handler).apply(i.elem,l))!==o&&!1===(e.result=n)&&(e.preventDefault(),e.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,a,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&(!e.button||"click"!==e.type))for(;c!=this;c=c.parentNode||this)if(1===c.nodeType&&(!0!==c.disabled||"click"!==e.type)){for(i=[],a=0;l>a;a++)i[n=(r=t[a]).selector+" "]===o&&(i[n]=r.needsContext?S(n,this).index(c)>=0:S.find(n,this,null,[c]).length),i[n]&&i.push(r);i.length&&s.push({elem:c,handlers:i})}return t.length>l&&s.push({elem:this,handlers:t.slice(l)}),s},fix:function(e){if(e[S.expando])return e;var t,n,r,i=e.type,o=e,a=this.fixHooks[i];for(a||(this.fixHooks[i]=a=ie.test(i)?this.mouseHooks:re.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,e=new S.Event(o),t=r.length;t--;)e[n=r[t]]=o[n];return e.target||(e.target=o.srcElement||c),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,a.filter?a.filter(e,o):e},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,i,a=t.button,s=t.fromElement;return null==e.pageX&&null!=t.clientX&&(i=(r=e.target.ownerDocument||c).documentElement,n=r.body,e.pageX=t.clientX+(i&&i.scrollLeft||n&&n.scrollLeft||0)-(i&&i.clientLeft||n&&n.clientLeft||0),e.pageY=t.clientY+(i&&i.scrollTop||n&&n.scrollTop||0)-(i&&i.clientTop||n&&n.clientTop||0)),!e.relatedTarget&&s&&(e.relatedTarget=s===e.target?t.toElement:s),e.which||a===o||(e.which=1&a?1:2&a?3:4&a?2:0),e}},special:{load:{noBubble:!0},click:{trigger:function(){return S.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):o}},focus:{trigger:function(){if(this!==c.activeElement&&this.focus)try{return this.focus(),!1}catch(i){}},delegateType:"focusin"},blur:{trigger:function(){return this===c.activeElement&&this.blur?(this.blur(),!1):o},delegateType:"focusout"},beforeunload:{postDispatch:function(e){e.result!==o&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=S.extend(new S.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?S.event.trigger(i,null,t):S.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},S.removeEvent=c.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var r="on"+t;e.detachEvent&&(typeof e[r]===l&&(e[r]=null),e.detachEvent(r,n))},(S.Event=function(e,t){return this instanceof S.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||!1===e.returnValue||e.getPreventDefault&&e.getPreventDefault()?se:le):this.type=e,t&&S.extend(this,t),this.timeStamp=e&&e.timeStamp||S.now(),this[S.expando]=!0,o):new S.Event(e,t)}).prototype={isDefaultPrevented:le,isPropagationStopped:le,isImmediatePropagationStopped:le,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=se,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=se,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=se,this.stopPropagation()}}
2,S.each({mouseenter:"mouseover",mouseleave:"mouseout"},(function(e,t){S.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return(!i||i!==r&&!S.contains(r,i))&&(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}})),S.support.submitBubbles||(S.event.special.submit={setup:function(){return!S.nodeName(this,"form")&&(S.event.add(this,"click._submit keypress._submit",(function(e){var t=e.target,n=S.nodeName(t,"input")||S.nodeName(t,"button")?t.form:o;n&&!S._data(n,"submitBubbles")&&(S.event.add(n,"submit._submit",(function(e){e._submit_bubble=!0})),S._data(n,"submitBubbles",!0))})),o)},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&S.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return!S.nodeName(this,"form")&&(S.event.remove(this,"._submit"),o)}}),S.support.changeBubbles||(S.event.special.change={setup:function(){return ne.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(S.event.add(this,"propertychange._change",(function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)})),S.event.add(this,"click._change",(function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),S.event.simulate("change",this,e,!0)}))),!1):(S.event.add(this,"beforeactivate._change",(function(e){var t=e.target;ne.test(t.nodeName)&&!S._data(t,"changeBubbles")&&(S.event.add(t,"change._change",(function(e){!this.parentNode||e.isSimulated||e.isTrigger||S.event.simulate("change",this.parentNode,e,!0)})),S._data(t,"changeBubbles",!0))})),o)},handle:function(e){var t=e.target;return this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type?e.handleObj.handler.apply(this,arguments):o},teardown:function(){return S.event.remove(this,"._change"),!ne.test(this.nodeName)}}),S.support.focusinBubbles||S.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=0,r=function(e){S.event.simulate(t,e.target,S.event.fix(e),!0)};S.event.special[t]={setup:function(){0===n++&&c.addEventListener(e,r,!0)},teardown:function(){0===--n&&c.removeEventListener(e,r,!0)}}})),S.fn.extend({on:function(e,t,n,r,i){var a,s;if("object"==typeof e){for(a in"string"!=typeof t&&(n=n||t,t=o),e)this.on(a,t,n,e[a],i);return this}if(null==n&&null==r?(r=t,n=t=o):null==r&&("string"==typeof t?(r=n,n=o):(r=n,n=t,t=o)),!1===r)r=le;else if(!r)return this;return 1===i&&(s=r,(r=function(e){return S().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=S.guid++)),this.each((function(){S.event.add(this,e,r,n,t)}))},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,S(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return(!1===t||"function"==typeof t)&&(n=t,t=o),!1===n&&(n=le),this.each((function(){S.event.remove(this,e,n,t)}))},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},trigger:function(e,t){return this.each((function(){S.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];return n?S.event.trigger(e,t,n,!0):o}}),function(e,t){var n,r,i,o,a,s,l,c,u,h,f,d,p,g,v,m,y,b="sizzle"+-new Date,x=e.document,_={},w=0,C=0,k=ne(),O=ne(),E=ne(),T=typeof t,A=1<<31,P=[],j=P.pop,L=P.push,M=P.slice,R=P.indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(this[t]===e)return t;return-1},D="[\\x20\\t\\r\\n\\f]",I="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N=I.replace("w","w#"),F="\\["+D+"*("+I+")"+D+"*(?:([*^$|!~]?=)"+D+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+N+")|)|)"+D+"*\\]",B=":("+I+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+F.replace(3,8)+")*)|.*)\\)|)",U=RegExp("^"+D+"+|((?:^|[^\\\\])(?:\\\\.)*)"+D+"+$","g"),z=RegExp("^"+D+"*,"+D+"*"),V=RegExp("^"+D+"*([\\x20\\t\\r\\n\\f>+~])"+D+"*"),H=RegExp(B),W=RegExp("^"+N+"$"),G={ID:RegExp("^#("+I+")"),CLASS:RegExp("^\\.("+I+")"),NAME:RegExp("^\\[name=['\"]?("+I+")['\"]?\\]"),TAG:RegExp("^("+I.replace("w","w*")+")"),ATTR:RegExp("^"+F),PSEUDO:RegExp("^"+B),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+D+"*(even|odd|(([+-]|)(\\d*)n|)"+D+"*(?:([+-]|)"+D+"*(\\d+)|))"+D+"*\\)|)","i"),needsContext:RegExp("^"+D+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+D+"*((?:-\\d)?\\d*)"+D+"*\\)|)(?=[^-]|$)","i")},q=/[\x20\t\r\n\f]*[+~]/,X=/^[^{]+\{\s*\[native code/,Y=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,$=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,Z=/'|\\/g,Q=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,J=/\\([\da-fA-F]{1,6}[\x20\t\r\n\f]?|.)/g,ee=function(e,t){var n="0x"+t-65536;return n!==n?t:0>n?String.fromCharCode(n+65536):String.fromCharCode(55296|n>>10,56320|1023&n)};try{M.call(x.documentElement.childNodes,0)[0].nodeType}catch(oe){M=function(e){for(var t,n=[];t=this[e++];)n.push(t);return n}}function te(e){return X.test(e+"")}function ne(){var e,t=[];return e=function(n,r){return t.push(n+=" ")>i.cacheLength&&delete e[t.shift()],e[n]=r}}function re(e){return e[b]=!0,e}function ie(e){var t=h.createElement("div");try{return e(t)}catch(n){return!1}finally{t=null}}function ae(e,t,n,r){var i,o,a,s,l,c,f,g,v,y;if((t?t.ownerDocument||t:x)!==h&&u(t),n=n||[],!e||"string"!=typeof e)return n;if(1!==(s=(t=t||h).nodeType)&&9!==s)return[];if(!d&&!r){if(i=Y.exec(e))if(a=i[1]){if(9===s){if(!(o=t.getElementById(a))||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(a))&&m(t,o)&&o.id===a)return n.push(o),n}else{if(i[2])return L.apply(n,M.call(t.getElementsByTagName(e),0)),n;if((a=i[3])&&_.getByClassName&&t.getElementsByClassName)return L.apply(n,M.call(t.getElementsByClassName(a),0)),n}if(_.qsa&&!p.test(e)){if(f=!0,g=b,v=t,y=9===s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){for(c=
2he(e),(f=t.getAttribute("id"))?g=f.replace(Z,"\\$&"):t.setAttribute("id",g),g="[id='"+g+"'] ",l=c.length;l--;)c[l]=g+fe(c[l]);v=q.test(e)&&t.parentNode||t,y=c.join(",")}if(y)try{return L.apply(n,M.call(v.querySelectorAll(y),0)),n}catch(S){}finally{f||t.removeAttribute("id")}}}return be(e.replace(U,"$1"),t,n,r)}function se(e,t){var n=t&&e,r=n&&(~t.sourceIndex||A)-(~e.sourceIndex||A);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function le(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function ce(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ue(e){return re((function(t){return t=+t,re((function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}for(n in a=ae.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},u=ae.setDocument=function(e){var n=e?e.ownerDocument||e:x;return n!==h&&9===n.nodeType&&n.documentElement?(h=n,f=n.documentElement,d=a(n),_.tagNameNoComments=ie((function(e){return e.appendChild(n.createComment("")),!e.getElementsByTagName("*").length})),_.attributes=ie((function(e){e.innerHTML="<select></select>";var t=typeof e.lastChild.getAttribute("multiple");return"boolean"!==t&&"string"!==t})),_.getByClassName=ie((function(e){return e.innerHTML="<div class='hidden e'></div><div class='hidden'></div>",!(!e.getElementsByClassName||!e.getElementsByClassName("e").length)&&(e.lastChild.className="e",2===e.getElementsByClassName("e").length)})),_.getByName=ie((function(e){e.id=b+0,e.innerHTML="<a name='"+b+"'></a><div name='"+b+"'></div>",f.insertBefore(e,f.firstChild);var t=n.getElementsByName&&n.getElementsByName(b).length===2+n.getElementsByName(b+0).length;return _.getIdNotName=!n.getElementById(b),f.removeChild(e),t})),i.attrHandle=ie((function(e){return e.innerHTML="<a href='#'></a>",e.firstChild&&typeof e.firstChild.getAttribute!==T&&"#"===e.firstChild.getAttribute("href")}))?{}:{href:function(e){return e.getAttribute("href",2)},type:function(e){return e.getAttribute("type")}},_.getIdNotName?(i.find.ID=function(e,t){if(typeof t.getElementById!==T&&!d){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},i.filter.ID=function(e){var t=e.replace(J,ee);return function(e){return e.getAttribute("id")===t}}):(i.find.ID=function(e,n){if(typeof n.getElementById!==T&&!d){var r=n.getElementById(e);return r?r.id===e||typeof r.getAttributeNode!==T&&r.getAttributeNode("id").value===e?[r]:t:[]}},i.filter.ID=function(e){var t=e.replace(J,ee);return function(e){var n=typeof e.getAttributeNode!==T&&e.getAttributeNode("id");return n&&n.value===t}}),i.find.TAG=_.tagNameNoComments?function(e,n){return typeof n.getElementsByTagName!==T?n.getElementsByTagName(e):t}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},i.find.NAME=_.getByName&&function(e,n){return typeof n.getElementsByName!==T?n.getElementsByName(name):t},i.find.CLASS=_.getByClassName&&function(e,n){return typeof n.getElementsByClassName===T||d?t:n.getElementsByClassName(e)},g=[],p=[":focus"],(_.qsa=te(n.querySelectorAll))&&(ie((function(e){e.innerHTML="<select><option selected=''></option></select>",e.querySelectorAll("[selected]").length||p.push("\\["+D+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),e.querySelectorAll(":checked").length||p.push(":checked")})),ie((function(e){e.innerHTML="<input type='hidden' i=''/>",e.querySelectorAll("[i^='']").length&&p.push("[*^$]="+D+"*(?:\"\"|'')"),e.querySelectorAll(":enabled").length||p.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),p.push(",.*:")}))),(_.matchesSelector=te(v=f.matchesSelector||f.mozMatchesSelector||f.webkitMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&ie((function(e){_.disconnectedMatch=v.call(e,"div"),v.call(e,"[s!='']:x"),g.push("!=",B)})),p=RegExp(p.join("|")),g=RegExp(g.join("|")),m=te(f.contains)||f.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},y=f.compareDocumentPosition?function(e,t){var r;return e===t?(l=!0,0):(r=t.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(t))?1&r||e.parentNode&&11===e.parentNode.nodeType?e===n||m(x,e)?-1:t===n||m(x,t)?1:0:4&r?-1:1:e.compareDocumentPosition?-1:1}:function(e,t){var r,i=0,o=e.parentNode,a=t.parentNode,s=[e],c=[t];if(e===t)return l=!0,0;if(!o||!a)return e===n?-1:t===n?1:o?-1:a?1:0;if(o===a)return se(e,t);for(r=e;r=r.parentNode;)s.unshift(r);for(r=t;r=r.parentNode;)c.unshift(r);for(;s[i]===c[i];)i++;return i?se(s[i],c[i]):s[i]===x?-1:c[i]===x?1:0},l=!1,[0,0].sort(y),_.detectDuplicates=l,h):h},ae.matches=function(e,t){return ae(e,null,null,t)},ae.matchesSelector=function(e,t){if((e.ownerDocument||e)!==h&&u(e),t=t.replace(Q,"='$1']"),!(!_.matchesSelector||d||g&&g.test(t)||p.test(t)))try{var n=v.call(e,t);if(n||_.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(r){}return ae(t,h,null,[e]).length>0},ae.contains=function(e,t){return(e.ownerDocument||e)!==h&&u(e),m(e,t)},ae.attr=function(e,t){var n;return(e.ownerDocument||e)!==h&&u(e),d||(t=t.toLowerCase()),(n=i.attrHandle[t])?n(e):d||_.attributes?e.getAttribute(t):((n=e.getAttributeNode(t))||e.getAttribute(t))&&!0===e[t]?t:n&&n.specified?n.value:null},ae.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},ae.uniqueSort=function(e){var t,n=[],r=1,i=0;if(l=!_.detectDuplicates,e.sort(y),l){for(;t=e[r];r++)t===e[r-1]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return e},o=ae.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}
2else if(3===i||4===i)return e.nodeValue}else for(;t=e[r];r++)n+=o(t);return n},i=ae.selectors={cacheLength:50,createPseudo:re,match:G,find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(J,ee),e[3]=(e[4]||e[5]||"").replace(J,ee),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ae.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ae.error(e[0]),e},PSEUDO:function(e){var t,n=!e[5]&&e[2];return G.CHILD.test(e[0])?null:(e[4]?e[2]=e[4]:n&&H.test(n)&&(t=he(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){return"*"===e?function(){return!0}:(e=e.replace(J,ee).toLowerCase(),function(t){return t.nodeName&&t.nodeName.toLowerCase()===e})},CLASS:function(e){var t=k[e+" "];return t||(t=RegExp("(^|"+D+")"+e+"("+D+"|$)"))&&k(e,(function(e){return t.test(e.className||typeof e.getAttribute!==T&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=ae.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var c,u,h,f,d,p,g=o!==a?"nextSibling":"previousSibling",v=t.parentNode,m=s&&t.nodeName.toLowerCase(),y=!l&&!s;if(v){if(o){for(;g;){for(h=t;h=h[g];)if(s?h.nodeName.toLowerCase()===m:1===h.nodeType)return!1;p=g="only"===e&&!p&&"nextSibling"}return!0}if(p=[a?v.firstChild:v.lastChild],a&&y){for(d=(c=(u=v[b]||(v[b]={}))[e]||[])[0]===w&&c[1],f=c[0]===w&&c[2],h=d&&v.childNodes[d];h=++d&&h&&h[g]||(f=d=0)||p.pop();)if(1===h.nodeType&&++f&&h===t){u[e]=[w,d,f];break}}else if(y&&(c=(t[b]||(t[b]={}))[e])&&c[0]===w)f=c[1];else for(;(h=++d&&h&&h[g]||(f=d=0)||p.pop())&&((s?h.nodeName.toLowerCase()!==m:1!==h.nodeType)||!++f||(y&&((h[b]||(h[b]={}))[e]=[w,f]),h!==t)););return(f-=i)===r||0===f%r&&f/r>=0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||ae.error("unsupported pseudo: "+e);return r[b]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?re((function(e,n){for(var i,o=r(e,t),a=o.length;a--;)e[i=R.call(e,o[a])]=!(n[i]=o[a])})):function(e){return r(e,0,n)}):r}},pseudos:{not:re((function(e){var t=[],n=[],r=s(e.replace(U,"$1"));return r[b]?re((function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,i,o){return t[0]=e,r(t,null,o,n),!n.pop()}})),has:re((function(e){return function(t){return ae(e,t).length>0}})),contains:re((function(e){return function(t){return(t.textContent||t.innerText||o(t)).indexOf(e)>-1}})),lang:re((function(e){return W.test(e||"")||ae.error("unsupported lang: "+e),e=e.replace(J,ee).toLowerCase(),function(t){var n;do{if(n=d?t.getAttribute("xml:lang")||t.getAttribute("lang"):t.lang)return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeName>"@"||3===e.nodeType||4===e.nodeType)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return K.test(e.nodeName)},input:function(e){return $.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||t.toLowerCase()===e.type)},first:ue((function(){return[0]})),last:ue((function(e,t){return[t-1]})),eq:ue((function(e,t,n){return[0>n?n+t:n]})),even:ue((function(e,t){for(var n=0;t>n;n+=2)e.push(n);return e})),odd:ue((function(e,t){for(var n=1;t>n;n+=2)e.push(n);return e})),lt:ue((function(e,t,n){for(var r=0>n?n+t:n;--r>=0;)e.push(r);return e})),gt:ue((function(e,t,n){for(var r=0>n?n+t:n;t>++r;)e.push(r);return e}))}},{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[n]=le(n);for(n in{submit:!0,reset:!0})i.pseudos[n]=ce(n);function he(e,t){var n,r,o,a,s,l,c,u=O[e+" "];if(u)return t?0:u.slice(0);for(s=e,l=[],c=i.preFilter;s;){for(a in(!n||(r=z.exec(s)))&&(r&&(s=s.slice(r[0].length)||s),l.push(o=[])),n=!1,(r=V.exec(s))&&(n=r.shift(),o.push({value:n,type:r[0].replace(U," ")}),s=s.slice(n.length)),i.filter)!(r=G[a].exec(s))||c[a]&&!(r=c[a](r))||(n=r.shift(),o.push({value:n,type:a,matches:r}),s=s.slice(n.length));if(!n)break}return t?s.length:s?ae.error(e):O(e,l).slice(0)}function fe(e){for(var t=0,n=e.length,r="";n>t;t++)r+=e[t].value;return r}function de(e,t,n){var i=t.dir,o=n&&"parentNode"===i,a=C++;return t.first?function(t,n,r){for(;t=t[i];)if(1===t.nodeType||o)return e(t,n,r)}:function(t,n,s){var l,c,u,h=w+" "+a;if(s){for(;t=t[i];)if((1===t.nodeType||o)&&e(t,n,s))return!0}else for(;t=t[i];)if(1===t.nodeType||o)if((c=(u=t[b]||(t[b]={}))[i])&&c[0]===h){if(!0===(l=c[1])||l===r)return!0===l}else if((c=u[i]=[h])[1]=e(t,n,s)||r,!0===c[1])return!0}}function pe(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function ge(e,t,n,r,i){for(var o,a=[],s=0,l=e.length,c=null!=t;l>s;
2s++)(o=e[s])&&(!n||n(o,r,i))&&(a.push(o),c&&t.push(s));return a}function ve(e,t,n,r,i,o){return r&&!r[b]&&(r=ve(r)),i&&!i[b]&&(i=ve(i,o)),re((function(o,a,s,l){var c,u,h,f=[],d=[],p=a.length,g=o||function(e,t,n){for(var r=0,i=t.length;i>r;r++)ae(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),v=!e||!o&&t?g:ge(g,f,e,s,l),m=n?i||(o?e:p||r)?[]:a:v;if(n&&n(v,m,s,l),r)for(c=ge(m,d),r(c,[],s,l),u=c.length;u--;)(h=c[u])&&(m[d[u]]=!(v[d[u]]=h));if(o){if(i||e){if(i){for(c=[],u=m.length;u--;)(h=m[u])&&c.push(v[u]=h);i(null,m=[],c,l)}for(u=m.length;u--;)(h=m[u])&&(c=i?R.call(o,h):f[u])>-1&&(o[c]=!(a[c]=h))}}else m=ge(m===a?m.splice(p,m.length):m),i?i(null,a,m,l):L.apply(a,m)}))}function me(e){for(var t,n,r,o=e.length,a=i.relative[e[0].type],s=a||i.relative[" "],l=a?1:0,u=de((function(e){return e===t}),s,!0),h=de((function(e){return R.call(t,e)>-1}),s,!0),f=[function(e,n,r){return!a&&(r||n!==c)||((t=n).nodeType?u(e,n,r):h(e,n,r))}];o>l;l++)if(n=i.relative[e[l].type])f=[de(pe(f),n)];else{if((n=i.filter[e[l].type].apply(null,e[l].matches))[b]){for(r=++l;o>r&&!i.relative[e[r].type];r++);return ve(l>1&&pe(f),l>1&&fe(e.slice(0,l-1)).replace(U,"$1"),n,r>l&&me(e.slice(l,r)),o>r&&me(e=e.slice(r)),o>r&&fe(e))}f.push(n)}return pe(f)}function ye(e,t){var n=0,o=t.length>0,a=e.length>0,s=function(s,l,u,f,d){var p,g,v,m=[],y=0,b="0",x=s&&[],_=null!=d,S=c,C=s||a&&i.find.TAG("*",d&&l.parentNode||l),k=w+=null==S?1:Math.random()||.1;for(_&&(c=l!==h&&l,r=n);null!=(p=C[b]);b++){if(a&&p){for(g=0;v=e[g++];)if(v(p,l,u)){f.push(p);break}_&&(w=k,r=++n)}o&&((p=!v&&p)&&y--,s&&x.push(p))}if(y+=b,o&&b!==y){for(g=0;v=t[g++];)v(x,m,l,u);if(s){if(y>0)for(;b--;)x[b]||m[b]||(m[b]=j.call(f));m=ge(m)}L.apply(f,m),_&&!s&&m.length>0&&y+t.length>1&&ae.uniqueSort(f)}return _&&(w=k,c=S),x};return o?re(s):s}function be(e,t,n,r){var o,a,l,c,u,h=he(e);if(!r&&1===h.length){if((a=h[0]=h[0].slice(0)).length>2&&"ID"===(l=a[0]).type&&9===t.nodeType&&!d&&i.relative[a[1].type]){if(!(t=i.find.ID(l.matches[0].replace(J,ee),t)[0]))return n;e=e.slice(a.shift().value.length)}for(o=G.needsContext.test(e)?0:a.length;o--&&(l=a[o],!i.relative[c=l.type]);)if((u=i.find[c])&&(r=u(l.matches[0].replace(J,ee),q.test(a[0].type)&&t.parentNode||t))){if(a.splice(o,1),!(e=r.length&&fe(a)))return L.apply(n,M.call(r,0)),n;break}}return s(e,h)(r,t,d,n,q.test(e)),n}function xe(){}s=ae.compile=function(e,t){var n,r=[],i=[],o=E[e+" "];if(!o){for(t||(t=he(e)),n=t.length;n--;)(o=me(t[n]))[b]?r.push(o):i.push(o);o=E(e,ye(i,r))}return o},i.pseudos.nth=i.pseudos.eq,i.filters=xe.prototype=i.pseudos,i.setFilters=new xe,u(),ae.attr=S.attr,S.find=ae,(S.expr=ae.selectors)[":"]=S.expr.pseudos,S.unique=ae.uniqueSort,S.text=ae.getText,S.isXMLDoc=ae.isXML,S.contains=ae.contains}(i);var ce=/Until$/,ue=/^(?:parents|prev(?:Until|All))/,he=/^.[^:#\[\.,]*$/,fe=S.expr.match.needsContext,de={children:!0,contents:!0,next:!0,prev:!0};function pe(e,t){do{e=e[t]}while(e&&1!==e.nodeType);return e}function ge(e,t,n){if(S.isFunction(t=t||0))return S.grep(e,(function(e,r){return!!t.call(e,r,e)===n}));if(t.nodeType)return S.grep(e,(function(e){return e===t===n}));if("string"==typeof t){var r=S.grep(e,(function(e){return 1===e.nodeType}));if(he.test(t))return S.filter(t,r,!n);t=S.filter(t,r)}return S.grep(e,(function(e){return S.inArray(e,t)>=0===n}))}function ve(e){var t=me.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}S.fn.extend({find:function(e){var t,n,r,i=this.length;if("string"!=typeof e)return r=this,this.pushStack(S(e).filter((function(){for(t=0;i>t;t++)if(S.contains(r[t],this))return!0})));for(n=[],t=0;i>t;t++)S.find(e,this[t],n);return(n=this.pushStack(i>1?S.unique(n):n)).selector=(this.selector?this.selector+" ":"")+e,n},has:function(e){var t,n=S(e,this),r=n.length;return this.filter((function(){for(t=0;r>t;t++)if(S.contains(this,n[t]))return!0}))},not:function(e){return this.pushStack(ge(this,e,!1))},filter:function(e){return this.pushStack(ge(this,e,!0))},is:function(e){return!!e&&("string"==typeof e?fe.test(e)?S(e,this.context).index(this[0])>=0:S.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){for(var n,r=0,i=this.length,o=[],a=fe.test(e)||"string"!=typeof e?S(e,t||this.context):0;i>r;r++)for(n=this[r];n&&n.ownerDocument&&n!==t&&11!==n.nodeType;){if(a?a.index(n)>-1:S.find.matchesSelector(n,e)){o.push(n);break}n=n.parentNode}return this.pushStack(o.length>1?S.unique(o):o)},index:function(e){return e?"string"==typeof e?S.inArray(this[0],S(e)):S.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){var n="string"==typeof e?S(e,t):S.makeArray(e&&e.nodeType?[e]:e),r=S.merge(this.get(),n);return this.pushStack(S.unique(r))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),S.fn.andSelf=S.fn.addBack,S.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null}
2,parents:function(e){return S.dir(e,"parentNode")},parentsUntil:function(e,t,n){return S.dir(e,"parentNode",n)},next:function(e){return pe(e,"nextSibling")},prev:function(e){return pe(e,"previousSibling")},nextAll:function(e){return S.dir(e,"nextSibling")},prevAll:function(e){return S.dir(e,"previousSibling")},nextUntil:function(e,t,n){return S.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return S.dir(e,"previousSibling",n)},siblings:function(e){return S.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return S.sibling(e.firstChild)},contents:function(e){return S.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:S.merge([],e.childNodes)}},(function(e,t){S.fn[e]=function(n,r){var i=S.map(this,t,n);return ce.test(e)||(r=n),r&&"string"==typeof r&&(i=S.filter(r,i)),i=this.length>1&&!de[e]?S.unique(i):i,this.length>1&&ue.test(e)&&(i=i.reverse()),this.pushStack(i)}})),S.extend({filter:function(e,t,n){return n&&(e=":not("+e+")"),1===t.length?S.find.matchesSelector(t[0],e)?[t[0]]:[]:S.find.matches(e,t)},dir:function(e,t,n){for(var r=[],i=e[t];i&&9!==i.nodeType&&(n===o||1!==i.nodeType||!S(i).is(n));)1===i.nodeType&&r.push(i),i=i[t];return r},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});var me="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ye=/ jQuery\d+="(?:null|\d+)"/g,be=RegExp("<(?:"+me+")[\\s/>]","i"),xe=/^\s+/,_e=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,we=/<([\w:]+)/,Se=/<tbody/i,Ce=/<|&#?\w+;/,ke=/<(?:script|style|link)/i,Oe=/^(?:checkbox|radio)$/i,Ee=/checked\s*(?:[^=]|=\s*.checked.)/i,Te=/^$|\/(?:java|ecma)script/i,Ae=/^true\/(.*)/,Pe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,je={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:S.support.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},Le=ve(c).appendChild(c.createElement("div"));function Me(e,t){return e.getElementsByTagName(t)[0]||e.appendChild(e.ownerDocument.createElement(t))}function Re(e){var t=e.getAttributeNode("type");return e.type=(t&&t.specified)+"/"+e.type,e}function De(e){var t=Ae.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Ie(e,t){for(var n,r=0;null!=(n=e[r]);r++)S._data(n,"globalEval",!t||S._data(t[r],"globalEval"))}function Ne(e,t){if(1===t.nodeType&&S.hasData(e)){var n,r,i,o=S._data(e),a=S._data(t,o),s=o.events;if(s)for(n in delete a.handle,a.events={},s)for(r=0,i=s[n].length;i>r;r++)S.event.add(t,n,s[n][r]);a.data&&(a.data=S.extend({},a.data))}}function Fe(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!S.support.noCloneEvent&&t[S.expando]){for(r in(i=S._data(t)).events)S.removeEvent(t,r,i.handle);t.removeAttribute(S.expando)}"script"===n&&t.text!==e.text?(Re(t).text=e.text,De(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),S.support.html5Clone&&e.innerHTML&&!S.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Oe.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}}function Be(e,t){var n,r,i=0,a=typeof e.getElementsByTagName!==l?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!==l?e.querySelectorAll(t||"*"):o;if(!a)for(a=[],n=e.childNodes||e;null!=(r=n[i]);i++)!t||S.nodeName(r,t)?a.push(r):S.merge(a,Be(r,t));return t===o||t&&S.nodeName(e,t)?S.merge([e],a):a}function Ue(e){Oe.test(e.type)&&(e.defaultChecked=e.checked)}je.optgroup=je.option,je.tbody=je.tfoot=je.colgroup=je.caption=je.thead,je.th=je.td,S.fn.extend({text:function(e){return S.access(this,(function(e){return e===o?S.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(e))}),null,e,arguments.length)},wrapAll:function(e){if(S.isFunction(e))return this.each((function(t){S(this).wrapAll(e.call(this,t))}));if(this[0]){var t=S(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e})).append(this)}return this},wrapInner:function(e){return S.isFunction(e)?this.each((function(t){S(this).wrapInner(e.call(this,t))})):this.each((function(){var t=S(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=S.isFunction(e);return this.each((function(n){S(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(){return this.parent().each((function(){S.nodeName(this,"body")||S(this).replaceWith(this.childNodes)})).end()},append:function(){return this.domManip(arguments,!0,(function(e){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&this.appendChild(e)}))},prepend:function(){return this.domManip(arguments,!0,(function(e){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&this.insertBefore(e,this.firstChild)}))},before:function(){return this.domManip(arguments,!1,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return this.domManip(arguments,!1,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},remove:function(e,t){for(var n,r=0;null!=(n=this[r]);r++)(!e||S.filter(e,[n]).length>0)&&(t||1!==n.nodeType||S.cleanData(Be(n)),n.parentNode&&(t&&S.contains(n.ownerDocument,n)&&Ie(Be(n,"script")),n.parentNode.removeChild(n)));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&S.cleanData(Be(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&S.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return S.clone(this,e,t)}))},html:function(e){return S.access(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(e===o)return 1===t.nodeType?t.innerHTML.replace(ye,""):o;if(!("string"!=typeof e||ke.test(e)||!S.support.htmlSerialize&&be.test(e)||!S.support.leadingWhitespace&&xe.test(e)||je[(we.exec(e)||["",""])[1].toLowerCase()])){e=e.replace(_e,"<$1></$2>");try{for(;r>n;n++)1===(t=this[n]||{}).nodeType&&(S.cleanData(Be(t,!1)),t.innerHTML=e);t=0}catch(c){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(e){return S.isFunction(e)||"string"==typeof e||(e=S(e).not(this).detach()),this.domManip([e],
2!0,(function(e){var t=this.nextSibling,n=this.parentNode;n&&(S(this).remove(),n.insertBefore(e,t))}))},detach:function(e){return this.remove(e,!0)},domManip:function(e,t,n){e=v.apply([],e);var r,i,a,s,l,c,u=0,h=this.length,f=this,d=h-1,p=e[0],g=S.isFunction(p);if(g||!(1>=h||"string"!=typeof p||S.support.checkClone)&&Ee.test(p))return this.each((function(r){var i=f.eq(r);g&&(e[0]=p.call(this,r,t?i.html():o)),i.domManip(e,t,n)}));if(h&&(r=(c=S.buildFragment(e,this[0].ownerDocument,!1,this)).firstChild,1===c.childNodes.length&&(c=r),r)){for(t=t&&S.nodeName(r,"tr"),a=(s=S.map(Be(c,"script"),Re)).length;h>u;u++)i=c,u!==d&&(i=S.clone(i,!0,!0),a&&S.merge(s,Be(i,"script"))),n.call(t&&S.nodeName(this[u],"table")?Me(this[u],"tbody"):this[u],i,u);if(a)for(l=s[s.length-1].ownerDocument,S.map(s,De),u=0;a>u;u++)i=s[u],Te.test(i.type||"")&&!S._data(i,"globalEval")&&S.contains(l,i)&&(i.src?S.ajax({url:i.src,type:"GET",dataType:"script",async:!1,global:!1,throws:!0}):S.globalEval((i.text||i.textContent||i.innerHTML||"").replace(Pe,"")));c=r=null}return this}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){S.fn[e]=function(e){for(var n,r=0,i=[],o=S(e),a=o.length-1;a>=r;r++)n=r===a?this:this.clone(!0),S(o[r])[t](n),m.apply(i,n.get());return this.pushStack(i)}})),S.extend({clone:function(e,t,n){var r,i,o,a,s,l=S.contains(e.ownerDocument,e);if(S.support.html5Clone||S.isXMLDoc(e)||!be.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(Le.innerHTML=e.outerHTML,Le.removeChild(o=Le.firstChild)),!(S.support.noCloneEvent&&S.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||S.isXMLDoc(e)))for(r=Be(o),s=Be(e),a=0;null!=(i=s[a]);++a)r[a]&&Fe(i,r[a]);if(t)if(n)for(s=s||Be(e),r=r||Be(o),a=0;null!=(i=s[a]);a++)Ne(i,r[a]);else Ne(e,o);return(r=Be(o,"script")).length>0&&Ie(r,!l&&Be(e,"script")),r=s=i=null,o},buildFragment:function(e,t,n,r){for(var i,o,a,s,l,c,u,h=e.length,f=ve(t),d=[],p=0;h>p;p++)if((o=e[p])||0===o)if("object"===S.type(o))S.merge(d,o.nodeType?[o]:o);else if(Ce.test(o)){for(s=s||f.appendChild(t.createElement("div")),l=(we.exec(o)||["",""])[1].toLowerCase(),u=je[l]||je._default,s.innerHTML=u[1]+o.replace(_e,"<$1></$2>")+u[2],i=u[0];i--;)s=s.lastChild;if(!S.support.leadingWhitespace&&xe.test(o)&&d.push(t.createTextNode(xe.exec(o)[0])),!S.support.tbody)for(i=(o="table"!==l||Se.test(o)?"<table>"!==u[1]||Se.test(o)?0:s:s.firstChild)&&o.childNodes.length;i--;)S.nodeName(c=o.childNodes[i],"tbody")&&!c.childNodes.length&&o.removeChild(c);for(S.merge(d,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=f.lastChild}else d.push(t.createTextNode(o));for(s&&f.removeChild(s),S.support.appendChecked||S.grep(Be(d,"input"),Ue),p=0;o=d[p++];)if((!r||-1===S.inArray(o,r))&&(a=S.contains(o.ownerDocument,o),s=Be(f.appendChild(o),"script"),a&&Ie(s),n))for(i=0;o=s[i++];)Te.test(o.type||"")&&n.push(o);return s=null,f},cleanData:function(e,t){for(var n,r,i,o,a=0,s=S.expando,c=S.cache,u=S.support.deleteExpando,h=S.event.special;null!=(n=e[a]);a++)if((t||S.acceptData(n))&&(o=(i=n[s])&&c[i])){if(o.events)for(r in o.events)h[r]?S.event.remove(n,r):S.removeEvent(n,r,o.handle);c[i]&&(delete c[i],u?delete n[s]:typeof n.removeAttribute!==l?n.removeAttribute(s):n[s]=null,p.push(i))}}});var ze,Ve,He,We=/alpha\([^)]*\)/i,Ge=/opacity\s*=\s*([^)]*)/,qe=/^(top|right|bottom|left)$/,Xe=/^(none|table(?!-c[ea]).+)/,Ye=/^margin/,$e=RegExp("^("+C+")(.*)$","i"),Ke=RegExp("^("+C+")(?!px)[a-z%]+$","i"),Ze=RegExp("^([+-])=("+C+")","i"),Qe={BODY:"block"},Je={position:"absolute",visibility:"hidden",display:"block"},et={letterSpacing:0,fontWeight:400},tt=["Top","Right","Bottom","Left"],nt=["Webkit","O","Moz","ms"];function rt(e,t){if(t in e)return t;for(var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=nt.length;i--;)if((t=nt[i]+n)in e)return t;return r}function it(e,t){return"none"===S.css(e=t||e,"display")||!S.contains(e.ownerDocument,e)}function ot(e,t){for(var n,r,i,o=[],a=0,s=e.length;s>a;a++)(r=e[a]).style&&(o[a]=S._data(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&it(r)&&(o[a]=S._data(r,"olddisplay",ct(r.nodeName)))):o[a]||(i=it(r),(n&&"none"!==n||!i)&&S._data(r,"olddisplay",i?n:S.css(r,"display"))));for(a=0;s>a;a++)(r=e[a]).style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}function at(e,t,n){var r=$e.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function st(e,t,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;4>o;o+=2)"margin"===n&&(a+=S.css(e,n+tt[o],!0,i)),r?("content"===n&&(a-=S.css(e,"padding"+tt[o],!0,i)),"margin"!==n&&(a-=S.css(e,"border"+tt[o]+"Width",!0,i))):(a+=S.
2css(e,"padding"+tt[o],!0,i),"padding"!==n&&(a+=S.css(e,"border"+tt[o]+"Width",!0,i)));return a}function lt(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=Ve(e),a=S.support.boxSizing&&"border-box"===S.css(e,"boxSizing",!1,o);if(0>=i||null==i){if((0>(i=He(e,t,o))||null==i)&&(i=e.style[t]),Ke.test(i))return i;r=a&&(S.support.boxSizingReliable||i===e.style[t]),i=parseFloat(i)||0}return i+st(e,t,n||(a?"border":"content"),r,o)+"px"}function ct(e){var t=c,n=Qe[e];return n||("none"!==(n=ut(e,t))&&n||((t=((ze=(ze||S("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(t.documentElement))[0].contentWindow||ze[0].contentDocument).document).write("<!doctype html><html><body>"),t.close(),n=ut(e,t),ze.detach()),Qe[e]=n),n}function ut(e,t){var n=S(t.createElement(e)).appendTo(t.body),r=S.css(n[0],"display");return n.remove(),r}S.fn.extend({css:function(e,t){return S.access(this,(function(e,t,n){var r,i,a={},s=0;if(S.isArray(t)){for(i=Ve(e),r=t.length;r>s;s++)a[t[s]]=S.css(e,t[s],!1,i);return a}return n!==o?S.style(e,t,n):S.css(e,t)}),e,t,arguments.length>1)},show:function(){return ot(this,!0)},hide:function(){return ot(this)},toggle:function(e){var t="boolean"==typeof e;return this.each((function(){(t?e:it(this))?S(this).show():S(this).hide()}))}}),S.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=He(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:S.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,a,s,l=S.camelCase(t),c=e.style;if(t=S.cssProps[l]||(S.cssProps[l]=rt(c,l)),s=S.cssHooks[t]||S.css
2Hooks[l],n===o)return s&&"get"in s&&(i=s.get(e,!1,r))!==o?i:c[t];if("string"===(a=typeof n)&&(i=Ze.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(S.css(e,t)),a="number"),!(null==n||"number"===a&&isNaN(n)||("number"!==a||S.cssNumber[l]||(n+="px"),S.support.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),s&&"set"in s&&(n=s.set(e,n,r))===o)))try{c[t]=n}catch(p){}}},css:function(e,t,n,r){var i,a,s,l=S.camelCase(t);return t=S.cssProps[l]||(S.cssProps[l]=rt(e.style,l)),(s=S.cssHooks[t]||S.cssHooks[l])&&"get"in s&&(a=s.get(e,!0,n)),a===o&&(a=He(e,t,r)),"normal"===a&&t in et&&(a=et[t]),""===n||n?(i=parseFloat(a),!0===n||S.isNumeric(i)?i||0:a):a},swap:function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in i=n.apply(e,r||[]),t)e.style[o]=a[o];return i}}),i.getComputedStyle?(Ve=function(e){return i.getComputedStyle(e,null)},He=function(e,t,n){var r,i,a,s=n||Ve(e),l=s?s.getPropertyValue(t)||s[t]:o,c=e.style;return s&&(""!==l||S.contains(e.ownerDocument,e)||(l=S.style(e,t)),Ke.test(l)&&Ye.test(t)&&(r=c.width,i=c.minWidth,a=c.maxWidth,c.minWidth=c.maxWidth=c.width=l,l=s.width,c.width=r,c.minWidth=i,c.maxWidth=a)),l}):c.documentElement.currentStyle&&(Ve=function(e){return e.currentStyle},He=function(e,t,n){var r,i,a,s=n||Ve(e),l=s?s[t]:o,c=e.style;return null==l&&c&&c[t]&&(l=c[t]),Ke.test(l)&&!qe.test(t)&&(r=c.left,(a=(i=e.runtimeStyle)&&i.left)&&(i.left
2=e.currentStyle.left),c.left="fontSize"===t?"1em":l,l=c.pixelLeft+"px",c.left=r,a&&(i.left=a)),""===l?"auto":l}),S.each(["height","width"],(function(e,t){S.cssHooks[t]={get:function(e,n,r){return n?0===e.offsetWidth&&Xe.test(S.css(e,"display"))?S.swap(e,Je,(function(){return lt(e,t,r)})):lt(e,t,r):o},set:function(e,n,r){var i=r&&Ve(e);return at(0,n,r?st(e,t,r,S.support.boxSizing&&"border-box"===S.css(e,"boxSizing",!1,i),i):0)}}})),S.support.opacity||(S.cssHooks.opacity={get:function(e,t){return Ge.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=S.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=r&&r.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===S.trim(o.replace(We,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||r&&!r.filter)||(n.filter=We.test(o)?o.replace(We,i):o+" "+i)}}),S((function(){S.support.reliableMarginRight||(S.cssHooks.marginRight={get:function(e,t){return t?S.swap(e,{display:"inline-block"},He,[e,"marginRight"]):o}}),!S.support.pixelPosition&&S.fn.position&&S.each(["top","left"],(function(e,t){S.cssHooks[t]={get:function(e,n){return n?(n=He(e,t),Ke.test(n)?S(e).position()[t]+"px":n):o}}}))})),S.expr&&S.expr.filters&&(S.expr.filters.hidden=function(e){return 0>=e.offsetWidth&&0>=e.offsetHeight||!S.support.reliableHiddenOffsets&&"none"===(e.style&&e.style.display||S.css(e,"display"))},S.expr.filters.visible=function(e){return!S.expr.filters.hidden(e)}),S.each({margin:"",padding:"",border:"Width"},(function(e,t){S.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];4>r;r++)i[e+tt[r]+t]=o[r]||o[r-2]||o[0];return i}},Ye.test(e)||(S.cssHooks[e+t].set=at)}));var ht=/%20/g,ft=/\[\]$/,dt=/\r?\n/g,pt=/^(?:submit|button|image|reset|file)$/i,gt=/^(?:input|select|textarea|keygen)/i;function vt(e,t,n,r){var i;if(S.isArray(t))S.each(t,(function(t,i){n||ft.test(e)?r(e,i):vt(e+"["+("object"==typeof i?t:"")+"]",i,n,r)}));else if(n||"object"!==S.type(t))r(e,t);else for(i in t)vt(e+"["+i+"]",t[i],n,r)}S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=S.prop(this,"elements");return e?S.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!S(this).is(":disabled")&>.test(this.nodeName)&&!pt.test(e)&&(this.checked||!Oe.test(e))})).map((function(e,t){var n=S(this).val();return null==n?null:S.isArray(n)?S.map(n,(function(e){return{name:t.name,value:e.replace(dt,"\r\n")}})):{name:t.name,value:n.replace(dt,"\r\n")}})).get()}}),S.param=function(e,t){var n,r=[],i=function(e,t){t=S.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(t===o&&(t=S.ajaxSettings&&S.ajaxSettings.traditional),S.isArray(e)||e.jquery&&!S.isPlainObject(e))S.each(e,(function(){i(this.name,this.value)}));else for(n in e)vt(n,e[n],t,i);return r.join("&").replace(ht,"+")},S.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),(function(e,t){S.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}})),S.fn.hover=function(e,t){return this.mouseenter(e).mouseleave(t||e)};var mt,yt,bt=S.now(),xt=/\?/,_t=/#.*$/,wt=/([?&])_=[^&]*/,St=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Ct=/^(?:GET|HEAD)$/,kt=/^\/\//,Ot=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,Et=S.fn.load,Tt={},At={},Pt="*/".concat("*");try{yt=u.href}catch(Jt){(yt=c.createElement("a")).href="",yt=yt.href}function jt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(k)||[];if(S.isFunction(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Lt(e,t,n,r){var i={},a=e===At;function s(l){var c;return i[l]=!0,S.each(e[l]||[],(function(e,l){var u=l(t,n,r);return"string"!=typeof u||a||i[u]?a?!(c=u):o:(t.dataTypes.unshift(u),s(u),!1)})),c}return s(t.dataTypes[0])||!i["*"]&&s("*")}function Mt(e,t){var n,r,i=S.ajaxSettings.flatOptions||{};for(r in t)t[r]!==o&&((i[r]?e:n||(n={}))[r]=t[r]);return n&&S.extend(!0,e,n),e}mt=Ot.exec(yt.toLowerCase())||[],S.fn.load=function(e,t,n){if("string"!=typeof e&&Et)return Et.apply(this,arguments);var r,i,a,s=this,l=e.indexOf(" ");return l>=0&&(r=e.slice(l,e.length),e=e.slice(0,l)),S.isFunction(t)?(n=t,t=o):t&&"object"==typeof t&&(a="POST"),s.length>0&&S.ajax({url:e,type:a,dataType:"html",data:t}).done((function(e){i=arguments,s.html(r?S("<div>").append(S.parseHTML(e)).find(r):e)})).complete(n&&function(e,t){s.each(n,i||[e.responseText,t,e])}),this},S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){S.fn[t]=function(e){return this.on(t,e)}})),S.each(["get","post"],(function(e,t){S[t]=function(e,n,r,i){return S.isFunction(n)&&(i=i||r,r=n,n=o),S.ajax({url:e,type:t,dataType:i,data:n,success:r})}})),S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:yt,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(mt[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Pt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":i.String,"text html":!0,"text json":S.parseJSON,"text xml":S.parseXML}
2,flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Mt(Mt(e,S.ajaxSettings),t):Mt(S.ajaxSettings,e)},ajaxPrefilter:jt(Tt),ajaxTransport:jt(At),ajax:function(e,t){"object"==typeof e&&(t=e,e=o);var n,r,i,a,s,l,c,u,h=S.ajaxSetup({},t=t||{}),f=h.context||h,d=h.context&&(f.nodeType||f.jquery)?S(f):S.event,p=S.Deferred(),g=S.Callbacks("once memory"),v=h.statusCode||{},m={},y={},b=0,x="canceled",_={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!u)for(u={};t=St.exec(a);)u[t[1].toLowerCase()]=t[2];t=u[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=y[n]=y[n]||e,m[e]=t),this},overrideMimeType:function(e){return b||(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>b)for(t in e)v[t]=[v[t],e[t]];else _.always(e[_.status]);return this},abort:function(e){var t=e||x;return c&&c.abort(t),w(0,t),this}};if(p.promise(_).complete=g.add,_.success=_.done,_.error=_.fail,h.url=((e||h.url||yt)+"").replace(_t,"").replace(kt,mt[1]+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=S.trim(h.dataType||"*").toLowerCase().match(k)||[""],null==h.crossDomain&&(n=Ot.exec(h.url.toLowerCase()),h.crossDomain=!(!n||n[1]===mt[1]&&n[2]===mt[2]&&(n[3]||("http:"===n[1]?80:443))==(mt[3]||("http:"===mt[1]?80:443)))),h.data&&h.processData&&"string"!=typeof h.data&&(h.data=S.param(h.data,h.traditional)),Lt(Tt,h,t,_),2===b)return _;for(r in(l=h.global)&&0===S.active++&&S.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Ct.test(h.type),i=h.url,h.hasContent||(h.data&&(i=h.url+=(xt.test(i)?"&":"?")+h.data,delete h.data),!1===h.cache&&(h.url=wt.test(i)?i.replace(wt,"$1_="+bt++):i+(xt.test(i)?"&":"?")+"_="+bt++)),h.ifModified&&(S.lastModified[i]&&_.setRequestHeader("If-Modified-Since",S.lastModified[i]),S.etag[i]&&_.setRequestHeader("If-None-Match",S.etag[i])),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&_.setRequestHeader("Content-Type",h.contentType),_.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Pt+"; q=0.01":""):h.accepts["*"]),h.headers)_.setRequestHeader(r,h.headers[r]);if(h.beforeSend&&(!1===h.beforeSend.call(f,_,h)||2===b))return _.abort();for(r in x="abort",{success:1,error:1,complete:1})_[r](h[r]);if(c=Lt(At,h,t,_)){_.readyState=1,l&&d.trigger("ajaxSend",[_,h]),h.async&&h.timeout>0&&(s=setTimeout((function(){_.abort("timeout")}),h.timeout));try{b=1,c.send(m,w)}catch(T){if(!(2>b))throw T;w(-1,T)}}else w(-1,"No Transport");function w(e,t,n,r){var u,m,y,x,w,C=t;2!==b&&(b=2,s&&clearTimeout(s),c=o,a=r||"",_.readyState=e>0?4:0,n&&(x=function(e,t,n){var r,i,a,s,l=e.contents,c=e.dataTypes,u=e.responseFields;for(s in u)s in n&&(t[u[s]]=n[s]);for(;"*"===c[0];)c.shift(),i===o&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(s in l)if(l[s]&&l[s].test(i)){c.unshift(s);break}if(c[0]in n)a=c[0];else{for(s in n){if(!c[0]||e.converters[s+" "+c[0]]){a=s;break}r||(r=s)}a=a||r}return a?(a!==c[0]&&c.unshift(a),n[a]):o}(h,_,n)),e>=200&&300>e||304===e?(h.ifModified&&((w=_.getResponseHeader("Last-Modified"))&&(S.lastModified[i]=w),(w=_.getResponseHeader("etag"))&&(S.etag[i]=w)),204===e?(u=!0,C="nocontent"):304===e?(u=!0,C="notmodified"):(C=(u=function(e,t){var n,r,i,o,a={},s=0,l=e.dataTypes.slice(),c=l[0];if(e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l[1])for(i in e.converters)a[i.toLowerCase()]=e.converters[i];for(;r=l[++s];)if("*"!==r){if("*"!==c&&c!==r){if(!(i=a[c+" "+r]||a["* "+r]))for(n in a)if((o=n.split(" "))[1]===r&&(i=a[c+" "+o[0]]||a["* "+o[0]])){!0===i?i=a[n]:!0!==a[n]&&(r=o[0],l.splice(s--,0,r));break}if(!0!==i)if(i&&e.throws)t=i(t);else try{t=i(t)}catch(u){return{state:"parsererror",error:i?u:"No conversion from "+c+" to "+r}}}c=r}return{state:"success",data:t}}(h,x)).state,m=u.data,u=!(y=u.error))):(y=C,(e||!C)&&(C="error",0>e&&(e=0))),_.status=e,_.statusText=(t||C)+"",u?p.resolveWith(f,[m,C,_]):p.rejectWith(f,[_,C,y]),_.statusCode(v),v=o,l&&d.trigger(u?"ajaxSuccess":"ajaxError",[_,h,u?m:y]),g.fireWith(f,[_,C]),l&&(d.trigger("ajaxComplete",[_,h]),--S.active||S.event.trigger("ajaxStop")))}return _},getScript:function(e,t){return S.get(e,o,t,"script")},getJSON:function(e,t,n){return S.get(e,t,n,"json")}}),S.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return S.globalEval(e),e}}}
2),S.ajaxPrefilter("script",(function(e){e.cache===o&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)})),S.ajaxTransport("script",(function(e){if(e.crossDomain){var t,n=c.head||S("head")[0]||c.documentElement;return{send:function(r,i){(t=c.createElement("script")).async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,n){(n||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,n||i(200,"success"))},n.insertBefore(t,n.firstChild)},abort:function(){t&&t.onload(o,!0)}}}}));var Rt=[],Dt=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Rt.pop()||S.expando+"_"+bt++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",(function(e,t,n){var r,a,s,l=!1!==e.jsonp&&(Dt.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Dt.test(e.data)&&"data");return l||"jsonp"===e.dataTypes[0]?(r=e.jsonpCallback=S.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,l?e[l]=e[l].replace(Dt,"$1"+r):!1!==e.jsonp&&(e.url+=(xt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return s||S.error(r+" was not called"),s[0]},e.dataTypes[0]="json",a=i[r],i[r]=function(){s=arguments},n.always((function(){i[r]=a,e[r]&&(e.jsonpCallback=t.jsonpCallback,Rt.push(r)),s&&S.isFunction(a)&&a(s[0]),s=a=o})),"script"):o}));var It,Nt,Ft=0,Bt=i.ActiveXObject&&function(){var e;for(e in It)It[e](o,!0)};function Ut(){try{return new i.XMLHttpRequest}catch(o){}}S.ajaxSettings.xhr=i.ActiveXObject?function(){return!this.isLocal&&Ut()||function(){try{return new i.ActiveXObject("Microsoft.XMLHTTP")}catch(o){}}()}:Ut,Nt=S.ajaxSettings.xhr(),S.support.cors=!!Nt&&"withCredentials"in Nt,(Nt=S.support.ajax=!!Nt)&&S.ajaxTransport((function(e){var t;if(!e.crossDomain||S.support.cors)return{send:function(n,r){var a,s,l=e.xhr();if(e.username?l.open(e.type,e.url,e.async,e.username,e.password):l.open(e.type,e.url,e.async),e.xhrFields)for(s in e.xhrFields)l[s]=e.xhrFields[s];e.mimeType&&l.overrideMimeType&&l.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");try{for(s in n)l.setRequestHeader(s,n[s])}catch(d){}l.send(e.hasContent&&e.data||null),t=function(n,i){var s,c,u,h;try{if(t&&(i||4===l.readyState))if(t=o,a&&(l.onreadystatechange=S.noop,Bt&&delete It[a]),i)4!==l.readyState&&l.abort();else{h={},s=l.status,c=l.getAllResponseHeaders(),"string"==typeof l.responseText&&(h.text=l.responseText);try{u=l.statusText}catch(v){u=""}s||!e.isLocal||e.crossDomain?1223===s&&(s=204):s=h.text?200:404}}catch(m){i||r(-1,m)}h&&r(s,u,h,c)},e.async?4===l.readyState?setTimeout(t):(a=++Ft,Bt&&(It||(It={},S(i).unload(Bt)),It[a]=t),l.onreadystatechange=t):t()},abort:function(){t&&t(o,!0)}}}));var zt,Vt,Ht=/^(?:toggle|show|hide)$/,Wt=RegExp("^(?:([+-])=|)("+C+")([a-z%]*)$","i"),Gt=/queueHooks$/,qt=[function(e,t,n){var r,i,o,a,s,l,c,u,h,f=this,d=e.style,p={},g=[],v=e.nodeType&&it(e);for(i in n.queue||(null==(u=S._queueHooks(e,"fx")).unqueued&&(u.unqueued=0,h=u.empty.fire,u.empty.fire=function(){u.unqueued||h()}),u.unqueued++,f.always((function(){f.always((function(){u.unqueued--,S.queue(e,"fx").length||u.empty.fire()}))}))),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],"inline"===S.css(e,"display")&&"none"===S.css(e,"float")&&(S.support.inlineBlockNeedsLayout&&"inline"!==ct(e.nodeName)?d.zoom=1:d.display="inline-block")),n.overflow&&(d.overflow="hidden",S.support.shrinkWrapBlocks||f.always((function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]}))),t)if(a=t[i],Ht.exec(a)){if(delete t[i],l=l||"toggle"===a,a===(v?"hide":"show"))continue;g.push(i)}if(o=g.length){"hidden"in(s=S._data(e,"fxshow")||S._data(e,"fxshow",{}))&&(v=s.hidden),l&&(s.hidden=!v),v?S(e).show():f.done((function(){S(e).hide()})),f.done((function(){var t;for(t in S._removeData(e,"fxshow"),p)S.style(e,t,p[t])}));for(i=0;o>i;i++)r=g[i],c=f.createTween(r,v?s[r]:0),p[r]=s[r]||S.style(e,r),r in s||(s[r]=c.start,v&&(c.end=c.start,c.start="width"===r||"he
2ight"===r?1:0))}}],Xt={"*":[function(e,t){var n,r,i=this.createTween(e,t),o=Wt.exec(t),a=i.cur(),s=+a||0,l=1,c=20;if(o){if(n=+o[2],"px"!==(r=o[3]||(S.cssNumber[e]?"":"px"))&&s){s=S.css(i.elem,e,!0)||n||1;do{s/=l=l||".5",S.style(i.elem,e,s+r)}while(l!==(l=i.cur()/a)&&1!==l&&--c)}i.unit=r,i.start=s,i.end=o[1]?s+(o[1]+1)*n:n}return i}]};function Yt(){return setTimeout((function(){zt=o})),zt=S.now()}function $t(e,t,n){var r,i,o=0,a=qt.length,s=S.Deferred().always((function(){delete l.elem})),l=function(){if(i)return!1;for(var t=zt||Yt(),n=Math.max(0,c.startTime+c.duration-t),r=1-(n/c.duration||0),o=0,a=c.tweens.length;a>o;o++)c.tweens[o].run(r);return s.notifyWith(e,[c,r,n]),1>r&&a?n:(s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:S.extend({},t),opts:S.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:zt||Yt(),duration:n.duration,tweens:[],createTween:function(t,n){var r=S.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)c.tweens[n].run(1);return t?s.resolveWith(e,[c,t]):s.rejectWith(e,[c,t]),this}}),u=c.props;for(function(e,t){var n,r,i,o,a;for(i in e)if(o=t[r=S.camelCase(i)],n=e[i],S.isArray(n)&&(o=n[1],n=e[i]=n[0]),i!==r&&(e[r]=n,delete e[i]),(a=S.cssHooks[r])&&"expand"in a)for(i in n=a.expand(n),delete e[r],n)i in e||(e[i]=n[i],t[i]=o);else t[r]=o}(u,c.opts.specialEasing);a>o;o++)if(r=qt[o].call(c,e,u,c.opts))return r;return function(e,t){S.each(t,(function(t,n){for(var r=(Xt[t]||[]).concat(Xt["*"]),i=0,o=r.length;o>i;i++)if(r[i].call(e,t,n))return}))}(c,u),S.isFunction(c.opts.start)&&c.opts.start.call(e,c),S.fx.timer(S.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function Kt(e,t,n,r,i){return new Kt.prototype.init(e,t,n,r,i)}function Zt(e,t){var n,r={height:e},i=0;for(t=t?1:0;4>i;i+=2-t)r["margin"+(n=tt[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function Qt(e){return S.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}S.Animation=S.extend($t,{tweener:function(e,t){S.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,r=0,i=e.length;i>r;r++)n=e[r],Xt[n]=Xt[n]||[],Xt[n].unshift(t)},prefilter:function(e,t){t?qt.unshift(e):qt.push(e)}}),S.Tween=Kt,Kt.prototype={constructor:Kt,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(S.cssNumber[n]?"":"px")},cur:function(){var e=Kt.propHooks[this.prop];return e&&e.get?e.get(this):Kt.propHooks._default.get(this)},run:function(e){var t,n=Kt.propHooks[this.prop];return this.pos=t=this.options.duration?S.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Kt.propHooks._default.set(this),this}},Kt.prototype.init.prototype=Kt.prototype,Kt.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=S.css(e.elem,e.prop,""))&&"auto"!==t?t:0:e.elem[e.prop]},set:function(e){S.fx.step[e.prop]?S.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[S.cssProps[e.prop]]||S.cssHooks[e.prop])?S.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},Kt.propHooks.scrollTop=Kt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},S.each(["toggle","show","hide"],(function(e,t){var n=S.fn[t];S.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(Zt(t,!0),e,r,i)}})),S.fn.extend({fadeTo:function(e,t,n,r){return this.filter(it).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=S.isEmptyObject(e),o=S.speed(t,n,r),a=function t(){var n=$t(this,S.extend({},e),o);t.finish=function(){n.stop(!0)},(i||S._data(this,"finish"))&&n.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=o),t&&!1!==e&&this.queue(e||"fx",[]),this.each((function(){var t=!0,i=null!=e&&e+"queueHooks",o=S.timers,a=S._data(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&Gt.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));(t||!n)&&S.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=S._data(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=S.timers,a=r?r.length:0;for(n.finish=!0,S.queue(this,e,[]),i&&i.cur&&i.cur.finish&&i.cur.finish.call(this),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1)
2);for(t=0;a>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),S.each({slideDown:Zt("show"),slideUp:Zt("hide"),slideToggle:Zt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){S.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),S.speed=function(e,t,n){var r=e&&"object"==typeof e?S.extend({},e):{complete:n||!n&&t||S.isFunction(e)&&e,duration:e,easing:n&&t||t&&!S.isFunction(t)&&t};return r.duration=S.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in S.fx.speeds?S.fx.speeds[r.duration]:S.fx.speeds._default,(null==r.queue||!0===r.queue)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){S.isFunction(r.old)&&r.old.call(this),r.queue&&S.dequeue(this,r.queue)},r},S.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},S.timers=[],(S.fx=Kt.prototype.init).tick=function(){var e,t=S.timers,n=0;for(zt=S.now();t.length>n;n++)(e=t[n])()||t[n]!==e||t.splice(n--,1);t.length||S.fx.stop(),zt=o},S.fx.timer=function(e){e()&&S.timers.push(e)&&S.fx.start()},S.fx.interval=13,S.fx.start=function(){Vt||(Vt=setInterval(S.fx.tick,S.fx.interval))},S.fx.stop=function(){clearInterval(Vt),Vt=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fx.step={},S.expr&&S.expr.filters&&(S.expr.filters.animated=function(e){return S.grep(S.timers,(function(t){return e===t.elem})).length}),S.fn.offset=function(e){if(arguments.length)return e===o?this:this.each((function(t){S.offset.setOffset(this,e,t)}));var t,n,r={top:0,left:0},i=this[0],a=i&&i.ownerDocument;return a?(t=a.documentElement,S.contains(t,i)?(typeof i.getBoundingClientRect!==l&&(r=i.getBoundingClientRect()),n=Qt(a),{top:r.top+(n.pageYOffset||t.scrollTop)-(t.clientTop||0),left:r.left+(n.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):r):void 0},S.offset={setOffset:function(e,t,n){var r=S.css(e,"position");"static"===r&&(e.style.position="relative");var i,o,a=S(e),s=a.offset(),l=S.css(e,"top"),c=S.css(e,"left"),u={},h={};("absolute"===r||"fixed"===r)&&S.inArray("auto",[l,c])>-1?(i=(h=a.position()).top,o=h.left):(i=parseFloat(l)||0,o=parseFloat(c)||0),S.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(u.top=t.top-s.top+i),null!=t.left&&(u.left=t.left-s.left+o),"using"in t?t.using.call(e,u):a.css(u)}},S.fn.extend({position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===S.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),S.nodeName(e[0],"html")||(n=e.offset()),n.top+=S.css(e[0],"borderTopWidth",!0),n.left+=S.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-S.css(r,"marginTop",!0),left:t.left-n.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent||c.documentElement;e&&!S.nodeName(e,"html")&&"static"===S.css(e,"position");)e=e.offsetParent;return e||c.documentElement}))}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n=/Y/.test(t);S.fn[e]=function(r){return S.access(this,(function(e,r,i){var a=Qt(e);return i===o?a?t in a?a[t]:a.document.documentElement[r]:e[r]:(a?a.scrollTo(n?S(a).scrollLeft():i,n?i:S(a).scrollTop()):e[r]=i,o)}),e,r,arguments.length,null)}})),S.each({Height:"height",Width:"width"},(function(e,t){S.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){S.fn[r]=function(r,i){var a=arguments.length&&(n||"boolean"!=typeof r),s=n||(!0===r||!0===i?"margin":"border");return S.access(this,(function(t,n,r){var i;return S.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):r===o?S.css(t,n,s):S.style(t,n,r,s)}),t,a?r:o,a,null)}}))})),i.jQuery=i.$=S,n(365).jQuery&&(void 0===(r=function(){return S}.apply(t,[]))||(e.exports=r))}(window)},,,,,,,,,,function(e,t,n){"use strict";var r=n(164),i=60103,o=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,s=60110,l=60112;t.Suspense=60113;var c=60115,u=60116;if("function"===typeof Symbol&&Symbol.for){var h=Symbol.for;i=h("react.element"),o=h("react.portal"),t.Fragment=h("react.fragment"),t.StrictMode=h("react.strict_mode"),t.Profiler=h("react.profiler"),a=h("react.provider"),s=h("react.context"),l=h("react.forward_ref"),t.Suspense=h("react.suspense"),c=h("react.memo"),u=h("react.lazy")}var f="function"===typeof Symbol&&Symbol.iterator;function d(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}function m(){}function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(d(85));this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},m.prototype=v.prototype;var b=y.prototype=new m;b.constructor=y,r(b,v.prototype),b.isPureReactComponent=!0;var x={current:null},_=Object.prototype.hasOwnProperty,w={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,n){var r,o={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)_.call(t,r)&&!w.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:i,type:e,key:a,ref:s,props:o,_owner:x.current}}function C(e){return"object"===typeof e&&null!==e&&e.$$typeof===i}var k=/\/+/g;function O(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function E(e,t,n,r,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case i:case o:l=!0}}if(l)return a=a(l=e),e=""===r?"."+O(l,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(k,"$&/")+"/"),E(a,t,n,"",(function(e){return e}))):null!=a&&(C(a)&&(a=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(k,"$&/")+"/")+e)),t.push(a)),1;if(l=0,r=""===r?".":r+":",Array.isArray(e))for(var c=0;c<e.length;c++){var u=r+O(s=e[c],c);l+=E(s,t,n,u,a)}else if("function"===typeof(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e)))for(e=u.call(e),c=0;!(s=e.next()).done;)l+=E(s=s.value,t,n,u=r+O(s,c++),a);else if("object"===s)throw t=""+e,Error(d(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function T(e,t,n){if(null==e)return e;var r=[],i=0;return E(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function A(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var P={current:null};function j(){var e=P.current;if(null===e)throw Error(d(321));return e}var L={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:x,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:T,forEach:function(e,t,n){T(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return T(e,(function(){t++})),t},toArray:function(e){return T(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error(d(143));return e}}
vendor: 46,708 bytes, line 2
2,t.Component=v,t.PureComponent=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(d(267,e));var o=r({},e.props),a=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=x.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)_.call(t,u)&&!w.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){c=Array(u);for(var h=0;h<u;h++)c[h]=arguments[h+2];o.children=c}return{$$typeof:i,type:e.type,key:a,ref:s,props:o,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:A}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return j().useCallback(e,t)},t.useContext=function(e,t){return j().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return j().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return j().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return j().useLayoutEffect(e,t)},t.useMemo=function(e,t){return j().useMemo(e,t)},t.useReducer=function(e,t,n){return j().useReducer(e,t,n)},t.useRef=function(e){return j().useRef(e)},t.useState=function(e){return j().useState(e)},t.version="17.0.2"},function(e,t,n){"use strict";var r=n(0),i=n(164),o=n(287);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var s=new Set,l={};function c(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(l[e]=t,e=0;e<t.length;e++)s.add(t[e])}var h=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,d=Object.prototype.hasOwnProperty,p={},g={};function v(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){m[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];m[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){m[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){m[e]=new v(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){m[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){m[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){m[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){m[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){m[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function x(e,t,n,r){var i=m.hasOwnProperty(t)?m[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!d.call(g,e)||!d.call(p,e)&&(f.test(e)?g[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,b);m[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,b);m[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,b);m[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var _=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=60103,S=60106,C=60107,k=60108,O=60114,E=60109,T=60110,A=60112,P=60113,j=60120,L=60115,M=60116,R=60121,D=60128,I=60129,N=60130,F=60131;if("function"===typeof Symbol&&Symbol.for){var B=Symbol.for;w=B("react.element"),S=B("react.portal"),C=B("react.fragment"),k=B("react.strict_mode"),O=B("react.profiler"),E=B("react.provider"),T=B("react.context"),A=B("react.forward_ref"),P=B("react.suspense"),j=B("react.suspense_list"),L=B("react.memo"),M=B("react.lazy"),R=B("react.block"),B("react.scope"),D=B("react.opaque.id"),I=B("react.debug_trace_mode"),N=B("react.offscreen"),F=B("react.legacy_hidden")}var U,z="function"===typeof Symbol&&Symbol.iterator;function V(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=z&&e[z]||e["@@iterator"])?e:null}function H(e){if(void 0===U)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);U=t&&t[1]||""}return"\n"+U+e}var W=!1;function G(e,t){if(!e||W)return"";W=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(l){var r=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){r=l}e.call(t.prototype)}else{try{throw Error()}catch(l){r=l}e()}}catch(l){if(l&&r&&"string"===typeof l.stack){for(var i=l.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s])return"\n"+i[a].replace(" at new "," at ")}while(1<=a&&0<=s);break}}}finally{W=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?H(e):""}function q(e){switch(e.tag){case 5:return H(e.type);case 16:return H("Lazy");case 13:return H("Suspense");case 19:return H("SuspenseList");case 0:case 2:case 15:return e=G(e.type,!1);case 11:return e=G(e.type.render,!1);case 22:return e=G(e.type._render,!1);case 1:return e=G(e.type,!0);default:return""}}function X(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case C:return"Fragment";case S:return"Portal";case O:return"Profiler";case k:return"StrictMode";case P:return"Suspense";case j:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case E:return(e._context.displayName||"Context")+".Provider";case A:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case L:return X(e.type);case R:return X(e._render);case M:t=e._payload,e=e._init;try{return X(e(t))}catch(n){}}return null}function Y(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function $(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=$(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Z(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Q(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Y(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&x(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=Y(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ie(e,t.type,n):t.hasOwnProperty("defaultValue")&&ie(e,t.type,Y(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ie(e,t,n){"number"===t&&Q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function oe(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ae(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Y(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function se(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function le(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Y(n)}}function ce(e,t){var n=Y(t.value),r=Y(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ue(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var he="http://www.w3.org/1999/xhtml",fe="http://www.w3.org/2000/svg";function de(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function pe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?de(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ge,ve,me=(ve=function(e,t){if(e.namespaceURI!==fe||"innerHTML"in e)e.innerHTML=t;else{for((ge=ge||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ge.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ve(e,t)}))}:ve);function ye(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var be={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},xe=["Webkit","ms","Moz","O"];function _e(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||be.hasOwnProperty(e)&&be[e]?(""+t).trim():t+"px"}function we(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=_e(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(be).forEach((function(e){xe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),be[t]=be[e]}))}));var Se=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ce(e,t){if(t){if(Se[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62))}}function ke(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Oe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ee=null,Te=null,Ae=null;function Pe(e){if(e=ei(e)){if("function"!==typeof Ee)throw Error(a(280));var t=e.stateNode;t&&(t=ni(t),Ee(e.stateNode,e.type,t))}}function je(e){Te?Ae?Ae.push(e):Ae=[e]:Te=e}function Le(){if(Te){var e=Te,t=Ae;if(Ae=Te=null,Pe(e),t)for(e=0;e<t.length;e++)Pe(t[e])}}function Me(e,t){return e(t)}function Re(e,t,n,r,i){return e(t,n,r,i)}function De(){}var Ie=Me,Ne=!1,Fe=!1;function Be(){null===Te&&null===Ae||(De(),Le())}function Ue(e,t){var n=e.stateNode;if(null===n)return null;var r=ni(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(a(231,t,typeof n));return n}var ze=!1;if(h)try{var Ve={};Object.defineProperty(Ve,"passive",{get:function(){ze=!0}}),window.addEventListener("test",Ve,Ve),window.removeEventListener("test",Ve,Ve)}catch(ve){ze=!1}function He(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var We=!1,Ge=null,qe=!1,Xe=null,Ye={onError:function(e){We=!0,Ge=e}};function $e(e,t,n,r,i,o,a,s,l){We=!1,Ge=null,He.apply(Ye,arguments)}function Ke(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ze(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Qe(e){if(Ke(e)!==e)throw Error(a(188))}function Je(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ke(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Qe(i),e;if(o===r)return Qe(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function et(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var tt,nt,rt,it,ot=!1,at=[],st=null,lt=null,ct=null,ut=new Map,ht=new Map,ft=[],dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function pt(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[r]}}function gt(e,t){switch(e){case"focusin":case"focusout":st=null;break;case"dragenter":case"dragleave":lt=null;break;case"mouseover":case"mouseout":ct=null;break;case"pointerover":case"pointerout":ut.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ht.delete(t.pointerId)}}function vt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e=pt(t,n,r,i,o),null!==t&&(null!==(t=ei(t))&&nt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function mt(e){var t=Jr(e.target);if(null!==t){var n=Ke(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ze(n)))return e.blockedOn=t,void it(e.lanePriority,(function(){o.unstable_runWithPriority(e.priority,(function(){rt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function yt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ei(n))&&nt(t),e.blockedOn=n,!1;t.shift()}return!0}function bt(e,t,n){yt(e)&&n.delete(t)}function xt(){for(ot=!1;0<at.length;){var e=at[0];if(null!==e.blockedOn){null!==(e=ei(e.blockedOn))&&tt(e);break}for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&at.shift()}null!==st&&yt(st)&&(st=null),null!==lt&&yt(lt)&&(lt=null),null!==ct&&yt(ct)&&(ct=null),ut.forEach(bt),ht.forEach(bt)}function _t(e,t){e.blockedOn===t&&(e.blockedOn=null,ot||(ot=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,xt)))}function wt(e){function t(t){return _t(t,e)}if(0<at.length){_t(at[0],e);for(var n=1;n<at.length;n++){var r=at[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==st&&_t(st,e),null!==lt&&_t(lt,e),null!==ct&&_t(ct,e),ut.forEach(t),ht.forEach(t),n=0;n<ft.length;n++)(r=ft[n]).blockedOn===e&&(r.blockedOn=null);for(;0<ft.length&&null===(n=ft[0]).blockedOn;)mt(n),null===n.blockedOn&&ft.shift()}function St(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ct={animationend:St("Animation","AnimationEnd"),animationiteration:St("Animation","AnimationIteration"),animationstart:St("Animation","AnimationStart"),transitionend:St("Transition","TransitionEnd")},kt={},Ot={};function Et(e){if(kt[e])return kt[e];if(!Ct[e])return e;var t,n=Ct[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ot)return kt[e]=n[t];return e}h&&(Ot=document.createElement("div").style,"AnimationEvent"in window||(delete Ct.animationend.animation,delete Ct.animationiteration.animation,delete Ct.animationstart.animation),"TransitionEvent"in window||delete Ct.transitionend.transition);var Tt=Et("animationend"),At=Et("animationiteration"),Pt=Et("animationstart"),jt=Et("transitionend"),Lt=new Map,Mt=new Map,Rt=["abort","abort",Tt,"animationEnd",At,"animationIteration",Pt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",jt,"transitionEnd","waiting","waiting"];function Dt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),Mt.set(r,t),Lt.set(r,i),c(i,[r])}}(0,o.unstable_now)();var It=8;function Nt(e){if(0!==(1&e))return It=15,1;if(0!==(2&e))return It=14,2;if(0!==(4&e))return It=13,4;var t=24&e;return 0!==t?(It=12,t):0!==(32&e)?(It=11,32):0!==(t=192&e)?(It=10,t):0!==(256&e)?(It=9,256):0!==(t=3584&e)?(It=8,t):0!==(4096&e)?(It=7,4096):0!==(t=4186112&e)?(It=6,t):0!==(t=62914560&e)?(It=5,t):67108864&e?(It=4,67108864):0!==(134217728&e)?(It=3,134217728):0!==(t=805306368&e)?(It=2,t):0!==(1073741824&e)?(It=1,1073741824):(It=8,e)}function Ft(e,t){var n=e.pendingLanes;if(0===n)return It=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(0!==o)r=o,i=It=15;else if(0!==(o=134217727&n)){var l=o&~a;0!==l?(r=Nt(l),i=It):0!==(s&=o)&&(r=Nt(s),i=It)}else 0!==(o=n&~a)?(r=Nt(o),i=It):0!==s&&(r=Nt(s),i=It);if(0===r)return 0;if(r=n&((0>(r=31-Wt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0===(t&a)){if(Nt(t),i<=It)return t;It=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-Wt(t)),r|=e[n],t&=~i;return r}function Bt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ut(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=zt(24&~t))?Ut(10,t):e;case 10:return 0===(e=zt(192&~t))?Ut(8,t):e;case 8:return 0===(e=zt(3584&~t))&&(0===(e=zt(4186112&~t))&&(e=512)),e;case 2:return 0===(t=zt(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function zt(e){return e&-e}function Vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ht(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Wt(t)]=n}var Wt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Gt(e)/qt|0)|0},Gt=Math.log,qt=Math.LN2;var Xt=o.unstable_UserBlockingPriority,Yt=o.unstable_runWithPriority,$t=!0;function Kt(e,t,n,r){Ne||De();var i=Qt,o=Ne;Ne=!0;try{Re(i,e,t,n,r)}finally{(Ne=o)||Be()}}function Zt(e,t,n,r){Yt(Xt,Qt.bind(null,e,t,n,r))}function Qt(e,t,n,r){var i;if($t)if((i=0===(4&t))&&0<at.length&&-1<dt.indexOf(e))e=pt(null,e,t,n,r),at.push(e);else{var o=Jt(e,t,n,r);if(null===o)i&>(e,r);else{if(i){if(-1<dt.indexOf(e))return e=pt(o,e,t,n,r),void at.push(e);if(function(e,t,n,r,i){switch(t){case"focusin":return st=vt(st,e,t,n,r,i),!0;case"dragenter":return lt=vt(lt,e,t,n,r,i),!0;case"mouseover":return ct=vt(ct,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return ut.set(o,vt(ut.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,ht.set(o,vt(ht.get(o)||null,e,t,n,r,i)),!0}return!1}(o,e,t,n,r))return;gt(e,r)}Lr(e,t,r,null,n)}}}function Jt(e,t,n,r){var i=Oe(r);if(null!==(i=Jr(i))){var o=Ke(i);if(null===o)i=null;else{var a=o.tag;if(13===a){if(null!==(i=Ze(o)))return i;i=null}else if(3===a){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return Lr(e,t,r,i,n),null}var en=null,tn=null,nn=null;function rn(){if(nn)return nn;var e,t,n=tn,r=n.length,i="value"in en?en.value:en.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return nn=i.slice(e,1<t?1-t:void 0)}function on(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function an(){return!0}function sn(){return!1}function ln(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?an:sn,this.isPropagationStopped=sn,this}return i(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=an)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=an)},persist:function(){},isPersistent:an}),t}var cn,un,hn,fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dn=ln(fn),pn=i({},fn,{view:0,detail:0}),gn=ln(pn),vn=i({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==hn&&(hn&&"mousemove"===e.type?(cn=e.screenX-hn.screenX,un=e.screenY-hn.screenY):un=cn=0,hn=e),cn)},movementY:function(e){return"movementY"in e?e.movementY:un}}),mn=ln(vn),yn=ln(i({},vn,{dataTransfer:0})),bn=ln(i({},pn,{relatedTarget:0})),xn=ln(i({},fn,{animationName:0,elapsedTime:0,pseudoElement:0})),_n=ln(i({},fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),wn=ln(i({},fn,{data:0})),Sn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},kn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function On(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kn[e])&&!!t[e]}function En(){return On}var Tn=ln(i({},pn,{key:function(e){if(e.key){var t=Sn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=on(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Cn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return"keypress"===e.type?on(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?on(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),An=ln(i({},vn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=ln(i({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),jn=ln(i({},fn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Ln=ln(i({},vn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Mn=[9,13,27,32],Rn=h&&"CompositionEvent"in window,Dn=null;h&&"documentMode"in document&&(Dn=document.documentMode);var In=h&&"TextEvent"in window&&!Dn,Nn=h&&(!Rn||Dn&&8<Dn&&11>=Dn),Fn=String.fromCharCode(32),Bn=!1;function Un(e,t){switch(e){case"keyup":return-1!==Mn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Vn=!1;var Hn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function Gn(e,t,n,r){je(r),0<(t=Rr(t,"onChange")).length&&(n=new dn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qn=null,Xn=null;function Yn(e){Or(e,0)}function $n(e){if(Z(ti(e)))return e}function Kn(e,t){if("change"===e)return t}var Zn=!1;if(h){var Qn;if(h){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"===typeof er.oninput}Qn=Jn}else Qn=!1;Zn=Qn&&(!document.documentMode||9<document.documentMode)}function tr(){qn&&(qn.detachEvent("onpropertychange",nr),Xn=qn=null)}function nr(e){if("value"===e.propertyName&&$n(Xn)){var t=[];if(Gn(t,Xn,e,Oe(e)),e=Yn,Ne)e(t);else{Ne=!0;try{Me(e,t)}finally{Ne=!1,Be()}}}}function rr(e,t,n){"focusin"===e?(tr(),Xn=n,(qn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return $n(Xn)}function or(e,t){if("click"===e)return $n(t)}function ar(e,t){if("input"===e||"change"===e)return $n(t)}var sr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},lr=Object.prototype.hasOwnProperty;function cr(e,t){if(sr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!lr.call(t,n[r])||!sr(e[n[r]],t[n[r]]))return!1;return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function fr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dr(){for(var e=window,t=Q();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=Q((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var gr=h&&"documentMode"in document&&11>=document.documentMode,vr=null,mr=null,yr=null,br=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==vr||vr!==Q(r)||("selectionStart"in(r=vr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&cr(yr,r)||(yr=r,0<(r=Rr(mr,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}Dt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Dt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Dt(Rt,2);for(var _r="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),wr=0;wr<_r.length;wr++)Mt.set(_r[wr],0);u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Sr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Cr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Sr));function kr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,s,l,c){if($e.apply(this,arguments),We){if(!We)throw Error(a(198));var u=Ge;We=!1,Ge=null,qe||(qe=!0,Xe=u)}}(r,t,void 0,e),e.currentTarget=null}function Or(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;kr(i,s,c),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;kr(i,s,c),o=l}}}if(qe)throw e=Xe,qe=!1,Xe=null,e}function Er(e,t){var n=ri(t),r=e+"__bubble";n.has(r)||(jr(t,e,2,!1),n.add(r))}var Tr="_reactListening"+Math.random().toString(36).slice(2);function Ar(e){e[Tr]||(e[Tr]=!0,s.forEach((function(t){Cr.has(t)||Pr(t,!1,e,null),Pr(t,!0,e,null)})))}function Pr(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=n;if("selectionchange"===e&&9!==n.nodeType&&(o=n.ownerDocument),null!==r&&!t&&Cr.has(e)){if("scroll"!==e)return;i|=2,o=r}var a=ri(o),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(i|=4),jr(o,e,i,t),a.add(s))}function jr(e,t,n,r){var i=Mt.get(t);switch(void 0===i?2:i){case 0:i=Kt;break;case 1:i=Zt;break;default:i=Qt}n=i.bind(null,t,n,e),i=void 0,!ze||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Lr(e,t,n,r,i){var o=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=Jr(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(Fe)return e(t,n);Fe=!0;try{Ie(e,t,n)}finally{Fe=!1,Be()}}((function(){var r=o,i=Oe(n),a=[];e:{var s=Lt.get(e);if(void 0!==s){var l=dn,c=e;switch(e){case"keypress":if(0===on(n))break e;case"keydown":case"keyup":l=Tn;break;case"focusin":c="focus",l=bn;break;case"focusout":c="blur",l=bn;break;case"beforeblur":case"afterblur":l=bn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=yn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Pn;break;case Tt:case At:case Pt:l=xn;break;case jt:l=jn;break;case"scroll":l=gn;break;case"wheel":l=Ln;break;case"copy":case"cut":case"paste":l=_n;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=An}var u=0!==(4&t),h=!u&&"scroll"===e,f=u?null!==s?s+"Capture":null:s;u=[];for(var d,p=r;null!==p;){var g=(d=p).stateNode;if(5===d.tag&&null!==g&&(d=g,null!==f&&(null!=(g=Ue(p,f))&&u.push(Mr(p,g,d)))),h)break;p=p.return}0<u.length&&(s=new l(s,c,null,n,i),a.push({event:s,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!==(16&t)||!(c=n.relatedTarget||n.fromElement)||!Jr(c)&&!c[Zr])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?Jr(c):null)&&(c!==(h=Ke(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=mn,g="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(u=An,g="onPointerLeave",f="onPointerEnter",p="pointer"),h=null==l?s:ti(l),d=null==c?s:ti(c),(s=new u(g,p+"leave",l,n,i)).target=h,s.relatedTarget=d,g=null,Jr(i)===r&&((u=new u(f,p+"enter",c,n,i)).target=d,u.relatedTarget=h,g=u),h=g,l&&c)e:{for(f=c,p=0,d=u=l;d;d=Dr(d))p++;for(d=0,g=f;g;g=Dr(g))d++;for(;0<p-d;)u=Dr(u),p--;for(;0<d-p;)f=Dr(f),d--;for(;p--;){if(u===f||null!==f&&u===f.alternate)break e;u=Dr(u),f=Dr(f)}u=null}else u=null;null!==l&&Ir(a,s,l,u,!1),null!==c&&null!==h&&Ir(a,h,c,u,!0)}if("select"===(l=(s=r?ti(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var v=Kn;else if(Wn(s))if(Zn)v=ar;else{v=ir;var m=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=or);switch(v&&(v=v(e,r))?Gn(a,v,n,i):(m&&m(e,s,r),"focusout"===e&&(m=s._wrapperState)&&m.controlled&&"number"===s.type&&ie(s,"number",s.value)),m=r?ti(r):window,e){case"focusin":(Wn(m)||"true"===m.contentEditable)&&(vr=m,mr=r,yr=null);break;case"focusout":yr=mr=vr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,xr(a,n,i);break;case"selectionchange":if(gr)break;case"keydown":case"keyup":xr(a,n,i)}var y;if(Rn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Vn?Un(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Nn&&"ko"!==n.locale&&(Vn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Vn&&(y=rn()):(tn="value"in(en=i)?en.value:en.textContent,Vn=!0)),0<(m=Rr(r,b)).length&&(b=new wn(b,e,null,n,i),a.push({event:b,listeners:m}),y?b.data=y:null!==(y=zn(n))&&(b.data=y))),(y=In?function(e,t){switch(e){case"compositionend":return zn(t);case"keypress":return 32!==t.which?null:(Bn=!0,Fn);case"textInput":return(e=t.data)===Fn&&Bn?null:e;default:return null}}(e,n):function(e,t){if(Vn)return"compositionend"===e||!Rn&&Un(e,t)?(e=rn(),nn=tn=en=null,Vn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Nn&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))&&(0<(r=Rr(r,"onBeforeInput")).length&&(i=new wn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=y))}Or(a,t)}))}function Mr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Rr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Ue(e,n))&&r.unshift(Mr(e,o,i)),null!=(o=Ue(e,t))&&r.push(Mr(e,o,i))),e=e.return}return r}function Dr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Ir(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,i?null!=(l=Ue(n,o))&&a.unshift(Mr(n,l,s)):i||null!=(l=Ue(n,o))&&a.push(Mr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function Nr(){}var Fr=null,Br=null;function Ur(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function zr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Vr="function"===typeof setTimeout?setTimeout:void 0,Hr="function"===typeof clearTimeout?clearTimeout:void 0;function Wr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Gr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function qr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Xr=0;var Yr=Math.random().toString(36).slice(2),$r="__reactFiber$"+Yr,Kr="__reactProps$"+Yr,Zr="__reactContainer$"+Yr,Qr="__reactEvents$"+Yr;function Jr(e){var t=e[$r];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Zr]||n[$r]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=qr(e);null!==e;){if(n=e[$r])return n;e=qr(e)}return t}n=(e=n).parentNode}return null}function ei(e){return!(e=e[$r]||e[Zr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ti(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function ni(e){return e[Kr]||null}function ri(e){var t=e[Qr];return void 0===t&&(t=e[Qr]=new Set),t}var ii=[],oi=-1;function ai(e){return{current:e}}function si(e){0>oi||(e.current=ii[oi],ii[oi]=null,oi--)}function li(e,t){oi++,ii[oi]=e.current,e.current=t}var ci={},ui=ai(ci),hi=ai(!1),fi=ci;function di(e,t){var n=e.type.contextTypes;if(!n)return ci;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function pi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function gi(){si(hi),si(ui)}function vi(e,t,n){if(ui.current!==ci)throw Error(a(168));li(ui,t),li(hi,n)}function mi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(a(108,X(t)||"Unknown",o));return i({},n,r)}function yi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ci,fi=ui.current,li(ui,e),li(hi,hi.current),!0}function bi(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=mi(e,t,fi),r.__reactInternalMemoizedMergedChildContext=e,si(hi),si(ui),li(ui,e)):si(hi),li(hi,n)}var xi=null,_i=null,wi=o.unstable_runWithPriority,Si=o.unstable_scheduleCallback,Ci=o.unstable_cancelCallback,ki=o.unstable_shouldYield,Oi=o.unstable_requestPaint,Ei=o.unstable_now,Ti=o.unstable_getCurrentPriorityLevel,Ai=o.unstable_ImmediatePriority,Pi=o.unstable_UserBlockingPriority,ji=o.unstable_NormalPriority,Li=o.unstable_LowPriority,Mi=o.unstable_IdlePriority,Ri={},Di=void 0!==Oi?Oi:function(){},Ii=null,Ni=null,Fi=!1,Bi=Ei(),Ui=1e4>Bi?Ei:function(){return Ei()-Bi};function zi(){switch(Ti()){case Ai:return 99;case Pi:return 98;case ji:return 97;case Li:return 96;case Mi:return 95;default:throw Error(a(332))}}function Vi(e){switch(e){case 99:return Ai;case 98:return Pi;case 97:return ji;case 96:return Li;case 95:return Mi;default:throw Error(a(332))}}function Hi(e,t){return e=Vi(e),wi(e,t)}function Wi(e,t,n){return e=Vi(e),Si(e,t,n)}
2function Gi(){if(null!==Ni){var e=Ni;Ni=null,Ci(e)}qi()}function qi(){if(!Fi&&null!==Ii){Fi=!0;var e=0;try{var t=Ii;Hi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Ii=null}catch(n){throw null!==Ii&&(Ii=Ii.slice(e+1)),Si(Ai,Gi),n}finally{Fi=!1}}}var Xi=_.ReactCurrentBatchConfig;function Yi(e,t){if(e&&e.defaultProps){for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var $i=ai(null),Ki=null,Zi=null,Qi=null;function Ji(){Qi=Zi=Ki=null}function eo(e){var t=$i.current;si($i),e.type._context._currentValue=t}function to(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function no(e,t){Ki=e,Qi=Zi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(Ra=!0),e.firstContext=null)}function ro(e,t){if(Qi!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(Qi=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Zi){if(null===Ki)throw Error(a(308));Zi=t,Ki.dependencies={lanes:0,firstContext:t,responders:null}}else Zi=Zi.next=t;return e._currentValue}var io=!1;function oo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ao(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function so(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function lo(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function co(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function uo(e,t,n,r){var o=e.updateQueue;io=!1;var a=o.firstBaseUpdate,s=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var c=l,u=c.next;c.next=null,null===s?a=u:s.next=u,s=c;var h=e.alternate;if(null!==h){var f=(h=h.updateQueue).lastBaseUpdate;f!==s&&(null===f?h.firstBaseUpdate=u:f.next=u,h.lastBaseUpdate=c)}}if(null!==a){for(f=o.baseState,s=0,h=u=c=null;;){l=a.lane;var d=a.eventTime;if((r&l)===l){null!==h&&(h=h.next={eventTime:d,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var p=e,g=a;switch(l=t,d=n,g.tag){case 1:if("function"===typeof(p=g.payload)){f=p.call(d,f,l);break e}f=p;break e;case 3:p.flags=-4097&p.flags|64;case 0:if(null===(l="function"===typeof(p=g.payload)?p.call(d,f,l):p)||void 0===l)break e;f=i({},f,l);break e;case 2:io=!0}}null!==a.callback&&(e.flags|=32,null===(l=o.effects)?o.effects=[a]:l.push(a))}else d={eventTime:d,lane:l,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===h?(u=h=d,c=f):h=h.next=d,s|=l;if(null===(a=a.next)){if(null===(l=o.shared.pending))break;a=l.next,l.next=null,o.lastBaseUpdate=l,o.shared.pending=null}}null===h&&(c=f),o.baseState=c,o.firstBaseUpdate=u,o.lastBaseUpdate=h,Fs|=s,e.lanes=s,e.memoizedState=f}}function ho(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(a(191,i));i.call(r)}}}var fo=(new r.Component).refs;function po(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:i({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var go={isMounted:function(e){return!!(e=e._reactInternals)&&Ke(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=cl(),i=ul(e),o=so(r,i);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),lo(e,o),hl(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=cl(),i=ul(e),o=so(r,i);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),lo(e,o),hl(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=cl(),r=ul(e),i=so(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),lo(e,i),hl(e,r,n)}};function vo(e,t,n,r,i,o,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!cr(n,r)||!cr(i,o))}function mo(e,t,n){var r=!1,i=ci,o=t.contextType;return"object"===typeof o&&null!==o?o=ro(o):(i=pi(t)?fi:ui.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?di(e,i):ci),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=go,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function yo(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&go.enqueueReplaceState(t,t.state,null)}function bo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=fo,oo(e);var o=t.contextType;"object"===typeof o&&null!==o?i.context=ro(o):(o=pi(t)?fi:ui.current,i.context=di(e,o)),uo(e,n,i,r),i.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(po(e,t,o,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&go.enqueueReplaceState(i,i.state,null),uo(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4)}var xo=Array.isArray;function _o(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===fo&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!==typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function wo(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function So(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Hl(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function s(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Xl(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=_o(e,t,n),r.return=e,r):((r=Wl(n.type,n.key,n.props,null,e.mode,r)).ref=_o(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Yl
vendor: 14,347 bytes, line 2
2(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function h(e,t,n,r,o){return null===t||7!==t.tag?((t=Gl(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=Xl(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Wl(t.type,t.key,t.props,null,e.mode,n)).ref=_o(e,null,t),n.return=e,n;case S:return(t=Yl(t,e.mode,n)).return=e,t}if(xo(t)||V(t))return(t=Gl(t,e.mode,n,null)).return=e,t;wo(e,t)}return null}function d(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==i?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===i?n.type===C?h(e,t,n.props.children,r,i):c(e,t,n,r):null;case S:return n.key===i?u(e,t,n,r):null}if(xo(n)||V(n))return null!==i?null:h(e,t,n,r,null);wo(e,n)}return null}function p(e,t,n,r,i){if("string"===typeof r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case w:return e=e.get(null===r.key?n:r.key)||null,r.type===C?h(t,e,r.props.children,i,r.key):c(t,e,r,i);case S:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(xo(r)||V(r))return h(t,e=e.get(n)||null,r,i,null);wo(t,r)}return null}function g(i,a,s,l){for(var c=null,u=null,h=a,g=a=0,v=null;null!==h&&g<s.length;g++){h.index>g?(v=h,h=null):v=h.sibling;var m=d(i,h,s[g],l);if(null===m){null===h&&(h=v);break}e&&h&&null===m.alternate&&t(i,h),a=o(m,a,g),null===u?c=m:u.sibling=m,u=m,h=v}if(g===s.length)return n(i,h),c;if(null===h){for(;g<s.length;g++)null!==(h=f(i,s[g],l))&&(a=o(h,a,g),null===u?c=h:u.sibling=h,u=h);return c}for(h=r(i,h);g<s.length;g++)null!==(v=p(h,i,g,s[g],l))&&(e&&null!==v.alternate&&h.delete(null===v.key?g:v.key),a=o(v,a,g),null===u?c=v:u.sibling=v,u=v);return e&&h.forEach((function(e){return t(i,e)})),c}function v(i,s,l,c){var u=V(l);if("function"!==typeof u)throw Error(a(150));if(null==(l=u.call(l)))throw Error(a(151));for(var h=u=null,g=s,v=s=0,m=null,y=l.next();null!==g&&!y.done;v++,y=l.next()){g.index>v?(m=g,g=null):m=g.sibling;var b=d(i,g,y.value,c);if(null===b){null===g&&(g=m);break}e&&g&&null===b.alternate&&t(i,g),s=o(b,s,v),null===h?u=b:h.sibling=b,h=b,g=m}if(y.done)return n(i,g),u;if(null===g){for(;!y.done;v++,y=l.next())null!==(y=f(i,y.value,c))&&(s=o(y,s,v),null===h?u=y:h.sibling=y,h=y);return u}for(g=r(i,g);!y.done;v++,y=l.next())null!==(y=p(g,i,v,y.value,c))&&(e&&null!==y.alternate&&g.delete(null===y.key?v:y.key),s=o(y,s,v),null===h?u=y:h.sibling=y,h=y);return e&&g.forEach((function(e){return t(i,e)})),u}return function(e,r,o,l){var c="object"===typeof o&&null!==o&&o.type===C&&null===o.key;c&&(o=o.props.children);var u="object"===typeof o&&null!==o;if(u)switch(o.$$typeof){case w:e:{for(u=o.key,c=r;null!==c;){if(c.key===u){switch(c.tag){case 7:if(o.type===C){n(e,c.sibling),(r=i(c,o.props.children)).return=e,e=r;break e}break;default:if(c.elementType===o.type){n(e,c.sibling),(r=i(c,o.props)).ref=_o(e,c,o),r.return=e,e=r;break e}}n(e,c);break}t(e,c),c=c.sibling}o.type===C?((r=Gl(o.props.children,e.mode,l,o.key)).return=e,e=r):((l=Wl(o.type,o.key,o.props,null,e.mode,l)).ref=_o(e,r,o),l.return=e,e=l)}return s(e);case S:e:{for(c=o.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Yl(o,e.mode,l)).return=e,e=r}return s(e)}if("string"===typeof o||"number"===typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=Xl(o,e.mode,l)).return=e,e=r),s(e);if(xo(o))return g(e,r,o,l);if(V(o))return v(e,r,o,l);if(u&&wo(e,o),"undefined"===typeof o&&!c)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,X(e.type)||"Component"))}return n(e,r)}}var Co=So(!0),ko=So(!1),Oo={},Eo=ai(Oo),To=ai(Oo),Ao=ai(Oo);function Po(e){if(e===Oo)throw Error(a(174));return e}function jo(e,t){switch(li(Ao,t),li(To,e),li(Eo,Oo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:pe(null,"");break;default:t=pe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}si(Eo),li(Eo,t)}function Lo(){si(Eo),si(To),si(Ao)}function Mo(e){Po(Ao.current);var t=Po(Eo.current),n=pe(t,e.type);t!==n&&(li(To,e),li(Eo,n))}function Ro(e){To.current===e&&(si(Eo),si(To))}var Do=ai(0);function Io(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var No=null,Fo=null,Bo=!1;function Uo(e,t){var n=zl(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function zo(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Vo(e){if(Bo){var t=Fo;if(t){var n=t;if(!zo(e,t)){if(!(t=Gr(n.nextSibling))||!zo(e,t))return e.flags=-1025&e.flags|2,Bo=!1,void(No=e);Uo(No,n)}No=e,Fo=Gr(t.firstChild)}else e.flags=-1025&e.flags|2,Bo=!1,No=e}}function Ho(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;No=e}function Wo(e){if(e!==No)return!1;if(!Bo)return Ho(e),Bo=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!zr(t,e.memoizedProps))for(t=Fo;t;)Uo(e,t),t=Gr(t.nextSibling);if(Ho(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Fo=Gr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Fo=null}}else Fo=No?Gr(e.stateNode.nextSibling):null;return!0}function Go(){Fo=No=null,Bo=!1}var qo=[];function Xo(){for(var e=0;e<qo.length;e++)qo[e]._workInProgressVersionPrimary=null;qo.length=0}var Yo=_.ReactCurrentDispatcher,$o=_.ReactCurrentBatchConfig,Ko=0,Zo=null,Qo=null,Jo=null,ea=!1,ta=!1;function na(){throw Error(a(321))}function ra(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function ia(e,t,n,r,i,o){if(Ko=o,Zo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Yo.current=null===e||null===e.memoizedState?Pa:ja,e=n(r,i),ta){o=0;do{if(ta=!1,!(25>o))throw Error(a(301));o+=1,Jo=Qo=null,t.updateQueue=null,Yo.current=La,e=n(r,i)}while(ta)}if(Yo.current=Aa,t=null!==Qo&&null!==Qo.next,Ko=0,Jo=Qo=Zo=null,ea=!1,t)throw Error(a(300));return e}function oa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Jo?Zo.memoizedState=Jo=e:Jo=Jo.next=e,Jo}function aa(){if(null===Qo){var e=Zo.alternate;e=null!==e?e.memoizedState:null}else e=Qo.next;var t=null===Jo?Zo.memoizedState:Jo.next;if(null!==t)Jo=t,Qo=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Qo=e).memoizedState,baseState:Qo.baseState,baseQueue:Qo.baseQueue,queue:Qo.queue,next:null},null===Jo?Zo.memoizedState=Jo=e:Jo=Jo.next=e}return Jo}function sa(e,t){return"function"===typeof t?t(e):t}function la(e){var t=aa(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Qo,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var l=s=o=null,c=i;do{var u=c.lane;if((Ko&u)===u)null!==l&&(l=l.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),r=c.eagerReducer===e?c.eagerState:e(r,c.action);else{var h={lane:u,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===l?(s=l=h,o=r):l=l.next=h,Zo.lanes|=u,Fs|=u}c=c.next}while(null!==c&&c!==i);null===l?o=r:l.next=s,sr(r,t.memoizedState)||(Ra=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function ca(e){var t=aa(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);sr(o,t.memoizedState)||(Ra=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ua(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(Ko&e)===e)&&(t._workInProgressVersionPrimary=r,qo.push(t))),e)return n(t._source);throw qo.push(t),Error(a(350))}function ha(e,t,n,r){var i=Ps;if(null===i)throw Error(a(349));var o=t._getVersion,s=o(t._source),l=Yo.current,c=l.useState((function(){return ua(i,t,n)})),u=c[1],h=c[0];c=Jo;var f=e.memoizedState,d=f.refs,p=d.getSnapshot,g=f.source;f=f.subscribe;var v=Zo;return e.memoizedState={refs:d,source:t,subscribe:r},l.useEffect((function(){d.getSnapshot=n,d.setSnapshot=u;var e=o(t._source);if(!sr(s,e)){e=n(t._source),sr(h,e)||(u(e),e=ul(v),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,a=e;0<a;){var l=31-Wt(a),c=1<<l;r[l]|=e,a&=~c}}}),[n,t,r]),l.useEffect((function(){return r(t._source,(function(){var e=d.getSnapshot,n=d.setSnapshot;try{n(e(t._source));var r=ul(v);i.mutableReadLanes|=r&i.pendingLanes}catch(o){n((function(){throw o}))}}))}),[t,r]),sr(p,n)&&sr(g,t)&&sr(f,r)||((e={pending:null,dispatch:null,lastRenderedReducer:sa,lastRenderedState:h}).dispatch=u=Ta.bind(null,Zo,e),c.queue=e,c.baseQueue=null,h=ua(i,t,n),c.memoizedState=c.baseState=h),h}function fa(e,t,n){return ha(aa(),e,t,n)}function da(e){var t=oa();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:sa,lastRenderedState:e}).dispatch=Ta.bind(null,Zo,e),[t.memoizedState,e]}function pa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Zo.updateQueue)?(t={lastEffect:null},Zo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ga(e){return e={current:e},oa().memoizedState=e}function va(){return aa().memoizedState}function ma(e,t,n,r){var i=oa();Zo.flags|=e,i.memoizedState=pa(1|t,n,void 0,void 0===r?null:r)}function ya(e,t,n,r){var i=aa();r=void 0===r?null:r;var o=void 0;if(null!==Qo){var a=Qo.memoizedState;if(o=a.destroy,null!==r&&ra(r,a.deps))return void pa(t,n,o,r)}Zo.flags|=e,i.memoizedState=pa(1|t,n,o,r)}function ba(e,t){return ma(516,4,e,t)}function xa(e,t){return ya(516,4,e,t)}function _a(e,t){return ya(4,2,e,t)}function wa(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Sa(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,ya(4,2,wa.bind(null,t,e),n)}function Ca(){}function ka(e,t){var n=aa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ra(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Oa(e,t){var n=aa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ra(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ea(e,t){var n=zi();Hi(98>n?98:n,(function(){e(!0)})),Hi(97<n?97:n,(function(){var n=$o.transition;$o.transition=1;try{e(!1),t()}finally{$o.transition=n}}))}function Ta(e,t,n){var r=cl(),i=ul(e),o={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?o.next=o:(o.next=a.next,a.next=o),t.pending=o,a=e.alternate,e===Zo||null!==a&&a===Zo)ta=ea=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=a(s,n);if(o.eagerReducer=a,o.eagerState=l,sr(l,s))return}catch(c){}hl(e,i,r)}}var Aa={readContext:ro,useCallback:na,useContext:na,useEffect:na,useImperativeHandle:na,useLayoutEffect:na,useMemo:na,useReducer:na,useRef:na,useState:na,useDebugValue:na,useDeferredValue:na,useTransition:na,useMutableSource:na,useOpaqueIdentifier:na,unstable_isNewReconciler:!1},Pa={readContext:ro,useCallback:function(e,t){return oa().memoizedState=[e,void 0===t?null:t],e},useContext:ro,useEffect:ba,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,ma(4,2,wa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ma(4,2,e,t)},useMemo:function(e,t){var n=oa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=oa();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Ta.bind(null,Zo,e),[r.memoizedState,e]},useRef:ga,useState:da,useDebugValue:Ca,useDeferredValue:function(e){var t=da(e),n=t[0],r=t[1];return ba((function(){var t=$o.transition;$o.transition=1;try{r(e)}finally{$o.transition=t}}),[e]),n},useTransition:function(){var e=da(!1),t=e[0];return ga(e=Ea.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=oa();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},ha(r,e,t,n)},useOpaqueIdentifier:function(){if(Bo){var e=!1,t=function(e){return{$$typeof:D,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Xr++).toString(36))),Error(a(355))})),n=da(t)[1];return 0===(2&Zo.mode)&&(Zo.flags|=516,pa(5,(function(){n("r:"+(Xr++).toString(36))}),void 0,null)),t}return da(t="r:"+(Xr++).toString(36)),t},unstable_isNewReconciler:!1},ja={readContext:ro,useCallback:ka,useContext:ro,useEffect:xa,useImperativeHandle:Sa,useLayoutEffect:_a,useMemo:Oa,useReducer:la,useRef:va,useState:function(){return la(sa)},useDebugValue:Ca,useDeferredValue:function(e){var t=la(sa),n=t[0],r=t[1];return xa((function(){var t=$o.transition;$o.transition=1;try{r(e)}finally{$o.transition=t}}),[e]),n},useTransition:function(){var e=la(sa)[0];return[va().current,e]},useMutableSource:fa,useOpaqueIdentifier:function(){return la(sa)[0]},unstable_isNewReconciler:!1},La={readContext:ro,useCallback:ka,useContext:ro,useEffect:xa,useImperativeHandle:Sa,useLayoutEffect:_a,useMemo:Oa,useReducer:ca,useRef
2:va,useState:function(){return ca(sa)},useDebugValue:Ca,useDeferredValue:function(e){var t=ca(sa),n=t[0],r=t[1];return xa((function(){var t=$o.transition;$o.transition=1;try{r(e)}finally{$o.transition=t}}),[e]),n},useTransition:function(){var e=ca(sa)[0];return[va().current,e]},useMutableSource:fa,useOpaqueIdentifier:function(){return ca(sa)[0]},unstable_isNewReconciler:!1},Ma=_.ReactCurrentOwner,Ra=!1;function Da(e,t,n,r){t.child=null===e?ko(t,null,n,r):Co(t,e.child,n,r)}function Ia(e,t,n,r,i){n=n.render;var o=t.ref;return no(t,i),r=ia(e,t,n,r,o,i),null===e||Ra?(t.flags|=1,Da(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,ns(e,t,i))}function Na(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!==typeof a||Vl(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Wl(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Fa(e,t,a,r,i,o))}return a=e.child,0===(i&o)&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:cr)(i,r)&&e.ref===t.ref)?ns(e,t,o):(t.flags|=1,(e=Hl(a,r)).ref=t.ref,e.return=t,t.child=e)}function Fa(e,t,n,r,i,o){if(null!==e&&cr(e.memoizedProps,r)&&e.ref===t.ref){if(Ra=!1,0===(o&i))return t.lanes=e.lanes,ns(e,t,o);0!==(16384&e.flags)&&(Ra=!0)}return za(e,t,n,r,o)}function Ba(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0===(4&t.mode))t.memoizedState={baseLanes:0},bl(t,n);else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},bl(t,e),null;t.memoizedState={baseLanes:0},bl(t,null!==o?o.baseLanes:n)}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,bl(t,r);return Da(e,t,i,n),t.child}function Ua(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function za(e,t,n,r,i){var o=pi(n)?fi:ui.current;return o=di(t,o),no(t,i),n=ia(e,t,n,r,o,i),null===e||Ra?(t.flags|=1,Da(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,ns(e,t,i))}function Va(e,t,n,r,i){if(pi(n)){var o=!0;yi(t)}else o=!1;if(no(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),mo(t,n,r),bo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"===typeof c&&null!==c?c=ro(c):c=di(t,c=pi(n)?fi:ui.current);var u=n.getDerivedStateFromProps,h="function"===typeof u||"function"===typeof a.getSnapshotBeforeUpdate;h||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||l!==c)&&yo(t,a,r,c),io=!1;var f=t.memoizedState;a.state=f,uo(t,r,a,i),l=t.memoizedState,s!==r||f!==l||hi.current||io?("function"===typeof u&&(po(t,n,u,r),l=t.memoizedState),(s=io||vo(t,n,s,r,f,l,c))?(h||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4)):("function"===typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,ao(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Yi(t.type,s),a.props=c,h=t.pendingProps,f=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=ro(l):l=di(t,l=pi(n)?fi:ui.current);var d=n.getDerivedStateFromProps;(u="function"===typeof d||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==h||f!==l)&&yo(t,a,r,l),io=!1,f=t.memoizedState,a.state=f,uo(t,r,a,i);var p=t.memoizedState;s!==h||f!==p||hi.current||io?("function"===typeof d&&(po(t,n,d,r),p=t.memoizedState),(c=io||vo(t,n,c,r,f,p,l))?(u||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=c):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),r=!1)}return Ha(e,t,n,r,o,i)}function Ha(e,t,n,r,i,o){Ua(e,t);var a=0!==(64&t.flags);if(!r&&!a)return i&&bi(t,n,!1),ns(e,t,o);r=t.stateNode,Ma.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Co(t,e.child,null,o),t.child=Co(t,null,s,o)):Da(e,t,s,o),t.memoizedState=r.state,i&&bi(t,n,!0),t.child}function Wa(e){var t=e.stateNode;t.pendingContext?vi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&vi(0,t.context,!1),jo(e,t.containerInfo)}var Ga,qa,Xa,Ya={dehydrated:null,retryLane:0};function $a(e,t,n){var r,i=t.pendingProps,o=Do.current,a=!1;return(r=0!==(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!==(2&o)),r?
vendor: 12,131 bytes, line 2
2(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(o|=1),li(Do,1&o),null===e?(void 0!==i.fallback&&Vo(t),e=i.children,o=i.fallback,a?(e=Ka(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ya,e):"number"===typeof i.unstable_expectedLoadTime?(e=Ka(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ya,t.lanes=33554432,e):((n=ql({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(i=Qa(e,t,i.children,i.fallback,n),a=t.child,o=e.child.memoizedState,a.memoizedState=null===o?{baseLanes:n}:{baseLanes:o.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=Ya,i):(n=Za(e,t,i.children,n),t.memoizedState=null,n))}function Ka(e,t,n,r){var i=e.mode,o=e.child;return t={mode:"hidden",children:t},0===(2&i)&&null!==o?(o.childLanes=0,o.pendingProps=t):o=ql(t,i,0,null),n=Gl(n,i,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function Za(e,t,n,r){var i=e.child;return e=i.sibling,n=Hl(i,{mode:"visible",children:n}),0===(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function Qa(e,t,n,r,i){var o=t.mode,a=e.child;e=a.sibling;var s={mode:"hidden",children:n};return 0===(2&o)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=s,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Hl(a,s),null!==e?r=Hl(e,r):(r=Gl(r,o,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Ja(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),to(e.return,t)}function es(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.lastEffect=o)}function ts(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Da(e,t,r.children,n),0!==(2&(r=Do.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!==(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ja(e,n);else if(19===e.tag)Ja(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(li(Do,r),0===(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Io(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),es(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Io(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}es(t,!0,n,null,o,t.lastEffect);break;case"together":es(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function ns(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Fs|=t.lanes,0!==(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Hl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Hl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function rs(e,t){if(!Bo)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function is(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return pi(t.type)&&gi(),null;case 3:return Lo(),si(hi),si(ui),Xo(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Wo(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Ro(t);var o=Po(Ao.current);if(n=t.type,null!==e&&null!=t.stateNode)qa(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Po(Eo.current),Wo(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[$r]=t,r[Kr]=s,n){case"dialog":Er("cancel",r),Er("close",r);break;case"iframe":case"object":case"embed":Er("load",r);break;case"video":case"audio":for(e=0;e<Sr.length;e++)Er(Sr[e],r);break;case"source":Er("error",r);break;case"img":case"image":case"link":Er("error",r),Er("load",r);break;case"details":Er("toggle",r);break;case"input":ee(r,s),Er("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Er("invalid",r);break;case"textarea":le(r,s),Er("invalid",r)}for(var c in Ce(n,s),e=null,s)s.hasOwnProperty(c)&&(o=s[c],"children"===c?"string"===typeof o?r.textContent!==o&&(e=["children",o]):"number"===typeof o&&r.textContent!==""+o&&(e=["children",""+o]):l.hasOwnProperty(c)&&null!=o&&"onScroll"===c&&Er("scroll",r));switch(n){case"input":K(r),re(r,s,!0);break;case"textarea":K(r),ue(r);break;case"select":case"option":break;default:"function"===typeof s.onClick&&(r.onclick=Nr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(c=9===o.nodeType?o:o.ownerDocument,e===he&&(e=de(n)),e===he?"script"===n?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=c.createElement(n,{is:r.is}):(e=c.createElement(n),"select"===n&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,n),e[$r]=t,e[Kr]=r,Ga(e,t),t.stateNode=e,c=ke(n,r),n){case"dialog":Er("cancel",e),Er("close",e),o=r;break;case"iframe":case"object":case"embed":Er("load",e),o=r;break;case"video":case"audio":for(o=0;o<Sr.length;o++)Er(Sr[o],e);o=r;break;case"source":Er("error",e),o=r;break;case"img":case"image":case"link":Er("error",e),Er("load",e),o=r;break;case"details":Er("toggle",e),o=r;break;case"input":ee(e,r),o=J(e,r),Er("invalid",e);break;case"option":o=oe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=i({},r,{value:void 0}),Er("invalid",e);break;case"textarea":le(e,r),o=se(e,r),Er("invalid",e);break;default:o=r}Ce(n,o);var u=o;for(s in u)if(u.hasOwnProperty(s)){var h=u[s];"style"===s?we(e,h):"dangerouslySetInnerHTML"===s?null!=(h=h?h.__html:void 0)&&me(e,h):"children"===s?"string"===typeof h?("textarea"!==n||""!==h)&&ye(e,h):"number"===typeof h&&ye(e,""+h):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(l.hasOwnProperty(s)?null!=h&&"onScroll"===s&&Er("scroll",e):null!=h&&x(e,s,h,c))}switch(n){case"input":K(e),re(e,r,!1);break;case"textarea":K(e),ue(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Y(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ae(e,!!r.multiple,s,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof o.onClick&&(e.onclick=Nr)}Ur(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Xa(0,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));n=Po(Ao.current),Po(Eo.current),Wo(t)?(r=t.stateNode,n=t.memoizedProps,r[$r]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[$r]=t,t.stateNode=r)}return null;case 13:return si(Do),r=t.memoizedState,0!==(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Wo(t):n=null!==e.memoizedState,r&&!n&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&Do.current)?0===Ds&&(Ds=3):(0!==Ds&&3!==Ds||(Ds=4),null===Ps||0===(134217727&Fs)&&0===(134217727&Bs)||gl(Ps,Ls))),(r||n)&&(t.flags|=4),null);case 4:return Lo(),null===e&&Ar(t.stateNode.containerInfo),null;case 10:return eo(t),null;case 17:return pi(t.type)&&gi(),null;case 19:if(si(Do),null===(r=t.memoizedState))return null;if(s=0!==(64&t.flags),null===(c=r.rendering))if(s)rs(r,!1);else{if(0!==Ds||null!==e&&0!==(64&e.flags))for(e=t.child;null!==e;){if(null!==(c=Io(e))){for(t.flags|=64,rs(r,!1),null!==(s=c.updateQueue)&&(t.updateQueue=s,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,null===(c=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return li(Do,1&Do.current|2),t.child}e=e.sibling}null!==r.tail&&Ui()>Hs&&(t.flags|=64,s=!0,rs(r,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=Io(c))){if(t.flags|=64,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),rs(r,!0),null===r.tail&&"hidden"===r.tailMode&&!c.alternate&&!Bo)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Ui()-r.renderingStartTime>Hs&&1073741824!==n&&(t.flags|=64,s=!0,rs(r,!1),t.lanes=33554432);r.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=r.last)?n.sibling=c:t.child=c,r.last=c)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Ui(),n.sibling=null,t=Do.current,li(Do,s?1&t|2:1&t),n):null;case 23:case 24:return xl(),null!==e&&null!==e.memoizedState!==(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function os(e){switch(e.tag){case 1:pi(e.type)&&gi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Lo(),si(hi),si(ui),Xo(),0!==(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return Ro(e),null;case 13:return si(Do),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return si(Do),null;case 4:return Lo(),null;case 10:return eo(e),null;case 23:case 24:return xl(),null;default:return null}}function as(e,t){try{var n="",r=t;do{n+=q(r),r=r.return}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i}}function ss(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}Ga=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},qa=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Po(Eo.current);var a,s=null;switch(n){case"input":o=J(e,o),r=J(e,r),s=[];break;case"option":o=oe(e,o),r=oe(e,r),s=[];break;case"select":o=i({},o,{value:void 0}),r=i({},r,{value:void 0}),s=[];break;case"textarea":o=se(e,o),r=se(e,r),s=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(e.onclick=Nr)}for(h in Ce(n,r),n=null,o)if(!r.hasOwnProperty(h)&&o.hasOwnProperty(h)&&null!=o[h])if("style"===h){var c=o[h];for(a in c)c.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==h&&"children"!==h&&"suppressContentEditableWarning"!==h&&"suppressHydrationWarning"!==h&&"autoFocus"!==h&&(l.hasOwnProperty(h)?s||(s=[]):(s=s||[]).push(h,null));for(h in r){var u=r[h];if(c=null!=o?o[h]:void 0,r.hasOwnProperty(h)&&u!==c&&(null!=u||null!=c))if("style"===h)if(c){for(a in c)!c.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&c[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(s||(s=[]),s.push(h,n)),n=u;else"dangerouslySetInnerHTML"===h?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(s=s||[]).push(h,u)):"children"===h?"string"!==typeof u&&"number"!==typeof u||(s=s||[]).push(h,""+u):"suppressContentEditableWarning"!==h&&"suppressHydrationWarning"!==h&&(l.hasOwnProperty(h)?(null!=u&&"onScroll"===h&&Er("scroll",e),s||c===u||(s=[])):"object"===typeof u&&null!==u&&u.$$typeof===D?u.toString():(s=s||[]).push(h,u))}n&&(s=s||[]).push("style",n);var h=s;(t.updateQueue=h)&&(t.flags|=4)}}
2,Xa=function(e,t,n,r){n!==r&&(t.flags|=4)};var ls="function"===typeof WeakMap?WeakMap:Map;function cs(e,t,n){(n=so(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Xs||(Xs=!0,Ys=r),ss(0,t)},n}function us(e,t,n){(n=so(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return ss(0,t),r(i)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===$s?$s=new Set([this]):$s.add(this),ss(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var hs="function"===typeof WeakSet?WeakSet:Set;function fs(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){Nl(e,n)}else t.current=null}function ds(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Yi(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Wr(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(a(163))}function ps(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3===(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!==(4&(i=i.tag))&&0!==(1&i)&&(Rl(n,e),Ml(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Yi(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&ho(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}ho(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Ur(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&wt(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(a(163))}function gs(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"===typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=void 0!==i&&null!==i&&i.hasOwnProperty("display")?i.display:null,r.style.display=_e("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function vs(e,t){if(_i&&"function"===typeof _i.onCommitFiberUnmount)try{_i.onCommitFiberUnmount(xi,t)}catch(o){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!==(4&r))Rl(t,n);else{r=t;try{i()}catch(o){Nl(r,o)}}n=n.next}while(n!==e)}break;case 1:if(fs(t),"function"===typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){Nl(t,o)}break;case 5:fs(t);break;case 4:ws(e,t)}}function ms(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function ys(e){return 5===e.tag||3===e.tag||4===e.tag}function bs(e){e:{for(var t=e.return;null!==t;){if(ys(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.flags&&(ye(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ys(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}
vendor: 12,101 bytes, line 2
2if(!(2&n.flags)){n=n.stateNode;break e}}r?xs(e,n,t):_s(e,n,t)}function xs(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Nr));else if(4!==r&&null!==(e=e.child))for(xs(e,t,n),e=e.sibling;null!==e;)xs(e,t,n),e=e.sibling}function _s(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(_s(e,t,n),e=e.sibling;null!==e;)_s(e,t,n),e=e.sibling}function ws(e,t){for(var n,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(a(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag){e:for(var s=e,l=i,c=l;;)if(vs(s,c),null!==c.child&&4!==c.tag)c.child.return=c,c=c.child;else{if(c===l)break e;for(;null===c.sibling;){if(null===c.return||c.return===l)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}r?(s=n,l=i.stateNode,8===s.nodeType?s.parentNode.removeChild(l):s.removeChild(l)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(vs(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function Ss(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3===(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[Kr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),ke(e,i),t=ke(e,r),i=0;i<o.length;i+=2){var s=o[i],l=o[i+1];"style"===s?we(n,l):"dangerouslySetInnerHTML"===s?me(n,l):"children"===s?ye(n,l):x(n,s,l,t)}switch(e){case"input":ne(n,r);break;case"textarea":ce(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(o=r.value)?ae(n,!!r.multiple,o,!1):e!==!!r.multiple&&(null!=r.defaultValue?ae(n,!!r.multiple,r.defaultValue,!0):ae(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,wt(n.containerInfo)));case 12:return;case 13:return null!==t.memoizedState&&(Vs=Ui(),gs(t.child,!0)),void Cs(t);case 19:return void Cs(t);case 17:return;case 23:case 24:return void gs(t,null!==t.memoizedState)}throw Error(a(163))}function Cs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new hs),t.forEach((function(t){var r=Bl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ks(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Os=Math.ceil,Es=_.ReactCurrentDispatcher,Ts=_.ReactCurrentOwner,As=0,Ps=null,js=null,Ls=0,Ms=0,Rs=ai(0),Ds=0,Is=null,Ns=0,Fs=0,Bs=0,Us=0,zs=null,Vs=0,Hs=1/0;function Ws(){Hs=Ui()+500}var Gs,qs=null,Xs=!1,Ys=null,$s=null,Ks=!1,Zs=null,Qs=90,Js=[],el=[],tl=null,nl=0,rl=null,il=-1,ol=0,al=0,sl=null,ll=!1;function cl(){return 0!==(48&As)?Ui():-1!==il?il:il=Ui()}function ul(e){if(0===(2&(e=e.mode)))return 1;if(0===(4&e))return 99===zi()?1:2;if(0===ol&&(ol=Ns),0!==Xi.transition){0!==al&&(al=null!==zs?zs.pendingLanes:0),e=ol;var t=4186112&~al;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=zi(),0!==(4&As)&&98===e?e=Ut(12,ol):e=Ut(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),ol),e}function hl(e,t,n){if(50<nl)throw nl=0,rl=null,Error(a(185));if(null===(e=fl(e,t)))return null;Ht(e,t,n),e===Ps&&(Bs|=t,4===Ds&&gl(e,Ls));var r=zi();1===t?0!==(8&As)&&0===(48&As)?vl(e):(dl(e,n),0===As&&(Ws(),Gi())):(0===(4&As)||98!==r&&99!==r||(null===tl?tl=new Set([e]):tl.add(e)),dl(e,n)),zs=e}function fl(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function dl(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-Wt(s),c=1<<l,u=o[l];if(-1===u){if(0===(c&r)||0!==(c&i)){u=t,Nt(c);var h=It;o[l]=10<=h?u+250:6<=h?u+5e3:-1}}else u<=t&&(e.expiredLanes|=c);s&=~c}if(r=Ft(e,e===Ps?Ls:0),t=It,0===r)null!==n&&(n!==Ri&&Ci(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Ri&&Ci(n)}15===t?(n=vl.bind(null,e),null===Ii?(Ii=[n],Ni=Si(Ai,qi)):Ii.push(n),n=Ri):14===t?n=Wi(99,vl.bind(null,e)):n=Wi(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(t),pl.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function pl(e){if(il=-1,al=ol=0,0!==(48&As))throw Error(a(327));var t=e.callbackNode;if(Ll()&&e.callbackNode!==t)return null;var n=Ft(e,e===Ps?Ls:0);if(0===n)return null;var r=n,i=As;As|=16;var o=Sl();for(Ps===e&&Ls===r||(Ws(),_l(e,r));;)try{Ol();break}catch(l){wl(e,l)}if(Ji(),Es.current=o,As=i,null!==js?r=0:(Ps=null,Ls=0,r=Ds),0!==(Ns&Bs))_l(e,0);else if(0!==r){if(2===r&&(As|=64,e.hydrate&&(e.hydrate=!1,Wr(e.containerInfo)),0!==(n=Bt(e))&&(r=Cl(e,n))),1===r)throw t=Is,_l(e,0),gl(e,n),dl(e,Ui()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:Al(e);break;case 3:if(gl(e,n),(62914560&n)===n&&10<(r=Vs+500-Ui())){if(0!==Ft(e,0))break;if(((i=e.suspendedLanes)&n)!==n){cl(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Vr(Al.bind(null,e),r);break}Al(e);break;case 4:if(gl(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var s=31-Wt(n);o=1<<s,(s=r[s])>i&&(i=s),n&=~o}if(n=i,10<(n=(120>(n=Ui()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Os(n/1960))-n)){e.timeoutHandle=Vr(Al.bind(null,e),n);break}Al(e);break;case 5:Al(e);break;default:throw Error(a(329))}}return dl(e,Ui()),e.callbackNode===t?pl.bind(null,e):null}function gl(e,t){for(t&=~Us,t&=~Bs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Wt(t),r=1<<n;e[n]=-1,t&=~r}}function vl(e){if(0!==(48&As))throw Error(a(327));if(Ll(),e===Ps&&0!==(e.expiredLanes&Ls)){var t=Ls,n=Cl(e,t);0!==(Ns&Bs)&&(n=Cl(e,t=Ft(e,t)))}else n=Cl(e,t=Ft(e,0));if(0!==e.tag&&2===n&&(As|=64,e.hydrate&&(e.hydrate=!1,Wr(e.containerInfo)),0!==(t=Bt(e))&&(n=Cl(e,t))),1===n)throw n=Is,_l(e,0),gl(e,t),dl(e,Ui()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Al(e),dl(e,Ui()),null}function ml(e,t){var n=As;As|=1;try{return e(t)}finally{0===(As=n)&&(Ws(),Gi())}}function yl(e,t){var n=As;As&=-2,As|=8;try{return e(t)}finally{0===(As=n)&&(Ws(),Gi())}}function bl(e,t){li(Rs,Ms),Ms|=t,Ns|=t}function xl(){Ms=Rs.current,si(Rs)}function _l(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Hr(n)),null!==js)for(n=js.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&gi();break;case 3:Lo(),si(hi),si(ui),Xo();break;case 5:Ro(r);break;case 4:Lo();break;case 13:case 19:si(Do);break;case 10:eo(r);break;case 23:case 24:xl()}n=n.return}Ps=e,js=Hl(e.current,null),Ls=Ms=Ns=t,Ds=0,Is=null,Us=Bs=Fs=0}function wl(e,t){for(;;){var n=js;try{if(Ji(),Yo.current=Aa,ea){for(var r=Zo.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ea=!1}if(Ko=0,Jo=Qo=Zo=null,ta=!1,Ts.current=null,null===n||null===n.return){Ds=1,Is=t,js=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=Ls,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==l&&"object"===typeof l&&"function"===typeof l.then){var c=l;if(0===(2&s.mode)){var u=s.alternate;u?(s.updateQueue=u.updateQueue,s.memoizedState=u.memoizedState,s.lanes=u.lanes):(s.updateQueue=null,s.memoizedState=null)}var h=0!==(1&Do.current),f=a;do{var d;if(d=13===f.tag){var p=f.memoizedState;if(null!==p)d=null!==p.dehydrated;else{var g=f.memoizedProps;d=void 0!==g.fallback&&(!0!==g.unstable_avoidThisFallback||!h)}}if(d){var v=f.updateQueue;if(null===v){var m=new Set;m.add(c),f.updateQueue=m}else v.add(c);if(0===(2&f.mode)){if(f.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var y=so(-1,1);y.tag=2,lo(s,y)}s.lanes|=1;break e}l=void 0,s=t;var b=o.pingCache;if(null===b?(b=o.pingCache=new ls,l=new Set,b.set(c,l)):void 0===(l=b.get(c))&&(l=new Set,b.set(c,l)),!l.has(s)){l.add(s);var x=Fl.bind(null,o,c,s);c.then(x,x)}f.flags|=4096,f.lanes=t;break e}f=f.return}while(null!==f);l=Error((X(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Ds&&(Ds=2),l=as(l,s),f=a;do{switch(f.tag){case 3:o=l,f.flags|=4096,t&=-t,f.lanes|=t,co(f,cs(0,o,t));break e;case 1:o=l;var _=f.type,w=f.stateNode;if(0===(64&f.flags)&&("function"===typeof _.getDerivedStateFromError||null!==w&&"function"===typeof w.componentDidCatch&&(null===$s||!$s.has(w)))){f.flags|=4096,t&=-t,f.lanes|=t,co(f,us(f,o,t));break e}}f=f.return}while(null!==f)}Tl(n)}catch(S){t=S,js===n&&null!==n&&(js=n=n.return);continue}break}}function Sl(){var e=Es.current;return Es.current=Aa,null===e?Aa:e}function Cl(e,t){var n=As;As|=16;var r=Sl();for(Ps===e&&Ls===t||_l(e,t);;)try{kl();break}catch(i){wl(e,i)}if(Ji(),As=n,Es.current=r,null!==js)throw Error(a(261));return Ps=null,Ls=0,Ds}function kl(){for(;null!==js;)El(js)}function Ol(){for(;null!==js&&!ki();)El(js)}function El(e){var t=Gs(e.alternate,e,Ms);e.memoizedProps=e.pendingProps,null===t?Tl(e):js=t,Ts.current=null}function Tl(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(2048&t.flags)){if(null!==(n=is(n,t,Ms)))return void(js=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!==(1073741824&Ms)||0===(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0===(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=os(t)))return n.flags&=2047,void(js=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(js=t);js=t=e}while(null!==t);0===Ds&&(Ds=5)}function Al(e){var t=zi();return Hi(99,Pl.bind(null,e,t)),null}function Pl(e,t){do{Ll()}while(null!==Zs);if(0!==(48&As))throw Error(a(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,o=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var s=e.eventTimes,l=e.expirationTimes;0<o;){var c=31-Wt(o),u=1<<c;i[c]=0,s[c]=-1,l[c]=-1,o&=~u}if(null!==tl&&0===(24&r)&&tl.has(e)&&tl.delete(e),e===Ps&&(js=Ps=null,Ls=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=As,As|=32,Ts.current=null,Fr=$t,pr(s=dr())){if("selectionStart"in s)l={start:s.selectionStart,end:s.selectionEnd};else e:if(l=(l=s.ownerDocument)&&l.defaultView||window,(u=l.getSelection&&l.getSelection())&&0!==u.rangeCount){l=u.anchorNode,o=u.anchorOffset,c=u.focusNode,u=u.focusOffset;try{l.nodeType,c.nodeType}catch(O){l=null;break e}var h=0,f=-1,d=-1,p=0,g=0,v=s,m=null;t:for(;;){for(var y;
2v!==l||0!==o&&3!==v.nodeType||(f=h+o),v!==c||0!==u&&3!==v.nodeType||(d=h+u),3===v.nodeType&&(h+=v.nodeValue.length),null!==(y=v.firstChild);)m=v,v=y;for(;;){if(v===s)break t;if(m===l&&++p===o&&(f=h),m===c&&++g===u&&(d=h),null!==(y=v.nextSibling))break;m=(v=m).parentNode}v=y}l=-1===f||-1===d?null:{start:f,end:d}}else l=null;l=l||{start:0,end:0}}else l=null;Br={focusedElem:s,selectionRange:l},$t=!1,sl=null,ll=!1,qs=r;do{try{jl()}catch(O){if(null===qs)throw Error(a(330));Nl(qs,O),qs=qs.nextEffect}}while(null!==qs);sl=null,qs=r;do{try{for(s=e;null!==qs;){var b=qs.flags;if(16&b&&ye(qs.stateNode,""),128&b){var x=qs.alternate;if(null!==x){var _=x.ref;null!==_&&("function"===typeof _?_(null):_.current=null)}}switch(1038&b){case 2:bs(qs),qs.flags&=-3;break;case 6:bs(qs),qs.flags&=-3,Ss(qs.alternate,qs);break;case 1024:qs.flags&=-1025;break;case 1028:qs.flags&=-1025,Ss(qs.alternate,qs);break;case 4:Ss(qs.alternate,qs);break;case 8:ws(s,l=qs);var w=l.alternate;ms(l),null!==w&&ms(w)}qs=qs.nextEffect}}catch(O){if(null===qs)throw Error(a(330));Nl(qs,O),qs=qs.nextEffect}}while(null!==qs);if(_=Br,x=dr(),b=_.focusedElem,s=_.selectionRange,x!==b&&b&&b.ownerDocument&&fr(b.ownerDocument.documentElement,b)){null!==s&&pr(b)&&(x=s.start,void 0===(_=s.end)&&(_=x),"selectionStart"in b?(b.selectionStart=x,b.selectionEnd=Math.min(_,b.value.length)):(_=(x=b.ownerDocument||document)&&x.defaultView||window).getSelection&&(_=_.getSelection(),l=b.textContent.length,w=Math.min(s.start,l),s=void 0===s.end?w:Math.min(s.end,l),!_.extend&&w>s&&(l=s,s=w,w=l),l=hr(b,w),o=hr(b,s),l&&o&&(1!==_.rangeCount||_.anchorNode!==l.node||_.anchorOffset!==l.offset||_.focusNode!==o.node||_.focusOffset!==o.offset)&&((x=x.createRange()).setStart(l.node,l.offset),_.removeAllRanges(),w>s?(_.addRange(x),_.extend(o.node,o.offset)):(x.setEnd(o.node,o.offset),_.addRange(x))))),x=[];for(_=b;_=_.parentNode;)1===_.nodeType&&x.push({element:_,left:_.scrollLeft,top:_.scrollTop});for("function"===typeof b.focus&&b.focus(),b=0;b<x.length;b++)(_=x[b]).element.scrollLeft=_.left,_.element.scrollTop=_.top}$t=!!Fr,Br=Fr=null,e.current=n,qs=r;do{try{for(b=e;null!==qs;){var S=qs.flags;if(36&S&&ps(b,qs.alternate,qs),128&S){x=void 0;var C=qs.ref;if(null!==C){var k=qs.stateNode;switch(qs.tag){case 5:x=k;break;default:x=k}"function"===typeof C?C(x):C.current=x}}qs=qs.nextEffect}}catch(O){if(null===qs)throw Error(a(330));Nl(qs,O),qs=qs.nextEffect}}while(null!==qs);qs=null,Di(),As=i}else e.current=n;if(Ks)Ks=!1,Zs=e,Qs=t;else for(qs=r;null!==qs;)t=qs.nextEffect,qs.nextEffect=null,8&qs.flags&&((S=qs).sibling=null,S.stateNode=null),qs=t;if(0===(r=e.pendingLanes)&&($s=null),1===r?e===rl?nl++:(nl=0,rl=e):nl=0,n=n.stateNode,_i&&"function"===typeof _i.onCommitFiberRoot)try{_i.onCommitFiberRoot(xi,n,void 0,64===(64&n.current.flags))}catch(O){}if(dl(e,Ui()),Xs)throw Xs=!1,e=Ys,Ys=null,e;return 0!==(8&As)||Gi(),null}function jl(){for(;null!==qs;){var e=qs.alternate;ll||null===sl||(0!==(8&qs.flags)?et(qs,sl)&&(ll=!0):13===qs.tag&&ks(e,qs)&&et(qs,sl)&&(ll=!0));var t=qs.flags;0!==(256&t)&&ds(e,qs),0===(512&t)||Ks||(Ks=!0,Wi(97,(function(){return Ll(),null}))),qs=qs.nextEffect}}function Ll(){if(90!==Qs){var e=97<Qs?97:Qs;return Qs=90,Hi(e,Dl)}return!1}function Ml(e,t){Js.push(t,e),Ks||(Ks=!0,Wi(97,(function(){return Ll(),null})))}function Rl(e,t){el.push(t,e),Ks||(Ks=!0,Wi(97,(function(){return Ll(),null})))}function Dl(){if(null===Zs)return!1;var e=Zs;if(Zs=null,0!==(48&As))throw Error(a(331));var t=As;As|=32;var n=el;el=[];for(var r=0;r<n.length;r+=2){var i=n[r],o=n[r+1],s=i.destroy;if(i.destroy=void 0,"function"===typeof s)try{s()}catch(c){if(null===o)throw Error(a(330));Nl(o,c)}}for(n=Js,Js=[],r=0;r<n.length;r+=2){i=n[r],o=n[r+1];try{var l=i.create;i.destroy=l()}catch(c){if(null===o)throw Error(a(330));Nl(o,c)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return As=t,Gi(),!0}function Il(e,t,n){lo(e,t=cs(0,t=as(n,t),1)),t=cl(),null!==(e=fl(e,1))&&(Ht(e,1,t),dl(e,t))}function Nl(e,t){if(3===e.tag)Il(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Il(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===$s||!$s.has(r))){var i=us(n,e=as(t,e),1);if(lo(n,i),i=cl(),null!==(n=fl(n,1)))Ht(n,1,i),dl(n,i);else if("function"===typeof r.componentDidCatch&&(null===$s||!$s.has(r)))try{r.componentDidCatch(t,e)}catch(o){}break}}n=n.return}}function Fl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=cl(),e.pingedLanes|=e.suspendedLanes&n,Ps===e&&(Ls&n)===n&&(4===Ds||3===Ds&&(62914560&Ls)===Ls&&500>Ui()-Vs?_l(e,0):Us|=n),dl(e,t)}function Bl(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0===(2&(t=e.mode))?t=1:0===(4&t)?t=99===zi()?1:2:(0===ol&&(ol=Ns),0===(t=zt(62914560&~ol))&&(t=4194304))),n=cl(),null!==(e=fl(e,t))&&(Ht(e,t,n),dl(e,n))}function Ul(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.t
vendor: 15,285 bytes, line 2
2ype=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function zl(e,t,n,r){return new Ul(e,t,n,r)}function Vl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Hl(e,t){var n=e.alternate;return null===n?((n=zl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Wl(e,t,n,r,i,o){var s=2;if(r=e,"function"===typeof e)Vl(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case C:return Gl(n.children,i,o,t);case I:s=8,i|=16;break;case k:s=8,i|=1;break;case O:return(e=zl(12,n,t,8|i)).elementType=O,e.type=O,e.lanes=o,e;case P:return(e=zl(13,n,t,i)).type=P,e.elementType=P,e.lanes=o,e;case j:return(e=zl(19,n,t,i)).elementType=j,e.lanes=o,e;case N:return ql(n,i,o,t);case F:return(e=zl(24,n,t,i)).elementType=F,e.lanes=o,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case E:s=10;break e;case T:s=9;break e;case A:s=11;break e;case L:s=14;break e;case M:s=16,r=null;break e;case R:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=zl(s,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function Gl(e,t,n,r){return(e=zl(7,e,r,t)).lanes=n,e}function ql(e,t,n,r){return(e=zl(23,e,r,t)).elementType=N,e.lanes=n,e}function Xl(e,t,n){return(e=zl(6,e,null,t)).lanes=n,e}function Yl(e,t,n){return(t=zl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $l(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Vt(0),this.expirationTimes=Vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vt(0),this.mutableSourceEagerHydrationData=null}function Kl(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Zl(e,t,n,r){var i=t.current,o=cl(),s=ul(i);e:if(n){t:{if(Ke(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(pi(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(a(171))}if(1===n.tag){var c=n.type;if(pi(c)){n=mi(n,c,l);break e}}n=l}else n=ci;return null===t.context?t.context=n:t.pendingContext=n,(t=so(o,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),lo(i,t),hl(i,s,o),s}function Ql(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Jl(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function ec(e,t){Jl(e,t),(e=e.alternate)&&Jl(e,t)}function tc(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new $l(e,t,null!=n&&!0===n.hydrate),t=zl(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,oo(t),e[Zr]=n.current,Ar(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(t=r[e])._getVersion;i=i(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}function nc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function rc(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"===typeof i){var s=i;i=function(){var e=Ql(a);s.call(e)}}Zl(t,a,e,i)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new tc(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"===typeof i){var l=i;i=function(){var e=Ql(a);l.call(e)}}yl((function(){Zl(t,a,e,i)}))}return Ql(a)}function ic(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!nc(t))throw Error(a(200));return Kl(e,t,null,n)}Gs=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||hi.current)Ra=!0;else{if(0===(n&r)){switch(Ra=!1,t.tag){case 3:Wa(t),Go();break;case 5:Mo(t);break;case 1:pi(t.type)&&yi(t);break;case 4:jo(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;li($i,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(n&t.child.childLanes)?$a(e,t,n):(li(Do,1&Do.current),null!==(t=ns(e,t,n))?t.sibling:null);li(Do,1&Do.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(64&e.flags)){if(r)return ts(e,t,n);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),li(Do,Do.current),r)break;return null;case 23:case 24:return t.lanes=0,Ba(e,t,n)}return ns(e,t,n)}Ra=0!==(16384&e.flags)}else Ra=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=di(t,ui.current),no(t,n),i=ia(null,t,r,e,i,n),t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,pi(r)){var o=!0;yi(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,oo(t);var s=r.getDerivedStateFromProps;"function"===typeof s&&po(t,r,s,e),i.updater=go,t.stateNode=i,i._reactInternals=t,bo(t,r,e,n),t=Ha(null,t,r,!0,o,n)}else t.tag=0,Da(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"===typeof e)return Vl(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===A)return 11;if(e===L)return 14}return 2}(i),e=Yi(i,e),o){case 0:t=za(null,t,i,e,n);break e;case 1:t=Va(null,t,i,e,n);break e;case 11:t=Ia(null,t,i,e,n);break e;case 14:t=Na(null,t,i,Yi(i.type,e),r,n);break e}throw Error(a(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,za(e,t,r,i=t.elementType===r?i:Yi(r,i),n);case 1:return r=t.type,i=t.pendingProps,Va(e,t,r,i=t.elementType===r?i:Yi(r,i),n);case 3:if(Wa(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,ao(e,t),uo(t,r,null,n),(r=t.memoizedState.element)===i)Go(),t=ns(e,t,n);else{if((o=(i=t.stateNode).hydrate)&&(Fo=Gr(t.stateNode.containerInfo.firstChild),No=t,o=Bo=!0),o){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(o=e[i])._workInProgressVersionPrimary=e[i+1],qo.push(o);for(n=ko(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Da(e,t,r,n),Go();t=t.child}return t;case 5:return Mo(t),null===e&&Vo(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,zr(r,i)?s=null:null!==o&&zr(r,o)&&(t.flags|=16),Ua(e,t),Da(e,t,s,n),t.child;case 6:return null===e&&Vo(t),null;case 13:return $a(e,t,n);case 4:return jo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Co(t,null,r,n):Da(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Ia(e,t,r,i=t.elementType===r?i:Yi(r,i),n);case 7:return Da(e,t,t.pendingProps,n),t.child;case 8:case 12:return Da(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value;var l=t.type._context;if(li($i,l._currentValue),l._currentValue=o,null!==s)if(l=s.value,0===(o=sr(l,o)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(l,o):1073741823))){if(s.children===i.children&&!hi.current){t=ns(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var c=l.dependencies;if(null!==c){s=l.child;for(var u=c.firstContext;null!==u;){if(u.context===r&&0!==(u.observedBits&o)){1===l.tag&&((u=so(-1,n&-n)).tag=2,lo(l,u)),l.lanes|=n,null!==(u=l.alternate)&&(u.lanes|=n),to(l.return,n),c.lanes|=n;break}u=u.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}Da(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,no(t,n),r=r(i=ro(i,o.unstable_observedBits)),t.flags|=1,Da(e,t,r,n),t.child;case 14:return o=Yi(i=t.type,t.pendingProps),Na(e,t,i,o=Yi(i.type,o),r,n);case 15:return Fa(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Yi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,pi(r)?(e=!0,yi(t)):e=!1,no(t,n),mo(t,r,i),bo(t,r,i,n),Ha(null,t,r,!0,e,n);case 19:return ts(e,t,n);case 23:case 24:return Ba(e,t,n)}throw Error(a(156,t.tag))},tc.prototype.render=function(e){Zl(e,this._internalRoot,null,null)},tc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Zl(null,e,null,(function(){t[Zr]=null}))},tt=function(e){13===e.tag&&(hl(e,4,cl()),ec(e,4))},nt=function(e){13===e.tag&&(hl(e,67108864,cl()),ec(e,67108864))},rt=function(e){if(13===e.tag){var t=cl(),n=ul(e);hl(e,n,t),ec(e,n)}},it=function(e,t){return t()},Ee=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ni(r);if(!i)throw Error(a(90));Z(r),ne(r,i)}}}break;case"textarea":ce(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},Me=ml,Re=function(e,t,n,r,i){var o=As;As|=4;try{return Hi(98,e.bind(null,t,n,r,i))}finally{0===(As=o)&&(Ws(),Gi())}},De=function(){0===(49&As)&&(function(){if(null!==tl){var e=tl;tl=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,dl(e,Ui())}))}Gi()}(),Ll())},Ie=function(e,t){var n=As;As|=2;try{return e(t)}finally{0===(As=n)&&(Ws(),Gi())}};var oc={Events:[ei,ti,ni,je,Le,Ll,{current:!1}]},ac={findFiberByHostInstance:Jr,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},sc={bundleType:ac.bundleType,version:ac.version,rendererPackageName:ac.rendererPackageName,rendererConfig:ac.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:ac.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var lc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lc.isDisabled&&lc.supportsFiber)try{xi=lc.inject(sc),_i=lc}catch(ve){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oc,t.createPortal=ic,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){var n=As;if(0!==(48&n))return e(t);As|=1;try{if(e)return Hi(99,e.bind(null,t))}finally{As=n,Gi()}},t.hydrate=function(e,t,n){if(!nc(t))throw Error(a(200));return rc(null,e,t,!0,n)},t.render=function(e,t,n){if(!nc(t))throw Error(a(200));return rc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!nc(e))throw Error(a(40));return!!e._reactRootContainer&&(yl((function(){rc(null,null,e,!1,(function(){e._reactRootContainer=null,e[Zr]=null}))})),!0)},t.unstable_batchedUpdates=ml,t.unstable_createPortal=function(e,t){return ic(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!nc(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return rc(e,t,n,!1,r)},t.version="17.0.2"},function(e,t,n){"use strict";e.exports=n(288)},function(e,t,n){"use strict";var r,i,o,a;if("object"===typeof performance&&"function"===typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var l=Date,c=l.now();t.unstable_now=function(){return l.now()-c}}if("undefined"===typeof window||"function"!==typeof MessageChannel){var u=null,h=null,f=function e(){if(null!==u)try{var n=t.unstable_now();u(!0,n),u=null}catch(r){throw setTimeout(e,0),r}};r=function(e){null!==u?setTimeout(r,0,e):(u=e,setTimeout(f,0))},i=function(e,t){h=setTimeout(e,t)},o=function(){clearTimeout(h)},t.unstable_shouldYield=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,p=window.clearTimeout;if("undefined"!==typeof console){var g=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!==typeof g&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var v=!1,m=null,y=-1,b=5,x=0;t.unstable_shouldYield=function(){return t.unstable_now()>=x},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):b=0<e?Math.floor(1e3/e):5};var _=new MessageChannel,w=_.port2;_.port1.onmessage=function(){if(null!==m){var e=t.unstable_now();x=e+b;try{m(!0,e)?w.postMessage(null):(v=!1,m=null)}catch(n){throw w.postMessage(null),n}}else v=!1},r=function(e){m=e,v||(v=!0,w.postMessage(null))},i=function(e,n){y=d((function(){e(t.unstable_now())}),n)},o=function(){p(y),y=-1}}function S(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<O(i,t)))break e;e[r]=t,e[n]=i,n=r}}function C(e){return void 0===(e=e[0])?null:e}function k(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],s=o+1,l=e[s];if(void 0!==a&&0>O(a,n))void 0!==l&&0>O(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==l&&0>O(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function O(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var E=[],T=[],A=1,P=null,j=3,L=!1,M=!1,R=!1;function D(e){for(var t=C(T);null!==t;){if(null===t.callback)k(T);else{if(!(t.startTime<=e))break;k(T),t.sortIndex=t.expirationTime,S(E,t)}t=C(T)}}
2function I(e){if(R=!1,D(e),!M)if(null!==C(E))M=!0,r(N);else{var t=C(T);null!==t&&i(I,t.startTime-e)}}function N(e,n){M=!1,R&&(R=!1,o()),L=!0;var r=j;try{for(D(n),P=C(E);null!==P&&(!(P.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=P.callback;if("function"===typeof a){P.callback=null,j=P.priorityLevel;var s=a(P.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?P.callback=s:P===C(E)&&k(E),D(n)}else k(E);P=C(E)}if(null!==P)var l=!0;else{var c=C(T);null!==c&&i(I,c.startTime-n),l=!1}return l}finally{P=null,j=r,L=!1}}var F=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){M||L||(M=!0,r(N))},t.unstable_getCurrentPriorityLevel=function(){return j},t.unstable_getFirstCallbackNode=function(){return C(E)},t.unstable_next=function(e){switch(j){case 1:case 2:case 3:var t=3;break;default:t=j}var n=j;j=t;try{return e()}finally{j=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=F,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=j;j=e;try{return t()}finally{j=n}},t.unstable_scheduleCallback=function(e,n,a){var s=t.unstable_now();switch("object"===typeof a&&null!==a?a="number"===typeof(a=a.delay)&&0<a?s+a:s:a=s,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:A++,callback:n,priorityLevel:e,startTime:a,expirationTime:l=a+l,sortIndex:-1},a>s?(e.sortIndex=a,S(T,e),null===C(E)&&e===C(T)&&(R?o():R=!0,i(I,a-s))):(e.sortIndex=l,S(E,e),M||L||(M=!0,r(N))),e},t.unstable_wrapCallback=function(e){var t=j;return function(){var n=j;j=t;try{return e.apply(this,arguments)}finally{j=n}}}},function(e,t,n){},function(e,t,n){},,function(e,t,n){"use strict";n(164);var r=n(0),i=60103;if(t.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),t.Fragment=o("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,o={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:u,props:o,_owner:a.current}}t.jsx=c,t.jsxs=c},function(e,t,n){"use strict";var r=60103,i=60106,o=60107,a=60108,s=60114,l=60109,c=60110,u=60112,h=60113,f=60120,d=60115,p=60116,g=60121,v=60122,m=60117,y=60129,b=60131;if("function"===typeof Symbol&&Symbol.for){var x=Symbol.for;r=x("react.element"),i=x("react.portal"),o=x("react.fragment"),a=x("react.strict_mode"),s=x("react.profiler"),l=x("react.provider"),c=x("react.context"),u=x("react.forward_ref"),h=x("react.suspense"),f=x("react.suspense_list"),d=x("react.memo"),p=x("react.lazy"),g=x("react.block"),v=x("react.server.block"),m=x("react.fundamental"),y=x("react.debug_trace_mode"),b=x("react.legacy_hidden")}function _(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case s:case a:case h:case f:return e;default:switch(e=e&&e.$$typeof){case c:case u:case p:case d:case l:return e;default:return t}}case i:return t}}}var w=l,S=r,C=u,k=o,O=p,E=d,T=i,A=s,P=a,j=h;t.ContextConsumer=c,t.ContextProvider=w,t.Element=S,t.ForwardRef=C,t.Fragment=k,t.Lazy=O,t.Memo=E,t.Portal=T,t.Profiler=A,t.StrictMode=P,t.Suspense=j,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return _(e)===c},t.isContextProvider=function(e){return _(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return _(e)===u},t.isFragment=function(e){return _(e)===o},t.isLazy=function(e){return _(e)===p},t.isMemo=function(e){return _(e)===d},t.isPortal=function(e){return _(e)===i},t.isProfiler=function(e){return _(e)===s},t.isStrictMode=function(e){return _(e)===a},t.isSuspense=function(e){return _(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===s||e===y||e===a||e===h||e===f||e===b||"object"===typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===d||e.$$typeof===l||e.$$typeof===c||e.$$typeof===u||e.$$typeof===m||e.$$typeof===g||e[0]===v)},t.typeOf=_},function(e,t,n){"use strict";e.exports=n(295)},function(e,t,n){"use strict";var r="function"===typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,h=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,g=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,x=r?Symbol.for("react.responder"):60118,_=r?Symbol.for("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case h:case f:case a:case l:case s:case p:return e;default:switch(e=e&&e.$$typeof){case u:case d:case m:case v:case c:return e;default:return t}}case o:return t}}}function S(e){return w(e)===f}t.AsyncMode=h,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=c,t.Element=i,t.ForwardRef=d,t.Fragment=a,t.Lazy=m,t.Memo=v,t.Portal=o,t.Profiler=l,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||w(e)===h},t.isConcurrentMode=S,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===c},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===m},t.isMemo=function(e){return w(e)===v},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===l},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===f||e===l||e===s||e===p||e===g||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===v||e.$$typeof===c||e.$$typeof===u||e.$$typeof===d||e.$$typeof===b||e.$$typeof===x||e.$$typeof===_||e.$$typeof===y)},t.typeOf=w},function(e,t,n){"use strict";var r=n(297);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;
2var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=n(57),i=n(210),o=n(299),a=n(216);function s(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var l=s(n(213));l.Axios=o,l.create=function(e){return s(a(l.defaults,e))},l.Cancel=n(217),l.CancelToken=n(312),l.isCancel=n(212),l.all=function(e){return Promise.all(e)},l.spread=n(313),l.isAxiosError=n(314),e.exports=l,e.exports.default=l},function(e,t,n){"use strict";var r=n(57),i=n(211),o=n(300),a=n(301),s=n(216);function l(e){this.defaults=e,this.interceptors={request:new o,response:new o}}l.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},l.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=l},function(e,t,n){"use strict";var r=n(57);function i(){this.handlers=[]}i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},function(e,t,n){"use strict";var r=n(57),i=n(302),o=n(212),a=n(213);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return s(e),t.data=i(t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(s(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(57);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},function(e,t,n){"use strict";var r=n(57);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";var r=n(215);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.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:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(57);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";var r=n(308),i=n(309);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(57),i=["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"];e.exports=function(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},function(e,t,n){"use strict";var r=n(57);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(217);function i(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";e.exports=function(e){return"object"===typeof e&&!0===e.isAxiosError}},function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}
vendor: 4,197 bytes, line 2
2try{l({},"")}catch(j){l=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,o=Object.create(i.prototype),a=new T(r||[]);return o._invoke=function(e,t,n){var r=h;return function(i,o){if(r===d)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return P()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===h)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var l=u(e,t,n);if("normal"===l.type){if(r=n.done?p:f,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=p,n.method="throw",n.arg=l.arg)}}}(e,n,a),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(j){return{type:"throw",arg:j}}}e.wrap=c;var h="suspendedStart",f="suspendedYield",d="executing",p="completed",g={};function v(){}function m(){}function y(){}var b={};l(b,o,(function(){return this}));var x=Object.getPrototypeOf,_=x&&x(x(A([])));_&&_!==n&&r.call(_,o)&&(b=_);var w=y.prototype=v.prototype=Object.create(b);function S(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(i,o,a,s){var l=u(e[i],e,o);if("throw"!==l.type){var c=l.arg,h=c.value;return h&&"object"===typeof h&&r.call(h,"__await")?t.resolve(h.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(h).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function k(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,k(e,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=u(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function A(e){if(e){var n=e[o];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:P}}function P(){return{value:t,done:!0}}return m.prototype=y,l(w,"constructor",y),l(y,"constructor",m),m.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},S(C.prototype),l(C.prototype,a,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(w),l(w,s,"Generator"),l(w,o,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=A,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(E),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;
2var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:A(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=r}catch(i){"object"===typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,n){"use strict";e.exports=n(318)},function(e,t,n){"use strict";var r="function"===typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,h=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,g=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,x=r?Symbol.for("react.responder"):60118,_=r?Symbol.for("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case h:case f:case a:case l:case s:case p:return e;default:switch(e=e&&e.$$typeof){case u:case d:case m:case v:case c:return e;default:return t}}case o:return t}}}function S(e){return w(e)===f}t.AsyncMode=h,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=c,t.Element=i,t.ForwardRef=d,t.Fragment=a,t.Lazy=m,t.Memo=v,t.Portal=o,t.Profiler=l,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||w(e)===h},t.isConcurrentMode=S,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===c},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===m},t.isMemo=function(e){return w(e)===v},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===l},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===f||e===l||e===s||e===p||e===g||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===v||e.$$typeof===c||e.$$typeof===u||e.$$typeof===d||e.$$typeof===b||e.$$typeof===x||e.$$typeof===_||e.$$typeof===y)},t.typeOf=w},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to de
2structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){var r=n(218);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){var r=n(268);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},function(e,t,n){var r=n(167),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t,n=e,o=[];if(!n)return o;if(!r[typeof e])return o;for(t in n)i.call(n,t)&&o.push(t);return o}},function(e,t,n){var r=n(220),i=n(335);e.exports=function(e,t,n){var o=-1,a=e?e.length:0;if(t=t&&"undefined"==typeof n?t:r(t,n,3),"number"==typeof a)for(;++o<a&&!1!==t(e[o],o,e););else i(e,t);return e}},function(e,t,n){var r=n(329),i=(n(128),n(223));e.exports=function(e,t){return arguments.length>2?r(e,17,i(arguments,2),null,t):r(e,1,null,null,t)}},function(e,t,n){var r=n(330),i=n(331),o=n(332),a=[].push;e.exports=function e(t,n,s,l,c,u){var h=1&n,f=4&n,d=16&n,p=32&n;if(!(2&n)&&!o(t))throw new TypeError;d&&!s.length&&(n&=-17,d=s=!1),p&&!l.length&&(n&=-33,p=l=!1);var g=t&&t.__bindData__;return g&&!0!==g?(g=g.slice(),!h||1&g[1]||(g[4]=c),!h&&1&g[1]&&(n|=8),!f||4&g[1]||(g[5]=u),d&&a.apply(g[2]||(g[2]=[]),s),p&&a.apply(g[3]||(g[3]=[]),l),g[1]|=n,e.apply(null,g)):(1==n||17===n?r:i)([t,n,s,l,c,u])}},function(e,t,n){var r=n(221),i=n(141),o=n(168),a=[].push;e.exports=function(e){var t=e[0],n=e[2],s=e[4];function l(){if(n){var e=n.slice();a.apply(e,arguments)}if(this instanceof l){var o=r(t.prototype),c=t.apply(o,e||arguments);return i(c)?c:o}return t.apply(s,e||arguments)}return o(l,e),l}},function(e,t,n){var r=n(221),i=n(141),o=n(168),a=n(223),s=[].push;e.exports=function e(t){var n=t[0],l=t[1],c=t[2],u=t[3],h=t[4],f=t[5],d=1&l,p=2&l,g=4&l,v=8&l,m=n;function y(){var t=d?h:this;if(c){var o=c.slice();s.apply(o,arguments)}if((u||g)&&(o||(o=a(arguments)),u&&s.apply(o,u),g&&o.length<f))return l|=16,e([n,v?l:-4&l,o,null,h,f]);if(o||(o=arguments),p&&(n=t[m]),this instanceof y){t=r(n.prototype);var b=n.apply(t,o);return i(b)?b:t}return n.apply(t,o)}return o(y,t),y}},function(e,t){e.exports=function(e){return"function"==typeof e}},function(e,t){e.exports=function(e){return e}},function(e,t,n){(function(t){var r=n(128),i={};i.funcDecomp=!r.test(t.WinRTError)&&/\bthis\b/.test((function(){return this})),i.funcNames="string"==typeof Function.name,e.exports=i}).call(this,n(104))},function(e,t,n){var r=n(220),i=n(219),o=n(167);e.exports=function(e,t,n){var a,s=e,l=s;if(!s)return l;if(!o[typeof s])return l;t=t&&"undefined"==typeof n?t:r(t,n,3);for(var c=-1,u=o[typeof s]&&i(s),h=u?u.length:0;++c<h;)if(!1===t(s[a=u[c]],a,e))return l;return l}},function(e,t){var n,r;n={mm:{name:{singular:"Millimeter",plural:"Millimeters"},to_anchor:.001},cm:{name:{singular:"Centimeter",plural:"Centimeters"},to_anchor:.01},m:{name:{singular:"Meter",plural:"Meters"},to_anchor:1},km:{name:{singular:"Kilometer",plural:"Kilometers"},to_anchor:1e3}},r={in:{name:{singular:"Inch",plural:"Inches"},to_anchor:1/12},yd:{name:{singular:"Yard",plural:"Yards"},to_anchor:3},"ft-us":{name:{singular:"US Survey Foot",plural:"US Survey Feet"},to_anchor:1.000002},ft:{name:{singular:"Foot",plural:"Feet"},to_anchor:1},mi:{name:{singular:"Mile",plural:"Miles"},to_anchor:5280}},e.exports={metric:n,imperial:r,_anchors:{metric:{unit:"m",ratio:3.28084},imperial:{unit:"ft",ratio:1/3.28084}}}},function(e,t){var n,r;n={mm2:{name:{singular:"Square Millimeter",plural:"Square Millimeters"},to_anchor:1e-6},cm2:{name:{singular:"Centimeter",plural:"Centimeters"},to_anchor:1e-4},m2:{name:{singular:"Square Meter",plural:"Square Meters"},to_anchor:1},ha:{name:{singular:"Hectare",plural:"Hectares"},to_anchor:1e4},km2:{name:{singular:"Square Kilometer",plural:"Square Kilometers"},to_anchor:1e6}},r={in2:{name:{singular:"Square Inch",plural:"Square Inches"},to_anchor:1/144},yd2:{name:{singular:"Square Yard",plural:"Square Yards"},to_anchor:9},ft2:{name:{singular:"Square Foot",plural:"Square Feet"},to_anchor:1},ac:{name:{singular:"Acre",plural:"Acres"},to_anchor:43560},mi2:{name:{singular:"Square Mile",plural:"Square Miles"},to_anchor:27878400}},e.exports={metric:n,imperial:r,_anchors:{metric:{unit:"m2",ratio:10.7639},imperial:{unit:"ft2",ratio:1/10.7639}}}},function(e,t){var n,r;n={mcg:{name:{singular:"Microgram",plural:"Micrograms"},to_anchor:1e-6},mg:{name:{singular:"Milligram",plural:"Milligrams"},to_anchor:.001},g:{name:{singular:"Gram",plural:"Grams"},to_anchor:1},kg:{name:{singular:"Kilogram",plural:"Kilograms"},to_anchor:1e3},mt:{name:{singular:"Metric Tonne",plural:"Metric Tonnes"},to_anchor:1e6}},r={oz:{name:{singular:"Ounce",plural:"Ounces"},to_anchor:1/16},lb:{name:{singular:"Pound",plural:"Pounds"},to_anchor:1},t:{name:{singular:"Ton",plural:"Tons"},to_anchor:2e3}},e.exports={metric:n,imperial:r,_anchors:{metric:{unit:"g",ratio:1/453.592},imperial:{unit:"lb",ratio:453.592}}}},function(e,t){var n,r;n={mm3:{name:{singular:"Cubic Millimeter",plural:"Cubic Millimeters"},to_anchor:1e-6},cm3:{name:{singular:"Cubic Centimeter",plural:"Cubic Centimeters"},to_anchor:.001},ml:{name:{singular:"Millilitre",plural:"Millilitres"},to_anchor:.001},cl:{name:{singular:"Centilitre",plural:"Centilitres"},to_anchor:.01}
2,dl:{name:{singular:"Decilitre",plural:"Decilitres"},to_anchor:.1},l:{name:{singular:"Litre",plural:"Litres"},to_anchor:1},kl:{name:{singular:"Kilolitre",plural:"Kilolitres"},to_anchor:1e3},m3:{name:{singular:"Cubic meter",plural:"Cubic meters"},to_anchor:1e3},km3:{name:{singular:"Cubic kilometer",plural:"Cubic kilometers"},to_anchor:1e12},krm:{name:{singular:"Matsked",plural:"Matskedar"},to_anchor:.001},tsk:{name:{singular:"Tesked",plural:"Teskedar"},to_anchor:.005},msk:{name:{singular:"Matsked",plural:"Matskedar"},to_anchor:.015},kkp:{name:{singular:"Kaffekopp",plural:"Kaffekoppar"},to_anchor:.15},glas:{name:{singular:"Glas",plural:"Glas"},to_anchor:.2},kanna:{name:{singular:"Kanna",plural:"Kannor"},to_anchor:2.617}},r={tsp:{name:{singular:"Teaspoon",plural:"Teaspoons"},to_anchor:1/6},Tbs:{name:{singular:"Tablespoon",plural:"Tablespoons"},to_anchor:.5},in3:{name:{singular:"Cubic inch",plural:"Cubic inches"},to_anchor:.55411},"fl-oz":{name:{singular:"Fluid Ounce",plural:"Fluid Ounces"},to_anchor:1},cup:{name:{singular:"Cup",plural:"Cups"},to_anchor:8},pnt:{name:{singular:"Pint",plural:"Pints"},to_anchor:16},qt:{name:{singular:"Quart",plural:"Quarts"},to_anchor:32},gal:{name:{singular:"Gallon",plural:"Gallons"},to_anchor:128},ft3:{name:{singular:"Cubic foot",plural:"Cubic feet"},to_anchor:957.506},yd3:{name:{singular:"Cubic yard",plural:"Cubic yards"},to_anchor:25852.7}},e.exports={metric:n,imperial:r,_anchors:{metric:{unit:"l",ratio:33.8140226},imperial:{unit:"fl-oz",ratio:1/33.8140226}}}},function(e,t){var n;n={ea:{name:{singular:"Each",plural:"Each"},to_anchor:1},dz:{name:{singular:"Dozen",plural:"Dozens"},to_anchor:12}},e.exports={metric:n,imperial:{},_anchors:{metric:{unit:"ea",ratio:1}}}},function(e,t){var n,r;n={C:{name:{singular:"degree Celsius",plural:"degrees Celsius"},to_anchor:1,anchor_shift:0},K:{name:{singular:"degree Kelvin",plural:"degrees Kelvin"},to_anchor:1,anchor_shift:273.15}},r={F:{name:{singular:"degree Fahrenheit",plural:"degrees Fahrenheit"},to_anchor:1},R:{name:{singular:"degree Rankine",plural:"degrees Rankine"},to_anchor:1,anchor_shift:459.67}},e.exports={metric:n,imperial:r,_anchors:{metric:{unit:"C",transform:function(e){return e/(5/9)+32}},imperial:{unit:"F",transform:function(e){return 5/9*(e-32)}}}}},function(e,t){var n;n={ns:{name:{singular:"Nanosecond",plural:"Nanoseconds"},to_anchor:1e-9},mu:{name:{singular:"Microsecond",plural:"Microseconds"},to_anchor:1e-6},ms:{name:{singular:"Millisecond",plural:"Milliseconds"},to_anchor:.001},s:{name:{singular:"Second",plural:"Seconds"},to_anchor:1},min:{name:{singular:"Minute",plural:"Minutes"},to_anchor:60},h:{name:{singular:"Hour",plural:"Hours"},to_anchor:3600},d:{name:{singular:"Day",plural:"Days"},to_anchor:86400},week:{name:{singular:"Week",plural:"Weeks"},to_anchor:604800},month:{name:{singular:"Month",plural:"Months"},to_anchor:2629800},year:{name:{singular:"Year",plural:"Years"},to_anchor:31557600}},e.exports={metric:n,_anchors:{metric:{unit:"s",ratio:1}}}},function(e,t){var n,r;n={b:{name:{singular:"Bit",plural:"Bits"},to_anchor:1},Kb:{name:{singular:"Kilobit",plural:"Kilobits"},to_anchor:1024},Mb:{name:{singular:"Megabit",plural:"Megabits"},to_anchor:1048576},Gb:{name:{singular:"Gigabit",plural:"Gigabits"},to_anchor:1073741824},Tb:{name:{singular:"Terabit",plural:"Terabits"},to_anchor:1099511627776}},r={B:{name:{singular:"Byte",plural:"Bytes"},to_anchor:1},KB:{name:{singular:"Kilobyte",plural:"Kilobytes"},to_anchor:1024},MB:{name:{singular:"Megabyte",plural:"Megabytes"},to_anchor:1048576},GB:{name:{singular:"Gigabyte",plural:"Gigabytes"},to_anchor:1073741824},TB:{name:{singular:"Terabyte",plural:"Terabytes"},to_anchor:1099511627776}},e.exports={bits:n,bytes:r,_anchors:{bits:{unit:"b",ratio:1/8},bytes:{unit:"B",ratio:8}}}},function(e,t){var n;n={ppm:{name:{singular:"Part-per Million",plural:"Parts-per Million"},to_anchor:1},ppb:{name:{singular:"Part-per Billion",plural:"Parts-per Billion"},to_anchor:.001},ppt:{name:{singular:"Part-per Trillion",plural:"Parts-per Trillion"},to_anchor:1e-6},ppq:{name:{singular:"Part-per Quadrillion",plural:"Parts-per Quadrillion"},to_anchor:1e-9}},e.exports={metric:n,imperial:{},_anchors:{metric:{unit:"ppm",ratio:1e-6}}}},function(e,t){var n,r;n={"m/s":{name:{singular:"Metre per second",plural:"Metres per second"},to_anchor:3.6},"km/h":{name:{singular:"Kilometre per hour",plural:"Kilometres per hour"},to_anchor:1}},r={"m/h":{name:{singular:"Mile per hour",plural:"Miles per hour"},to_anchor:1},knot:{name:{singular:"Knot",plural:"Knots"},to_anchor:1.150779},"ft/s":{name:{singular:"Foot per second",plural:"Feet per second"},to_anchor:.681818}},e.exports={metric:n,imperial:r,_anchors:{metric:{unit:"km/h",ratio:1/1.609344},imperial:{unit:"m/h",ratio:1.609344}}}},function(e,t){var n,r;n={"min/km":{name:{singular:"Minute per kilometre",plural:"Minutes per kilometre"},to_anchor:.06},"s/m":{name:{singular:"Second per metre",plural:"Seconds per metre"},to_anchor:1}},r={"min/mi":{name:{singular:"Minute per mile",plural:"Minutes per mile"},to_anchor:.0113636},"s/ft":{name:{singular:"Second per foot",plural:"Seconds per foot"},to_anchor:1}},e.exports={metric:n,imperial:r,_anchors:{metric:{unit:"s/m",ratio:.3048},imperial:{unit:"s/ft",ratio:1/.3048}}}},function(e,t){var n,r;n={Pa:{name:{singular:"pascal",plural:"pascals"},to_anchor:.001},kPa:{name:{singular:"kilopascal",plural:"kilopascals"},to_anchor:1},MPa:{name:{singular:"megapascal",plural:"megapascals"},to_anchor:1e3}
2,hPa:{name:{singular:"hectopascal",plural:"hectopascals"},to_anchor:.1},bar:{name:{singular:"bar",plural:"bar"},to_anchor:100},torr:{name:{singular:"torr",plural:"torr"},to_anchor:101325/76e4}},r={psi:{name:{singular:"pound per square inch",plural:"pounds per square inch"},to_anchor:.001},ksi:{name:{singular:"kilopound per square inch",plural:"kilopound per square inch"},to_anchor:1}},e.exports={metric:n,imperial:r,_anchors:{metric:{unit:"kPa",ratio:.00014503768078},imperial:{unit:"psi",ratio:6894.76000045014}}}},function(e,t){var n;n={A:{name:{singular:"Ampere",plural:"Amperes"},to_anchor:1},mA:{name:{singular:"Milliampere",plural:"Milliamperes"},to_anchor:.001},kA:{name:{singular:"Kiloampere",plural:"Kiloamperes"},to_anchor:1e3}},e.exports={metric:n,_anchors:{metric:{unit:"A",ratio:1}}}},function(e,t){var n;n={V:{name:{singular:"Volt",plural:"Volts"},to_anchor:1},mV:{name:{singular:"Millivolt",plural:"Millivolts"},to_anchor:.001},kV:{name:{singular:"Kilovolt",plural:"Kilovolts"},to_anchor:1e3}},e.exports={metric:n,_anchors:{metric:{unit:"V",ratio:1}}}},function(e,t){var n;n={W:{name:{singular:"Watt",plural:"Watts"},to_anchor:1},mW:{name:{singular:"Milliwatt",plural:"Milliwatts"},to_anchor:.001},kW:{name:{singular:"Kilowatt",plural:"Kilowatts"},to_anchor:1e3},MW:{name:{singular:"Megawatt",plural:"Megawatts"},to_anchor:1e6},GW:{name:{singular:"Gigawatt",plural:"Gigawatts"},to_anchor:1e9}},e.exports={metric:n,_anchors:{metric:{unit:"W",ratio:1}}}},function(e,t){var n;n={VAR:{name:{singular:"Volt-Ampere Reactive",plural:"Volt-Amperes Reactive"},to_anchor:1},mVAR:{name:{singular:"Millivolt-Ampere Reactive",plural:"Millivolt-Amperes Reactive"},to_anchor:.001},kVAR:{name:{singular:"Kilovolt-Ampere Reactive",plural:"Kilovolt-Amperes Reactive"},to_anchor:1e3},MVAR:{name:{singular:"Megavolt-Ampere Reactive",plural:"Megavolt-Amperes Reactive"},to_anchor:1e6},GVAR:{name:{singular:"Gigavolt-Ampere Reactive",plural:"Gigavolt-Amperes Reactive"},to_anchor:1e9}},e.exports={metric:n,_anchors:{metric:{unit:"VAR",ratio:1}}}},function(e,t){var n;n={VA:{name:{singular:"Volt-Ampere",plural:"Volt-Amperes"},to_anchor:1},mVA:{name:{singular:"Millivolt-Ampere",plural:"Millivolt-Amperes"},to_anchor:.001},kVA:{name:{singular:"Kilovolt-Ampere",plural:"Kilovolt-Amperes"},to_anchor:1e3},MVA:{name:{singular:"Megavolt-Ampere",plural:"Megavolt-Amperes"},to_anchor:1e6},GVA:{name:{singular:"Gigavolt-Ampere",plural:"Gigavolt-Amperes"},to_anchor:1e9}},e.exports={metric:n,_anchors:{metric:{unit:"VA",ratio:1}}}},function(e,t){var n;n={Wh:{name:{singular:"Watt-hour",plural:"Watt-hours"},to_anchor:3600},mWh:{name:{singular:"Milliwatt-hour",plural:"Milliwatt-hours"},to_anchor:3.6},kWh:{name:{singular:"Kilowatt-hour",plural:"Kilowatt-hours"},to_anchor:36e5},MWh:{name:{singular:"Megawatt-hour",plural:"Megawatt-hours"},to_anchor:36e8},GWh:{name:{singular:"Gigawatt-hour",plural:"Gigawatt-hours"},to_anchor:36e11},J:{name:{singular:"Joule",plural:"Joules"},to_anchor:1},kJ:{name:{singular:"Kilojoule",plural:"Kilojoules"},to_anchor:1e3}},e.exports={metric:n,_anchors:{metric:{unit:"J",ratio:1}}}},function(e,t){var n;n={VARh:{name:{singular:"Volt-Ampere Reactive Hour",plural:"Volt-Amperes Reactive Hour"},to_anchor:1},mVARh:{name:{singular:"Millivolt-Ampere Reactive Hour",plural:"Millivolt-Amperes Reactive Hour"},to_anchor:.001},kVARh:{name:{singular:"Kilovolt-Ampere Reactive Hour",plural:"Kilovolt-Amperes Reactive Hour"},to_anchor:1e3},MVARh:{name:{singular:"Megavolt-Ampere Reactive Hour",plural:"Megavolt-Amperes Reactive Hour"},to_anchor:1e6},GVARh:{name:{singular:"Gigavolt-Ampere Reactive Hour",plural:"Gigavolt-Amperes Reactive Hour"},to_anchor:1e9}},e.exports={metric:n,_anchors:{metric:{unit:"VARh",ratio:1}}}},function(e,t){var n,r;n={"mm3/s":{name:{singular:"Cubic Millimeter per second",plural:"Cubic Millimeters per second"},to_anchor:1e-6},"cm3/s":{name:{singular:"Cubic Centimeter per second",plural:"Cubic Centimeters per second"},to_anchor:.001},"ml/s":{name:{singular:"Millilitre per second",plural:"Millilitres per second"},to_anchor:.001},"cl/s":{name:{singular:"Centilitre per second",plural:"Centilitres per second"},to_anchor:.01}
2,"dl/s":{name:{singular:"Decilitre per second",plural:"Decilitres per second"},to_anchor:.1},"l/s":{name:{singular:"Litre per second",plural:"Litres per second"},to_anchor:1},"l/min":{name:{singular:"Litre per minute",plural:"Litres per minute"},to_anchor:1/60},"l/h":{name:{singular:"Litre per hour",plural:"Litres per hour"},to_anchor:1/3600},"kl/s":{name:{singular:"Kilolitre per second",plural:"Kilolitres per second"},to_anchor:1e3},"kl/min":{name:{singular:"Kilolitre per minute",plural:"Kilolitres per minute"},to_anchor:50/3},"kl/h":{name:{singular:"Kilolitre per hour",plural:"Kilolitres per hour"},to_anchor:5/18},"m3/s":{name:{singular:"Cubic meter per second",plural:"Cubic meters per second"},to_anchor:1e3},"m3/min":{name:{singular:"Cubic meter per minute",plural:"Cubic meters per minute"},to_anchor:50/3},"m3/h":{name:{singular:"Cubic meter per hour",plural:"Cubic meters per hour"},to_anchor:5/18},"km3/s":{name:{singular:"Cubic kilometer per second",plural:"Cubic kilometers per second"},to_anchor:1e12}},r={"tsp/s":{name:{singular:"Teaspoon per second",plural:"Teaspoons per second"},to_anchor:1/6},"Tbs/s":{name:{singular:"Tablespoon per second",plural:"Tablespoons per second"},to_anchor:.5},"in3/s":{name:{singular:"Cubic inch per second",plural:"Cubic inches per second"},to_anchor:.55411},"in3/min":{name:{singular:"Cubic inch per minute",plural:"Cubic inches per minute"},to_anchor:.55411/60},"in3/h":{name:{singular:"Cubic inch per hour",plural:"Cubic inches per hour"},to_anchor:.55411/3600},"fl-oz/s":{name:{singular:"Fluid Ounce per second",plural:"Fluid Ounces per second"},to_anchor:1},"fl-oz/min":{name:{singular:"Fluid Ounce per minute",plural:"Fluid Ounces per minute"},to_anchor:1/60},"fl-oz/h":{name:{singular:"Fluid Ounce per hour",plural:"Fluid Ounces per hour"},to_anchor:1/3600},"cup/s":{name:{singular:"Cup per second",plural:"Cups per second"},to_anchor:8},"pnt/s":{name:{singular:"Pint per second",plural:"Pints per second"},to_anchor:16},"pnt/min":{name:{singular:"Pint per minute",plural:"Pints per minute"},to_anchor:4/15},"pnt/h":{name:{singular:"Pint per hour",plural:"Pints per hour"},to_anchor:1/225},"qt/s":{name:{singular:"Quart per second",plural:"Quarts per second"},to_anchor:32},"gal/s":{name:{singular:"Gallon per second",plural:"Gallons per second"},to_anchor:128},"gal/min":{name:{singular:"Gallon per minute",plural:"Gallons per minute"},to_anchor:32/15},"gal/h":{name:{singular:"Gallon per hour",plural:"Gallons per hour"},to_anchor:8/225},"ft3/s":{name:{singular:"Cubic foot per second",plural:"Cubic feet per second"},to_anchor:957.506},"ft3/min":{name:{singular:"Cubic foot per minute",plural:"Cubic feet per minute"},to_anchor:957.506/60},"ft3/h":{name:{singular:"Cubic foot per hour",plural:"Cubic feet per hour"},to_anchor:957.506/3600},"yd3/s":{name:{singular:"Cubic yard per second",plural:"Cubic yards per second"},to_anchor:25852.7},"yd3/min":{name:{singular:"Cubic yard per minute",plural:"Cubic yards per minute"},to_anchor:25852.7/60},"yd3/h":{name:{singular:"Cubic yard per hour",plural:"Cubic yards per hour"},to_anchor:25852.7/3600}},e.exports={metric:n,imperial:r,_anchors:{metric:{unit:"l/s",ratio:33.8140227},imperial:{unit:"fl-oz/s",ratio:1/33.8140227}}}},function(e,t){var n,r;n={lx:{name:{singular:"Lux",plural:"Lux"},to_anchor:1}},r={"ft-cd":{name:{singular:"Foot-candle",plural:"Foot-candles"},to_anchor:1}},e.exports={metric:n,imperial:r,_anchors:{metric:{unit:"lx",ratio:1/10.76391},imperial:{unit:"ft-cd",ratio:10.76391}}}},function(e,t){var n;n={mHz:{name:{singular:"millihertz",plural:"millihertz"},to_anchor:.001},Hz:{name:{singular:"hertz",plural:"hertz"},to_anchor:1},kHz:{name:{singular:"kilohertz",plural:"kilohertz"},to_anchor:1e3},MHz:{name:{singular:"megahertz",plural:"megahertz"},to_anchor:1e6},GHz:{name:{singular:"gigahertz",plural:"gigahertz"},to_anchor:1e9},THz:{name:{singular:"terahertz",plural:"terahertz"},to_anchor:1e12},rpm:{name:{singular:"rotation per minute",plural:"rotations per minute"},to_anchor:1/60},"deg/s":{name:{singular:"degree per second",plural:"degrees per second"},to_anchor:1/360},"rad/s":{name:{singular:"radian per second",plural:"radians per second"},to_anchor:1/(2*Math.PI)}},e.exports={metric:n,_anchors:{frequency:{unit:"hz",ratio:1}}}},function(e,t){var n;n={rad:{name:{singular:"radian",plural:"radians"},to_anchor:180/Math.PI},deg:{name:{singular:"degree",plural:"degrees"},to_anchor:1},grad:{name:{singular:"gradian",plural:"gradians"},to_anchor:.9},arcmin:{name:{singular:"arcminute",plural:"arcminutes"},to_anchor:1/60},arcsec:{name:{singular:"arcsecond",plural:"arcseconds"},to_anchor:1/3600}},e.exports={metric:n,_anchors:{metric:{unit:"deg",ratio:1}}}},function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=c(e),a=r[0],s=r[1],l=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),u=0,h=s>
vendor: 4,716 bytes, line 2
20?a-4:a;for(n=0;n<h;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[u++]=255&t);1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t);return l},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=16383,s=0,l=n-i;s<l;s+=a)o.push(u(e,s,s+a>l?l:s+a));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var i,o,a=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,c=l>>1,u=-7,h=n?i-1:0,f=n?-1:1,d=e[t+h];for(h+=f,o=d&(1<<-u)-1,d>>=-u,u+=s;u>0;o=256*o+e[t+h],h+=f,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+h],h+=f,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=c}return(d?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<<c)-1,h=u>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+h>=1?f/l:f*Math.pow(2,1-h))*l>=2&&(a++,l/=2),a+h>=u?(s=0,a=u):a+h>=1?(s=(t*l-1)*Math.pow(2,i),a+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;e[n+d]=255&s,d+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[n+d]=255&a,d+=p,a/=256,c-=8);e[n+d-p]|=128*g}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},,function(e,t,n){"use strict";n.r(t),n.d(t,"Node",(function(){return re})),n.d(t,"Parser",(function(){return U})),n.d(t,"Position",(function(){return R})),n.d(t,"SourceLocation",(function(){return D})),n.d(t,"TokContext",(function(){return ae})),n.d(t,"Token",(function(){return Ae})),n.d(t,"TokenType",(function(){return v})),n.d(t,"defaultOptions",(function(){return N})),n.d(t,"getLineInfo",(function(){return I})),n.d(t,"isIdentifierChar",(function(){return g})),n.d(t,"isIdentifierStart",(function(){return p})),n.d(t,"isNewLine",(function(){return k})),n.d(t,"keywordTypes",(function(){return x})),n.d(t,"lineBreak",(function(){return S})),n.d(t,"lineBreakG",(function(){return C})),n.d(t,"nonASCIIwhitespace",(function(){return O})),n.d(t,"parse",(function(){return De})),n.d(t,"parseExpressionAt",(function(){return Ie})),n.d(t,"tokContexts",(function(){return se})),n.d(t,"tokTypes",(function(){return w})),n.d(t,"tokenizer",(function(){return Ne})),n.d(t,"version",(function(){return Re}));var r={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},i="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",o={5:i,"5module":i+" export import",6:i+" const class extends export import super"},a=/^in(stanceof)?$/,s="\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u08a0-\u08b4\u08b6-\u08c7\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u09fc\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0
2ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d04-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31bf\u31f0-\u31ff\u3400-\u4dbf\u4e00-\u9ffc\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7ca\ua7f5-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab69\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc",l="\u200c\u200d\xb7\u0300-\u036f\u0387\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u0669\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u06f0-\u06f9\u0711\u0730-\u074a\u07a6-\u07b0\u07c0-\u07c9\u07eb-\u07f3\u07fd\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08d3-\u08e1\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0966-\u096f\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u09e6-\u09ef\u09fe\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a66-\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0ae6-\u0aef\u0afa-\u0aff\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b55-\u0b57\u0b62\u0b63\u0b66-\u0b6f\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0be6-\u0bef\u0c00-\u0c04\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c66-\u0c6f\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0ce6-\u0cef\u0d00-\u0d03\u0d3b\u0d3c\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d66-\u0d6f\u0d81-\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0e50-\u0e59\u0eb1\u0eb4-\u0ebc\u0ec8-\u0ecd\u0ed0-\u0ed9\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1040-\u1049\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u10
271-\u1074\u1082-\u108d\u108f-\u109d\u135d-\u135f\u1369-\u1371\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u17e0-\u17e9\u180b-\u180d\u1810-\u1819\u18a9\u1920-\u192b\u1930-\u193b\u1946-\u194f\u19d0-\u19da\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1ab0-\u1abd\u1abf\u1ac0\u1b00-\u1b04\u1b34-\u1b44\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1bb0-\u1bb9\u1be6-\u1bf3\u1c24-\u1c37\u1c40-\u1c49\u1c50-\u1c59\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf4\u1cf7-\u1cf9\u1dc0-\u1df9\u1dfb-\u1dff\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua620-\ua629\ua66f\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua82c\ua880\ua881\ua8b4-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f1\ua8ff-\ua909\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9d0-\ua9d9\ua9e5\ua9f0-\ua9f9\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa50-\uaa59\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\uabf0-\uabf9\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f\ufe33\ufe34\ufe4d-\ufe4f\uff10-\uff19\uff3f",c=new RegExp("["+s+"]"),u=new RegExp("["+s+l+"]");s=l=null;var h=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],f=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function d(e,t){for(var n=65536,r=0;r<t.length;r+=2){if((n+=t[r])>e)return!1;if((n+=t[r+1])>=e)return!0}}function p(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&c.test(String.fromCharCode(e)):!1!==t&&d(e,h)))}function g(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&u.test(String.fromCharCode(e)):!1!==t&&(d(e,h)||d(e,f)))))}var v=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.
2isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function m(e,t){return new v(e,{beforeExpr:!0,binop:t})}var y={beforeExpr:!0},b={startsExpr:!0},x={};function _(e,t){return void 0===t&&(t={}),t.keyword=e,x[e]=new v(e,t)}var w={num:new v("num",b),regexp:new v("regexp",b),string:new v("string",b),name:new v("name",b),eof:new v("eof"),bracketL:new v("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new v("]"),braceL:new v("{",{beforeExpr:!0,startsExpr:!0}),braceR:new v("}"),parenL:new v("(",{beforeExpr:!0,startsExpr:!0}),parenR:new v(")"),comma:new v(",",y),semi:new v(";",y),colon:new v(":",y),dot:new v("."),question:new v("?",y),questionDot:new v("?."),arrow:new v("=>",y),template:new v("template"),invalidTemplate:new v("invalidTemplate"),ellipsis:new v("...",y),backQuote:new v("`",b),dollarBraceL:new v("${",{beforeExpr:!0,startsExpr:!0}),eq:new v("=",{beforeExpr:!0,isAssign:!0}),assign:new v("_=",{beforeExpr:!0,isAssign:!0}),incDec:new v("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new v("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:m("||",1),logicalAND:m("&&",2),bitwiseOR:m("|",3),bitwiseXOR:m("^",4),bitwiseAND:m("&",5),equality:m("==/!=/===/!==",6),relational:m("</>/<=/>=",7),bitShift:m("<</>>/>>>",8),plusMin:new v("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:m("%",10),star:m("*",10),slash:m("/",10),starstar:new v("**",{beforeExpr:!0}),coalesce:m("??",1),_break:_("break"),_case:_("case",y),_catch:_("catch"),_continue:_("continue"),_debugger:_("debugger"),_default:_("default",y),_do:_("do",{isLoop:!0,beforeExpr:!0}),_else:_("else",y),_finally:_("finally"),_for:_("for",{isLoop:!0}),_function:_("function",b),_if:_("if"),_return:_("return",y),_switch:_("switch"),_throw:_("throw",y),_try:_("try"),_var:_("var"),_const:_("const"),_while:_("while",{isLoop:!0}),_with:_("with"),_new:_("new",{beforeExpr:!0,startsExpr:!0}),_this:_("this",b),_super:_("super",b),_class:_("class",b),_extends:_("extends",y),_export:_("export"),_import:_("import",b),_null:_("null",b),_true:_("true",b),_false:_("false",b),_in:_("in",{beforeExpr:!0,binop:7}),_instanceof:_("instanceof",{beforeExpr:!0,binop:7}),_typeof:_("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:_("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:_("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},S=/\r\n?|\n|\u2028|\u2029/,C=new RegExp(S.source,"g");function k(e,t){return 10===e||13===e||!t&&(8232===e||8233===e)}var O=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,E=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,T=Object.prototype,A=T.hasOwnProperty,P=T.toString;function j(e,t){return A.call(e,t)}var L=Array.isArray||function(e){return"[object Array]"===P.call(e)};function M(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}var R=function(e,t){this.line=e,this.column=t};R.prototype.offset=function(e){return new R(this.line,this.column+e)};var D=function(e,t,n){this.start=t,this.end=n,null!==e.sourceFile&&(this.source=e.sourceFile)};function I(e,t){for(var n=1,r=0;;){C.lastIndex=r;var i=C.exec(e);if(!(i&&i.index<t))return new R(n,t-r);++n,r=i.index+i[0].length}}var N={ecmaVersion:10,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:!1,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1};function F(e){var t={};for(var n in N)t[n]=e&&j(e,n)?e[n]:N[n];if(t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),L(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return L(t.onComment)&&(t.onComment=function(e,t){return function(n,r,i,o,a,s){var l={type:n?"Block":"Line",value:r,start:i,end:o};e.locations&&(l.loc=new D(this,a,s)),e.ranges&&(l.range=[i,o]),t.push(l)}}(t,t.onComment)),t}function B(e,t){return 2|(e?4:0)|(t?8:0)}var U=function(e,t,n){this.options=e=F(e),this.sourceFile=e.sourceFile,this.keywords=M(o[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var i="";if(!0!==e.allowReserved){for(var a=e.ecmaVersion;!(i=r[a]);a--);"module"===e.sourceType&&(i+=" await")}this.reservedWords=M(i);var s=(i?i+" ":"")+r.strict;
vendor: 4,709 bytes, line 2
2this.reservedWordsStrict=M(s),this.reservedWordsStrictBind=M(s+" "+r.strictBind),this.input=String(t),this.containsEsc=!1,n?(this.pos=n,this.lineStart=this.input.lastIndexOf("\n",n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(S).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=w.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null},z={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};U.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},z.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},z.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},z.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},z.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0},z.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},z.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},U.prototype.inNonArrowFunction=function(){return(2&this.currentThisScope().flags)>0},U.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,r=0;r<e.length;r++)n=e[r](n);return n},U.parse=function(e,t){return new this(t,e).parse()},U.parseExpressionAt=function(e,t,n){var r=new this(n,e,t);return r.nextToken(),r.parseExpression()},U.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(U.prototype,z);var V=U.prototype,H=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;function W(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}V.strictDirective=function(e){for(;;){E.lastIndex=e,e+=E.exec(this.input)[0].length;var t=H.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){E.lastIndex=e+t[0].length;var n=E.exec(this.input),r=n.index+n[0].length,i=this.input.charAt(r);return";"===i||"}"===i||S.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||"!"===i&&"="===this.input.charAt(r+1))}e+=t[0].length,E.lastIndex=e,e+=E.exec(this.input)[0].length,";"===this.input[e]&&e++}},V.eat=function(e){return this.type===e&&(this.next(),!0)},V.isContextual=function(e){return this.type===w.name&&this.value===e&&!this.containsEsc},V.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},V.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},V.canInsertSemicolon=function(){return this.type===w.eof||this.type===w.braceR||S.test(this.input.slice(this.lastTokEnd,this.start))},V.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},V.semicolon=function(){this.eat(w.semi)||this.insertSemicolon()||this.unexpected()},V.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},V.expect=function(e){this.eat(e)||this.unexpected()},V.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")},V.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,"Parenthesized pattern")}},V.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")},V.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},V.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"Member
2Expression"===e.type};var G=U.prototype;G.parseTopLevel=function(e){var t={};for(e.body||(e.body=[]);this.type!==w.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var r=0,i=Object.keys(this.undefinedExports);r<i.length;r+=1){var o=i[r];this.raiseRecoverable(this.undefinedExports[o].start,"Export '"+o+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var q={kind:"loop"},X={kind:"switch"};G.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;E.lastIndex=this.pos;var t=E.exec(this.input),n=this.pos+t[0].length,r=this.input.charCodeAt(n);if(91===r)return!0;if(e)return!1;if(123===r)return!0;if(p(r,!0)){for(var i=n+1;g(this.input.charCodeAt(i),!0);)++i;var o=this.input.slice(n,i);if(!a.test(o))return!0}return!1},G.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;E.lastIndex=this.pos;var e=E.exec(this.input),t=this.pos+e[0].length;return!S.test(this.input.slice(this.pos,t))&&"function"===this.input.slice(t,t+8)&&(t+8===this.input.length||!g(this.input.charAt(t+8)))},G.parseStatement=function(e,t,n){var r,i=this.type,o=this.startNode();switch(this.isLet(e)&&(i=w._var,r="let"),i){case w._break:case w._continue:return this.parseBreakContinueStatement(o,i.keyword);case w._debugger:return this.parseDebuggerStatement(o);case w._do:return this.parseDoStatement(o);case w._for:return this.parseForStatement(o);case w._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(o,!1,!e);case w._class:return e&&this.unexpected(),this.parseClass(o,!0);case w._if:return this.parseIfStatement(o);
vendor: 4,195 bytes, line 2
2case w._return:return this.parseReturnStatement(o);case w._switch:return this.parseSwitchStatement(o);case w._throw:return this.parseThrowStatement(o);case w._try:return this.parseTryStatement(o);case w._const:case w._var:return r=r||this.value,e&&"var"!==r&&this.unexpected(),this.parseVarStatement(o,r);case w._while:return this.parseWhileStatement(o);case w._with:return this.parseWithStatement(o);case w.braceL:return this.parseBlock(!0,o);case w.semi:return this.parseEmptyStatement(o);case w._export:case w._import:if(this.options.ecmaVersion>10&&i===w._import){E.lastIndex=this.pos;var a=E.exec(this.input),s=this.pos+a[0].length,l=this.input.charCodeAt(s);if(40===l||46===l)return this.parseExpressionStatement(o,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===w._import?this.parseImport(o):this.parseExport(o,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(o,!0,!e);var c=this.value,u=this.parseExpression();return i===w.name&&"Identifier"===u.type&&this.eat(w.colon)?this.parseLabeledStatement(o,c,u,e):this.parseExpressionStatement(o,u)}},G.parseBreakContinueStatement=function(e,t){var n="break"===t;this.next(),this.eat(w.semi)||this.insertSemicolon()?e.label=null:this.type!==w.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r<this.labels.length;++r){var i=this.labels[r];if(null==e.label||i.name===e.label.name){if(null!=i.kind&&(n||"loop"===i.kind))break;if(e.label&&n)break}}return r===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,n?"BreakStatement":"ContinueStatement")},G.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},G.parseDoStatement=function(e){return this.next(),this.labels.push(q),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(w._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(w.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},G.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(q),this.enterScope(0),this.expect(w.parenL),this.type===w.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===w._var||this.type===w._const||n){var r=this.startNode(),i=n?"let":this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,"VariableDeclaration"),(this.type===w._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===r.declarations.length?(this.options.ecmaVersion>=9&&(this.type===w._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r)):(t>-1&&this.unexpected(t),this.parseFor(e,r))}var o=new W,a=this.parseExpression(!0,o);return this.type===w._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===w._in?t>-1&&this.unexpected(t):e.await=t>-1),this.toAssignable(a,!1,o),this.checkLVal(a),this.parseForIn(e,a)):(this.checkExpressionErrors(o,!0),t>-1&&this.unexpected(t),this.parseFor(e,a))},G.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,$|(n?0:K),!1,t)},G.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(w._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},G.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(w.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},G.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(w.braceL),this.labels.push(X),this.enterScope(0);for(var n=!1;this.type!==w.braceR;
2)if(this.type===w._case||this.type===w._default){var r=this.type===w._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,t.test=null),this.expect(w.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},G.parseThrowStatement=function(e){return this.next(),S.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Y=[];G.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===w._catch){var t=this.startNode();if(this.next(),this.eat(w.parenL)){t.param=this.parseBindingAtom();var n="Identifier"===t.param.type;this.enterScope(n?32:0),this.checkLVal(t.param,n?4:2),this.expect(w.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0);t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(w._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},G.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},G.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(q),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},G.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},G.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},G.parseLabeledStatement=function(e,t,n,r){for(var i=0,o=this.labels;i<o.length;i+=1){o[i].name===t&&this.raise(n.start,"Label '"+t+"' is already declared")}for(var a=this.type.isLoop?"loop":this.type===w._switch?"switch":null,s=this.labels.length-1;s>=0;s--){var l=this.labels[s];if(l.statementStart!==e.start)break;l.statementStart=this.start,l.kind=a}return this.labels.push({name:t,kind:a,statementStart:this.start}),e.body=this.parseStatement(r?-1===r.indexOf("label")?r+"label":r:"label"),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")},G.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},G.parseBlock=function(e,t,n){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(w.braceL),e&&this.enterScope(0);this.type!==w.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},G.parseFor=function(e,t){return e.init=t,this.expect(w.semi),e.test=this.type===w.semi?null:this.parseExpression(),this.expect(w.semi),e.update=this.type===w.parenR?null:this.parseExpression(),this.expect(w.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},G.parseForIn=function(e,t){var n=this.type===w._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!n||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)?this.raise(t.start,(n?"for-in":"for-of")+" loop variable declaration may not have an initializer"):"AssignmentPattern"===t.type&&this.raise(t.start,"Invalid left-hand side in for-loop"),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(w.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")},G.parseVar=function(e,t,n){for(e.declarations=[],e.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(w.eq)?r.init=this.parseMaybeAssign(t):"const"!==n||this.type===w._in||this.options.ecmaVersion>
2=6&&this.isContextual("of")?"Identifier"===r.id.type||t&&(this.type===w._in||this.isContextual("of"))?r.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(w.comma))break}return e},G.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLVal(e.id,"var"===t?1:2,!1)};var $=1,K=2;G.parseFunction=function(e,t,n,r){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===w.star&&t&K&&this.unexpected(),e.generator=this.eat(w.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&$&&(e.id=4&t&&this.type!==w.name?null:this.parseIdent(),!e.id||t&K||this.checkLVal(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var i=this.yieldPos,o=this.awaitPos,a=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(B(e.async,e.generator)),t&$||(e.id=this.type===w.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1),this.yieldPos=i,this.awaitPos=o,this.awaitIdentPos=a,this.finishNode(e,t&$?"FunctionDeclaration":"FunctionExpression")},G.parseFunctionParams=function(e){this.expect(w.parenL),e.params=this.parseBindingList(w.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},G.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.startNode(),i=!1;for(r.body=[],this.expect(w.braceL);this.type!==w.braceR;){var o=this.parseClassElement(null!==e.superClass);o&&(r.body.push(o),"MethodDefinition"===o.type&&"constructor"===o.kind&&(i&&this.raise(o.start,"Duplicate constructor in the same class"),i=!0))}return this.strict=n,this.next(),e.body=this.finishNode(r,"ClassBody"),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},G.parseClassElement=function(e){var t=this;if(this.eat(w.semi))return null;var n=this.startNode(),r=function(e,r){void 0===r&&(r=!1);var i=t.start,o=t.startLoc;return!!t.eatContextual(e)&&(!(t.type===w.parenL||r&&t.canInsertSemicolon())||(n.key&&t.unexpected(),n.computed=!1,n.key=t.startNodeAt(i,o),n.key.name=e,t.finishNode(n.key,"Identifier"),!1))};n.kind="method",n.static=r("static");var i=this.eat(w.star),o=!1;i||(this.options.ecmaVersion>=8&&r("async",!0)?(o=!0,i=this.options.ecmaVersion>=9&&this.eat(w.star)):r("get")?n.kind="get":r("set")&&(n.kind="set")),n.key||this.parsePropertyName(n);var a=n.key,s=!1;return n.computed||n.static||!("Identifier"===a.type&&"constructor"===a.name||"Literal"===a.type&&"constructor"===a.value)?n.static&&"Identifier"===a.type&&"prototype"===a.name&&this.raise(a.start,"Classes may not have a static property named prototype"):("method"!==n.kind&&this.raise(a.start,"Constructor can't have get/set modifier"),i&&this.raise(a.start,"Constructor can't be a generator"),o&&this.raise(a.start,"Constructor can't be an async method"),n.kind="constructor",s=e),this.parseClassMethod(n,i,o,s),"get"===n.kind&&0!==n.value.params.length&&this.raiseRecoverable(n.value.start,"getter should have no params"),"set"===n.kind&&1!==n.value.params.length&&this.raiseRecoverable(n.value.start,"setter should have exactly one param"),"set"===n.kind&&"RestElement"===n.value.params[0].type&&this.raiseRecoverable(n.value.params[0].start,"Setter cannot use rest params"),n},G.parseClassMethod=function(e,t,n,r){return e.value=this.parseMethod(t,n,r),this.finishNode(e,"MethodDefinition")},G.parseClassId=function(e,t){this.type===w.name?(e.id=this.parseIdent(),t&&this.checkLVal(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},G.parseClassSuper=function(e){e.superClass=this.eat(w._extends)?this.parseExprSubscripts():null},G.parseExport=function(e,t){if(this.next(),this.eat(w.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseIdent(!0),this.checkExport(t,e.exported.name,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==w.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(w._default)){var n;if(this.checkExport(t,"default",this.lastTokStart),this.type===w._function||(n=this.isAsyncFunction())){var r=this.startNode();this.next(),n&&this.next(),e.declaration=this.parseFunction(r,4|$,!1,n)}
2else if(this.type===w._class){var i=this.startNode();e.declaration=this.parseClass(i,"nullableID")}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id.name,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==w.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var o=0,a=e.specifiers;o<a.length;o+=1){var s=a[o];this.checkUnreserved(s.local),this.checkLocalExport(s.local)}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},G.checkExport=function(e,t,n){e&&(j(e,t)&&this.raiseRecoverable(n,"Duplicate export '"+t+"'"),e[t]=!0)},G.checkPatternExport=function(e,t){var n=t.type;if("Identifier"===n)this.checkExport(e,t.name,t.start);else if("ObjectPattern"===n)for(var r=0,i=t.properties;r<i.length;r+=1){var o=i[r];this.checkPatternExport(e,o)}else if("ArrayPattern"===n)for(var a=0,s=t.elements;a<s.length;a+=1){var l=s[a];l&&this.checkPatternExport(e,l)}else"Property"===n?this.checkPatternExport(e,t.value):"AssignmentPattern"===n?this.checkPatternExport(e,t.left):"RestElement"===n?this.checkPatternExport(e,t.argument):"ParenthesizedExpression"===n&&this.checkPatternExport(e,t.expression)},G.checkVariableExport=function(e,t){if(e)for(var n=0,r=t;n<r.length;n+=1){var i=r[n];this.checkPatternExport(e,i.id)}},G.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},G.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(w.braceL);!this.eat(w.braceR);){if(n)n=!1;else if(this.expect(w.comma),this.afterTrailingComma(w.braceR))break;var r=this.startNode();r.local=this.parseIdent(!0),r.exported=this.eatContextual("as")?this.parseIdent(!0):r.local,this.checkExport(e,r.exported.name,r.exported.start),t.push(this.finishNode(r,"ExportSpecifier"))}return t},G.parseImport=function(e){return this.next(),this.type===w.string?(e.specifiers=Y,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.t
vendor: 4,189 bytes, line 2
2ype===w.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},G.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===w.name){var n=this.startNode();if(n.local=this.parseIdent(),this.checkLVal(n.local,2),e.push(this.finishNode(n,"ImportDefaultSpecifier")),!this.eat(w.comma))return e}if(this.type===w.star){var r=this.startNode();return this.next(),this.expectContextual("as"),r.local=this.parseIdent(),this.checkLVal(r.local,2),e.push(this.finishNode(r,"ImportNamespaceSpecifier")),e}for(this.expect(w.braceL);!this.eat(w.braceR);){if(t)t=!1;else if(this.expect(w.comma),this.afterTrailingComma(w.braceR))break;var i=this.startNode();i.imported=this.parseIdent(!0),this.eatContextual("as")?i.local=this.parseIdent():(this.checkUnreserved(i.imported),i.local=i.imported),this.checkLVal(i.local,2),e.push(this.finishNode(i,"ImportSpecifier"))}return e},G.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},G.isDirectiveCandidate=function(e){return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"===typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var Z=U.prototype;Z.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var r=0,i=e.properties;r<i.length;r+=1){var o=i[r];this.toAssignable(o,t),"RestElement"!==o.type||"ArrayPattern"!==o.argument.type&&"ObjectPattern"!==o.argument.type||this.raise(o.argument.start,"Unexpected token")}break;case"Property":"init"!==e.kind&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",n&&this.checkPatternErrors(n,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),"AssignmentPattern"===e.argument.type&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);case"AssignmentPattern":break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,n);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else n&&this.checkPatternErrors(n,!0);return e},Z.toAssignableList=function(e,t){for(var n=e.length,r=0;r<n;r++){var i=e[r];i&&this.toAssignable(i,t)}if(n){var o=e[n-1];6===this.options.ecmaVersion&&t&&o&&"RestElement"===o.type&&"Identifier"!==o.argument.type&&this.unexpected(o.argument.start)}return e},Z.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},Z.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==w.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},Z.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case w.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(w.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case w.braceL:return this.parseObj(!0)}return this.parseIdent()},Z.parseBindingList=function(e,t,n){for(var r=[],i=!0;!this.eat(e);)if(i?i=!1:this.expect(w.comma),t&&this.type===w.comma)r.push(null);else{if(n&&this.afterTrailingComma(e))break;if(this.type===w.ellipsis){var o=this.parseRestBinding();this.parseBindingListItem(o),r.push(o),this.type===w.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}var a=this.parseMaybeDefault(this.start,this.startLoc);
2this.parseBindingListItem(a),r.push(a)}return r},Z.parseBindingListItem=function(e){return e},Z.parseMaybeDefault=function(e,t,n){if(n=n||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(w.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")},Z.checkLVal=function(e,t,n){switch(void 0===t&&(t=0),e.type){case"Identifier":2===t&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(t?"Binding ":"Assigning to ")+e.name+" in strict mode"),n&&(j(n,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),n[e.name]=!0),0!==t&&5!==t&&this.declareName(e.name,t,e.start);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":t&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ObjectPattern":for(var r=0,i=e.properties;r<i.length;r+=1){var o=i[r];this.checkLVal(o,t,n)}break;case"Property":this.checkLVal(e.value,t,n);break;case"ArrayPattern":for(var a=0,s=e.elements;a<s.length;a+=1){var l=s[a];l&&this.checkLVal(l,t,n)}break;case"AssignmentPattern":this.checkLVal(e.left,t,n);break;case"RestElement":this.checkLVal(e.argument,t,n);break;case"ParenthesizedExpression":this.checkLVal(e.expression,t,n);break;default:this.raise(e.start,(t?"Binding":"Assigning to")+" rvalue")}};var Q=U.prototype;Q.checkPropClash=function(e,t,n){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===e.type)&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r,i=e.key;switch(i.type){case"Identifier":r=i.name;break;case"Literal":r=String(i.value);break;default:return}var o=e.kind;if(this.options.ecmaVersion>=6)"__proto__"===r&&"init"===o&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=i.start):this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),t.proto=!0);else{var a=t[r="$"+r];if(a)("init"===o?this.strict&&a.init||a.get||a.set:a.init||a[o])&&this.raiseRecoverable(i.start,"Redefinition of property");else a=t[r]={init:!1,get:!1,set:!1};a[o]=!0}}},Q.parseExpression=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===w.comma){var o=this.startNodeAt(n,r);for(o.expressions=[i];this.eat(w.comma);)o.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(o,"SequenceExpression")}return i},Q.parseMaybeAssign=function(e,t,n){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,i=-1,o=-1;t?(i=t.parenthesizedAssign,o=t.trailingComma,t.parenthesizedAssign=t.trailingComma=-1):(t=new W,r=!0);var a=this.start,s=this.startLoc;this.type!==w.parenL&&this.type!==w.name||(this.potentialArrowAt=this.start);var l=this.parseMaybeConditional(e,t);if(n&&(l=n.call(this,l,a,s)),this.type.isAssign){var c=this.startNodeAt(a,s);return c.operator=this.value,c.left=this.type===w.eq?this.toAssignable(l,!1,t):l,r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=c.left.start&&(t.shorthandAssign=-1),this.checkLVal(l),this.next(),c.right=this.parseMaybeAssign(e),this.finishNode(c,"AssignmentExpression")}return r&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),o>-1&&(t.trailingComma=o),l},Q.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(w.question)){var o=this.startNodeAt(n,r);return o.test=i,o.consequent=this.parseMaybeAssign(),this.expect(w.colon),o.alternate=this.parseMaybeAssign(e),this.finishNode(o,"ConditionalExpression")}return i},Q.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1);return this.checkExpressionErrors(t)||i.start===n&&"ArrowFunctionExpression"===i.type?i:this.parseExprOp(i,n,r,-1,e)},Q.parseExprOp=function(e,t,n,r,i){var o=this.type.binop;if(null!=o&&(!i||this.type!==w._in)&&o>r){var a=this.type===w.logicalOR||this.type===w.logicalAND,s=this.type===w.coalesce;s&&(o=w.logicalAND.binop);var l=this.value;this.next();var c=this.start,u=this.startLoc,h=this.parseExprOp(this.parseMaybeUnary(null,!1),c,u,o,i),f=this.buildBinary(t,n,e,h,l,a||s);
2return(a&&this.type===w.coalesce||s&&(this.type===w.logicalOR||this.type===w.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(f,t,n,r,i)}return e},Q.buildBinary=function(e,t,n,r,i,o){var a=this.startNodeAt(e,t);return a.left=n,a.operator=i,a.right=r,this.finishNode(a,o?"LogicalExpression":"BinaryExpression")},Q.parseMaybeUnary=function(e,t){var n,r=this.start,i=this.startLoc;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))n=this.parseAwait(),t=!0;else if(this.type.prefix){var o=this.startNode(),a=this.type===w.incDec;o.operator=this.value,o.prefix=!0,this.next(),o.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),a?this.checkLVal(o.argument):this.strict&&"delete"===o.operator&&"Identifier"===o.argument.type?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):t=!0,n=this.finishNode(o,a?"UpdateExpression":"UnaryExpression")}else{if(n=this.parseExprSubscripts(e),this.checkExpressionErrors(e))return n;for(;this.type.postfix&&!this.canInsertSemicolon();){var s=this.startNodeAt(r,i);s.operator=this.value,s.prefix=!1,s.argument=n,this.checkLVal(n),this.next(),n=this.finishNode(s,"UpdateExpression")}}return!t&&this.eat(w.starstar)?this.buildBinary(r,i,n,this.parseMaybeUnary(null,!1),"**",!1):n},Q.parseExprSubscripts=function(e){var t=this.start,n=this.startLoc,r=this.parseExprAtom(e);if("ArrowFunctionExpression"===r.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return r;var i=this.parseSubscripts(r,t,n);return e&&"MemberExpression"===i.type&&(e.parenthesizedAssign>=i.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=i.start&&(e.parenthesizedBind=-1)),i},Q.parseSubscripts=function(e,t,n,r){for(var i=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,o=!1;;){var a=this.parseSubscript(e,t,n,r,i,o);if(a.optional&&(o=!0),a===e||"ArrowFunctionExpression"===a.type){if(o){var s=this.startNodeAt(t,n);s.expression=a,a=this.finishNode(s,"ChainExpression")}return a}e=a}},Q.parseSubscript=function(e,t,n,r,i,o){var a=this.options.ecmaVersion>=11,s=a&&this.eat(w.questionDot);r&&s&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var l=this.eat(w.bracketL);if(l||s&&this.type!==w.parenL&&this.type!==w.backQuote||this.eat(w.dot)){var c=this.startNodeAt(t,n);c.object=e,c.property=l?this.parseExpression():this.parseIdent("never"!==this.options.allowReserved),c.computed=!!l,l&&this.expect(w.bracketR),a&&(c.optional=s),e=this.finishNode(c,"MemberExpression")}else if(!r&&this.eat(w.parenL)){var u=new W,h=this.yieldPos,f=this.awaitPos,d=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var p=this.parseExprList(w.parenR,this.options.ecmaVersion>=8,!1,u);if(i&&!s&&!this.canInsertSemicolon()&&this.eat(w.arrow))return this.checkPatternErrors(u,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=h,this.awaitPos=f,this.awaitIdentPos=d,this.parseArrowExpression(this.startNodeAt(t,n),p,!0);this.checkExpressionErrors(u,!0),this.yieldPos=h||this.yieldPos,this.awaitPos=f||this.awaitPos,this.awaitIdentPos=d||this.awaitIdentPos;var g=this.startNodeAt(t,n);g.callee=e,g.arguments=p,a&&(g.optional=s),e=this.finishNode(g,"CallExpression")}else if(this.type===w.backQuote){(s||o)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var v=this.startNodeAt(t,n);v.tag=e,v.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(v,"TaggedTemplateExpression")}return e},Q.parseExprAtom=function(e){this.type===w.slash&&this.readRegexp();var t,n=this.potentialArrowAt===this.start;switch(this.type){case w._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),t=this.startNode(),this.next(),this.type!==w.parenL||this.allowDirectSuper||this.raise(t.start,"super() call outside constructor of a subclass"),this.type!==w.dot&&this.type!==w.bracketL&&this.type!==w.parenL&&this.unexpected(),this.finishNode(t,"Super");case w._this:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");
2case w.name:var r=this.start,i=this.startLoc,o=this.containsEsc,a=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&"async"===a.name&&!this.canInsertSemicolon()&&this.eat(w._function))return this.parseFunction(this.startNodeAt(r,i),0,!1,!0);if(n&&!this.canInsertSemicolon()){if(this.eat(w.arrow))return this.parseArrowExpression(this.startNodeAt(r,i),[a],!1);if(this.options.ecmaVersion>=8&&"async"===a.name&&this.type===w.name&&!o)return a=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(w.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(r,i),[a],!0)}return a;case w.regexp:var s=this.value;return(t=this.parseLiteral(s.value)).regex={pattern:s.pattern,flags:s.flags},t;case w.num:case w.string:return this.parseLiteral(this.value);case w._null:case w._true:case w._false:return(t=this.startNode()).value=this.type===w._null?null:this.type===w._true,t.raw=this.type.keyword,this.next(),this.finishNode(t,"Literal");case w.parenL:var l=this.start,c=this.parseParenAndDistinguishExpression(n);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(c)&&(e.parenthesizedAssign=l),e.parenthesizedBind<0&&(e.parenthesizedBind=l)),c;case w.bracketL:return t=this.startNode(),this.next(),t.elements=this.parseExprList(w.bracketR,!0,!0,e),this.finishNode(t,"ArrayExpression");case w.braceL:return this.parseObj(!1,e);case w._function:return t=this.startNode(),this.next(),this.parseFunction(t,0);case w._class:return this.parseClass(this.startNode(),!1);case w._new:return this.parseNew();case w.backQuote:return this.parseTemplate();case w._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},Q.parseExprImport=function(){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var t=this.parseIdent(!0);switch(this.type){case w.parenL:return this.parseDynamicImport(e);case w.dot:return e.meta=t,this.parseImportMeta(e);default:this.unexpected()}},Q.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(w.parenR)){var t=this.start;this.eat(w.comma)&&this.eat(w.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},Q.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"!==this.options.sourceType&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},Q.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},Q.parseParenExpression=function(){this.expect(w.parenL);var e=this.parseExpression();return this.expect(w.parenR),e},Q.parseParenAndDistinguishExpression=function(e){var t,n=this.start,r=this.startLoc,i=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o,a=this.start,s=this.startLoc,l=[],c=!0,u=!1,h=new W,f=this.yieldPos,d=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==w.parenR;){if(c?c=!1:this.expect(w.comma),i&&this.afterTrailingComma(w.parenR,!0)){u=!0;break}if(this.type===w.ellipsis){o=this.start,l.push(this.parseParenItem(this.parseRestBinding())),this.type===w.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}l.push(this.parseMaybeAssign(!1,h,this.parseParenItem))}var p=this.start,g=this.startLoc;if(this.expect(w.parenR),e&&!this.canInsertSemicolon()&&this.eat(w.arrow))return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=f,this.awaitPos=d,this.parseParenArrowList(n,r,l);l.length&&!u||this.unexpected(this.lastTokStart),o&&this.unexpected(o),this.checkExpressionErrors(h,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=d||this.awaitPos,l.length>1?((t=this.startNodeAt(a,s)).expressions=l,this.finishNodeAt(t,"SequenceExpression",p,g)):t=l[0]}else t=this.parseParenExpression();if(this.options.preserveParens){var v=this.startNodeAt(n,r);return v.expression=t,this.finishNode(v,"ParenthesizedExpression")}return t},Q.parseParenItem=function(e){return e},Q.parseParenArrowList=function(e,t,n){return this.parseArrowExpression(this.startNodeAt(e,t),n)};var J=[];Q.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(w.dot)){e.meta=t;var n=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),n&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.inNonArrowFunction()||this.raiseRecoverable(e.start,"'new.target' can only be used in functions"),this.finishNode(e,"MetaProperty")}var r=this.start,i=this.startLoc,o=this.type===w._import;return e.callee=this.parseSubscripts(this.parseExprAtom(),r,i,!0),o&&"ImportExpression"===e.callee.type&&this.raise(r,"Cannot use new with import()"),this.eat(w.parenL)?e.arguments=this.parseExprList(w.parenR,this.options.ecmaVersion>=8,!1):e.arguments=J,this.finishNode(e,"NewExpression")},Q.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===w.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value,cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value}
vendor: 2,206 bytes, line 2
2,this.next(),n.tail=this.type===w.backQuote,this.finishNode(n,"TemplateElement")},Q.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===w.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(w.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(w.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")},Q.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===w.name||this.type===w.num||this.type===w.string||this.type===w.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===w.star)&&!S.test(this.input.slice(this.lastTokEnd,this.start))},Q.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(w.braceR);){if(r)r=!1;else if(this.expect(w.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(w.braceR))break;var o=this.parseProperty(e,t);e||this.checkPropClash(o,i,t),n.properties.push(o)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")},Q.parseProperty=function(e,t){var n,r,i,o,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(w.ellipsis))return e?(a.argument=this.parseIdent(!1),this.type===w.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(this.type===w.parenL&&t&&(t.parenthesizedAssign<0&&(t.parenthesizedAssign=this.start),t.parenthesizedBind<0&&(t.parenthesizedBind=this.start)),a.argument=this.parseMaybeAssign(!1,t),this.type===w.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(a,"SpreadElement"));this.options.ecmaVersion>=6&&(a.method=!1,a.shorthand=!1,(e||t)&&(i=this.start,o=this.startLoc),e||(n=this.eat(w.star)));var s=this.containsEsc;return this.parsePropertyName(a),!e&&!s&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(a)?(r=!0,n=this.options.ecmaVersion>=9&&this.eat(w.star),this.parsePropertyName(a,t)):r=!1,this.parsePropertyValue(a,e,n,r,i,o,t,s),this.finishNode(a,"Property")}
2,Q.parsePropertyValue=function(e,t,n,r,i,o,a,s){if((n||r)&&this.type===w.colon&&this.unexpected(),this.eat(w.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===w.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(n,r);else if(t||s||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===w.comma||this.type===w.braceR||this.type===w.eq)this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=i),e.kind="init",t?e.value=this.parseMaybeDefault(i,o,e.key):this.type===w.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,o,e.key)):e.value=e.key,e.shorthand=!0):this.unexpected();else{(n||r)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var l="get"===e.kind?0:1;if(e.value.params.length!==l){var c=e.value.start;"get"===e.kind?this.raiseRecoverable(c,"getter should have no params"):this.raiseRecoverable(c,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}},Q.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(w.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(w.bracketR),e.key;e.computed=!1}return e.key=this.type===w.num||this.type===w.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},Q.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},Q.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,o=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|B(t,r.generator)|(n?128:0)),this.expect(w.parenL),r.params=this.parseBindingList(w.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0),this.yieldPos=i,this.awaitPos=o,this.awaitIdentPos=a,this.finishNode(r,"FunctionExpression")},Q.parseArrowExpression=function(e,t,n){var r=this.yieldPos,i=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(16|B(n,!1)),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1),this.yieldPos=r,this.awaitPos=i,this.awaitIdentPos=o,this.finishNode(e,"ArrowFunctionExpression")},Q.parseFunctionBody=function(e,t,n){var r=t&&this.type!==w.braceL,i=this.strict,o=!1;if(r)e.body=this.parseMaybeAssign(),e.expression=!0,this.checkParams(e,!1);else{var a=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);i&&!a||(o=this.strictDirective(this.end))&&a&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var s=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(e,!i&&!o&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLVal(e.id,5),e.body=this.parseBlock(!1,void 0,o&&!i),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=s}this.exitScope()},Q.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1){if("Identifier"!==n[t].type)return!1}return!0},Q.checkParams=function(e,t){for(var n={},r=0,i=e.params;r<i.length;r+=1){var o=i[r];this.checkLVal(o,1,t?null:n)}},Q.parseExprList=function(e,t,n,r){for(var i=[],o=!0;!this.eat(e);){if(o)o=!1;else if(this.expect(w.comma),t&&this.afterTrailingComma(e))break;var a=void 0;n&&this.type===w.comma?a=null:this.type===w.ellipsis?(a=this.parseSpread(r),r&&this.type===w.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):a=this.parseMaybeAssign(!1,r),i.push(a)}return i},Q.checkUnreserved=function(e){var t=e.start,n=e.end,r=e.name;(this.inGenerator&&"yield"===r&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===r&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.keywords.test(r)&&this.raise(t,"Unexpected keyword '"+r+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(t,n).indexOf("\\"))||(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(this.inAsync||"await"!==r||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+r+"' is reserved"))},Q.parseIdent=function(e,t){var n=this.startNode();return this.type===w.name?n.name=this.value:this.type.keyword?(n.name=this.type.keyword,"class"!==n.name&&"function"!==n.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop()):this.unexpected(),this.next(!!e),this.finishNode(n,"Identifier"),e||(this.checkUnreserved(n),"await"!==n.name||this.awaitIdentPos||(this.awaitIdentPos=n.start)),n},Q.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===w.semi||this.canInsertSemicolon()||this.type!==w.star&&!this.t
vendor: 6,184 bytes, line 2
2ype.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(w.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},Q.parseAwait=function(){this.awaitPos||(this.awaitPos=this.start);var e=this.startNode();return this.next(),e.argument=this.parseMaybeUnary(null,!1),this.finishNode(e,"AwaitExpression")};var ee=U.prototype;ee.raise=function(e,t){var n=I(this.input,e);t+=" ("+n.line+":"+n.column+")";var r=new SyntaxError(t);throw r.pos=e,r.loc=n,r.raisedAt=this.pos,r},ee.raiseRecoverable=ee.raise,ee.curPosition=function(){if(this.options.locations)return new R(this.curLine,this.pos-this.lineStart)};var te=U.prototype,ne=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[]};te.enterScope=function(e){this.scopeStack.push(new ne(e))},te.exitScope=function(){this.scopeStack.pop()},te.treatFunctionsAsVarInScope=function(e){return 2&e.flags||!this.inModule&&1&e.flags},te.declareName=function(e,t,n){var r=!1;if(2===t){var i=this.currentScope();r=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&1&i.flags&&delete this.undefinedExports[e]}else if(4===t){this.currentScope().lexical.push(e)}else if(3===t){var o=this.currentScope();r=this.treatFunctionsAsVar?o.lexical.indexOf(e)>-1:o.lexical.indexOf(e)>-1||o.var.indexOf(e)>-1,o.functions.push(e)}else for(var a=this.scopeStack.length-1;a>=0;--a){var s=this.scopeStack[a];if(s.lexical.indexOf(e)>-1&&!(32&s.flags&&s.lexical[0]===e)||!this.treatFunctionsAsVarInScope(s)&&s.functions.indexOf(e)>-1){r=!0;break}if(s.var.push(e),this.inModule&&1&s.flags&&delete this.undefinedExports[e],3&s.flags)break}r&&this.raiseRecoverable(n,"Identifier '"+e+"' has already been declared")},te.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},te.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},te.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(3&t.flags)return t}},te.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(3&t.flags&&!(16&t.flags))return t}};var re=function(e,t,n){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new D(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},ie=U.prototype;function oe(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}ie.startNode=function(){return new re(this,this.start,this.startLoc)},ie.startNodeAt=function(e,t){return new re(this,e,t)},ie.finishNode=function(e,t){return oe.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},ie.finishNodeAt=function(e,t,n,r){return oe.call(this,e,t,n,r)};var ae=function(e,t,n,r,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r,this.generator=!!i},se={b_stat:new ae("{",!1),b_expr:new ae("{",!0),b_tmpl:new ae("${",!1),p_stat:new ae("(",!1),p_expr:new ae("(",!0),q_tmpl:new ae("`",!0,!0,(function(e){return e.tryReadTemplateToken()})),f_stat:new ae("function",!1),f_expr:new ae("function",!0),f_expr_gen:new ae("function",!0,!1,null,!0),f_gen:new ae("function",!1,!1,null,!0)},le=U.prototype;le.initialContext=function(){return[se.b_stat]},le.braceIsBlock=function(e){var t=this.curContext();return t===se.f_expr||t===se.f_stat||(e!==w.colon||t!==se.b_stat&&t!==se.b_expr?e===w._return||e===w.name&&this.exprAllowed?S.test(this.input.slice(this.lastTokEnd,this.start)):e===w._else||e===w.semi||e===w.eof||e===w.parenR||e===w.arrow||(e===w.braceL?t===se.b_stat:e!==w._var&&e!==w._const&&e!==w.name&&!this.exprAllowed):!t.isExpr)},le.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},le.updateContext=function(e){var t,n=this.type;n.keyword&&e===w.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},w.parenR.updateContext=w.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===se.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},w.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?se.b_stat:se.b_expr),this.exprAllowed=!0},w.dollarBraceL.updateContext=function(){this.context.push(se.b_tmpl),this.exprAllowed=!0},w.parenL.updateContext=function(e){var t=e===w._if||e===w._for||e===w._with||e===w._while;this.context.push(t?se.p_stat:se.p_expr),this.exprAllowed=!0},w.incDec.updateContext=function(){},w._function.updateContext=w._class.updateContext=function(e){!e.beforeExpr||e===w.semi||e===w._else||e===w._return&&S.test(this.input.slice(this.lastTokEnd,this.start))||(e===w.colon||e===w.braceL)&&this.curContext()===se.b_stat?this.context.push(se.f_stat):this.context.push(se.f_expr),this.exprAllowed=!1},w.backQuote.updateContext=function(){this.curContext()===se.q_tmpl?this.context.pop():this.context.push(se.q_tmpl),this.exprAllowed=!1},w.star.updateContext=function(e){if(e===w._function){var t=this.context.length-1;this.context[t]===se.f_expr?this.context[t]=se.f_expr_gen:this.context[t]=se.f_gen}this.exprAllowed=!0},w.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==w.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var ce="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE L
2owercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",ue=ce+" Extended_Pictographic",he={9:ce,10:ue,11:"ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS Extended_Pictographic"},fe="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",de="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",pe=de+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",ge={9:de,10:pe,11:"Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Re
2jang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho"},ve={};function me(e){var t=ve[e]={binary:M(he[e]+" "+fe),nonBinary:{General_Category:M(fe),Script:M(ge[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}me(9),me(10),me(11);var ye=U.prototype,be=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":""),this.unicodeProperties=ve[e.options.ecmaVersion>=11?11:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function xe(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function _e(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function we(e){return e>=65&&e<=90||e>=97&&e<=122}function Se(e){return we(e)||95===e}function Ce(e){return Se(e)||ke(e)}function ke(e){return e>=48&&e<=57}function Oe(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Ee(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function Te(e){return e>=48&&e<=55}be.prototype.reset=function(e,t,n){var r=-1!==n.indexOf("u");this.start=0|e,this.source=t+"",this.flags=n,this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchN=r&&this.parser.options.ecmaVersion>=9},be.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},be.prototype.at=function(e,t){void 0===t&&(t=!1);var n=this.source,r=n.length;if(e>=r)return-1;var i=n.charCodeAt(e);if(!t&&!this.switchU||i<=55295||i>=57344||e+1>=r)return i;var o=n.charCodeAt(e+1);return o>=56320&&o<=57343?(i<<10)+o-56613888:i},be.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var n=this.source,r=n.length;if(e>=r)return r;var i,o=n.charCodeAt(e);return!t&&!this.switchU||o<=55295||o>=57344||e+1>=r||(i=n.charCodeAt(e+1))<56320||i>57343?e+1:e+2},be.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},be.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},be.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},be.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},ye.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=0;r<n.length;r++){var i=n.charAt(r);-1===t.indexOf(i)&&this.raise(e.start,"Invalid regular expression flag"),n.indexOf(i,r+1)>-1&&this.raise(e.start,"Duplicate regular expression flag")}},ye.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},ye.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,n=e.backReferenceNames;t<n.length;t+=1){var r=n[t];-1===e.groupNames.indexOf(r)&&e.raise("Invalid named capture referenced")}},ye.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},ye.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},ye.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):!!(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))&&(this.regexp_eatQuantifier(e),!0)},ye.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;
vendor: 21,207 bytes, line 2
2if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},ye.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},ye.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},ye.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return-1!==i&&i<r&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=n}return!1},ye.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},ye.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},ye.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}e.pos=t}return!1},ye.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},ye.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},ye.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},ye.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!_e(t)&&(e.lastIntValue=t,e.advance(),!0)},ye.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;-1!==(n=e.current())&&!_e(n);)e.advance();return e.pos!==t},ye.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t)&&(e.advance(),!0)},ye.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e))return-1!==e.groupNames.indexOf(e.lastStringValue)&&e.raise("Duplicate capture group name"),void e.groupNames.push(e.lastStringValue);e.raise("Invalid group")}},ye.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},ye.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=xe(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=xe(e.lastIntValue);return!0}return!1},ye.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),function(e){return p(e,!0)||36===e||95===e}(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},ye.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),function(e){return g(e,!0)||36===e||95===e||8204===e||8205===e}(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},ye.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},ye.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},ye.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},ye.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},ye.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},ye.regexp_eatZero=function(e){return 48===e.current()&&!ke(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},ye.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},ye.regexp_eatControlLetter=function(e){var t=e.current();return!!we(t)&&(e.lastIntValue=t%32,e.advance(),!0)},ye.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var n,r=e.pos,i=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(i&&o>=55296&&o<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var s=e.lastIntValue;if(s>=56320&&s<=57343)return e.lastIntValue=1024*(o-55296)+(s-56320)+65536,!0}e.pos=a,e.lastIntValue=o}return!0}if(i&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&((n=e.lastIntValue)>=0&&n<=1114111))return!0;i&&e.raise("Invalid unicode escape"),e.pos=r}return!1},ye.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t)&&(e.lastIntValue=t,e.advance(),!0)},ye.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1},ye.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(function(e){return 100===e||68===e||115===e||83===e||119===e||87===e}(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(80===t||112===t)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise("Invalid property name")}return!1},ye.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i),!0}return!1},ye.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){j(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(n)||e.raise("Invalid property value")},ye.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise("Invalid property name")},ye.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Se(t=e.current());)e.lastStringValue+=xe(t),e.advance();return""!==e.lastStringValue},ye.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Ce(t=e.current());)e.lastStringValue+=xe(t),e.advance();return""!==e.lastStringValue},ye.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},ye.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise("Unterminated character class")}return!1},ye.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;!e.switchU||-1!==t&&-1!==n||e.raise("Invalid character class"),-1!==t&&-1!==n&&t>n&&e.raise("Range out of order in character class")}}},ye.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(99===n||Te(n))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var r=e.current();return 93!==r&&(e.lastIntValue=r,e.advance(),!0)},ye.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},ye.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!ke(t)&&95!==t)&&(e.lastIntValue=t%32,e.advance(),!0)},ye.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},ye.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;ke(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t},ye.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Oe(n=e.current());)e.lastIntValue=16*e.lastIntValue+Ee(n),e.advance();return e.pos!==t},ye.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*n+e.lastIntValue:e.lastIntValue=8*t+n}else e.lastIntValue=t;return!0}return!1},ye.regexp_eatOctalDigit=function(e){var t=e.current();return Te(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},ye.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var i=e.current();if(!Oe(i))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+Ee(i),e.advance()}return!0};var Ae=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new D(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},Pe=U.prototype;function je(e){return"function"!==typeof BigInt?null:BigInt(e.replace(/_/g,""))}function Le(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}Pe.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Ae(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Pe.getToken=function(){return this.next(),new Ae(this)},"undefined"!==typeof Symbol&&(Pe[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===w.eof,value:t}}}}),Pe.curContext=function(){return this.context[this.context.length-1]},Pe.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(w.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},Pe.readToken=function(e){return p(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},Pe.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);return e<=55295||e>=57344?e:(e<<10)+this.input.charCodeAt(this.pos+1)-56613888},Pe.skipBlockComment=function(){var e,t=this.options.onComment&&this.curPosition(),n=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(-1===r&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations)for(C.lastIndex=n;(e=C.exec(this.input))&&e.index<this.pos;)++this.curLine,this.lineStart=e.index+e[0].length;this.options.onComment&&this.options.onComment(!0,this.input.slice(n+2,r),n,this.pos,t,this.curPosition())},Pe.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!k(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())},Pe.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!(e>8&&e<14||e>=5760&&O.test(String.fromCharCode(e))))break e;++this.pos}}},Pe.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},Pe.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(w.ellipsis)):(++this.pos,this.finishToken(w.dot))},Pe.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(w.assign,2):this.finishOp(w.slash,1)},Pe.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=42===e?w.star:w.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++n,r=w.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(w.assign,n+1):this.finishOp(r,n)},Pe.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(w.assign,3);return this.finishOp(124===e?w.logicalOR:w.logicalAND,2)}return 61===t?this.finishOp(w.assign,2):this.finishOp(124===e?w.bitwiseOR:w.bitwiseAND,1)},Pe.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(w.assign,2):this.finishOp(w.bitwiseXOR,1)},Pe.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!S.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(w.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(w.assign,2):this.finishOp(w.plusMin,1)},Pe.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+n)?this.finishOp(w.assign,n+1):this.finishOp(w.bitShift,n)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(n=2),this.finishOp(w.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},Pe.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(w.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(w.arrow)):this.finishOp(61===e?w.eq:w.prefix,1)},Pe.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(w.questionDot,2)}if(63===t){if(e>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(w.assign,3);return this.finishOp(w.coalesce,2)}}return this.finishOp(w.question,1)},Pe.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(w.parenL);case 41:return++this.pos,this.finishToken(w.parenR);case 59:return++this.pos,this.finishToken(w.semi);case 44:return++this.pos,this.finishToken(w.comma);case 91:return++this.pos,this.finishToken(w.bracketL);case 93:return++this.pos,this.finishToken(w.bracketR);case 123:return++this.pos,this.finishToken(w.braceL);case 125:return++this.pos,this.finishToken(w.braceR);case 58:return++this.pos,this.finishToken(w.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(w.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(w.prefix,1)}this.raise(this.pos,"Unexpected character '"+Le(e)+"'")},Pe.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},Pe.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(S.test(r)&&this.raise(n,"Unterminated regular expression"),e)e=!1;else{if("["===r)t=!0;else if("]"===r&&t)t=!1;else if("/"===r&&!t)break;e="\\"===r}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var o=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(o);var s=this.regexpState||(this.regexpState=new be(this));s.reset(n,i,a),this.validateRegExpFlags(s),this.validateRegExpPattern(s);var l=null;try{l=new RegExp(i,a)}catch(c){}return this.finishToken(w.regexp,{pattern:i,flags:a,value:l})},Pe.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&void 0===t,i=n&&48===this.input.charCodeAt(this.pos),o=this.pos,a=0,s=0,l=0,c=null==t?1/0:t;l<c;++l,++this.pos){var u=this.input.charCodeAt(this.pos),h=void 0;if(r&&95===u)i&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===s&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===l&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),s=u;else{if((h=u>=97?u-97+10:u>=65?u-65+10:u>=48&&u<=57?u-48:1/0)>=e)break;s=u,a=a*e+h}}return r&&95===s&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===o||null!=t&&this.pos-o!==t?null:a},Pe.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return null==n&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(n=je(this.input.slice(t,this.pos)),++this.pos):p(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(w.num,n)},Pe.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(t,"Invalid number");var n=this.pos-t>=2&&48===this.input.charCodeAt(t);n&&this.strict&&this.raise(t,"Invalid number");var r=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&110===r){var i=je(this.input.slice(t,this.pos));return++this.pos,p(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(w.num,i)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),46!==r||n||(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),69!==r&&101!==r||n||(43!==(r=this.input.charCodeAt(++this.pos))&&45!==r||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),p(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var o,a=(o=this.input.slice(t,this.pos),n?parseInt(o,8):parseFloat(o.replace(/_/g,"")));return this.finishToken(w.num,a)},Pe.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},Pe.readString=function(e){for(var t="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===e)break;92===r?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):(k(r,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(w.string,t)};var Me={};
2Pe.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==Me)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},Pe.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Me;this.raise(e,t)},Pe.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(96===n||36===n&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==w.template&&this.type!==w.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(w.template,e)):36===n?(this.pos+=2,this.finishToken(w.dollarBraceL)):(++this.pos,this.finishToken(w.backQuote));if(92===n)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(k(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},Pe.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(w.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},Pe.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Le(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(e){var n=this.pos-1;return this.invalidStringToken(n,"Invalid escape sequence in template string"),null}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(r=r.slice(0,-1),i=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),"0"===r&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-r.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return k(t)?"":String.fromCharCode(t)}},Pe.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return null===n&&this.invalidStringToken(t,"Bad character escape sequence"),n},Pe.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(g(i,r))this.pos+=i<=65535?1:2;else{if(92!==i)break;this.containsEsc=!0,e+=this.input.slice(n,this.pos);var o=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var a=this.readCodePoint();(t?p:g)(a,r)||this.invalidStringToken(o,"Invalid Unicode escape"),e+=Le(a),n=this.pos}t=!1}return e+this.input.slice(n,this.pos)},Pe.readWord=function(){var e=this.readWord1(),t=w.name;return this.keywords.test(e)&&(t=x[e]),this.finishToken(t,e)};var Re="7.4.1";function De(e,t){return U.parse(e,t)}function Ie(e,t,n){return U.parseExpressionAt(e,t,n)}function Ne(e,t){return U.tokenizer(e,t)}U.acorn={Parser:U,version:Re,defaultOptions:N,Position:R,SourceLocation:D,getLineInfo:I,Node:re,TokenType:v,tokTypes:w,keywordTypes:x,TokContext:ae,tokContexts:se,isIdentifierChar:g,isIdentifierStart:p,Token:Ae,isNewLine:k,lineBreak:S,lineBreakG:C,nonASCIIwhitespace:O}},,function(e,t){(function(t){e.exports=t}).call(this,{})},,function(e,t,n){"use strict";var r=n(4),i=n(7),o=n(0),a=(n(12),n(25)),s=n(95),l=n(158),c=n(16),u=n(41),h=n(58),f=n(47);function d(e,t){var n=function(e,t){var n,r=t.getBoundingClientRect();if(t.fakeTransform)n=t.fakeTransform;else{var i=window.getComputedStyle(t);n=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}var o=0,a=0;if(n&&"none"!==n&&"string"===typeof n){var s=n.split("(")[1].split(")")[0].split(",");o=parseInt(s[4],10),a=parseInt(s[5],10)}return"left"===e?"translateX(".concat(window.innerWidth,"px) translateX(").concat(o-r.left,"px)"):"right"===e?"translateX(-".concat(r.left+r.
2width-o,"px)"):"up"===e?"translateY(".concat(window.innerHeight,"px) translateY(").concat(a-r.top,"px)"):"translateY(-".concat(r.top+r.height-a,"px)")}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}var p={enter:h.b.enteringScreen,exit:h.b.leavingScreen},g=o.forwardRef((function(e,t){var n=e.children,h=e.direction,g=void 0===h?"down":h,v=e.in,m=e.onEnter,y=e.onEntered,b=e.onEntering,x=e.onExit,_=e.onExited,w=e.onExiting,S=e.style,C=e.timeout,k=void 0===C?p:C,O=e.TransitionComponent,E=void 0===O?l.a:O,T=Object(i.a)(e,["children","direction","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),A=Object(u.a)(),P=o.useRef(null),j=o.useCallback((function(e){P.current=a.findDOMNode(e)}),[]),L=Object(c.a)(n.ref,j),M=Object(c.a)(L,t),R=function(e){return function(t){e&&(void 0===t?e(P.current):e(P.current,t))}},D=R((function(e,t){d(g,e),Object(f.b)(e),m&&m(e,t)})),I=R((function(e,t){var n=Object(f.a)({timeout:k,style:S},{mode:"enter"});e.style.webkitTransition=A.transitions.create("-webkit-transform",Object(r.a)({},n,{easing:A.transitions.easing.easeOut})),e.style.transition=A.transitions.create("transform",Object(r.a)({},n,{easing:A.transitions.easing.easeOut})),e.style.webkitTransform="none",e.style.transform="none",b&&b(e,t)})),N=R(y),F=R(w),B=R((function(e){var t=Object(f.a)({timeout:k,style:S},{mode:"exit"});e.style.webkitTransition=A.transitions.create("-webkit-transform",Object(r.a)({},t,{easing:A.transitions.easing.sharp})),e.style.transition=A.transitions.create("transform",Object(r.a)({},t,{easing:A.transitions.easing.sharp})),d(g,e),x&&x(e)})),U=R((function(e){e.style.webkitTransition="",e.style.transition="",_&&_(e)})),z=o.useCallback((function(){P.current&&d(g,P.current)}),[g]);return o.useEffect((function(){if(!v&&"down"!==g&&"right"!==g){var e=Object(s.a)((function(){P.current&&d(g,P.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[g,v]),o.useEffect((function(){v||z()}),[v,z]),o.createElement(E,Object(r.a)({nodeRef:P,onEnter:D,onEntered:N,onEntering:I,onExit:B,onExited:U,onExiting:F,appear:!0,in:v,timeout:k},T),(function(e,t){return o.cloneElement(n,Object(r.a)({ref:M,style:Object(r.a)({visibility:"exited"!==e||v?void 0:"hidden"},S,n.props.style)},t))}))}));t.a=g},function(e,t,n){"use strict";var r=n(0),i=n(25),o=(n(12),n(28)),a=n(16),s=n(33);function l(e){return e.substring(2).toLowerCase()}t.a=function(e){var t=e.children,n=e.disableReactTree,c=void 0!==n&&n,u=e.mouseEvent,h=void 0===u?"onClick":u,f=e.onClickAway,d=e.touchEvent,p=void 0===d?"onTouchEnd":d,g=r.useRef(!1),v=r.useRef(null),m=r.useRef(!1),y=r.useRef(!1);r.useEffect((function(){return setTimeout((function(){m.current=!0}),0),function(){m.current=!1}}),[]);var b=r.useCallback((function(e){v.current=i.findDOMNode(e)}),[]),x=Object(a.a)(t.ref,b),_=Object(s.a)((function(e){var t=y.current;if(y.current=!1,m.current&&v.current&&!function(e){return document.documentElement.clientWidth<e.clientX||document.documentElement.clientHeight<e.clientY}(e))if(g.current)g.current=!1;else{var n;if(e.composedPath)n=e.composedPath().indexOf(v.current)>-1;else n=!Object(o.a)(v.current).documentElement.contains(e.target)||v.current.contains(e.target);n||!c&&t||f(e)}})),w=function(e){return function(n){y.current=!0;var r=t.props[e];r&&r(n)}},S={ref:x};return!1!==p&&(S[p]=w(p)),r.useEffect((function(){if(!1!==p){var e=l(p),t=Object(o.a)(v.current),n=function(){g.current=!0};return t.addEventListener(e,_),t.addEventListener("touchmove",n),function(){t.removeEventListener(e,_),t.removeEventListener("touchmove",n)}}}),[_,p]),!1!==h&&(S[h]=w(h)),r.useEffect((function(){if(!1!==h){var e=l(h),t=Object(o.a)(v.current);return t.addEventListener(e,_),function(){t.removeEventListener(e,_)}}}),[_,h]),r.createElement(r.Fragment,null,r.cloneElement(t,S))}},function(e,t,n){"use strict";var r=n(0),i=n(32);t.a=Object(i.a)(r.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},function(e,t,n){"use strict";var r=n(0),i=n(25),o=(n(12),n(50)),a=n(16);var s="undefined"!==typeof window?r.useLayoutEffect:r.useEffect,l=r.forwardRef((function(e,t){var n=e.children,l=e.container,c=e.disablePortal,u=void 0!==c&&c,h=e.onRendered,f=r.useState(null),d=f[0],p=f[1],g=Object(a.a)(r.isValidElement(n)?n.ref:null,t);return s((function(){u||p(function(e){return e="function"===typeof e?e():e,i.findDOMNode(e)}(l)||document.body)}),[l,u]),s((function(){if(d&&!u)return Object(o.a)(t,d),function(){Object(o.a)(t,null)}}),[t,d,u]),s((function(){h&&(d||u)&&h()}),[h,d,u]),u?r.isValidElement(n)?r.cloneElement(n,{ref:g}):n:d?i.createPortal(n,d):d}));t.a=l},function(e,t,n){"use strict";var r=n(4),i=n(7),o=n(37),a=n(0),s=(n(12),n(6)),l=n(9),c=n(14),u=n(254),h=n(372),f=n(251),d=n(58),p=n(179),g={enter:d.b.enteringScreen,exit:d.b.leavingScreen},v=a.forwardRef((function(e,t){var n=e.BackdropProps,o=e.children,l=e.classes,d=e.className,v=e.disableBackdropClick,m=void 0!==v&&v,y=e.disableEscapeKeyDown,b=void 0!==y&&y,x=e.fullScreen,_=void 0!==x&&x,w=e.fullWidth,S=void 0!==w&&w,C=e.maxWidth,k=void 0===C?"sm":C,O=e.onBackdropClick,E=e.onClose,T=e.onEnter,A=e.onEntered,P=e.onEntering,j=e.onEscapeKeyDown,L=e.onExit,M=e.onExited,R=e.onExiting,D=e.open,I=e.PaperComponent,N=void 0===I?p.a:I,F=e.PaperProps,B=void 0===F?{}:F,U=e.scroll,z=void 0===U?"paper":U,V=e.TransitionComponent,H=void 0===V?f.a:V,W=e.transitionDuration,G=void 0===W?g:W,q=e.TransitionProps,X=e["aria-describedby"],Y=e["aria-labelledby"],$=Object(i.a)(e,["BackdropProps","children","classes","className","disableBackdropClick","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","onEnter","onEntered","onEntering","onEscapeKeyDown","onExit","onExited","onExiting","o
2pen","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps","aria-describedby","aria-labelledby"]),K=a.useRef();return a.createElement(u.a,Object(r.a)({className:Object(s.a)(l.root,d),BackdropComponent:h.a,BackdropProps:Object(r.a)({transitionDuration:G},n),closeAfterTransition:!0},m?{disableBackdropClick:m}:{},{disableEscapeKeyDown:b,onEscapeKeyDown:j,onClose:E,open:D,ref:t},$),a.createElement(H,Object(r.a)({appear:!0,in:D,timeout:G,onEnter:T,onEntering:P,onEntered:A,onExit:L,onExiting:R,onExited:M,role:"none presentation"},q),a.createElement("div",{className:Object(s.a)(l.container,l["scroll".concat(Object(c.a)(z))]),onMouseUp:function(e){e.target===e.currentTarget&&e.target===K.current&&(K.current=null,O&&O(e),!m&&E&&E(e,"backdropClick"))},onMouseDown:function(e){K.current=e.target}},a.createElement(N,Object(r.a)({elevation:24,role:"dialog","aria-describedby":X,"aria-labelledby":Y},B,{className:Object(s.a)(l.paper,l["paperScroll".concat(Object(c.a)(z))],l["paperWidth".concat(Object(c.a)(String(k)))],B.className,_&&l.paperFullScreen,S&&l.paperFullWidth)}),o))))}));t.a=Object(l.a)((function(e){return{root:{"@media print":{position:"absolute !important"}},scrollPaper:{display:"flex",justifyContent:"center",alignItems:"center"},scrollBody:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}},container:{height:"100%","@media print":{height:"auto"},outline:0},paper:{margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},paperScrollPaper:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},paperScrollBody:{display:"inline-block",verticalAlign:"middle",textAlign:"left"},paperWidthFalse:{maxWidth:"calc(100% - 64px)"},paperWidthXs:{maxWidth:Math.max(e.breakpoints.values.xs,444),"&$paperScrollBody":Object(o.a)({},e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})},paperWidthSm:{maxWidth:e.breakpoints.values.sm,"&$paperScrollBody":Object(o.a)({},e.breakpoints.down(e.breakpoints.values.sm+64),{maxWidth:"calc(100% - 64px)"})},paperWidthMd:{maxWidth:e.breakpoints.values.md,"&$paperScrollBody":Object(o.a)({},e.breakpoints.down(e.breakpoints.values.md+64),{maxWidth:"calc(100% - 64px)"})},paperWidthLg:{maxWidth:e.breakpoints.values.lg,"&$paperScrollBody":Object(o.a)({},e.breakpoints.down(e.breakpoints.values.lg+64),{maxWidth:"calc(100% - 64px)"})},paperWidthXl:{maxWidth:e.breakpoints.values.xl,"&$paperScrollBody":Object(o.a)({},e.breakpoints.down(e.breakpoints.values.xl+64),{maxWidth:"calc(100% - 64px)"})},paperFullWidth:{width:"calc(100% - 64px)"},paperFullScreen:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,"&$paperScrollBody":{margin:0,maxWidth:"100%"}}}}),{name:"MuiDialog"})(v)},function(e,t,n){"use strict";var r=n(4),i=n(7),o=n(0),a=(n(12),n(6)),s=n(9),l=n(251),c=o.forwardRef((function(e,t){var n=e.children,s=e.classes,c=e.className,u=e.invisible,h=void 0!==u&&u,f=e.open,d=e.transitionDuration,p=e.TransitionComponent,g=void 0===p?l.a:p,v=Object(i.a)(e,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return o.createElement(g,Object(r.a)({in:f,timeout:d},v),o.createElement("div",{className:Object(a.a)(s.root,c,h&&s.invisible),"aria-hidden":!0,ref:t},n))}));t.a=Object(s.a)({root:{zIndex:-1,position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},{name:"MuiBackdrop"})(c)},function(e,t,n){"use strict";var r=n(4),i=n(7),o=n(0),a=(n(12),n(6)),s=n(9),l=n(53),c=o.forwardRef((function(e,t){var n=e.children,s=e.classes,c=e.className,u=e.disableTypography,h=void 0!==u&&u,f=Object(i.a)(e,["children","classes","className","disableTypography"]);return o.createElement("div",Object(r.a)({className:Object(a.a)(s.root,c),ref:t},f),h?n:o.createElement(l.a,{component:"h2",variant:"h6"},n))}));t.a=Object(s.a)({root:{margin:0,padding:"16px 24px",flex:"0 0 auto"}},{name:"MuiDialogTitle"})(c)},function(e,t,n){"use strict";var r=n(4),i=n(0),o=(n(12),n(9)),a=n(53),s=i.forwardRef((function(e,t){return i.createElement(a.a,Object(r.a)({component:"p",variant:"body1",color:"textSecondary",ref:t},e))}));t.a=Object(o.a)({root:{marginBottom:12}},{name:"MuiDialogContentText"})(s)},function(e,t,n){"use strict";var r=n(4),i=n(7),o=n(0),a=(n(12),n(6)),s=n(9),l=o.forwardRef((function(e,t){var n=e.disableSpacing,s=void 0!==n&&n,l=e.classes,c=e.className,u=Object(i.a)(e,["disableSpacing","classes","className"]);return o.createElement("div",Object(r.a)({className:Object(a.a)(l.root,c,!s&&l.spacing),ref:t},u))}));t.a=Object(s.a)({root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},spacing:{"& > :not(:first-child)":{marginLeft:8}}},{name:"MuiDialogActions"})(l)},function(e,t,n){"use strict";var r=n(0),i=n(32);
2t.a=Object(i.a)(r.createElement("path",{d:"M19 12h-2v3h-3v2h5v-5zM7 9h3V7H5v5h2V9zm14-6H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16.01H3V4.99h18v14.02z"}),"AspectRatio")},function(e,t,n){"use strict";var r=n(0),i=n(32);t.a=Object(i.a)(r.createElement("path",{d:"M2.53 19.65l1.34.56v-9.03l-2.43 5.86c-.41 1.02.08 2.19 1.09 2.61zm19.5-3.7L17.07 3.98c-.31-.75-1.04-1.21-1.81-1.23-.26 0-.53.04-.79.15L7.1 5.95c-.75.31-1.21 1.03-1.23 1.8-.01.27.04.54.15.8l4.96 11.97c.31.76 1.05 1.22 1.83 1.23.26 0 .52-.05.77-.15l7.36-3.05c1.02-.42 1.51-1.59 1.09-2.6zM7.88 8.75c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-2 11c0 1.1.9 2 2 2h1.45l-3.45-8.34v6.34z"}),"Style")},function(e,t,n){"use strict";var r=n(0),i=n(32);t.a=Object(i.a)(r.createElement("path",{d:"M6.76 4.84l-1.8-1.79-1.41 1.41 1.79 1.79 1.42-1.41zM4 10.5H1v2h3v-2zm9-9.95h-2V3.5h2V.55zm7.45 3.91l-1.41-1.41-1.79 1.79 1.41 1.41 1.79-1.79zm-3.21 13.7l1.79 1.8 1.41-1.41-1.8-1.79-1.4 1.4zM20 10.5v2h3v-2h-3zm-8-5c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm-1 16.95h2V19.5h-2v2.95zm-7.45-3.91l1.41 1.41 1.79-1.8-1.41-1.41-1.79 1.8z"}),"WbSunny")},function(e,t,n){"use strict";var r=n(0),i=n(32);t.a=Object(i.a)(r.createElement("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9c.83 0 1.5-.67 1.5-1.5 0-.39-.15-.74-.39-1.01-.23-.26-.38-.61-.38-.99 0-.83.67-1.5 1.5-1.5H16c2.76 0 5-2.24 5-5 0-4.42-4.03-8-9-8zm-5.5 9c-.83 0-1.5-.67-1.5-1.5S5.67 9 6.5 9 8 9.67 8 10.5 7.33 12 6.5 12zm3-4C8.67 8 8 7.33 8 6.5S8.67 5 9.5 5s1.5.67 1.5 1.5S10.33 8 9.5 8zm5 0c-.83 0-1.5-.67-1.5-1.5S13.67 5 14.5 5s1.5.67 1.5 1.5S15.33 8 14.5 8zm3 4c-.83 0-1.5-.67-1.5-1.5S16.67 9 17.5 9s1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"}),"ColorLens")},function(e,t,n){"use strict";var r=n(0),i=n(32);t.a=Object(i.a)(r.createElement("path",{d:"M19.51 3.08L3.08 19.51c.09.34.27.65.51.9.25.24.56.42.9.51L20.93 4.49c-.19-.69-.73-1.23-1.42-1.41zM11.88 3L3 11.88v2.83L14.71 3h-2.83zM5 3c-1.1 0-2 .9-2 2v2l4-4H5zm14 18c.55 0 1.05-.22 1.41-.59.37-.36.59-.86.59-1.41v-2l-4 4h2zm-9.71 0h2.83L21 12.12V9.29L9.29 21z"}),"Texture")},function(e,t,n){"use strict";var r=n(0),i=n(32);t.a=Object(i.a)(r.createElement(r.Fragment,null,r.createElement("path",{d:"M15.54 5.54L13.77 7.3 12 5.54 10.23 7.3 8.46 5.54 12 2zm2.92 10l-1.76-1.77L18.46 12l-1.76-1.77 1.76-1.77L22 12zm-10 2.92l1.77-1.76L12 18.46l1.77-1.76 1.77 1.76L12 22zm-2.92-10l1.76 1.77L5.54 12l1.76 1.77-1.76 1.77L2 12z"}),r.createElement("circle",{cx:"12",cy:"12",r:"3"})),"ControlCamera")},function(e,t,n){"use strict";var r=n(0),i=n(32);t.a=Object(i.a)(r.createElement("path",{d:"M9.4 10.5l4.77-8.26C13.47 2.09 12.75 2 12 2c-2.4 0-4.6.85-6.32 2.25l3.66 6.35.06-.1zM21.54 9c-.92-2.92-3.15-5.26-6-6.34L11.88 9h9.66zm.26 1h-7.49l.29.5 4.76 8.25C21 16.97 22 14.61 22 12c0-.69-.07-1.35-.2-2zM8.54 12l-3.9-6.75C3.01 7.03 2 9.39 2 12c0 .69.07 1.35.2 2h7.49l-1.15-2zm-6.08 3c.92 2.92 3.15 5.26 6 6.34L12.12 15H2.46zm11.27 0l-3.9 6.76c.7.15 1.42.24 2.17.24 2.4 0 4.6-.85 6.32-2.25l-3.66-6.35-.93 1.6z"}),"Camera")},function(e,t,n){"use strict";var r=n(4),i=n(7),o=n(0),a=(n(12),n(6)),s=n(179),l=n(9),c=o.forwardRef((function(e,t){var n=e.classes,l=e.className,c=e.raised,u=void 0!==c&&c,h=Object(i.a)(e,["classes","className","raised"]);return o.createElement(s.a,Object(r.a)({className:Object(a.a)(n.root,l),elevation:u?8:1,ref:t},h))}));t.a=Object(l.a)({root:{overflow:"hidden"}},{name:"MuiCard"})(c)},function(e,t,n){"use strict";var r=n(4),i=n(7),o=n(0),a=(n(12),n(6)),s=n(9),l=n(53),c=o.forwardRef((function(e,t){var n=e.action,s=e.avatar,c=e.classes,u=e.className,h=e.component,f=void 0===h?"div":h,d=e.disableTypography,p=void 0!==d&&d,g=e.subheader,v=e.subheaderTypographyProps,m=e.title,y=e.titleTypographyProps,b=Object(i.a)(e,["action","avatar","classes","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"]),x=m;null==x||x.type===l.a||p||(x=o.createElement(l.a,Object(r.a)({variant:s?"body2":"h5",className:c.title,component:"span",display:"block"},y),x));var _=g;return null==_||_.type===l.a||p||(_=o.createElement(l.a,Object(r.a)({variant:s?"body2":"body1",className:c.subheader,color:"textSecondary",component:"span",display:"block"},v),_)),o.createElement(f,Object(r.a)({className:Object(a.a)(c.root,u),ref:t},b),s&&o.createElement("div",{className:c.avatar},s),o.createElement("div",{className:c.content},x,_),n&&o.createElement("div",{className:c.action},n))}));t.a=Object(s.a)({root:{display:"flex",alignItems:"center",padding:16},avatar:{flex:"0 0 auto",marginRight:16},action:{flex:"0 0 auto",alignSelf:"flex-start",marginTop:-8,marginRight:-8},content:{flex:"1 1 auto"},title:{},subheader:{}},{name:"MuiCardHeader"})(c)},function(e,t,n){"use strict";var r=n(4),i=n(7),o=n(0),a=(n(12),n(6)),s=n(9),l=o.forwardRef((function(e,t){var n=e.classes,s=e.className,l=e.component,c=void 0===l?"div":l,u=Object(i.a)(e,["classes","className","component"]);return o.createElement(c,Object(r.a)({className:Object(a.a)(n.root,s),ref:t},u))}));t.a=Object(s.a)({root:{padding:16,"&:last-child":{paddingBottom:24}}},{name:"MuiCardContent"})(l)},function(e,t,n){"use strict";var r=n(4),i=n(7),o=n(0),a=(n(12),n(6)),s=n(387),l=n(388),c=n(402),u=n(389),h=n(181),f=n(394),d=n(399),p=n(9),g={standard:s.a,filled:l.a,outlined:c.a},v=o.forwardRef((function(e,t){var n=e.autoComplete,s=e.autoFocus,l=void 0!==s&&s,c=e.children,p=e.classes,v=e.className,m=e.color,y=void 0===m?"primary":m,b=e.defaultValue,x=e.disabled,_=void 0!==x&&x,w=e.error,S=void 0!==w&&w,C=e.FormHelperTextProps,k=e.fullWidth,O=void 0!==k&&k,E=e.helperText,T=e.hiddenLabel,A=e.id,P=e.InputLabelProps,j=e.inputProps,L=e.InputProps,M=e.inputRef,R=e.label,D=e.multiline,I=void 0!==D&&D,N=e.name,F=e.onBlur,B=e.onChange,U=e.onFocus,z=e.placeholder,V=e.required,H=void 0!==V&&V,W=e.rows,G=e.rowsMax,q=e.maxRows,X=e.minRows,Y=e.select,$=void 0!==Y&&Y,K=e.SelectProps,Z=e.type,Q=e.value,J=e.variant,ee=void 0===J?"standard":J,te=Object(i.a)(e,["autoComplete","autoF
2ocus","children","classes","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","hiddenLabel","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","maxRows","minRows","select","SelectProps","type","value","variant"]);var ne={};if("outlined"===ee&&(P&&"undefined"!==typeof P.shrink&&(ne.notched=P.shrink),R)){var re,ie=null!==(re=null===P||void 0===P?void 0:P.required)&&void 0!==re?re:H;ne.label=o.createElement(o.Fragment,null,R,ie&&"\xa0*")}$&&(K&&K.native||(ne.id=void 0),ne["aria-describedby"]=void 0);var oe=E&&A?"".concat(A,"-helper-text"):void 0,ae=R&&A?"".concat(A,"-label"):void 0,se=g[ee],le=o.createElement(se,Object(r.a)({"aria-describedby":oe,autoComplete:n,autoFocus:l,defaultValue:b,fullWidth:O,multiline:I,name:N,rows:W,rowsMax:G,maxRows:q,minRows:X,type:Z,value:Q,id:A,inputRef:M,onBlur:F,onChange:B,onFocus:U,placeholder:z,inputProps:j},ne,L));return o.createElement(h.a,Object(r.a)({className:Object(a.a)(p.root,v),disabled:_,error:S,fullWidth:O,hiddenLabel:T,ref:t,required:H,color:y,variant:ee},te),R&&o.createElement(u.a,Object(r.a)({htmlFor:A,id:ae},P),R),$?o.createElement(d.a,Object(r.a)({"aria-describedby":oe,id:A,labelId:ae,value:Q,input:le},K),c):le,E&&o.createElement(f.a,Object(r.a)({id:oe},C),E))}));t.a=Object(p.a)({root:{}},{name:"MuiTextField"})(v)},function(e,t,n){"use strict";var r=n(4),i=n(7),o=n(0),a=(n(12),n(6)),s=n(257),l=n(9),c=o.forwardRef((function(e,t){var n=e.disableUnderline,l=e.classes,c=e.fullWidth,u=void 0!==c&&c,h=e.inputComponent,f=void 0===h?"input":h,d=e.multiline,p=void 0!==d&&d,g=e.type,v=void 0===g?"text":g,m=Object(i.a)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return o.createElement(s.a,Object(r.a)({classes:Object(r.a)({},l,{root:Object(a.a)(l.root,!n&&l.underline),underline:null}),fullWidth:u,inputComponent:f,multiline:p,ref:t,type:v},m))}));c.muiName="Input",t.a=Object(l.a)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return{root:{position:"relative"},formControl:{"label + &":{marginTop:16}},focused:{},disabled:{},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(t),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:not($disabled):before":{borderBottom:"2px solid ".concat(e.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(t)}},"&$disabled:before":{borderBottomStyle:"dotted"}},error:{},marginDense:{},multiline:{},fullWidth:{},input:{},inputMarginDense:{},inputMultiline:{},inputTypeSearch:{}}}),{name:"MuiInput"})(c)},function(e,t,n){"use strict";var r=n(4),i=n(7),o=n(0),a=(n(12),n(6)),s=n(257),l=n(9),c=o.forwardRef((function(e,t){var n=e.disableUnderline,l=e.classes,c=e.fullWidth,u=void 0!==c&&c,h=e.inputComponent,f=void 0===h?"input":h,d=e.multiline,p=void 0!==d&&d,g=e.type,v=void 0===g?"text":g,m=Object(i.a)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return o.createElement(s.a,Object(r.a)({classes:Object(r.a)({},l,{root:Object(a.a)(l.root,!n&&l.underline),underline:null}),fullWidth:u,inputComponent:f,multiline:p,ref:t,type:v},m))}));c.muiName="Input",t.a=Object(l.a)((function(e){var t="light"===e.palette.type,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:r,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:t?"rgba(0, 0, 0, 0.13)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:r}},"&$focused":{backgroundColor:t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)"},"&$disabled":{backgroundColor:t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}}
2,underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:before":{borderBottom:"1px solid ".concat(e.palette.text.primary)},"&$disabled:before":{borderBottomStyle:"dotted"}},focused:{},disabled:{},adornedStart:{paddingLeft:12},adornedEnd:{paddingRight:12},error:{},marginDense:{},multiline:{padding:"27px 12px 10px","&$marginDense":{paddingTop:23,paddingBottom:6}},input:{padding:"27px 12px 10px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},inputMarginDense:{paddingTop:23,paddingBottom:6},inputHiddenLabel:{paddingTop:18,paddingBottom:19,"&$inputMarginDense":{paddingTop:10,paddingBottom:11}},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiFilledInput"})(c)},function(e,t,n){"use strict";var r=n(4),i=n(7),o=n(0),a=(n(12),n(6)),s=n(62),l=n(63),c=n(9),u=n(390),h=o.forwardRef((function(e,t){var n=e.classes,c=e.className,h=e.disableAnimation,f=void 0!==h&&h,d=(e.margin,e.shrink),p=(e.variant,Object(i.a)(e,["classes","className","disableAnimation","margin","shrink","variant"])),g=Object(l.a)(),v=d;"undefined"===typeof v&&g&&(v=g.filled||g.focused||g.adornedStart);var m=Object(s.a)({props:e,muiFormControl:g,states:["margin","variant"]});return o.createElement(u.a,Object(r.a)({"data-shrink":v,className:Object(a.a)(n.root,c,g&&n.formControl,!f&&n.animated,v&&n.shrink,"dense"===m.margin&&n.marginDense,{filled:n.filled,outlined:n.outlined}[m.variant]),classes:{focused:n.focused,disabled:n.disabled,error:n.error,required:n.required,asterisk:n.asterisk},ref:t},p))}));t.a=Object(c.a)((function(e){return{root:{display:"block",transformOrigin:"top left"},focused:{},disabled:{},error:{},required:{},asterisk:{},formControl:{position:"absolute",left:0,top:0,transform:"translate(0, 24px) scale(1)"},marginDense:{transform:"translate(0, 21px) scale(1)"},shrink:{transform:"translate(0, 1.5px) scale(0.75)",transformOrigin:"top left"},animated:{transition:e.transitions.create(["color","transform"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},filled:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 20px) scale(1)","&$marginDense":{transform:"translate(12px, 17px) scale(1)"},"&$shrink":{transform:"translate(12px, 10px) scale(0.75)","&$marginDense":{transform:"translate(12px, 7px) scale(0.75)"}}},outlined:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 20px) scale(1)","&$marginDense":{transform:"translate(14px, 12px) scale(1)"},"&$shrink":{transform:"translate(14px, -6px) scale(0.75)"}}}}),{name:"MuiInputLabel"})(h)},function(e,t,n){"use strict";var r=n(7),i=n(4),o=n(0),a=(n(12),n(6)),s=n(62),l=n(63),c=n(14),u=n(9),h=o.forwardRef((function(e,t){var n=e.children,u=e.classes,h=e.className,f=(e.color,e.component),d=void 0===f?"label":f,p=(e.disabled,e.error,e.filled,e.focused,e.required,Object(r.a)(e,["children","classes","className","color","component","disabled","error","filled","focused","required"])),g=Object(l.a)(),v=Object(s.a)({props:e,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]});return o.createElement(d,Object(i.a)({className:Object(a.a)(u.root,u["color".concat(Object(c.a)(v.color||"primary"))],h,v.disabled&&u.disabled,v.error&&u.error,v.filled&&u.filled,v.focused&&u.focused,v.required&&u.required),ref:t}
2,p),n,v.required&&o.createElement("span",{"aria-hidden":!0,className:Object(a.a)(u.asterisk,v.error&&u.error)},"\u2009","*"))}));t.a=Object(u.a)((function(e){return{root:Object(i.a)({color:e.palette.text.secondary},e.typography.body1,{lineHeight:1,padding:0,"&$focused":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),colorSecondary:{"&$focused":{color:e.palette.secondary.main}},focused:{},disabled:{},error:{},filled:{},required:{},asterisk:{"&$error":{color:e.palette.error.main}}}}),{name:"MuiFormLabel"})(h)},function(e,t,n){"use strict";var r=n(4),i=n(7),o=n(0),a=(n(12),n(25)),s=n(95),l=n(6),c=n(28),u=n(117),h=n(78),f=n(9),d=n(254),p=n(253),g=n(179);function v(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function m(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function y(e){return[e.horizontal,e.vertical].map((function(e){return"number"===typeof e?"".concat(e,"px"):e})).join(" ")}function b(e){return"function"===typeof e?e():e}var x=o.forwardRef((function(e,t){var n=e.action,f=e.anchorEl,x=e.anchorOrigin,_=void 0===x?{vertical:"top",horizontal:"left"}:x,w=e.anchorPosition,S=e.anchorReference,C=void 0===S?"anchorEl":S,k=e.children,O=e.classes,E=e.className,T=e.container,A=e.elevation,P=void 0===A?8:A,j=e.getContentAnchorEl,L=e.marginThreshold,M=void 0===L?16:L,R=e.onEnter,D=e.onEntered,I=e.onEntering,N=e.onExit,F=e.onExited,B=e.onExiting,U=e.open,z=e.PaperProps,V=void 0===z?{}:z,H=e.transformOrigin,W=void 0===H?{vertical:"top",horizontal:"left"}:H,G=e.TransitionComponent,q=void 0===G?p.a:G,X=e.transitionDuration,Y=void 0===X?"auto":X,$=e.TransitionProps,K=void 0===$?{}:$,Z=Object(i.a)(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),Q=o.useRef(),J=o.useCallback((function(e){if("anchorPosition"===C)return w;var t=b(f),n=(t&&1===t.nodeType?t:Object(c.a)(Q.current).body).getBoundingClientRect(),r=0===e?_.vertical:"center";return{top:n.top+v(n,r),left:n.left+m(n,_.horizontal)}}),[f,_.horizontal,_.vertical,w,C]),ee=o.useCallback((function(e){var t=0;if(j&&"anchorEl"===C){var n=j(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}0}return t}),[_.vertical,C,j]),te=o.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:v(e,W.vertical)+t,horizontal:m(e,W.horizontal)}}),[W.horizontal,W.vertical]),ne=o.useCallback((function(e){var t=ee(e),n={width:e.offsetWidth,height:e.offsetHeight},r=te(n,t);if("none"===C)return{top:null,left:null,transformOrigin:y(r)};var i=J(t),o=i.top-r.vertical,a=i.left-r.horizontal,s=o+n.height,l=a+n.width,c=Object(u.a)(b(f)),h=c.innerHeight-M,d=c.innerWidth-M;if(o<M){var p=o-M;o-=p,r.vertical+=p}else if(s>h){var g=s-h;o-=g,r.vertical+=g}if(a<M){var v=a-M;a-=v,r.horizontal+=v}else if(l>d){var m=l-d;a-=m,r.horizontal+=m}return{top:"".concat(Math.round(o),"px"),left:"".concat(Math.round(a),"px"),transformOrigin:y(r)}}),[f,C,J,ee,te,M]),re=o.useCallback((function(){var e=Q.current;if(e){var t=ne(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[ne]),ie=o.useCallback((function(e){Q.current=a.findDOMNode(e)}),[]);o.useEffect((function(){U&&re()})),o.useImperativeHandle(n,(function(){return U?{updatePosition:function(){re()}}:null}),[U,re]),o.useEffect((function(){if(U){var e=Object(s.a)((function(){re()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[U,re]);var oe=Y;"auto"!==Y||q.muiSupportAuto||(oe=void 0);var ae=T||(f?Object(c.a)(b(f)).body:void 0);return o.createElement(d.a,Object(r.a)({container:ae,open:U,ref:t,BackdropProps:{invisible:!0},className:Object(l.a)(O.root,E)},Z),o.createElement(q,Object(r.a)({appear:!0,in:U,onEnter:R,onEntered:D,onExit:N,onExited:F,onExiting:
2B,timeout:oe},K,{onEntering:Object(h.a)((function(e,t){I&&I(e,t),re()}),K.onEntering)}),o.createElement(g.a,Object(r.a)({elevation:P,ref:ie},V,{className:Object(l.a)(O.paper,V.className)}),k)))}));t.a=Object(f.a)({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(x)},function(e,t,n){"use strict";var r=n(4),i=n(7),o=n(0),a=(n(115),n(12),n(25)),s=n(28),l=n(393),c=n(149),u=n(16);function h(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function f(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function d(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function p(e,t,n,r,i,o){for(var a=!1,s=i(e,t,!!t&&n);s;){if(s===e.firstChild){if(a)return;a=!0}var l=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&d(s,o)&&!l)return void s.focus();s=i(e,s,n)}}var g="undefined"===typeof window?o.useEffect:o.useLayoutEffect,v=o.forwardRef((function(e,t){var n=e.actions,v=e.autoFocus,m=void 0!==v&&v,y=e.autoFocusItem,b=void 0!==y&&y,x=e.children,_=e.className,w=e.disabledItemsFocusable,S=void 0!==w&&w,C=e.disableListWrap,k=void 0!==C&&C,O=e.onKeyDown,E=e.variant,T=void 0===E?"selectedMenu":E,A=Object(i.a)(e,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),P=o.useRef(null),j=o.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});g((function(){m&&P.current.focus()}),[m]),o.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!P.current.style.width;if(e.clientHeight<P.current.clientHeight&&n){var r="".concat(Object(c.a)(!0),"px");P.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,P.current.style.width="calc(100% + ".concat(r,")")}return P.current}}}),[]);var L=o.useCallback((function(e){P.current=a.findDOMNode(e)}),[]),M=Object(u.a)(L,t),R=-1;o.Children.forEach(x,(function(e,t){o.isValidElement(e)&&(e.props.disabled||("selectedMenu"===T&&e.props.selected||-1===R)&&(R=t))}));var D=o.Children.map(x,(function(e,t){if(t===R){var n={};return b&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===T&&(n.tabIndex=0),o.cloneElement(e,n)}return e}));return o.createElement(l.a,Object(r.a)({role:"menu",ref:M,className:_,onKeyDown:function(e){var t=P.current,n=e.key,r=Object(s.a)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),p(t,r,k,S,h);else if("ArrowUp"===n)e.preventDefault(),p(t,r,k,S,f);else if("Home"===n)e.preventDefault(),p(t,null,k,S,h);else if("End"===n)e.preventDefault(),p(t,null,k,S,f);else if(1===n.length){var i=j.current,o=n.toLowerCase(),a=performance.now();i.keys.length>0&&(a-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=a,i.keys.push(o);var l=r&&!i.repeating&&d(r,i);i.previousKeyMatched&&(l||p(t,r,!1,S,h,i))?e.preventDefault():i.previousKeyMatched=!1}O&&O(e)},tabIndex:m?0:-1},A),D)}));t.a=v},function(e,t,n){"use strict";var r=n(4),i=n(7),o=n(0),a=(n(12),n(6)),s=n(9),l=n(80),c=o.forwardRef((function(e,t){var n=e.children,s=e.classes,c=e.className,u=e.component,h=void 0===u?"ul":u,f=e.dense,d=void 0!==f&&f,p=e.disablePadding,g=void 0!==p&&p,v=e.subheader,m=Object(i.a)(e,["children","classes","className","component","dense","disablePadding","subheader"]),y=o.useMemo((function(){return{dense:d}}),[d]);return o.createElement(l.a.Provider,{value:y},o.createElement(h,Object(r.a)({className:Object(a.a)(s.root,c,d&&s.dense,!g&&s.padding,v&&s.subheader),ref:t},m),v,n))}));t.a=Object(s.a)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(c)},function(e,t,n){"use strict";var r=n(7),i=n(4),o=n(0),a=(n(12),n(6)),s=n(62),l=n(63),c=n(9),u=o.forwardRef((function(e,t){var n=e.children,c=e.classes,u=e.className,h=e.component,f=void 0===h?"p":h,d=(e.disabled,e.error,e.filled,e.focused,e.margin,e.required,e.variant,Object(r.a)(e,["children","classes","className","component","disabled","error","filled","focused","margin","required","variant"])),p=Object(l.a)(),g=Object(s.a)({props:e,muiFormControl:p,states:["variant","margin","disabled","error","filled","focused","required"]});return o.createElement(f,Object(i.a)({className:Object(a.a)(c.root,("filled"===g.variant||"outlined"===g.variant)&&
2c.contained,u,g.disabled&&c.disabled,g.error&&c.error,g.filled&&c.filled,g.focused&&c.focused,g.required&&c.required,"dense"===g.margin&&c.marginDense),ref:t},d)," "===n?o.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):n)}));t.a=Object(c.a)((function(e){return{root:Object(i.a)({color:e.palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,margin:0,"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),error:{},disabled:{},marginDense:{marginTop:4},contained:{marginLeft:14,marginRight:14},focused:{},filled:{},required:{}}}),{name:"MuiFormHelperText"})(u)},function(e,t,n){"use strict";var r=n(4),i=n(7),o=n(0),a=(n(12),n(6)),s=n(53),l=n(9),c=n(81),u=o.forwardRef((function(e,t){var n=e.children,l=e.classes,u=e.className,h=e.component,f=void 0===h?"div":h,d=e.disablePointerEvents,p=void 0!==d&&d,g=e.disableTypography,v=void 0!==g&&g,m=e.position,y=e.variant,b=Object(i.a)(e,["children","classes","className","component","disablePointerEvents","disableTypography","position","variant"]),x=Object(c.b)()||{},_=y;return y&&x.variant,x&&!_&&(_=x.variant),o.createElement(c.a.Provider,{value:null},o.createElement(f,Object(r.a)({className:Object(a.a)(l.root,u,"end"===m?l.positionEnd:l.positionStart,p&&l.disablePointerEvents,x.hiddenLabel&&l.hiddenLabel,"filled"===_&&l.filled,"dense"===x.margin&&l.marginDense),ref:t},b),"string"!==typeof n||v?n:o.createElement(s.a,{color:"textSecondary"},n)))}));t.a=Object(l.a)({root:{display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap"},filled:{"&$positionStart:not($hiddenLabel)":{marginTop:16}},positionStart:{marginRight:8},positionEnd:{marginLeft:8},disablePointerEvents:{pointerEvents:"none"},hiddenLabel:{},marginDense:{}},{name:"MuiInputAdornment"})(u)},function(e,t,n){"use strict";var r=n(0),i=n(32);t.a=Object(i.a)(r.createElement("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore")},function(e,t,n){"use strict";var r=n(4),i=n(7),o=n(0),a=(n(12),n(244)),s=n(177),l=n(370),c=n(78),u=n(50),h=n(16);function f(e){return"function"===typeof e?e():e}var d="undefined"!==typeof window?o.useLayoutEffect:o.useEffect,p={},g=o.forwardRef((function(e,t){var n=e.anchorEl,g=e.children,v=e.container,m=e.disablePortal,y=void 0!==m&&m,b=e.keepMounted,x=void 0!==b&&b,_=e.modifiers,w=e.open,S=e.placement,C=void 0===S?"bottom":S,k=e.popperOptions,O=void 0===k?p:k,E=e.popperRef,T=e.style,A=e.transition,P=void 0!==A&&A,j=Object(i.a)(e,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"]),L=o.useRef(null),M=Object(h.a)(L,t),R=o.useRef(null),D=Object(h.a)(R,E),I=o.useRef(D);d((function(){I.current=D}),[D]),o.useImperativeHandle(E,(function(){return R.current}),[]);var N=o.useState(!0),F=N[0],B=N[1],U=function(e,t){if("ltr"===(t&&t.direction||"ltr"))return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(C,Object(s.a)()),z=o.useState(U),V=z[0],H=z[1];o.useEffect((function(){R.current&&R.current.update()}));var W=o.useCallback((function(){if(L.current&&n&&w){R.current&&(R.current.destroy(),I.current(null));var e=function(e){H(e.placement)},t=(f(n),new a.a(f(n),L.current,Object(r.a)({placement:U},O,{modifiers:Object(r.a)({},y?{}:{preventOverflow:{boundariesElement:"window"}},_,O.modifiers),onCreate:Object(c.a)(e,O.onCreate),onUpdate:Object(c.a)(e,O.onUpdate)})));I.current(t)}}),[n,y,_,w,U,O]),G=o.useCallback((function(e){Object(u.a)(M,e),W()}),[M,W]),q=function(){R.current&&(R.current.destroy(),I.current(null))};if(o.useEffect((function(){return function(){q()}}),[]),o.useEffect((function(){w||P||q()}),[w,P]),!x&&!w&&(!P||F))return null;var X={placement:V};return P&&(X.TransitionProps={in:w,onEnter:function(){B(!1)},onExited:function(){B(!0),q()}}),o.createElement(l.a,{disablePortal:y,container:v},o.createElement("div",Object(r.a)({ref:G,role:"tooltip"},j,{style:Object(r.a)({position:"fixed",top:0,left:0,display:w||!x||P?null:"none"},T)}),"function"===typeof g?g(X):g))}));t.a=g},function(e,t,n){"use strict";n.d(t,"a",(function(){return bn}
vendor: 15,815 bytes, line 2
2));var r=n(82),i=n(34),o=n(0),a=n.n(o);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c="object"===("undefined"===typeof window?"undefined":l(window))&&"object"===("undefined"===typeof document?"undefined":l(document))&&9===document.nodeType;n(86);function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}function f(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var p={}.constructor;function g(e){if(null==e||"object"!==typeof e)return e;if(Array.isArray(e))return e.map(g);if(e.constructor!==p)return e;var t={};for(var n in e)t[n]=g(e[n]);return t}function v(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,i=g(t),o=r.plugins.onCreateRule(e,i,n);return o||(e[0],null)}var m=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},y=function(e,t){if(void 0===t&&(t=!1),!Array.isArray(e))return e;var n="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=", "),n+=m(e[r]," ");else n=m(e,", ");return t||"!important"!==e[e.length-1]||(n+=" !important"),n};function b(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function x(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var i=n.indent,o=void 0===i?0:i,a=t.fallbacks;if(e&&o++,a)if(Array.isArray(a))for(var s=0;s<a.length;s++){var l=a[s];for(var c in l){var u=l[c];null!=u&&(r&&(r+="\n"),r+=b(c+": "+y(u)+";",o))}}else for(var h in a){var f=a[h];null!=f&&(r&&(r+="\n"),r+=b(h+": "+y(f)+";",o))}for(var d in t){var p=t[d];null!=p&&"fallbacks"!==d&&(r&&(r+="\n"),r+=b(d+": "+y(p)+";",o))}return(r||n.allowEmpty)&&e?(r&&(r="\n"+r+"\n"),b(e+" {"+r,--o)+b("}",o)):r}var _=/([[\].#*$><+~=|^:(),"'`\s])/g,w="undefined"!==typeof CSS&&CSS.escape,S=function(e){return w?w(e):e.replace(_,"\\$1")},C=function(){function e(e,t,n){this.type="style",this.key=void 0,this.isProcessed=!1,this.style=void 0,this.renderer=void 0,this.renderable=void 0,this.options=void 0;var r=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var i=t;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,a=e in this.style;if(o&&!a&&!r)return this;var s=o&&a;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var l=this.options.sheet;return l&&l.attached,this},e}(),k=function(e){function t(t,n,r){var i;(i=e.call(this,t,n,r)||this).selectorText=void 0,i.id=void 0,i.renderable=void 0;var o=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return o?i.selectorText=o:!1!==a&&(i.id=l(d(d(i)),s),i.selectorText="."+S(i.id)),i}f(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!==typeof n?e[t]=n:Array.isArray(n)&&(e[t]=y(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?s({},e,{allowEmpty:!0}):e;return x(this.selectorText,this.style,n)},h(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(C),O={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new k(e,t,n)}},E={indent:1,children:!0},T=/@([\w-]+)/,A=function(){function e(e,t,n){this.type="conditional",this.at=void 0,this.key=void 0,this.query=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e;var r=e.match(T);for(var i in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new Q(s({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.toString=function(e){if(void 0===e&&(e=E),null==e.indent&&(e.indent=E.indent),null==e.children&&(e.children=E.children),!1===e.children)return this.query+" {}";var t=this.rules.toString(e);return t?this.query+" {\n"+t+"\n}":""},e}(),P=/@media|@supports\s+/,j={onCreateRule:function(e,t,n){return P.test(e)?new A(e,t,n):null}},L={indent:1,children:!0},M=/@keyframes\s+([\w-]+)/,R=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.key=void 0,this.name=void 0,this.id=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0;var r=e.match(M);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var i=n.scoped,o=n.sheet,a=n.generateId;for(var l in this.id=!1===i?this.name:S(a(this,o)),this.rules=new Q(s({},n,{parent:this})),t)this.rules.add(l,t[l],s({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){if(void 0===e&&(e=L),null==e.indent&&(e.indent=L.indent),null==e.children&&(e.children=L.children),!1===e.children)return this.at+" "+this.id+" {}";var t=this.rules.toString(e);return t&&(t="\n"+t+"\n"),this.at+" "+this.id+" {"+t+"}"},e}(),D=/@keyframes\s+/,I=/\$([\w-]+)/g,N=function(e,t){return"string"===typeof e?e.replace(I,(function(e,n){return n in t?t[n]:e})):e},F=function(e,t,n){var r=e[t],i=N(r,n);i!==r&&(e[t]=i)},B={onCreateRule:function(e,t,n){return"string"===typeof e&&D.test(e)?new R(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&F(e,"animation-name",n.keyframes),"animation"in e&&F(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return N(e,r.keyframes);default:return e}}},U=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).renderable=void 0,t}return f(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?s({},e,{allowEmpty:!0}):e;return x(this.key,this.style,n)},t}(C),z={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new U(e,t,n):null}},V=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.key=void 0,this.style=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.style)){for(var t="",n=0;n<this.style.length;n++)t+=x(this.at,this.style[n]),this.style[n+1]&&(t+="\n");return t}return x(this.at,this.style,e)},e}(),H=/@font-face/,W={onCreateRule:function(e,t,n){return H.test(e)?new V(e,t,n):null}},G=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.key=void 0,this.style=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return x(this.key,this.style,e)},e}(),q={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new G(e,t,n):null}},X=function(){function e(e,t,n){this.type="simple",this.key=void 0,this.value=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),Y={"@charset":!0,"@import":!0,"@namespace":!0},$=[O,j,B,z,W,q,{onCreateRule:function(e,t,n){return e in Y?new X(e,t,n):null}}],K={process:!0},Z={force:!0,process:!0},Q=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=void 0,this.classes=void 0,this.keyframes=void 0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,i=r.parent,o=r.sheet,a=r.jss,l=r.Renderer,c=r.generateId,u=r.scoped,h=s({classes:this.classes,parent:i,sheet:o,jss:a,Renderer:l,generateId:c,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},n),f=e;e in this.raw&&(f=e+"-d"+this.counter++),this.raw[f]=t,f in this.classes&&(h.selector="."+S(this.classes[f]));var d=v(f,t,h);if(!d)return null;this.register(d);var p=void 0===h.index?this.index.length:h.index;return this.index.splice(p,0,d),d},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof k?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof R&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof k?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof R&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"===typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.map[e],t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=K);var i=this.options,o=i.jss.plugins,a=i.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t,l=s.style;if(o.onUpdate(n,t,a,r),r.process&&l&&l!==s.style){for(var c in o.onProcessStyle(s.style,s,a),s.style){var u=s.style[c];u!==l[c]&&s.prop(c,u,Z)}for(var h in l){var f=s.style[h],d=l[h];null==f&&f!==d&&s.prop(h,null,Z)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,i=0;i<this.index.length;i++){var o=this.index[i].toString(e);(o||r)&&(t&&(t+="\n"),t+=o)}return t},e}(),J=function(){function e(e,t){for(var n in this.options=void 0,this.deployed=void 0,this.attached=void 0,this.rules=void 0,this.renderer=void 0,this.classes=void 0,this.keyframes=void 0,this.queue=void 0,this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=s({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Q(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var i=this.rules.add(e,t,n);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(r?r.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)):null},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var i=this.addRule(r,e[r],t);i&&n.push(i)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"===typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),ee=function(){function e(){this.plugins={internal:[],external:[]},this.registry=void 0}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var i=this.registry.onCreateRule[r](e,t,n);if(i)return i}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,i=0;i<this.registry.onChangeValue.length;i++)r=this.registry.onChangeValue[i](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),te=new(function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,["attached"]),i="",o=0;o<this.registry.length;o++){var a=this.registry[o];null!=n&&a.attached!==n||(i&&(i+="\n"),i+=a.toString(r))}return i},h(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}()),ne="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window&&window.Math===Math?window:"undefined"!==typeof self&&self.Math===Math?self:Function("return this")(),re="2f1acc6c3a606b082e5eef5e54414ffb";null==ne[re]&&(ne[re]=0);var ie=ne[re]++,oe=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var i="",o="";return r&&(r.options.classNamePrefix&&(o=r.options.classNamePrefix),null!=r.options.jss.id&&(i=String(r.options.jss.id))),e.minify?""+(o||"c")+ie+i+t:o+n.key+"-"+ie+(i?"-"+i:"")+"-"+t}},ae=function(e){var t;return function(){return t||(t=e()),t}},se=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(n){return""}},le=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=y(n,!0),"!important"===n[n.length-1]))return e.style.setProperty(t,r,"
2important"),!0;e.attributeStyleMap?e.attributeStyleMap.set(t,r):e.style.setProperty(t,r)}catch(i){return!1}return!0},ce=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(n){}},ue=function(e,t){return e.selectorText=t,e.selectorText===t},he=ae((function(){return document.querySelector("head")}));function fe(e){var t=te.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if((n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e))&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"===typeof r){var i=function(e){for(var t=he(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}var de=ae((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),pe=function(e,t,n){try{if("insertRule"in e)e.insertRule(t,n);else if("appendRule"in e){e.appendRule(t)}}catch(r){return!1}return e.cssRules[n]},ge=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},ve=function(){function e(e){this.getPropertyValue=se,this.setProperty=le,this.removeProperty=ce,this.setSelector=ue,this.element=void 0,this.sheet=void 0,this.hasInsertedRules=!1,this.cssRules=[],e&&te.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var o=de();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=fe(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"===typeof n.nodeType){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else he().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,i=n;if("conditional"===e.type||"keyframes"===e.type){var o=ge(n,t);if(!1===(i=pe(n,r.toString({children:!1}),o)))return!1;this.refCssRule(e,o,i)}return this.insertRules(r.rules,i),i}var a=e.toString();if(!a)return!1;var s=ge(n,t),l=pe(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof J&&(this.cssRules[t]=n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),me=0,ye=function(){function e(e){this.id=me++,this.version="10.7.1",this.plugins=new ee,this.options={id:{minify:!1},createGenerateId:oe,Renderer:c?ve:null,plugins:[]},this.generateId=oe({minify:!1});for(var t=0;t<$.length;t++)this.plugins.use($[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=s({}
2,this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!==typeof n&&(n=0===te.index?0:te.index+1);var r=new J(e,s({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),te.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"===typeof e)return this.createRule(void 0,e,t);var r=s({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var i=v(e,t,r);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}();function be(e){var t=null;for(var n in e){var r=e[n],i=typeof r;if("function"===i)t||(t={}),t[n]=r;else if("object"===i&&null!==r&&!Array.isArray(r)){var o=be(r);o&&(t||(t={}),t[n]=o)}}return t}var xe="object"===typeof CSS&&null!=CSS&&"number"in CSS,_e=function(e){return new ye(e)},we=(_e(),n(433)),Se={set:function(e,t,n,r){var i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}},Ce=n(177),ke=(n(12),n(148)),Oe=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var Ee=Date.now(),Te="fnValues"+Ee,Ae="fnStyle"+ ++Ee,Pe=function(){return{onCreateRule:function(e,t,n){if("function"!==typeof t)return null;var r=v(e,{},n);return r[Ae]=t,r},onProcessStyle:function(e,t){if(Te in t||Ae in t)return e;var n={};for(var r in e){var i=e[r];"function"===typeof i&&(delete e[r],n[r]=i)}return t[Te]=n,e},onUpdate:function(e,t,n,r){var i=t,o=i[Ae];o&&(i.style=o(e)||{});var a=i[Te];if(a)for(var s in a)i.prop(s,a[s](e),r)}}};function je(){return(je=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Le="@global",Me="@global ",Re=function(){function e(e,t,n){for(var r in this.type="global",this.at=Le,this.rules=void 0,this.options=void 0,this.key=void 0,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new Q(je({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(){return this.rules.toString()},e}(),De=function(){function e(e,t,n){this.type="global",this.at=Le,this.options=void 0,this.rule=void 0,this.isProcessed=!1,this.key=void 0,this.key=e,this.options=n;var r=e.substr(Me.length);this.rule=n.jss.createRule(r,t,je({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Ie=/\s*,\s*/g;function Ne(e,t){for(var n=e.split(Ie),r="",i=0;i<n.length;i++)r+=t+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}var Fe=function(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===Le)return new Re(e,t,n);if("@"===e[0]&&e.substr(0,Me.length)===Me)return new De(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),!1===n.scoped&&(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,i=r?r[Le]:null;if(i){for(var o in i)t.addRule(o,i[o],je({},n,{selector:Ne(o,e.selector)}));delete r[Le]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var i in r)if("@"===i[0]&&i.substr(0,Le.length)===Le){var o=Ne(i.substr(Le.length),e.selector);t.addRule(o,r[i],je({},n,{selector:o})),delete r[i]}}(e,t))}}};function Be(){return(Be=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Ue=/\s*,\s*/g,ze=/&/g,Ve=/\$([\w-]+)/g;var He=function(){function e(e,t){return function(n,r){var i=e.getRule(r)||t&&t.getRule(r);return i?(i=i).selector:r}}function t(e,t){for(var n=t.split(Ue),r=e.split(Ue),i="",o=0;o<n.length;o++)for(var a=n[o],s=0;s<r.length;s++){var l=r[s];i&&(i+=", "),i+=-1!==l.indexOf("&")?l.replace(ze,a):a+" "+l}return i}function n(e,t,n){if(n)return Be({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var i=Be({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete i.name,i}return{onProcessStyle:function(r,i,o){if("style"!==i.type)return r;var a,s,l=i,c=l.options.parent;for(var u in r){var h=-1!==u.indexOf("&"),f="@"===u[0];if(h||f){if(a=n(l,c,a),h){var d=t(u,l.selector);s||(s=e(c,o)),d=d.replace(Ve,s),c.addRule(d,r[u],Be({},a,{selector:d}))}else f&&c.addRule(u,{},a).addRule(l.key,r[u],{selector:l.selector});delete r[u]}}return r}}},We=/[A-Z]/g,Ge=/^ms-/,qe={};function Xe(e){return"-"+e.toLowerCase()}var Ye=function(e){if(qe.hasOwnProperty(e))return qe[e];var t=e.replace(We,Xe);return qe[e]=Ge.test(t)?"-"+t:t};function $e(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:Ye(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map($e):t.fallbacks=$e(e.fallbacks)),t}var Ke=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=$e(e[t]);return e}return $e(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=Ye(t);return t===r?e:(n.prop(r,e),null)}}},Ze=xe&&CSS?CSS.px:"px",Qe=xe&&CSS?CSS.ms:"ms",Je=xe&&CSS?CSS.percent:"%";function et(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var i in e)r[i]=e[i],r[i.replace(t,n)]=e[i];return r}var tt=et({"animation-delay":Qe,"animation-duration":Qe,"background-position":Ze,"background-position-x":Ze,"background-position-y":Ze,"background-size":Ze,border:Ze,"border-bottom":Ze,"border-bottom-left-radius":Ze,"border-bottom-right-radius":Ze,"border-bottom-width":Ze,"border-left":Ze,"border-left-width":Ze,"border-radius":Ze,"border-right":Ze,"border-right-width":Ze,"border-top":Ze,"border-top-left-radius":Ze,"border-top-right-radius":Ze,"border-top-width":Ze,"border-width":Ze,"border-block":Ze,"border-block-end":Ze,"border-block-end-width":Ze,"border-block-start":Ze,"border-block-start-width":Ze,"border-block-width":Ze,"border-inline":Ze,"border-inline-end":Ze,"border-inline-end-width":Ze,"border-inline-start":Ze,"border-inline-start-width":Ze,"border-inline-width":Ze,"border-start-start-radius":Ze,"border-start-end-radius":Ze,"border-end-start-radius":Ze,"border-end-end-radius":Ze,margin:Ze,"margin-bottom":Ze,"margin-left":Ze,"margin-right":Ze,"margin-top":Ze,"margin-block":Ze,"margin-block-end":Ze,"margin-block-start":Ze,"margin-inline":Ze,"margin-inline-end":Ze,"margin-inline-start":Ze,padding:Ze,"padding-bottom":Ze,"padding-left":Ze,"padding-right":Ze,"padding-top":Ze,"padding-block":Ze,"padding-block-end":Ze,"padding-block-start":Ze,"padding-inline":Ze,"padding-inline-end":Ze,"padding-inline-start":Ze,"mask-
2position-x":Ze,"mask-position-y":Ze,"mask-size":Ze,height:Ze,width:Ze,"min-height":Ze,"max-height":Ze,"min-width":Ze,"max-width":Ze,bottom:Ze,left:Ze,top:Ze,right:Ze,inset:Ze,"inset-block":Ze,"inset-block-end":Ze,"inset-block-start":Ze,"inset-inline":Ze,"inset-inline-end":Ze,"inset-inline-start":Ze,"box-shadow":Ze,"text-shadow":Ze,"column-gap":Ze,"column-rule":Ze,"column-rule-width":Ze,"column-width":Ze,"font-size":Ze,"font-size-delta":Ze,"letter-spacing":Ze,"text-decoration-thickness":Ze,"text-indent":Ze,"text-stroke":Ze,"text-stroke-width":Ze,"word-spacing":Ze,motion:Ze,"motion-offset":Ze,outline:Ze,"outline-offset":Ze,"outline-width":Ze,perspective:Ze,"perspective-origin-x":Je,"perspective-origin-y":Je,"transform-origin":Je,"transform-origin-x":Je,"transform-origin-y":Je,"transform-origin-z":Je,"transition-delay":Qe,"transition-duration":Qe,"vertical-align":Ze,"flex-basis":Ze,"shape-margin":Ze,size:Ze,gap:Ze,grid:Ze,"grid-gap":Ze,"row-gap":Ze,"grid-row-gap":Ze,"grid-column-gap":Ze,"grid-template-rows":Ze,"grid-template-columns":Ze,"grid-auto-rows":Ze,"grid-auto-columns":Ze,"box-shadow-x":Ze,"box-shadow-y":Ze,"box-shadow-blur":Ze,"box-shadow-spread":Ze,"font-line-height":Ze,"text-shadow-x":Ze,"text-shadow-y":Ze,"text-shadow-blur":Ze});function nt(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=nt(e,t[r],n);else if("object"===typeof t)if("fallbacks"===e)for(var i in t)t[i]=nt(i,t[i],n);else for(var o in t)t[o]=nt(e+"-"+o,t[o],n);else if("number"===typeof t&&!1===isNaN(t)){var a=n[e]||tt[e];return!a||0===t&&a===Ze?t.toString():"function"===typeof a?a(t).toString():""+t+a}return t}var rt=function(e){void 0===e&&(e={});var t=et(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=nt(r,e[r],t);return e},onChangeValue:function(e,n){return nt(n,e,t)}}};function it(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ot(e){return function(e){if(Array.isArray(e))return it(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return it(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?it(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var at="",st="",lt="",ct="",ut=c&&"ontouchstart"in document.documentElement;if(c){var ht={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},ft=document.createElement("p").style;for(var dt in ht)if(dt+"Transform"in ft){at=dt,st=ht[dt];break}"Webkit"===at&&"msHyphens"in ft&&(at="ms",st=ht.ms,ct="edge"),"Webkit"===at&&"-apple-trailing-word"in ft&&(lt="apple")}var pt=at,gt=st,vt=lt,mt=ct,yt=ut;var bt={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===pt?"-webkit-"+e:gt+e)}},xt={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===pt?gt+"print-"+e:e)}},_t=/[-\s]+(.)?/g;function wt(e,t){return t?t.toUpperCase():""}function St(e){return e.replace(_t,wt)}function Ct(e){return St("-"+e)}var kt,Ot={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===pt){var n="mask-image";if(St(n)in t)return e;if(pt+Ct(n)in t)return gt+e}return e}},Et={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==vt||yt?e:gt+e)}},Tt={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:gt+e)}},At={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:gt+e)}},Pt={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===pt||"ms"===pt&&"edge"!==mt?gt+e:e)}},jt={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===pt||"ms"===pt||"apple"===vt?gt+e:e)}},Lt={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===pt?"WebkitColumn"+Ct(e)in t&>+"column-"+e:"Moz"===pt&&("page"+Ct(e)in t&&"page-"+e))}},Mt={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===pt)return e;var n=e.replace("-inline","");return pt+Ct(n)in t&>+n}},Rt={supportedProperty:function(e,t){return St(e)in t&&e}},Dt={supportedProperty:function(e,t){var n=Ct(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:pt+n in t?gt+e:"Webkit"!==pt&&"Webkit"+n in t&&"-webkit-"+e}},It={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===pt?""+gt+e:e)}},Nt={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===pt?gt+"scroll-chaining":e)}},Ft={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},Bt={supportedProperty:function(e,t){var n=Ft[e];return!!n&&(pt+Ct(n)in t&>+n)}},Ut={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},zt=Object.keys(Ut),Vt=function(e){return gt+e},Ht=[bt,xt,Ot,Et,Tt,At,Pt,jt,Lt,Mt,Rt,Dt,It,Nt,Bt,{supportedProperty:function(e,t,n){var r=n.multiple;if(zt.indexOf(e)>-1){var i=Ut[e];if(!Array.isArray(i))return pt+Ct(i)in t&>+i;if(!r)return!1;for(var o=0;o<i.length;o++)if(!(pt+Ct(i[0])in t))return!1;return i.map(Vt)}return!1}}
2],Wt=Ht.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),Gt=Ht.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,ot(t.noPrefill)),e}),[]),qt={};if(c){kt=document.createElement("p");var Xt=window.getComputedStyle(document.documentElement,"");for(var Yt in Xt)isNaN(Yt)||(qt[Xt[Yt]]=Xt[Yt]);Gt.forEach((function(e){return delete qt[e]}))}function $t(e,t){if(void 0===t&&(t={}),!kt)return e;if(null!=qt[e])return qt[e];"transition"!==e&&"transform"!==e||(t[e]=e in kt.style);for(var n=0;n<Wt.length&&(qt[e]=Wt[n](e,kt.style,t),!qt[e]);n++);try{kt.style[e]=""}catch(r){return!1}return qt[e]}var Kt,Zt={},Qt={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Jt=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function en(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?$t(t):", "+$t(n);return r||(t||n)}function tn(e,t){var n=t;if(!Kt||"content"===e)return t;if("string"!==typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=Zt[r])return Zt[r];try{Kt.style[e]=n}catch(i){return Zt[r]=!1,!1}if(Qt[e])n=n.replace(Jt,en);else if(""===Kt.style[e]&&("-ms-flex"===(n=gt+n)&&(Kt.style[e]="-ms-flexbox"),Kt.style[e]=n,""===Kt.style[e]))return Zt[r]=!1,!1;return Kt.style[e]="",Zt[r]=n,Zt[r]}c&&(Kt=document.createElement("p"));var nn=function(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var i=!1,o=$t(n);o&&o!==n&&(i=!0);var a=!1,s=tn(o,y(r));s&&s!==r&&(a=!0),(i||a)&&(i&&delete t[n],t[o||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at="-"===(n=t.at)[1]||"ms"===pt?n:"@"+gt+"keyframes"+n.substr(10)}var n},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return tn(t,y(e))||e}}};var rn=function(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},i=Object.keys(t).sort(e),o=0;o<i.length;o++)r[i[o]]=t[i[o]];return r}}};function on(){return{plugins:[Pe(),Fe(),He(),Ke(),rt(),"undefined"===typeof window?null:nn(),rn()]}}var an=_e(on()),sn={disableGeneration:!1,generateClassName:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,i=void 0===r?"jss":r,o=e.seed,a=void 0===o?"":o,s=""===a?"":"".concat(a,"-"),l=0,c=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==Oe.indexOf(e.key))return"Mui-".concat(e.key);var o="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[ke.a]&&""===a?"".concat(o,"-").concat(c()):o}return"".concat(s).concat(i).concat(c())}}(),jss:an,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},ln=a.a.createContext(sn);var cn=-1e9;function un(){return cn+=1}var hn=n(255);function fn(e){var t="function"===typeof e;return{create:function(n,r){var o;try{o=t?e(n):e}catch(l){throw l}if(!r||!n.overrides||!n.overrides[r])return o;var a=n.overrides[r],s=Object(i.a)({},o);return Object.keys(a).forEach((function(e){s[e]=Object(hn.a)(s[e],a[e])})),s},options:{}}}var dn={};function pn(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var i=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,i=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,i=!0),i&&(r.cacheClasses.value=Object(we.a)({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}function gn(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,a=e.stylesCreator,s=e.name;if(!o.disableGeneration){var l=Se.get(o.sheetsManager,a,r);l||(l={refs:0,staticSheet:null,dynamicStyles:null},Se.set(o.sheetsManager,a,r,l));var c=Object(i.a)({},a.options,o,{theme:r,flip:"boolean"===typeof o.flip?o.flip:"rtl"===r.direction});c.generateId=c.serverGenerateClassName||c.generateClassName;var u=o.sheetsRegistry;if(0===l.refs){var h;o.sheetsCache&&(h=Se.get(o.sheetsCache,a,r));var f=a.create(r,s);h||((h=o.jss.createStyleSheet(f,Object(i.a)({link:!1},c))).attach(),o.sheetsCache&&Se.set(o.sheetsCache,a,r,h)),u&&u.add(h),l.staticSheet=h,l.dynamicStyles=be(f)}if(l.dynamicStyles){var d=o.jss.createStyleSheet(l.dynamicStyles,Object(i.a)({link:!0},c));d.update(t),d.attach(),n.dynamicSheet=d,n.classes=Object(we.a)({baseClasses:l.staticSheet.classes,newClasses:d.classes}),u&&u.add(d)}else n.classes=l.staticSheet.classes;l.refs+=1}}function vn(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}function mn(e){var t=e.state,n=e.theme,r=e.stylesOptions,i=e.stylesCreator;if(!r.disableGeneration){var o=Se.get(r.sheetsManager,i,n);o.refs-=1;var a=r.sheetsRegistry;0===o.refs&&(Se.delete(r.sheetsManager,i,n),r.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}function yn(e,t){var n,r=a.a.useRef([]),i=a.a.useMemo((function(){return{}}),t);r.current!==i&&(r.current=i,n=e()),a.a.useEffect((function(){return function(){n&&n()}}),[i])}function bn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,o=t.classNamePrefix,s=t.Component,l=t.defaultTheme,c=void 0===l?dn:l,u=Object(r.a)(t,["name","classNamePrefix","Component","defaultTheme"]),h=fn(e),f=n||o||"makeStyles";h.options={index:un(),name:n,meta:f,classNamePrefix:f};var d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object(Ce.a)()||c,r=Object(i.a)({},a.a.useContext(ln),u),o=a.a.useRef(),l=a.a.useRef();yn((function(){var i={name:n,state:{},stylesCreator:h,stylesOptions:r,theme:t};return gn(i,e),l.current=!1,o.current=i,function(){mn(i)}}),[t,h]),a.a.useEffect((function(){l.current&&vn(o.current,e),l.current=!0}));var f=pn(o.current,e.classes,s);return f};return d}},function(e,t,n){"use strict";var r=n(4),i=n(7),o=n(0),a=(n(12),n(433)),s=n(49),l=n(242),c=n(248),u=(n(115),n(6)),h=n(28),f=n(14),d=n(243),p=n(110),g=n(16),v=n(76);function m(e,t){return"object"===Object(l.a)(t)&&null!==t?e===t:String(e)===String(t)}var y=o.forwardRef((function(e,t){var n=e["aria-label"],a=e.autoFocus,l=e.autoWidth,y=e.children,b=e.classes,x=e.className,_=e.defaultValue,w=e.disabled,S=e.displayEmpty,C=e.IconComponent,k=e.inputRef,O=e.labelId,E=e.MenuProps,T=void 0===E?{}
2:E,A=e.multiple,P=e.name,j=e.onBlur,L=e.onChange,M=e.onClose,R=e.onFocus,D=e.onOpen,I=e.open,N=e.readOnly,F=e.renderValue,B=e.SelectDisplayProps,U=void 0===B?{}:B,z=e.tabIndex,V=(e.type,e.value),H=e.variant,W=void 0===H?"standard":H,G=Object(i.a)(e,["aria-label","autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"]),q=Object(v.a)({controlled:V,default:_,name:"Select"}),X=Object(s.a)(q,2),Y=X[0],$=X[1],K=o.useRef(null),Z=o.useState(null),Q=Z[0],J=Z[1],ee=o.useRef(null!=I).current,te=o.useState(),ne=te[0],re=te[1],ie=o.useState(!1),oe=ie[0],ae=ie[1],se=Object(g.a)(t,k);o.useImperativeHandle(se,(function(){return{focus:function(){Q.focus()},node:K.current,value:Y}}),[Q,Y]),o.useEffect((function(){a&&Q&&Q.focus()}),[a,Q]),o.useEffect((function(){if(Q){var e=Object(h.a)(Q).getElementById(O);if(e){var t=function(){getSelection().isCollapsed&&Q.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}}),[O,Q]);var le,ce,ue=function(e,t){e?D&&D(t):M&&M(t),ee||(re(l?null:Q.clientWidth),ae(e))},he=o.Children.toArray(y),fe=function(e){return function(t){var n;if(A||ue(!1,t),A){n=Array.isArray(Y)?Y.slice():[];var r=Y.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;e.props.onClick&&e.props.onClick(t),Y!==n&&($(n),L&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:P}}),L(t,e)))}},de=null!==Q&&(ee?I:oe);delete G["aria-invalid"];var pe=[],ge=!1;(Object(p.b)({value:Y})||S)&&(F?le=F(Y):ge=!0);var ve=he.map((function(e){if(!o.isValidElement(e))return null;var t;if(A){if(!Array.isArray(Y))throw new Error(Object(c.a)(2));(t=Y.some((function(t){return m(t,e.props.value)})))&&ge&&pe.push(e.props.children)}else(t=m(Y,e.props.value))&&ge&&(ce=e.props.children);return t&&!0,o.cloneElement(e,{"aria-selected":t?"true":void 0,onClick:fe(e),onKeyUp:function(t){" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));ge&&(le=A?pe.join(", "):ce);var me,ye=ne;!l&&ee&&Q&&(ye=Q.clientWidth),me="undefined"!==typeof z?z:w?null:0;var be=U.id||(P?"mui-component-select-".concat(P):void 0);return o.createElement(o.Fragment,null,o.createElement("div",Object(r.a)({className:Object(u.a)(b.root,b.select,b.selectMenu,b[W],x,w&&b.disabled),ref:J,tabIndex:me,role:"button","aria-disabled":w?"true":void 0,"aria-expanded":de?"true":void 0,"aria-haspopup":"listbox","aria-label":n,"aria-labelledby":[O,be].filter(
2Boolean).join(" ")||void 0,onKeyDown:function(e){if(!N){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),ue(!0,e))}},onMouseDown:w||N?null:function(e){0===e.button&&(e.preventDefault(),Q.focus(),ue(!0,e))},onBlur:function(e){!de&&j&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:Y,name:P}}),j(e))},onFocus:R},U,{id:be}),function(e){return null==e||"string"===typeof e&&!e.trim()}(le)?o.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):le),o.createElement("input",Object(r.a)({value:Array.isArray(Y)?Y.join(","):Y,name:P,ref:K,"aria-hidden":!0,onChange:function(e){var t=he.map((function(e){return e.props.value})).indexOf(e.target.value);if(-1!==t){var n=he[t];$(n.props.value),L&&L(e,n)}},tabIndex:-1,className:b.nativeInput,autoFocus:a},G)),o.createElement(C,{className:Object(u.a)(b.icon,b["icon".concat(Object(f.a)(W))],de&&b.iconOpen,w&&b.disabled)}),o.createElement(d.a,Object(r.a)({id:"menu-".concat(P||""),anchorEl:Q,open:de,onClose:function(e){ue(!1,e)}},T,{MenuListProps:Object(r.a)({"aria-labelledby":O,role:"listbox",disableListWrap:!0},T.MenuListProps),PaperProps:Object(r.a)({},T.PaperProps,{style:Object(r.a)({minWidth:ye},null!=T.PaperProps?T.PaperProps.style:null)})}),ve))})),b=n(62),x=n(63),_=n(9),w=n(32),S=Object(w.a)(o.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),C=n(387),k=o.forwardRef((function(e,t){var n=e.classes,a=e.className,s=e.disabled,l=e.IconComponent,c=e.inputRef,h=e.variant,d=void 0===h?"standard":h,p=Object(i.a)(e,["classes","className","disabled","IconComponent","inputRef","variant"]);return o.createElement(o.Fragment,null,o.createElement("select",Object(r.a)({className:Object(u.a)(n.root,n.select,n[d],a,s&&n.disabled),disabled:s,ref:c||t},p)),e.multiple?null:o.createElement(l,{className:Object(u.a)(n.icon,n["icon".concat(Object(f.a)(d))],s&&n.disabled)}))})),O=function(e){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper},"&&":{paddingRight:24}},filled:{"&&":{paddingRight:32}},outlined:{borderRadius:e.shape.borderRadius,"&&":{paddingRight:32}},selectMenu:{height:"auto",minHeight:"1.1876em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",pointerEvents:"none",color:e.palette.action.active,"&$disabled":{color:e.palette.action.disabled}},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7},nativeInput:{bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%"}}},E=o.createElement(C.a,null),T=o.forwardRef((function(e,t){var n=e.children,a=e.classes,s=e.IconComponent,l=void 0===s?S:s,c=e.input,u=void 0===c?E:c,h=e.inputProps,f=(e.variant,Object(i.a)(e,["children","classes","IconComponent","input","inputProps","variant"])),d=Object(x.a)(),p=Object(b.a)({props:e,muiFormControl:d,states:["variant"]});return o.cloneElement(u,Object(r.a)({inputComponent:k,inputProps:Object(r.a)({children:n,classes:a,IconComponent:l,variant:p.variant,type:void 0},h,u?u.props.inputProps:{}),ref:t},f))}));T.muiName="Select";Object(_.a)(O,{name:"MuiNativeSelect"})(T);var A=n(388),P=n(402),j=O,L=o.createElement(C.a,null),M=o.createElement(A.a,null),R=o.forwardRef((function e(t,n){var s=t.autoWidth,l=void 0!==s&&s,c=t.children,u=t.classes,h=t.displayEmpty,f=void 0!==h&&h,d=t.IconComponent,p=void 0===d?S:d,g=t.id,v=t.input,m=t.inputProps,_=t.label,w=t.labelId,C=t.labelWidth,O=void 0===C?0:C,E=t.MenuProps,T=t.multiple,A=void 0!==T&&T,j=t.native,R=void 0!==j&&j,D=t.onClose,I=t.onOpen,N=t.open,F=t.renderValue,B=t.SelectDisplayProps,U=t.variant,z=void 0===U?"standard":U,V=Object(i.a)(t,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),H=R?k:y,W=Object(x.a)(),G=Object(b.a)({props:t,muiFormControl:W,states:["variant"]}).variant||z,q=v||{standard:L,outlined:o.createElement(P.a,{label:_,labelWidth:O}),filled:M}[G];return o.cloneElement(q,Object(r.a)({inputComponent:H,inputProps:Object(r.a)({children:c,IconComponent:p,variant:G,type:void 0,multiple:A},R?{id:g}:{autoWidth:l,displayEmpty:f,labelId:w,MenuProps:E,onClose:D,onOpen:I,open:N,renderValue:F,SelectDisplayProps:Object(r.a)({id:g},B)},m,{classes:m?Object(a.a)({baseClasses:u,newClasses:m.classes,Component:e}):u},v?v.props.inputProps:{}),ref:n},V))}));R.muiName="Select";t.a=Object(_.a)(j,{name:"MuiSelect"})(R)},function(e,t,n){"use strict";var r=n(188),i=n(163),o=n(0),a=(n(12),n(6)),s=n(15),l=n(9),c=n(179),u=n(32),h=Object(u.a)(o.createElement("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}
2),"SuccessOutlined"),f=Object(u.a)(o.createElement("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),d=Object(u.a)(o.createElement("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),p=Object(u.a)(o.createElement("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),g=n(202),v=n(250),m=n(14),y={success:o.createElement(h,{fontSize:"inherit"}),warning:o.createElement(f,{fontSize:"inherit"}),error:o.createElement(d,{fontSize:"inherit"}),info:o.createElement(p,{fontSize:"inherit"})},b=o.createElement(g.a,{fontSize:"small"}),x=o.forwardRef((function(e,t){var n=e.action,s=e.children,l=e.classes,u=e.className,h=e.closeText,f=void 0===h?"Close":h,d=e.color,p=e.icon,g=e.iconMapping,x=void 0===g?y:g,_=e.onClose,w=e.role,S=void 0===w?"alert":w,C=e.severity,k=void 0===C?"success":C,O=e.variant,E=void 0===O?"standard":O,T=Object(r.a)(e,["action","children","classes","className","closeText","color","icon","iconMapping","onClose","role","severity","variant"]);return o.createElement(c.a,Object(i.a)({role:S,square:!0,elevation:0,className:Object(a.a)(l.root,l["".concat(E).concat(Object(m.a)(d||k))],u),ref:t},T),!1!==p?o.createElement("div",{className:l.icon},p||x[k]||y[k]):null,o.createElement("div",{className:l.message},s),null!=n?o.createElement("div",{className:l.action},n):null,null==n&&_?o.createElement("div",{className:l.action},o.createElement(v.a,{size:"small","aria-label":f,title:f,color:"inherit",onClick:_},b)):null)}));t.a=Object(l.a)((function(e){var t="light"===e.palette.type?s.b:s.e,n="light"===e.palette.type?s.e:s.b;return{root:Object(i.a)({},e.typography.body2,{borderRadius:e.shape.borderRadius,backgroundColor:"transparent",display:"flex",padding:"6px 16px"}),standardSuccess:{color:t(e.palette.success.main,.6),backgroundColor:n(e.palette.success.main,.9),"& $icon":{color:e.palette.success.main}},standardInfo:{color:t(e.palette.info.main,.6),backgroundColor:n(e.palette.info.main,.9),"& $icon":{color:e.palette.info.main}},standardWarning:{color:t(e.palette.warning.main,.6),backgroundColor:n(e.palette.warning.main,.9),"& $icon":{color:e.palette.warning.main}},standardError:{color:t(e.palette.error.main,.6),backgroundColor:n(e.palette.error.main,.9),"& $icon":{color:e.palette.error.main}},outlinedSuccess:{color:t(e.palette.success.main,.6),border:"1px solid ".concat(e.palette.success.main),"& $icon":{color:e.palette.success.main}},outlinedInfo:{color:t(e.palette.info.main,.6),border:"1px solid ".concat(e.palette.info.main),"& $icon":{color:e.palette.info.main}},outlinedWarning:{color:t(e.palette.warning.main,.6),border:"1px solid ".concat(e.palette.warning.main),"& $icon":{color:e.palette.warning.main}},outlinedError:{color:t(e.palette.error.main,.6),border:"1px solid ".concat(e.palette.error.main),"& $icon":{color:e.palette.error.main}},filledSuccess:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.success.main},filledInfo:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.info.main},filledWarning:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.warning.main},filledError:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.error.main},icon:{marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9},message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}}),{name:"MuiAlert"})(x)},function(e,t,n){"use strict";var r=n(4),i=n(7),o=n(0),a=(n(12),n(6)),s=n(198),l=n(32),c=Object(l.a)(o.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),u=Object(l.a)(o.createElement("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),h=n(15),f=Object(l.a)(o.createElement("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox"),d=n(14),p=n(9),g=o.createElement(u,null),v=o.createElement(c,null),m=o.createElement(f,null),y=o.forwardRef((function(e,t){var n=e.checkedIcon,l=void 0===n?g:n,c=e.classes,u=e.color,h=void 0===u?"secondary":u,f=e.icon,p=void 0===f?v:f,y=e.indeterminate,b=void 0!==y&&y,x=e.indeterminateIcon,_=void 0===x?m:x,w=e.inputProps,S=e.size,C=void 0===S?"medium":S,k=Object(i.a)(e,["checkedIcon","classes","color","icon","indeterminate","indeterminateIcon","inputProps","
2size"]),O=b?_:p,E=b?_:l;return o.createElement(s.a,Object(r.a)({type:"checkbox",classes:{root:Object(a.a)(c.root,c["color".concat(Object(d.a)(h))],b&&c.indeterminate),checked:c.checked,disabled:c.disabled},color:h,inputProps:Object(r.a)({"data-indeterminate":b},w),icon:o.cloneElement(O,{fontSize:void 0===O.props.fontSize&&"small"===C?C:O.props.fontSize}),checkedIcon:o.cloneElement(E,{fontSize:void 0===E.props.fontSize&&"small"===C?C:E.props.fontSize}),ref:t},k))}));t.a=Object(p.a)((function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},indeterminate:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(h.a)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(h.a)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}}),{name:"MuiCheckbox"})(y)},function(e,t,n){"use strict";var r=n(4),i=n(7),o=n(0),a=(n(12),n(6)),s=n(257),l=n(37),c=n(9),u=n(41),h=n(14),f=o.forwardRef((function(e,t){e.children;var n=e.classes,s=e.className,c=e.label,f=e.labelWidth,d=e.notched,p=e.style,g=Object(i.a)(e,["children","classes","className","label","labelWidth","notched","style"]),v="rtl"===Object(u.a)().direction?"right":"left";if(void 0!==c)return o.createElement("fieldset",Object(r.a)({"aria-hidden":!0,className:Object(a.a)(n.root,s),ref:t,style:p},g),o.createElement("legend",{className:Object(a.a)(n.legendLabelled,d&&n.legendNotched)},c?o.createElement("span",null,c):o.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})));var m=f>0?.75*f+8:.01;return o.createElement("fieldset",Object(r.a)({"aria-hidden":!0,style:Object(r.a)(Object(l.a)({},"padding".concat(Object(h.a)(v)),8),p),className:Object(a.a)(n.root,s),ref:t},g),o.createElement("legend",{className:n.legend,style:{width:d?m:.01}},o.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})))})),d=Object(c.a)((function(e){return{root:{position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden"},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},legendLabelled:{display:"block",width:"auto",textAlign:"left",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),"& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}}),{name:"PrivateNotchedOutline"})(f),p=o.forwardRef((function(e,t){var n=e.classes,l=e.fullWidth,c=void 0!==l&&l,u=e.inputComponent,h=void 0===u?"input":u,f=e.label,p=e.labelWidth,g=void 0===p?0:p,v=e.multiline,m=void 0!==v&&v,y=e.notched,b=e.type,x=void 0===b?"text":b,_=Object(i.a)(e,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return o.createElement(s.a,Object(r.a)({renderSuffix:function(e){return o.createElement(d,{className:n.notchedOutline,label:f,labelWidth:g,notched:"undefined"!==typeof y?y:Boolean(e.startAdornment||e.filled||e.focused)})},classes:Object(r.a)({},n,{root:Object(a.a)(n.root,n.underline),notchedOutline:null}),fullWidth:c,inputComponent:h,multiline:m,ref:t,type:x},_))}));p.muiName="Input";t.a=Object(c.a)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:t},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiOutlinedInput"})(p)},,,,,,,function(e,t,n){"use strict";var r=n(137),i=n(144),o=n(229);t.a=function(e,t,n){void 0===n&&(n={});var a=Object(r.a)(t);Object(o.a)((function(){var t=Object(i.a)(n.target,window);if(null===t||void 0===t?void 0:t.addEventListener){var r=function(e){return a.current(e)};return t.addEventListener(e,r,{capture:n.capture,once:n.once,passive:n.passive}),function(){t.removeEventListener(e,r,{capture:n.capture})}}}),[e,n.capture,n.once,n.passive],n.target)}},,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(34);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;e.Component;if(!n)return t;var i=Object(r.a)({},t);
2return Object.keys(n).forEach((function(e){n[e]&&(i[e]="".concat(t[e]," ").concat(n[e]))})),i}},function(e,t,n){"use strict";function r(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var i,o=t.props[n];for(i in o)void 0===r[i]&&(r[i]=o[i]);return r}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(4),i=n(7),o=n(0),a=(n(12),n(6)),s=n(9),l=n(14),c=44,u=o.forwardRef((function(e,t){var n=e.classes,s=e.className,u=e.color,h=void 0===u?"primary":u,f=e.disableShrink,d=void 0!==f&&f,p=e.size,g=void 0===p?40:p,v=e.style,m=e.thickness,y=void 0===m?3.6:m,b=e.value,x=void 0===b?0:b,_=e.variant,w=void 0===_?"indeterminate":_,S=Object(i.a)(e,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),C={},k={},O={};if("determinate"===w||"static"===w){var E=2*Math.PI*((c-y)/2);C.strokeDasharray=E.toFixed(3),O["aria-valuenow"]=Math.round(x),C.strokeDashoffset="".concat(((100-x)/100*E).toFixed(3),"px"),k.transform="rotate(-90deg)"}return o.createElement("div",Object(r.a)({className:Object(a.a)(n.root,s,"inherit"!==h&&n["color".concat(Object(l.a)(h))],{determinate:n.determinate,indeterminate:n.indeterminate,static:n.static}[w]),style:Object(r.a)({width:g,height:g},k,v),ref:t,role:"progressbar"},O,S),o.createElement("svg",{className:n.svg,viewBox:"".concat(22," ").concat(22," ").concat(c," ").concat(c)},o.createElement("circle",{className:Object(a.a)(n.circle,d&&n.circleDisableShrink,{determinate:n.circleDeterminate,indeterminate:n.circleIndeterminate,static:n.circleStatic}[w]),style:C,cx:c,cy:c,r:(c-y)/2,fill:"none",strokeWidth:y})))}));t.a=Object(s.a)((function(e){return{root:{display:"inline-block"},static:{transition:e.transitions.create("transform")},indeterminate:{animation:"$circular-rotate 1.4s linear infinite"},determinate:{transition:e.transitions.create("transform")},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},svg:{display:"block"},circle:{stroke:"currentColor"},circleStatic:{transition:e.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"$circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},circleDeterminate:{transition:e.transitions.create("stroke-dashoffset")},"@keyframes circular-rotate":{"0%":{transformOrigin:"50% 50%"},"100%":{transform:"rotate(360deg)"}},"@keyframes circular-dash":{"0%":{strokeDasharray:"1px, 200px",strokeDashoffset:"0px"},"50%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-15px"},"100%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-125px"}},circleDisableShrink:{animation:"none"}}}),{name:"MuiCircularProgress",flip:!1})(u)},function(e,t,n){"use strict";var r=n(34),i=n(0),o=n.n(i),a=(n(12),n(146)),s=n(177),l=n(148);t.a=function(e){var t=e.children,n=e.theme,i=Object(s.a)(),c=o.a.useMemo((function(){var e=null===i?n:function(e,t){return"function"===typeof t?t(e):Object(r.a)({},e,t)}(i,n);return null!=e&&(e[l.a]=null!==i),e}),[n,i]);return o.a.createElement(a.a.Provider,{value:c},t)}},function(e,t,n){"use strict";var r=n(4),i=n(0),o=(n(12),n(9)),a={WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box"},s=function(e){return Object(r.a)({color:e.palette.text.primary},e.typography.body2,{backgroundColor:e.palette.background.default,"@media print":{backgroundColor:e.palette.common.white}})};t.a=Object(o.a)((function(e){return{"@global":{html:a,"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:Object(r.a)({margin:0},s(e),{"&::backdrop":{backgroundColor:e.palette.background.default}})}}}),{name:"MuiCssBaseline"})((function(e){var t=e.children,n=void 0===t?null:t;return e.classes,i.createElement(i.Fragment,null,n)}))},function(e,t,n){"use strict";var r=n(4),i=n(49),o=n(7),a=n(37),s=n(0),l=n(25),c=(n(12),n(6)),u=n(255),h=n(15),f=n(9),d=n(14),p=n(253),g=n(397),v=n(16),m=n(136),y=n(50),b=n(94),x=n(76),_=n(41);function w(e){return Math.round(1e5*e)/1e5}var S=!1,C=null;var k=s.forwardRef((function(e,t){var n=e.arrow,a=void 0!==n&&n,h=e.children,f=e.classes,w=e.disableFocusListener,k=void 0!==w&&w,O=e.disableHoverListener,E=void 0!==O&&O,T=e.disableTouchListener,A=void 0!==T&&T,P=e.enterDelay,j=void 0===P?100:P,L=e.enterNextDelay,M=void 0===L?0:L,R=e.enterTouchDelay,D=void 0===R?700:R,I=e.id,N=e.interactive,F=void 0!==N&&N,B=e.leaveDelay,U=void 0===B?0:B,z=e.leaveTouchDelay,V=void 0===z?1500:z,H=e.onClose,W=e.onOpen,G=e.open,q=e.placement,X=void 0===q?"bottom":q,Y=e.PopperComponent,$=void 0===Y?g.a:Y,K=e.PopperProps,Z=e.title,Q=e.TransitionComponent,J=void 0===Q?p.a:Q,ee=e.TransitionProps,te=Object(o.a)(e,["arrow","children","classes","disableFocusListener","disableHoverListener","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","id","interactive","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","title","TransitionComponent","TransitionProps"]),ne=Object(_.a)(),re=s.useState(),ie=re[0],oe=re[1],ae=s.useState(null),se=ae[0],le=ae[1],ce=s.useRef(!1),ue=s.useRef(),he=s.useRef(),fe=s.useRef(),de=s.useRef(),pe=Object(x.a)({controlled:G,default:!1,name:"Tooltip",state:"open"}),ge=Object(i.a)(pe,2),ve=ge[0],me=ge[1],ye=ve,be=Object(m.a)(I);s.useEffect((function(){return function(){clearTimeout(ue.current),clearTimeout(he.current),clearTimeout(fe.current),clearTimeout(de.current)}}),[]);var xe=function(e){clearTimeout(C),S=!0,me(!0),W&&W(e)},_e=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=h.props;"mouseover"===t.type&&n.onMouseOver&&e&&n.onMouseOver(t),ce.current&&"touchstart"!==t.type||(ie&&ie.removeAttribute("title"),clearTimeout(he.current),clearTimeout(fe.current),j||S&&M?(t.persist(),he.current=setTimeout((function(){xe(t)}),S?M:j)):xe(t))}},we=Object(b.a)(),Se=we.isFocusVisible,Ce=we.onBlurVisible,ke=we.ref,Oe=s.useState(!1),Ee=Oe[0],Te=Oe[1],Ae=function(){Ee&&(Te(!1),Ce())},Pe=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){ie||oe(t.currentTarget),Se(t)&&(Te(!0),_e()(t));var n=h.props;n.onFocus&&e&&n.onFocus(t)}},je=function(e){clearTimeout(C),C=setTimeout((function(){S=!1}),800+U),me(!1),H&&H(e),clearTimeout(ue.current),ue.current=setTimeout((function(){ce.current=!1}),ne.transitions.duration.shortest)},Le=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=h.props;"blur"===t.type&&(n.onBlur&&e&&n.onBlur(t),Ae()),"mouseleave"===t.type&&n.onMouseLeave&&t.currentTarget===ie&&n.onMouseLeave(t),clearTimeout(he.current),clearTimeout(fe.current),t.persist(),fe.current=setTimeout((function(){je(t)}),U)}},Me=function(e){ce.current=!0;var t=h.props;t.onTouchStart&&t.onTouchStart(e)},Re=Object(v.a)(oe,t),De=Object(v.a)(ke,Re),Ie=s.useCallback((function(e){Object(y.a)(De,l.findDOMNode(e))}),[De]),Ne=Object(v.a)(h.ref,Ie);""===Z&&(ye=!1);var Fe=!ye&&!E,Be=Object(r.a)({"aria-describedby":ye?be:null,title:Fe&&"string"===typeof Z?Z:null},te,h.props,{className:Object(c.a)(te.className,h.props.className),onTouchStart:Me,ref:Ne}),Ue={};A||(Be.onTouchStart=function(e){Me(e),clearTimeout(fe.current),clearTimeout(ue.current),clearTimeout(de.current),e.persist(),de.current=setTimeout((function(){_e()(e)}),D)},Be.onTouchEnd=function(e){h.props.onTouchEnd&&h.props.onTouchEnd(e),clearTimeout(de.current),clearTimeout(fe.current),e.persist(),fe.current=setTimeout((function(){je(e)}),V)}),E||(Be.onMouseOver=_e(),Be.onMouseLeave=Le(),F&&(Ue.onMouseOver=_e(!1),Ue.onMouseLeave=Le(!1))),k||(Be.onFocus=Pe(),Be.onBlur=Le(),F&&(Ue.onFocus=Pe(!1),Ue.onBlur=Le(!1)));var ze=s.useMemo((function(){return Object(u.a)({popperOptions:{modifiers:{arrow:{enabled:Boolean(se),element:se}}}},K)}),[se,K]);return s.createElement(s.Fragment,null,s.cloneElement(h,Be),s.createElement($,Object(r.a)({className:Object(c.a)(f.popper,F&&f.popperInteractive,a&&f.popperArrow),placement:X,anchorEl:ie,open:!!ie&&ye,id:Be["aria-describedby"],transition:!0},Ue,ze),(function(e){var t=e.placement,n=e.TransitionProps;return s.createElement(J,Object(r.a)({timeout:ne.transitions.duration.shorter},n,ee),s.createElement("div",{className:Object(c.a)(f.tooltip,f["tooltipPlacement".concat(Object(d.a)(t.split("-")[0]))],ce.current&&f.touch,a&&f.tooltipArrow)},Z,a?s.createElement("span",{className:f.arrow,ref:le}):null))})))}));t.a=Object(f.a)((function(e){return{popper:{zIndex:e.zIndex.tooltip,pointerEvents:"none"},popperInteractive:{pointerEvents:"auto"},popperArrow:{'&[x-placement*="bottom"] $arrow':{top:0,left:0,marginTop:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"0 100%"}},'&[x-placement*="top"] $arrow':{bottom:0,left:0,marginBottom:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"100% 0"}},'&[x-placement*="right"] $arrow':{left:0,marginLeft:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"100% 100%"}},'&[x-placement*="left"] $arrow':{right:0,marginRight:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"0 0"}}},tooltip:{backgroundColor:Object(h.a)(e.palette.grey[700],.9),borderRadius:e.shape.borderRadius,color:e.palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(10),lineHeight:"".concat(w(1.4),"em"),maxWidth:300,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},tooltipArrow:{position:"relative",margin:"0"},arrow:{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:Object(h.a)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}},touch:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:"".concat(w(16/14),"em"),fontWeight:e.typography.fontWeightRegular},tooltipPlacementLeft:Object(a.a)({transformOrigin:"right center",margin:"0 24px "},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementRight:Object(a.a)({transformOrigin:"left center",margin:"0 24px"},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementTop:Object(a.a)({transformOrigin:"center bottom",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"}),tooltipPlacementBottom:Object(a.a)({transformOrigin:"center top",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"})}}),{name:"MuiTooltip",flip:!1})(k)},function(e,t,n){"use strict";var r=n(4),i=n(7),o=n(0),a=(n(12),n(6)),s=n(9),l=n(182),c=n(97),u=n(16),h=n(80),f=n(25),d="undefined"===typeof window?o.useEffect:o.useLayoutEffect,p=o.forwardRef((function(e,t){var n=e.alignItems,s=void 0===n?"center":n,p=e.autoFocus,g=void 0!==p&&p,v=e.button,m=void 0!==v&&v,y=e.children,b=e.classes,x=e.className,_=e.component,w=e.ContainerComponent,S=void 0===w?"li":w,C=e.ContainerProps,k=(C=void 0===C?{}:C).className,O=Object(i.a)(C,["className"]),E=e.dense,T=void 0!==E&&E,A=e.disabled,P=void 0!==A&&A,j=e.disableGutters,L=void 0!==j&&j,M=e.divi
2der,R=void 0!==M&&M,D=e.focusVisibleClassName,I=e.selected,N=void 0!==I&&I,F=Object(i.a)(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),B=o.useContext(h.a),U={dense:T||B.dense||!1,alignItems:s},z=o.useRef(null);d((function(){g&&z.current&&z.current.focus()}),[g]);var V=o.Children.toArray(y),H=V.length&&Object(c.a)(V[V.length-1],["ListItemSecondaryAction"]),W=o.useCallback((function(e){z.current=f.findDOMNode(e)}),[]),G=Object(u.a)(W,t),q=Object(r.a)({className:Object(a.a)(b.root,x,U.dense&&b.dense,!L&&b.gutters,R&&b.divider,P&&b.disabled,m&&b.button,"center"!==s&&b.alignItemsFlexStart,H&&b.secondaryAction,N&&b.selected),disabled:P},F),X=_||"li";return m&&(q.component=_||"div",q.focusVisibleClassName=Object(a.a)(b.focusVisible,D),X=l.a),H?(X=q.component||_?X:"div","li"===S&&("li"===X?X="div":"li"===q.component&&(q.component="div")),o.createElement(h.a.Provider,{value:U},o.createElement(S,Object(r.a)({className:Object(a.a)(b.container,k),ref:G},O),o.createElement(X,q,V),V.pop()))):o.createElement(h.a.Provider,{value:U},o.createElement(X,Object(r.a)({ref:G},q),V))}));t.a=Object(s.a)((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(p)},function(e,t,n){"use strict";var r=n(4),i=n(7),o=n(0),a=(n(12),n(6)),s=n(9),l=n(80),c=o.forwardRef((function(e,t){var n=e.classes,s=e.className,c=Object(i.a)(e,["classes","className"]),u=o.useContext(l.a);return o.createElement("div",Object(r.a)({className:Object(a.a)(n.root,s,"flex-start"===u.alignItems&&n.alignItemsFlexStart),ref:t},c))}));t.a=Object(s.a)((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(c)},function(e,t,n){"use strict";var r=n(0),i=n(32);t.a=Object(i.a)(r.createElement("path",{d:"M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2h-4zM4 6h16v10H4V6z"}),"Computer")},function(e,t,n){"use strict";var r=n(4),i=n(7),o=n(0),a=(n(12),n(6)),s=n(9),l=n(53),c=n(80),u=o.forwardRef((function(e,t){var n=e.children,s=e.classes,u=e.className,h=e.disableTypography,f=void 0!==h&&h,d=e.inset,p=void 0!==d&&d,g=e.primary,v=e.primaryTypographyProps,m=e.secondary,y=e.secondaryTypographyProps,b=Object(i.a)(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),x=o.useContext(c.a).dense,_=null!=g?g:n;null==_||_.type===l.a||f||(_=o.createElement(l.a,Object(r.a)({variant:x?"body2":"body1",className:s.primary,component:"span",display:"block"},v),_));var w=m;return null==w||w.type===l.a||f||(w=o.createElement(l.a,Object(r.a)({variant:"body2",className:s.secondary,color:"textSecondary",display:"block"},y),w)),o.createElement("div",Object(r.a)({className:Object(a.a)(s.root,u,x&&s.dense,p&&s.inset,_&&w&&s.multiline),ref:t},b),_,w)}));t.a=Object(s.a)({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(u)},function(e,t,n){"use strict";var r=n(4),i=n(7),o=n(0),a=(n(12),n(6)),s=n(9),l=o.forwardRef((function(e,t){var n=e.classes,s=e.className,l=Object(i.a)(e,["classes","className"]);return o.createElement("div",Object(r.a)({className:Object(a.a)(n.root,s),ref:t},l))}));l.muiName="ListItemSecondaryAction",t.a=Object(s.a)({root:{position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"}},{name:"MuiListItemSecondaryAction"})(l)},function(e,t,n){"use strict";var r=n(0),i=n(32);t.a=Object(i.a)(r.createElement("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete")},function(e,t,n){"use strict";var r=n(4),i=n(7),o=n(0),a=(n(12),n(6)),s=n(9),l=n(15),c=o.forwardRef((function(e,t){var n=e.absolute,s=void 0!==n&&n,l=e.classes,c=e.className,u=e.component,h=void 0===u?"hr":u,f=e.flexItem,d=void 0!==f&&f,p=e.light,g=void 0!==p&&p,v=e.orientation,m=void 0===v?"horizontal":v,y=e.role,b=void 0===y?"hr"!==h?"separator":void 0:y,x=e.variant,_=void 0===x?"fullWidth":x,w=Object(i.a)(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return o.createElement(h,Object(r.a)({className:Object(a.a)(l.root,c,"fullWidth"!==_&&l[_],s&&l.absolute,d&&l.flexItem,g&&l.light,"vertical"===m&&l.vertical),role:b,ref:t},w))}));t.a=Object(s.a)((function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:Object(l.a)(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}}),{name:"MuiDivider"})(c)},function(e,t,n){"use strict";var r=n(153),i=n(100),o=(n(12),n(89));function a(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}function s(e){var t=function(t){var n=e(t);return t.css?Object(i.a)({},Object(o.a)(n,e(Object(i.a)({theme:t.theme}
2,t.css))),a(t.css,[e.filterProps])):t.sx?Object(i.a)({},Object(o.a)(n,e(Object(i.a)({theme:t.theme},t.sx))),a(t.sx,[e.filterProps])):n};return t.propTypes={},t.filterProps=["css","sx"].concat(Object(r.a)(e.filterProps)),t}var l=s;var c=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=function(e){return t.reduce((function(t,n){var r=n(e);return r?Object(o.a)(t,r):t}),{})};return r.propTypes={},r.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),r};var u=n(155);function h(e,t){return t&&"string"===typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}var f=function(e){var t=e.prop,n=e.cssProperty,r=void 0===n?e.prop:n,i=e.themeKey,o=e.transform,a=function(e){if(null==e[t])return null;var n=e[t],a=h(e.theme,i)||{};return Object(u.a)(e,n,(function(e){var t;return"function"===typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=h(a,e)||e,o&&(t=o(t))),!1===r?t:function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},r,t)}))};return a.propTypes={},a.filterProps=[t],a};function d(e){return"number"!==typeof e?e:"".concat(e,"px solid")}var p=c(f({prop:"border",themeKey:"borders",transform:d}),f({prop:"borderTop",themeKey:"borders",transform:d}),f({prop:"borderRight",themeKey:"borders",transform:d}),f({prop:"borderBottom",themeKey:"borders",transform:d}),f({prop:"borderLeft",themeKey:"borders",transform:d}),f({prop:"borderColor",themeKey:"palette"}),f({prop:"borderRadius",themeKey:"shape"})),g=c(f({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),f({prop:"display"}),f({prop:"overflow"}),f({prop:"textOverflow"}),f({prop:"visibility"}),f({prop:"whiteSpace"})),v=c(f({prop:"flexBasis"}),f({prop:"flexDirection"}),f({prop:"flexWrap"}),f({prop:"justifyContent"}),f({prop:"alignItems"}),f({prop:"alignContent"}),f({prop:"order"}),f({prop:"flex"}),f({prop:"flexGrow"}),f({prop:"flexShrink"}),f({prop:"alignSelf"}),f({prop:"justifyItems"}),f({prop:"justifySelf"})),m=c(f({prop:"gridGap"}),f({prop:"gridColumnGap"}),f({prop:"gridRowGap"}),f({prop:"gridColumn"}),f({prop:"gridRow"}),f({prop:"gridAutoFlow"}),f({prop:"gridAutoColumns"}),f({prop:"gridAutoRows"}),f({prop:"gridTemplateColumns"}),f({prop:"gridTemplateRows"}),f({prop:"gridTemplateAreas"}),f({prop:"gridArea"})),y=c(f({prop:"position"}),f({prop:"zIndex",themeKey:"zIndex"}),f({prop:"top"}),f({prop:"right"}),f({prop:"bottom"}),f({prop:"left"})),b=c(f({prop:"color",themeKey:"palette"}),f({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"})),x=f({prop:"boxShadow",themeKey:"shadows"});function _(e){return e<=1?"".concat(100*e,"%"):e}var w=f({prop:"width",transform:_}),S=f({prop:"maxWidth",transform:_}),C=f({prop:"minWidth",transform:_}),k=f({prop:"height",transform:_}),O=f({prop:"maxHeight",transform:_}),E=f({prop:"minHeight",transform:_}),T=(f({prop:"size",cssProperty:"width",transform:_}),f({prop:"size",cssProperty:"height",transform:_}),c(w,S,C,k,O,E,f({prop:"boxSizing"}))),A=n(447),P=c(f({prop:"fontFamily",themeKey:"typography"}),f({prop:"fontSize",themeKey:"typography"}),f({prop:"fontStyle",themeKey:"typography"}),f({prop:"fontWeight",themeKey:"typography"}),f({prop:"letterSpacing"}),f({prop:"lineHeight"}),f({prop:"textAlign"})),j=n(157),L=l(c(p,g,v,m,y,b,x,T,A.b,P)),M=Object(j.a)("div")(L,{name:"MuiBox"});t.a=M},function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}n.d(t,"a",(function(){return h}));var i=n(155),o=n(89);var a={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){if(e.length>2){if(!l[e])return[e];e=l[e]}var t=r(e.split(""),2),n=t[0],i=t[1],o=a[n],c=s[i]||"";return Array.isArray(c)?c.map((function(e){return o+e})):[o+c]})),u=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function h(e){var t=e.spacing||8;return"number"===typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"===typeof t?t:function(){}}function f(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"===typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}(t,n),e}),{})}}function d(e){var t=h(e.theme);return Object.keys(e).map((function(n){if(-1===u.indexOf(n))return null;var r=f(c(n),t),o=e[n];return Object(i.a)(e,o,r)})).reduce(o.a,{})}d.propTypes={},d.filterProps=u;t.b=d},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(4),i=n(248),o=n(37);function a(e){return String(parseFloat(e)).length===String(e).length}function s(e){return parseFloat(e)}function l(e){return function(t,n){var r=String(t).match(/[\d.\-+]*\s*(.*)/)[1]||"";if(r===n)return t;var i=s(t);if("px"!==r)if("em"===r)i=s(t)*s(e);else if("rem"===r)return i=s(t)*s(e),t;var o=i;if("px"!==n)if("em"===n)o=i/s(e);else{if("rem"!==n)return t;o=i/s(e)}return parseFloat(o.toFixed(5))+n}}function c(e){var t=e.size,n=e.grid,r=t-t%n,i=r+n;return t-r<i-t?r:i}function u(e){var t=e.lineHeight;return e.pixels/(t*e.htmlFontSize)}function h(e){var t=e.cssProperty,n=e.min,r=e.max,i=e.unit,a=void 0===i?"rem":i,s=e.breakpoints,l=void 0===s?[600,960,1280]:s,c=e.transform,u=void 0===c?null:c,h=Object(o.a)({},t,"".concat(n).concat(a)),f=(r-n)/l[l.length-1];return l.forEach((function(e){var r=n+f*e;null!==u&&(r=u(r)),h["@media (min-width:".concat(e,"px)")]=Object(o.a)({},t,"".concat(Math.round(1e4*r)/1e4).concat(a))})),h}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.breakpoints,o=void 0===n?["sm","md","lg"]:n,s=t.disableAlign,f=void 0!==s&&s,d=t.factor,p=void 0===d?2:d,g=t.variants,v=void 0===g?["h1","h2","h3","h4","h5","h6","
2subtitle1","subtitle2","body1","body2","caption","button","overline"]:g,m=Object(r.a)({},e);m.typography=Object(r.a)({},m.typography);var y=m.typography,b=l(y.htmlFontSize),x=o.map((function(e){return m.breakpoints.values[e]}));return v.forEach((function(e){var t=y[e],n=parseFloat(b(t.fontSize,"rem"));if(!(n<=1)){var o=n,s=1+(o-1)/p,l=t.lineHeight;if(!a(l)&&!f)throw new Error(Object(i.a)(6));a(l)||(l=parseFloat(b(l,"rem"))/parseFloat(n));var d=null;f||(d=function(e){return c({size:e,grid:u({pixels:4,lineHeight:l,htmlFontSize:y.htmlFontSize})})}),y[e]=Object(r.a)({},t,h({cssProperty:"fontSize",min:s,max:o,unit:"rem",breakpoints:x,transform:d}))}})),m}},function(e,t,n){"use strict";var r=n(118),i=n(49),o=n(7),a=n(4),s=n(0),l=(n(12),n(6)),c=n(9),u=n(41),h=n(15),f=n(94),d=n(28),p=n(33),g=n(16),v=n(14),m=n(76);var y=Object(c.a)((function(e){return{thumb:{"&$open":{"& $offset":{transform:"scale(1) translateY(-10px)"}}},open:{},offset:Object(a.a)({zIndex:1},e.typography.body2,{fontSize:e.typography.pxToRem(12),lineHeight:1.2,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),top:-34,transformOrigin:"bottom center",transform:"scale(0)",position:"absolute"}),circle:{display:"flex",alignItems:"center",justifyContent:"center",width:32,height:32,borderRadius:"50% 50% 50% 0",backgroundColor:"currentColor",transform:"rotate(-45deg)"},label:{color:e.palette.primary.contrastText,transform:"rotate(45deg)"}}}),{name:"PrivateValueLabel"})((function(e){var t=e.children,n=e.classes,r=e.className,i=e.open,o=e.value,a=e.valueLabelDisplay;return"off"===a?t:s.cloneElement(t,{className:Object(l.a)(t.props.className,(i||"on"===a)&&n.open,n.thumb)},s.createElement("span",{className:Object(l.a)(n.offset,r)},s.createElement("span",{className:n.circle},s.createElement("span",{className:n.label},o))))}));function b(e,t){return e-t}function x(e,t,n){return Math.min(Math.max(t,e),n)}function _(e,t){return e.reduce((function(e,n,r){var i=Math.abs(t-n);return null===e||i<e.distance||i===e.distance?{distance:i,index:r}:e}),null).index}function w(e,t){if(void 0!==t.current&&e.changedTouches){for(var n=0;n<e.changedTouches.length;n+=1){var r=e.changedTouches[n];if(r.identifier===t.current)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function S(e,t,n){return 100*(e-t)/(n-t)}function C(e,t,n){var r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(function(e){if(Math.abs(e)<1){var t=e.toExponential().split("e-"),n=t[0].split(".")[1];return(n?n.length:0)+parseInt(t[1],10)}var r=e.toString().split(".")[1];return r?r.length:0}(t)))}function k(e){var t=e.values,n=e.source,r=e.newValue,i=e.index;if(t[i]===r)return n;var o=t.slice();return o[i]=r,o}function O(e){var t=e.sliderRef,n=e.activeIndex,r=e.setActive;t.current.contains(document.activeElement)&&Number(document.activeElement.getAttribute("data-index"))===n||t.current.querySelector('[role="slider"][data-index="'.concat(n,'"]')).focus(),r&&r(n)}var E={horizontal:{offset:function(e){return{left:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},"horizontal-reverse":{offset:function(e){return{right:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},vertical:{offset:function(e){return{bottom:"".concat(e,"%")}},leap:function(e){return{height:"".concat(e,"%")}}}},T=function(e){return e},A=s.forwardRef((function(e,t){var n=e["aria-label"],c=e["aria-labelledby"],h=e["aria-valuetext"],A=e.classes,P=e.className,j=e.color,L=void 0===j?"primary":j,M=e.component,R=void 0===M?"span":M,D=e.defaultValue,I=e.disabled,N=void 0!==I&&I,F=e.getAriaLabel,B=e.getAr
2iaValueText,U=e.marks,z=void 0!==U&&U,V=e.max,H=void 0===V?100:V,W=e.min,G=void 0===W?0:W,q=e.name,X=e.onChange,Y=e.onChangeCommitted,$=e.onMouseDown,K=e.orientation,Z=void 0===K?"horizontal":K,Q=e.scale,J=void 0===Q?T:Q,ee=e.step,te=void 0===ee?1:ee,ne=e.ThumbComponent,re=void 0===ne?"span":ne,ie=e.track,oe=void 0===ie?"normal":ie,ae=e.value,se=e.ValueLabelComponent,le=void 0===se?y:se,ce=e.valueLabelDisplay,ue=void 0===ce?"off":ce,he=e.valueLabelFormat,fe=void 0===he?T:he,de=Object(o.a)(e,["aria-label","aria-labelledby","aria-valuetext","classes","className","color","component","defaultValue","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","onMouseDown","orientation","scale","step","ThumbComponent","track","value","ValueLabelComponent","valueLabelDisplay","valueLabelFormat"]),pe=Object(u.a)(),ge=s.useRef(),ve=s.useState(-1),me=ve[0],ye=ve[1],be=s.useState(-1),xe=be[0],_e=be[1],we=Object(m.a)({controlled:ae,default:D,name:"Slider"}),Se=Object(i.a)(we,2),Ce=Se[0],ke=Se[1],Oe=Array.isArray(Ce),Ee=Oe?Ce.slice().sort(b):[Ce];Ee=Ee.map((function(e){return x(e,G,H)}));var Te=!0===z&&null!==te?Object(r.a)(Array(Math.floor((H-G)/te)+1)).map((function(e,t){return{value:G+te*t}})):z||[],Ae=Object(f.a)(),Pe=Ae.isFocusVisible,je=Ae.onBlurVisible,Le=Ae.ref,Me=s.useState(-1),Re=Me[0],De=Me[1],Ie=s.useRef(),Ne=Object(g.a)(Le,Ie),Fe=Object(g.a)(t,Ne),Be=Object(p.a)((function(e){var t=Number(e.currentTarget.getAttribute("data-index"));Pe(e)&&De(t),_e(t)})),Ue=Object(p.a)((function(){-1!==Re&&(De(-1),je()),_e(-1)})),ze=Object(p.a)((function(e){var t=Number(e.currentTarget.getAttribute("data-index"));_e(t)})),Ve=Object(p.a)((function(){_e(-1)})),He="rtl"===pe.direction,We=Object(p.a)((function(e){var t,n=Number(e.currentTarget.getAttribute("data-index")),r=Ee[n],i=(H-G)/10,o=Te.map((function(e){return e.value})),a=o.indexOf(r),s=He?"ArrowLeft":"ArrowRight",l=He?"ArrowRight":"ArrowLeft";switch(e.key){case"Home":t=G;break;case"End":t=H;break;case"PageUp":te&&(t=r+i);break;case"PageDown":te&&(t=r-i);break;case s:case"ArrowUp":t=te?r+te:o[a+1]||o[o.length-1];break;case l:case"ArrowDown":t=te?r-te:o[a-1]||o[0];break;default:return}if(e.preventDefault(),te&&(t=C(t,te,G)),t=x(t,G,H),Oe){var c=t;t=k({values:Ee,source:Ce,newValue:t,index:n}).sort(b),O({sliderRef:Ie,activeIndex:t.indexOf(c)})}ke(t),De(n),X&&X(e,t),Y&&Y(e,t)})),Ge=s.useRef(),qe=Z;He&&"vertical"!==Z&&(qe+="-reverse");var Xe=function(e){var t,n,r=e.finger,i=e.move,o=void 0!==i&&i,a=e.values,s=e.source,l=Ie.current.getBoundingClientRect(),c=l.width,u=l.height,h=l.bottom,f=l.left;if(t=0===qe.indexOf("vertical")?(h-r.y)/u:(r.x-f)/c,-1!==qe.indexOf("-reverse")&&(t=1-t),n=function(e,t,n){return(n-t)*e+t}(t,G,H),te)n=C(n,te,G);else{var d=Te.map((function(e){return e.value}));n=d[_(d,n)]}n=x(n,G,H);var p=0;if(Oe){var g=n;p=(n=k({values:a,source:s,newValue:n,index:p=o?Ge.current:_(a,n)}).sort(b)).indexOf(g),Ge.current=p}return{newValue:n,activeIndex:p}},Ye=Object(p.a)((function(e){var t=w(e,ge);if(t){var n=Xe({finger:t,move:!0,values:Ee,source:Ce}),r=n.newValue,i=n.activeIndex;O({sliderRef:Ie,activeIndex:i,setActive:ye}),ke(r),X&&X(e,r)}})),$e=Object(p.a)((function(e){var t=w(e,ge);if(t){var n=Xe({finger:t,values:Ee,source:Ce}).newValue;ye(-1),"touchend"===e.type&&_e(-1),Y&&Y(e,n),ge.current=void 0;var r=Object(d.a)(Ie.current);r.removeEventListener("mousemove",Ye),r.removeEventListener("mouseup",$e),r.removeEventListener("touchmove",Ye),r.removeEventListener("touchend",$e)}})),Ke=Object(p.a)((function(e){e.preventDefault();var t=e.changedTouches[0];null!=t&&(ge.current=t.identifier);var n=w(e,ge),r=Xe({finger:n,values:Ee,source:Ce}),i=r.newValue,o=r.activeIndex;O({sliderRef:Ie,activeIndex:o,setActive:ye}),ke(i),X&&X(e,i);var a=Object(d.a)(Ie.current);a.addEventListener("touchmove",Ye),a.addEventListener("touchend",$e)}));s.useEffect((function(){var e=Ie.current;e.addEventListener("touchstart",Ke);var t=Object(d.a)(e);return function(){e.removeEventListener("touchstart",Ke),t.removeEventListener("mousemove",Ye),t.removeEventListener("mouseup",$e),t.removeEventListener("touchmove",Ye),t.removeEventListener("touchend",$e)}}),[$e,Ye,Ke]);var Ze=Object(p.a)((function(e){$&&$(e),e.preventDefault();var t=w(e,ge),n=Xe({finger:t,values:Ee,source:Ce}),r=n.newValue,i=n.activeIndex;O({sliderRef:Ie,activeIndex:i,setActive:ye}),ke(r),X&&X(e,r);var o=Object(d.a)(Ie.current);o.addEventListener("mousemove",Ye),o.addEventListener("mouseup",$e)})),Qe=S(Oe?Ee[0]:G,G,H),Je=S(Ee[Ee.length-1],G,H)-Qe,et=Object(a.a)({},E[qe].offset(Qe),E[qe].leap(Je));return s.createElement(R,Object(a.a)({ref:Fe,className:Object(l.a)(A.root,A["color".concat(Object(v.a)(L))],P,N&&A.disabled,Te.length>0&&Te.some((function(e){return e.label}))&&A.marked,!1===oe&&A.trackFalse,"vertical"===Z&&A.vertical,"inverted"===oe&&A.trackInverted),onMouseDown:Ze},de),s.createElement("span",{className:A.rail}),s.createElement("span",{className:A.track,style:et}),s.createElement("input",{value:Ee.join(","),name:q,type:"hidden"}),Te.map((function(e,t){var n,r=S(e.value,G,H),i=E[qe].offset(r);return n=!1===oe?-1!==Ee.indexOf(e.value):"normal"===oe&&(Oe?e.value>=Ee[0]&&e.value<=Ee[Ee.length-1]:e.value<=Ee[0])||"inverted"===oe&&(Oe?e.value<=Ee[0]||e.value>=Ee[Ee.length-1]:e.value>=Ee[0]),s.createElement(s.Fragment,{key:e.value},s.createElement("span",{style:i,"data-index":t,className:Object(l.a)(A.mark,n&&A.markActive)}),null!=e.label?s.createElement("span",{"aria-hidden":!0,"data-index":t,style:i,className:Object(l.a)(A.markLabel,n&&A.markLabelActive)},e.label):null)})),Ee.map((function(e,t){var r=S(e,G,H),i=E[qe].offset(r);return s.createElement(le,{key:t,valueLabelFormat:fe,valueLabelDisplay:ue,className:A.valueLabel,value:"function"===typeof fe?fe(J(e),t):fe,index:t,open:xe===t||me===t||"on"===ue,disabled:N},s.createElement(re,{className:Object(l.a)(A.thumb,A["thumbColor".concat(Object(v.a)(L))],me===t&&A.active,N&&A.disabled,Re===t&&A.focusVisible),tabIndex:N?null:0,role:"slider",style:i,"data-index":t,"aria-label":F?F(t):n,"aria-labelledby":c,"aria-orientation":Z,"aria-valuemax":J(H),"aria-valuemin":J(G),"aria-valuenow":J(e),"aria-valuetext":B?B(J(e),t):h,onKeyDown:We,onFocus:Be,onBlur:Ue,onMouseOver:ze,onMouseLeave:Ve}))})))}));t.a=Object(c.a)((function(e){return{root:{height:2,width:"100%",boxSizing:"content-box",padding:"13px 0",display:"inline-block",position:"relative",curs
2or:"pointer",touchAction:"none",color:e.palette.primary.main,WebkitTapHighlightColor:"transparent","&$disabled":{pointerEvents:"none",cursor:"default",color:e.palette.grey[400]},"&$vertical":{width:2,height:"100%",padding:"0 13px"},"@media (pointer: coarse)":{padding:"20px 0","&$vertical":{padding:"0 20px"}},"@media print":{colorAdjust:"exact"}},colorPrimary:{},colorSecondary:{color:e.palette.secondary.main},marked:{marginBottom:20,"&$vertical":{marginBottom:"auto",marginRight:20}},vertical:{},disabled:{},rail:{display:"block",position:"absolute",width:"100%",height:2,borderRadius:1,backgroundColor:"currentColor",opacity:.38,"$vertical &":{height:"100%",width:2}},track:{display:"block",position:"absolute",height:2,borderRadius:1,backgroundColor:"currentColor","$vertical &":{width:2}},trackFalse:{"& $track":{display:"none"}},trackInverted:{"& $track":{backgroundColor:"light"===e.palette.type?Object(h.e)(e.palette.primary.main,.62):Object(h.b)(e.palette.primary.main,.5)},"& $rail":{opacity:1}},thumb:{position:"absolute",width:12,height:12,marginLeft:-6,marginTop:-5,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow"],{duration:e.transitions.duration.shortest}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",left:-15,top:-15,right:-15,bottom:-15},"&$focusVisible,&:hover":{boxShadow:"0px 0px 0px 8px ".concat(Object(h.a)(e.palette.primary.main,.16)),"@media (hover: none)":{boxShadow:"none"}},"&$active":{boxShadow:"0px 0px 0px 14px ".concat(Object(h.a)(e.palette.primary.main,.16))},"&$disabled":{width:8,height:8,marginLeft:-4,marginTop:-3,"&:hover":{boxShadow:"none"}},"$vertical &":{marginLeft:-5,marginBottom:-6},"$vertical &$disabled":{marginLeft:-3,marginBottom:-4}},thumbColorPrimary:{},thumbColorSecondary:{"&$focusVisible,&:hover":{boxShadow:"0px 0px 0px 8px ".concat(Object(h.a)(e.palette.secondary.main,.16))},"&$active":{boxShadow:"0px 0px 0px 14px ".concat(Object(h.a)(e.palette.secondary.main,.16))}},active:{},focusVisible:{},valueLabel:{left:"calc(-50% - 4px)"},mark:{position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},markActive:{backgroundColor:e.palette.background.paper,opacity:.8},markLabel:Object(a.a)({},e.typography.body2,{color:e.palette.text.secondary,position:"absolute",top:26,transform:"translateX(-50%)",whiteSpace:"nowrap","$vertical &":{top:"auto",left:26,transform:"translateY(50%)"},"@media (pointer: coarse)":{top:40,"$vertical &":{left:31}}}),markLabelActive:{color:e.palette.text.primary}}}),{name:"MuiSlider"})(A)},function(e,t,n){"use strict";var r=n(4),i=n(7),o=n(0),a=(n(12),n(6)),s=n(32),l=Object(s.a)(o.createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel"),c=n(9),u=n(15),h=n(16),f=n(14),d=n(182);function p(e){return"Backspace"===e.key||"Delete"===e.key}var g=o.forwardRef((function(e,t){var n=e.avatar,s=e.classes,c=e.className,u=e.clickable,g=e.color,v=void 0===g?"default":g,m=e.component,y=e.deleteIcon,b=e.disabled,x=void 0!==b&&b,_=e.icon,w=e.label,S=e.onClick,C=e.onDelete,k=e.onKeyDown,O=e.onKeyUp,E=e.size,T=void 0===E?"medium":E,A=e.variant,P=void 0===A?"default":A,j=Object(i.a)(e,["avatar","classes","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"]),L=o.useRef(null),M=Object(h.a)(L,t),R=function(e){e.stopPropagation(),C&&C(e)},D=!(!1===u||!S)||u,I="small"===T,N=m||(D?d.a:"div"),F=N===d.a?{component:"div"}:{},B=null;if(C){var U=Object(a.a)("default"!==v&&("default"===P?s["deleteIconColor".concat(Object(f.a)(v))]:s["deleteIconOutlinedColor".concat(Object(f.a)(v))]),I&&s.deleteIconSmall);B=y&&o.isValidElement(y)?o.cloneElement(y,{className:Object(a.a)(y.props.className,s.deleteIcon,U),onClick:R}):o.createElement(l,{className:Object(a.a)(s.deleteIcon,U),onClick:R})}var z=null;n&&o.isValidElement(n)&&(z=o.cloneElement(n,{className:Object(a.a)(s.avatar,n.props.className,I&&s.avatarSmall,"default"!==v&&s["avatarColor".concat(Object(f.a)(v))])}));var V=null;return _&&o.isValidElement(_)&&(V=o.cloneElement(_,{className:Object(a.a)(s.icon,_.props.className,I&&s.iconSmall,"default"!==v&&s["iconColor".concat(Object(f.a)(v))])})),o.createElement(N,Object(r.a)({role:D||C?"button":void 0,className:Object(a.a)(s.root,c,"default"!==v&&[s["color".concat(Object(f.a)(v))],D&&s["clickableColor".concat(Object(f.a)(v))],C&&s["deletableColor".concat(Object(f.a)(v))]],"default"!==P&&[s.outlined,{primary:s.outlinedPrimary,secondary:s.outlinedSecondary}[v]],x&&s.disabled,I&&s.sizeSmall,D&&s.clickable,C&&s.deletable),"aria-disabled":!!x||void 0,tabIndex:D||C?0:void 0,onClick:S,onKeyDown:function(e){e.currentTarget===e.target&&p(e)&&e.preventDefault(),k&&k(e)},onKeyUp:function(e){e.currentTarget===e.target&&(C&&p(e)?C(e):"Escape"===e.key&&L.current&&L.current.blur()),O&&O(e)},ref:M},F,j),z||V,o.createElement("span",{className:Object(a.a)(s.label,I&&s.labelSmall)},w),B)}));t.a=Object(c.a)((function(e){var t="light"===e.palette.type?e.palette.grey[300]:e.palette.grey[700],n=Object(u.a)(e.palette.text.primary,.26);return{root:{fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:e.palette.getContrastText(t),backgroundColor:t,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:"none",padding:0,verticalAlign:"middle",boxSizing:"border-box","&$disabled":{opacity:.5,pointerEvents:"none"},"& $avatar":{marginLeft:5,marginRight:-6,width:24,height:24,color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],fontSize:e.typography.pxToRem(12)},"& $avatarColorPrimary":{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.dark}
2,"& $avatarColorSecondary":{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.dark},"& $avatarSmall":{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)}},sizeSmall:{height:24},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},disabled:{},clickable:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover, &:focus":{backgroundColor:Object(u.c)(t,.08)},"&:active":{boxShadow:e.shadows[1]}},clickableColorPrimary:{"&:hover, &:focus":{backgroundColor:Object(u.c)(e.palette.primary.main,.08)}},clickableColorSecondary:{"&:hover, &:focus":{backgroundColor:Object(u.c)(e.palette.secondary.main,.08)}},deletable:{"&:focus":{backgroundColor:Object(u.c)(t,.08)}},deletableColorPrimary:{"&:focus":{backgroundColor:Object(u.c)(e.palette.primary.main,.2)}},deletableColorSecondary:{"&:focus":{backgroundColor:Object(u.c)(e.palette.secondary.main,.2)}},outlined:{backgroundColor:"transparent",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:Object(u.a)(e.palette.text.primary,e.palette.action.hoverOpacity)},"& $avatar":{marginLeft:4},"& $avatarSmall":{marginLeft:2},"& $icon":{marginLeft:4},"& $iconSmall":{marginLeft:2},"& $deleteIcon":{marginRight:5},"& $deleteIconSmall":{marginRight:3}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(e.palette.primary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:Object(u.a)(e.palette.primary.main,e.palette.action.hoverOpacity)}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(e.palette.secondary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:Object(u.a)(e.palette.secondary.main,e.palette.action.hoverOpacity)}},avatar:{},avatarSmall:{},avatarColorPrimary:{},avatarColorSecondary:{},icon:{color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],marginLeft:5,marginRight:-6},iconSmall:{width:18,height:18,marginLeft:4,marginRight:-4},iconColorPrimary:{color:"inherit"},iconColorSecondary:{color:"inherit"},label:{overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},labelSmall:{paddingLeft:8,paddingRight:8},deleteIcon:{WebkitTapHighlightColor:"transparent",color:n,height:22,width:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:Object(u.a)(n,.4)}},deleteIconSmall:{height:16,width:16,marginRight:4,marginLeft:-4},deleteIconColorPrimary:{color:Object(u.a)(e.palette.primary.contrastText,.7),"&:hover, &:active":{color:e.palette.primary.contrastText}},deleteIconColorSecondary:{color:Object(u.a)(e.palette.secondary.contrastText,.7),"&:hover, &:active":{color:e.palette.secondary.contrastText}},deleteIconOutlinedColorPrimary:{color:Object(u.a)(e.palette.primary.main,.7),"&:hover, &:active":{color:e.palette.primary.main}},deleteIconOutlinedColorSecondary:{color:Object(u.a)(e.palette.secondary.main,.7),"&:hover, &:active":{color:e.palette.secondary.main}}}}),{name:"MuiChip"})(g)}]]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.