PageSourceSearch

https://user.productioncrate.com/static/js/header.af4f1e9bde06b30cc677.js

js productioncrate.com collected 2026-10-02 02:13:47 UTC 847,800 bytes, 3 lines download raw bytes

1/*! For license information please see header.af4f1e9bde06b30cc677.js.LICENSE.txt */
2(()=>{var __webpack_modules__={9274(e){e.exports=function(){var e,t=["navigation","request","process","log","user","state","error","manual"],n=function(e,t,n){for(var r=n,i=0,a=e.length;i<a;i++)r=t(r,e[i],i,e);return r},r=function(e,t){return n(e,function(e,n,r,i){return t(n,r,i)?e.concat(n):e},[])},i=function(e,t){return n(e,function(e,n,r,i){return!0===e||n===t},!1)},a=function(e){return"[object Array]"===Object.prototype.toString.call(e)},s=!{toString:null}.propertyIsEnumerable("toString"),o=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(e){var t,n=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.push(t);if(!s)return n;for(var r=0,i=o.length;r<i;r++)Object.prototype.hasOwnProperty.call(e,o[r])&&n.push(o[r]);return n},c=function(e,t){return void 0===e&&(e=1),void 0===t&&(t=1/0),function(n){return"number"===typeof n&&parseInt(""+n,10)===n&&n>=e&&n<=t}},u=function(e){return"function"===typeof e||a(e)&&r(e,function(e){return"function"===typeof e}).length===e.length},h=function(e){return"string"===typeof e&&!!e.length},d={},p=function(){return{unhandledExceptions:!0,unhandledRejections:!0}};d.schema={apiKey:{defaultValue:function(){return null},message:"is required",validate:h},appVersion:{defaultValue:function(){},message:"should be a string",validate:function(e){return void 0===e||h(e)}},appType:{defaultValue:function(){},message:"should be a string",validate:function(e){return void 0===e||h(e)}},autoDetectErrors:{defaultValue:function(){return!0},message:"should be true|false",validate:function(e){return!0===e||!1===e}},enabledErrorTypes:{defaultValue:function(){return p()},message:"should be an object containing the flags { unhandledExceptions:true|false, unhandledRejections:true|false }",allowPartialObject:!0,validate:function(e){if("object"!==typeof e||!e)return!1;var t=l(e),n=l(p());return!(r(t,function(e){return i(n,e)}).length<t.length)&&!(r(l(e),function(t){return"boolean"!==typeof e[t]}).length>0)}},onError:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:u},onSession:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:u},onBreadcrumb:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:u},endpoints:{defaultValue:function(){return{notify:"https://notify.bugsnag.com",sessions:"https://sessions.bugsnag.com"}},message:"should be an object containing endpoint URLs { notify, sessions }",validate:function(e){return e&&"object"===typeof e&&h(e.notify)&&h(e.sessions)&&0===r(l(e),function(e){return!i(["notify","sessions"],e)}).length}},autoTrackSessions:{defaultValue:function(e){return!0},message:"should be true|false",validate:function(e){return!0===e||!1===e}},enabledReleaseStages:{defaultValue:function(){return null},message:"should be an array of strings",validate:function(e){return null===e||a(e)&&r(e,function(e){return"string"===typeof e}).length===e.length}},releaseStage:{defaultValue:function(){return"production"},message:"should be a string",validate:function(e){return"string"===typeof e&&e.length}},maxBreadcrumbs:{defaultValue:function(){return 25},message:"should be a number \u2264100",validate:function(e){return c(0,100)(e)}},enabledBreadcrumbTypes:{defaultValue:function(){return t},message:"should be null or a list of available breadcrumb types ("+t.join(",")+")",validate:function(e){return null===e||a(e)&&n(e,function(e,n){return!1===e?e:i(t,n)},!0)}},context:{defaultValue:function(){},message:"should be a string",validate:function(e){return void 0===e||"string"===typeof e}},user:{defaultValue:function(){return{}},message:"should be an object with { id, email, name } properties",validate:function(e){return null===e||e&&n(l(e),function(e,t){return e&&i(["id","email","name"],t)},!0)}},metadata:{defaultValue:function(){return{}},message:"should be an object",validate:function(e){return"object"===typeof e&&null!==e}},logger:{defaultValue:function(){},message:"should be null or an object with methods { debug, info, warn, error }",validate:function(e){return!e||e&&n(["debug","info","warn","error"],function(t,n){return t&&"function"===typeof e[n]},!0)}},redactedKeys:{defaultValue:function(){return["password"]}
2,message:"should be an array of strings|regexes",validate:function(e){return a(e)&&e.length===r(e,function(e){return"string"===typeof e||e&&"function"===typeof e.test}).length}},plugins:{defaultValue:function(){return[]},message:"should be an array of plugin objects",validate:function(e){return a(e)&&e.length===r(e,function(e){return e&&"object"===typeof e&&"function"===typeof e.load}).length}},featureFlags:{defaultValue:function(){return[]},message:'should be an array of objects that have a "name" property',validate:function(e){return a(e)&&e.length===r(e,function(e){return e&&"object"===typeof e&&"string"===typeof e.name}).length}}};var f=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},m=function(e,t){return n(e,function(e,n,r,i){return e.concat(t(n,r,i))},[])};function g(){return g=Object.assign?Object.assign.bind():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},g.apply(this,arguments)}var v=d.schema,y={releaseStage:f({},v.releaseStage,{defaultValue:function(){return/^localhost(:\d+)?$/.test(window.location.host)?"development":"production"}}),appType:g({}
2,v.appType,{defaultValue:function(){return"browser"}}),logger:f({},v.logger,{defaultValue:function(){return"undefined"!==typeof console&&"function"===typeof console.debug?b():void 0}})},b=function(){var e={},t=console.log;return m(["debug","info","warn","error"],function(n){var r=console[n];e[n]="function"===typeof r?r.bind(console,"[bugsnag]"):t.bind(console,"[bugsnag]")}),e},_=function(){function e(e,t,n,r){void 0===r&&(r=new Date),this.type=n,this.message=e,this.metadata=t,this.timestamp=r}return e.prototype.toJSON=function(){return{type:this.type,name:this.message,timestamp:this.timestamp,metaData:this.metadata}},e}(),w={};!function(t,n){"use strict";"function"===typeof e&&e.amd?e("stackframe",[],n):"object"===typeof w?w=n():t.StackFrame=n()}(this,function(){"use strict";function e(e){return!isNaN(parseFloat(e))&&isFinite(e)}function t(e){return e.charAt(0).toUpperCase()+e.substring(1)}function n(e){return function(){return this[e]}}var r=["isConstructor","isEval","isNative","isToplevel"],i=["columnNumber","lineNumber"],a=["fileName","functionName","source"],s=["args"],o=r.concat(i,a,s);function l(e){if(e instanceof Object)for(var n=0;n<o.length;n++)e.hasOwnProperty(o[n])&&void 0!==e[o[n]]&&this["set"+t(o[n])](e[o[n]])}l.prototype={getArgs:function(){return this.args},setArgs:function(e){if("[object Array]"!==Object.prototype.toString.call(e))throw new TypeError("Args must be an Array");this.args=e},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(e){if(e instanceof l)this.evalOrigin=e;else{if(!(e instanceof Object))throw new TypeError("Eval Origin must be an Object or StackFrame");this.evalOrigin=new l(e)}},toString:function(){return(this.getFunctionName()||"{anonymous}")+"("+(this.getArgs()||[]).join(",")+")"+(this.getFileName()?"@"+this.getFileName():"")+(e(this.getLineNumber())?":"+this.getLineNumber():"")+(e(this.getColumnNumber())?":"+this.getColumnNumber():"")}};for(var c=0;c<r.length;c++)l.prototype["get"+t(r[c])]=n(r[c]),l.prototype["set"+t(r[c])]=function(e){return function(t){this[e]=Boolean(t)}}(r[c]);for(var u=0;u<i.length;u++)l.prototype["get"+t(i[u])]=n(i[u]),l.prototype["set"+t(i[u])]=function(t){return function(n){if(!e(n))throw new TypeError(t+" must be a Number");this[t]=Number(n)}}(i[u]);for(var h=0;h<a.length;h++)l.prototype["get"+t(a[h])]=n(a[h]),l.prototype["set"+t(a[h])]=function(e){return function(t){this[e]=String(t)}}(a[h]);return l});var S={};!function(t,n){"use strict";"function"===typeof e&&e.amd?e("error-stack-parser",["stackframe"],n):"object"===typeof S?S=n(w):t.ErrorStackParser=n(t.StackFrame)}(this,function(e){"use strict";var t=/(^|@)\S+\:\d+/,n=/^\s*at .*(\S+\:\d+|\(native\))/m,r=/^(eval@)?(\[native code\])?$/;return{parse:function(e){if("undefined"!==typeof e.stacktrace||"undefined"!==typeof e["opera#sourceloc"])return this.parseOpera(e);if(e.stack&&e.stack.match(n))return this.parseV8OrIE(e);if(e.stack)return this.parseFFOrSafari(e);throw new Error("Cannot parse given Error object")},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?:\:(\d+))?(?:\:(\d+))?$/.exec(e.replace(/[\(\)]/g,""));return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(t){return t.stack.split("\n").filter(function(e){return!!e.match(n)},this).map(function(t){t.indexOf("(eval ")>-1&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^\()]*)|(\)\,.*$)/g,""));var n=t.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=n.match(/ (\((.+):(\d+):(\d+)\)$)/),i=(n=r?n.replace(r[0],""):n).split(/\s+/).slice(1),a=this.extractLocation(r?r[1]:i.pop()),s=i.join(" ")||void 0,o=["eval","<anonymous>"].indexOf(a[0])>-1?void 0:a[0];return new e({functionName:s,fileName:o,lineNumber:a[1],columnNumber:a[2],source:t})},this)},parseFFOrSafari:function(t){return t.stack.split("\n").filter(function(e){return!e.match(r)},this).map(function(t){if(t.indexOf(" > eval")>-1&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval\:\d+\:\d+/g,":$1")),-1===t.indexOf("@")&&-1===t.indexOf(":"))return new e({functionName:t});var n=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=t.match(n),i=r&&r[1]?r[1]:void 0,a=this.extractLocation(t.replace(n,""));return new e({functionName:i,fileName:a[0],lineNumber:a[1],columnNumber:a[2],source:t})},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)/i,r=t.message.split("\n"),i=[],a=2,s=r.length;a<s;a+=2){var o=n.exec(r[a]);o&&i.push(new e({fileName:o[2],lineNumber:o[1],source:r[a]}))}return i},parseOpera10:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=t.stacktrace.split("\n"),i=[],a=0,s=r.length;a<s;a+=2){var o=n.exec(r[a]);o&&i.push(new e({functionName:o[3]||void 0,fileName:o[2],lineNumber:o[1],source:r[a]}))}return i},parseOpera11:function(n){return n.stack.split("\n").filter(function(e){return!!e.match(t)&&!e.match(/^Error created at/)},this).map(function(t){var n,r=t.split("@"),i=this.extractLocation(r.pop()),a=r.shift()||"",s=a.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^\)]*\)/g,"")||void 0;a.match(/\(([^\)]*)\)/)&&(n=a.replace(/^[^\(]+\(([^\)]*)\)$/,"$1"));var o=void 0===n||"[arguments not available]"===n?void 0:n.split(",");return new e({functionName:s,args:o,fileName:i[0],lineNumber:i[1],columnNumber:i[2],source:t})},this)}}});var E=S,k=function(e,t,n,r){var i=r&&r.redactedKeys?r.redactedKeys:[],a=r&&r.redactedPaths?r.redactedPaths:[];return JSON.stringify(N(e,i,a),t,n)},x=20,C=25e3,P=8,A="...";function T(e){return e instanceof Error||/^\[object (Error|(Dom)?Exception)\]$/.test(Object.prototype.toString.call(e))}function R(e){return"[Throws: "+(e?e.message:"?")+"]"}function I(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return!0;return!1}function D(e,t){for(var n=0,r=e.length;n<r;n++)if(0===t.indexOf(e[n]))return!0;return!1}function M(e,t){for(var n=0,r=e.length;n<r;n++){if("string"===typeof e[n]&&e[n].toLowerCase()===t.toLowerCase())return!0;
2if(e[n]&&"function"===typeof e[n].test&&e[n].test(t))return!0}return!1}function F(e){return"[object Array]"===Object.prototype.toString.call(e)}function L(e,t){try{return e[t]}catch(n){return R(n)}}function N(e,t,n){var r=[],i=0;function a(e,s){function o(){return s.length>P&&i>C}if(i++,s.length>x)return A;if(o())return A;if(null===e||"object"!==typeof e)return e;if(I(r,e))return"[Circular]";if(r.push(e),"function"===typeof e.toJSON)try{i--;var l=a(e.toJSON(),s);return r.pop(),l}catch(m){return R(m)}if(T(e)){i--;var c=a({name:e.name,message:e.message},s);return r.pop(),c}if(F(e)){for(var u=[],h=0,d=e.length;h<d;h++){if(o()){u.push(A);break}u.push(a(e[h],s.concat("[]")))}return r.pop(),u}var p={};try{for(var f in e)if(Object.prototype.hasOwnProperty.call(e,f))if(D(n,s.join("."))&&M(t,f))p[f]="[REDACTED]";else{if(o()){p[f]=A;break}p[f]=a(L(e,f),s.concat(f))}}catch(g){}return r.pop(),p}return a(e,[])}function O(e,t,n,r){if("string"===typeof n){void 0===r?r=null:null!==r&&"string"!==typeof r&&(r=k(r));var i=t[n];"number"!==typeof i?(e.push({name:n,variant:r}),t[n]=e.length-1):e[i]={name:n,variant:r}}}function B(e,t,n){if(a(t)){for(var r=0;r<t.length;++r){var i=t[r];null!==i&&"object"===typeof i&&O(e,n,i.name,i.variant)}return e}}function j(e){return m(r(e,Boolean),function(e){var t=e.name,n=e.variant,r={featureFlag:t};return"string"===typeof n&&(r.variant=n),r})}function V(e,t,n){var r=t[n];"number"===typeof r&&(e[r]=null,delete t[n])}var U={add:O,clear:V,merge:B,toEventApi:j},z=function(e){return!!e&&(!!e.stack||!!e.stacktrace||!!e["opera#sourceloc"])&&"string"===typeof(e.stack||e.stacktrace||e["opera#sourceloc"])&&e.stack!==e.name+": "+e.message};function H(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return e instanceof Error}}var G=H,q=function(e,t,n,r){var i;if(t){var a;if(null===n)return K(e,t);"object"===typeof n&&(a=n),"string"===typeof n&&((i={})[n]=r,a=i),a&&"__proto__"!==t&&"constructor"!==t&&"prototype"!==t&&(e[t]||(e[t]={}),e[t]=f({},e[t],a))}},K=function(e,t,n){"string"===typeof t&&(n?"__proto__"!==t&&"constructor"!==t&&"prototype"!==t&&e[t]&&delete e[t][n]:delete e[t])},W={add:q,get:function(e,t,n){if("string"===typeof t)return n?e[t]?e[t][n]:void 0:e[t]},clear:K},$={};function Y(){return Y=Object.assign?Object.assign.bind():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},Y.apply(this,arguments)}!function(t,n){"use strict";"function"===typeof e&&e.amd?e("stack-generator",["stackframe"],n):"object"===typeof $?$=n(w):t.StackGenerator=n(t.StackFrame)}(this,function(e){return{backtrace:function(t){var n=[],r=10;"object"===typeof t&&"number"===typeof t.maxStackSize&&(r=t.maxStackSize);for(var i=arguments.callee;i&&n.length<r&&i.arguments;){for(var a=new Array(i.arguments.length),s=0;s<a.length;++s)a[s]=i.arguments[s];/function(?:\s+([\w$]+))+\s*\(/.test(i.toString())?n.push(new e({functionName:RegExp.$1||void 0,args:a})):n.push(new e({args:a}));try{i=i.caller}catch(o){break}}return n}}});var X=function(){function e(t,n,r,i,a){void 0===r&&(r=[]),void 0===i&&(i=Z()),this.apiKey=void 0,this.context=void 0,this.groupingHash=void 0,this.originalError=a,this._handledState=i,this.severity=this._handledState.severity,this.unhandled=this._handledState.unhandled,this.app={},this.device={},this.request={},this.breadcrumbs=[],this.threads=[],this._metadata={},this._features=[],this._featuresIndex={},this._user={},this._session=void 0,this._correlation=void 0,this.errors=[te(t,n,e.__type,r)]}var t=e.prototype;return t.addMetadata=function(e,t,n){return W.add(this._metadata,e,t,n)},t.setTraceCorrelation=function(e,t){"string"===typeof e&&(this._correlation=Y({traceId:e},"string"===typeof t?{spanId:t}:{}))},t.getMetadata=function(e,t){return W.get(this._metadata,e,t)},t.clearMetadata=function(e,t){return W.clear(this._metadata,e,t)},t.addFeatureFlag=function(e,t){void 0===t&&(t=null),U.add(this._features,this._featuresIndex,e,t)},t.addFeatureFlags=function(e){U.merge(this._features,e,this._featuresIndex)},t.getFeatureFlags=function(){return U.toEventApi(this._features)},t.clearFeatureFlag=function(e){U.clear(this._features,this._featuresIndex,e)},t.clearFeatureFlags=function(){this._features=[],this._featuresIndex={}},t.getUser=function(){return this._user},t.setUser=function(e,t,n){this._user={id:e,email:t,name:n}},t.toJSON=function(){return{payloadVersion:"4",exceptions:m(this.errors,function(e){return f({},e,{message:e.errorMessage})}),severity:this.severity,unhandled:this._handledState.unhandled,severityReason:this._handledState.severityReason,app:this.app,device:this.device,request:this.request,breadcrumbs:this.breadcrumbs,context:this.context,groupingHash:this.groupingHash,metaData:this._metadata,user:this._user,session:this._session,featureFlags:this.getFeatureFlags(),correlation:this._correlation}},e}(),J=function(e){var t={file:e.fileName,method:Q(e.functionName),lineNumber:e.lineNumber,columnNumber:e.columnNumber,code:void 0,inProject:void 0};return t.lineNumber>-1&&!t.file&&!t.method&&(t.file="global code"),t},Q=function(e){return/^global code$/i.test(e)?"global code":e},Z=function(){return{unhandled:!1,severity:"warning",severityReason:{type:"handledException"}}},ee=function(e){return"string"===typeof e?e:""};
2function te(e,t,r,i){return{errorClass:ee(e),errorMessage:ee(t),type:r,stacktrace:n(i,function(e,t){var n=J(t);try{return"{}"===JSON.stringify(n)?e:e.concat(n)}catch(r){return e}},[])}}function ne(e){return e.cause?[e].concat(ne(e.cause)):[e]}X.getStacktrace=function(e,t,n){if(z(e))return E.parse(e).slice(t);try{return r($.backtrace(),function(e){return-1===(e.functionName||"").indexOf("StackGenerator$$")}).slice(1+n)}catch(i){return[]}},X.create=function(e,t,n,r,i,a){void 0===i&&(i=0);var s,o=ie(e,t,r,a),l=o[0],c=o[1];try{var u=X.getStacktrace(l,c>0?1+c+i:0,1+i);s=new X(l.name,l.message,u,n,e)}catch(f){s=new X(l.name,l.message,[],n,e)}if("InvalidError"===l.name&&s.addMetadata(""+r,"non-error parameter",re(e)),l.cause){var h,d=ne(l).slice(1),p=m(d,function(e){var t=G(e)&&z(e)?E.parse(e):[],n=ie(e,!0,"error cause")[0];return"InvalidError"===n.name&&s.addMetadata("error cause",re(e)),te(n.name,n.message,X.__type,t)});(h=s.errors).push.apply(h,p)}return s};var re=function(e){return null===e?"null":void 0===e?"undefined":e},ie=function(e,t,n,r){var i,a=0,s=function(e){var t="error cause"===n?"was":"received";r&&r.warn(n+" "+t+' a non-error: "'+e+'"');var i=new Error(n+" "+t+' a non-error. See "'+n+'" tab for more detail.');return i.name="InvalidError",i};if(t)switch(typeof e){case"string":case"number":case"boolean":i=new Error(String(e)),a+=1;break;case"function":i=s("function"),a+=2;break;case"object":null!==e&&G(e)?i=e:null!==e&&ae(e)?((i=new Error(e.message||e.errorMessage)).name=e.name||e.errorClass,a+=1):(i=s(null===e?"null":"unsupported object"),a+=2);break;default:i=s("nothing"),a+=2}else G(e)?i=e:(i=s(typeof e),a+=2);if(!z(i))try{throw i}catch(o){z(o)&&(i=o,a=1)}return[i,a]};X.__type="browserjs";var ae=function(e){return("string"===typeof e.name||"string"===typeof e.errorClass)&&("string"===typeof e.message||"string"===typeof e.errorMessage)},se=X,oe=function(e,t,n){var r=0,i=function(){if(r>=e.length)return n(null,!0);t(e[r],function(e,t){return e?n(e):!1===t?n(null,!1):(r++,void i())})};i()},le=function(e,t,n,r){var i=function(e,r){if("function"!==typeof e)return r(null);try{if(2!==e.length){var i=e(t);return i&&"function"===typeof i.then?i.then(function(e){return setTimeout(function(){return r(null,e)})},function(e){setTimeout(function(){return n(e),r(null,!0)})}):r(null,i)}e(t,function(e,t){if(e)return n(e),r(null);r(null,t)})}catch(a){n(a),r(null)}};oe(e,i,r)},ce=function(e,t,n,r){for(var i=!1,a=e.slice();!i&&a.length;)try{i=!1===a.pop()(t)}catch(s){r.error("Error occurred in "+n+" callback, continuing anyway\u2026"),r.error(s)}return i},ue=function(e,t){var n="000000000"+e;return n.substr(n.length-t)},he="object"===typeof window?window:self,de=0;for(var pe in he)Object.hasOwnProperty.call(he,pe)&&de++;var fe=navigator.mimeTypes?navigator.mimeTypes.length:0,me=ue((fe+navigator.userAgent.length).toString(36)+de.toString(36),4),ge=function(){return me},ve=0,ye=4,be=36,_e=Math.pow(be,ye);function we(){return ue((Math.random()*_e|0).toString(be),ye)}function Se(){return ve=ve<_e?ve:0,++ve-1}function Ee(){return"c"+(new Date).getTime().toString(be)+ue(Se().toString(be),ye)+ge()+(we()+we())}Ee.fingerprint=ge;var ke=Ee,xe=function(){function e(){this.id=ke(),this.startedAt=new Date,this._handled=0,this._unhandled=0,this._user={},this.app={},this.device={}}var t=e.prototype;return t.getUser=function(){return this._user},t.setUser=function(e,t,n){this._user={id:e,email:t,name:n}},t.toJSON=function(){return{id:this.id,startedAt:this.startedAt,events:{handled:this._handled,unhandled:this._unhandled}}},t._track=function(e){this[e._handledState.unhandled?"_unhandled":"_handled"]+=1},e}(),Ce=U.add,Pe=U.clear,Ae=U.merge,Te=function(){},Re=function(){function e(t,n,r,i){var a=this;void 0===n&&(n=d.schema),void 0===r&&(r=[]),this._notifier=i,this._config={},this._schema=n,this._delivery={sendSession:Te,sendEvent:Te},this._logger={debug:Te,info:Te,warn:Te,error:Te},this._plugins={},this._breadcrumbs=[],this._session=null,this._metadata={},this._featuresIndex={},this._features=[],this._context=void 0,this._user={},this._cbs={e:[],s:[],sp:[],b:[]},this.Client=e,this.Event=se,this.Breadcrumb=_,this.Session=xe,this._config=this._configure(t,r),m(r.concat(this._config.plugins),function(e){e&&a._loadPlugin(e)}),this._depth=1;var s=this,o=this.notify;this.notify=function(){return o.apply(s,arguments)}}var a=e.prototype;return a.addMetadata=function(e,t,n){return W.add(this._metadata,e,t,n)},a.getMetadata=function(e,t){return W.get(this._metadata,e,t)},a.clearMetadata=function(e,t){return W.clear(this._metadata,e,t)},a.addFeatureFlag=function(e,t){void 0===t&&(t=null),Ce(this._features,this._featuresIndex,e,t)},a.addFeatureFlags=function(e){Ae(this._features,e,this._featuresIndex)},a.clearFeatureFlag=function(e){Pe(this._features,this._featuresIndex,e)},a.clearFeatureFlags=function(){this._features=[],this._featuresIndex={}},a.getContext=function(){return this._context},a.setContext=function(e){this._context=e},a._configure=function(e,t){var r=n(t,function(e,t){return t&&t.configSchema?f({},e,t.configSchema):e},this._schema),i=n(l(r),function(t,n){var i=r[n].defaultValue(e[
2n]);return void 0!==e[n]?r[n].validate(e[n])?r[n].allowPartialObject?t.config[n]=f(i,e[n]):t.config[n]=e[n]:(t.errors[n]=r[n].message,t.config[n]=i):t.config[n]=i,t},{errors:{},config:{}}),a=i.errors,s=i.config;if(r.apiKey){if(!s.apiKey)throw new Error("No Bugsnag API Key set");/^[0-9a-f]{32}$/i.test(s.apiKey)||(a.apiKey="should be a string of 32 hexadecimal characters")}return this._metadata=f({},s.metadata),Ae(this._features,s.featureFlags,this._featuresIndex),this._user=f({},s.user),this._context=s.context,s.logger&&(this._logger=s.logger),s.onError&&(this._cbs.e=this._cbs.e.concat(s.onError)),s.onBreadcrumb&&(this._cbs.b=this._cbs.b.concat(s.onBreadcrumb)),s.onSession&&(this._cbs.s=this._cbs.s.concat(s.onSession)),l(a).length&&this._logger.warn(Ie(a,e)),s},a.getUser=function(){return this._user},a.setUser=function(e,t,n){this._user={id:e,email:t,name:n}},a._loadPlugin=function(e){var t=e.load(this);return e.name&&(this._plugins["~"+e.name+"~"]=t),this},a.getPlugin=function(e){return this._plugins["~"+e+"~"]},a._setDelivery=function(e){this._delivery=e(this)},a.startSession=function(){var e=new xe;return e.app.releaseStage=this._config.releaseStage,e.app.version=this._config.appVersion,e.app.type=this._config.appType,e._user=f({},this._user),ce(this._cbs.s,e,"onSession",this._logger)?(this._logger.debug("Session not started due to onSession callback"),this):this._sessionDelegate.startSession(this,e)},a.addOnError=function(e,t){void 0===t&&(t=!1),this._cbs.e[t?"unshift":"push"](e)},a.removeOnError=function(e){this._cbs.e=r(this._cbs.e,function(t){return t!==e})},a._addOnSessionPayload=function(e){this._cbs.sp.push(e)},a.addOnSession=function(e){this._cbs.s.push(e)},a.removeOnSession=function(e){this._cbs.s=r(this._cbs.s,function(t){return t!==e})},a.addOnBreadcrumb=function(e,t){void 0===t&&(t=!1),this._cbs.b[t?"unshift":"push"](e)},a.removeOnBreadcrumb=function(e){this._cbs.b=r(this._cbs.b,function(t){return t!==e})},a.pauseSession=function(){return this._sessionDelegate.pauseSession(this)},a.resumeSession=function(){return this._sessionDelegate.resumeSession(this)},a.leaveBreadcrumb=function(e,n,r){if(e="string"===typeof e?e:"",r="string"===typeof r&&i(t,r)?r:"manual",n="object"===typeof n&&null!==n?n:{},e){var a=new _(e,n,r);ce(this._cbs.b,a,"onBreadcrumb",this._logger)?this._logger.debug("Breadcrumb not attached due to onBreadcrumb callback"):(this._breadcrumbs.push(a),this._breadcrumbs.length>this._config.maxBreadcrumbs&&(this._breadcrumbs=this._breadcrumbs.slice(this._breadcrumbs.length-this._config.maxBreadcrumbs)))}},a._isBreadcrumbTypeEnabled=function(e){var t=this._config.enabledBreadcrumbTypes;return null===t||i(t,e)},a.notify=function(e,t,n){void 0===n&&(n=Te);var r=se.create(e,!0,void 0,"notify()",this._depth+1,this._logger);this._notify(r,t,n)},a._notify=function(t,n,r){var a=this;if(void 0===r&&(r=Te),t.app=f({},t.app,{releaseStage:this._config.releaseStage,version:this._config.appVersion,type:this._config.appType}),t.context=t.context||this._context,t._metadata=f({},t._metadata,this._metadata),t._user=f({},t._user,this._user),t.breadcrumbs=this._breadcrumbs.slice(),Ae(t._features,this._features,t._featuresIndex),null!==this._config.enabledReleaseStages&&!i(this._config.enabledReleaseStages,this._config.releaseStage))return this._logger.warn("Event not sent due to releaseStage/enabledReleaseStages configuration"),r(null,t);var s=t.severity,o=function(e){a._logger.error("Error occurred in onError callback, continuing anyway\u2026"),a._logger.error(e)},l=[].concat(this._cbs.e).concat(n);le(l,t,o,function(n,i){if(n&&o(n),!i)return a._logger.debug("Event not sent due to onError callback"),r(null,t);a._isBreadcrumbTypeEnabled("error")&&e.prototype.leaveBreadcrumb.call(a,t.errors[0].errorClass,{errorClass:t.errors[0].errorClass,errorMessage:t.errors[0].errorMessage,severity:t.severity},"error"),s!==t.severity&&(t._handledState.severityReason={type:"userCallbackSetSeverity"}),t.unhandled!==t._handledState.unhandled&&(t._handledState.severityReason.unhandledOverridden=!0,t._handledState.unhandled=t.unhandled),a._session&&(a._session._track(t),t._session=a._session),a._delivery.sendEvent({apiKey:t.apiKey||a._config.apiKey,notifier:a._notifier,events:[t]},function(e){return r(e,t)})})},e}(),Ie=function(e,t){return new Error("Invalid configuration\n"+m(l(e),function(n){return"  - "+n+" "+e[n]+", got "+De(t[n])}).join("\n\n"))},De=function(e){switch(typeof e){case"string":case"number":case"object":return JSON.stringify(e);default:return String(e)}},Me=Re,Fe={},Le=["events.[].metaData","events.[].breadcrumbs.[].metaData","events.[].request"];Fe.event=function(e,t){var n=k(e,null,null,{redactedPaths:Le,redactedKeys:t});return n.length>1e6&&(e.events[0]._metadata={notifier:"WARNING!\nSerialized payload was "+n.length/1e6+"MB (limit = 1MB)\nmetadata was removed"},n=k(e,null,null,{redactedPaths:Le,redactedKeys:t})),n},Fe.session=function(e,t){return k(e,null,null)};var Ne={};Ne=function(e,t){return void 0===t&&(t=window),{sendEvent:function(n,r){void 0===r&&(r=function(){});var i=Oe(e._config,"notify","4",t),a=Fe.event(n,e._config.redactedKeys),s=new t.XDomainRequest;s.onload=function(){r(null)},s.onerror=function(){var t=new Error("Event failed to send");e._logger.error("Event failed to send\u2026",t),a.length>1e6&&e._logger.warn("Event oversized ("+(a.length/1e6).toFixed(2)+" MB)"),r(t)}
2,s.open("POST",i),setTimeout(function(){try{s.send(a)}catch(t){e._logger.error(t),r(t)}},0)},sendSession:function(n,r){void 0===r&&(r=function(){});var i=Oe(e._config,"sessions","1",t),a=new t.XDomainRequest;a.onload=function(){r(null)},a.open("POST",i),setTimeout(function(){try{a.send(Fe.session(n,e._config.redactedKeys))}catch(t){e._logger.error(t),r(t)}},0)}}};var Oe=function(e,t,n,r){var i=JSON.parse(JSON.stringify(new Date));return Be(e.endpoints[t],r.location.protocol)+"?apiKey="+encodeURIComponent(e.apiKey)+"&payloadVersion="+n+"&sentAt="+encodeURIComponent(i)},Be=Ne._matchPageProtocol=function(e,t){return"http:"===t?e.replace(/^https:/,"http:"):e},je=function(e,t){return void 0===t&&(t=window),{sendEvent:function(n,r){void 0===r&&(r=function(){});try{var i=e._config.endpoints.notify,a=new t.XMLHttpRequest,s=Fe.event(n,e._config.redactedKeys);a.onreadystatechange=function(){if(a.readyState===t.XMLHttpRequest.DONE){var n=a.status;if(0===n||n>=400){var i=new Error("Request failed with status "+n);e._logger.error("Event failed to send\u2026",i),s.length>1e6&&e._logger.warn("Event oversized ("+(s.length/1e6).toFixed(2)+" MB)"),r(i)}else r(null)}},a.open("POST",i),a.setRequestHeader("Content-Type","application/json"),a.setRequestHeader("Bugsnag-Api-Key",n.apiKey||e._config.apiKey),a.setRequestHeader("Bugsnag-Payload-Version","4"),a.setRequestHeader("Bugsnag-Sent-At",(new Date).toISOString()),a.send(s)}catch(o){e._logger.error(o)}},sendSession:function(n,r){void 0===r&&(r=function(){});try{var i=e._config.endpoints.sessions,a=new t.XMLHttpRequest;a.onreadystatechange=function(){if(a.readyState===t.XMLHttpRequest.DONE){var n=a.status;if(0===n||n>=400){var i=new Error("Request failed with status "+n);e._logger.error("Session failed to send\u2026",i),r(i)}else r(null)}},a.open("POST",i),a.setRequestHeader("Content-Type","application/json"),a.setRequestHeader("Bugsnag-Api-Key",e._config.apiKey),a.setRequestHeader("Bugsnag-Payload-Version","1"),a.setRequestHeader("Bugsnag-Sent-At",(new Date).toISOString()),a.send(Fe.session(n,e._config.redactedKeys))}catch(s){e._logger.error(s)}}}},Ve=new Date,Ue=function(){Ve=new Date},ze={name:"appDuration",load:function(e){return e.addOnError(function(e){var t=new Date;e.app.duration=t-Ve},!0),{reset:Ue}}},He=function(e){return void 0===e&&(e=window),{load:function(t){t.addOnError(function(t){void 0===t.context&&(t.context=e.location.pathname)},!0)}}},Ge=function(e,t){var n="000000000"+e;return n.substr(n.length-t)},qe="object"===typeof window?window:self,Ke=0;for(var We in qe)Object.hasOwnProperty.call(qe,We)&&Ke++;var $e=navigator.mimeTypes?navigator.mimeTypes.length:0,Ye=Ge(($e+navigator.userAgent.length).toString(36)+Ke.toString(36),4),Xe=function(){return Ye},Je=0,Qe=4,Ze=36,et=Math.pow(Ze,Qe);function tt(){return Ge((Math.random()*et|0).toString(Ze),Qe)}function nt(){return Je=Je<et?Je:0,++Je-1}function rt(){return"c"+(new Date).getTime().toString(Ze)+Ge(nt().toString(Ze),Qe)+Xe()+(tt()+tt())}rt.fingerprint=Xe;var it=rt,at="bugsnag-anonymous-id",st=function(e){try{var t=e.localStorage,n=t.getItem(at);return n&&/^c[a-z0-9]{20,32}$/.test(n)||(n=it(),t.setItem(at,n)),n}catch(r){}},ot=function(e,t){return void 0===e&&(e=navigator),void 0===t&&(t=window),{load:function(n){var r={locale:e.browserLanguage||e.systemLanguage||e.userLanguage||e.language,userAgent:e.userAgent};t&&t.screen&&t.screen.orientation&&t.screen.orientation.type?r.orientation=t.screen.orientation.type:t&&t.document&&(r.orientation=t.document.documentElement.clientWidth>t.document.documentElement.clientHeight?"landscape":"portrait"),n._config.generateAnonymousId&&(r.id=st(t)),n.addOnSession(function(e){e.device=f({},e.device,r),n._config.collectUserIp||lt(e)}),n.addOnError(function(e){e.device=f({},e.device,r,{time:new Date}),n._config.collectUserIp||lt(e)},!0)},configSchema:{generateAnonymousId:{validate:function(e){return!0===e||!1===e},defaultValue:function(){return!0},message:"should be true|false"}}}},lt=function(e){var t=e.getUser();t&&t.id||e.setUser(e.device.id)},ct=function(e){return void 0===e&&(e=window),{load:function(t){t.addOnError(function(t){t.request&&t.request.url||(t.request=f({},t.request,{url:e.location.href}))},!0)}}},ut={load:function(e){e._sessionDelegate=ht}},ht={startSession:function(e,t){var n=e;return n._session=t,n._pausedSession=null,null===n._config.enabledReleaseStages||i(n._config.enabledReleaseStages,n._config.releaseStage)?(n._delivery.sendSession({notifier:n._notifier,device:t.device,app:t.app,sessions:[{id:t.id,startedAt:t.startedAt,user:t._user}]}),n):(n._logger.warn("Session not sent due to releaseStage/enabledReleaseStages configuration"),n)},resumeSession:function(e){return e._session?e:e._pausedSession?(e._session=e._pausedSession,e._pausedSession=null,e):e.startSession()},pauseSession:function(e){e._pausedSession=e._session,e._session=null}},dt={load:function(e){e._config.collectUserIp||e.addOnError(function(e){e._user&&"undefined"===typeof e._user.id&&delete e._user.id,e._user=f({id:"[REDACTED]"},e._user),e.request=f({clientIp:"[REDACTED]"},e.request)})},configSchema:{collectUserIp:{defaultValue:function(){return!0},message:"should be true|false",validate:function(e){return!0===e||!1===e}}}}
2,pt={load:function(e){!/^(local-)?dev(elopment)?$/.test(e._config.releaseStage)&&e._isBreadcrumbTypeEnabled("log")&&m(ft,function(t){var r=console[t];console[t]=function(){for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];e.leaveBreadcrumb("Console output",n(a,function(e,t,n){var r="[Unknown value]";try{r=String(t)}catch(i){}if("[object Object]"===r)try{r=JSON.stringify(t)}catch(i){}return e["["+n+"]"]=r,e},{severity:0===t.indexOf("group")?"log":t}),"log"),r.apply(console,a)},console[t]._restore=function(){console[t]=r}})}},ft=r(["log","debug","info","warn","error"],function(e){return"undefined"!==typeof console&&"function"===typeof console[e]}),mt=200,gt=5e5,vt=function(e,t){return void 0===e&&(e=document),void 0===t&&(t=window),{load:function(i){if(i._config.trackInlineScripts){var a=t.location.href,s="",o=e.attachEvent?"complete"===e.readyState:"loading"!==e.readyState,l=function(){return e.documentElement.outerHTML};s=l();var c=e.onreadystatechange;e.onreadystatechange=function(){"interactive"===e.readyState&&(s=l(),o=!0);try{c.apply(this,arguments)}catch(t){}};var u=null,h=function(e){u=e},d=function(){var t=e.currentScript||u;if(!t&&!o){var n=e.scripts||e.getElementsByTagName("script");t=n[n.length-1]}return t},p=function(e){o&&s||(s=l());var t=["\x3c!-- DOC START --\x3e"].concat(s.split("\n")),r=e-1,i=Math.max(r-3,0),a=Math.min(r+3,t.length);return n(t.slice(i,a),function(e,t,n){return e[i+1+n]=t.length<=mt?t:t.substr(0,mt),e},{})};i.addOnError(function(e){e.errors[0].stacktrace=r(e.errors[0].stacktrace,function(e){return!/__trace__$/.test(e.method)});var t=e.errors[0].stacktrace[0],n=function(e){return e.replace(/#.*$/,"").replace(/\?.*$/,"")};if(!t||!t.file||n(t.file)===n(a)){var i=d();if(i){var s=i.innerHTML;e.addMetadata("script","content",s.length<=gt?s:s.substr(0,gt)),t&&t.lineNumber&&(t.code=p(t.lineNumber))}}},!0);var f=m(["setTimeout","setInterval","setImmediate","requestAnimationFrame"],function(e){return yt(t,e,function(e){return g(e,function(e){return{get:function(){return e[0]},replace:function(t){e[0]=t}}})})})[0];m(["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],function(e){t[e]&&t[e].prototype&&Object.prototype.hasOwnProperty.call(t[e].prototype,"addEventListener")&&(yt(t[e].prototype,"addEventListener",function(e){return g(e,bt)}),yt(t[e].prototype,"removeEventListener",function(e){return g(e,bt,!0)}))})}function g(e,t,n){return void 0===n&&(n=!1),function(){var r=[].slice.call(arguments);try{var i=t(r),a=i.get();if(n&&e.apply(this,r),"function"!==typeof a)return e.apply(this,r);if(a.__trace__)i.replace(a.__trace__);else{var s=d();a.__trace__=function(){h(s),f(function(){h(null)},0);var e=a.apply(this,arguments);return h(null),e},a.__trace__.__trace__=a.__trace__,i.replace(a.__trace__)}}catch(o){}if(e.apply)return e.apply(this,r);switch(r.length){case 1:return e(r[0]);case 2:return e(r[0],r[1]);default:return e()}}}},configSchema:{trackInlineScripts:{validate:function(e){return!0===e||!1===e},defaultValue:function(){return!0},message:"should be true|false"}}}};function yt(e,t,n){var r=e[t];if(!r)return r;var i=n(r);return e[t]=i,r}function bt(e){var t=!!e[1]&&"function"===typeof e[1].handleEvent;return{get:function(){return t?e[1].handleEvent:e[1]},replace:function(n){t?e[1].handleEvent=n:e[1]=n}}}var _t=function(e){return void 0===e&&(e=window),{load:function(t){"addEventListener"in e&&t._isBreadcrumbTypeEnabled("user")&&e.addEventListener("click",function(n){var r,i;try{r=St(n.target),i=Et(n.target,e)}catch(a){r="[hidden]",i="[hidden]",t._logger.error("Cross domain error when tracking click event. See docs: https://tinyurl.com/yy3rn63z")}t.leaveBreadcrumb("UI click",{targetText:r,targetSelector:i},"user")},!0)}}},wt=/^\s*([^\s][\s\S]{0,139}[^\s])?\s*/;function St(e){var t=e.textContent||e.innerText||"";return t||"submit"!==e.type&&"button"!==e.type||(t=e.value),(t=t.replace(wt,"$1")).length>140?t.slice(0,135)+"(...)":t}function Et(e,t){var n=[e.tagName];if(e.id&&n.push("#"+e.id),e.className&&e.className.length&&n.push("."+e.className.split(" ").join(".")),!t.document.querySelectorAll||!Array.prototype.indexOf)return n.join("");try{if(1===t.document.querySelectorAll(n.join("")).length)return n.join("")}catch(i){return n.join("")}if(e.parentNode.childNodes.length>1){var r=Array.prototype.indexOf.call(e.parentNode.childNodes,e)+1;n.push(":nth-child("+r+")")}return 1===t.document.querySelectorAll(n.join("")).length?n.join(""):e.parentNode?Et(e.parentNode,t)+" > "+n.join(""):n.join("")}var kt={};kt=function(e){void 0===e&&(e=window);var t={load:function(t){if("addEventListener"in e&&t._isBreadcrumbTypeEnabled("navigation")){var n=function(e){return function(){return t.leaveBreadcrumb(e,{},"navigation")}};e.addEventListener("pagehide",n("Page hidden"),!0),e.addEventListener("pageshow",n("Page shown"),!0),e.addEventListener("load",n("Page loaded"),!0),e.document.addEventListener("DOMContentLoaded",n("DOMContentLoaded"),!0),e.addEventListener("load",function(){return e.addEventListener("popstate",n("Navigated back"),!0)}),e.addEventListener("hashchange",function(n){var r=n.oldURL?{from:xt(n.oldURL,e),to:xt(n.newURL,e),state:At(e)}:{to:xt(e.location.href,e)};t.leaveBreadcrumb("Hash changed",r,"navigation")},!0),e.history.replaceState&&Pt(t,e.history,"replaceState",e),e.history.pushState&&Pt(t,e.history,"pushState",e)}}};return t};var xt=function(e,t){var n=t.document.createElement("A");return n.href=e,""+n.pathname+n.search+n.hash},Ct=function(e,t,n,r){var i=xt(e.location.href,e);return{title:n,state:t,prevState:At(e),to:r||i,from:i}},Pt=function(e,t,n,r){var i=t[n];t[n]=function(a,s,o){e.leaveBreadcrumb("History "+n,Ct(r,a,s,o),"navigation"),"function"===typeof e.resetEventCount&&e.resetEventCount(),e._config.autoTrackSessions&&e.startSession(),i.apply(t,[a,s].concat(void 0!==o?o:[]))}},At=function(e){try{return e.history.state}catch(t){}},Tt="request",Rt=function(e,t){void 0===e&&(e=[]),void 0===t&&(t=window);var n={load:function(n){if(n._isBreadcrumbTypeEnabled("request")){var r=[n._config.endpoints.notify,n._config.endpoints.sessions].concat(e);o(),u();var a=function(e,t,r){var i={status:e.status,request:t+" "+r};e.status>=400?n.leaveBreadcrumb("fetch() failed",i,Tt):n.leaveBreadcrumb("fetch() succeeded",i,Tt)},s=function(e,t){n.leaveBreadcrumb("fetch() error",{request:e+" "+t},Tt)}}function o(){if("addEventListener"in t.XMLHttpRequest.prototype){var e=t.XMLHttpRequest.prototype.open;t.XMLHttpRequest.prototype.open=function(t,n){var r=this,i=!1,a=function(){return c(t,n)},s=function(){return l(t,n,r.status)};i&&(this.removeEventListener("load",s),this.removeEventListener("error",a)),this.addEventListener("load",s),this.addEventListener("error",a),i=!0,e.apply(this,arguments)}}}function l(e,t,a){if(void 0!==t){if("string"!==typeof t||!i(r,t.replace(/\?.*$/,""))){var s={status:a,request:e+" "+t};a>=400?n.leaveBreadcrumb("XMLHttpRequest failed",s,Tt):n.leaveBreadcrumb("XMLHttpRequest succeeded",s,Tt)}}else n._logger.warn("The request URL is no longer present on this XMLHttpRequest. A breadcrumb cannot be left for this request.")}function c(e,t){void 0!==t?"string"===typeof t&&i(r,t.replace(/\?.*$/,""))||n.leaveBreadcrumb("XMLHttpRequest error",{request:e+" "+t},Tt):n._logger.warn("The request URL is no longer present on this XMLHttpRequest. A breadcrumb cannot be left for this request.")}function u(){if("fetch"in t&&!t.fetch.polyfill){var e=t.fetch;t.fetch=function(){var t,n=arguments,r=arguments[0],i=arguments[1],o=null;return r&&"object"===typeof r?(o=r.url,i&&"method"in i?t=i.method:r&&"method"in r&&(t=r.method)):(o=r,i&&"method"in i&&(t=i.method)),void 0===t&&(t="GET"),new Promise(function(r,i){e.apply(void 0,n).then(function(e){a(e,t,o),r(e)}).catch(function(e){s(t,o),i(e)})})}}}}};return n},It={load:function(e){var t=0;e.addOnError(function(n){if(t>=e._config.maxEvents)return e._logger.warn("Cancelling event send due to maxEvents per session limit of "+e._config.maxEvents+" being reached"),!1;t++}),e.resetEventCount=function(){t=0}},configSchema:{maxEvents:{defaultValue:function(){return 10},message:"should be a positive integer \u2264100",validate:function(e){return c(1,100)(e)}}}},Dt={},Mt=(Dt={load:function(e){e.addOnError(function(e){var t=n(e.errors,function(e,t){return e.concat(t.stacktrace)},[]);m(t,function(e){e.file=Mt(e.file)})})}}
2)._strip=function(e){return"string"===typeof e?e.replace(/\?.*$/,"").replace(/#.*$/,""):e},Ft=function(e,t){return void 0===e&&(e=window),void 0===t&&(t="window onerror"),{load:function(n){if(n._config.autoDetectErrors&&n._config.enabledErrorTypes.unhandledExceptions){var r=e.onerror;e.onerror=i}function i(e,i,a,s,o){if(0===a&&/Script error\.?/.test(e))n._logger.warn("Ignoring cross-domain or eval script error. See docs: https://tinyurl.com/yy3rn63z");else{var l,c={severity:"error",unhandled:!0,severityReason:{type:"unhandledException"}};if(o)l=n.Event.create(o,!0,c,t,1),Lt(l.errors[0].stacktrace,i,a,s);else if("object"!==typeof e||null===e||i&&"string"===typeof i||a||s||o)l=n.Event.create(e,!0,c,t,1),Lt(l.errors[0].stacktrace,i,a,s);else{var u=e.type?"Event: "+e.type:"Error",h=e.message||e.detail||"";(l=n.Event.create({name:u,message:h},!0,c,t,1)).originalError=e,l.addMetadata(t,{event:e,extraParameters:i})}n._notify(l)}"function"===typeof r&&r.apply(this,arguments)}}}},Lt=function(e,t,n,r){e[0]||e.push({});var i=e[0];i.file||"string"!==typeof t||(i.file=t),!i.lineNumber&&Nt(n)&&(i.lineNumber=n),i.columnNumber||(Nt(r)?i.columnNumber=r:window.event&&Nt(window.event.errorCharacter)&&(i.columnNumber=window.event.errorCharacter))},Nt=function(e){return"number"===typeof e&&"NaN"!==String.call(e)},Ot=function(e){return void 0===e&&(e=window),{load:function(t){if(t._config.autoDetectErrors&&t._config.enabledErrorTypes.unhandledRejections){var n=function(e){var n=e.reason,r=!1;try{e.detail&&e.detail.reason&&(n=e.detail.reason,r=!0)}catch(a){}var i=t.Event.create(n,!1,{severity:"error",unhandled:!0,severityReason:{type:"unhandledPromiseRejection"}},"unhandledrejection handler",1,t._logger);r&&m(i.errors[0].stacktrace,Bt(n)),t._notify(i,function(e){var t;G(e.originalError)&&!e.originalError.stack&&e.addMetadata("unhandledRejection handler",((t={})[Object.prototype.toString.call(e.originalError)]={name:e.originalError.name,message:e.originalError.message,code:e.originalError.code},t))})};"addEventListener"in e?e.addEventListener("unhandledrejection",n):e.onunhandledrejection=function(e,t){n({detail:{reason:e,promise:t}})}}}}},Bt=function(e){return function(t){t.file!==e.toString()&&t.method&&(t.method=t.method.replace(/^\s+/,""))}},jt={},Vt="Bugsnag JavaScript",Ut="7.25.0",zt="https://github.com/bugsnag/bugsnag-js",Ht=f({},d.schema,y),Gt={_client:null,createClient:function(e){"string"===typeof e&&(e={apiKey:e}),e||(e={});var t=[ze,ot(),He(),ct(),It,ut,dt,Dt,Ft(),Ot(),kt(),_t(),Rt(),pt,vt()],n=new Me(e,Ht,t,{name:Vt,version:Ut,url:zt});return n._setDelivery(window.XDomainRequest?Ne:je),n._logger.debug("Loaded!"),n.leaveBreadcrumb("Bugsnag loaded",{},"state"),n._config.autoTrackSessions?n.startSession():n},start:function(e){return Gt._client?(Gt._client._logger.warn("Bugsnag.start() was called more than once. Ignoring."),Gt._client):(Gt._client=Gt.createClient(e),Gt._client)},isStarted:function(){return null!=Gt._client}};return m(["resetEventCount"].concat(l(Me.prototype)),function(e){/^_/.test(e)||(Gt[e]=function(){if(!Gt._client)return console.log("Bugsnag."+e+"() was called before Bugsnag.start()");Gt._client._depth+=1;var t=Gt._client[e].apply(Gt._client,arguments);return Gt._client._depth-=1,t})}),(jt=Gt).Client=Me,jt.Event=se,jt.Session=xe,jt.Breadcrumb=_,jt.default=Gt,jt}()},4800(e,t,n){e.exports=n(9274)},6779(e){e.exports=function(){var e={};function t(){return t=Object.assign?Object.assign.bind():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},t.apply(this,arguments)}function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,i(e,t)}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}e=function(){function e(){var e="undefined"!==typeof window&&window.React;if(this.name="react",this.lazy=0===arguments.length&&!e,!this.lazy&&(this.React=(arguments.length<=0?void 0:arguments[0])||e,!this.React))throw new Error("@bugsnag/plugin-react reference to `React` was undefined")}return e.prototype.load=function(e){if(!this.lazy){var t=s(this.React,e);return t.createErrorBoundary=function(){return t},t}var n=function(){throw new Error("@bugsnag/plugin-react was used incorrectly. Valid usage is as follows:\nPass React to the plugin constructor\n\n  `Bugsnag.start({ plugins: [new BugsnagPluginReact(React)] })`\nand then call `const ErrorBoundary = Bugsnag.getPlugin('react').createErrorBoundary()`\n\nOr if React is not available until after Bugsnag has started,\nconstruct the plugin with no arguments\n  `Bugsnag.start({ plugins: [new BugsnagPluginReact()] })`,\nthen pass in React when available to construct your error boundary\n  `const ErrorBoundary = Bugsnag.getPlugin('react').createErrorBoundary(React)`")};return n.createErrorBoundary=function(t){if(!t)throw new Error("@bugsnag/plugin-react reference to `React` was undefined");return s(t,e)},n},e}();var a=function(e){for(var t=e.split(/\n/g),n="",r=0,i=t.length;r<i;r++)t[r].length&&(n+=(n.length?"\n":"")+t[r].trim());return n},s=function(e,i){return function(s){function o(e){var t;return(t=s.call(this,e)||this).state={error:null,info:null},t.handleClearError=t.handleClearError.bind(n(t)),t}r(o,s);var l=o.prototype;return l.handleClearError=function(){this.setState({error:null,info:null})},l.componentDidCatch=function(e,t){var n=this.props.onError,r={severity:"error",unhandled:!0,severityReason:{type:"unhandledException"}},s=i.Event.create(e,!0,r,1);t&&t.componentStack&&(t.componentStack=a(t.componentStack)),s.addMetadata("react",t),i._notify(s,n),this.setState({error:e,info:t})},l.render=function(){if(this.state.error){var n=this.props.FallbackComponent;return n?e.createElement(n,t({},this.state,{clearError:this.handleClearError})):null}return this.props.children},o}(e.Component)};return e.formatComponentStack=a,e.default=e,e}()},3603(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;(function(){"use strict";
2var ERROR="input is invalid type",WINDOW="object"===typeof window,root=WINDOW?window:{};root.JS_MD5_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"===typeof self,NODE_JS=!root.JS_MD5_NO_NODE_JS&&"object"===typeof process&&process.versions&&process.versions.node;NODE_JS?root=__webpack_require__.g:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_MD5_NO_COMMON_JS&&module.exports,AMD=__webpack_require__.amdO,ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!==typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),blocks=[],buffer8;if(ARRAY_BUFFER){var buffer=new ArrayBuffer(68);buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer)}!root.JS_MD5_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!ARRAY_BUFFER||!root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"===typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var createOutputMethod=function(e){return function(t){return new Md5(!0).update(t)[e]()}},createMethod=function(){var e=createOutputMethod("hex");NODE_JS&&(e=nodeWrap(e)),e.create=function(){return new Md5},e.update=function(t){return e.create().update(t)};for(var t=0;t<OUTPUT_TYPES.length;++t){var n=OUTPUT_TYPES[t];e[n]=createOutputMethod(n)}return e},nodeWrap=function(method){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),nodeMethod=function(e){if("string"===typeof e)return crypto.createHash("md5").update(e,"utf8").digest("hex");if(null===e||void 0===e)throw ERROR;return e.constructor===ArrayBuffer&&(e=new Uint8Array(e)),Array.isArray(e)||ArrayBuffer.isView(e)||e.constructor===Buffer?crypto.createHash("md5").update(new Buffer(e)).digest("hex"):method(e)};return nodeMethod};function Md5(e){if(e)blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks,this.buffer8=buffer8;else if(ARRAY_BUFFER){var t=new ArrayBuffer(68);this.buffer8=new Uint8Array(t),this.blocks=new Uint32Array(t)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}Md5.prototype.update=function(e){if(!this.finalized){var t,n=typeof e;if("string"!==n){if("object"!==n)throw ERROR;if(null===e)throw ERROR;if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(e)))throw ERROR;t=!0}for(var r,i,a=0,s=e.length,o=this.blocks,l=this.buffer8;a<s;){if(this.hashed&&(this.hashed=!1,o[0]=o[16],o[16]=o[1]=o[2]=o[3]=o[4]=o[5]=o[6]=o[7]=o[8]=o[9]=o[10]=o[11]=o[12]=o[13]=o[14]=o[15]=0),t)if(ARRAY_BUFFER)for(i=this.start;a<s&&i<64;++a)l[i++]=e[a];else for(i=this.start;a<s&&i<64;++a)o[i>>2]|=e[a]<<SHIFT[3&i++];else if(ARRAY_BUFFER)for(i=this.start;a<s&&i<64;++a)(r=e.charCodeAt(a))<128?l[i++]=r:r<2048?(l[i++]=192|r>>6,l[i++]=128|63&r):r<55296||r>=57344?(l[i++]=224|r>>12,l[i++]=128|r>>6&63,l[i++]=128|63&r):(r=65536+((1023&r)<<10|1023&e.charCodeAt(++a)),l[i++]=240|r>>18,l[i++]=128|r>>12&63,l[i++]=128|r>>6&63,l[i++]=128|63&r);else for(i=this.start;a<s&&i<64;++a)(r=e.charCodeAt(a))<128?o[i>>2]|=r<<SHIFT[3&i++]:r<2048?(o[i>>2]|=(192|r>>6)<<SHIFT[3&i++],o[i>>2]|=(128|63&r)<<SHIFT[3&i++]):r<55296||r>=57344?(o[i>>2]|=(224|r>>12)<<SHIFT[3&i++],o[i>>2]|=(128|r>>6&63)<<SHIFT[3&i++],o[i>>2]|=(128|63&r)<<SHIFT[3&i++]):(r=65536+((1023&r)<<10|1023&e.charCodeAt(++a)),o[i>>2]|=(240|r>>18)<<SHIFT[3&i++],o[i>>2]|=(128|r>>12&63)<<SHIFT[3&i++],o[i>>2]|=(128|r>>6&63)<<SHIFT[3&i++],o[i>>2]|=(128|63&r)<<SHIFT[3&i++]);this.lastByteIndex=i,this.bytes+=i-this.start,i>=64?(this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[t>>2]|=EXTRA[3&t],t>=56&&(this.hashed||this.hash(),e[0]=e[16],e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.bytes<<3,e[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},Md5.prototype.hash=function(){var e,t,n,r,i,a,s=this.blocks;this.first?t=((t=((e=((e=s[0]-680876937)<<7|e>>>25)-271733879|0)^(n=((n=(-271733879^(r=((r=(-1732584194^2004318071&e)+s[1]-117830708)<<12|r>>>20)+e|0)&(-271733879^e))+s[2]-1126478375)<<17|n>>>
vendor: 5,453 bytes, line 2
215)+r|0)&(r^e))+s[3]-1316259209)<<22|t>>>10)+n|0:(e=this.h0,t=this.h1,n=this.h2,t=((t+=((e=((e+=((r=this.h3)^t&(n^r))+s[0]-680876936)<<7|e>>>25)+t|0)^(n=((n+=(t^(r=((r+=(n^e&(t^n))+s[1]-389564586)<<12|r>>>20)+e|0)&(e^t))+s[2]+606105819)<<17|n>>>15)+r|0)&(r^e))+s[3]-1044525330)<<22|t>>>10)+n|0),t=((t+=((e=((e+=(r^t&(n^r))+s[4]-176418897)<<7|e>>>25)+t|0)^(n=((n+=(t^(r=((r+=(n^e&(t^n))+s[5]+1200080426)<<12|r>>>20)+e|0)&(e^t))+s[6]-1473231341)<<17|n>>>15)+r|0)&(r^e))+s[7]-45705983)<<22|t>>>10)+n|0,t=((t+=((e=((e+=(r^t&(n^r))+s[8]+1770035416)<<7|e>>>25)+t|0)^(n=((n+=(t^(r=((r+=(n^e&(t^n))+s[9]-1958414417)<<12|r>>>20)+e|0)&(e^t))+s[10]-42063)<<17|n>>>15)+r|0)&(r^e))+s[11]-1990404162)<<22|t>>>10)+n|0,t=((t+=((e=((e+=(r^t&(n^r))+s[12]+1804603682)<<7|e>>>25)+t|0)^(n=((n+=(t^(r=((r+=(n^e&(t^n))+s[13]-40341101)<<12|r>>>20)+e|0)&(e^t))+s[14]-1502002290)<<17|n>>>15)+r|0)&(r^e))+s[15]+1236535329)<<22|t>>>10)+n|0,t=((t+=((r=((r+=(t^n&((e=((e+=(n^r&(t^n))+s[1]-165796510)<<5|e>>>27)+t|0)^t))+s[6]-1069501632)<<9|r>>>23)+e|0)^e&((n=((n+=(e^t&(r^e))+s[11]+643717713)<<14|n>>>18)+r|0)^r))+s[0]-373897302)<<20|t>>>12)+n|0,t=((t+=((r=((r+=(t^n&((e=((e+=(n^r&(t^n))+s[5]-701558691)<<5|e>>>27)+t|0)^t))+s[10]+38016083)<<9|r>>>23)+e|0)^e&((n=((n+=(e^t&(r^e))+s[15]-660478335)<<14|n>>>18)+r|0)^r))+s[4]-405537848)<<20|t>>>12)+n|0,t=((t+=((r=((r+=(t^n&((e=((e+=(n^r&(t^n))+s[9]+568446438)<<5|e>>>27)+t|0)^t))+s[14]-1019803690)<<9|r>>>23)+e|0)^e&((n=((n+=(e^t&(r^e))+s[3]-187363961)<<14|n>>>18)+r|0)^r))+s[8]+1163531501)<<20|t>>>12)+n|0,t=((t+=((r=((r+=(t^n&((e=((e+=(n^r&(t^n))+s[13]-1444681467)<<5|e>>>27)+t|0)^t))+s[2]-51403784)<<9|r>>>23)+e|0)^e&((n=((n+=(e^t&(r^e))+s[7]+1735328473)<<14|n>>>18)+r|0)^r))+s[12]-1926607734)<<20|t>>>12)+n|0,t=((t+=((a=(r=((r+=((i=t^n)^(e=((e+=(i^r)+s[5]-378558)<<4|e>>>28)+t|0))+s[8]-2022574463)<<11|r>>>21)+e|0)^e)^(n=((n+=(a^t)+s[11]+1839030562)<<16|n>>>16)+r|0))+s[14]-35309556)<<23|t>>>9)+n|0,t=((t+=((a=(r=((r+=((i=t^n)^(e=((e+=(i^r)+s[1]-1530992060)<<4|e>>>28)+t|0))+s[4]+1272893353)<<11|r>>>21)+e|0)^e)^(n=((n+=(a^t)+s[7]-155497632)<<16|n>>>16)+r|0))+s[10]-1094730640)<<23|t>>>9)+n|0,t=((t+=((a=(r=((r+=((i=t^n)^(e=((e+=(i^r)+s[13]+681279174)<<4|e>>>28)+t|0))+s[0]-358537222)<<11|r>>>21)+e|0)^e)^(n=((n+=(a^t)+s[3]-722521979)<<16|n>>>16)+r|0))+s[6]+76029189)<<23|t>>>9)+n|0,t=((t+=((a=(r=((r+=((i=t^n)^(e=((e+=(i^r)+s[9]-640364487)<<4|e>>>28)+t|0))+s[12]-421815835)<<11|r>>>21)+e|0)^e)^(n=((n+=(a^t)+s[15]+530742520)<<16|n>>>16)+r|0))+s[2]-995338651)<<23|t>>>9)+n|0,t=((t+=((r=((r+=(t^((e=((e+=(n^(t|~r))+s[0]-198630844)<<6|e>>>26)+t|0)|~n))+s[7]+1126891415)<<10|r>>>22)+e|0)^((n=((n+=(e^(r|~t))+s[14]-1416354905)<<15|n>>>17)+r|0)|~e))+s[5]-57434055)<<21|t>>>11)+n|0,t=((t+=((r=((r+=(t^((e=((e+=(n^(t|~r))+s[12]+1700485571)<<6|e>>>26)+t|0)|~n))+s[3]-1894986606)<<10|r>>>22)+e|0)^((n=((n+=(e^(r|~t))+s[10]-1051523)<<15|n>>>17)+r|0)|~e))+s[1]-2054922799)<<21|t>>>11)+n|0,t=((t+=((r=((r+=(t^((e=((e+=(n^(t|~r))+s[8]+1873313359)<<6|e>>>26)+t|0)|~n))+s[15]-30611744)<<10|r>>>22)+e|0)^((n=((n+=(e^(r|~t))+s[6]-1560198380)<<15|n>>>17)+r|0)|~e))+s[13]+1309151649)<<21|t>>>11)+n|0,t=((t+=((r=((r+=(t^((e=((e+=(n^(t|~r))+s[4]-145523070)<<6|e>>>26)+t|0)|~n))+s[11]-1120210379)<<10|r>>>22)+e|0)^((n=((n+=(e^(r|~t))+s[2]+718787259)<<15|n>>>17)+r|0)|~e))+s[9]-343485551)<<21|t>>>11)+n|0,this.first?(this.h0=e+1732584193|0,this.h1=t-271733879|0,this.h2=n-1732584194|0,this.h3=r+271733878|0,this.first=!1):(this.h0=this.h0+e|0,this.h1=this.h1+t|0,this.h2=this.h2+n|0,this.h3=this.h3+r|0)},Md5.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3;return HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3;return[255&e,e>>8&255,e>>16&255,e>>24&255,255&t,t>>8&255,t>>16&255,t>>24&255,255&n,n>>8&255,n>>16&255,n>>24&255,255&r,r>>8&255,r>>16&255,r>>24&255]},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(16),t=new Uint32Array(e);return t[0]=this.h0,t[1]=this.h1,t[2]=this.h2,t[3]=this.h3,e},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var e,t,n,r="",i=this.array(),a=0;a<15;)e=i[a++],t=i[a++],n=i[a++],r+=BASE64_ENCODE_CHAR[e>>>2]+BASE64_ENCODE_CHAR[63&(e<<4|t>>>4)]+BASE64_ENCODE_CHAR[63&(t<<2|n>>>6)]+BASE64_ENCODE_CHAR[63&n];return e=i[a],r+=BASE64_ENCODE_CHAR[e>>>2]+BASE64_ENCODE_CHAR[e<<4&63]+"=="};var exports=createMethod();COMMON_JS?module.exports=exports:(root.md5=exports,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})()},3750(e,t,n){!function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}
2var i=r(t),a=r(n);function s(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 o(e){if(Array.isArray(e))return e}function l(e,t,n){return(t=v(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,s,o=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return o}}function u(){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 h(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 d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t){if(null==e)return{};var n,r,i=f(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function f(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function m(e,t){return o(e)||c(e,t)||y(e,t)||u()}function g(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function v(e){var t=g(e,"string");return"symbol"==typeof t?t:t+""}function y(e,t){if(e){if("string"==typeof e)return s(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)?s(e,t):void 0}}var b=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],_=function(e,t){var r=e.animationData,s=e.loop,o=e.autoplay,l=e.initialSegment,c=e.onComplete,u=e.onLoopComplete,h=e.onEnterFrame,f=e.onSegmentStart,g=e.onConfigReady,v=e.onDataReady,y=e.onDataFailed,_=e.onLoadedImages,w=e.onDOMLoaded,S=e.onDestroy;e.lottieRef,e.renderer,e.name,e.assetsPath,e.rendererSettings;var E=p(e,b),k=m(n.useState(!1),2),x=k[0],C=k[1],P=n.useRef(),A=n.useRef(null),T=function(){var e;null===(e=P.current)||void 0===e||e.play()},R=function(){var e;null===(e=P.current)||void 0===e||e.stop()},I=function(){var e;null===(e=P.current)||void 0===e||e.pause()},D=function(e){var t;null===(t=P.current)||void 0===t||t.setSpeed(e)},M=function(e,t){var n;null===(n=P.current)||void 0===n||n.goToAndPlay(e,t)},F=function(e,t){var n;null===(n=P.current)||void 0===n||n.goToAndStop(e,t)},L=function(e){var t;null===(t=P.current)||void 0===t||t.setDirection(e)},N=function(e,t){var n;null===(n=P.current)||void 0===n||n.playSegments(e,t)},O=function(e){var t;null===(t=P.current)||void 0===t||t.setSubframe(e)},B=function(e){var t;return null===(t=P.current)||void 0===t?void 0:t.getDuration(e)},j=function(){var e;null===(e=P.current)||void 0===e||e.destroy(),P.current=void 0},V=function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(A.current){null===(t=P.current)||void 0===t||t.destroy();var r=d(d(d({},e),n),{},{container:A.current});return P.current=i.default.loadAnimation(r),C(!!P.current),function(){var e;null===(e=P.current)||void 0===e||e.destroy(),P.current=void 0}}};return n.useEffect(function(){var e=V();return function(){return null===e||void 0===e?void 0:e()}},[r,s]),n.useEffect(function(){P.current&&(P.current.autoplay=!!o)},[o]),n.useEffect(function(){P.current&&(l?Array.isArray(l)&&l.length&&((P.current.currentRawFrame<l[0]||P.current.currentRawFrame>l[1])&&(P.current.currentRawFrame=l[0]),P.current.setSegment(l[0],l[1])):P.current.resetSegments(!0))},[l]),n.useEffect(function(){var e=[{name:"complete",handler:c},{name:"loopComplete",handler:u},{name:"enterFrame",handler:h},{name:"segmentStart",handler:f},{name:"config_ready",handler:g},{name:"data_ready",handler:v},{name:"data_failed",handler:y},{name:"loaded_images",handler:_},{name:"DOMLoaded",handler:w},{name:"destroy",handler:S}].filter(function(e){return null!=e.handler});if(e.length){var t=e.map(function(e){var t;
vendor: 9,035 bytes, line 2
2return null===(t=P.current)||void 0===t||t.addEventListener(e.name,e.handler),function(){var t;null===(t=P.current)||void 0===t||t.removeEventListener(e.name,e.handler)}});return function(){t.forEach(function(e){return e()})}}},[c,u,h,f,g,v,y,_,w,S]),{View:a.default.createElement("div",d({style:t,ref:A},E)),play:T,stop:R,pause:I,setSpeed:D,goToAndStop:F,goToAndPlay:M,setDirection:L,playSegments:N,setSubframe:O,getDuration:B,destroy:j,animationContainerRef:A,animationLoaded:x,animationItem:P.current}};function w(e){var t=e.getBoundingClientRect(),n=t.top,r=t.height;return(window.innerHeight-n)/(window.innerHeight+r)}function S(e,t,n){var r=e.getBoundingClientRect(),i=r.top;return{x:(t-r.left)/r.width,y:(n-i)/r.height}}var E=function(e){var t=e.wrapperRef,r=e.animationItem,i=e.mode,a=e.actions;n.useEffect(function(){var e=t.current;if(e&&r&&a.length){r.stop();var n=function(){var t=null,n=function(){var n=w(e),i=a.find(function(e){var t=e.visibility;return t&&n>=t[0]&&n<=t[1]});if(i){if("seek"===i.type&&i.visibility&&2===i.frames.length){var s=i.frames[0]+Math.ceil((n-i.visibility[0])/(i.visibility[1]-i.visibility[0])*i.frames[1]);r.goToAndStop(s-r.firstFrame-1,!0)}"loop"===i.type&&(null===t||t!==i.frames||r.isPaused)&&(r.playSegments(i.frames,!0),t=i.frames),"play"===i.type&&r.isPaused&&(r.resetSegments(!0),r.play()),"stop"===i.type&&r.goToAndStop(i.frames[0]-r.firstFrame-1,!0)}};return document.addEventListener("scroll",n),function(){document.removeEventListener("scroll",n)}},s=function(){var t=function(t,n){var i=t,s=n;if(-1!==i&&-1!==s){var o=S(e,i,s);i=o.x,s=o.y}var l=a.find(function(e){var t=e.position;return t&&Array.isArray(t.x)&&Array.isArray(t.y)?i>=t.x[0]&&i<=t.x[1]&&s>=t.y[0]&&s<=t.y[1]:!(!t||Number.isNaN(t.x)||Number.isNaN(t.y))&&i===t.x&&s===t.y});if(l){if("seek"===l.type&&l.position&&Array.isArray(l.position.x)&&Array.isArray(l.position.y)&&2===l.frames.length){var c=(i-l.position.x[0])/(l.position.x[1]-l.position.x[0]),u=(s-l.position.y[0])/(l.position.y[1]-l.position.y[0]);r.playSegments(l.frames,!0),r.goToAndStop(Math.ceil((c+u)/2*(l.frames[1]-l.frames[0])),!0)}"loop"===l.type&&r.playSegments(l.frames,!0),"play"===l.type&&(r.isPaused&&r.resetSegments(!1),r.playSegments(l.frames)),"stop"===l.type&&r.goToAndStop(l.frames[0],!0)}},n=function(e){t(e.clientX,e.clientY)},i=function(){t(-1,-1)};return e.addEventListener("mousemove",n),e.addEventListener("mouseout",i),function(){e.removeEventListener("mousemove",n),e.removeEventListener("mouseout",i)}};switch(i){case"scroll":return n();case"cursor":return s()}}},[i,r])},k=function(e){var t=e.actions,n=e.mode,r=e.lottieObj,i=r.animationItem,a=r.View,s=r.animationContainerRef;return E({actions:t,animationItem:i,mode:n,wrapperRef:s}),a},x=["style","interactivity"],C=function(e){var t,r,i,a=e.style,s=e.interactivity,o=p(e,x),l=_(o,a),c=l.View,u=l.play,h=l.stop,d=l.pause,f=l.setSpeed,m=l.goToAndStop,g=l.goToAndPlay,v=l.setDirection,y=l.playSegments,b=l.setSubframe,w=l.getDuration,S=l.destroy,E=l.animationContainerRef,C=l.animationLoaded,P=l.animationItem;return n.useEffect(function(){e.lottieRef&&(e.lottieRef.current={play:u,stop:h,pause:d,setSpeed:f,goToAndPlay:g,goToAndStop:m,setDirection:v,playSegments:y,setSubframe:b,getDuration:w,destroy:S,animationContainerRef:E,animationLoaded:C,animationItem:P})},[null===(t=e.lottieRef)||void 0===t?void 0:t.current]),k({lottieObj:{View:c,play:u,stop:h,pause:d,setSpeed:f,goToAndStop:m,goToAndPlay:g,setDirection:v,playSegments:y,setSubframe:b,getDuration:w,destroy:S,animationContainerRef:E,animationLoaded:C,animationItem:P},actions:null!==(r=null===s||void 0===s?void 0:s.actions)&&void 0!==r?r:[],mode:null!==(i=null===s||void 0===s?void 0:s.mode)&&void 0!==i?i:"scroll"})};Object.defineProperty(e,"LottiePlayer",{enumerable:!0,get:function(){return i.default}}),e.default=C,e.useLottie=_,e.useLottieInteractivity=k,Object.defineProperty(e,"__esModule",{value:!0})}(t,n(1302),n(5043))},1302(module,exports,__webpack_require__){var factory;"undefined"!==typeof document&&"undefined"!==typeof navigator&&(factory=function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(e){_useWebWorker=!!e},getWebWorker=function(){return _useWebWorker},setLocationHref=function(e){locationHref=e},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var n,r,i=e.length;for(n=0;n<i;n+=1)for(var a in r=e[n].prototype)Object.prototype.hasOwnProperty.call(r,a)&&(t.prototype[a]=r[a])}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=function(){function e(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(e){this.audios.push(e)},pause:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].pause()},resume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].resume()},setRate:function(e){var t,n=this.audios.length;for(t=0;t<n;t+=1)this.audios[t].setRate(e)},createAudio:function(e){return this.audioFactory?this.audioFactory(e):window.Howl?new window.Howl({src:[e]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(e){this.audioFactory=e},setVolume:function(e){this._volume=e,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(e,t){var n,r=0,i=[];switch(e){case"int16":case"uint8c":n=1;break;default:n=1.1}for(r=0;r<t;r+=1)i.push(n);return i}return"function"===typeof Uint8ClampedArray&&"function"===typeof Float32Array?function(t,n){return"float32"===t?new Float32Array(n):"int16"===t?new Int16Array(n):"uint8c"===t?new Uint8ClampedArray(n):e(t,n)}:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){return _typeof$6="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},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};function ProjectInterface$1(){return{}}!function(){var e,t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],n=t.length;for(e=0;e<n;e+=1)BMMath[t[e]]=Math[t[e]]}(),BMMath.random=Math.random,BMMath.abs=function(e){if("object"===_typeof$6(e)&&e.length){var t,n=createSizedArray(e.length),r=e.length;for(t=0;t<r;t+=1)n[t]=Math.abs(e[t]);return n}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(e){_shouldRoundValues=!!e}function bmRnd(e){return _shouldRoundValues?Math.round(e):e}function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,n,r){this.type=e,this.currentTime=t,this.totalTime=n,this.direction=r<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,n,r){this.type=e,this.currentLoop=n,this.totalLoops=t,this.direction=r<0?-1:1}function BMSegmentStartEvent(e,t,n){this.type=e,this.firstFrame=t,this.totalFrames=n}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}function BMAnimationConfigErrorEvent(e,t){this.type=e,this.nativeError=t}var createElementID=function(){var e=0;return function(){return idPrefix$1+"__lottie_element_"+(e+=1)}}();function HSVtoRGB(e,t,n){var r,i,a,s,o,l,c,u;switch(l=n*(1-t),c=n*(1-(o=6*e-(s=Math.floor(6*e)))*t),u=n*(1-(1-o)*t),s%6){case 0:r=n,i=u,a=l;break;case 1:r=c,i=n,a=l;break;case 2:r=l,i=n,a=u;break;case 3:r=l,i=c,a=n;break;case 4:r=u,i=l,a=n;break;case 5:r=n,i=l,a=c}return[r,i,a]}
vendor: 6,277 bytes, line 2
2function RGBtoHSV(e,t,n){var r,i=Math.max(e,t,n),a=Math.min(e,t,n),s=i-a,o=0===i?0:s/i,l=i/255;switch(i){case a:r=0;break;case e:r=t-n+s*(t<n?6:0),r/=6*s;break;case t:r=n-e+2*s,r/=6*s;break;case n:r=e-t+4*s,r/=6*s}return[r,o,l]}function addSaturationToRGB(e,t){var n=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return n[1]+=t,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),HSVtoRGB(n[0],n[1],n[2])}function addBrightnessToRGB(e,t){var n=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return n[2]+=t,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),HSVtoRGB(n[0],n[1],n[2])}function addHueToRGB(e,t){var n=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return n[0]+=t/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),HSVtoRGB(n[0],n[1],n[2])}var rgbToHex=function(){var e,t,n=[];for(e=0;e<256;e+=1)t=e.toString(16),n[e]=1===t.length?"0"+t:t;return function(e,t,r){return e<0&&(e=0),t<0&&(t=0),r<0&&(r=0),"#"+n[e]+n[t]+n[r]}}(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(e){expressionsInterfaces=e},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix$1=e},getIdPrefix=function(){return idPrefix$1};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){return _typeof$5="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},_typeof$5(e)}var dataManager=function(){var e,t,n=1,r=[],i={onmessage:function(){},postMessage:function(t){e({data:t})}},a={postMessage:function(e){i.onmessage({data:e})}};function s(){t||(t=function(t){if(window.Worker&&window.Blob&&getWebWorker()){var n=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"}),r=URL.createObjectURL(n);return new Worker(r)}return e=t,i}(function(e){if(a.dataManager||(a.dataManager=function(){function e(i,a){var s,o,l,c,h,d,p=i.length;for(o=0;o<p;o+=1)if("ks"in(s=i[o])&&!s.completed){if(s.completed=!0,s.hasMask){var f=s.masksProperties;for(c=f.length,l=0;l<c;l+=1)if(f[l].pt.k.i)r(f[l].pt.k);else for(d=f[l].pt.k.length,h=0;h<d;h+=1)f[l].pt.k[h].s&&r(f[l].pt.k[h].s[0]),f[l].pt.k[h].e&&r(f[l].pt.k[h].e[0])}0===s.ty?(s.layers=t(s.refId,a),e(s.layers,a)):4===s.ty?n(s.shapes):5===s.ty&&u(s)}}function t(e,t){var n=function(e,t){for(var n=0,r=t.length;n<r;){if(t[n].id===e)return t[n];n+=1}return null}(e,t);return n?n.layers.__used?JSON.parse(JSON.stringify(n.layers)):(n.layers.__used=!0,n.layers):null}function n(e){var t,i,a;for(t=e.length-1;t>=0;t-=1)if("sh"===e[t].ty)if(e[t].ks.k.i)r(e[t].ks.k);else for(a=e[t].ks.k.length,i=0;i<a;i+=1)e[t].ks.k[i].s&&r(e[t].ks.k[i].s[0]),e[t].ks.k[i].e&&r(e[t].ks.k[i].e[0]);else"gr"===e[t].ty&&n(e[t].it)}function r(e){var t,n=e.i.length;for(t=0;t<n;t+=1)e.i[t][0]+=e.v[t][0],e.i[t][1]+=e.v[t][1],e.o[t][0]+=e.v[t][0],e.o[t][1]+=e.v[t][1]}function i(e,t){var n=t?t.split("."):[100,100,100];return e[0]>n[0]||!(n[0]>e[0])&&(e[1]>n[1]||!(n[1]>e[1])&&(e[2]>n[2]||!(n[2]>e[2])&&null))}var a=function(){var e=[4,4,14];function t(e){var t=e.t.d;e.t.d={k:[{s:t,t:0}]}}function n(e){var n,r=e.length;for(n=0;n<r;n+=1)5===e[n].ty&&t(e[n])}return function(t){if(i(e,t.v)&&(n(t.layers),t.assets)){var r,a=t.assets.length;for(r=0;r<a;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}(),s=function(){var e=[4,7,99];return function(t){if(t.chars&&!i(e,t.v)){var r,a=t.chars.length;for(r=0;r<a;r+=1){var s=t.chars[r];s.data&&s.data.shapes&&(n(s.data.shapes),s.data.ip=0,s.data.op=99999,s.data.st=0,s.data.sr=1,s.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},t.chars[r].t||(s.data.shapes.push({ty:"no"}),s.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),o=function(){var e=[5,7,15];function t(e){var t=e.t.p;"number"===typeof t.a&&(t.a={a:0,k:t.a}),"number"===typeof t.p&&(t.p={a:0,k:t.p}),"number"===typeof t.r&&(t.r={a:0,k:t.r})}function n(e){var n,r=e.length;for(n=0;n<r;n+=1)5===e[n].ty&&t(e[n])}return function(t){if(i(e,t.v)&&(n(t.layers),t.assets)){var r,a=t.assets.length;for(r=0;r<a;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}(),l=function(){var e=[4,1,9];function t(e){var n,r,i,a=e.length;for(n=0;n<a;n+=1)if("gr"===e[n].ty)t(e[n].it);else if("fl"===e[n].ty||"st"===e[n].ty)if(e[n].c.k&&e[n].c.k[0].i)for(i=e[n].c.k.length,r=0;r<i;r+=1)e[n].c.k[r].s&&(e[n].c.k[r].s[0]/=255,e[n].c.k[r].s[1]/=255,e[n].c.k[r].s[2]/=255,e[n].c.k[r].s[3]/=255),e[n].c.k[r].e&&(e[n].c.k[r].e[0]/=255,e[n].c.k[r].e[1]/=255,e[n].c.k[r].e[2]/=255,e[n].c.k[r].e[3]/=255);else e[n].c.k[0]/=255,e[n].c.k[1]/=255,e[n].c.k[2]/=255,e[n].c.k[3]/=255}function n(e){var n,r=e.length;for(n=0;n<r;n+=1)4===e[n].ty&&t(e[n].shapes)}return function(t){if(i(e,t.v)&&(n(t.layers),t.assets)){var r,a=t.assets.length;for(r=0;r<a;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}(),c=function(){var e=[4,4,18];function t(e){var n,r,i;for(n=e.length-1;n>=0;n-=1)if("sh"===e[n].ty)if(e[n].ks.k.i)e[n].ks.k.c=e[n].closed;else for(i=e[n].ks.k.length,r=0;r<i;r+=1)e[n].ks.k[r].s&&(e[n].ks.k[r].s[0].c=e[n].closed),e[n].ks.k[r].e&&(e[n].ks.k[r].e[0].c=e[n].closed);else"gr"===e[n].ty&&t(e[n].it)}function n(e){var n,r,i,a,s,o,l=e.length;for(r=0;r<l;r+=1){if((n=e[r]).hasMask){var c=n.masksProperties;for(a=c.length,i=0;i<a;i+=1)if(c[i].pt.k.i)c[i].pt.k.c=c[i].cl;else for(o=c[i].pt.k.length,s=0;s<o;s+=1)c[i].pt.k[s].s&&(c[i].pt.k[s].s[0].c=c[i].cl),c[i].pt.k[s].e&&(c[i].pt.k[s].e[0].c=c[i].cl)}4===n.ty&&t(n.shapes)}}return function(t){if(i(e,t.v)&&(n(t.layers),t.assets)){var r,a=t.assets.length;for(r=0;r<a;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}();function u(e){0===e.t.a.length&&e.t.p}var h={completeData:function(n){n.__complete||(l(n),a(n),s(n),o(n),c(n),e(n.layers,n.assets),function(n,r){if(n){var i=0,a=n.length;for(i=0;i<a;i+=1)1===n[i].t&&(n[i].data.layers=t(n[i].data.refId,r),e(n[i].data.layers,r))}}(n.chars,n.assets),n.__complete=!0)}};
vendor: 5,794 bytes, line 2
2return h.checkColors=l,h.checkChars=s,h.checkPathProperties=o,h.checkShapes=c,h.completeLayers=e,h}()),a.assetLoader||(a.assetLoader=function(){function e(e){var t=e.getResponseHeader("content-type");return t&&"json"===e.responseType&&-1!==t.indexOf("json")||e.response&&"object"===_typeof$5(e.response)?e.response:e.response&&"string"===typeof e.response?JSON.parse(e.response):e.responseText?JSON.parse(e.responseText):null}return{load:function(t,n,r,i){var a,s=new XMLHttpRequest;try{s.responseType="json"}catch(o){}s.onreadystatechange=function(){if(4===s.readyState)if(200===s.status)a=e(s),r(a);else try{a=e(s),r(a)}catch(o){i&&i(o)}};try{s.open(["G","E","T"].join(""),t,!0)}catch(l){s.open(["G","E","T"].join(""),n+"/"+t,!0)}s.send()}}}()),"loadAnimation"===e.data.type)a.assetLoader.load(e.data.path,e.data.fullPath,function(t){a.dataManager.completeData(t),a.postMessage({id:e.data.id,payload:t,status:"success"})},function(){a.postMessage({id:e.data.id,status:"error"})});else if("complete"===e.data.type){var t=e.data.animation;a.dataManager.completeData(t),a.postMessage({id:e.data.id,payload:t,status:"success"})}else"loadData"===e.data.type&&a.assetLoader.load(e.data.path,e.data.fullPath,function(t){a.postMessage({id:e.data.id,payload:t,status:"success"})},function(){a.postMessage({id:e.data.id,status:"error"})})}),t.onmessage=function(e){var t=e.data,n=t.id,i=r[n];r[n]=null,"success"===t.status?i.onComplete(t.payload):i.onError&&i.onError()})}function o(e,t){var i="processId_"+(n+=1);return r[i]={onComplete:e,onError:t},i}return{loadAnimation:function(e,n,r){s();var i=o(n,r);t.postMessage({type:"loadAnimation",path:e,fullPath:window.location.origin+window.location.pathname,id:i})},loadData:function(e,n,r){s();var i=o(n,r);t.postMessage({type:"loadData",path:e,fullPath:window.location.origin+window.location.pathname,id:i})},completeAnimation:function(e,n,r){s();var i=o(n,r);t.postMessage({type:"complete",animation:e,id:i})}}}(),ImagePreloader=function(){var e=function(){var e=createTag("canvas");e.width=1,e.height=1;var t=e.getContext("2d");return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),e}();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(e,t,n){var r="";if(e.e)r=e.p;else if(t){var i=e.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),r=t+i}else r=n,r+=e.u?e.u:"",r+=e.p;return r}function i(e){var t=0,n=setInterval(function(){(e.getBBox().width||t>500)&&(this._imageLoaded(),clearInterval(n)),t+=1}.bind(this),50)}function a(e){var t={assetData:e},n=r(e,this.assetsPath,this.path);return dataManager.loadData(n,function(e){t.img=e,this._footageLoaded()}.bind(this),function(){t.img={},this._footageLoaded()}.bind(this)),t}function s(){this._imageLoaded=t.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=i.bind(this),this.createFootageData=a.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return s.prototype={loadAssets:function(e,t){var n;this.imagesLoadedCb=t;var r=e.length;for(n=0;n<r;n+=1)e[n].layers||(e[n].t&&"seq"!==e[n].t?3===e[n].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(e[n]))):(this.totalImages+=1,this.images.push(this._createImageData(e[n]))))},setAssetsPath:function(e){this.assetsPath=e||""},setPath:function(e){this.path=e||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(e){for(var t=0,n=this.images.length;t<n;){if(this.images[t].assetData===e)return this.images[t].img;t+=1}return null},createImgData:function(t){var n=r(t,this.assetsPath,this.path),i=createTag("img");i.crossOrigin="anonymous",i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){a.img=e,this._imageLoaded()}.bind(this),!1),i.src=n;var a={img:i,assetData:t};return a},createImageData:function(t){var n=r(t,this.assetsPath,this.path),i=createNS("image");isSafari?this.testImageLoaded(i):i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){a.img=e,this._imageLoaded()}.bind(this),!1),i.setAttributeNS("http://www.w3.org/1999/xlink","href",n),this._elementHelper.append?this._elementHelper.append(i):this._elementHelper.appendChild(i);var a={img:i,assetData:t};return a},imageLoaded:t,footageLoaded:n,setCacheType:function(e,t){"svg"===e?(this._elementHelper=t,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},s}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(e,t){if(this._cbs[e])for(var n=this._cbs[e],r=0;r<n.length;r+=1)n[r](t)},addEventListener:function(e,t){return this._cbs[e]||(this._cbs[e]=[]),this._cbs[e].push(t),function(){this.removeEventListener(e,t)}.bind(this)},removeEventListener:function(e,t){if(t){if(this._cbs[e]){for(var n=0,r=this._cbs[e].length;n<r;)this._cbs[e][n]===t&&(this._cbs[e].splice(n,1),n-=1,r-=1),n+=1;this._cbs[e].length||(this._cbs[e]=null)}}else this._cbs[e]=null}};var markerParser=function(){function e(e){for(var t,n=e.split("\r\n"),r={},i=0,a=0;a<n.length;a+=1)2===(t=n[a].split(":")).length&&(r[t[0]]=t[1].trim(),i+=1);if(0===i)throw new Error;return r}return function(t){for(var n=[],r=0;r<t.length;r+=1){var i=t[r],a={time:i.tm,duration:i.dr};try{a.payload=JSON.parse(t[r].cm)}catch(s){try{a.payload=e(t[r].cm)}catch(o
vendor: 5,396 bytes, line 2
2){a.payload={name:t[r].cm}}}n.push(a)}return n}}(),ProjectInterface=function(){function e(e){this.compositions.push(e)}return function(){function t(e){for(var t=0,n=this.compositions.length;t<n;){if(this.compositions[t].data&&this.compositions[t].data.nm===e)return this.compositions[t].prepareFrame&&this.compositions[t].data.xt&&this.compositions[t].prepareFrame(this.currentFrame),this.compositions[t].compInterface;t+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),renderers={},registerRenderer=function(e,t){renderers[e]=t};function getRenderer(e){return renderers[e]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var e in renderers)if(renderers[e])return e;return""}function _typeof$4(e){return _typeof$4="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},_typeof$4(e)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var n=getRenderer(t);this.renderer=new n(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,""===e.loop||null===e.loop||void 0===e.loop||!0===e.loop?this.loop=!0:!1===e.loop?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay=!("autoplay"in e)||e.autoplay,this.name=e.name?e.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(e,"autoloadSegments")||e.autoloadSegments,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(-1!==e.path.lastIndexOf("\\")?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&"object"!==_typeof$4(t)&&(t=JSON.parse(t));var n={wrapper:e,animationData:t},r=e.attributes;n.path=r.getNamedItem("data-animation-path")?r.getNamedItem("data-animation-path").value:r.getNamedItem("data-bm-path")?r.getNamedItem("data-bm-path").value:r.getNamedItem("bm-path")?r.getNamedItem("bm-path").value:"",n.animType=r.getNamedItem("data-anim-type")?r.getNamedItem("data-anim-type").value:r.getNamedItem("data-bm-type")?r.getNamedItem("data-bm-type").value:r.getNamedItem("bm-type")?r.getNamedItem("bm-type").value:r.getNamedItem("data-bm-renderer")?r.getNamedItem("data-bm-renderer").value:r.getNamedItem("bm-renderer")?r.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var i=r.getNamedItem("data-anim-loop")?r.getNamedItem("data-anim-loop").value:r.getNamedItem("data-bm-loop")?r.getNamedItem("data-bm-loop").value:r.getNamedItem("bm-loop")?r.getNamedItem("bm-loop").value:"";"false"===i?n.loop=!1:"true"===i?n.loop=!0:""!==i&&(n.loop=parseInt(i,10));var a=r.getNamedItem("data-anim-autoplay")?r.getNamedItem("data-anim-autoplay").value:r.getNamedItem("data-bm-autoplay")?r.getNamedItem("data-bm-autoplay").value:!r.getNamedItem("bm-autoplay")||r.getNamedItem("bm-autoplay").value;n.autoplay="false"!==a,n.name=r.getNamedItem("data-name")?r.getNamedItem("data-name").value:r.getNamedItem("data-bm-name")?r.getNamedItem("data-bm-name").value:r.getNamedItem("bm-name")?r.getNamedItem("bm-name").value:"","false"===(r.getNamedItem("data-anim-prerender")?r.getNamedItem("data-anim-prerender").value:r.getNamedItem("data-bm-prerender")?r.getNamedItem("data-bm-prerender").value:r.getNamedItem("bm-prerender")?r.getNamedItem("bm-prerender").value:"")&&(n.prerender=!1),n.path?this.setParams(n):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t,n,r=this.animationData.layers,i=r.length,a=e.layers,
vendor: 3,055 bytes, line 2
2s=a.length;for(n=0;n<s;n+=1)for(t=0;t<i;){if(r[t].id===a[n].id){r[t]=a[n];break}t+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(i=e.assets.length,t=0;t<i;t+=1)this.animationData.assets.push(e.assets[t]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||0===e.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var t=e.shift();this.timeCompleted=t.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(n,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(e,t){var n="number"===typeof e?e:void 0,r="number"=
vendor: 6,455 bytes, line 2
2==typeof t?t:void 0;this.renderer.updateContainerSize(n,r)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,n=0;n<this.markers.length;n+=1)if((t=this.markers[n]).payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,n){if(!n||this.name===n){var r=Number(e);if(isNaN(r)){var i=this.getMarkerData(e);i&&this.goToAndStop(i.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,n){if(!n||this.name===n){var r=Number(e);if(isNaN(r)){var i=this.getMarkerData(e);i&&(i.duration?this.playSegments([i.time,i.time+i.duration],!0):this.goToAndStop(i.time,!0))}else this.goToAndStop(r,t,n);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!0!==this.isPaused&&!1!==this.isLoaded){var t=this.currentRawFrame+e*this.frameModifier,n=!1;t>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(n=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(n=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),n&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?n=e:this.currentRawFrame+this.firstFrame>t&&(n=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,-1!==n&&this.goToAndStop(n,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),"object"===_typeof$4(e[0])){var n,r=e.length;for(n=0;n<r;n+=1)this.segments.push(e[n])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),e),!0)},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var n=e.p;-1!==n.indexOf("images/")&&(n=n.split("/")[1]),t=this.assetsPath+n}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,n=this.assets.length;t<n;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,t,n){try{this.renderer.getElementByPath(e).updateDocumentData(t,n)}catch(
vendor: 3,584 bytes, line 2
2r){}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}"enterFrame"===e&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===e&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),"complete"===e&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),"segmentStart"===e&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),"destroy"===e&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=function(){var e={},t=[],n=0,r=0,i=0,a=!0,s=!1;function o(e){for(var n=0,i=e.target;n<r;)t[n].animation===i&&(t.splice(n,1),n-=1,r-=1,i.isPaused||u()),n+=1}function l(e,n){if(!e)return null;for(var i=0;i<r;){if(t[i].elem===e&&null!==t[i].elem)return t[i].animation;i+=1}var a=new AnimationItem;return h(a,e),a.setData(e,n),a}function c(){i+=1,f()}function u(){i-=1}function h(e,n){e.addEventListener("destroy",o),e.addEventListener("_active",c),e.addEventListener("_idle",u),t.push({elem:n,animation:e}),r+=1}function d(e){var o,l=e-n;for(o=0;o<r;o+=1)t[o].animation.advanceTime(l);n=e,i&&!s?window.requestAnimationFrame(d):a=!0}function p(e){n=e,window.requestAnimationFrame(d)}function f(){!s&&i&&a&&(window.requestAnimationFrame(p),a=!1)}return e.registerAnimation=l,e.loadAnimation=function(e){var t=new AnimationItem;return h(t,null),t.setParams(e),t},e.setSpeed=function(e,n){var i;for(i=0;i<r;i+=1)t[i].animation.setSpeed(e,n)},e.setDirection=function(e,n){var i;for(i=0;i<r;i+=1)t[i].animation.setDirection(e,n)},e.play=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.play(e)},e.pause=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.pause(e)},e.stop=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.stop(e)},e.togglePause=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.togglePause(e)},e.searchAnimations=function(e,t,n){var r,i=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),a=i.length;for(r=0;r<a;r+=1)n&&i[r].setAttribute("data-bm-type",n),l(i[r],e);if(t&&0===a){n||(n="svg");var s=document.getElementsByTagName("body")[0];s.innerText="";var o=createTag("div");o.style.width="100%",o.style.height="100%",o.setAttribute("data-bm-type",n),s.appendChild(o),l(o,e)}},e.resize=function(){var e;
vendor: 4,116 bytes, line 2
2for(e=0;e<r;e+=1)t[e].animation.resize()},e.goToAndStop=function(e,n,i){var a;for(a=0;a<r;a+=1)t[a].animation.goToAndStop(e,n,i)},e.destroy=function(e){var n;for(n=r-1;n>=0;n-=1)t[n].animation.destroy(e)},e.freeze=function(){s=!0},e.unfreeze=function(){s=!1,f()},e.setVolume=function(e,n){var i;for(i=0;i<r;i+=1)t[i].animation.setVolume(e,n)},e.mute=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.mute(e)},e.unmute=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.unmute(e)},e.getRegisteredAnimations=function(){var e,n=t.length,r=[];for(e=0;e<n;e+=1)r.push(t[e].animation);return r},e}(),BezierFactory=function(){var e={getBezierEasing:function(e,n,r,i,a){var s=a||("bez_"+e+"_"+n+"_"+r+"_"+i).replace(/\./g,"p");if(t[s])return t[s];var o=new u([e,n,r,i]);return t[s]=o,o}},t={},n=11,r=1/(n-1),i="function"===typeof Float32Array;function a(e,t){return 1-3*t+3*e}function s(e,t){return 3*t-6*e}function o(e){return 3*e}function l(e,t,n){return((a(t,n)*e+s(t,n))*e+o(t))*e}function c(e,t,n){return 3*a(t,n)*e*e+2*s(t,n)*e+o(t)}function u(e){this._p=e,this._mSampleValues=i?new Float32Array(n):new Array(n),this._precomputed=!1,this.get=this.get.bind(this)}return u.prototype={get:function(e){var t=this._p[0],n=this._p[1],r=this._p[2],i=this._p[3];return this._precomputed||this._precompute(),t===n&&r===i?e:0===e?0:1===e?1:l(this._getTForX(e),n,i)},_precompute:function(){var e=this._p[0],t=this._p[1],n=this._p[2],r=this._p[3];this._precomputed=!0,e===t&&n===r||this._calcSampleValues()},_calcSampleValues:function(){for(var e=this._p[0],t=this._p[2],i=0;i<n;++i)this._mSampleValues[i]=l(i*r,e,t)},_getTForX:function(e){for(var t=this._p[0],i=this._p[2],a=this._mSampleValues,s=0,o=1,u=n-1;o!==u&&a[o]<=e;++o)s+=r;var h=s+(e-a[--o])/(a[o+1]-a[o])*r,d=c(h,t,i);return d>=.001?function(e,t,n,r){for(var i=0;i<4;++i){var a=c(t,n,r);if(0===a)return t;t-=(l(t,n,r)-e)/a}return t}(e,h,t,i):0===d?h:function(e,t,n,r,i){var a,s,o=0;do{(a=l(s=t+(n-t)/2,r,i)-e)>0?n=s:t=s}while(Math.abs(a)>1e-7&&++o<10);return s}(e,s,s+r,t,i)}},e}(),pooling={double:function(e){return e.concat(createSizedArray(e.length))}},poolFactory=function(e,t,n){var r=0,i=e,a=createSizedArray(i);return{newElement:function(){return r?a[r-=1]:t()},release:function(e){r===i&&(a=pooling.double(a),i*=2),n&&n(e),a[r]=e,r+=1}}},bezierLengthPool=poolFactory(8,function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}),segmentsLengthPool=poolFactory(8,function(){return{lengths:[],totalLength:0}},function(e){var t,n=e.lengths.length;for(t=0;t<n;t+=1)bezierLengthPool.release(e.lengths[t]);e.lengths.length=0});function bezFunction(){var e=Math;function t(e,t,n,r,i,a){var s=e*r+t*i+n*a-i*r-a*e-n*t;return s>-.001&&s<.001}var n=function(e,t,n,r){var i,a,s,o,l,c,u=getDefaultCurveSegments(),h=0,d=[],p=[],f=bezierLengthPool.newElement();for(s=n.length,i=0;i<u;i+=1){for(l=i/(u-1),c=0,a=0;a<s;a+=1)o=bmPow(1-l,3)*e[a]+3*bmPow(1-l,2)*l*n[a]+3*(1-l)*bmPow(l,2)*r[a]+bmPow(l,3)*t[a],d[a]=o,null!==p[a]&&(c+=bmPow(d[a]-p[a],2)),p[a]=d[a];c&&(h+=c=bmSqrt(c)),f.percents[i]=l,f.lengths[i]=h}return f.addedLength=h,f};function r(e){this.segmentLength=0,this.points=new Array(e)}function i(e,t){this.partialLength=e,this.point=t}var a=function(){var e={};return function(n,a,s,o){var l=(n[0]+"_"+n[1]+"_"+a[0]+"_"+a[1]+"_"+s[0]+"_"+s[1]+"_"+o[0]+"_"+o[1]).replace(/\./g,"p");if(!e[l]){var c,u,h,d,p,f,m,g=getDefaultCurveSegments(),v=0,y=null;2===n.length&&(n[0]!==a[0]||n[1]!==a[1])&&t(n[0],n[1],a[0],a[1],n[0]+s[0],n[1]+s[1])&&t(n[0],n[1],a[0],a[1],a[0]+o[0],a[1]+o[1])&&(g=2);var b=new r(g);for(h=s.length,c=0;c<g;c+=1){for(m=createSizedArray(h),p=c/(g-1),f=0,u=0;u<h;u+=1)d=bmPow(1-p,3)*n[u]+3*bmPow(1-p,2)*p*(n[u]+s[u])+3*(1-p)*bmPow(p,2)*(a[u]+o[u])+bmPow(p,3)*a[u],m[u]=d,null!==y&&(f+=bmPow(m[u]-y[u],2));v+=f=bmSqrt(f),b.points[c]=new i(f,m),y=m}b.segmentLength=v,e[l]=b}return e[l]}}();function s(e,t){var n=t.percents,r=t.lengths,i=n.length,a=bmFloor((i-1)*e),s=e*t.addedLength,o=0;if(a===i-1||0===a||s===r[a])return n[a];for(var l=r[a]>s?-1:1,c=!0;c;
vendor: 4,372 bytes, line 2
2)if(r[a]<=s&&r[a+1]>s?(o=(s-r[a])/(r[a+1]-r[a]),c=!1):a+=l,a<0||a>=i-1){if(a===i-1)return n[a];c=!1}return n[a]+(n[a+1]-n[a])*o}var o=createTypedArray("float32",8);return{getSegmentsLength:function(e){var t,r=segmentsLengthPool.newElement(),i=e.c,a=e.v,s=e.o,o=e.i,l=e._length,c=r.lengths,u=0;for(t=0;t<l-1;t+=1)c[t]=n(a[t],a[t+1],s[t],o[t+1]),u+=c[t].addedLength;return i&&l&&(c[t]=n(a[t],a[0],s[t],o[0]),u+=c[t].addedLength),r.totalLength=u,r},getNewSegment:function(t,n,r,i,a,l,c){a<0?a=0:a>1&&(a=1);var u,h=s(a,c),d=s(l=l>1?1:l,c),p=t.length,f=1-h,m=1-d,g=f*f*f,v=h*f*f*3,y=h*h*f*3,b=h*h*h,_=f*f*m,w=h*f*m+f*h*m+f*f*d,S=h*h*m+f*h*d+h*f*d,E=h*h*d,k=f*m*m,x=h*m*m+f*d*m+f*m*d,C=h*d*m+f*d*d+h*m*d,P=h*d*d,A=m*m*m,T=d*m*m+m*d*m+m*m*d,R=d*d*m+m*d*d+d*m*d,I=d*d*d;for(u=0;u<p;u+=1)o[4*u]=e.round(1e3*(g*t[u]+v*r[u]+y*i[u]+b*n[u]))/1e3,o[4*u+1]=e.round(1e3*(_*t[u]+w*r[u]+S*i[u]+E*n[u]))/1e3,o[4*u+2]=e.round(1e3*(k*t[u]+x*r[u]+C*i[u]+P*n[u]))/1e3,o[4*u+3]=e.round(1e3*(A*t[u]+T*r[u]+R*i[u]+I*n[u]))/1e3;return o},getPointInSegment:function(t,n,r,i,a,o){var l=s(a,o),c=1-l;return[e.round(1e3*(c*c*c*t[0]+(l*c*c+c*l*c+c*c*l)*r[0]+(l*l*c+c*l*l+l*c*l)*i[0]+l*l*l*n[0]))/1e3,e.round(1e3*(c*c*c*t[1]+(l*c*c+c*l*c+c*c*l)*r[1]+(l*l*c+c*l*l+l*c*l)*i[1]+l*l*l*n[1]))/1e3]},buildBezierData:a,pointOnLine2D:t,pointOnLine3D:function(n,r,i,a,s,o,l,c,u){if(0===i&&0===o&&0===u)return t(n,r,a,s,l,c);var h,d=e.sqrt(e.pow(a-n,2)+e.pow(s-r,2)+e.pow(o-i,2)),p=e.sqrt(e.pow(l-n,2)+e.pow(c-r,2)+e.pow(u-i,2)),f=e.sqrt(e.pow(l-a,2)+e.pow(c-s,2)+e.pow(u-o,2));return(h=d>p?d>f?d-p-f:f-p-d:f>p?f-p-d:p-d-f)>-1e-4&&h<1e-4}}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,t){var n,r=this.offsetTime;"multidimensional"===this.propType&&(n=createTypedArray("float32",this.pv.length));for(var i,a,s,o,l,c,u,h,d,p=t.lastIndex,f=p,m=this.keyframes.length-1,g=!0;g;){if(i=this.keyframes[f],a=this.keyframes[f+1],f===m-1&&e>=a.t-r){i.h&&(i=a),p=0;break}if(a.t-r>e){p=f;break}f<m-1?f+=1:(p=0,g=!1)}s=this.keyframesMetadata[f]||{};var v,y=a.t-r,b=i.t-r;if(i.to){s.bezierData||(s.bezierData=bez.buildBezierData(i.s,a.s||i.e,i.to,i.ti));var _=s.bezierData;if(e>=y||e<b){var w=e>=y?_.points.length-1:0;for(l=_.points[w].point.length,o=0;o<l;o+=1)n[o]=_.points[w].point[o]}else{s.__fnct?d=s.__fnct:(d=BezierFactory.getBezierEasing(i.o.x,i.o.y,i.i.x,i.i.y,i.n).get,s.__fnct=d),c=d((e-b)/(y-b));var S,E=_.segmentLength*c,k=t.lastFrame<e&&t._lastKeyframeIndex===f?t._lastAddedLength:0;for(h=t.lastFrame<e&&t._lastKeyframeIndex===f?t._lastPoint:0,g=!0,u=_.points.length;g;){if(k+=_.points[h].partialLength,0===E||0===c||h===_.points.length-1){for(l=_.points[h].point.length,o=0;o<l;o+=1)n[o]=_.points[h].point[o];break}if(E>=k&&E<k+_.points[h+1].partialLength){for(S=(E-k)/_.points[h+1].partialLength,l=_.points[h].point.length,o=0;o<l;o+=1)n[o]=_.points[h].point[o]+(_.points[h+1].point[o]-_.points[h].point[o])*S;break}h<u-1?h+=1:g=!1}t._lastPoint=h,t._lastAddedLength=k-_.points[h].partialLength,t._lastKeyframeIndex=f}}else{var x,C,P,A,T;if(m=i.s.length,v=a.s||i.e,this.sh&&1!==i.h)e>=y?(n[0]=v[0],n[1]=v[1],n[2]=v[2]):e<=b?(n[0]=i.s[0],n[1]=i.s[1],n[2]=i.s[2]):quaternionToEuler(n,slerp(createQuaternion(i.s),createQuaternion(v),(e-b)/(y-b)));else for(f=0;f<m;f+=1)1!==i.h&&(e>=y?c=1:e<b?c=0:(i.o.x.constructor===Array?(s.__fnct||(s.__fnct=[]),s.__fnct[f]?d=s.__fnct[f]:(x=void 0===i.o.x[f]?i.o.x[0]:i.o.x[f],C=void 0===i.o.y[f]?i.o.y[0]:i.o.y[f],P=void 0===i.i.x[f]?i.i.x[0]:i.i.x[f],A=void 0===i.i.y[f]?i.i.y[0]:i.i.y[f],d=BezierFactory.getBezierEasing(x,C,P,A).get,s.__fnct[f]=d)):s.__fnct?d=s.__fnct:(x=i.o.x,C=i.o.y,P=i.i.x,A=i.i.y,d=BezierFactory.getBezierEasing(x,C,P,A).get,i.keyframeMetadata=d),c=d((e-b)/(y-b)))),v=a.s||i.e,T=1===i.h?i.s[f]:i.s[f]+(v[f]-i.s[f])*c,"multidimensional"===this.propType?n[f]=T:n=T}return t.lastIndex=p,n}function slerp(e,t,n){var r,i,a,s,o,l=[],c=e[0],u=e[1],h=e[2],d=e[3],p=t[0],f=t[1],m=t[2],g=t[3];return(i=c*p+u*f+h*m+d*g)<0&&(i=-i,p=-p,f=-f,m=-m,g=-g),1-i>1e-6?(r=Math.acos(i),a=Math.sin(r),s=Math.sin((1-n)*r)/a,o=Math.sin(n*r)/a):(s=1-n,o=n),l[0]=s*c+o*p,l[1]=s*u+o*f,l[2]=s*h+o*m,l[3]=s*d+o*g,l}function quaternionToEuler(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],s=Math.atan2(2*r*a-2*n*i,1-2*r*r-2*i*i),o=Math.asin(2*n*r+2*i*a),l=Math.atan2(2*n*a-2*r*i,1-2*n*n-2*i*i);e[0]=s/degToRads,e[1]=o/degToRads,e[2]=l/degToRads}
vendor: 5,810 bytes, line 2
2function createQuaternion(e){var t=e[0]*degToRads,n=e[1]*degToRads,r=e[2]*degToRads,i=Math.cos(t/2),a=Math.cos(n/2),s=Math.cos(r/2),o=Math.sin(t/2),l=Math.sin(n/2),c=Math.sin(r/2);return[o*l*s+i*a*c,o*a*s+i*l*c,i*l*s-o*a*c,i*a*s-o*l*c]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=n&&e>=n||this._caching.lastFrame<t&&e<t))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var r=this.interpolateValue(e,this._caching);this.pv=r}return this._caching.lastFrame=e,this.pv}function setVValue(e){var t;if("unidimensional"===this.propType)t=e*this.mult,mathAbs(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var n=0,r=this.v.length;n<r;)t=e[n]*this.mult,mathAbs(this.v[n]-t)>1e-5&&(this.v[n]=t,this._mdf=!0),n+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e;this.lock=!0,this._mdf=this._isFirstFrame;var t=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)n=this.effectsSequence[e](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ValueProperty(e,t,n,r){this.propType="unidimensional",this.mult=n||1,this.data=t,this.v=n?t.k*n:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=r,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(e,t,n,r){var i;this.propType="multidimensional",this.mult=n||1,this.data=t,this._mdf=!1,this.elem=e,this.container=r,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var a=t.k.length;for(this.v=createTypedArray("float32",a),this.pv=createTypedArray("float32",a),this.vel=createTypedArray("float32",a),i=0;i<a;i+=1)this.v[i]=t.k[i]*this.mult,this.pv[i]=t.k[i];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,t,n,r){this.propType="unidimensional",this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=t,this.mult=n||1,this.elem=e,this.container=r,this.comp=e.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(e,t,n,r){var i;this.propType="multidimensional";var a,s,o,l,c=t.k.length;for(i=0;i<c-1;i+=1)t.k[i].to&&t.k[i].s&&t.k[i+1]&&t.k[i+1].s&&(a=t.k[i].s,s=t.k[i+1].s,o=t.k[i].to,l=t.k[i].ti,(2===a.length&&(a[0]!==s[0]||a[1]!==s[1])&&bez.pointOnLine2D(a[0],a[1],s[0],s[1],a[0]+o[0],a[1]+o[1])&&bez.pointOnLine2D(a[0],a[1],s[0],s[1],s[0]+l[0],s[1]+l[1])||3===a.length&&(a[0]!==s[0]||a[1]!==s[1]||a[2]!==s[2])&&bez.pointOnLine3D(a[0],a[1],a[2],s[0],s[1],s[2],a[0]+o[0],a[1]+o[1],a[2]+o[2])&&bez.pointOnLine3D(a[0],a[1],a[2],s[0],s[1],s[2],s[0]+l[0],s[1]+l[1],s[2]+l[2]))&&(t.k[i].to=null,t.k[i].ti=null),a[0]===s[0]&&a[1]===s[1]&&0===o[0]&&0===o[1]&&0===l[0]&&0===l[1]&&(2===a.length||a[2]===s[2]&&0===o[2]&&0===l[2])&&(t.k[i].to=null,t.k[i].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=t,this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=n||1,this.elem=e,this.container=r,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var u=t.k[0].s.length;for(this.v=createTypedArray("float32",u),this.pv=createTypedArray("float32",u),i=0;i<u;i+=1)this.v[i]=initFrame,this.pv[i]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",u)},this.addEffect=addEffect}var PropertyFactory={getProp:function(e,t,n,r,i){var a;if(t.sid&&(t=e.globalData.slotManager.getProp(t)),t.k.length)if("number"===typeof t.k[0])a=new MultiDimensionalProperty(e,t,r,i);else switch(n){case 0:a=new KeyframedValueProperty(e,t,r,i);break;case 1:a=new KeyframedMultidimensionalProperty(e,t,r,i)}else a=new ValueProperty(e,t,r,i);return a.effectsSequence.length&&i.addDynamicProperty(a),a}};function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&(this.dynamicProperties.push(e),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var e;this._mdf=!1;var t=this.dynamicProperties.length;for(e=0;e<t;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(e){this.container=e,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,function(){return createTypedArray("float32",2)});function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var n=0;n<t;)this.v[n]=pointPool.newElement(),this.o[n]=pointPool.newElement(),this.i[n]=pointPool.newElement(),n+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;
vendor: 12,105 bytes, line 2
2)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,t,n,r,i){var a;switch(this._length=Math.max(this._length,r+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[]}(!a[r]||a[r]&&!i)&&(a[r]=pointPool.newElement()),a[r][0]=e,a[r][1]=t},ShapePath.prototype.setTripleAt=function(e,t,n,r,i,a,s,o){this.setXYAt(e,t,"v",s,o),this.setXYAt(n,r,"o",s,o),this.setXYAt(i,a,"i",s,o)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,n=this.o,r=this.i,i=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],r[0][0],r[0][1],n[0][0],n[0][1],0,!1),i=1);var a,s=this._length-1,o=this._length;for(a=i;a<o;a+=1)e.setTripleAt(t[s][0],t[s][1],r[s][0],r[s][1],n[s][0],n[s][1],a,!1),s-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){var e=poolFactory(4,function(){return new ShapePath},function(e){var t,n=e._length;for(t=0;t<n;t+=1)pointPool.release(e.v[t]),pointPool.release(e.i[t]),pointPool.release(e.o[t]),e.v[t]=null,e.i[t]=null,e.o[t]=null;e._length=0,e.c=!1});return e.clone=function(t){var n,r=e.newElement(),i=void 0===t._length?t.v.length:t._length;for(r.setLength(i),r.c=t.c,n=0;n<i;n+=1)r.setTripleAt(t.v[n][0],t.v[n][1],t.o[n][0],t.o[n][1],t.i[n][0],t.i[n][1],n);return r},e}();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=function(){var e={newShapeCollection:function(){return t?r[t-=1]:new ShapeCollection},release:function(e){var i,a=e._length;for(i=0;i<a;i+=1)shapePool.release(e.shapes[i]);e._length=0,t===n&&(r=pooling.double(r),n*=2),r[t]=e,t+=1}},t=0,n=4,r=createSizedArray(n);return e}(),ShapePropertyFactory=function(){var e=-999999;function t(e,t,n){var r,i,a,s,o,l,c,u,h,d=n.lastIndex,p=this.keyframes;if(e<p[0].t-this.offsetTime)r=p[0].s[0],a=!0,d=0;else if(e>=p[p.length-1].t-this.offsetTime)r=p[p.length-1].s?p[p.length-1].s[0]:p[p.length-2].e[0],a=!0;else{for(var f,m,g,v=d,y=p.length-1,b=!0;b&&(f=p[v],!((m=p[v+1]).t-this.offsetTime>e));)v<y-1?v+=1:b=!1;if(g=this.keyframesMetadata[v]||{},d=v,!(a=1===f.h)){if(e>=m.t-this.offsetTime)u=1;else if(e<f.t-this.offsetTime)u=0;else{var _;g.__fnct?_=g.__fnct:(_=BezierFactory.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y).get,g.__fnct=_),u=_((e-(f.t-this.offsetTime))/(m.t-this.offsetTime-(f.t-this.offsetTime)))}i=m.s?m.s[0]:f.e[0]}r=f.s[0]}for(l=t._length,c=r.i[0].length,n.lastIndex=d,s=0;s<l;s+=1)for(o=0;o<c;o+=1)h=a?r.i[s][o]:r.i[s][o]+(i.i[s][o]-r.i[s][o])*u,t.i[s][o]=h,h=a?r.o[s][o]:r.o[s][o]+(i.o[s][o]-r.o[s][o])*u,t.o[s][o]=h,h=a?r.v[s][o]:r.v[s][o]+(i.v[s][o]-r.v[s][o])*u,t.v[s][o]=h}function n(){var t=this.comp.renderedFrame-this.offsetTime,n=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime,i=this._caching.lastFrame;return i!==e&&(i<n&&t<n||i>r&&t>r)||(this._caching.lastIndex=i<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}function r(){this.paths=this.localShapeCollection}function i(e){(function(e,t){if(e._length!==t._length||e.c!==t.c)return!1;var n,r=e._length;for(n=0;n<r;n+=1)if(e.v[n][0]!==t.v[n][0]||e.v[n][1]!==t.v[n][1]||e.o[n][0]!==t.o[n][0]||e.o[n][1]!==t.o[n][1]||e.i[n][0]!==t.i[n][0]||e.i[n][1]!==t.i[n][1])return!1;return!0})(this.v,e)||(this.v=shapePool.clone(e),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function a(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e,t;this.lock=!0,this._mdf=!1,e=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var n=this.effectsSequence.length;for(t=0;t<n;t+=1)e=this.effectsSequence[t](e);this.setVValue(e),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function s(e,t,n){this.propType="shape",this.comp=e.comp,this.container=e,this.elem=e,this.data=t,this.k=!1,this.kf=!1,this._mdf=!1;var i=3===n?t.pt.k:t.ks.k;this.v=shapePool.clone(i),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=r,this.effectsSequence=[]}function o(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function l(t,i,a){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=3===a?i.pt.k:i.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var s=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,s),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=r,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[n.bind(this)]}s.prototype.interpolateShape=t,s.prototype.getValue=a,s.prototype.setVValue=i,s.prototype.addEffect=o,l.prototype.getValue=a,l.prototype.interpolateShape=t,l.prototype.setVValue=i,l.prototype.addEffect=o;var c=function(){var e=roundCorner;function t(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=t.d,this.elem=e,this.comp=e.comp,this.frameId=-1,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return t.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var t=this.p.v[0],n=this.p.v[1],r=this.s.v[0]/2,i=this.s.v[1]/2,a=3!==this.d,s=this.v;s.v[0][0]=t,s.v[0][1]=n-i,s.v[1][0]=a?t+r:t-r,s.v[1][1]=n,s.v[2][0]=t,s.v[2][1]=n+i,s.v[3][0]=a?t-r:t+r,s.v[3][1]=n,s.i[0][0]=a?t-r*e:t+r*e,s.i[0][1]=n-i,s.i[1][0]=a?t+r:t-r,s.i[1][1]=n-i*e,s.i[2][0]=a?t+r*e:t-r*e,s.i[2][1]=n+i,s.i[3][0]=a?t-r:t+r,s.i[3][1]=n+i*e,s.o[0][0]=a?t+r*e:t-r*e,s.o[0][1]=n-i,s.o[1][0]=a?t+r:t-r,s.o[1][1]=n+i*e,s.o[2][0]=a?t-r*e:t+r*e,s.o[2][1]=n+i,s.o[3][0]=a?t-r:t+r,s.o[3][1]=n-i*e}},extendPrototype([DynamicPropertyContainer],t),t}(),u=function(){function e(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=e,this.comp=e.comp,this.data=t,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),1===t.sy?(this.ir=PropertyFactory.getProp(e,t.ir,0,0,this),this.is=PropertyFactory.getProp(e,t.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(e,t.pt,0,0,this),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,degToRads,this),this.or=PropertyFactory.getProp(e,t.or,0,0,this),this.os=PropertyFactory.getProp(e,t.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return e.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var e,t,n,r,i=2*Math.floor(this.pt.v),a=2*Math.PI/i,s=!0,o=this.or.v,l=this.ir.v,c=this.os.v,u=this.is.v,h=2*Math.PI*o/(2*i),d=2*Math.PI*l/(2*i),p=-Math.PI/2;p+=this.r.v;var f=3===this.data.d?-1:1;for(this.v._length=0,e=0;e<i;e+=1){n=s?c:u,r=s?h:d;var m=(t=s?o:l)*Math.cos(p),g=t*Math.sin(p),v=0===m&&0===g?0:g/Math.sqrt(m*m+g*g),y=0===m&&0===g?0:-m/Math.sqrt(m*m+g*g);m+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(m,g,m-v*r*n*f,g-y*r*n*f,m+v*r*n*f,g+y*r*n*f,e,!0),s=!s,p+=a*f}},convertPolygonToPath:function(){var e,t=Math.floor(this.pt.v),n=2*Math.PI/t,r=this.or.v,i=this.os.v,a=2*Math.PI*r/(4*t),s=.5*-Math.PI,o=3===this.data.d?-1:1;for(s+=this.r.v,this.v._length=0,e=0;e<t;e+=1){var l=r*Math.cos(s),c=r*Math.sin(s),u=0===l&&0===c?0:c/Math.sqrt(l*l+c*c),h=0===l&&0===c?0:-l/Math.sqrt(l*l+c*c);l+=+this.p.v[0],c+=+this.p.v[1],this.v.setTripleAt(l,c,l-u*a*i*o,c-h*a*i*o,l+u*a*i*o,c+h*a*i*o,e,!0),s+=n*o}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],e),e}(),h=function(){function e(e,t){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=e,this.comp=e.comp,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return e.prototype={convertRectToPath:function(){var e=this.p.v[0],t=this.p.v[1],n=this.s.v[0]/2,r=this.s.v[1]/2,i=bmMin(n,r,this.r.v),a=i*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(e+n,t-r+i,e+n,t-r+i,e+n,t-r+a,0,!0),this.v.setTripleAt(e+n,t+r-i,e+n,t+r-a,e+n,t+r-i,1,!0),0!==i?(this.v.setTripleAt(e+n-i,t+r,e+n-i,t+r,e+n-a,t+r,2,!0),this.v.setTripleAt(e-n+i,t+r,e-n+a,t+r,e-n+i,t+r,3,!0),this.v.setTripleAt(e-n,t+r-i,e-n,t+r-i,e-n,t+r-a,4,!0),this.v.setTripleAt(e-n,t-r+i,e-n,t-r+a,e-n,t-r+i,5,!0),this.v.setTripleAt(e-n+i,t-r,e-n+i,t-r,e-n+a,t-r,6,!0),this.v.setTripleAt(e+n-i,t-r,e+n-a,t-r,e+n-i,t-r,7,!0)):(this.v.setTripleAt(e-n,t+r,e-n+a,t+r,e-n,t+r,2),this.v.setTripleAt(e-n,t-r,e-n,t-r+a,e-n,t-r,3))):(this.v.setTripleAt(e+n,t-r+i,e+n,t-r+a,e+n,t-r+i,0,!0),0!==i?(this.v.setTripleAt(e+n-i,t-r,e+n-i,t-r,e+n-a,t-r,1,!0),this.v.setTripleAt(e-n+i,t-r,e-n+a,t-r,e-n+i,t-r,2,!0),this.v.setTripleAt(e-n,t-r+i,e-n,t-r+i,e-n,t-r+a,3,!0),this.v.setTripleAt(e-n,t+r-i,e-n,t+r-a,e-n,t+r-i,4,!0),this.v.setTripleAt(e-n+i,t+r,e-n+i,t+r,e-n+a,t+r,5,!0),this.v.setTripleAt(e+n-i,t+r,e+n-a,t+r,e+n-i,t+r,6,!0),this.v.setTripleAt(e+n,t+r-i,e+n,t+r-i,e+n,t+r-a,7,!0)):(this.v.setTripleAt(e-n,t-r,e-n+a,t-r,e-n,t-r,1,!0),this.v.setTripleAt(e-n,t+r,e-n,t+r-a,e-n,t+r,2,!0),this.v.setTripleAt(e+n,t+r,e+n-a,t+r,e+n,t+r,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:r},extendPrototype([DynamicPropertyContainer],e),e}(),d={getShapeProp:function(e,t,n){var r;return 3===n||4===n?r=(3===n?t.pt:t.ks).k.length?new l(e,t,n):new s(e,t,n):5===n?r=new h(e,t):6===n?r=new c(e,t):7===n&&(r=new u(e,t)),r.k&&e.addDynamicProperty(r),r},getConstructorFunction:function(){return s},getKeyframedConstructorFunction:function(){return l}};return d}(),Matrix=function(){var e=Math.cos,t=Math.sin,n=Math.tan,r=Math.round;function i(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function a(n){if(0===n)return this;var r=e(n),i=t(n);return this._t(r,-i,0,0,i,r,0,0,0,0,1,0,0,0,0,1)}
vendor: 9,760 bytes, line 2
2function s(n){if(0===n)return this;var r=e(n),i=t(n);return this._t(1,0,0,0,0,r,-i,0,0,i,r,0,0,0,0,1)}function o(n){if(0===n)return this;var r=e(n),i=t(n);return this._t(r,0,i,0,0,1,0,0,-i,0,r,0,0,0,0,1)}function l(n){if(0===n)return this;var r=e(n),i=t(n);return this._t(r,-i,0,0,i,r,0,0,0,0,1,0,0,0,0,1)}function c(e,t){return this._t(1,t,e,1,0,0)}function u(e,t){return this.shear(n(e),n(t))}function h(r,i){var a=e(i),s=t(i);return this._t(a,s,0,0,-s,a,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(r),1,0,0,0,0,1,0,0,0,0,1)._t(a,-s,0,0,s,a,0,0,0,0,1,0,0,0,0,1)}function d(e,t,n){return n||0===n||(n=1),1===e&&1===t&&1===n?this:this._t(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1)}function p(e,t,n,r,i,a,s,o,l,c,u,h,d,p,f,m){return this.props[0]=e,this.props[1]=t,this.props[2]=n,this.props[3]=r,this.props[4]=i,this.props[5]=a,this.props[6]=s,this.props[7]=o,this.props[8]=l,this.props[9]=c,this.props[10]=u,this.props[11]=h,this.props[12]=d,this.props[13]=p,this.props[14]=f,this.props[15]=m,this}function f(e,t,n){return n=n||0,0!==e||0!==t||0!==n?this._t(1,0,0,0,0,1,0,0,0,0,1,0,e,t,n,1):this}function m(e,t,n,r,i,a,s,o,l,c,u,h,d,p,f,m){var g=this.props;if(1===e&&0===t&&0===n&&0===r&&0===i&&1===a&&0===s&&0===o&&0===l&&0===c&&1===u&&0===h)return g[12]=g[12]*e+g[15]*d,g[13]=g[13]*a+g[15]*p,g[14]=g[14]*u+g[15]*f,g[15]*=m,this._identityCalculated=!1,this;var v=g[0],y=g[1],b=g[2],_=g[3],w=g[4],S=g[5],E=g[6],k=g[7],x=g[8],C=g[9],P=g[10],A=g[11],T=g[12],R=g[13],I=g[14],D=g[15];return g[0]=v*e+y*i+b*l+_*d,g[1]=v*t+y*a+b*c+_*p,g[2]=v*n+y*s+b*u+_*f,g[3]=v*r+y*o+b*h+_*m,g[4]=w*e+S*i+E*l+k*d,g[5]=w*t+S*a+E*c+k*p,g[6]=w*n+S*s+E*u+k*f,g[7]=w*r+S*o+E*h+k*m,g[8]=x*e+C*i+P*l+A*d,g[9]=x*t+C*a+P*c+A*p,g[10]=x*n+C*s+P*u+A*f,g[11]=x*r+C*o+P*h+A*m,g[12]=T*e+R*i+I*l+D*d,g[13]=T*t+R*a+I*c+D*p,g[14]=T*n+R*s+I*u+D*f,g[15]=T*r+R*o+I*h+D*m,this._identityCalculated=!1,this}function g(e){var t=e.props;return this.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function v(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function y(e){for(var t=0;t<16;){if(e.props[t]!==this.props[t])return!1;t+=1}return!0}function b(e){var t;for(t=0;t<16;t+=1)e.props[t]=this.props[t];return e}function _(e){var t;for(t=0;t<16;t+=1)this.props[t]=e[t]}function w(e,t,n){return{x:e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12],y:e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13],z:e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]}}function S(e,t,n){return e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12]}function E(e,t,n){return e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13]}function k(e,t,n){return e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]}function x(){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],t=this.props[5]/e,n=-this.props[1]/e,r=-this.props[4]/e,i=this.props[0]/e,a=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,s=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e,o=new Matrix;return o.props[0]=t,o.props[1]=n,o.props[4]=r,o.props[5]=i,o.props[12]=a,o.props[13]=s,o}function C(e){return this.getInverseMatrix().applyToPointArray(e[0],e[1],e[2]||0)}function P(e){var t,n=e.length,r=[];for(t=0;t<n;t+=1)r[t]=C(e[t]);return r}function A(e,t,n){var r=createTypedArray("float32",6);if(this.isIdentity())r[0]=e[0],r[1]=e[1],r[2]=t[0],r[3]=t[1],r[4]=n[0],r[5]=n[1];else{var i=this.props[0],a=this.props[1],s=this.props[4],o=this.props[5],l=this.props[12],c=this.props[13];r[0]=e[0]*i+e[1]*s+l,r[1]=e[0]*a+e[1]*o+c,r[2]=t[0]*i+t[1]*s+l,r[3]=t[0]*a+t[1]*o+c,r[4]=n[0]*i+n[1]*s+l,r[5]=n[0]*a+n[1]*o+c}return r}function T(e,t,n){return this.isIdentity()?[e,t,n]:[e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12],e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13],e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]]}function R(e,t){if(this.isIdentity())return e+","+t;var n=this.props;return Math.round(100*(e*n[0]+t*n[4]+n[12]))/100+","+Math.round(100*(e*n[1]+t*n[5]+n[13]))/100}function I(){for(var e=0,t=this.props,n="matrix3d(";e<16;)n+=r(1e4*t[e])/1e4,n+=15===e?")":",",e+=1;return n}function D(e){return e<1e-6&&e>0||e>-1e-6&&e<0?r(1e4*e)/1e4:e}function M(){var e=this.props;return"matrix("+D(e[0])+","+D(e[1])+","+D(e[4])+","+D(e[5])+","+D(e[12])+","+D(e[13])+")"}return function(){this.reset=i,this.rotate=a,this.rotateX=s,this.rotateY=o,this.rotateZ=l,this.skew=u,this.skewFromAxis=h,this.shear=c,this.scale=d,this.setTransform=p,this.translate=f,this.transform=m,this.multiply=g,this.applyToPoint=w,this.applyToX=S,this.applyToY=E,this.applyToZ=k,this.applyToPointArray=T,this.applyToTriplePoints=A,this.applyToPointStringified=R,this.toCSS=I,this.to2dCSS=M,this.clone=b,this.cloneFromProps=_,this.equals=y,this.inversePoints=P,this.inversePoint=C,this.getInverseMatrix=x,this._t=this.transform,this.isIdentity=v,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){return _typeof$3="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},_typeof$3(e)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(e){setLocationHref(e)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return!0===standalone&&(e.animationData=JSON.parse(animationData)),animationManager.loadAnimation(e)}function setQuality(e){if("string"===typeof e)switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return"undefined"!==typeof navigator}function installPlugin(e,t){"expressions"===e&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),n=0;n<t.length;n+=1){var r=t[n].split("=");if(decodeURIComponent(r[0])==e)return decodeURIComponent(r[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.13.0";var queryString="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{"object"!==_typeof$3(exports)&&__webpack_require__.amdO}catch(err){}var ShapeModifiers=function(){var e={},t={};return e.registerModifier=function(e,n){t[e]||(t[e]=n)},e.getModifier=function(e,n,r){return new t[e](n,r)},e}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=Pro
vendor: 5,993 bytes, line 2
2pertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,n,r,i){var a=[];t<=1?a.push({s:e,e:t}):e>=1?a.push({s:e-1,e:t-1}):(a.push({s:e,e:1}),a.push({s:0,e:t-1}));var s,o,l=[],c=a.length;for(s=0;s<c;s+=1){var u,h;(o=a[s]).e*i<r||o.s*i>r+n||(u=o.s*i<=r?0:(o.s*i-r)/n,h=o.e*i>=r+n?1:(o.e*i-r)/n,l.push([u,h]))}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(e){var t,n=e.length;for(t=0;t<n;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,n,r,i;if(this._mdf||e){var a=this.o.v%360/360;if(a<0&&(a+=1),(t=this.s.v>1?1+a:this.s.v<0?0+a:this.s.v+a)>(n=this.e.v>1?1+a:this.e.v<0?0+a:this.e.v+a)){var s=t;t=n,n=s}t=1e-4*Math.round(1e4*t),n=1e-4*Math.round(1e4*n),this.sValue=t,this.eValue=n}else t=this.sValue,n=this.eValue;var o,l,c,u,h,d=this.shapes.length,p=0;if(n===t)for(i=0;i<d;i+=1)this.shapes[i].localShapeCollection.releaseShapes(),this.shapes[i].shape._mdf=!0,this.shapes[i].shape.paths=this.shapes[i].localShapeCollection,this._mdf&&(this.shapes[i].pathsData.length=0);else if(1===n&&0===t||0===n&&1===t){if(this._mdf)for(i=0;i<d;i+=1)this.shapes[i].pathsData.length=0,this.shapes[i].shape._mdf=!0}else{var f,m,g=[];for(i=0;i<d;i+=1)if((f=this.shapes[i]).shape._mdf||this._mdf||e||2===this.m){if(l=(r=f.shape.paths)._length,h=0,!f.shape._mdf&&f.pathsData.length)h=f.totalShapeLength;else{for(c=this.releasePathsData(f.pathsData),o=0;o<l;o+=1)u=bez.getSegmentsLength(r.shapes[o]),c.push(u),h+=u.totalLength;f.totalShapeLength=h,f.pathsData=c}p+=h,f.shape._mdf=!0}else f.shape.paths=f.localShapeCollection;var v,y=t,b=n,_=0;for(i=d-1;i>=0;i-=1)if((f=this.shapes[i]).shape._mdf){for((m=f.localShapeCollection).releaseShapes(),2===this.m&&d>1?(v=this.calculateShapeEdges(t,n,f.totalShapeLength,_,p),_+=f.totalShapeLength):v=[[y,b]],l=v.length,o=0;o<l;o+=1){y=v[o][0],b=v[o][1],g.length=0,b<=1?g.push({s:f.totalShapeLength*y,e:f.totalShapeLength*b}):y>=1?g.push({s:f.totalShapeLength*(y-1),e:f.totalShapeLength*(b-1)}):(g.push({s:f.totalShapeLength*y,e:f.totalShapeLength}),g.push({s:0,e:f.totalShapeLength*(b-1)}));var w=this.addShapes(f,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(f.shape.paths.shapes[f.shape.paths._length-1].c){var S=w.pop();this.addPaths(w,m),w=this.addShapes(f,g[1],S)}else this.addPaths(w,m),w=this.addShapes(f,g[1]);this.addPaths(w,m)}}f.shape.paths=m}}},TrimModifier.prototype.addPaths=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)t.addShape(e[n])},TrimModifier.prototype.addSegment=function(e,t,n,r,i,a,s){i.setXYAt(t[0],t[1],"o",a),i.setXYAt(n[0],n[1],"i",a+1),s&&i.setXYAt(e[0],e[1],"v",a),i.setXYAt(r[0],r[1],"v",a+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,n,r){t.setXYAt(e[1],e[5],"o",n),t.setXYAt(e[2],e[6],"i",n+1),r&&t.setXYAt(e[0],e[4],"v",n),t.setXYAt(e[3],e[7],"v",n+1)},TrimModifier.prototype.addShapes=function(e,t,n){var r,i,a,s,o,l,c,u,h=e.pathsData,d=e.shape.paths.shapes,p=e.shape.paths._length,f=0,m=[],g=!0;for(n?(o=n._length,u=n._length):(n=shapePool.newElement(),o=0,u=0),m.push(n),r=0;r<p;r+=1){for(l=h[r].lengths,n.c=d[r].c,a=d[r].c?l.length:l.length+1,i=1;i<a;i+=1)if(f+(s=l[i-1]).addedLength<t.s)f+=s.addedLength,n.c=!1;else{if(f>t.e){n.c=!1;break}t.s<=f&&t.e>=f+s.addedLength?(this.addSegment(d[r].v[i-1],d[r].o[i-1],d[r].i[i],d[r].v[i],n,o,g),g=!1):(c=bez.getNewSegment(d[r].v[i-1],d[r].v[i],d[r].o[i-1],d[r].i[i],(t.s-f)/s.addedLength,(t.e-f)/s.addedLength,l[i-1]),this.addSegmentFromArray(c,n,o,g),g=!1,n.c=!1),f+=s.addedLength,o+=1}if(d[r].c&&l.length){if(s=l[i-1],f<=t.e){var v=l[i-1].addedLength;t.s<=f&&t.e>=f+v?(this.addSegment(d[r].v[i-1],d[r].o[i-1],d[r].i[0],d[r].v[0],n,o,g),g=!1):(c=bez.getNewSegment(d[r].v[i-1],d[r].v[0],d[r].o[i-1],d[r].i[0],(t.s-f)/v,(t.e-f)/v,l[i-1]),this.addSegmentFromArray(c,n,o,g),g=!1,n.c=!1)}else n.c=!1;f+=s.addedLength,o+=1}if(n._length&&(n.setXYAt(n.v[u][0],n.v[u][1],"i",u),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),f>t.e)break;r<p-1&&(n=shapePool.newElement(),g=!0,m.push(n),o=0)}return m},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var n=t/100,r=[0,0],i=e._length,a=0;for(a=0;a<i;a+=1)r[0]+=e.v[a][0],r[1]+=e.v[a][1];r[0]/=i,r[1]/=i;var s,o,l,c,u,h,d=shapePool.newElement();for(d.c=e.c,a=0;a<i;a+=1)s=e.v[a][0]+(r[0]-e.v[a][0])*n,o=e.v[a][1]+(r[1]-e.v[a][1])*n,l=e.o[a][0]+(r[0]-e.o[a][0])*-n,c=e.o[a][1]+(r[1]-e.o[a][1])*-n,u=e.i[a][0]+(r[0]-e.i[a][0])*-n,h=e.i[a][1]+(r[1]-e.i[a][1])*-n,d.setTripleAt(s,o,l,c,u,h,a);return d},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,n,r,i,a,s,o=this.shapes.length,l=this.amount.v;if(0!==l)for(n=0;n<o;n+=1){if(s=(a=this.shapes[n]).localShapeCollection,a.shape._mdf||this._mdf||e)for(s.releaseShapes(),a.shape._mdf=!0,t=a.shape.paths.shapes,i=a.shape.paths._length,r=0;r<i;r+=1)s.addShape(this.processPath(t[r],l));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function t(e,t,n){if(this.elem=e,this.frameId=-1,this.propType="transform",this.data=t,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(n||e),t.p&&t.p.s?(this.px=PropertyFactory.getProp(e,t.p.x,0,0,this),this.py=PropertyFactory.getProp(e,t.p.y,0,0,this),t.p.z&&(this.pz=PropertyFactory.getProp(e,t.p.z,0,0,this))):this.p=PropertyFactory.getProp(e,t.p||{k:[0,0,0]}
vendor: 28,561 bytes, line 2
2,1,0,this),t.rx){if(this.rx=PropertyFactory.getProp(e,t.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(e,t.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(e,t.rz,0,degToRads,this),t.or.k[0].ti){var r,i=t.or.k.length;for(r=0;r<i;r+=1)t.or.k[r].to=null,t.or.k[r].ti=null}this.or=PropertyFactory.getProp(e,t.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(e,t.r||{k:0},0,degToRads,this);t.sk&&(this.sk=PropertyFactory.getProp(e,t.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(e,t.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(e,t.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(e,t.s||{k:[100,100,100]},1,.01,this),t.o?this.o=PropertyFactory.getProp(e,t.o,0,.01,e):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return t.prototype={applyToMatrix:function(e){var t=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||t,this.a&&e.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&e.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&e.skewFromAxis(-this.sk.v,this.sa.v),this.r?e.rotate(-this.r.v):e.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?e.translate(this.px.v,this.py.v,-this.pz.v):e.translate(this.px.v,this.py.v,0):e.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(t){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||t){var n;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var r,i;if(n=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(r=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/n,0),i=this.p.getValueAtTime(this.p.keyframes[0].t/n,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(r=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/n,0),i=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/n,0)):(r=this.p.pv,i=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/n,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){r=[],i=[];var a=this.px,s=this.py;a._caching.lastFrame+a.offsetTime<=a.keyframes[0].t?(r[0]=a.getValueAtTime((a.keyframes[0].t+.01)/n,0),r[1]=s.getValueAtTime((s.keyframes[0].t+.01)/n,0),i[0]=a.getValueAtTime(a.keyframes[0].t/n,0),i[1]=s.getValueAtTime(s.keyframes[0].t/n,0)):a._caching.lastFrame+a.offsetTime>=a.keyframes[a.keyframes.length-1].t?(r[0]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/n,0),r[1]=s.getValueAtTime(s.keyframes[s.keyframes.length-1].t/n,0),i[0]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/n,0),i[1]=s.getValueAtTime((s.keyframes[s.keyframes.length-1].t-.01)/n,0)):(r=[a.pv,s.pv],i[0]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/n,a.offsetTime),i[1]=s.getValueAtTime((s._caching.lastFrame+s.offsetTime-.01)/n,s.offsetTime))}else r=i=e;this.v.rotate(-Math.atan2(r[1]-i[1],r[0]-i[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],t),t.prototype.addDynamicProperty=function(e){this._addDynamicProperty(e),this.elem.addDynamicProperty(e),this._isDirty=!0},t.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(e,n,r){return new t(e,n,r)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(e,t){return 1e5*Math.abs(e-t)<=Math.min(Math.abs(e),Math.abs(t))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,t,n){return e*(1-n)+t*n}function lerpPoint(e,t,n){return[lerp(e[0],t[0],n),lerp(e[1],t[1],n)]}function quadRoots(e,t,n){if(0===e)return[];var r=t*t-4*e*n;if(r<0)return[];var i=-t/(2*e);if(0===r)return[i];var a=Math.sqrt(r)/(2*e);return[i-a,i+a]}function polynomialCoefficients(e,t,n,r){return[3*t-e-3*n+r,3*e-6*t+3*n,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,n,r,i){i&&pointEqual(e,t)&&(t=lerpPoint(e,r,1/3)),i&&pointEqual(n,r)&&(n=lerpPoint(e,r,2/3));var a=polynomialCoefficients(e[0],t[0],n[0],r[0]),s=polynomialCoefficients(e[1],t[1],n[1],r[1]);this.a=[a[0],s[0]],this.b=[a[1],s[1]],this.c=[a[2],s[2]],this.d=[a[3],s[3]],this.points=[e,t,n,r]}function extrema(e,t){var n=e.points[0][t],r=e.points[e.points.length-1][t];if(n>r){var i=r;r=n,n=i}for(var a=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),s=0;s<a.length;s+=1)if(a[s]>0&&a[s]<1){var o=e.point(a[s])[t];o<n?n=o:o>r&&(r=o)}return{min:n,max:r}}function intersectData(e,t,n){var r=e.boundingBox();return{cx:r.cx,cy:r.cy,width:r.width,height:r.height,bez:e,t:(t+n)/2,t1:t,t2:n}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return 2*Math.abs(e.cx-t.cx)<e.width+t.width&&2*Math.abs(e.cy-t.cy)<e.height+t.height}function intersectsImpl(e,t,n,r,i,a){if(boxIntersect(e,t))if(n>=a||e.width<=r&&e.height<=r&&t.width<=r&&t.height<=r)i.push([e.t,t.t]);else{var s=splitData(e),o=splitData(t);intersectsImpl(s[0],o[0],n+1,r,i,a),intersectsImpl(s[0],o[1],n+1,r,i,a),intersectsImpl(s[1],o[0],n+1,r,i,a),intersectsImpl(s[1],o[1],n+1,r,i,a)}}function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,n,r){var i=[e[0],e[1],1],a=[t[0],t[1],1],s=[n[0],n[1],1],o=[r[0],r[1],1],l=crossProduct(crossProduct(i,a),crossProduct(s,o));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(e,t,n){return[e[0]+Math.cos(t)*n,e[1]-Math.sin(t)*n]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}function setPoint(e,t,n,r,i,a,s){var o=n-Math.PI/2,l=n+Math.PI/2,c=t[0]+Math.cos(n)*r*i,u=t[1]-Math.sin(n)*r*i;e.setTripleAt(c,u,c+Math.cos(o)*a,u-Math.sin(o)*a,c+Math.cos(l)*s,u-Math.sin(l)*s,e.length())}function getPerpendicularVector(e,t){var n=[t[0]-e[0],t[1]-e[1]],r=.5*-Math.PI;return[Math.cos(r)*n[0]-Math.sin(r)*n[1],Math.sin(r)*n[0]+Math.cos(r)*n[1]]}function getProjectingAngle(e,t){var n=0===t?e.length()-1:t-1,r=(t+1)%e.length(),i=getPerpendicularVector(e.v[n],e.v[r]);return Math.atan2(0,1)-Math.atan2(i[1],i[0])}function zigZagCorner(e,t,n,r,i,a,s){var o=getProjectingAngle(t,n),l=t.v[n%t._length],c=t.v[0===n?t._length-1:n-1],u=t.v[(n+1)%t._length],h=2===a?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0,d=2===a?Math.sqrt(Math.pow(l[0]-u[0],2)+Math.pow(l[1]-u[1],2)):0;setPoint(e,t.v[n%t._length],o,s,r,d/(2*(i+1)),h/(2*(i+1)),a)}function zigZagSegment(e,t,n,r,i,a){for(var s=0;s<r;s+=1){var o=(s+1)/(r+1),l=2===i?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,c=t.normalAngle(o);setPoint(e,t.point(o),c,a,n,l/(2*(r+1)),l/(2*(r+1)),i),a=-a}return a}function linearOffset(e,t,n){var r=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,r,n),polarOffset(t,r,n)]}function offsetSegment(e,t){var n,r,i,a,s,o,l;n=(l=linearOffset(e.points[0],e.points[1],t))[0],r=l[1],i=(l=linearOffset(e.points[1],e.points[2],t))[0],a=l[1],s=(l=linearOffset(e.points[2],e.points[3],t))[0],o=l[1];var c=lineIntersection(n,r,i,a);null===c&&(c=r);var u=lineIntersection(s,o,i,a);return null===u&&(u=s),new PolynomialBezier(n,c,u,o)}function joinLines(e,t,n,r,i){var a=t.points[3],s=n.points[0];if(3===r)return a;if(pointEqual(a,s))return a;if(2===r){var o=-t.tangentAngle(1),l=-n.tangentAngle(0)+Math.PI,c=lineIntersection(a,polarOffset(a,o+Math.PI/2,100),s,polarOffset(s,o+Math.PI/2,100)),u=c?pointDistance(c,a):pointDistance(a,s)/2,h=polarOffset(a,o,2*u*roundCorner);return e.setXYAt(h[0],h[1],"o",e.length()-1),h=polarOffset(s,l,2*u*roundCorner),e.setTripleAt(s[0],s[1],s[0],s[1],h[0],h[1],e.length()),s}var d=lineIntersection(pointEqual(a,t.points[2])?t.points[0]:t.points[2],a,s,pointEqual(s,n.points[1])?n.points[3]:n.points[1]);return d&&pointDistance(d,a)<i?(e.setTripleAt(d[0],d[1],d[0],d[1],d[0],d[1],e.length()),d):a}function getIntersection(e,t){var n=e.intersections(t);return n.length&&floatEqual(n[0][0],1)&&n.shift(),n.length?n[0]:null}function pruneSegmentIntersection(e,t){var n=e.slice(),r=t.slice(),i=getIntersection(e[e.length-1],t[0]);return i&&(n[e.length-1]=e[e.length-1].split(i[0])[0],r[0]=t[0].split(i[1])[1]),e.length>1&&t.length>1&&(i=getIntersection(e[0],t[t.length-1]))?[[e[0].split(i[0])[0]],[t[t.length-1].split(i[1])[1]]]:[n,r]}function pruneIntersections(e){for(var t,n=1;n<e.length;n+=1)t=pruneSegmentIntersection(e[n-1],e[n]),e[n-1]=t[0],e[n]=t[1];return e.length>1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var n,r,i,a,s=e.inflectionPoints();if(0===s.length)return[offsetSegment(e,t)];if(1===s.length||floatEqual(s[1],1))return n=(i=e.split(s[0]))[0],r=i[1],[offsetSegment(n,t),offsetSegment(r,t)];n=(i=e.split(s[0]))[0];var o=(s[1]-s[0])/(1-s[0]);return a=(i=i[1].split(o))[0],r=i[1],[offsetSegment(n,t),offsetSegment(a,t),offsetSegment(r,t)]}function OffsetPathModifier(){}function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],n="normal",r="normal",i=t.length,a=0;a<i;a+=1)switch(t[a].toLowerCase()){case"italic":r="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200"}return{style:r,weight:e.fWeight||n}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,t,n,r,i,a){var s=a?-1:1,o=r.s.v[0]+(1-r.s.v[0])*(1-i),l=r.s.v[1]+(1-r.s.v[1])*(1-i);e.translate(r.p.v[0]*s*i,r.p.v[1]*s*i,r.p.v[2]),t.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),t.rotate(-r.r.v*s*i),t.translate(r.a.v[0],r.a.v[1],r.a.v[2]),n.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),n.scale(a?1/o:o,a?1/l:l),n.translate(r.a.v[0],r.a.v[1],r.a.v[2])},RepeaterModifier.prototype.init=function(e,t,n,r){for(this.elem=e,this.arr=t,this.pos=n,this.elemsData=r,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[n]);n>0;)n-=1,this._elements.unshift(t[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t]._processed=!1,"gr"===e[t].ty&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)e[n]._render=t,"gr"===e[n].ty&&this.changeGroupRender(e[n].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,n,r,i,a,s=!1;if(this._mdf||e){var o,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var c={it:this.cloneElements(this._elements),ty:"gr"};c.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,c),this._groups.splice(0,0,c),this._currentCopies+=1}this.elem.reloadShapes(),s=!0}for(a=0,r=0;r<=this._groups.length-1;r+=1){if(o=a<l,this._groups[r]._render=o,this.changeGroupRender(this._groups[r].it,o),!o){var u=this.elemsData[r].it,h=u[u.length-1];0!==h.transform.op.v?(h.transform.op._mdf=!0,h.transform.op.v=0):h.transform.op._mdf=!1}a+=1}this._currentCopies=l;var d=this.o.v,p=d%1,f=d>0?Math.floor(d):Math.ceil(d),m=this.pMatrix.props,g=this.rMatrix.props,v=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var y,b,_=0;if(d>0){for(;_<f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),_+=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,p,!1),_+=p)}else if(d<0){for(;_>f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),_-=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-p,!0),_-=p)}for(r=1===this.data.m?0:this._currentCopies-1,i=1===this.data.m?1:-1,a=this._currentCopies;a;){if(b=(n=(t=this.elemsData[r].it)[t.length-1].transform.mProps.v.props).length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(r/(this._currentCopies-1)),0!==_){for((0!==r&&1===i||r!==this._currentCopies-1&&-1===i)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),y=0;y<b;y+=1)n[y]=this.matrix.props[y];this.matrix.reset()}else for(this.matrix.reset(),y=0;y<b;y+=1)n[y]=this.matrix.props[y];_+=1,a-=1,r+=i}}else for(a=this._currentCopies,r=0,i=1;a;)n=(t=this.elemsData[r].it)[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,a-=1,r+=i;return s},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var n,r=shapePool.newElement();r.c=e.c;var i,a,s,o,l,c,u,h,d,p,f,m,g=e._length,v=0;for(n=0;n<g;n+=1)i=e.v[n],s=e.o[n],a=e.i[n],i[0]===s[0]&&i[1]===s[1]&&i[0]===a[0]&&i[1]===a[1]?0!==n&&n!==g-1||e.c?(o=0===n?e.v[g-1]:e.v[n-1],c=(l=Math.sqrt(Math.pow(i[0]-o[0],2)+Math.pow(i[1]-o[1],2)))?Math.min(l/2,t)/l:0,u=f=i[0]+(o[0]-i[0])*c,h=m=i[1]-(i[1]-o[1])*c,d=u-(u-i[0])*roundCorner,p=h-(h-i[1])*roundCorner,r.setTripleAt(u,h,d,p,f,m,v),v+=1,o=n===g-1?e.v[0]:e.v[n+1],c=(l=Math.sqrt(Math.pow(i[0]-o[0],2)+Math.pow(i[1]-o[1],2)))?Math.min(l/2,t)/l:0,u=d=i[0]+(o[0]-i[0])*c,h=p=i[1]+(o[1]-i[1])*c,f=u-(u-i[0])*roundCorner,m=h-(h-i[1])*roundCorner,r.setTripleAt(u,h,d,p,f,m,v),v+=1):(r.setTripleAt(i[0],i[1],s[0],s[1],a[0],a[1],v),v+=1):(r.setTripleAt(e.v[n][0],e.v[n][1],e.o[n][0],e.o[n][1],e.i[n][0],e.i[n][1],v),v+=1);return r},RoundCornersModifier.prototype.processShapes=function(e){var t,n,r,i,a,s,o=this.shapes.length,l=this.rd.v;if(0!==l)for(n=0;n<o;n+=1){if(s=(a=this.shapes[n]).localShapeCollection,a.shape._mdf||this._mdf||e)for(s.releaseShapes(),a.shape._mdf=!0,t=a.shape.paths.shapes,i=a.shape.paths._length,r=0;r<i;r+=1)s.addShape(this.processPath(t[r],l));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var t=this.derivative(e);return Math.atan2(t[1],t[0])},PolynomialBezier.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,n=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(n<0)return[];var r=Math.sqrt(n);return floatZero(r)?r>0&&r<1?[t]:[]:[t-r,t+r].filter(function(e){return e>0&&e<1})},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var t=lerpPoint(this.points[0],this.points[1],e),n=lerpPoint(this.points[1],this.points[2],e),r=lerpPoint(this.points[2],this.points[3],e),i=lerpPoint(t,n,e),a=lerpPoint(n,r,e),s=lerpPoint(i,a,e);return[new PolynomialBezier(this.points[0],t,i,s,!0),new PolynomialBezier(s,a,r,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}},PolynomialBezier.prototype.intersections=function(e,t,n){void 0===t&&(t=2),void 0===n&&(n=7);var r=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,r,n),r},PolynomialBezier.shapeSegment=function(e,t){var n=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[n],e.v[n],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var n=(t+1)%e.length();return new PolynomialBezier(e.v[n],e.i[n],e.o[t],e.v[t],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(e,t,n,r){var i=e._length,a=shapePool.newElement();if(a.c=e.c,e.c||(i-=1),0===i)return a;var s=-1,o=PolynomialBezier.shapeSegment(e,0);zigZagCorner(a,e,0,t,n,r,s);for(var l=0;l<i;l+=1)s=zigZagSegment(a,o,t,n,r,-s),o=l!==i-1||e.c?PolynomialBezier.shapeSegment(e,(l+1)%i):null,zigZagCorner(a,e,l+1,t,n,r,s);return a},ZigZagModifier.prototype.processShapes=function(e){var t,n,r,i,a,s,o=this.shapes.length,l=this.amplitude.v,c=Math.max(0,Math.round(this.frequency.v)),u=this.pointsType.v;if(0!==l)for(n=0;n<o;n+=1){if(s=(a=this.shapes[n]).localShapeCollection,a.shape._mdf||this._mdf||e)for(s.releaseShapes(),a.shape._mdf=!0,t=a.shape.paths.shapes,i=a.shape.paths._length,r=0;r<i;r+=1)s.addShape(this.processPath(t[r],l,c,u));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(e,t,n,r){var i=shapePool.newElement();i.c=e.c;var a,s,o,l=e.length();e.c||(l-=1);var c=[];for(a=0;a<l;a+=1)o=PolynomialBezier.shapeSegment(e,a),c.push(offsetSegmentSplit(o,t));if(!e.c)for(a=l-1;a>=0;a-=1)o=PolynomialBezier.shapeSegmentInverted(e,a),c.push(offsetSegmentSplit(o,t));c=pruneIntersections(c);var u=null,h=null;for(a=0;a<c.length;a+=1){var d=c[a];for(h&&(u=joinLines(i,h,d[0],n,r)),h=d[d.length-1],s=0;s<d.length;s+=1)o=d[s],u&&pointEqual(o.points[0],u)?i.setXYAt(o.points[1][0],o.points[1][1],"o",i.length()-1):i.setTripleAt(o.points[0][0],o.points[0][1],o.points[1][0],o.points[1][1],o.points[0][0],o.points[0][1],i.length()),i.setTripleAt(o.points[3][0],o.points[3][1],o.points[3][0],o.points[3][1],o.points[2][0],o.points[2][1],i.length()),u=o.points[3]}return c.length&&joinLines(i,h,c[0][0],n,r),i},OffsetPathModifier.prototype.processShapes=function(e){var t,n,r,i,a,s,o=this.shapes.length,l=this.amount.v,c=this.miterLimit.v,u=this.lineJoin;if(0!==l)for(n=0;n<o;n+=1){if(s=(a=this.shapes[n]).localShapeCollection,a.shape._mdf||this._mdf||e)for(s.releaseShapes(),a.shape._mdf=!0,t=a.shape.paths.shapes,i=a.shape.paths._length,r=0;r<i;r+=1)s.addShape(this.processPath(t[r],l,u,c));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var e={w:0,size:0,shapes:[],data:{shapes:[]}},t=[];t=t.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var n=127988,r=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function i(e,t){var n=createTag("span");n.setAttribute("aria-hidden",!0),n.style.fontFamily=t;var r=createTag("span");r.innerText="giItT1WQy@!-/#",n.style.position="absolute",n.style.left="-10000px",n.style.top="-10000px",n.style.fontSize="300px",n.style.fontVariant="normal",n.style.fontStyle="normal",n.style.fontWeight="normal",n.style.letterSpacing="0",n.appendChild(r),document.body.appendChild(n);var i=r.offsetWidth;return r.style.fontFamily=function(e){var t,n=e.split(","),r=n.length,i=[];for(t=0;t<r;t+=1)"sans-serif"!==n[t]&&"monospace"!==n[t]&&i.push(n[t]);return i.join(",")}(e)+", "+t,{node:r,w:i,parent:n}}function a(e,t){var n,r=document.body&&t?"svg":"canvas",i=getFontProperties(e);if("svg"===r){var a=createNS("text");a.style.fontSize="100px",a.setAttribute("font-family",e.fFamily),a.setAttribute("font-style",i.style),a.setAttribute("font-weight",i.weight),a.textContent="1",e.fClass?(a.style.fontFamily="inherit",a.setAttribute("class",e.fClass)):a.style.fontFamily=e.fFamily,t.appendChild(a),n=a}else{var s=new OffscreenCanvas(500,500).getContext("2d");s.font=i.style+" "+i.weight+" 100px "+e.fFamily,n=s}return{measureText:function(e){return"svg"===r?(n.textContent=e,n.getComputedTextLength()):n.measureText(e).width}}}function s(e){var t=0,n=e.charCodeAt(0);if(n>=55296&&n<=56319){var r=e.charCodeAt(1);r>=56320&&r<=57343&&(t=1024*(n-55296)+r-56320+65536)}return t}function o(e){var t=s(e);return t>=127462&&t<=127487}var l=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};l.isModifier=function(e,t){var n=e.toString(16)+t.toString(16);return-1!==r.indexOf(n)},l.isZeroWidthJoiner=function(e){return 8205===e},l.isFlagEmoji=function(e){return o(e.substr(0,2))&&o(e.substr(2,2))},l.isRegionalCode=o,l.isCombinedCharacter=function(e){return-1!==t.indexOf(e)},l.isRegionalFlag=function(e,t){var r=s(e.substr(t,2));if(r!==n)return!1;var i=0;for(t+=2;i<5;){if((r=s(e.substr(t,2)))<917601||r>917626)return!1;i+=1,t+=2}return 917631===s(e.substr(t,2))},l.isVariationSelector=function(e){return 65039===e},l.BLACK_FLAG_CODE_POINT=n;var c={addChars:function(e){if(e){var t;this.chars||(this.chars=[]);var n,r,i=e.length,a=this.chars.length;for(t=0;t<i;t+=1){for(n=0,r=!1;n<a;)this.chars[n].style===e[t].style&&this.chars[n].fFamily===e[t].fFamily&&this.chars[n].ch===e[t].ch&&(r=!0),n+=1;r||(this.chars.push(e[t]),a+=1)}}},addFonts:function(e,t){if(e){if(this.chars)return this.isLoaded=!0,void(this.fonts=e.list);if(!document.body)return this.isLoaded=!0,e.list.forEach(function(e){e.helper=a(e),e.cache={}}),void(this.fonts=e.list);var n,r=e.list,s=r.length,o=s;for(n=0;n<s;n+=1){var l,c,u=!0;if(r[n].loaded=!1,r[n].monoCase=i(r[n].fFamily,"monospace"),r[n].sansCase=i(r[n].fFamily,"sans-serif"),r[n].fPath){if("p"===r[n].fOrigin||3===r[n].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+r[n].fFamily+'"], style[f-origin="3"][f-family="'+r[n].fFamily+'"]')).length>0&&(u=!1),u){var h=createTag("style");h.setAttribute("f-forigin",r[n].fOrigin),h.setAttribute("f-origin",r[n].origin),h.setAttribute("f-family",r[n].fFamily),h.type="text/css",h.innerText="@font-face {font-family: "+r[n].fFamily+"; font-style: normal; src: url('"+r[n].fPath+"');}",t.appendChild(h)}}else if("g"===r[n].fOrigin||1===r[n].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),c=0;c<l.length;c+=1)-1!==l[c].href.indexOf(r[n].fPath)&&(u=!1);if(u){var d=createTag("link");d.setAttribute("f-forigin",r[n].fOrigin),d.setAttribute("f-origin",r[n].origin),d.type="text/css",d.rel="stylesheet",d.href=r[n].fPath,document.body.appendChild(d)}}else if("t"===r[n].fOrigin||2===r[n].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),c=0;c<l.length;c+=1)r[n].fPath===l[c].src&&(u=!1);if(u){var p=createTag("link");p.setAttribute("f-forigin",r[n].fOrigin),p.setAttribute("f-origin",r[n].origin),p.setAttribute("rel","stylesheet"),p.setAttribute("href",r[n].fPath),t.appendChild(p)}}}else r[n].loaded=!0,o-=1;r[n].helper=a(r[n],t),r[n].cache={},this.fonts.push(r[n])}0===o?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(t,n,r){for(var i=0,a=this.chars.length;i<a;){if(this.chars[i].ch===t&&this.chars[i].style===n&&this.chars[i].fFamily===r)return this.chars[i];i+=1}return("string"===typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",t,n,r)),e},getFontByName:function(e){for(var t=0,n=this.fonts.length;t<n;){if(this.fonts[t].fName===e)return this.fonts[t];t+=1}return this.fonts[0]},measureText:function(e,t,n){var r=this.getFontByName(t),i=e;if(!r.cache[i]){var a=r.helper;if(" "===e){var s=a.measureText("|"+e+"|"),o=a.measureText("||");r.cache[i]=(s-o)/100}else r.cache[i]=a.measureText(e)/100}return r.cache[i]*n},checkLoadedFonts:function(){var e,t,n,r=this.fonts.length,i=r;for(e=0;e<r;e+=1)this.fonts[e].loaded?i-=1:"n"===this.fonts[e].fOrigin||0===this.fonts[e].origin?this.fonts[e].loaded=!0:(t=this.fonts[e].monoCase.node,n=this.fonts[e].monoCase.w,t.offsetWidth!==n?(i-=1,this.fonts[e].loaded=!0):(t=this.fonts[e].sansCase.node,n=this.fonts[e].sansCase.w,t.offsetWidth!==n&&(i-=1,this.fonts[e].loaded=!0)),this.fonts[e].loaded&&(this.fonts[e].sansCase.parent.parentNode.removeChild(this.fonts[e].sansCase.parent),this.fonts[e].monoCase.parent.parentNode.removeChild(this.fonts[e].monoCase.parent)));0!==i&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return l.prototype=c,l}();function SlotManager(e){this.animationData=e}function slotFactory(e){return new SlotManager(e)}
vendor: 4,670 bytes, line 2
2function RenderableElement(){}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(e){-1===this.renderableComponents.indexOf(e)&&this.renderableComponents.push(e)},removeRenderableComponent:function(e){-1!==this.renderableComponents.indexOf(e)&&this.renderableComponents.splice(this.renderableComponents.indexOf(e),1)},prepareRenderableFrame:function(e){this.checkLayerLimits(e)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(e){this.data.ip-this.data.st<=e&&this.data.op-this.data.st>e?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var e,t=this.renderableComponents.length;for(e=0;e<t;e+=1)this.renderableComponents[e].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=function(){var e={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(t){return e[t]||""}}();function SliderEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function AngleEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function ColorEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,1,0,n)}function PointEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,1,0,n)}function LayerIndexEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function MaskIndexEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function CheckboxEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var n,r=e.ef||[];this.effectElements=[];var i,a=r.length;for(n=0;n<a;n+=1)i=new GroupEffect(r[n],t),this.effectElements.push(i)}function GroupEffect(e,t){this.init(e,t)}function BaseElement(){}function FrameElement(){}function FootageElement(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,n)}function AudioElement(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,n),this._isPlaying=!1,this._canPlay=!1;var r=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(r),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){var n;this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var r,i=this.data.ef.length,a=this.data.ef;for(n=0;n<i;n+=1){switch(r=null,a[n].ty){case 0:r=new SliderEffect(a[n],t,this);break;case 1:r=new AngleEffect(a[n],t,this);break;case 2:r=new ColorEffect(a[n],t,this);break;case 3:r=new PointEffect(a[n],t,this);break;case 4:case 7:r=new CheckboxEffect(a[n],t,this);break;case 10:r=new LayerIndexEffect(a[n],t,this);break;case 11:r=new MaskIndexEffect(a[n],t,this);break;case 5:r=new EffectsManager(a[n],t,this);break;default:r=new NoValueEffect(a[n],t,this)}r&&this.effectElements.push(r)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var e=0,t=this.data.masksProperties.length;e<t;){if("n"!==this.data.masksProperties[e].mode&&!1!==this.data.masksProperties[e].cl)return!0;e+=1}return!1},initExpressions:function(){var e=getExpressionInterfaces();if(e){var t=e("layer"),n=e("effects"),r=e("shape"),i=e("text"),a=e("comp");this.layerInterface=t(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);
vendor: 11,093 bytes, line 2
2var s=n.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(s),0===this.data.ty||this.data.xt?this.compInterface=a(this):4===this.data.ty?(this.layerInterface.shapeInterface=r(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=i(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var e=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=e},initBaseData:function(e,t,n){this.globalData=t,this.comp=n,this.data=e,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(e,t){var n,r=this.dynamicProperties.length;for(n=0;n<r;n+=1)(t||this._isParent&&"transform"===this.dynamicProperties[n].propType)&&(this.dynamicProperties[n].getValue(),this.dynamicProperties[n]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&this.dynamicProperties.push(e)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var e=getExpressionInterfaces();if(e){var t=e("footage");this.layerInterface=t(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(e){var t,n,r=this.layers.length;for(this.completeLayers=!0,t=r-1;t>=0;t-=1)this.elements[t]||(n=this.layers[t]).ip-n.st<=e-this.layers[t].st&&n.op-n.st>e-this.layers[t].st&&this.buildItem(t),this.completeLayers=!!this.elements[t]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:default:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){var t;this.completeLayers=!1;var n,r=e.length,i=this.layers.length;for(t=0;t<r;t+=1)for(n=0;n<i;){if(this.layers[n].id===e[t].id){this.layers[n]=e[t];break}n+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,n){for(var r=this.elements,i=this.layers,a=0,s=i.length;a<s;)i[a].ind==t&&(r[a]&&!0!==r[a]?(n.push(r[a]),r[a].setAsParent(),void 0!==i[a].parent?this.buildElementParenting(e,i[a].parent,n):e.setHierarchy(n)):(this.buildItem(a),this.addPendingElement(e))),a+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,n=e.length;for(t=0;t<n;t+=1)if(e[t].xt){var r=this.createComp(e[t]);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}},BaseRenderer.prototype.getElementById=function(e){var t,n=this.elements.length;for(t=0;t<n;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},BaseRenderer.prototype.getElementByPath=function(e){var t,n=e.shift();if("number"===typeof n)t=this.elements[n];else{var r,i=this.elements.length;for(r=0;r<i;r+=1)if(this.elements[r].data.nm===n){t=this.elements[r];break}}return 0===e.length?t:t.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}function MaskElement(e,t,n){this.data=e,this.element=t,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var r,i,a=this.globalData.defs,s=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(s),this.solidPath="";var o,l,c,u,h,d,p=this.masksProperties,f=0,m=[],g=createElementID(),v="clipPath",y="clip-path";for(r=0;r<s;r+=1)if(("a"!==p[r].mode&&"n"!==p[r].mode||p[r].inv||100!==p[r].o.k||p[r].o.x)&&(v="mask",y="mask"),"s"!==p[r].mode&&"i"!==p[r].mode||0!==f?c=null:((c=createNS("rect")).setAttribute("fill","#ffffff"),c.setAttribute("width",this.element.comp.data.w||0),c.setAttribute("height",this.element.comp.data.h||0),m.push(c)),i=createNS("path"),"n"===p[r].mode)this.viewData[r]={op:PropertyFactory.getProp(this.element,p[r].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[r],3),elem:i,lastPath:""},a.appendChild(i);else{var b;if(f+=1,i.setAttribute("fill","s"===p[r].mode?"#000000":"#ffffff"),i.setAttribute("clip-rule","nonzero"),0!==p[r].x.k?(v="mask",y="mask",d=PropertyFactory.getProp(this.element,p[r].x,0,null,this.element),b=createElementID(),(u=createNS("filter")).setAttribute("id",b),(h=createNS("feMorphology")).setAttribute("operator","erode"),h.setAttribute("in","SourceGraphic"),h.setAttribute("radius","0"),u.appendChild(h),a.appendChild(u),i.setAttribute("stroke","s"===p[r].mode?"#000000":"#ffffff")):(h=null,d=null),this.storedData[r]={elem:i,x:d,expan:h,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},"i"===p[r].mode){l=m.length;var _=createNS("g");for(o=0;o<l;o+=1)_.appendChild(m[o]);var w=createNS("mask");w.setAttribute("mask-type","alpha"),w.setAttribute("id",g+"_"+f),w.appendChild(i),a.appendChild(w),_.setAttribute("mask","url("+getLocationHref()+"#"+g+"_"+f+")"),m.length=0,m.push(_)}else m.push(i);p[r].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[r]={elem:i,lastPath:"",op:PropertyFactory.getProp(this.element,p[r].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[r],3),invRect:c},this.viewData[r].prop.k||this.drawPath(p[r],this.viewData[r].prop.v,this.viewData[r])}for(this.maskElement=createNS(v),s=m.length,r=0;r<s;r+=1)this.maskElement.appendChild(m[r]);f>0&&(this.maskElement.setAttribute("id",g),this.element.maskedElement.setAttribute(y,"url("+getLocationHref()+"#"+g+")"),a.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var e=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:e,localMat:e,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var e,t=this.finalTransform.mat,n=0,r=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;n<r;){if(this.hierarchy[n].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}n+=1}if(this.finalTransform._matMdf)for(e=this.finalTransform.mProp.v.props,t.cloneFromProps(e),n=0;n<r;n+=1)t.multiply(this.hierarchy[n].finalTransform.mProp.v)}this.localTransforms&&!this.finalTransform._matMdf||(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var e=0,t=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;e<t;)this.localTransforms[e]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[e]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),e+=1;if(this.finalTransform._localMatMdf){var n=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(n),e=1;e<t;e+=1){var r=this.localTransforms[e].matrix;n.multiply(r)}n.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var i=this.finalTransform.localOpacity;for(e=0;e<t;e+=1)i*=.01*this.localTransforms[e].opacity;this.finalTransform.localOpacity=i}}}
vendor: 4,174 bytes, line 2
2,searchEffectTransforms:function(){if(this.renderableEffectsManager){var e=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(e.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var t=0,n=e.length;for(t=0;t<n;t+=1)this.localTransforms.push(e[t])}}},globalToLocal:function(e){var t=[];t.push(this.finalTransform);for(var n,r=!0,i=this.comp;r;)i.finalTransform?(i.data.hasMask&&t.splice(0,0,i.finalTransform),i=i.comp):r=!1;var a,s=t.length;for(n=0;n<s;n+=1)a=t[n].mat.applyToPointArray(0,0,0),e=[e[0]-a[0],e[1]-a[1],0];return e},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t,n=this.element.finalTransform.mat,r=this.masksProperties.length;for(t=0;t<r;t+=1)if((this.viewData[t].prop._mdf||e)&&this.drawPath(this.masksProperties[t],this.viewData[t].prop.v,this.viewData[t]),(this.viewData[t].op._mdf||e)&&this.viewData[t].elem.setAttribute("fill-opacity",this.viewData[t].op.v),"n"!==this.masksProperties[t].mode&&(this.viewData[t].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[t].invRect.setAttribute("transform",n.getInverseMatrix().to2dCSS()),this.storedData[t].x&&(this.storedData[t].x._mdf||e))){var i=this.storedData[t].expan;this.storedData[t].x.v<0?("erode"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="erode",this.storedData[t].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[t].filterId+")")),i.setAttribute("radius",-this.storedData[t].x.v)):("dilate"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="dilate",this.storedData[t].elem.setAttribute("filter",null)),this.storedData[t].elem.setAttribute("stroke-width",2*this.storedData[t].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(e,t,n){var r,i,a=" M"+t.v[0][0]+","+t.v[0][1];for(i=t._length,r=1;r<i;r+=1)a+=" C"+t.o[r-1][0]+","+t.o[r-1][1]+" "+t.i[r][0]+","+t.i[r][1]+" "+t.v[r][0]+","+t.v[r][1];if(t.c&&i>1&&(a+=" C"+t.o[r-1][0]+","+t.o[r-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),n.lastPath!==a){var s="";n.elem&&(t.c&&(s=e.inv?this.solidPath+a:a),n.elem.setAttribute("d",s)),n.lastPath=a}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={createFilter:function(e,t){var n=createNS("filter");return n.setAttribute("id",e),!0!==t&&(n.setAttribute("filterUnits","objectBoundingBox"),n.setAttribute("x","0%"),n.setAttribute("y","0%"),n.setAttribute("width","100%"),n.setAttribute("height","100%")),n},createAlphaToLuminanceFilter:function(){var e=createNS("feColorMatrix");return e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1"),e}};return e}(),featureSupport=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!==typeof OffscreenCanvas};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var t,n,r="SourceGraphic",i=e.data.ef?e.data.ef.length:0,a=createElementID(),s=filtersFactory.createFilter(a,!0),o=0;for(this.filters=[],t=0;t<i;t+=1){n=null;var l=e.data.ef[t].ty;registeredEffects$1[l]&&(n=new(0,registeredEffects$1[l].effect)(s,e.effectsManager.effectElements[t],e,idPrefix+o,r),r=idPrefix+o,registeredEffects$1[l].countsAsEffect&&(o+=1)),n&&this.filters.push(n)}o&&(e.globalData.defs.appendChild(s),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+a+")")),this.filters.length&&e.addRenderableComponent(this)}
vendor: 4,123 bytes, line 2
2function registerEffect$1(e,t,n){registeredEffects$1[e]={effect:t,countsAsEffect:n}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(e){var t,n=this.filters.length;for(t=0;t<n;t+=1)this.filters[t].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var t,n=this.filters.length,r=[];for(t=0;t<n;t+=1)this.filters[t].type===e&&r.push(this.filters[t]);return r},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var e=null;if(this.data.td){this.matteMasks={};var t=createNS("g");t.setAttribute("id",this.layerId),t.appendChild(this.layerElement),e=t,this.globalData.defs.appendChild(t)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),e=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var n=createNS("clipPath"),r=createNS("path");r.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var i=createElementID();if(n.setAttribute("id",i),n.appendChild(r),this.globalData.defs.appendChild(n),this.checkMasks()){var a=createNS("g");a.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")"),a.appendChild(this.layerElement),this.transformedElement=a,e?e.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(e){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[e]){var t,n,r,i,a=this.layerId+"_"+e;if(1===e||3===e){var s=createNS("mask");s.setAttribute("id",a),s.setAttribute("mask-type",3===e?"luminance":"alpha"),(r=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),s.appendChild(r),this.globalData.defs.appendChild(s),featureSupport.maskType||1!==e||(s.setAttribute("mask-type","luminance"),t=createElementID(),n=filtersFactory.createFilter(t),this.globalData.defs.appendChild(n),n.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(i=createNS("g")).appendChild(r),s.appendChild(i),i.setAttribute("filter","url("+getLocationHref()+"#"+t+")"))}else if(2===e){var o=createNS("mask");o.setAttribute("id",a),o.setAttribute("mask-type","alpha");var l=createNS("g");o.appendChild(l),t=createElementID(),n=filtersFactory.createFilter(t);var c=createNS("feComponentTransfer");c.setAttribute("in","SourceGraphic"),n.appendChild(c);var u=createNS("feFuncA");u.setAttribute("type","table"),u.setAttribute("tableValues","1.0 0.0"),c.appendChild(u),this.globalData.defs.appendChild(n);var h=createNS("rect");h.setAttribute("width",this.comp.data.w),h.setAttribute("height",this.comp.data.h),h.setAttribute("x","0"),h.setAttribute("y","0"),h.setAttribute("fill","#ffffff"),h.setAttribute("op
2acity","0"),l.setAttribute("filter","url("+getLocationHref()+"#"+t+")"),l.appendChild(h),(r=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(r),featureSupport.maskType||(o.setAttribute("mask-type","luminance"),n.appendChild(filtersFactory.createAlphaToLuminanceFilter()),i=createNS("g"),l.appendChild(h),i.appendChild(this.layerElement),l.appendChild(i)),this.globalData.defs.appendChild(o)}this.matteMasks[e]=a}return this.matteMasks[e]},setMatte:function(e){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+e+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(e){this.hierarchy=e},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initTransform(e,t,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(e){var t,n=this.shapeModifiers.length;for(t=0;t<n;t+=1)this.shapeModifiers[t].addShape(e)},isShapeInAnimatedModifiers:function(e){for(var t=this.shapeModifiers.length;0<t;)if(this.shapeModifiers[0].isAnimatedWithShape(e))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var e,t=this.shapes.length;for(e=0;e<t;e+=1)this.shapes[e].sh.reset();for(e=(t=this.shapeModifiers.length)-1;e>=0&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);e-=1);}},searchProcessedElement:function(e){for(var t=this.processedElements,n=0,r=t.length;n<r;){if(t[n].elem===e)return t[n].pos;n+=1}return 0},addProcessedElement:function(e,t){for(var n=this.processedElements,r=n.length;r;)if(n[r-=1].elem===e)return void(n[r].pos=t);n.push(new ProcessedElement(e,t))},prepareFrame:function(e){this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,t,n){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=n,this.lvl=t,this._isAnimated=!!n.k;for(var r=0,i=e.length;r<i;){if(e[r].mProps.dynamicProperties.length){this._isAnimated=!0;break}r+=1}}function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=!0===e.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(e,t,n,r){var i;this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(r);var a,s=t.length||0;for(i=0;i<s;i+=1)a=PropertyFactory.getProp(e,t[i].v,0,0,this),this.k=a.k||this.k,this.dataProps[i]={n:t[i].n,p:a};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=n}function SVGNoStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=n}function GradientProperty(e,t,n){this.data=t,this.c=createTypedArray("uint8c",4*t.p);var r=t.k.k[0].s?t.k.k[0].s.length-4*t.p:t.k.k.length-4*t.p;this.o=createTypedArray("float32",r),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=r,this.initDynamicPropertyContainer(n),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,n)}function SVGGradientStrokeStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,n),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,n){this.transform={mProps:e,op:t,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(e){if((this.elem.globalData.frameId!==this.frameId||e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,n=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),t=0;t<n;t+=1)"o"!==this.dataProps[t].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(e,t){for(var n=0,r=this.o.length/2;n<r;){if(Math.abs(e[4*n]-e[4*t+2*n])>.01)return!1;n+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,n,r,i=4*this.data.p;for(t=0;t<i;t+=1)n=t%4===0?100:255,r=Math.round(this.prop.v[t]*n),this.c[t]!==r&&(this.c[t]=r,this._cmdf=!e);if(this.o.length)for(i=this.prop.v.length,t=4*this.data.p;t<i;t+=1)n=t%2===0?100:1,r=t%2===0?Math.round(100*this.prop.v[t]):this.prop.v[t],this.o[t-4*this.data.p]!==r&&(this.o[t-4*this.data.p]=r,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(e,t,n){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=Pro
vendor: 2,676 bytes, line 2
2pertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,t),this.setGradientOpacity(t,n),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var n=createElementID(),r=createNS(1===t.t?"linearGradient":"radialGradient");r.setAttribute("id",n),r.setAttribute("spreadMethod","pad"),r.setAttribute("gradientUnits","userSpaceOnUse");var i,a,s,o=[];for(s=4*t.g.p,a=0;a<s;a+=4)i=createNS("stop"),r.appendChild(i),o.push(i);e.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+n+")"),this.gf=r,this.cst=o},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var n,r,i,a=createNS("mask"),s=createNS("path");a.appendChild(s);var o=createElementID(),l=createElementID();a.setAttribute("id",l);var c=createNS(1===e.t?"linearGradient":"radialGradient");c.setAttribute("id",o),c.setAttribute("spreadMethod","pad"),c.setAttribute("gradientUnits","userSpaceOnUse"),i=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var u=this.stops;for(r=4*e.g.p;r<i;r+=2)(n=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),c.appendChild(n),u.push(n);s.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+o+")"),"gs"===e.ty&&(s.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),s.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),1===e.lj&&s.setAttribute("stroke-miterlimit",e.ml)),this.of=c,this.ms=a,this.ost=u,this.maskId=l,t.msElem=s}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(e,t,n,r){if(0===t)return"";var i,a=e.o,s=e.i,o=e.v,l=" M"+r.applyToPointStringified(o[0][0],o[0][1]);for(i=1;i<t;i+=1)l+=" C"+r.applyToPointStringified(a[i-1][0],a[i-1][1])+" "+r.applyToPointStringified(s[i][0],s[i][1])+" "+r.applyToPointStringified(o[i][0],o[i][1]);return n&&t&&(l+=" C"+r.applyToPointStringified(a[i-1][0],a[i-1][1])+" "+r.applyToPointStringified(s[0][0],s[0][1])+" "+r.applyToPointStringified(o[0][0],o[0][1]),l+="z"),l},SVGElementsRenderer=function(){var e=new Matrix,t=new Matrix;function n(e,t,n){(n||t.transform.op._mdf)&&t.transform.container.setAttribute("opacity",t.transform.op.v),(n||t.transform.mProps._mdf)&&t.transform.container.setAttribute("transform",t.transform.mProps.v.to2dCSS())}function r(){}function i(n,r,i){var a,s,o,l,c,u,h,d,p,f,m=r.styles.length,g=r.lvl;for(u=0;
vendor: 5,828 bytes, line 2
2u<m;u+=1){if(l=r.sh._mdf||i,r.styles[u].lvl<g){for(d=t.reset(),p=g-r.styles[u].lvl,f=r.transformers.length-1;!l&&p>0;)l=r.transformers[f].mProps._mdf||l,p-=1,f-=1;if(l)for(p=g-r.styles[u].lvl,f=r.transformers.length-1;p>0;)d.multiply(r.transformers[f].mProps.v),p-=1,f-=1}else d=e;if(s=(h=r.sh.paths)._length,l){for(o="",a=0;a<s;a+=1)(c=h.shapes[a])&&c._length&&(o+=buildShapeString(c,c._length,c.c,d));r.caches[u]=o}else o=r.caches[u];r.styles[u].d+=!0===n.hd?"":o,r.styles[u]._mdf=l||r.styles[u]._mdf}}function a(e,t,n){var r=t.style;(t.c._mdf||n)&&r.pElem.setAttribute("fill","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n)&&r.pElem.setAttribute("fill-opacity",t.o.v)}function s(e,t,n){o(e,t,n),l(0,t,n)}function o(e,t,n){var r,i,a,s,o,l=t.gf,c=t.g._hasOpacity,u=t.s.v,h=t.e.v;if(t.o._mdf||n){var d="gf"===e.ty?"fill-opacity":"stroke-opacity";t.style.pElem.setAttribute(d,t.o.v)}if(t.s._mdf||n){var p=1===e.t?"x1":"cx",f="x1"===p?"y1":"cy";l.setAttribute(p,u[0]),l.setAttribute(f,u[1]),c&&!t.g._collapsable&&(t.of.setAttribute(p,u[0]),t.of.setAttribute(f,u[1]))}if(t.g._cmdf||n){r=t.cst;var m=t.g.c;for(a=r.length,i=0;i<a;i+=1)(s=r[i]).setAttribute("offset",m[4*i]+"%"),s.setAttribute("stop-color","rgb("+m[4*i+1]+","+m[4*i+2]+","+m[4*i+3]+")")}if(c&&(t.g._omdf||n)){var g=t.g.o;for(a=(r=t.g._collapsable?t.cst:t.ost).length,i=0;i<a;i+=1)s=r[i],t.g._collapsable||s.setAttribute("offset",g[2*i]+"%"),s.setAttribute("stop-opacity",g[2*i+1])}if(1===e.t)(t.e._mdf||n)&&(l.setAttribute("x2",h[0]),l.setAttribute("y2",h[1]),c&&!t.g._collapsable&&(t.of.setAttribute("x2",h[0]),t.of.setAttribute("y2",h[1])));else if((t.s._mdf||t.e._mdf||n)&&(o=Math.sqrt(Math.pow(u[0]-h[0],2)+Math.pow(u[1]-h[1],2)),l.setAttribute("r",o),c&&!t.g._collapsable&&t.of.setAttribute("r",o)),t.s._mdf||t.e._mdf||t.h._mdf||t.a._mdf||n){o||(o=Math.sqrt(Math.pow(u[0]-h[0],2)+Math.pow(u[1]-h[1],2)));var v=Math.atan2(h[1]-u[1],h[0]-u[0]),y=t.h.v;y>=1?y=.99:y<=-1&&(y=-.99);var b=o*y,_=Math.cos(v+t.a.v)*b+u[0],w=Math.sin(v+t.a.v)*b+u[1];l.setAttribute("fx",_),l.setAttribute("fy",w),c&&!t.g._collapsable&&(t.of.setAttribute("fx",_),t.of.setAttribute("fy",w))}}function l(e,t,n){var r=t.style,i=t.d;i&&(i._mdf||n)&&i.dashStr&&(r.pElem.setAttribute("stroke-dasharray",i.dashStr),r.pElem.setAttribute("stroke-dashoffset",i.dashoffset[0])),t.c&&(t.c._mdf||n)&&r.pElem.setAttribute("stroke","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n)&&r.pElem.setAttribute("stroke-opacity",t.o.v),(t.w._mdf||n)&&(r.pElem.setAttribute("stroke-width",t.w.v),r.msElem&&r.msElem.setAttribute("stroke-width",t.w.v))}return{createRenderFunction:function(e){switch(e.ty){case"fl":return a;case"gf":return o;case"gs":return s;case"st":return l;case"sh":case"el":case"rc":case"sr":return i;case"tr":return n;case"no":return r;default:return null}}}}();function SVGShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,n),this.prevViewData=[]}function LetterProps(e,t,n,r,i,a){this.o=e,this.sw=t,this.sc=n,this.fc=r,this.m=i,this.p=a,this._mdf={o:!0,sw:!!t,sc:!!n,fc:!!r,m:!0,p:!0}}function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t,n,r,i=this.shapes.length,a=this.stylesList.length,s=[],o=!1;for(n=0;n<a;n+=1){for(r=this.stylesList[n],o=!1,s.length=0,e=0;e<i;e+=1)-1!==(t=this.shapes[e]).styles.indexOf(r)&&(s.push(t),o=t._isAnimated||o);s.length>1&&o&&this.setShapesAsAnimated(s)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var n,r=new SVGStyleData(e,t),i=r.pElem;return"st"===e.ty?n=new SVGStrokeStyleData(this,e,r):"fl"===e.ty?n=new SVGFillStyleData(this,e,r):"gf"===e.ty||"gs"===e.ty?(n=new("gf"===e.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,e,r),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),i.setAttribute("mask","url("+getLocationHref()+"#"+n.maskId+")"))):"no"===e.ty&&(n=new SVGNoStyleData(this,e,r)),"st"!==e.ty&&"gs"!==e.ty||(i.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),i.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),i.setAttribute("fill-opacity","0"),1===e.lj&&i.setAttribute("stroke-miterlimit",e.ml)),2===e.r&&i.setAttribute("fill-rule","evenodd"),e.ln&&i.setAttribute("id",e.ln),e.cl&&i.setAttribute("class",e.cl),e.bm&&(i.style["mix-blend-mode"]=getBlendM
vendor: 29,543 bytes, line 2
2ode(e.bm)),this.stylesList.push(r),this.addToAnimatedContents(e,n),n},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var n=TransformPropertyFactory.getTransformProperty(this,e,this),r=new SVGTransformData(n,n.o,t);return this.addToAnimatedContents(e,r),r},SVGShapeElement.prototype.createShapeElement=function(e,t,n){var r=4;"rc"===e.ty?r=5:"el"===e.ty?r=6:"sr"===e.ty&&(r=7);var i=new SVGShapeData(t,n,ShapePropertyFactory.getShapeProp(this,e,r,this));return this.shapes.push(i),this.addShapeToModifiers(i),this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var n=0,r=this.animatedContents.length;n<r;){if(this.animatedContents[n].element===t)return;n+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t,n=e.styles,r=this.stylesList.length;for(t=0;t<r;t+=1)-1!==n.indexOf(this.stylesList[t])||this.stylesList[t].closed||n.push(this.stylesList[t])},SVGShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,n,r,i,a,s){var o,l,c,u,h,d,p=[].concat(a),f=e.length-1,m=[],g=[];for(o=f;o>=0;o-=1){if((d=this.searchProcessedElement(e[o]))?t[o]=n[d-1]:e[o]._render=s,"fl"===e[o].ty||"st"===e[o].ty||"gf"===e[o].ty||"gs"===e[o].ty||"no"===e[o].ty)d?t[o].style.closed=e[o].hd:t[o]=this.createStyleElement(e[o],i),e[o]._render&&t[o].style.pElem.parentNode!==r&&r.appendChild(t[o].style.pElem),m.push(t[o].style);else if("gr"===e[o].ty){if(d)for(c=t[o].it.length,l=0;l<c;l+=1)t[o].prevViewData[l]=t[o].it[l];else t[o]=this.createGroupElement(e[o]);this.searchShapes(e[o].it,t[o].it,t[o].prevViewData,t[o].gr,i+1,p,s),e[o]._render&&t[o].gr.parentNode!==r&&r.appendChild(t[o].gr)}else"tr"===e[o].ty?(d||(t[o]=this.createTransformElement(e[o],r)),u=t[o].transform,p.push(u)):"sh"===e[o].ty||"rc"===e[o].ty||"el"===e[o].ty||"sr"===e[o].ty?(d||(t[o]=this.createShapeElement(e[o],p,i)),this.setElementStyles(t[o])):"tm"===e[o].ty||"rd"===e[o].ty||"ms"===e[o].ty||"pb"===e[o].ty||"zz"===e[o].ty||"op"===e[o].ty?(d?(h=t[o]).closed=!1:((h=ShapeModifiers.getModifier(e[o].ty)).init(this,e[o]),t[o]=h,this.shapeModifiers.push(h)),g.push(h)):"rp"===e[o].ty&&(d?(h=t[o]).closed=!0:(h=ShapeModifiers.getModifier(e[o].ty),t[o]=h,h.init(this,e,o,t),this.shapeModifiers.push(h),s=!1),g.push(h));this.addProcessedElement(e[o],o+1)}for(f=m.length,o=0;o<f;o+=1)m[o].closed=!0;for(f=g.length,o=0;o<f;o+=1)g[o].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var e;this.renderModifiers();var t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t,n=this.animatedContents.length;for(e=0;e<n;e+=1)t=this.animatedContents[e],(this._isFirstFrame||t.element._isAnimated)&&!0!==t.data&&t.fn(t.data,t.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(e,t,n,r,i,a){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var s=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,s=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,s=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,s=!0),this.fc!==r&&(this.fc=r,this._mdf.fc=!0,s=!0),this.m!==i&&(this.m=i,this._mdf.m=!0,s=!0),!a.length||this.p[0]===a[0]&&this.p[1]===a[1]&&this.p[4]===a[4]&&this.p[5]===a[5]&&this.p[12]===a[12]&&this.p[13]===a[13]||(this.p=a,this._mdf.p=!0,s=!0),s},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||e){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,n=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var r;this.lock=!0,this._mdf=!1;var i=this.effectsSequence.length,a=e||this.data.d.k[this.keysIndex].s;for(r=0;r<i;r+=1)a=n!==this.keysIndex?this.effectsSequence[r](a,a.t):this.effectsSequence[r](this.currentData,a.t);t!==a&&this.setCurrentData(a),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,n=0,r=e.length;n<=r-1&&!(n===r-1||e[n+1].t>t);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t,n,r=[],i=0,a=e.length,s=!1,o=!1,l="";i<a;)s=o,o=!1,t=e.charCodeAt(i),l=e.charAt(i),FontManager.isCombinedCharacter(t)?s=!0:t>=55296&&t<=56319?FontManager.isRegionalFlag(e,i)?l=e.substr(i,14):(n=e.charCodeAt(i+1))>=56320&&n<=57343&&(FontManager.isModifier(t,n)?(l=e.substr(i,2),s=!0):l=FontManager.isFlagEmoji(e.substr(i,4))?e.substr(i,4):e.substr(i,2)):t>56319?(n=e.charCodeAt(i+1),FontManager.isVariationSelector(t)&&(s=!0)):FontManager.isZeroWidthJoiner(t)&&(s=!0,o=!0),s?(r[r.length-1]+=l,s=!1):r.push(l),i+=l.length;return r},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t,n,r,i,a,s,o,l=this.elem.globalData.fontManager,c=this.data,u=[],h=0,d=c.m.g,p=0,f=0,m=0,g=[],v=0,y=0,b=l.getFontByName(e.f),_=0,w=getFontProperties(b);e.fWeight=w.weight,e.fStyle=w.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),n=e.finalText.length,e.finalLineHeight=e.lh;var S,E=e.tr/1e3*e.finalSize;if(e.sz)for(var k,x,C=!0,P=e.sz[0],A=e.sz[1];C;){k=0,v=0,n=(x=this.buildFinalText(e.t)).length,E=e.tr/1e3*e.finalSize;var T=-1;for(t=0;t<n;t+=1)S=x[t].charCodeAt(0),r=!1," "===x[t]?T=t:13!==S&&3!==S||(v=0,r=!0,k+=e.finalLineHeight||1.2*e.finalSize),l.chars?(o=l.getCharData(x[t],b.fStyle,b.fFamily),_=r?0:o.w*e.finalSize/100):_=l.measureText(x[t],e.f,e.finalSize),v+_>P&&" "!==x[t]?(-1===T?n+=1:t=T,k+=e.finalLineHeight||1.2*e.finalSize,x.splice(t,T===t?1:0,"\r"),T=-1,v=0):(v+=_,v+=E);k+=b.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&A<k?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=x,n=e.finalText.length,C=!1)}v=-E,_=0;var R,I=0;for(t=0;t<n;t+=1)if(r=!1,13===(S=(R=e.finalText[t]).charCodeAt(0))||3===S?(I=0,g.push(v),y=v>y?v:y,v=-2*E,i="",r=!0,m+=1):i=R,l.chars?(o=l.getCharData(R,b.fStyle,l.getFontByName(e.f).fFamily),_=r?0:o.w*e.finalSize/100):_=l.measureText(i,e.f,e.finalSize)," "===R?I+=_+E:(v+=_+E+I,I=0),u.push({l:_,an:_,add:p,n:r,anIndexes:[],val:i,line:m,animatorJustifyOffset:0}),2==d){if(p+=_,""===i||" "===i||t===n-1){for(""!==i&&" "!==i||(p-=_);f<=t;)u[f].an=p,u[f].ind=h,u[f].extra=_,f+=1;h+=1,p=0}}else if(3==d){if(p+=_,""===i||t===n-1){for(""===i&&(p-=_);f<=t;)u[f].an=p,u[f].ind=h,u[f].extra=_,f+=1;p=0,h+=1}}else u[h].ind=h,u[h].extra=0,h+=1;if(e.l=u,y=v>y?v:y,g.push(v),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=y,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=g;var D,M,F,L,N=c.a;s=N.length;var O=[];for(a=0;a<s;a+=1){for((D=N[a]).a.sc&&(e.strokeColorAnim=!0),D.a.sw&&(e.strokeWidthAnim=!0),(D.a.fc||D.a.fh||D.a.fs||D.a.fb)&&(e.fillColorAnim=!0),L=0,F=D.s.b,t=0;t<n;t+=1)(M=u[t]).anIndexes[a]=L,(1==F&&""!==M.val||2==F&&""!==M.val&&" "!==M.val||3==F&&(M.n||" "==M.val||t==n-1)||4==F&&(M.n||t==n-1))&&(1===D.s.rn&&O.push(L),L+=1);c.a[a].s.totalChars=L;var B,j=-1;if(1===D.s.rn)for(t=0;t<n;t+=1)j!=(M=u[t]).anIndexes[a]&&(j=M.anIndexes[a],B=O.splice(Math.floor(Math.random()*O.length),1)[0]),M.anIndexes[a]=B}e.yOffset=e.finalLineHeight||1.2*e.finalSize,e.ls=e.ls||0,e.ascent=b.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=void 0===t?this.keysIndex:t;var n=this.copyData({},this.data.d.k[t].s);n=this.copyData(n,e),this.data.d.k[t].s=n,this.recalculate(t),this.setCurrentData(n),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var e=Math.max,t=Math.min,n=Math.floor;function r(e,t){this._currentTextLength=-1,this.k=!1,this.data=t,this.elem=e,this.comp=e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(e),this.s=PropertyFactory.getProp(e,t.s||{k:0},0,0,this),this.e="e"in t?PropertyFactory.getProp(e,t.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(e,t.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(e,t.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(e,t.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(e,t.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(e,t.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return r.prototype={getMult:function(r){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var i=0,a=0,s=1,o=1;this.ne.v>0?i=this.ne.v/100:a=-this.ne.v/100,this.xe.v>0?s=1-this.xe.v/100:o=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(i,a,s,o).get,c=0,u=this.finalS,h=this.finalE,d=this.data.sh;if(2===d)c=l(c=h===u?r>=h?1:0:e(0,t(.5/(h-u)+(r-u)/(h-u),1)));else if(3===d)c=l(c=h===u?r>=h?0:1:1-e(0,t(.5/(h-u)+(r-u)/(h-u),1)));else if(4===d)h===u?c=0:(c=e(0,t(.5/(h-u)+(r-u)/(h-u),1)))<.5?c*=2:c=1-2*(c-.5),c=l(c);else if(5===d){if(h===u)c=0;else{var p=h-u,f=-p/2+(r=t(e(0,r+.5-u),h-u)),m=p/2;c=Math.sqrt(1-f*f/(m*m))}c=l(c)}else 6===d?(h===u?c=0:(r=t(e(0,r+.5-u),h-u),c=(1+Math.cos(Math.PI+2*Math.PI*r/(h-u)))/2),c=l(c)):(r>=n(u)&&(c=e(0,t(r-u<0?t(h,1)-(u-r):h-r,1))),c=l(c));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var v=.5-.5*g;c<v?c=0:(c=(c-v)/g)>1&&(c=1)}return c*this.a.v},getValue:function(e){this.iterateDynamicProperties(),this._mdf=e||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,e&&2===this.data.r&&(this.e.v=this._currentTextLength);var t=2===this.data.r?1:100/this.data.totalChars,n=this.o.v/t,r=this.s.v/t+n,i=this.e.v/t+n;if(r>i){var a=r;r=i,i=a}this.finalS=r,this.finalE=i}},extendPrototype([DynamicPropertyContainer],r),{getTextSelectorProp:function(e,t,n){return new r(e,t,n)}}}();function TextAnimatorDataProperty(e,t,n){var r={propType:!1},i=PropertyFactory.getProp,a=t.a;this.a={r:a.r?i(e,a.r,0,degToRads,n):r,rx:a.rx?i(e,a.rx,0,degToRads,n):r,ry:a.ry?i(e,a.ry,0,degToRads,n):r,sk:a.sk?i(e,a.sk,0,degToRads,n):r,sa:a.sa?i(e,a.sa,0,degToRads,n):r,s:a.s?i(e,a.s,1,.01,n):r,a:a.a?i(e,a.a,1,0,n):r,o:a.o?i(e,a.o,0,.01,n):r,p:a.p?i(e,a.p,1,0,n):r,sw:a.sw?i(e,a.sw,0,0,n):r,sc:a.sc?i(e,a.sc,1,0,n):r,fc:a.fc?i(e,a.fc,1,0,n):r,fh:a.fh?i(e,a.fh,0,0,n):r,fs:a.fs?i(e,a.fs,0,.01,n):r,fb:a.fb?i(e,a.fb,0,.01,n):r,t:a.t?i(e,a.t,0,0,n):r},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,n),this.s.t=t.s.t}function TextAnimatorProperty(e,t,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=n,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var e,t,n=this._textData.a.length,r=PropertyFactory.getProp;for(e=0;e<n;e+=1)t=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,t,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:r(this._elem,this._textData.p.a,0,0,this),f:r(this._elem,this._textData.p.f,0,0,this),l:r(this._elem,this._textData.p.l,0,0,this),r:r(this._elem,this._textData.p.r,0,0,this),p:r(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=r(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,this._mdf||this._isFirstFrame||t||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var n,r,i,a,s,o,l,c,u,h,d,p,f,m,g,v,y,b,_,w=this._moreOptions.alignment.v,S=this._animatorsData,E=this._textData,k=this.mHelper,x=this._renderType,C=this.renderedLetters.length,P=e.l;if(this._hasMaskedPath){if(_=this._pathData.m,!this._pathData.n||this._pathData._mdf){var A,T=_.v;for(this._pathData.r.v&&(T=T.reverse()),s={tLength:0,segments:[]},a=T._length-1,v=0,i=0;i<a;i+=1)A=bez.buildBezierData(T.v[i],T.v[i+1],[T.o[i][0]-T.v[i][0],T.o[i][1]-T.v[i][1]],[T.i[i+1][0]-T.v[i+1][0],T.i[i+1][1]-T.v[i+1][1]]),s.tLength+=A.segmentLength,s.segments.push(A),v+=A.segmentLength;i=a,_.v.c&&(A=bez.buildBezierData(T.v[i],T.v[0],[T.o[i][0]-T.v[i][0],T.o[i][1]-T.v[i][1]],[T.i[0][0]-T.v[0][0],T.i[0][1]-T.v[0][1]]),s.tLength+=A.segmentLength,s.segments.push(A),v+=A.segmentLength),this._pathData.pi=s}if(s=this._pathData.pi,o=this._pathData.f.v,d=0,h=1,c=0,u=!0,m=s.segments,o<0&&_.v.c)for(s.tLength<Math.abs(o)&&(o=-Math.abs(o)%s.tLength),h=(f=m[d=m.length-1].points).length-1;o<0;)o+=f[h].partialLength,(h-=1)<0&&(h=(f=m[d-=1].points).length-1);p=(f=m[d].points)[h-1],g=(l=f[h]).partialLength}a=P.length,n=0,r=0;var R,I,D,M,F,L=1.2*e.finalSize*.714,N=!0;D=S.length;var O,B,j,V,U,z,H,G,q,K,W,$,Y=-1,X=o,J=d,Q=h,Z=-1,ee="",te=this.defaultPropsArray;if(2===e.j||1===e.j){var ne=0,re=0,ie=2===e.j?-.5:-1,ae=0,se=!0;for(i=0;i<a;i+=1)if(P[i].n){for(ne&&(ne+=re);ae<i;)P[ae].animatorJustifyOffset=ne,ae+=1;ne=0,se=!0}else{for(I=0;I<D;I+=1)(R=S[I].a).t.propType&&(se&&2===e.j&&(re+=R.t.v*ie),(F=S[I].s.getMult(P[i].anIndexes[I],E.a[I].s.totalChars)).length?ne+=R.t.v*F[0]*ie:ne+=R.t.v*F*ie);se=!1}for(ne&&(ne+=re);ae<i;)P[ae].animatorJustifyOffset=ne,ae+=1}for(i=0;i<a;i+=1){if(k.reset(),V=1,P[i].n)n=0,r+=e.yOffset,r+=N?1:0,o=X,N=!1,this._hasMaskedPath&&(h=Q,p=(f=m[d=J].points)[h-1],g=(l=f[h]).partialLength,c=0),ee="",W="",q="",$="",te=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Z!==P[i].line){switch(e.j){case 1:o+=v-e.lineWidths[P[i].line];break;case 2:o+=(v-e.lineWidths[P[i].line])/2}Z=P[i].line}Y!==P[i].ind&&(P[Y]&&(o+=P[Y].extra),o+=P[i].an/2,Y=P[i].ind),o+=w[0]*P[i].an*.005;var oe=0;for(I=0;I<D;I+=1)(R=S[I].a).p.propType&&((F=S[I].s.getMult(P[i].anIndexes[I],E.a[I].s.totalChars)).length?oe+=R.p.v[0]*F[0]:oe+=R.p.v[0]*F),R.a.propType&&((F=S[I].s.getMult(P[i].anIndexes[I],E.a[I].s.totalChars)).length?oe+=R.a.v[0]*F[0]:oe+=R.a.v[0]*F);for(u=!0,this._pathData.a.v&&(o=.5*P[0].an+(v-this._pathData.f.v-.5*P[0].an-.5*P[P.length-1].an)*Y/(a-1),o+=this._pathData.f.v);u;)c+g>=o+oe||!f?(y=(o+oe-c)/l.partialLength,B=p.point[0]+(l.point[0]-p.point[0])*y,j=p.point[1]+(l.point[1]-p.point[1])*y,k.translate(-w[0]*P[i].an*.005,-w[1]*L*.01),u=!1):f&&(c+=l.partialLength,(h+=1)>=f.length&&(h=0,m[d+=1]?f=m[d].points:_.v.c?(h=0,f=m[d=0].points):(c-=l.partialLength,f=null)),f&&(p=l,g=(l=f[h]).partialLength));O=P[i].an/2-P[i].add,k.translate(-O,0,0)}else O=P[i].an/2-P[i].add,k.translate(-O,0,0),k.translate(-w[0]*P[i].an*.005,-w[1]*L*.01,0);for(I=0;I<D;I+=1)(R=S[I].a).t.propType&&(F=S[I].s.getMult(P[i].anIndexes[I],E.a[I].s.totalChars),0===n&&0===e.j||(this._hasMaskedPath?F.length?o+=R.t.v*F[0]:o+=R.t.v*F:F.length?n+=R.t.v*F[0]:n+=R.t.v*F));for(e.strokeWidthAnim&&(z=e.sw||0),e.strokeColorAnim&&(U=e.sc?[e.sc[0],e.sc[1],e.sc[2]]:[0,0,0]),e.fillColorAnim&&e.fc&&(H=[e.fc[0],e.fc[1],e.fc[2]]),I=0;I<D;I+=1)(R=S[I].a).a.propType&&((F=S[I].s.getMult(P[i].anIndexes[I],E.a[I].s.totalChars)).length?k.translate(-R.a.v[0]*F[0],-R.a.v[1]*F[1],R.a.v[2]*F[2]):k.translate(-R.a.v[0]*F,-R.a.v[1]*F,R.a.v[2]*F));for(I=0;I<D;I+=1)(R=S[I].a).s.propType&&((F=S[I].s.getMult(P[i].anIndexes[I],E.a[I].s.totalChars)).length?k.scale(1+(R.s.v[0]-1)*F[0],1+(R.s.v[1]-1)*F[1],1):k.scale(1+(R.s.v[0]-1)*F,1+(R.s.v[1]-1)*F,1));for(I=0;I<D;I+=1){if(R=S[I].a,F=S[I].s.getMult(P[i].anIndexes[I],E.a[I].s.totalChars),R.sk.propType&&(F.length?k.skewFromAxis(-R.sk.v*F[0],R.sa.v*F[1]):k.skewFromAxis(-R.sk.v*F,R.sa.v*F)),R.r.propType&&(F.length?k.rotateZ(-R.r.v*F[2]):k.rotateZ(-R.r.v*F)),R.ry.propType&&(F.length?k.rotateY(R.ry.v*F[1]):k.rotateY(R.ry.v*F)),R.rx.propType&&(F.length?k.rotateX(R.rx.v*F[0]):k.rotateX(R.rx.v*F)),R.o.propType&&(F.length?V+=(R.o.v*F[0]-V)*F[0]:V+=(R.o.v*F-V)*F),e.strokeWidthAnim&&R.sw.propType&&(F.length?z+=R.sw.v*F[0]:z+=R.sw.v*F),e.strokeColorAnim&&R.sc.propType)for(G=0;G<3;G+=1)F.length?U[G]+=(R.sc.v[G]-U[G])*F[0]:U[G]+=(R.sc.v[G]-U[G])*F;if(e.fillColorAnim&&e.fc){if(R.fc.propType)for(G=0;G<3;G+=1)F.length?H[G]+=(R.fc.v[G]-H[G])*F[0]:H[G]+=(R.fc.v[G]-H[G])*F;R.fh.propType&&(H=F.length?addHueToRGB(H,R.fh.v*F[0]):addHueToRGB(H,R.fh.v*F)),R.fs.propType&&(H=F.length?addSaturationToRGB(H,R.fs.v*F[0]):addSaturationToRGB(H,R.fs.v*F)),R.fb.propType&&(H=F.length?addBrightnessToRGB(H,R.fb.v*F[0]):addBrightnessToRGB(H,R.fb.v*F))}}for(I=0;I<D;I+=1)(R=S[I].a).p.propType&&(F=S[I].s.getMult(P[i].anIndexes[I],E.a[I].s.totalChars),this._hasMaskedPath?F.length?k.translate(0,R.p.v[1]*F[0],-R.p.v[2]*F[1]):k.translate(0,R.p.v[1]*F,-R.p.v[2]*F):F.length?k.translate(R.p.v[0]*F[0],R.p.v[1]*F[1],-R.p.v[2]*F[2]):k.translate(R.p.v[0]*F,R.p.v[1]*F,-R.p.v[2]*F));if(e.strokeWidthAnim&&(q=z<0?0:z),e.strokeColorAnim&&(K="rgb("+Math.round(255*U[0])+","+Math.round(255*U[1])+","+Math.round(255*U[2])+")"),e.fillColorAnim&&e.fc&&(W="rgb("+Math.round(255*H[0])+","+Math.round(255*H[1])+","+Math.round(255*H[2])+")"),this._hasMaskedPath){if(k.translate(0,-e.ls),k.translate(0,w[1]*L*.01+r,0),this._pathData.p.v){b=(l.point[1]-p.point[1])/(l.point[0]-p.point[0]);var le=180*Math.atan(b)/Math.PI;l.point[0]<p.point[0]&&(le+=180),k.rotate(-le*Math.PI/180)}k.translate(B,j,0),o-=w[0]*P[i].an*.005,P[i+1]&&Y!==P[i+1].ind&&(o+=P[i].an/2,o+=.001*e.tr*e.finalSize)}else{switch(k.translate(n,r,0),e.ps&&k.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:k.translate(P[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[P[i].line]),0,0);break;case 2:k.translate(P[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[P[i].line])/2,0,0)}k.translate(0,-e.ls),k.translate(O,0,0),k.translate(w[0]*P[i].an*.005,w[1]*L*.01,0),n+=P[i].l+.001*e.tr*e.finalSize}"html"===x?ee=k.toCSS():"svg"===x?ee=k.to2dCSS():te=[k.props[0],k.props[1],k.props[2],k.props[3],k.props[4],k.props[5],k.props[6],k.props[7],k.props[8],k.props[9],k.props[10],k.props[11],k.props[12],k.props[13],k.props[14],k.props[15]],$=V}C<=i?(M=new LetterProps($,q,K,W,ee,te),this.renderedLetters.push(M),C+=1,this.lettersChangedFlag=!0):(M=this.renderedLetters[i],this.lettersChangedFlag=M.update($,q,K,W,ee,te)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(e,t,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,n),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},ITextElement.prototype.createPathShape=function(e,t){var n,r,i=t.length,a="";for(n=0;n<i;n+=1)"sh"===t[n].ty&&(r=t[n].ks.k,a+=buildShapeString(r,r.i.length,!0,e));return a},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,n,r,i){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n])/2,0,0)}t.translate(r,i,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(255*e[0])+","+Math.round(255*e[1])+","+Math.round(255*e[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,n){this.textSpans=[],this.renderType="svg",this.initElement(e,t,n)}function ISolidElement(e,t,n){this.initElement(e,t,n)}function NullElement(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initFrame(),this.initTransform(e,t,n),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(e,t,n){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var n="";if(t&&t.title){var r=createNS("title"),i=createElementID();r.setAttribute("id",i),r.textContent=t.title,this.svgElement.appendChild(r),n+=i}if(t&&t.description){var a=createNS("desc"),s=createElementID();a.setAttribute("id",s),a.textContent=t.description,this.svgElement.appendChild(a),n+=" "+s}n&&this.svgElement.setAttribute("aria-labelledby",n);var o=createNS("defs");this.svgElement.appendChild(o);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&!1===t.hideOnTransparent),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height,runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:o,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var t=0,n=e.length,r=[],i="";t<n;)e[t]===String.fromCharCode(13)||e[t]===String.fromCharCode(3)?(r.push(i),i=""):i+=e[t],t+=1;return r.push(i),r},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var n=e.shapes[0];if(n.it){var r=n.it[n.it.length-1];r.s&&(r.s.k[0]=t,r.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){var e,t;this.addDynamicProperty(this);var n=this.textProperty.currentData;this.renderedLetters=createSizedArray(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var r=this.globalData.fontManager.getFontByName(n.f);if(r.fClass)this.layerElement.setAttribute("class",r.fClass);else{this.layerElement.setAttribute("font-family",r.fFamily);var i=n.fWeight,a=n.fStyle;this.layerElement.setAttribute("font-style",a),this.layerElement.setAttribute("font-weight",i)}this.layerElement.setAttribute("aria-label",n.t);var s,o=n.l||[],l=!!this.globalData.fontManager.chars;t=o.length;var c=this.mHelper,u=this.data.singleShape,h=0,d=0,p=!0,f=.001*n.tr*n.finalSize;if(!u||l||n.sz){var m,g=this.textSpans.length;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!l||!u||0===e){if(s=g>e?this.textSpans[e].span:createNS(l?"g":"text"),g<=e){if(s.setAttribute("stroke-linecap","butt"),s.setAttribute("stroke-linejoin","round"),s.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=s,l){var v=createNS("g");s.appendChild(v),this.textSpans[e].childSpan=v}this.textSpans[e].span=s,this.layerElement.appendChild(s)}s.style.display="inherit"}if(c.reset(),u&&(o[e].n&&(h=-f,d+=n.yOffset,d+=p?1:0,p=!1),this.applyTextPropertiesToMatrix(n,c,o[e].line,h,d),h+=o[e].l||0,h+=f),l){var y;if(1===(m=this.globalData.fontManager.getCharData(n.finalText[e],r.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily)).t)y=new SVGCompElement(m.data,this.globalData,this);else{var b=emptyShapeData;m.data&&m.data.shapes&&(b=this.buildShapeData(m.data,n.finalSize)),y=new SVGShapeElement(b,this.globalData,this)}if(this.textSpans[e].glyph){var _=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(_.layerElement),_.destroy()}this.textSpans[e].glyph=y,y._debug=!0,y.prepareFrame(0),y.renderFrame(),this.textSpans[e].childSpan.appendChild(y.layerElement),1===m.t&&this.textSpans[e].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else u&&s.setAttribute("transform","translate("+c.props[12]+","+c.props[13]+")"),s.textContent=o[e].val,s.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}u&&s&&s.setAttribute("d","")}else{var w=this.textContainer,S="start";switch(n.j){case 1:S="end";break;case 2:S="middle";break;default:S="start"}w.setAttribute("text-anchor",S),w.setAttribute("letter-spacing",f);var E=this.buildTextContents(n.finalText);for(t=E.length,d=n.ps?n.ps[1]+n.ascent:0,e=0;e<t;e+=1)(s=this.textSpans[e].span||createNS("tspan")).textContent=E[e],s.setAttribute("x",0),s.setAttribute("y",d),s.style.display="inherit",w.appendChild(s),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=s,d+=n.finalLineHeight;this.layerElement.appendChild(w)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t,n=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<n;e+=1)(t=this.textSpans[e].glyph)&&(t.prepareFrame(this.comp.renderedFrame-this.data.st),t._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var e,t;this._sizeChanged=!0;var n,r,i,a=this.textAnimator.renderedLetters,s=this.textProperty.currentData.l;for(t=s.length,e=0;e<t;e+=1)s
vendor: 8,528 bytes, line 2
2[e].n||(n=a[e],r=this.textSpans[e].span,(i=this.textSpans[e].glyph)&&i.renderFrame(),n._mdf.m&&r.setAttribute("transform",n.m),n._mdf.o&&r.setAttribute("opacity",n.o),n._mdf.sw&&r.setAttribute("stroke-width",n.sw),n._mdf.sc&&r.setAttribute("stroke",n.sc),n._mdf.fc&&r.setAttribute("fill",n.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)},NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var n=createNS("clipPath"),r=createNS("rect");r.setAttribute("width",e.w),r.setAttribute("height",e.h),r.setAttribute("x",0),r.setAttribute("y",0);var i=createElementID();n.setAttribute("id",i),n.appendChild(r),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")"),t.appendChild(n),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var t=0,n=this.layers.length;for(t=0;t<n;t+=1)if(this.layers[t].ind===e)return t;return-1},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){t[e]=!0;var n=this.createItem(this.layers[e]);if(t[e]=n,getExpressionsPlugin()&&(0===this.layers[e].ty&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,e),this.layers[e].tt){var r="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(-1===r)return;if(this.elements[r]&&!0!==this.elements[r]){var i=t[r].getMatte(this.layers[e].tt);n.setMatte(i)}else this.buildItem(r),this.addPendingElement(n)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,n=this.elements.length;t<n;){if(this.elements[t]===e){var r="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,i=this.elements[r].getMatte(this.layers[t].tt);e.setMatte(i);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(this.renderedFrame!==e&&!this.destroyed){var t;null===e?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var n=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=n-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<n;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var n=e.getBaseElement();if(n){for(var r,i=0;i<t;)this.elements[i]&&!0!==this.elements[i]&&this.elements[i].getBaseElement()&&(r=this.elements[i].getBaseElement()),i+=1;r?this.layerElement.insertBefore(n,r):this.layerElement.appendChild(n)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initTransform(e,t,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&t.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var n,r=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},ShapeTransformManager.prototype={addTransformSequence:function(e){var t,n=e.length,r="_";for(t=0;t<n;t+=1)r+=e[t].transform.key+"_";var i=this.sequences[r];return i||(i={transforms:[].concat(e),finalTransform:new Matrix,_mdf:!1},this.sequences[r]=i,this.sequenceList.push(i)),i},processSequence:function(e,t){for(var n=0,r=e.transforms.length,i=t;n<r&&!t;){if(e.transforms[n].transform.mProps._mdf){i=!0;break}n+=1}if(i)for(e.finalTransform.reset(),n=r-1;n>=0;n-=1)e.finalTransform.multiply(e.transforms[n].transform.mProps.v);e._mdf=i},processSequences:function(e){var t,n=this.sequenceList.length;for(t=0;t<n;t+=1)this.processSequence(this.sequenceList[t],e)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var e="__lottie_element_luma_buffer",t=null,n=null,r=null;function i(){
vendor: 3,448 bytes, line 2
2t||(r=function(){var t=createNS("svg"),n=createNS("filter"),r=createNS("feColorMatrix");return n.setAttribute("id",e),r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","sRGB"),r.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),n.appendChild(r),t.appendChild(n),t.setAttribute("id",e+"_svg"),featureSupport.svgLumaHidden&&(t.style.display="none"),t}(),document.body.appendChild(r),t=createTag("canvas"),(n=t.getContext("2d")).filter="url(#"+e+")",n.fillStyle="rgba(0,0,0,0)",n.fillRect(0,0,1,1))}return{load:i,get:function(r){return t||i(),t.width=r.width,t.height=r.height,n.filter="url(#"+e+")",t}}};function createCanvas(e,t){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,t);var n=createTag("canvas");return n.width=e,n.height=t,n}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas:createCanvas},registeredEffects={};function CVEffects(e){var t,n,r=e.data.ef?e.data.ef.length:0;for(this.filters=[],t=0;t<r;t+=1){n=null;var i=e.data.ef[t].ty;registeredEffects[i]&&(n=new(0,registeredEffects[i].effect)(e.effectsManager.effectElements[t],e)),n&&this.filters.push(n)}this.filters.length&&e.addRenderableComponent(this)}function registerEffect(e,t){registeredEffects[e]={effect:t}}function CVMaskElement(e,t){var n;this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var r=this.masksProperties.length,i=!1;for(n=0;n<r;n+=1)"n"!==this.masksProperties[n].mode&&(i=!0),this.viewData[n]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[n],3);this.hasMasks=i,i&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(e){var t,n=this.filters.length;for(t=0;t<n;t+=1)this.filters[t].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var t,n=this.filters.length,r=[];for(t=0;t<n;t+=1)this.filters[t].type===e&&r.push(this.filters[t]);return r},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e,t,n,r,i=this.element.finalTransform.mat,a=this.element.canvasContext,s=this.masksProperties.length;for(a.beginPath(),e=0;e<s;e+=1)if("n"!==this.masksProperties[e].mode){var o;this.masksProperties[e].inv&&(a.moveTo(0,0),a.lineTo(this.element.globalData.compSize.w,0),a.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),a.lineTo(0,this.element.globalData.compSize.h),a.lineTo(0,0)),r=this.viewData[e].v,t=i.applyToPointArray(r.v[0][0],r.v[0][1],0),a.moveTo(t[0],t[1]);var l=r._length;for(o=1;o<l;o+=1)n=i.applyToTriplePoints(r.o[o-1],r.i[o],r.v[o]),a.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);n=i.applyToTriplePoints(r.o[o-1],r.i[0],r.v[0]),a.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5])}this.element.globalData.renderer.save(!0),a.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};function CVShapeData(e,t,n,r){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var i,a=4;"rc"===t.ty?a=5:"el"===t.ty?a=6:"sr"===t.ty&&(a=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,a,e);var s,o=n.length;for(i=0;i<o;i+=1)n[i].closed||(s={transforms:r.addTransformSequence(n[i].transforms),trNodes:[]},this.styledShapes.push(s),n[i].elements.push(s
vendor: 2,637 bytes, line 2
2))}function CVShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,n)}function CVTextElement(e,t,n){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,t,n)}function CVImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,n)}function CVSolidElement(e,t,n){this.initElement(e,t,n)}function CanvasRendererBase(){}function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){var e;for(this.stack=[],this.cArrPos=0,this.cTr=new Matrix,e=0;e<15;e+=1){var t=new CanvasContext;this.stack[e]=t}this._length=15,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}function CVCompElement(e,t,n){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:!t||void 0===t.clearCanvas||t.clearCanvas,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||"",runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=ne
vendor: 4,521 bytes, line 2
2w Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}function HBaseElement(){}function HSolidElement(e,t,n){this.initElement(e,t,n)}function HShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,n),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(e,t,n){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,n)}function HCameraElement(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initHierarchy();var r=PropertyFactory.getProp;if(this.pe=r(this,e.pe,0,0,this),e.ks.p.s?(this.px=r(this,e.ks.p.x,1,0,this),this.py=r(this,e.ks.p.y,1,0,this),this.pz=r(this,e.ks.p.z,1,0,this)):this.p=r(this,e.ks.p,1,0,this),e.ks.a&&(this.a=r(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var i,a=e.ks.or.k.length;for(i=0;i<a;i+=1)e.ks.or.k[i].to=null,e.ks.or.k[i].ti=null}this.or=r(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=r(this,e.ks.rx,0,degToRads,this),this.ry=r(this,e.ks.ry,0,degToRads,this),this.rz=r(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,n)}function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(e,t,n){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"},runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var e=this.globalData.canvasContext,t=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(t);var n=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(n),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffe
vendor: 4,419 bytes, line 2
2ctsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var e=this.globalData;if(e.blendMode!==this.data.bm){e.blendMode=this.data.bm;var t=getBlendMode(this.data.bm);e.canvasContext.globalCompositeOperation=t}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(e){e.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var e=this.buffers[0].getContext("2d");this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var e=this.buffers[1],t=e.getContext("2d");if(this.clearCanvas(t),t.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var n=assetLoader.getLumaCanvas(this.canvasContext.canvas);n.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(n,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(e,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(e){if(!this.hidden&&!this.data.hd&&(1!==this.data.td||e)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var t=0===this.data.ty;this.prepareLayer(),this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(t),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var n={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:!0===e.hd},r={};if("fl"===e.ty||"st"===e.ty?(r.c=PropertyFactory.getProp(this,e.c,1,255,this),r.c.k||(n.co="rgb("+bmFloor(r.c.v[0])+","+bmFloor(r.c.v[1])+","+bmFloor(r.c.v[2])+")")):"gf"!==e.ty&&"gs"!==e.ty||(r.s=PropertyFactory.getProp(this,e.s,1,null,this),r.e=PropertyFactory.getProp(this,e.e,1,null,this),r.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),r.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),r.g=new GradientProperty(this,e.g,this)),r.o=PropertyFactory.getProp(this,e.o,0,.01,this),"st"===e.ty||"gs"===e.ty){if(n.lc=lineCapEnum[e.lc||2],n.lj=lineJoinEnum[e.lj||2],1==e.lj&&(n.ml=e.ml),r.w=PropertyFactory.getProp(this,e.w,0,null,this),r.w.k||(n.wi=r.w.v),e.d){var 
vendor: 16,932 bytes, line 2
2i=new DashProperty(this,e.d,"canvas",this);r.d=i,r.d.k||(n.da=r.d.dashArray,n.do=r.d.dashoffset[0])}}else n.r=2===e.r?"evenodd":"nonzero";return this.stylesList.push(n),r.style=n,r},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(e){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}}},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,n=this.stylesList.length;for(t=0;t<n;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,n,r,i){var a,s,o,l,c,u,h=e.length-1,d=[],p=[],f=[].concat(i);for(a=h;a>=0;a-=1){if((l=this.searchProcessedElement(e[a]))?t[a]=n[l-1]:e[a]._shouldRender=r,"fl"===e[a].ty||"st"===e[a].ty||"gf"===e[a].ty||"gs"===e[a].ty)l?t[a].style.closed=!1:t[a]=this.createStyleElement(e[a],f),d.push(t[a].style);else if("gr"===e[a].ty){if(l)for(o=t[a].it.length,s=0;s<o;s+=1)t[a].prevViewData[s]=t[a].it[s];else t[a]=this.createGroupElement(e[a]);this.searchShapes(e[a].it,t[a].it,t[a].prevViewData,r,f)}else"tr"===e[a].ty?(l||(u=this.createTransformElement(e[a]),t[a]=u),f.push(t[a]),this.addTransformToStyleList(t[a])):"sh"===e[a].ty||"rc"===e[a].ty||"el"===e[a].ty||"sr"===e[a].ty?l||(t[a]=this.createShapeElement(e[a])):"tm"===e[a].ty||"rd"===e[a].ty||"pb"===e[a].ty||"zz"===e[a].ty||"op"===e[a].ty?(l?(c=t[a]).closed=!1:((c=ShapeModifiers.getModifier(e[a].ty)).init(this,e[a]),t[a]=c,this.shapeModifiers.push(c)),p.push(c)):"rp"===e[a].ty&&(l?(c=t[a]).closed=!0:(c=ShapeModifiers.getModifier(e[a].ty),t[a]=c,c.init(this,e,a,t),this.shapeModifiers.push(c),r=!1),p.push(c));this.addProcessedElement(e[a],a+1)}for(this.removeTransformFromStyleList(),this.closeStyles(d),h=p.length,a=0;a<h;a+=1)p[a].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t,n,r,i,a,s,o,l,c=this.stylesList.length,u=this.globalData.renderer,h=this.globalData.canvasContext;for(e=0;e<c;e+=1)if(("st"!==(o=(l=this.stylesList[e]).type)&&"gs"!==o||0!==l.wi)&&l.data._shouldRender&&0!==l.coOp&&0!==this.globalData.currentGlobalAlpha){for(u.save(),a=l.elements,"st"===o||"gs"===o?(u.ctxStrokeStyle("st"===o?l.co:l.grd),u.ctxLineWidth(l.wi),u.ctxLineCap(l.lc),u.ctxLineJoin(l.lj),u.ctxMiterLimit(l.ml||0)):u.ctxFillStyle("fl"===o?l.co:l.grd),u.ctxOpacity(l.coOp),"st"!==o&&"gs"!==o&&h.beginPath(),u.ctxTransform(l.preTransforms.finalTransform.props),n=a.length,t=0;t<n;t+=1){for("st"!==o&&"gs"!==o||(h.beginPath(),l.da&&(h.setLineDash(l.da),h.lineDashOffset=l.do)),i=(s=a[t].trNodes).length,r=0;r<i;r+=1)"m"===s[r].t?h.moveTo(s[r].p[0],s[r].p[1]):"c"===s[r].t?h.bezierCurveTo(s[r].pts[0],s[r].pts[1],s[r].pts[2],s[r].pts[3],s[r].pts[4],s[r].pts[5]):h.closePath();"st"!==o&&"gs"!==o||(u.ctxStroke(),l.da&&h.setLineDash(this.dashResetter))}"st"!==o&&"gs"!==o&&this.globalData.renderer.ctxFill(l.r),u.restore()}},CVShapeElement.prototype.renderShape=function(e,t,n,r){var i,a;for(a=e,i=t.length-1;i>=0;i-=1)"tr"===t[i].ty?(a=n[i].transform,this.renderShapeTransform(e,a)):"sh"===t[i].ty||"el"===t[i].ty||"rc"===t[i].ty||"sr"===t[i].ty?this.renderPath(t[i],n[i]):"fl"===t[i].ty?this.renderFill(t[i],n[i],a):"st"===t[i].ty?this.renderStroke(t[i],n[i],a):"gf"===t[i].ty||"gs"===t[i].ty?this.renderGradientFill(t[i],n[i],a):"gr"===t[i].ty?this.renderShape(a,t[i].it,n[i].it):t[i].ty;r&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var n,r,i,a=e.trNodes,s=t.paths,o=s._length;a.length=0;var l=e.transforms.finalTransform;for(i=0;i<o;i+=1){var c=s.shapes[i];if(c&&c.v){for(r=c._length,n=1;n<r;n+=1)1===n&&a.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),a.push({t:"c",pts:l.applyToTriplePoints(c.o[n-1],c.i[n],c.v[n])});1===r&&a.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),c.c&&r&&(a.push({t:"c",pts:l.applyToTriplePoints(c.o[n-1],c.i[0],c.v[0])}),a.push({t:"z"}))}}e.trNodes=a}},CVShapeElement.prototype.renderPath=function(e,t){if(!0!==e.hd&&e._shouldRender){var n,r=t.styledShapes.length;for(n=0;n<r;n+=1)this.renderStyledShape(t.styledShapes[n],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,n){var r=t.style;(t.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n._opMdf||this._isFirstFrame)&&(r.coOp=t.o.v*n.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,n){var r,i=t.style;if(!i.grd||t.g._mdf||t.s._mdf||t.e._mdf||1!==e.t&&(t.h._mdf||t.a._mdf)){var a,s=this.globalData.canvasContext,o=t.s.v,l=t.e.v;if(1===e.t)r=s.createLinearGradient(o[0],o[1],l[0],l[1]);else{var c=Math.sqrt(Math.pow(o[0]-l[0],2)+Math.pow(o[1]-l[1],2)),u=Math.atan2(l[1]-o[1],l[0]-o[0]),h=t.h.v;h>=1?h=.99:h<=-1&&(h=-.99);var d=c*h,p=Math.cos(u+t.a.v)*d+o[0],f=Math.sin(u+t.a.v)*d+o[1];r=s.createRadialGradient(p,f,0,o[0],o[1],c)}var m=e.g.p,g=t.g.c,v=1;for(a=0;a<m;a+=1)t.g._hasOpacity&&t.g._collapsable&&(v=t.g.o[2*a+1]),r.addColorStop(g[4*a]/100,"rgba("+g[4*a+1]+","+g[4*a+2]+","+g[4*a+3]+","+v+")");i.grd=r}i.coOp=t.o.v*n.opacity},CVShapeElement.prototype.renderStroke=function(e,t,n){var r=t.style,i=t.d;i&&(i._mdf||this._isFirstFrame)&&(r.da=i.dashArray,r.do=i.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n._opMdf||this._isFirstFrame)&&(r.coOp=t.o.v*n.opacity),(t.w._mdf||this._isFirstFrame)&&(r.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;var n=!1;e.sc&&(n=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var r,i,a,s,o,l,c,u,h,d,p,f,m=this.globalData.fontManager.getFontByName(e.f),g=e.l,v=this.mHelper;this.stroke=n,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,i=e.finalText.length;var y=this.data.singleShape,b=.001*e.tr*e.finalSize,_=0,w=0,S=!0,E=0;for(r=0;r<i;r+=1){s=(a=this.globalData.fontManager.getCharData(e.finalText[r],m.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily))&&a.data||{},v.reset(),y&&g[r].n&&(_=-b,w+=e.yOffset,w+=S?1:0,S=!1),h=(c=s.shapes?s.shapes[0].it:[]).length,v.scale(e.finalSize/100,e.finalSize/100),y&&this.applyTextPropertiesToMatrix(e,v,g[r].line,_,w),p=createSizedArray(h-1);var k=0;for(u=0;u<h;u+=1)if("sh"===c[u].ty){for(l=c[u].ks.k.i.length,d=c[u].ks.k,f=[],o=1;o<l;o+=1)1===o&&f.push(v.applyToX(d.v[0][0],d.v[0][1],0),v.applyToY(d.v[0][0],d.v[0][1],0)),f.push(v.applyToX(d.o[o-1][0],d.o[o-1][1],0),v.applyToY(d.o[o-1][0],d.o[o-1][1],0),v.applyToX(d.i[o][0],d.i[o][1],0),v.applyToY(d.i[o][0],d.i[o][1],0),v.applyToX(d.v[o][0],d.v[o][1],0),v.applyToY(d.v[o][0],d.v[o][1],0));f.push(v.applyToX(d.o[o-1][0],d.o[o-1][1],0),v.applyToY(d.o[o-1][0],d.o[o-1][1],0),v.applyToX(d.i[0][0],d.i[0][1],0),v.applyToY(d.i[0][0],d.i[0][1],0),v.applyToX(d.v[0][0],d.v[0][1],0),v.applyToY(d.v[0][0],d.v[0][1],0)),p[k]=f,k+=1}y&&(_+=g[r].l,_+=b),this.textSpans[E]?this.textSpans[E].elem=p:this.textSpans[E]={elem:p},E+=1}},CVTextElement.prototype.renderInnerContent=function(){var e,t,n,r,i,a;this.validateText(),this.canvasContext.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var s,o=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;t=l.length;var c,u,h=null,d=null,p=null,f=this.globalData.renderer;for(e=0;e<t;e+=1)if(!l[e].n){if((s=o[e])&&(f.save(),f.ctxTransform(s.p),f.ctxOpacity(s.o)),this.fill){for(s&&s.fc?h!==s.fc&&(f.ctxFillStyle(s.fc),h=s.fc):h!==this.values.fill&&(h=this.values.fill,f.ctxFillStyle(this.values.fill)),r=(c=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),n=0;n<r;n+=1)for(a=(u=c[n]).length,this.globalData.canvasContext.moveTo(u[0],u[1]),i=2;i<a;i+=6)this.globalData.canvasContext.bezierCurveTo(u[i],u[i+1],u[i+2],u[i+3],u[i+4],u[i+5]);this.globalData.canvasContext.closePath(),f.ctxFill()}if(this.stroke){for(s&&s.sw?p!==s.sw&&(p=s.sw,f.ctxLineWidth(s.sw)):p!==this.values.sWidth&&(p=this.values.sWidth,f.ctxLineWidth(this.values.sWidth)),s&&s.sc?d!==s.sc&&(d=s.sc,f.ctxStrokeStyle(s.sc)):d!==this.values.stroke&&(d=this.values.stroke,f.ctxStrokeStyle(this.values.stroke)),r=(c=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),n=0;n<r;n+=1)for(a=(u=c[n]).length,this.globalData.canvasContext.moveTo(u[0],u[1]),i=2;i<a;i+=6)this.globalData.canvasContext.bezierCurveTo(u[i],u[i+1],u[i+2],u[i+3],u[i+4],u[i+5]);this.globalData.canvasContext.closePath(),f.ctxStroke()}s&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t,n,r=e.getContext("2d"),i=this.img.width,a=this.img.height,s=i/a,o=this.assetData.w/this.assetData.h,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;s>o&&"xMidYMid slice"===l||s<o&&"xMidYMid slice"!==l?t=(n=a)*o:n=(t=i)/o,r.drawImage(this.img,(i-t)/2,(a-n)/2,t,n,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){1===e[0]&&0===e[1]&&0===e[4]&&1===e[5]&&0===e[12]&&0===e[13]||this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,t,n,r){this.canvasContext.fillRect(e,t,n,r)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){this.renderConfig.clearCanvas?(e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)):this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var n="0px 0px 0px";t.transformOrigin=n,t.mozTransformOrigin=n,t.webkitTransformOrigin=n,t["-webkit-transform"]=n,t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,t){var n,r,i,a;if(this.reset(),e?(n=e,r=t,this.canvasContext.canvas.width=n,this.canvasContext.canvas.height=r):(this.animationItem.wrapper&&this.animationItem.container?(n=this.animationItem.wrapper.offsetWidth,r=this.animationItem.wrapper.offsetHeight):(n=this.canvasContext.canvas.width,r=this.canvasContext.canvas.height),this.canvasContext.canvas.width=n*this.renderConfig.dpr,this.canvasContext.canvas.height=r*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var s=this.renderConfig.preserveAspectRatio.split(" "),o=s[1]||"meet",l=s[0]||"xMidYMid",c=l.substr(0,4),u=l.substr(4);i=n/r,(a=this.transformCanvas.w/this.transformCanvas.h)>i&&"meet"===o||a<i&&"slice"===o?(this.transformCanvas.sx=n/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=r/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===c&&(a<i&&"meet"===o||a>i&&"slice"===o)?(n-this.transformCanvas.w*(r/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===c&&(a<i&&"meet"===o||a>i&&"slice"===o)?(n-this.transformCanvas.w*(r/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===u&&(a>i&&"meet"===o||a<i&&"slice"===o)?(r-this.transformCanvas.h*(n/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===u&&(a>i&&"meet"===o||a<i&&"slice"===o
vendor: 11,094 bytes, line 2
2)?(r-this.transformCanvas.h*(n/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=n/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var e;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),e=(this.layers?this.layers.length:0)-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if((this.renderedFrame!==e||!0!==this.renderConfig.clearCanvas||t)&&!this.destroyed&&-1!==e){var n;this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var r=this.layers.length;for(this.completeLayers||this.checkLayers(e),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].prepareFrame(e-this.layers[n].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){var n=this.createItem(this.layers[e],this,this.globalData);t[e]=n,n.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},CVContextData.prototype.duplicate=function(){var e=2*this._length,t=0;for(t=this._length;t<e;t+=1)this.stack[t]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var t,n=this.stack[this.cArrPos],r=n.transform,i=this.cTr.props;for(t=0;t<16;t+=1)i[t]=r[t];if(e){this.nativeContext.restore();var a=this.stack[this.cArrPos+1];this.appliedFillStyle=a.fillStyle,this.appliedStrokeStyle=a.strokeStyle,this.appliedLineWidth=a.lineWidth,this.appliedLineCap=a.lineCap,this.appliedLineJoin=a.lineJoin,this.appliedMiterLimit=a.miterLimit}this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]),(e||-1!==n.opacity&&this.currentOpacity!==n.opacity)&&(this.nativeContext.globalAlpha=n.opacity,this.currentOpacity=n.opacity),this.currentFillStyle=n.fillStyle,this.currentStrokeStyle=n.strokeStyle,this.currentLineWidth=n.lineWidth,this.currentLineCap=n.lineCap,this.currentLineJoin=n.lineJoin,this.currentMiterLimit=n.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var t=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var n,r=this.stack[this.cArrPos];for(n=0;n<16;n+=1)r.transform[n]=t[n];this.cArrPos+=1;var i=this.stack[this.cArrPos];i.opacity=r.opacity,i.fillStyle=r.fillStyle,i.strokeStyle=r.strokeStyle,i.lineWidth=r.lineWidth,i.lineCap=r.lineCap,i.lineJoin=r.lineJoin,i.miterLimit=r.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var t=this.cTr;this.transformMat.multiply(t),t.cloneFromProps(this.transformMat.props);var n=t.props;this.nativeContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13])},CVContextData.prototype.opacity=function(e){var t=this.stack[this.cArrPos].opacity;t*=e<0?0:e,this.stack[this.cArrPos].opacity!==t&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=t)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,t,n,r){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,t,n,r)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e,t=this.canvasContext;for(t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip(),e=this.layers.length-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var e;for(e=this.layers.length-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var e=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var t=this.finalTransform.mat.toCSS();e.transform=t,e.webkitTransform=t}this.finalTransform._opMdf&&(e.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?((e=createNS("rect")).setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((e=createTag("div")).style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)t=e[n].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var n,r,i,a,
vendor: 1,002 bytes, line 2
2s,o=e.sh.v,l=e.transformers,c=o._length;if(!(c<=1)){for(n=0;n<c-1;n+=1)r=this.getTransformedPoint(l,o.v[n]),i=this.getTransformedPoint(l,o.o[n]),a=this.getTransformedPoint(l,o.i[n+1]),s=this.getTransformedPoint(l,o.v[n+1]),this.checkBounds(r,i,a,s,t);o.c&&(r=this.getTransformedPoint(l,o.v[n]),i=this.getTransformedPoint(l,o.o[n]),a=this.getTransformedPoint(l,o.i[0]),s=this.getTransformedPoint(l,o.v[0]),this.checkBounds(r,i,a,s,t))}},HShapeElement.prototype.checkBounds=function(e,t,n,r,i){this.getBoundsOfCurve(e,t,n,r);var a=this.shapeBoundingBox;i.x=bmMin(a.left,i.x),i.xMax=bmMax(a.right,i.xMax),i.y=bmMin(a.top,i.y),i.yMax=bmMax(a.bottom,i.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(e,t,n,r){for(var i,a,s,o,l,c,u,h=[[e[0],r[0]],[e[1],r[1]]],d=0;d<2;++d)a=6*e[d]-12*t[d]+6*n[d],i=-3*e[d]+9*t[d]-9*n[d]+3*r[d],s=3*t[d]-3*e[d],a|
vendor: 11,243 bytes, line 2
2=0,s|=0,0===(i|=0)&&0===a||(0===i?(o=-s/a)>0&&o<1&&h[d].push(this.calculateF(o,e,t,n,r,d)):(l=a*a-4*s*i)>=0&&((c=(-a+bmSqrt(l))/(2*i))>0&&c<1&&h[d].push(this.calculateF(c,e,t,n,r,d)),(u=(-a-bmSqrt(l))/(2*i))>0&&u<1&&h[d].push(this.calculateF(u,e,t,n,r,d))));this.shapeBoundingBox.left=bmMin.apply(null,h[0]),this.shapeBoundingBox.top=bmMin.apply(null,h[1]),this.shapeBoundingBox.right=bmMax.apply(null,h[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,h[1])},HShapeElement.prototype.calculateF=function(e,t,n,r,i,a){return bmPow(1-e,3)*t[a]+3*bmPow(1-e,2)*e*n[a]+3*(1-e)*bmPow(e,2)*r[a]+bmPow(e,3)*i[a]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)e[n]&&e[n].sh?this.calculateShapeBoundingBox(e[n],t):e[n]&&e[n].it?this.calculateBoundingBox(e[n].it,t):e[n]&&e[n].style&&e[n].w&&this.expandStrokeBoundingBox(e[n].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var n=0;if(e.keyframes){for(var r=0;r<e.keyframes.length;r+=1){var i=e.keyframes[r].s;i>n&&(n=i)}n*=e.mult}else n=e.v*e.mult;t.x-=n,t.xMax+=n,t.y-=n,t.yMax+=n},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var n=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),n=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),n=!0),n||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var r=this.shapeCont.style,i="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";r.transform=i,r.webkitTransform=i}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,n=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=n,t.color=n,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var r,i,a=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",a.fClass)this.innerElem.className=a.fClass;else{t.fontFamily=a.fFamily;var s=e.fWeight,o=e.fStyle;t.fontStyle=o,t.fontWeight=s}var l,c,u,h=e.l;i=h.length;var d,p=this.mHelper,f="",m=0;for(r=0;r<i;r+=1){if(this.globalData.fontManager.chars?(this.textPaths[m]?l=this.textPaths[m]:((l=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),l.setAttribute("stroke-linejoin",lineJoinEnum[2]),l.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[m]?u=(c=this.textSpans[m]).children[0]:((c=createTag("div")).style.lineHeight=0,(u=createNS("svg")).appendChild(l),styleDiv(c)))):this.isMasked?l=this.textPaths[m]?this.textPaths[m]:createNS("text"):this.textSpans[m]?(c=this.textSpans[m],l=this.textPaths[m]):(styleDiv(c=createTag("span")),styleDiv(l=createTag("span")),c.appendChild(l)),this.globalData.fontManager.chars){var g,v=this.globalData.fontManager.getCharData(e.finalText[r],a.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily);if(g=v?v.data:null,p.reset(),g&&g.shapes&&g.shapes.length&&(d=g.shapes[0].it,p.scale(e.finalSize/100,e.finalSize/100),f=this.createPathShape(p,d),l.setAttribute("d",f)),this.isMasked)this.innerElem.appendChild(l);else{if(this.innerElem.appendChild(c),g&&g.shapes){document.body.appendChild(u);var y=u.getBBox();u.setAttribute("width",y.width+2),u.setAttribute("height",y.height+2),u.setAttribute("viewBox",y.x-1+" "+(y.y-1)+" "+(y.width+2)+" "+(y.height+2));var b=u.style,_="translate("+(y.x-1)+"px,"+(y.y-1)+"px)";b.transform=_,b.webkitTransform=_,h[r].yOffset=y.y-1}else u.setAttribute("width",1),u.setAttribute("height",1);c.appendChild(u)}}else if(l.textContent=h[r].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(l);else{this.innerElem.appendChild(c);var w=l.style,S="translate3d(0,"+-e.finalSize/1.2+"px,0)";w.transform=S,w.webkitTransform=S}this.isMasked?this.textSpans[m]=l:this.textSpans[m]=c,this.textSpans[m].style.display="block",this.textPaths[m]=l,m+=1}for(;m<this.textSpans.length;)this.textSpans[m].style.display="none",m+=1},HTextElement.prototype.renderInnerContent=function(){var e;if(this.validateText(),this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var t="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=t,e.webkitTransform=t}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var n,r,i,a,s,o=0,l=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;for(r=c.length,n=0;n<r;n+=1)c[n].n?o+=1:(a=this.textSpans[n],s=this.textPaths[n],i=l[o],o+=1,i._mdf.m&&(this.isMasked?a.setAttribute("transform",i.m):(a.style.webkitTransform=i.m,a.style.transform=i.m)),a.style.opacity=i.o,i.sw&&i._mdf.sw&&s.setAttribute("stroke-width",i.sw),i.sc&&i._mdf.sc&&s.setAttribute("stroke",i.sc),i.fc&&i._mdf.fc&&(s.setAttribute("fill",i.fc),s.style.color=i.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var u=this.innerElem.getBBox();if(this.currentBBox.w!==u.width&&(this.currentBBox.w=u.width,this.svgElement.setAttribute("width",u.width)),this.currentBBox.h!==u.height&&(this.currentBBox.h=u.height,this.svgElement.setAttribute("height",u.height)),this.currentBBox.w!==u.width+2||this.currentBBox.h!==u.height+2||this.currentBBox.x!==u.x-1||this.currentBBox.y!==u.y-1){this.currentBBox.w=u.width+2,this.currentBBox.h=u.height+2,this.currentBBox.x=u.x-1,this.currentBBox.y=u.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var h="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=h,e.webkitTransform=h}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t,n,r,i=this.comp.threeDElements.length;for(e=0;e<i;e+=1)if("3d"===(t=this.comp.threeDElements[e]).type){n=t.perspectiveElem.style,r=t.container.style;var a=this.pe.v+"px",s="0px 0px 0px",o="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";n.perspective=a,n.webkitPerspective=a,r.transformOrigin=s,r.mozTransformOrigin=s,r.webkitTransformOrigin=s,n.transform=o,n.webkitTransform=o}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e,t,n=this._isFirstFrame;if(this.hierarchy)for(t=this.hierarchy.length,e=0;e<t;e+=1)n=this.hierarchy[e].finalTransform.mProp._mdf||n;if(n||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(e=t=this.hierarchy.length-1;e>=0;e-=1){var r=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-r.p.v[0],-r.p.v[1],r.p.v[2]),this.mat.rotateX(-r.or.v[0]).rotateY(-r.or.v[1]).rotateZ(r.or.v[2]),this.mat.rotateX(-r.rx.v).rotateY(-r.ry.v).rotateZ(r.rz.v),this.mat.scale(1/r.s.v[0],1/r.s.v[1],1/r.s.v[2]),this.mat.translate(r.a.v[0],r.a.v[1],r.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var i;i=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var a=Math.sqrt(Math.pow(i[0],2)+Math.pow(i[1],2)+Math.pow(i[2],2)),s=[i[0]/a,i[1]/a,i[2]/a],o=Math.sqrt(s[2]*s[2]+s[0]*s[0]),l=Math.atan2(s[1],o),c=Math.atan2(s[0],-s[2]);this.mat.rotateY(c).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var u=!this._prevMat.equals(this.mat);if((u||this.pe._mdf)&&this.comp.threeDElements){var h,d,p;for(t=this.comp.threeDElements.length,e=0;e<t;e+=1)if("3d"===(h=this.comp.threeDElements[e]).type){if(u){var f=this.mat.toCSS();(p=h.container.style).transform=f,p.webkitTransform=f}this.pe._mdf&&((d=h.perspectiveElem.style).perspective=this.pe.v+"px",d.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(e,t){var n=e.getBaseElement();if(n){var r=this.layers[t];
vendor: 9,184 bytes, line 2
2if(r.ddd&&this.supports3d)this.addTo3dContainer(n,t);else if(this.threeDElements)this.addTo3dContainer(n,t);else{for(var i,a,s=0;s<t;)this.elements[s]&&!0!==this.elements[s]&&this.elements[s].getBaseElement&&(a=this.elements[s],i=(this.layers[s].ddd?this.getThreeDContainerByPos(s):a.getBaseElement())||i),s+=1;i?r.ddd&&this.supports3d||this.layerElement.insertBefore(n,i):r.ddd&&this.supports3d||this.layerElement.appendChild(n)}}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var t=0,n=this.threeDElements.length;t<n;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var n,r,i=createTag("div");styleDiv(i);var a=createTag("div");if(styleDiv(a),"3d"===t){(n=i.style).width=this.globalData.compSize.w+"px",n.height=this.globalData.compSize.h+"px";var s="50% 50%";n.webkitTransformOrigin=s,n.mozTransformOrigin=s,n.transformOrigin=s;var o="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(r=a.style).transform=o,r.webkitTransform=o}i.appendChild(a);var l={container:a,perspectiveElem:i,startPos:e,endPos:e,type:t};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var e,t,n=this.layers.length,r="";for(e=0;e<n;e+=1)this.layers[e].ddd&&3!==this.layers[e].ty?("3d"!==r&&(r="3d",t=this.createThreeDContainer(e,"3d")),t.endPos=Math.max(t.endPos,e)):("2d"!==r&&(r="2d",t=this.createThreeDContainer(e,"2d")),t.endPos=Math.max(t.endPos,e));for(e=(n=this.threeDElements.length)-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var n=0,r=this.threeDElements.length;n<r;){if(t<=this.threeDElements[n].endPos){for(var i,a=this.threeDElements[n].startPos;a<t;)this.elements[a]&&this.elements[a].getBaseElement&&(i=this.elements[a].getBaseElement()),a+=1;i?this.threeDElements[n].container.insertBefore(e,i):this.threeDElements[n].container.appendChild(e);break}n+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),n=this.animationItem.wrapper,r=t.style;r.width=e.w+"px",r.height=e.h+"px",this.resizerElem=t,styleDiv(t),r.transformStyle="flat",r.mozTransformStyle="flat",r.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),n.appendChild(t),r.overflow="hidden";var i=createNS("svg");i.setAttribute("width","1"),i.setAttribute("height","1"),styleDiv(i),this.resizerElem.appendChild(i);var a=createNS("defs");i.appendChild(a),this.data=e,this.setupGlobalData(e,i),this.globalData.defs=a,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e,t,n,r,i=this.animationItem.wrapper.offsetWidth,a=this.animationItem.wrapper.offsetHeight,s=i/a;this.globalData.compSize.w/this.globalData.compSize.h>s?(e=i/this.globalData.compSize.w,t=i/this.globalData.compSize.w,n=0,r=(a-this.globalData.compSize.h*(i/this.globalData.compSize.w))/2):(e=a/this.globalData.compSize.h,t=a/this.globalData.compSize.h,n=(i-this.globalData.compSize.w*(a/this.globalData.compSize.h))/2,r=0);var o=this.resizerElem.style;o.webkitTransform="matrix3d("+e+",0,0,0,0,"+t+",0,0,0,0,1,0,"+n+","+r+",0,1)",o.transform=o.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e,t=this.globalData.compSize.w,n=this.globalData.compSize.h,r=this.threeDElements.length;for(e=0;e<r;e+=1){var i=this.threeDElements[e].perspectiveElem.style;i.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(n,2))+"px",i.perspective=i.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,n=e.length,r=createTag("div");for(t=0;t<n;t+=1)if(e[t].xt){var i=this.createComp(e[t],r,this.globalData.comp,null);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(e,t){for(var n,r=0;r<t;)this.elements[r]&&this.elements[r].getBaseElement&&(n=this.elements[r].getBaseElement()),r+=1;n?this.layerElement.insertBefore(e,n):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=function(e){function t(t){for(var n=0,r=e.layers.length;n<r;){if(e.layers[n].nm===t||e.layers[n].ind===t)return e.elements[n].layerInterface;n+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t};function _typeof$2(e){return _typeof$2="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},_typeof$2(e)}function seedRandom(e,t){var n=this,r=256,i="random",a=t.pow(r,6),s=t.pow(2,52),o=2*s,l=255;function c(e){var t,n=e.length,i=this,a=0,s=i.i=i.j=0,o=i.S=[];for(n||(e=[n++]);a<r;)o[a]=a++;for(a=0;a<r;a++)o[a]=o[s=l&s+e[a%n]+(t=o[a])],o[s]=t;i.g=function(e){for(var t,n=0,a=i.i,s=i.j,o=i.S;e--;)t=o[a=l&a+1],n=n*r+o[l&(o[a]=o[s=l&s+t])+(o[s]=t)];return i.i=a,i.j=s,n}}function u(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function h(e,t){var n,r=[],i=_typeof$2(e);if(t&&"object"==i)for(n in e)try{r.push(h(e[n],t-1))}catch(a){}return r.length?r:"string"==i?e:e+"\0"}function d(e,t){for(var n,r=e+"",i=0;i<r.length;)t[l&i]=l&(n^=19*t[l&i])+r.charCodeAt(i++);return p(t)}function p(e){return String.fromCharCode.apply(0,e)}t["seed"+i]=function(l,f,m){var g=[],v=d(h((f=!0===f?{entropy:!0}:f||{}).entropy?[l,p(e)]:null===l?function(){try{var t=new Uint8Array(r);return(n.crypto||n.msCrypto).getRandomValues(t),p(t)}catch(s){var i=n.navigator,a=i&&i.plugins;return[+new Date,n,a,n.screen,p(e)]}}():l,3),g),y=new c(g),b=function(){for(var e=y.g(6),t=a,n=0;e<s;)e=(e+n)*r,t*=r,n=y.g(1);for(;e>=o;)e/=2,t/=2,n>>>=1;return(e+n)/t};return b.int32=function(){return 0|y.g(4)},b.quick=function(){return y.g(4)/4294967296},b.double=b,d(p(y.S),e),(f.pass||m||function(e,n,r,a){return a&&(a.S&&u(a,y),e.state=function(){return u(y,{})}),r?(t[i]=e,n):e})(b,v,"global"in f?f.global:this==t,f.state)},d(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof$1(e){return _typeof$1="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},_typeof$1(e)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};
vendor: 18,399 bytes, line 2
2function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return"number"===e||t instanceof Number||"boolean"===e||"string"===e}function $bm_neg(e){var t=_typeof$1(e);if("number"===t||e instanceof Number||"boolean"===t)return-e;if($bm_isInstanceOfArray(e)){var n,r=e.length,i=[];for(n=0;n<r;n+=1)i[n]=-e[n];return i}return e.propType?e.v:-e}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var n=_typeof$1(e),r=_typeof$1(t);if(isNumerable(n,e)&&isNumerable(r,t)||"string"===n||"string"===r)return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(r,t))return(e=e.slice(0))[0]+=t,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var i=0,a=e.length,s=t.length,o=[];i<a||i<s;)("number"===typeof e[i]||e[i]instanceof Number)&&("number"===typeof t[i]||t[i]instanceof Number)?o[i]=e[i]+t[i]:o[i]=void 0===t[i]?e[i]:e[i]||t[i],i+=1;return o}return 0}var add=sum;function sub(e,t){var n=_typeof$1(e),r=_typeof$1(t);if(isNumerable(n,e)&&isNumerable(r,t))return"string"===n&&(e=parseInt(e,10)),"string"===r&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(r,t))return(e=e.slice(0))[0]-=t,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var i=0,a=e.length,s=t.length,o=[];i<a||i<s;)("number"===typeof e[i]||e[i]instanceof Number)&&("number"===typeof t[i]||t[i]instanceof Number)?o[i]=e[i]-t[i]:o[i]=void 0===t[i]?e[i]:e[i]||t[i],i+=1;return o}return 0}function mul(e,t){var n,r,i,a=_typeof$1(e),s=_typeof$1(t);if(isNumerable(a,e)&&isNumerable(s,t))return e*t;if($bm_isInstanceOfArray(e)&&isNumerable(s,t)){for(i=e.length,n=createTypedArray("float32",i),r=0;r<i;r+=1)n[r]=e[r]*t;return n}if(isNumerable(a,e)&&$bm_isInstanceOfArray(t)){for(i=t.length,n=createTypedArray("float32",i),r=0;r<i;r+=1)n[r]=e*t[r];return n}return 0}function div(e,t){var n,r,i,a=_typeof$1(e),s=_typeof$1(t);if(isNumerable(a,e)&&isNumerable(s,t))return e/t;if($bm_isInstanceOfArray(e)&&isNumerable(s,t)){for(i=e.length,n=createTypedArray("float32",i),r=0;r<i;r+=1)n[r]=e[r]/t;return n}if(isNumerable(a,e)&&$bm_isInstanceOfArray(t)){for(i=t.length,n=createTypedArray("float32",i),r=0;r<i;r+=1)n[r]=e/t[r];return n}return 0}function mod(e,t){return"string"===typeof e&&(e=parseInt(e,10)),"string"===typeof t&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,n){if(t>n){var r=n;n=t,t=r}return Math.min(Math.max(e,t),n)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if("number"===typeof e||e instanceof Number)return t=t||0,Math.abs(e-t);var n;t||(t=helperLengthArray);var r=Math.min(e.length,t.length),i=0;for(n=0;n<r;n+=1)i+=Math.pow(t[n]-e[n],2);return Math.sqrt(i)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t,n,r=e[0],i=e[1],a=e[2],s=Math.max(r,i,a),o=Math.min(r,i,a),l=(s+o)/2;if(s===o)t=0,n=0;else{var c=s-o;switch(n=l>.5?c/(2-s-o):c/(s+o),s){case r:t=(i-a)/c+(i<a?6:0);break;case i:t=(a-r)/c+2;break;case a:t=(r-i)/c+4}t/=6}return[t,n,l,e[3]]}function hue2rgb(e,t,n){return 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}function hslToRgb(e){var t,n,r,i=e[0],a=e[1],s=e[2];if(0===a)t=s,r=s,n=s;else{var o=s<.5?s*(1+a):s+a-s*a,l=2*s-o;t=hue2rgb(l,o,i+1/3),n=hue2rgb(l,o,i),r=hue2rgb(l,o,i-1/3)}return[t,n,r,e[3]]}function linear(e,t,n,r,i){if(void 0!==r&&void 0!==i||(r=t,i=n,t=0,n=1),n<t){var a=n;n=t,t=a}if(e<=t)return r;if(e>=n)return i;var s,o=n===t?0:(e-t)/(n-t);if(!r.length)return r+(i-r)*o;var l=r.length,c=createTypedArray("float32",l);for(s=0;s<l;s+=1)c[s]=r[s]+(i[s]-r[s])*o;return c}function random(e,t){if(void 0===t&&(void 0===e?(e=0,t=1):(t=e,e=void 0)),t.length){var n,r=t.length;e||(e=createTypedArray("float32",r));var i=createTypedArray("float32",r),a=BMMath.random();for(n=0;n<r;n+=1)i[n]=e[n]+a*(t[n]-e[n]);return i}return void 0===e&&(e=0),e+BMMath.random()*(t-e)}function createPath(e,t,n,r){var i,a=e.length,s=shapePool.newElement();s.setPathData(!!r,a);var o,l,c=[0,0];for(i=0;i<a;i+=1)o=t&&t[i]?t[i]:c,l=n&&n[i]?n[i]:c,s.setTripleAt(e[i][0],e[i][1],l[0]+e[i][0],l[1]+e[i][1],o[0]+e[i][0],o[1]+e[i][1],i,!0);return s}function initiateExpression(elem,data,property){function noOp(e){return e}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty._name=elem.data.nm,thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(e,t){var n,r,i=this.pv.length?this.pv.length:1,a=createTypedArray("float32",i),s=Math.floor(5*time);for(n=0,r=0;n<s;){for(r=0;r<i;r+=1)a[r]+=-t+2*t*BMMath.random();n+=1}var o=5*time,l=o-Math.floor(o),c=createTypedArray("float32",i);if(i>1){for(r=0;r<i;r+=1)c[r]=this.pv[r]+a[r]+(-t+2*t*BMMath.random())*l;return c}return this.pv+a[0]+(-t+2*t*BMMath.random())*l}.bind(this);function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(e,t){var n=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],r=Math.atan2(n[0],Math.sqrt(n[1]*n[1]+n[2]*n[2]))/degToRads;return[-Math.atan2(n[1],n[2])/degToRads,r,0]}function easeOut(e,t,n,r,i){return applyEase(easeOutBez,e,t,n,r,i)}function easeIn(e,t,n,r,i){return applyEase(easeInBez,e,t,n,r,i)}function ease(e,t,n,r,i){return applyEase(easeInOutBez,e,t,n,r,i)}function applyEase(e,t,n,r,i,a){void 0===i?(i=n,a=r):t=(t-n)/(r-n),t>1?t=1:t<0&&(t=0);var s=e(t);if($bm_isInstanceOfArray(i)){var o,l=i.length,c=createTypedArray("float32",l);for(o=0;o<l;o+=1)c[o]=(a[o]-i[o])*s+i[o];return c}return(a-i)*s+i}function nearestKey(e){var t,n,r,i=data.k.length;if(data.k.length&&"number"!==typeof data.k[0])if(n=-1,(e*=elem.comp.globalData.frameRate)<data.k[0].t)n=1,r=data.k[0].t;else{for(t=0;t<i-1;t+=1){if(e===data.k[t].t){n=t+1,r=data.k[t].t;break}if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(n=t+2,r=data.k[t+1].t):(n=t+1,r=data.k[t].t);break}}-1===n&&(n=t+1,r=data.k[t].t)}else n=0,r=0;var a={};return a.index=n,a.time=r/elem.comp.globalData.frameRate,a}function key(e){var t,n,r;if(!data.k.length||"number"===typeof data.k[0])throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var i=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(r=i.length,n=0;n<r;n+=1)t[n]=i[n],t.value[n]=i[n];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return e||0===e||(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return"string"===typeof value?void 0===t?value.substring(e):value.substring(e,t):""}function substr(e,t){return"string"===typeof value?void 0===t?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=0===e?0:Math.floor(time*e)/e,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var e={initExpressions:function(e){var t=0,n=[];e.renderer.compInterface=CompExpressionInterface(e.renderer),e.renderer.globalData.projectInterface.registerComposition(e.renderer),e.renderer.globalData.pushExpression=function(){t+=1},e.renderer.globalData.popExpression=function(){0===(t-=1)&&function(){var e,t=n.length;for(e=0;e<t;e+=1)n[e].release();n.length=0}()},e.renderer.globalData.registerExpressionProperty=function(e){-1===n.indexOf(e)&&n.push(e)}}};return e.resetFrame=ExpressionManager.resetFrame,e}(),MaskManagerInterface=function(){function e(e,t){this._mask=e,this._data=t}return Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(t){var n,r=createSizedArray(t.viewData.length),i=t.viewData.length;for(n=0;n<i;n+=1)r[n]=new e(t.viewData[n],t.masksProperties[n]);return function(e){for(n=0;n<i;){if(t.masksProperties[n].nm===e)return r[n];n+=1}return null}}}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function n(e,t,n){Object.defineProperty(e,"velocity",{get:function(){return t.getVelocityAtTime(t.comp.currentFrame)}}),e.numKeys=t.keyframes?t.keyframes.length:0,e.key=function(r){if(!e.numKeys)return 0;var i="";i="s"in t.keyframes[r-1]?t.keyframes[r-1].s:"e"in t.keyframes[r-2]?t.keyframes[r-2].e:t.keyframes[r-2].s;var a="unidimensional"===n?new Number(i):Object.assign({},i);return a.time=t.keyframes[r-1].t/t.elem.comp.globalData.frameRate,a.value="unidimensional"===n?i[0]:i,a},e.valueAtTime=t.getValueAtTime,e.speedAtTime=t.getSpeedAtTime,e.velocityAtTime=t.getVelocityAtTime,e.propertyGroup=t.propertyGroup}function r(){return e}return function(i){return i?"unidimensional"===i.propType?function(t){t&&"pv"in t||(t=e);var r=1/t.mult,i=t.pv*r,a=new Number(i);return a.value=i,n(a,t,"unidimensional"),function(){return t.k&&t.getValue(),i=t.v*r,a.value!==i&&((a=new Number(i)).value=i,a[0]=i,n(a,t,"unidimensional")),a}}(i):function(e){e&&"pv"in e||(e=t);var r=1/e.mult,i=e.data&&e.data.l||e.pv.length,a=createTypedArray("float32",i),s=createTypedArray("float32",i);return a.value=s,n(a,e,"multidimensional"),function(){e.k&&e.getValue();for(var t=0;t<i;t+=1)s[t]=e.v[t]*r,a[t]=s[t];return a}}(i):r}}(),TransformExpressionInterface=function(e){function t(e){switch(e){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}var n,r,i,a;return Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)}),e.p?a=ExpressionPropertyInterface(e.p):(n=ExpressionPropertyInterface(e.px),r=ExpressionPropertyInterface(e.py),e.pz&&(i=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?a():[n(),r(),i?i():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t},LayerExpressionInterface=function(){function e(e){var t=new Matrix;return void 0!==e?this._elem.finalTransform.mProp.getValueAtTime(e).clone(t):this._elem.finalTransform.mProp.applyToMatrix(t),t}function t(e,t){var n=this.getMatrix(t);return n.props[12]=0,n.props[13]=0,n.props[14]=0,this.applyPoint(n,e)}function n(e,t){var n=this.getMatrix(t);return this.applyPoint(n,e)}function r(e,t){var n=this.getMatrix(t);return n.props[12]=0,n.props[13]=0,n.props[14]=0,this.invertPoint(n,e)}function i(e,t){var n=this.getMatrix(t);return this.invertPoint(n,e)}function a(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var n,r=this._elem.hierarchy.length;for(n=0;n<r;n+=1)this._elem.hierarchy[n].finalTransform.mProp.applyToMatrix(e)}return e.applyToPointArray(t[0],t[1],t[2]||0)}function s(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var n,r=this._elem.hierarchy.length;for(n=0;n<r;n+=1)this._elem.hierarchy[n].finalTransform.mProp.applyToMatrix(e)}return e.inversePoint(t)}function o(e){var t=new Matrix;if(t.reset(),this._elem.finalTransform.mProp.applyToMatrix(t),this._elem.hierarchy&&this._elem.hierarchy.length){var n,r=this._elem.hierarchy.length;for(n=0;n<r;n+=1)this._elem.hierarchy[n].finalTransform.mProp.applyToMatrix(t);return t.inversePoint(e)}return t.inversePoint(e)}function l(){return[1,1,1,1]}return function(c){var u;function h(e){switch(e){case"ADBE Root Vectors Group":case"Contents":case 2:return h.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return u;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return h.effect;case"ADBE Text Properties":return h.textInterface;default:return null}}h.getMatrix=e,h.invertPoint=s,h.applyPoint=a,h.toWorld=n,h.toWorldVec=t,h.fromWorld=i,h.fromWorldVec=r,h.toComp=n,h.fromComp=o,h.sampleImage=l,h.sourceRectAtTime=c.sourceRectAtTime.bind(c),h._elem=c;var d=getDescriptor(u=TransformExpressionInterface(c.finalTransform.mProp),"anchorPoint");return Object.defineProperties(h,{hasParent:{get:function(){return c.hierarchy.length}},parent:{get:function(){return c.hierarchy[0].layerInterface}},rotation:getDescriptor(u,"rotation"),scale:getDescriptor(u,"scale"),position:getDescriptor(u,"position"),opacity:getDescriptor(u,"opacity"),anchorPoint:d,anchor_point:d,transform:{get:function(){return u}},active:{get:function(){return c.isInRange}}}),h.startTime=c.data.st,h.index=c.data.ind,h.source=c.data.refId,h.height=0===c.data.ty?c.data.h:100,h.width=0===c.data.ty?c.data.w:100,h.inPoint=c.data.ip/c.comp.globalData.frameRate,h.outPoint=c.data.op/c.comp.globalData.frameRate,h._name=c.data.nm,h.registerMaskInterface=function(e){h.mask=new MaskManagerInterface(e,c)},h.registerEffectsInterface=function(e){h.effect=e},h}}(),propertyGroupFactory=function(e,t){return function(n){return(n=void 0===n?1:n)<=0?e:t(n-1)}},PropertyInterface=function(e,t){var n={_name:e};return function(e){return(e=void 0===e?1:e)<=0?n:t(e-1)}}
vendor: 22,999 bytes, line 2
2,EffectsExpressionInterface=function(){function e(n,r,i,a){function s(e){for(var t=n.ef,r=0,i=t.length;r<i;){if(e===t[r].nm||e===t[r].mn||e===t[r].ix)return 5===t[r].ty?c[r]:c[r]();r+=1}throw new Error}var o,l=propertyGroupFactory(s,i),c=[],u=n.ef.length;for(o=0;o<u;o+=1)5===n.ef[o].ty?c.push(e(n.ef[o],r.effectElements[o],r.effectElements[o].propertyGroup,a)):c.push(t(r.effectElements[o],n.ef[o].ty,a,l));return"ADBE Color Control"===n.mn&&Object.defineProperty(s,"color",{get:function(){return c[0]()}}),Object.defineProperties(s,{numProperties:{get:function(){return n.np}},_name:{value:n.nm},propertyGroup:{value:l}}),s.enabled=0!==n.en,s.active=s.enabled,s}function t(e,t,n,r){var i=ExpressionPropertyInterface(e.p);return e.p.setGroupProperty&&e.p.setGroupProperty(PropertyInterface("",r)),function(){return 10===t?n.comp.compInterface(e.p.v):i()}}return{createEffectsInterface:function(t,n){if(t.effectsManager){var r,i=[],a=t.data.ef,s=t.effectsManager.effectElements.length;for(r=0;r<s;r+=1)i.push(e(a[r],t.effectsManager.effectElements[r],n,t));var o=t.data.ef||[],l=function(e){for(r=0,s=o.length;r<s;){if(e===o[r].nm||e===o[r].mn||e===o[r].ix)return i[r];r+=1}return null};return Object.defineProperty(l,"numProperties",{get:function(){return o.length}}),l}return null}}}(),ShapePathInterface=function(e,t,n){var r=t.sh;function i(e){return"Shape"===e||"shape"===e||"Path"===e||"path"===e||"ADBE Vector Shape"===e||2===e?i.path:null}var a=propertyGroupFactory(i,n);return r.setGroupProperty(PropertyInterface("Path",a)),Object.defineProperties(i,{path:{get:function(){return r.k&&r.getValue(),r}},shape:{get:function(){return r.k&&r.getValue(),r}},_name:{value:e.nm},ix:{value:e.ix},propertyIndex:{value:e.ix},mn:{value:e.mn},propertyGroup:{value:n}}),i},ShapeExpressionInterface=function(){function e(e,o,p){var f,m=[],g=e?e.length:0;for(f=0;f<g;f+=1)"gr"===e[f].ty?m.push(t(e[f],o[f],p)):"fl"===e[f].ty?m.push(n(e[f],o[f],p)):"st"===e[f].ty?m.push(a(e[f],o[f],p)):"tm"===e[f].ty?m.push(s(e[f],o[f],p)):"tr"===e[f].ty||("el"===e[f].ty?m.push(l(e[f],o[f],p)):"sr"===e[f].ty?m.push(c(e[f],o[f],p)):"sh"===e[f].ty?m.push(ShapePathInterface(e[f],o[f],p)):"rc"===e[f].ty?m.push(u(e[f],o[f],p)):"rd"===e[f].ty?m.push(h(e[f],o[f],p)):"rp"===e[f].ty?m.push(d(e[f],o[f],p)):"gf"===e[f].ty?m.push(r(e[f],o[f],p)):m.push(i(e[f],o[f])));return m}function t(t,n,r){var i=function(e){switch(e){case"ADBE Vectors Group":case"Contents":case 2:return i.content;default:return i.transform}};i.propertyGroup=propertyGroupFactory(i,r);var a=function(t,n,r){var i,a=function(e){for(var t=0,n=i.length;t<n;){if(i[t]._name===e||i[t].mn===e||i[t].propertyIndex===e||i[t].ix===e||i[t].ind===e)return i[t];t+=1}return"number"===typeof e?i[e-1]:null};a.propertyGroup=propertyGroupFactory(a,r),i=e(t.it,n.it,a.propertyGroup),a.numProperties=i.length;var s=o(t.it[t.it.length-1],n.it[n.it.length-1],a.propertyGroup);return a.transform=s,a.propertyIndex=t.cix,a._name=t.nm,a}(t,n,i.propertyGroup),s=o(t.it[t.it.length-1],n.it[n.it.length-1],i.propertyGroup);return i.content=a,i.transform=s,Object.defineProperty(i,"_name",{get:function(){return t.nm}}),i.numProperties=t.np,i.propertyIndex=t.ix,i.nm=t.nm,i.mn=t.mn,i}function n(e,t,n){function r(e){return"Color"===e||"color"===e?r.color:"Opacity"===e||"opacity"===e?r.opacity:null}return Object.defineProperties(r,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",n)),t.o.setGroupProperty(PropertyInterface("Opacity",n)),r}function r(e,t,n){function r(e){return"Start Point"===e||"start point"===e?r.startPoint:"End Point"===e||"end point"===e?r.endPoint:"Opacity"===e||"opacity"===e?r.opacity:null}return Object.defineProperties(r,{startPoint:{get:ExpressionPropertyInterface(t.s)},endPoint:{get:ExpressionPropertyInterface(t.e)},opacity:{get:ExpressionPropertyInterface(t.o)},type:{get:function(){return"a"}},_name:{value:e.nm},mn:{value:e.mn}}),t.s.setGroupProperty(PropertyInterface("Start Point",n)),t.e.setGroupProperty(PropertyInterface("End Point",n)),t.o.setGroupProperty(PropertyInterface("Opacity",n)),r}function i(){return function(){return null}}function a(e,t,n){var r,i=propertyGroupFactory(c,n),a=propertyGroupFactory(l,i);function s(n){Object.defineProperty(l,e.d[n].nm,{get:ExpressionPropertyInterface(t.d.dataProps[n].p)})}var o=e.d?e.d.length:0,l={};for(r=0;r<o;r+=1)s(r),t.d.dataProps[r].p.setGroupProperty(a);function c(e){return"Color"===e||"color"===e?c.color:"Opacity"===e||"opacity"===e?c.opacity:"Stroke Width"===e||"stroke width"===e?c.strokeWidth:null}return Object.defineProperties(c,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},strokeWidth:{get:ExpressionPropertyInterface(t.w)},dash:{get:function(){return l}},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",i)),t.o.setGroupProperty(PropertyInterface("Opacity",i)),t.w.setGroupProperty(PropertyInterface("Stroke Width",i)),c}function s(e,t,n){function r(t){return t===e.e.ix||"End"===t||"end"===t?r.end:t===e.s.ix?r.start:t===e.o.ix?r.offset:null}var i=propertyGroupFactory(r,n);return r.propertyIndex=e.ix,t.s.setGroupProperty(PropertyInterface("Start",i)),t.e.setGroupProperty(PropertyInterface("End",i)),t.o.setGroupProperty(PropertyInterface("Offset",i)),r.propertyIndex=e.ix,r.propertyGroup=n,Object.defineProperties(r,{start:{get:ExpressionPropertyInterface(t.s)},end:{get:ExpressionPropertyInterface(t.e)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),r.mn=e.mn,r}function o(e,t,n){function r(t){return e.a.ix===t||"Anchor Point"===t?r.anchorPoint:e.o.ix===t||"Opacity"===t?r.opacity:e.p.ix===t||"Position"===t?r.position:e.r.ix===t||"Rotation"===t||"ADBE Vector Rotation"===t?r.rotation:e.s.ix===t||"Scale"===t?r.scale:e.sk&&e.sk.ix===t||"Skew"===t?r.skew:e.sa&&e.sa.ix===t||"Skew Axis"===t?r.skewAxis:null}var i=propertyGroupFactory(r,n);return t.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",i)),t.transform.mProps.p.setGroupProperty(PropertyInterface("Position",i)),t.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",i)),t.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",i)),t.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",i)),t.transform.mProps.sk&&(t.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",i)),t.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",i))),t.transform.op.setGroupProperty(PropertyInterface("Opacity",i)),Object.defineProperties(r,{opacity:{get:ExpressionPropertyInterface(t.transform.mProps.o)},position:{get:ExpressionPropertyInterface(t.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(t.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(t.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(t.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(t.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(t.transform.mProps.sa)},_name:{value:e.nm}}),r.ty="tr",r.mn=e.mn,r.propertyGroup=n,r}function l(e,t,n){function r(t){return e.p.ix===t?r.position:e.s.ix===t?r.size:null}var i=propertyGroupFactory(r,n);r.propertyIndex=e.ix;var a="tm"===t.sh.ty?t.sh.prop:t.sh;return a.s.setGroupProperty(PropertyInterface("Size",i)),a.p.setGroupProperty(PropertyInterface("Position",i)),Object.defineProperties(r,{size:{get:ExpressionPropertyInterface(a.s)},position:{get:ExpressionPropertyInterface(a.p)},_name:{value:e.nm}}),r.mn=e.mn,r}function c(e,t,n){function r(t){return e.p.ix===t?r.position:e.r.ix===t?r.rotation:e.pt.ix===t?r.points:e.or.ix===t||"ADBE Vector Star Outer Radius"===t?r.outerRadius:e.os.ix===t?r.outerRoundness:!e.ir||e.ir.ix!==t&&"ADBE Vector Star Inner Radius"!==t?e.is&&e.is.ix===t?r.innerRoundness:null:r.innerRadius}var i=propertyGroupFactory(r,n),a="tm"===t.sh.ty?t.sh.prop:t.sh;return r.propertyIndex=e.ix,a.or.setGroupProperty(PropertyInterface("Outer Radius",i)),a.os.setGroupProperty(PropertyInterface("Outer Roundness",i)),a.pt.setGroupProperty(PropertyInterface("Points",i)),a.p.setGroupProperty(PropertyInterface("Position",i)),a.r.setGroupProperty(PropertyInterface("Rotation",i)),e.ir&&(a.ir.setGroupProperty(PropertyInterface("Inner Radius",i)),a.is.setGroupProperty(PropertyInterface("Inner Roundness",i))),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(a.p)},rotation:{get:ExpressionPropertyInterface(a.r)},points:{get:ExpressionPropertyInterface(a.pt)},outerRadius:{get:ExpressionPropertyInterface(a.or)},outerRoundness:{get:ExpressionPropertyInterface(a.os)},innerRadius:{get:ExpressionPropertyInterface(a.ir)},innerRoundness:{get:ExpressionPropertyInterface(a.is)},_name:{value:e.nm}}),r.mn=e.mn,r}function u(e,t,n){function r(t){return e.p.ix===t?r.position:e.r.ix===t?r.roundness:e.s.ix===t||"Size"===t||"ADBE Vector Rect Size"===t?r.size:null}var i=propertyGroupFactory(r,n),a="tm"===t.sh.ty?t.sh.prop:t.sh;return r.propertyIndex=e.ix,a.p.setGroupProperty(PropertyInterface("Position",i)),a.s.setGroupProperty(PropertyInterface("Size",i)),a.r.setGroupProperty(PropertyInterface("Rotation",i)),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(a.p)},roundness:{get:ExpressionPropertyInterface(a.r)},size:{get:ExpressionPropertyInterface(a.s)},_name:{value:e.nm}}),r.mn=e.mn,r}function h(e,t,n){function r(t){return e.r.ix===t||"Round Corners 1"===t?r.radius:null}var i=propertyGroupFactory(r,n),a=t;return r.propertyIndex=e.ix,a.rd.setGroupProperty(PropertyInterface("Radius",i)),Object.defineProperties(r,{radius:{get:ExpressionPropertyInterface(a.rd)},_name:{value:e.nm}}),r.mn=e.mn,r}function d(e,t,n){function r(t){return e.c.ix===t||"Copies"===t?r.copies:e.o.ix===t||"Offset"===t?r.offset:null}var i=propertyGroupFactory(r,n),a=t;return r.propertyIndex=e.ix,a.c.setGroupProperty(PropertyInterface("Copies",i)),a.o.setGroupProperty(PropertyInterface("Offset",i)),Object.defineProperties(r,{copies:{get:ExpressionPropertyInterface(a.c)},offset:{get:ExpressionPropertyInterface(a.o)},_name:{value:e.nm}}),r.mn=e.mn,r}return function(t,n,r){var i;function a(e){if("number"===typeof e)return 0===(e=void 0===e?1:e)?r:i[e-1];for(var t=0,n=i.length;t<n;){if(i[t]._name===e)return i[t];t+=1}return null}return a.propertyGroup=propertyGroupFactory(a,function(){return r}),i=e(t,n,a.propertyGroup),a.numProperties=i.length,a._name="Contents",a}}(),TextExpressionInterface=function(e){var t;function n(e){return"ADBE Text Document"===e?n.sourceText:null}return Object.defineProperty(n,"sourceText",{get:function(){e.textProperty.getValue();var n=e.textProperty.currentData.t;return t&&n===t.value||((t=new String(n)).value=n||new String(n),Object.defineProperty(t,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),t}}),n};function _typeof(e){return _typeof="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},_typeof(e)}var FootageInterface=function(){var e=function(e){function t(e){return"Outline"===e?t.outlineInterface():null}return t._name="Outline",t.outlineInterface=function(e){var t="",n=e.getFootageData();function r(e){if(n[e])return t=e,"object"===_typeof(n=n[e])?r:n;var i=e.indexOf(t);if(-1!==i){var a=parseInt(e.substr(i+t.length),10);return"object"===_typeof(n=n[a])?r:n}return""}return function(){return t="",n=e.getFootageData(),r}}(e),t};return function(t){function n(e){return"Data"===e?n.dataInterface:null}return n._name="Data",n.dataInterface=e(t),n}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers={searchExpressions:function(e,t,n){t.x&&(n.k=!0,n.x=!0,n.initiateExpression=ExpressionManager.initiateExpression,n.effectsSequence.push(n.initiateExpression(e,t,n).bind(n)))},getSpeedAtTime:function(e){var t=this.getValueAtTime(e),n=this.getValueAtTime(e+-.01),r=0;if(t.length){var i;for(i=0;i<t.length;i+=1)r+=Math.pow(n[i]-t[i],2);r=100*Math.sqrt(r)}else r=0;return r},getVelocityAtTime:function(e){if(void 0!==this.vel)return this.vel;var t,n,r=-.001,i=this.getValueAtTime(e),a=this.getValueAtTime(e+r);if(i.length)for(t=createTypedArray("float32",i.length),n=0;n<i.length;n+=1)t[n]=(a[n]-i[n])/r;else t=(a-i)/r;return t},getValueAtTime:function(e){return e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<e?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(e,this._cachingAtTime),this._cachingAtTime.lastFrame=e),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(e){this.propertyGroup=e}};function addPropertyDecorator(){function e(e,t,n){if(!this.k||!this.keyframes)return this.pv;e=e?e.toLowerCase():"";var r,i,a,s,o,l=this.comp.renderedFrame,c=this.keyframes,u=c[c.length-1].t;if(l<=u)return this.pv;if(n?i=u-(r=t?Math.abs(u-this.elem.comp.globalData.frameRate*t):Math.max(0,u-this.elem.data.ip)):((!t||t>c.length-1)&&(t=c.length-1),r=u-(i=c[c.length-1-t].t)),"pingpong"===e){if(Math.floor((l-i)/r)%2!==0)return this.getValueAtTime((r-(l-i)%r+i)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var h=this.getValueAtTime(i/this.comp.globalData.frameRate,0),d=this.getValueAtTime(u/this.comp.globalData.frameRate,0),p=this.getValueAtTime(((l-i)%r+i)/this.comp.globalData.frameRate,0),f=Math.floor((l-i)/r);if(this.pv.length){for(s=(o=new Array(h.length)).length,a=0;a<s;a+=1)o[a]=(d[a]-h[a])*f+p[a];return o}return(d-h)*f+p}if("continue"===e){var m=this.getValueAtTime(u/this.comp.globalData.frameRate,0),g=this.getValueAtTime((u-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(s=(o=new Array(m.length)).length,a=0;a<s;a+=1)o[a]=m[a]+(m[a]-g[a])*((l-u)/this.comp.globalData.frameRate)/5e-4;return o}return m+(l-u)/.001*(m-g)}}return this.getValueAtTime(((l-i)%r+i)/this.comp.globalData.frameRate,0)}function t(e,t,n){if(!this.k)return this.pv;e=e?e.toLowerCase():"";var r,i,a,s,o,l=this.comp.renderedFrame,c=this.keyframes,u=c[0].t;if(l>=u)return this.pv;if(n?i=u+(r=t?Math.abs(this.elem.comp.globalData.frameRate*t):Math.max(0,this.elem.data.op-u)):((!t||t>c.length-1)&&(t=c.length-1),r=(i=c[t].t)-u),"pingpong"===e){if(Math.floor((u-l)/r)%2===0)return this.getValueAtTime(((u-l)%r+u)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var h=this.getValueAtTime(u/this.comp.globalData.frameRate,0),d=this.getValueAtTime(i/this.comp.globalData.frameRate,0),p=this.getValueAtTime((r-(u-l)%r+u)/this.comp.globalData.frameRate,0),f=Math.floor((u-l)/r)+1;if(this.pv.length){for(s=(o=new Array(h.length)).length,a=0;a<s;a+=1)o[a]=p[a]-(d[a]-h[a])*f;return o}return p-(d-h)*f}if("continue"===e){var m=this.getValueAtTime(u/this.comp.globalData.frameRate,0),g=this.getValueAtTime((u+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(s=(o=new Array(m.length)).length,a=0;a<s;a+=1)o[a]=m[a]+(m[a]-g[a])*(u-l)/.001;return o}return m+(m-g)*(u-l)/.001}}return this.getValueAtTime((r-((u-l)%r+u))/this.comp.globalData.frameRate,0)}function n(e,t){if(!this.k)return this.pv;if(e=.5*(e||.4),(t=Math.floor(t||5))<=1)return this.pv;var n,r,i=this.comp.renderedFrame/this.comp.globalData.frameRate,a=i-e,s=t>1?(i+e-a)/(t-1):1,o=0,l=0;for(n=this.pv.length?createTypedArray("float32",this.pv.length):0;o<t;){if(r=this.getValueAtTime(a+o*s),this.pv.length)for(l=0;l<this.pv.length;l+=1)n[l]+=r[l];else n+=r;o+=1}if(this.pv.length)for(l=0;l<this.pv.length;l+=1)n[l]/=t;else n/=t;return n}function r(e){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var t=this._transformCachingAtTime.v;if(t.cloneFromProps(this.pre.props),this.appliedTransformations<1){var n=this.a.getValueAtTime(e);t.translate(-n[0]*this.a.mult,-n[1]*this.a.mult,n[2]*this.a.mult)}if(this.appliedTransformations<2){var r=this.s.getValueAtTime(e);t.scale(r[0]*this.s.mult,r[1]*this.s.mult,r[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var i=this.sk.getValueAtTime(e),a=this.sa.getValueAtTime(e);t.skewFromAxis(-i*this.sk.mult,a*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var s=this.r.getValueAtTime(e);t.rotate(-s*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var o=this.rz.getValueAtTime(e),l=this.ry.getValueAtTime(e),c=this.rx.getValueAtTime(e),u=this.or.getValueAtTime(e);t.rotateZ(-o*this.rz.mult).rotateY(l*this.ry.mult).rotateX(c*this.rx.mult).rotateZ(-u[2]*this.or.mult).rotateY(u[1]*this.or.mult).rotateX(u[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var h=this.px.getValueAtTime(e),d=this.py.getValueAtTime(e);if(this.data.p.z){var p=this.pz.getValueAtTime(e);t.translate(h*this.px.mult,d*this.py.mult,-p*this.pz.mult)}else t.translate(h*this.px.mult,d*this.py.mult,0)}else{var f=this.p.getValueAtTime(e);t.translate(f[0]*this.p.mult,f[1]*this.p.mult,-f[2]*this.p.mult)}return t}function i(){return this.v.clone(new Matrix)}var a=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(e,t,n){var s=a(e,t,n);return s.dynamicProperties.length?s.getValueAtTime=r.bind(s):s.getValueAtTime=i.bind(s),s.setGroupProperty=expressionHelpers.setGroupProperty,s};var s=PropertyFactory.getProp;PropertyFactory.getProp=function(r,i,a,o,l){var c=s(r,i,a,o,l);c.kf?c.getValueAtTime=expressionHelpers.getValueAtTime.bind(c):c.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(c),c.setGroupProperty=expressionHelpers.setGroupProperty,c.loopOut=e,c.loopIn=t,c.smooth=n,c.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(c),c.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(c),c.numKeys=1===i.a?i.k.length:0,c.propertyIndex=i.ix;var u=0;return 0!==a&&(u=createTypedArray("float32",1===i.a?i.k[0].s.length:i.k.length)),c._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:u},expressionHelpers.searchExpressions(r,i,c),c.k&&l.addDynamicProperty(c),c};var o=ShapePropertyFactory.getConstructorFunction(),l=ShapePropertyFactory.getKeyframedConstructorFunction();function c(){}c.prototype={vertices:function(e,t){this.k&&this.getValue();var n,r=this.v;void 0!==t&&(r=this.getValueAtTime(t,0));var i=r._length,a=r[e],s=r.v,o=createSizedArray(i);for(n=0;n<i;n+=1)o[n]="i"===e||"o"===e?[a[n][0]-s[n][0],a[n][1]-s[n][1]]:[a[n][0],a[n][1]];return o},points:function(e){return this.vertices("v",e)},inTangents:function(e){return this.vertices("i",e)},outTangents:function(e){return this.vertices("o",e)},isClosed:function(){return this.v.c},pointOnPath:function(e,t){var n=this.v;void 0!==t&&(n=this.getValueAtTime(t,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(n));for(var r,i=this._segmentsLength,a=i.lengths,s=i.totalLength*e,o=0,l=a.length,c=0;o<l;){if(c+a[o].addedLength>s){var u=o,h=n.c&&o===l-1?0:o+1,d=(s-c)/a[o].addedLength;r=bez.getPointInSegment(n.v[u],n.v[h],n.o[u],n.i[h],d,a[o]);break}c+=a[o].addedLength,o+=1}return r||(r=n.c?[n.v[0][0],n.v[0][1]]:[n.v[n._length-1][0],n.v[n._length-1][1]]),r},vectorOnPath:function(e,t,n){1==e?e=this.v.c:0==e&&(e=.999);var r=this.pointOnPath(e,t),i=this.pointOnPath(e+.001,t),a=i[0]-r[0],s=i[1]-r[1],o=Math.sqrt(Math.pow(a,2)+Math.pow(s,2));return 0===o?[0,0]:"tangent"===n?[a/o,s/o]:[-s/o,a/o]},tangentOnPath:function(e,t){return this.vectorOnPath(e,t,"tangent")},normalOnPath:function(e,t){return this.vectorOnPath(e,t,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([c],o),extendPrototype([c],l),l.prototype.getValueAtTime=function(e){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<e?this._caching.lastIndex:0,this._cachingAtTime.lastTime=e,this.interpolateShape(e,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},l.prototype.initiateExpression=ExpressionManager.initiateExpression;var u=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(e,t,n,r,i){var a=u(e,t,n,r,i);return a.propertyIndex=t.ix,a.lock=!1,3===n?expressionHelpers.searchExpressions(e,t.pt,a):4===n&&expressionHelpers.searchExpressions(e,t.ks,a),a.k&&e.addDynamicProperty(a),a}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(e,t){var n=this.calculateExpression(t);if(e.t!==n){var r={};return this.copyData(r,e),r.t=n.toString(),r.__complete=!1,r}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),t=this.searchExpressions();return this.kf=e||t,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function(e,t){var n,r,i=createNS("feMerge");for(i.setAttribute("result",e),r=0;r<t.length;r+=1)(n=createNS("feMergeNode")).setAttribute("in",t[r]),i.appendChild(n),i.appendChild(n);return i}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(e,t,n,r,i){this.filterManager=t;var a=createNS("feColorMatrix");a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","linearRGB"),a.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=a,a.setAttribute("result",r+"_tint_1"),e.appendChild(a),(a=createNS("feColorMatrix")).setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),a.setAttribute("result",r+"_tint_2"),e.appendChild(a),this.matrixFilter=a;var s=this.createMergeNode(r,[i,r+"_tint_1",r+"_tint_2"]);e.appendChild(s)}function SVGFillFilter(e,t,n,r){this.filterManager=t;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),i.setAttribute("result",r),e.appendChild(i),this.matrixFilter=i}function SVGStrokeEffect(e,t,n){this.initialized=!1,this.filterManager=t,this.elem=n,this.paths=[]}function SVGTritoneFilter(e,t,n,r){this.filterManager=t;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","linearRGB"),i.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.a
vendor: 5,131 bytes, line 2
2ppendChild(i);var a=createNS("feComponentTransfer");a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",r),this.matrixFilter=a;var s=createNS("feFuncR");s.setAttribute("type","table"),a.appendChild(s),this.feFuncR=s;var o=createNS("feFuncG");o.setAttribute("type","table"),a.appendChild(o),this.feFuncG=o;var l=createNS("feFuncB");l.setAttribute("type","table"),a.appendChild(l),this.feFuncB=l,e.appendChild(a)}function SVGProLevelsFilter(e,t,n,r){this.filterManager=t;var i=this.filterManager.effectElements,a=createNS("feComponentTransfer");(i[10].p.k||0!==i[10].p.v||i[11].p.k||1!==i[11].p.v||i[12].p.k||1!==i[12].p.v||i[13].p.k||0!==i[13].p.v||i[14].p.k||1!==i[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",a)),(i[17].p.k||0!==i[17].p.v||i[18].p.k||1!==i[18].p.v||i[19].p.k||1!==i[19].p.v||i[20].p.k||0!==i[20].p.v||i[21].p.k||1!==i[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",a)),(i[24].p.k||0!==i[24].p.v||i[25].p.k||1!==i[25].p.v||i[26].p.k||1!==i[26].p.v||i[27].p.k||0!==i[27].p.v||i[28].p.k||1!==i[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",a)),(i[31].p.k||0!==i[31].p.v||i[32].p.k||1!==i[32].p.v||i[33].p.k||1!==i[33].p.v||i[34].p.k||0!==i[34].p.v||i[35].p.k||1!==i[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",a)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(a.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(a)),(i[3].p.k||0!==i[3].p.v||i[4].p.k||1!==i[4].p.v||i[5].p.k||1!==i[5].p.v||i[6].p.k||0!==i[6].p.v||i[7].p.k||1!==i[7].p.v)&&((a=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",r),e.appendChild(a),this.feFuncRComposed=this.createFeFunc("feFuncR",a),this.feFuncGComposed=this.createFeFunc("feFuncG",a),this.feFuncBComposed=this.createFeFunc("feFuncB",a))}function SVGDropShadowEffect(e,t,n,r,i){var a=t.container.globalData.renderConfig.filterSize,s=t.data.fs||a;e.setAttribute("x",s.x||a.x),e.setAttribute("y",s.y||a.y),e.setAttribute("width",s.width||a.width),e.setAttribute("height",s.height||a.height),this.filterManager=t;var o=createNS("feGaussianBlur");o.setAttribute("in","SourceAlpha"),o.setAttribute("result",r+"_drop_shadow_1"),o.setAttribute("stdDeviation","0"),this.feGaussianBlur=o,e.appendChild(o);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",r+"_drop_shadow_1"),l.setAttribute("result",r+"_drop_shadow_2"),this.feOffset=l,e.appendChild(l);var c=createNS("feFlood");c.setAttribute("flood-color","#00ff00"),c.setAttribute("flood-opacity","1"),c.setAttribute("result",r+"_drop_shadow_3"),this.feFlood=c,e.appendChild(c);var u=createNS("feComposite");u.setAttribute("in",r+"_drop_shadow_3"),u.setAttribute("in2",r+"_drop_shadow_2"),u.setAttribute("operator","in"),u.setAttribute("result",r+"_drop_shadow_4"),e.appendChild(u);var h=this.createMergeNode(r,[r+"_drop_shadow_4",i]);e.appendChild(h)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+r+" 0"),this.matrixFilter.setAttribute("values",n[0]-t[0]+" 0 0 0 "+t[0]+" "+(n[1]-t[1])+" 0 0 0 "+t[1]+" "+(n[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 1 0")}},SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,n=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+n+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var e,t,n,r,i=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(r=this.elem.maskManager.masksProperties.length,n=0):r=1+(n=this.filterManager.effectElements[0].p.v-1),(t=createNS("g")).setAttribute("fill","none"),t.setAttribute("stroke-linecap","round"),t.setAttribute("stroke-dashoffset",1);n<r;n+=1)e=createNS("path"),t.appendChild(e),this.paths.push({p:e,m:n});if(3===this.filterManager.effectElements[10].p.v){var a=createNS("mask"),s=createElementID();a.setAttribute("id",s),a.setAttribute("mask-type","alpha"),a.appendChild(t),this.elem.globalData.defs.appendChild(a);var o=createNS("g");for(o.setAttribute("mask","url("+getLocationHref()+"#"+s+")");i[0];)o.appendChild(i[0]);this.elem.layerElement.appendChild(o),this.masker=a,t.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(i=this.elem.layerElement.children||this.elem.layerElement.childNodes;i.length;)this.elem.layerElement.removeChild(i[0]);this.elem.layerElement.appendChild(t),this.elem.layerElement.removeAttribute("mask"),t.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=t},SVGStrokeEffect.prototype.renderFrame=function(e){var t;this.initialized||this.initialize();var n,r,i=this.paths.length;for(t=0;t<i;
vendor: 4,652 bytes, line 2
2t+=1)if(-1!==this.paths[t].m&&(n=this.elem.maskManager.viewData[this.paths[t].m],r=this.paths[t].p,(e||this.filterManager._mdf||n.prop._mdf)&&r.setAttribute("d",n.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||n.prop._mdf)){var a;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var s=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),o=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),l=r.getTotalLength();a="0 0 0 "+l*s+" ";var c,u=l*(o-s),h=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,d=Math.floor(u/h);for(c=0;c<d;c+=1)a+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";a+="0 "+10*l+" 0 0"}else a="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;r.setAttribute("stroke-dasharray",a)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(e||this.filterManager.effectElements[3].p._mdf)){var p=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*p[0])+","+bmFloor(255*p[1])+","+bmFloor(255*p[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v,i=r[0]+" "+n[0]+" "+t[0],a=r[1]+" "+n[1]+" "+t[1],s=r[2]+" "+n[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",i),this.feFuncG.setAttribute("tableValues",a),this.feFuncB.setAttribute("tableValues",s)}},SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var n=createNS(e);return n.setAttribute("type","table"),t.appendChild(n),n},SVGProLevelsFilter.prototype.getTableValue=function(e,t,n,r,i){for(var a,s,o=0,l=Math.min(e,t),c=Math.max(e,t),u=Array.call(null,{length:256}),h=0,d=i-r,p=t-e;o<=256;)s=(a=o/256)<=l?p<0?i:r:a>=c?p<0?r:i:r+d*Math.pow((a-e)/p,1/n),u[h]=s,h+=1,o+=256/255;return u.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,n=this.filterManager.effectElements;this.feFuncRComposed&&(e||n[3].p._mdf||n[4].p._mdf||n[5].p._mdf||n[6].p._mdf||n[7].p._mdf)&&(t=this.getTableValue(n[3].p.v,n[4].p.v,n[5].p.v,n[6].p.v,n[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||n[10].p._mdf||n[11].p._mdf||n[12].p._mdf||n[13].p._mdf||n[14].p._mdf)&&(t=this.getTableValue(n[10].p.v,n[11].p.v,n[12].p.v,n[13].p.v,n[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||n[17].p._mdf||n[18].p._mdf||n[19].p._mdf||n[20].p._mdf||n[21].p._mdf)&&(t=this.getTableValue(n[17].p.v,n[18].p.v,n[19].p.v,n[20].p.v,n[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||n[24].p._mdf||n[25].p._mdf||n[26].p._mdf||n[27].p._mdf||n[28].p._mdf)&&(t=this.getTableValue(n[24].p.v,n[25].p.v,n[26].p.v,n[27].p.v,n[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||n[31].p._mdf||n[32].p._mdf||n[33].p._mdf||n[34].p._mdf||n[35].p._mdf)&&(t=this.getTableValue(n[31].p.v,n[32].p.v,n[33].p.v,n[34].p.v,n[35].p.v),this.feFuncA.setAttribute("tableValues",t))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*t[0]),Math.round(255*t[1]),Math.round(255*t[2])))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var n=this.filterManager.effectElements[3].p.v,r=(this.filterManager.effectElements[2].p.v-90)*degToRads,i=n*Math.cos(r),a=n*Math.sin(r);
vendor: 4,202 bytes, line 2
2this.feOffset.setAttribute("dx",i),this.feOffset.setAttribute("dy",a)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,n){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=n,n.matteElement=createNS("g"),n.matteElement.appendChild(n.layerElement),n.matteElement.appendChild(n.transformedElement),n.baseElement=n.matteElement}function SVGGaussianBlurEffect(e,t,n,r){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var i=createNS("feGaussianBlur");i.setAttribute("result",r),e.appendChild(i),this.feGaussianBlur=i}function TransformEffect(){}function SVGTransformEffect(e,t){this.init(t)}function CVTransformEffect(e){this.init(e)}return SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,n=_svgMatteSymbols.length;t<n;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var n=e.layerElement.parentNode;if(n){for(var r,i=n.children,a=0,s=i.length;a<s&&i[a]!==e.layerElement;)a+=1;a<=s-2&&(r=i[a+1]);var o=createNS("use");o.setAttribute("href","#"+t),r?n.insertBefore(o,r):n.appendChild(o)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var n=createElementID(),r=createNS("mask");r.setAttribute("id",t.layerId),r.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var i=e.globalData.defs;i.appendChild(r);var a=createNS("symbol");a.setAttribute("id",n),this.replaceInParent(t,n),a.appendChild(t.layerElement),i.appendChild(a);var s=createNS("use");s.setAttribute("href","#"+n),r.appendChild(s),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,n=0,r=t.length;n<r;)t[n]&&t[n].data.ind===e&&this.setElementAsMask(this.elem,t[n]),n+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3*this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=3==n?0:t,i=2==n?0:t;this.feGaussianBlur.setAttribute("stdDeviation",r+" "+i);var a=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",a)}},TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var t=this.effectsManager.effectElements,n=t[0].p.v,r=t[1].p.v,i=1===t[2].p.v,a=t[3].p.v,s=i?a:t[4].p.v,o=t[5].p.v,l=t[6].p.v,c=t[7].p.v;this.matrix.reset(),this.matrix.translate(-n[0],-n[1],n[2]),this.matrix.scale(.01*s,.01*a,1),this.matrix.rotate(-c*degToRads),this.matrix.skewFromAxis(-o*degToRads,(l+90)*degToRads),this.matrix.translate(r[0],r[1],0),this._mdf=!0,this.opacity!==t[8].p.v&&(this.opacity=t[8].p.v,this._opMdf=!0)}},extendPrototype([TransformEffect],SVGTransformEffect),extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie},module.exports=factory())}
vendor: 4,450 bytes, line 2
2,2730(e,t,n){"use strict";var r=n(5043),i=n(8853);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."}var s=new Set,o={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(o[e]=t,e=0;e<t.length;e++)s.add(t[e])}var u=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),h=Object.prototype.hasOwnProperty,d=/^[: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]*$/,p={},f={};function m(e,t,n,r,i,a,s){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=a,this.removeEmptyString=s}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){g[e]=new m(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){g[e]=new m(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){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){g[e]=new m(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){g[e]=new m(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){g[e]=new m(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)});var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=g.hasOwnProperty(t)?g[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!!h.call(f,e)||!h.call(p,e)&&(d.test(e)?f[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
2-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(v,y);g[t]=new m(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(v,y);g[t]=new m(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(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)}),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)});var _=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),S=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),P=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),D=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var M=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var F=Symbol.iterator;function L(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=F&&e[F]||e["@@iterator"])?e:null}var N,O=Object.assign;function B(e){if(void 0===N)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);N=t&&t[1]||""}return"\n"+N+e}var j=!1;function V(e,t){if(!e||j)return"";j=!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(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"===typeof c.stack){for(var i=c.stack.split("\n"),a=r.stack.split("\n"),s=i.length-1,o=a.length-1;1<=s&&0<=o&&i[s]!==a[o];)o--;for(;1<=s&&0<=o;s--,o--)if(i[s]!==a[o]){if(1!==s||1!==o)do{if(s--,0>--o||i[s]!==a[o]){var l="\n"+i[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=s&&0<=o);break}}}finally{j=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?B(e):""}function U(e){switch(e.tag){case 5:return B(e.type);case 16:return B("Lazy");case 13:return B("Suspense");case 19:return B("SuspenseList");case 0:case 2:case 15:return e=V(e.type,!1);case 11:return e=V(e.type.render,!1);case 1:return e=V(e.type,!0);default:return""}}function z(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 E:return"Fragment";case S:return"Portal";case x:return"Profiler";case k:return"StrictMode";case T:return"Suspense";case R:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case P:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case A:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case I:return null!==(t=e.displayName||null)?t:z(e.type)||"Memo";case D:t=e._payload,e=e._init;try{return z(e(t))}catch(n){}}return null}function H(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return z(t);case 8:return t===k?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function G(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function q(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=q(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,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)}
vendor: 11,906 bytes, line 2
2,set:function(e){r=""+e,a.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 W(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function $(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 Y(e,t){var n=t.checked;return O({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=G(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 J(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function Q(e,t){J(e,t);var n=G(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")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,G(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(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 ee(e,t,n){"number"===t&&$(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(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=""+G(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 re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return O({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(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(te(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:G(n)}}function ae(e,t){var n=G(t.value),r=G(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 se(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function oe(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 le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?oe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,he=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.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 ue(e,t)})}:ue);function de(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 pe={animationIterationCount:!0,aspectRatio:!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},fe=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(pe).forEach(function(e){fe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]})});var ve=O({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 ye(e,t){if(t){if(ve[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 be(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}}var _e=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,Ee=null,ke=null;function xe(e){if(e=bi(e)){if("function"!==typeof Se)throw Error(a(280));var t=e.stateNode;t&&(t=wi(t),Se(e.stateNode,e.type,t))}}function Ce(e){Ee?ke?ke.push(e):ke=[e]:Ee=e}function Pe(){if(Ee){var e=Ee,t=ke;if(ke=Ee=null,xe(e),t)for(e=0;e<t.length;e++)xe(t[e])}}function Ae(e,t){return e(t)}function Te(){}var Re=!1;function Ie(e,t,n){if(Re)return e(t,n);Re=!0;try{return Ae(e,t,n)}finally{Re=!1,(null!==Ee||null!==ke)&&(Te(),Pe())}}function De(e,t){var n=e.stateNode;if(null===n)return null;var r=wi(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 Me=!1;if(u)try{var Fe={};Object.defineProperty(Fe,"passive",{get:function(){Me=!0}}),window.addEventListener("test",Fe,Fe),window.removeEventListener("test",Fe,Fe)}catch(ue){Me=!1}function Le(e,t,n,r,i,a,s,o,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Ne=!1,Oe=null,Be=!1,je=null,Ve={onError:function(e){Ne=!0,Oe=e}};function Ue(e,t,n,r,i,a,s,o,l){Ne=!1,Oe=null,Le.apply(Ve,arguments)}function ze(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function He(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 Ge(e){if(ze(e)!==e)throw Error(a(188))}function qe(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=ze(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 s=i.alternate;if(null===s){if(null!==(r=i.return)){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return Ge(i),e;if(s===r)return Ge(i),t;s=s.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=s;else{for(var o=!1,l=i.child;l;){if(l===n){o=!0,n=i,r=s;break}if(l===r){o=!0,r=i,n=s;break}l=l.sibling}if(!o){for(l=s.child;l;){if(l===n){o=!0,n=s,r=i;break}if(l===r){o=!0,r=s,n=i;break}l=l.sibling}if(!o)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))?Ke(e):null}function Ke(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ke(e);if(null!==t)return t;e=e.sibling}return null}var We=i.unstable_scheduleCallback,$e=i.unstable_cancelCallback,Ye=i.unstable_shouldYield,Xe=i.unstable_requestPaint,Je=i.unstable_now,Qe=i.unstable_getCurrentPriorityLevel,Ze=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,at=null;var st=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(ot(e)/lt|0)|0},ot=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function ht(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,s=268435455&n;if(0!==s){var o=s&~i;0!==o?r=ht(o):0!==(a&=s)&&(r=ht(a))}else 0!==(s=n&~i)?r=ht(s):0!==a&&(r=ht(a));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(a=t&-t)||16===i&&0!==(4194240&a)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-st(t)),r|=e[n],t&=~i;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ft(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-st(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-st(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var bt=0;function _t(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var wt,St,Et,kt,xt,Ct=!1,Pt=[],At=null,Tt=null,Rt=null,It=new Map,Dt=new Map,Mt=[],Ft="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 Lt(e,t){switch(e){case"focusin":case"focusout":At=null;break;case"dragenter":case"dragleave":Tt=null;break;case"mouseover":case"mouseout":Rt=null;break;case"pointerover":case"pointerout":It.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dt.delete(t.pointerId)}}function Nt(e,t,n,r,i,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},null!==t&&(null!==(t=bi(t))&&St(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Ot(e){var t=yi(e.target);if(null!==t){var n=ze(t);
vendor: 5,370 bytes, line 2
2if(null!==n)if(13===(t=n.tag)){if(null!==(t=He(n)))return e.blockedOn=t,void xt(e.priority,function(){Et(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Bt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Yt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bi(n))&&St(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);_e=r,n.target.dispatchEvent(r),_e=null,t.shift()}return!0}function jt(e,t,n){Bt(e)&&n.delete(t)}function Vt(){Ct=!1,null!==At&&Bt(At)&&(At=null),null!==Tt&&Bt(Tt)&&(Tt=null),null!==Rt&&Bt(Rt)&&(Rt=null),It.forEach(jt),Dt.forEach(jt)}function Ut(e,t){e.blockedOn===t&&(e.blockedOn=null,Ct||(Ct=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Vt)))}function zt(e){function t(t){return Ut(t,e)}if(0<Pt.length){Ut(Pt[0],e);for(var n=1;n<Pt.length;n++){var r=Pt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==At&&Ut(At,e),null!==Tt&&Ut(Tt,e),null!==Rt&&Ut(Rt,e),It.forEach(t),Dt.forEach(t),n=0;n<Mt.length;n++)(r=Mt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Mt.length&&null===(n=Mt[0]).blockedOn;)Ot(n),null===n.blockedOn&&Mt.shift()}var Ht=_.ReactCurrentBatchConfig,Gt=!0;function qt(e,t,n,r){var i=bt,a=Ht.transition;Ht.transition=null;try{bt=1,Wt(e,t,n,r)}finally{bt=i,Ht.transition=a}}function Kt(e,t,n,r){var i=bt,a=Ht.transition;Ht.transition=null;try{bt=4,Wt(e,t,n,r)}finally{bt=i,Ht.transition=a}}function Wt(e,t,n,r){if(Gt){var i=Yt(e,t,n,r);if(null===i)Gr(e,t,r,$t,n),Lt(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return At=Nt(At,e,t,n,r,i),!0;case"dragenter":return Tt=Nt(Tt,e,t,n,r,i),!0;case"mouseover":return Rt=Nt(Rt,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return It.set(a,Nt(It.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,Dt.set(a,Nt(Dt.get(a)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Lt(e,r),4&t&&-1<Ft.indexOf(e)){for(;null!==i;){var a=bi(i);if(null!==a&&wt(a),null===(a=Yt(e,t,n,r))&&Gr(e,t,r,$t,n),a===i)break;i=a}null!==i&&r.stopPropagation()}else Gr(e,t,r,null,n)}}var $t=null;function Yt(e,t,n,r){if($t=null,null!==(e=yi(e=we(r))))if(null===(t=ze(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=He(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return $t=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Qe()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Jt=null,Qt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Qt,r=n.length,i="value"in Jt?Jt.value:Jt.textContent,a=i.length;for(e=0;e<r&&n[e]===i[e];e++);var s=r-e;for(t=1;t<=s&&n[r-t]===i[a-t];t++);return Zt=i.slice(e,1<t?1-t:void 0)}function tn(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 nn(){return!0}function rn(){return!1}function an(e){function t(t,n,r,i,a){for(var s in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(i):i[s]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return O(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=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var sn,on,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=an(cn),hn=O({},cn,{view:0,detail:0}),dn=an(hn),pn=O({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.from
vendor: 9,184 bytes, line 2
2Element===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(sn=e.screenX-ln.screenX,on=e.screenY-ln.screenY):on=sn=0,ln=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:on}}),fn=an(pn),mn=an(O({},pn,{dataTransfer:0})),gn=an(O({},hn,{relatedTarget:0})),vn=an(O({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=O({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=an(yn),_n=an(O({},cn,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={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"},En={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=En[e])&&!!t[e]}function xn(){return kn}var Cn=O({},hn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Pn=an(Cn),An=an(O({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tn=an(O({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xn})),Rn=an(O({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),In=O({},pn,{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}),Dn=an(In),Mn=[9,13,27,32],Fn=u&&"CompositionEvent"in window,Ln=null;u&&"documentMode"in document&&(Ln=document.documentMode);var Nn=u&&"TextEvent"in window&&!Ln,On=u&&(!Fn||Ln&&8<Ln&&11>=Ln),Bn=String.fromCharCode(32),jn=!1;function Vn(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 Un(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var zn=!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 Gn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function qn(e,t,n,r){Ce(r),0<(t=Kr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Kn=null,Wn=null;function $n(e){Br(e,0)}function Yn(e){if(W(_i(e)))return e}function Xn(e,t){if("change"===e)return t}var Jn=!1;if(u){var Qn;if(u){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"===typeof er.oninput}Qn=Zn}else Qn=!1;Jn=Qn&&(!document.documentMode||9<document.documentMode)}function tr(){Kn&&(Kn.detachEvent("onpropertychange",nr),Wn=Kn=null)}function nr(e){if("value"===e.propertyName&&Yn(Wn)){var t=[];qn(t,Wn,e,we(e)),Ie($n,t)}}function rr(e,t,n){"focusin"===e?(tr(),Wn=n,(Kn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yn(Wn)}function ar(e,t){if("click"===e)return Yn(t)}function sr(e,t){if("input"===e||"change"===e)return Yn(t)}var or="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function lr(e,t){if(or(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++){var i=n[r];if(!h.call(t,i)||!or(e[i],t[i]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(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=cr(r)}}function hr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?hr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dr(){for(var e=window,t=$();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=$((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)}function fr(e){var t=dr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&hr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=void 0===r.end?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=ur(n,a);var s=ur(n,r);i&&s&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=u&&"documentMode"in document&&11>=document.documentMode,gr=null,vr=null,yr=null,br=!1;function _r(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==gr||gr!==$(r)||("selectionStart"in(r=gr)&&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&&lr(yr,r)||(yr=r,0<(r=Kr(vr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Er={},kr={};function xr(e){if(Er[e])return Er[e];if(!Sr[e])return e;var t,n=Sr[e];for(t in n)if(n.hasOwnProperty(t)&&t in kr)return Er[e]=n[t];return e}u&&(kr=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);var Cr=xr("animationend"),Pr=xr("animationiteration"),Ar=xr("animationstart"),Tr=xr("transitionend"),Rr=new Map,Ir="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Dr(e,t){Rr.set(e,t),l(t,[e])}for(var Mr=0;Mr<Ir.length;Mr++){var Fr=Ir[Mr];Dr(Fr.toLowerCase(),"on"+(Fr[0].toUpperCase()+Fr.slice(1)))}Dr(Cr,"onAnimationEnd"),Dr(Pr,"onAnimationIteration"),Dr(Ar,"onAnimationStart"),Dr("dblclick","onDoubleClick"),Dr("focusin","onFocus"),Dr("focusout","onBlur"),Dr(Tr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focu
2sin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Lr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Nr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Lr));function Or(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,s,o,l,c){if(Ue.apply(this,arguments),Ne){if(!Ne)throw Error(a(198));var u=Oe;Ne=!1,Oe=null,Be||(Be=!0,je=u)}}(r,t,void 0,e),e.currentTarget=null}function Br(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 a=void 0;if(t)for(var s=r.length-1;0<=s;s--){var o=r[s],l=o.instance,c=o.currentTarget;if(o=o.listener,l!==a&&i.isPropagationStopped())break e;Or(i,o,c),a=l}else for(s=0;s<r.length;s++){if(l=(o=r[s]).instance,c=o.currentTarget,o=o.listener,l!==a&&i.isPropagationStopped())break e;Or(i,o,c),a=l}}}if(Be)throw e=je,Be=!1,je=null,e}function jr(e,t){var n=t[mi];void 0===n&&(n=t[mi]=new Set);var r=e+"__bubble";n.has(r)||(Hr(t,e,2,!1),n.add(r))}function Vr(e,t,n){var r=0;t&&(r|=4),Hr(n,e,r,t)}var Ur="_reactListening"+Math.random().toString(36).slice(2);function zr(e){if(!e[Ur]){e[Ur]=!0,s.forEach(function(t){"selectionchange"!==t&&(Nr.has(t)||Vr(t,!1,e),Vr(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ur]||(t[Ur]=!0,Vr("selectionchange",!1,t))}}function Hr(e,t,n,r){switch(Xt(t)){case 1:var i=qt;break;case 4:i=Kt;break;default:i=Wt}n=i.bind(null,t,n,e),i=void 0,!Me||"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 Gr(e,t,n,r,i){var a=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var s=r.tag;if(3===s||4===s){var o=r.stateNode.containerInfo;if(o===i||8===o.nodeType&&o.parentNode===i)break;if(4===s)for(s=r.return;null!==s;){var l=s.tag;if((3===l||4===l)&&((l=s.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;s=s.return}for(;null!==o;){if(null===(s=yi(o)))return;if(5===(l=s.tag)||6===l){r=a=s;continue e}o=o.parentNode}}r=r.return}Ie(function(){var r=a,i=we(n),s=[];e:{var o=Rr.get(e);if(void 0!==o){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Pn;break;case"focusin":c="focus",l=gn;break;case"focusout":c="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;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=fn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Tn;break;case Cr:case Pr:case Ar:l=vn;break;case Tr:l=Rn;break;case"scroll":l=dn;break;case"wheel":l=Dn;break;case"copy":case"cut":case"paste":l=bn;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,d=u?null!==o?o+"Capture":null:o;u=[];for(var p,f=r;null!==f;){var m=(p=f).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==d&&(null!=(m=De(f,d))&&u.push(qr(f,m,p)))),h)break;f=f.return}0<u.length&&(o=new l(o,c,null,n,i),s.push({event:o,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(o="mouseover"===e||"pointerover"===e)||n===_e||!(c=n.relatedTarget||n.fromElement)||!yi(c)&&!c[fi])&&(l||o)&&(o=i.window===i?i:(o=i.ownerDocument)?o.defaultView||o.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?yi(c):null)&&(c!==(h=ze(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=fn,m="onMouseLeave",d="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(u=An,m="onPointerLeave",d="onPointerEnter",f="pointer"),h=null==l?o:_i(l),p=null==c?o:_i(c),(o=new u(m,f+"leave",l,n,i)).target=h,o.relatedTarget=p,m=null,yi(i)===r&&((u=new u(d,f+"enter",c,n,i)).target=p,u.relatedTarget=h,m=u),h=m,l&&c)e:{for(d=c,f=0,p=u=l;p;p=Wr(p))f++;for(p=0,m=d;m;m=Wr(m))p++;for(;0<f-p;)u=Wr(u),f--;for(;0<p-f;)d=Wr(d),p--;for(;f--;){if(u===d||null!==d&&u===d.alternate)break e;u=Wr(u),d=Wr(d)}u=null}else u=null;null!==l&&$r(s,o,l,u,!1),null!==c&&null!==h&&$r(s,h,c,u,!0)}if("select"===(l=(o=r?_i(r):window).nodeName&&o.nodeName.toLowerCase())||"input"===l&&"file"===o.type)var g=Xn;
vendor: 83,170 bytes, line 2
2else if(Gn(o))if(Jn)g=sr;else{g=ir;var v=rr}else(l=o.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(g=ar);switch(g&&(g=g(e,r))?qn(s,g,n,i):(v&&v(e,o,r),"focusout"===e&&(v=o._wrapperState)&&v.controlled&&"number"===o.type&&ee(o,"number",o.value)),v=r?_i(r):window,e){case"focusin":(Gn(v)||"true"===v.contentEditable)&&(gr=v,vr=r,yr=null);break;case"focusout":yr=vr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,_r(s,n,i);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":_r(s,n,i)}var y;if(Fn)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 zn?Vn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(On&&"ko"!==n.locale&&(zn||"onCompositionStart"!==b?"onCompositionEnd"===b&&zn&&(y=en()):(Qt="value"in(Jt=i)?Jt.value:Jt.textContent,zn=!0)),0<(v=Kr(r,b)).length&&(b=new _n(b,e,null,n,i),s.push({event:b,listeners:v}),y?b.data=y:null!==(y=Un(n))&&(b.data=y))),(y=Nn?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(jn=!0,Bn);case"textInput":return(e=t.data)===Bn&&jn?null:e;default:return null}}(e,n):function(e,t){if(zn)return"compositionend"===e||!Fn&&Vn(e,t)?(e=en(),Zt=Qt=Jt=null,zn=!1,e):null;switch(e){case"paste":default: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 On&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Kr(r,"onBeforeInput")).length&&(i=new _n("onBeforeInput","beforeinput",null,n,i),s.push({event:i,listeners:r}),i.data=y))}Br(s,t)})}function qr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Kr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,a=i.stateNode;5===i.tag&&null!==a&&(i=a,null!=(a=De(e,n))&&r.unshift(qr(e,a,i)),null!=(a=De(e,t))&&r.push(qr(e,a,i))),e=e.return}return r}function Wr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function $r(e,t,n,r,i){for(var a=t._reactName,s=[];null!==n&&n!==r;){var o=n,l=o.alternate,c=o.stateNode;if(null!==l&&l===r)break;5===o.tag&&null!==c&&(o=c,i?null!=(l=De(n,a))&&s.unshift(qr(n,l,o)):i||null!=(l=De(n,a))&&s.push(qr(n,l,o))),n=n.return}0!==s.length&&e.push({event:t,listeners:s})}var Yr=/\r\n?/g,Xr=/\u0000|\uFFFD/g;function Jr(e){return("string"===typeof e?e:""+e).replace(Yr,"\n").replace(Xr,"")}function Qr(e,t,n){if(t=Jr(t),Jr(e)!==t&&n)throw Error(a(425))}function Zr(){}var ei=null,ti=null;function ni(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ri="function"===typeof setTimeout?setTimeout:void 0,ii="function"===typeof clearTimeout?clearTimeout:void 0,ai="function"===typeof Promise?Promise:void 0,si="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof ai?function(e){return ai.resolve(null).then(e).catch(oi)}:ri;function oi(e){setTimeout(function(){throw e})}function li(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void zt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);zt(t)}function ci(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ui(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 hi=Math.random().toString(36).slice(2),di="__reactFiber$"+hi,pi="__reactProps$"+hi,fi="__reactContainer$"+hi,mi="__reactEvents$"+hi,gi="__reactListeners$"+hi,vi="__reactHandles$"+hi;function yi(e){var t=e[di];if(t)return t;for(var n=e.parentNode;n;){if(t=n[fi]||n[di]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ui(e);null!==e;){if(n=e[di])return n;e=ui(e)}return t}n=(e=n).parentNode}return null}function bi(e){return!(e=e[di]||e[fi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function _i(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function wi(e){return e[pi]||null}var Si=[],Ei=-1;function ki(e){return{current:e}}function xi(e){0>Ei||(e.current=Si[Ei],Si[Ei]=null,Ei--)}function Ci(e,t){Ei++,Si[Ei]=e.current,e.current=t}var Pi={},Ai=ki(Pi),Ti=ki(!1),Ri=Pi;function Ii(e,t){var n=e.type.contextTypes;if(!n)return Pi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Di(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Mi(){xi(Ti),xi(Ai)}function Fi(e,t,n){if(Ai.current!==Pi)throw Error(a(168));Ci(Ai,t),Ci(Ti,n)}function Li(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(a(108,H(e)||"Unknown",i));return O({},n,r)}function Ni(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pi,Ri=Ai.current,Ci(Ai,e),Ci(Ti,Ti.current),!0}function Oi(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Li(e,t,Ri),r.__reactInternalMemoizedMergedChildContext=e,xi(Ti),xi(Ai),Ci(Ai,e)):xi(Ti),Ci(Ti,n)}var Bi=null,ji=!1,Vi=!1;function Ui(e){null===Bi?Bi=[e]:Bi.push(e)}function zi(){if(!Vi&&null!==Bi){Vi=!0;var e=0,t=bt;try{var n=Bi;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Bi=null,ji=!1}catch(i){throw null!==Bi&&(Bi=Bi.slice(e+1)),We(Ze,zi),i}finally{bt=t,Vi=!1}}return null}var Hi=[],Gi=0,qi=null,Ki=0,Wi=[],$i=0,Yi=null,Xi=1,Ji="";function Qi(e,t){Hi[Gi++]=Ki,Hi[Gi++]=qi,qi=e,Ki=t}function Zi(e,t,n){Wi[$i++]=Xi,Wi[$i++]=Ji,Wi[$i++]=Yi,Yi=e;var r=Xi;e=Ji;var i=32-st(r)-1;r&=~(1<<i),n+=1;var a=32-st(t)+i;if(30<a){var s=i-i%5;a=(r&(1<<s)-1).toString(32),r>>=s,i-=s,Xi=1<<32-st(t)+i|n<<i|r,Ji=a+e}else Xi=1<<a|n<<i|r,Ji=e}function ea(e){null!==e.return&&(Qi(e,1),Zi(e,1,0))}function ta(e){for(;e===qi;)qi=Hi[--Gi],Hi[Gi]=null,Ki=Hi[--Gi],Hi[Gi]=null;for(;e===Yi;)Yi=Wi[--$i],Wi[$i]=null,Ji=Wi[--$i],Wi[$i]=null,Xi=Wi[--$i],Wi[$i]=null}var na=null,ra=null,ia=!1,aa=null;function sa(e,t){var n=Rc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function oa(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,na=e,ra=ci(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,na=e,ra=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Yi?{id:Xi,overflow:Ji}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Rc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,na=e,ra=null,!0);default:return!1}}function la(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function ca(e){if(ia){var t=ra;if(t){var n=t;if(!oa(e,t)){if(la(e))throw Error(a(418));t=ci(n.nextSibling);var r=na;t&&oa(e,t)?sa(r,n):(e.flags=-4097&e.flags|2,ia=!1,na=e)}}else{if(la(e))throw Error(a(418));e.flags=-4097&e.flags|2,ia=!1,na=e}}}function ua(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;na=e}function ha(e){if(e!==na)return!1;if(!ia)return ua(e),ia=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=ra)){if(la(e))throw da(),Error(a(418));for(;t;)sa(e,t),t=ci(t.nextSibling)}if(ua(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){ra=ci(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ra=null}}else ra=na?ci(e.stateNode.nextSibling):null;return!0}function da(){for(var e=ra;e;)e=ci(e.nextSibling)}function pa(){ra=na=null,ia=!1}function fa(e){null===aa?aa=[e]:aa.push(e)}var ma=_.ReactCurrentBatchConfig;function ga(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=r,s=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===s?t.ref:(t=function(e){var t=i.refs;null===e?delete t[s]:t[s]=e},t._stringRef=s,t)}if("string"!==typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function va(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ya(e){return(0,e._init)(e._payload)}function ba(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}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=Dc(e,t)).index=0,e.sibling=null,e}function s(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):(t.flags|=1048576,n)}function o(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Nc(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){var a=n.type;return a===E?h(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"===typeof a&&null!==a&&a.$$typeof===D&&ya(a)===t.type)?((r=i(t,n.props)).ref=ga(e,t,n),r.return=e,r):((r=Mc(n.type,n.key,n.props,null,e.mode,r)).ref=ga(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=Oc(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function h(e,t,n,r,a){return null===t||7!==t.tag?((t=Fc(n,e.mode,r,a)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Nc(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Mc(t.type,t.key,t.props,null,e.mode,n)).ref=ga(e,null,t),n.return=e,n;case S:return(t=Oc(t,e.mode,n)).return=e,t;case D:return d(e,(0,t._init)(t._payload),n)}if(te(t)||L(t))return(t=Fc(t,e.mode,n,null)).return=e,t;va(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n&&""!==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?c(e,t,n,r):null;case S:return n.key===i?u(e,t,n,r):null;case D:return p(e,t,(i=n._init)(n._payload),r)}if(te(n)||L(n))return null!==i?null:h(e,t,n,r,null);va(e,n)}return null}function f(e,t,n,r,i){if("string"===typeof r&&""!==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 c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case S:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case D:return f(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||L(r))return h(t,e=e.get(n)||null,r,i,null);va(t,r)}return null}function m(i,a,o,l){for(var c=null,u=null,h=a,m=a=0,g=null;null!==h&&m<o.length;m++){h.index>m?(g=h,h=null):g=h.sibling;var v=p(i,h,o[m],l);if(null===v){null===h&&(h=g);break}e&&h&&null===v.alternate&&t(i,h),a=s(v,a,m),null===u?c=v:u.sibling=v,u=v,h=g}if(m===o.length)return n(i,h),ia&&Qi(i,m),c;if(null===h){for(;m<o.length;m++)null!==(h=d(i,o[m],l))&&(a=s(h,a,m),null===u?c=h:u.sibling=h,u=h);return ia&&Qi(i,m),c}for(h=r(i,h);m<o.length;m++)null!==(g=f(h,i,m,o[m],l))&&(e&&null!==g.alternate&&h.delete(null===g.key?m:g.key),a=s(g,a,m),null===u?c=g:u.sibling=g,u=g);return e&&h.forEach(function(e){return t(i,e)}),ia&&Qi(i,m),c}function g(i,o,l,c){var u=L(l);if("function"!==typeof u)throw Error(a(150));if(null==(l=u.call(l)))throw Error(a(151));for(var h=u=null,m=o,g=o=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=p(i,m,y.value,c);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(i,m),o=s(b,o,g),null===h?u=b:h.sibling=b,h=b,m=v}if(y.done)return n(i,m),ia&&Qi(i,g),u;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=d(i,y.value,c))&&(o=s(y,o,g),null===h?u=y:h.sibling=y,h=y);return ia&&Qi(i,g),u}for(m=r(i,m);!y.done;g++,y=l.next())null!==(y=f(m,i,g,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),o=s(y,o,g),null===h?u=y:h.sibling=y,h=y);return e&&m.forEach(function(e){return t(i,e)}),ia&&Qi(i,g),u}return function e(r,a,s,l){if("object"===typeof s&&null!==s&&s.type===E&&null===s.key&&(s=s.props.children),"object"===typeof s&&null!==s){switch(s.$$typeof){case w:e:{for(var c=s.key,u=a;null!==u;){if(u.key===c){if((c=s.type)===E){if(7===u.tag){n(r,u.sibling),(a=i(u,s.props.children)).return=r,r=a;break e}}else if(u.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===D&&ya(c)===u.type){n(r,u.sibling),(a=i(u,s.props)).ref=ga(r,u,s),a.return=r,r=a;break e}n(r,u);break}t(r,u),u=u.sibling}s.type===E?((a=Fc(s.props.children,r.mode,l,s.key)).return=r,r=a):((l=Mc(s.type,s.key,s.props,null,r.mode,l)).ref=ga(r,a,s),l.return=r,r=l)}return o(r);case S:e:{for(u=s.key;null!==a;){if(a.key===u){if(4===a.tag&&a.stateNode.containerInfo===s.containerInfo&&a.stateNode.implementation===s.implementation){n(r,a.sibling),(a=i(a,s.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=Oc(s,r.mode,l)).return=r,r=a}return o(r);case D:return e(r,a,(u=s._init)(s._payload),l)}if(te(s))return m(r,a,s,l);if(L(s))return g(r,a,s,l);va(r,s)}return"string"===typeof s&&""!==s||"number"===typeof s?(s=""+s,null!==a&&6===a.tag?(n(r,a.sibling),(a=i(a,s)).return=r,r=a):(n(r,a),(a=Nc(s,r.mode,l)).return=r,r=a),o(r)):n(r,a)}}var _a=ba(!0),wa=ba(!1),Sa=ki(null),Ea=null,ka=null,xa=null;function Ca(){xa=ka=Ea=null}function Pa(e){var t=Sa.current;xi(Sa),e._currentValue=t}function Aa(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ta(e,t){Ea=e,xa=ka=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bo=!0),e.firstContext=null)}function Ra(e){var t=e._currentValue;if(xa!==e)if(e={context:e,memoizedValue:t,next:null},null===ka){if(null===Ea)throw Error(a(308));ka=e,Ea.dependencies={lanes:0,firstContext:e}}else ka=ka.next=e;return t}var Ia=null;function Da(e){null===Ia?Ia=[e]:Ia.push(e)}function Ma(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Da(t)):(n.next=i.next,i.next=n),t.interleaved=n,Fa(e,r)}function Fa(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}var La=!1;function Na(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Oa(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 Ba(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ja(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Pl)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Fa(e,n)}return null===(i=r.interleaved)?(t.next=t,Da(r)):(t.next=i.next,i.next=t),r.interleaved=t,Fa(e,n)}function Va(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Ua(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?i=a=s:a=a.next=s,n=n.next}while(null!==n);null===a?i=a=t:a=a.next=t}else i=a=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function za(e,t,n,r){var i=e.updateQueue;La=!1;var a=i.firstBaseUpdate,s=i.lastBaseUpdate,o=i.shared.pending;if(null!==o){i.shared.pending=null;var l=o,c=l.next;l.next=null,null===s?a=c:s.next=c,s=l;var u=e.alternate;null!==u&&((o=(u=u.updateQueue).lastBaseUpdate)!==s&&(null===o?u.firstBaseUpdate=c:o.next=c,u.lastBaseUpdate=l))}if(null!==a){var h=i.baseState;for(s=0,u=c=l=null,o=a;;){var d=o.lane,p=o.eventTime;if((r&d)===d){null!==u&&(u=u.next={eventTime:p,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var f=e,m=o;switch(d=t,p=n,m.tag){case 1:if("function"===typeof(f=m.payload)){h=f.call(p,h,d);break e}h=f;break e;case 3:f.flags=-65537&f.flags|128;case 0:if(null===(d="function"===typeof(f=m.payload)?f.call(p,h,d):f)||void 0===d)break e;h=O({},h,d);break e;case 2:La=!0}}null!==o.callback&&0!==o.lane&&(e.flags|=64,null===(d=i.effects)?i.effects=[o]:d.push(o))}else p={eventTime:p,lane:d,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===u?(c=u=p,l=h):u=u.next=p,s|=d;if(null===(o=o.next)){if(null===(o=i.shared.pending))break;o=(d=o).next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}if(null===u&&(l=h),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,null!==(t=i.shared.interleaved)){i=t;do{s|=i.lane,i=i.next}while(i!==t)}else null===a&&(i.shared.lanes=0);Ll|=s,e.lanes=s,e.memoizedState=h}}function Ha(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 Ga={},qa=ki(Ga),Ka=ki(Ga),Wa=ki(Ga);function $a(e){if(e===Ga)throw Error(a(174));return e}function Ya(e,t){switch(Ci(Wa,t),Ci(Ka,e),Ci(qa,Ga),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}xi(qa),Ci(qa,t)}function Xa(){xi(qa),xi(Ka),xi(Wa)}function Ja(e){$a(Wa.current);var t=$a(qa.current),n=le(t,e.type);t!==n&&(Ci(Ka,e),Ci(qa,n))}function Qa(e){Ka.current===e&&(xi(qa),xi(Ka))}var Za=ki(0);function es(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!==(128&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 ts=[];function ns(){for(var e=0;e<ts.length;e++)ts[e]._workInProgressVersionPrimary=null;ts.length=0}var rs=_.ReactCurrentDispatcher,is=_.ReactCurrentBatchConfig,as=0,ss=null,os=null,ls=null,cs=!1,us=!1,hs=0,ds=0;function ps(){throw Error(a(321))}function fs(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!or(e[n],t[n]))return!1;return!0}function ms(e,t,n,r,i,s){if(as=s,ss=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,rs.current=null===e||null===e.memoizedState?Qs:Zs,e=n(r,i),us){s=0;do{if(us=!1,hs=0,25<=s)throw Error(a(301));s+=1,ls=os=null,t.updateQueue=null,rs.current=eo,e=n(r,i)}while(us)}if(rs.current=Js,t=null!==os&&null!==os.next,as=0,ls=os=ss=null,cs=!1,t)throw Error(a(300));return e}function gs(){var e=0!==hs;return hs=0,e}function vs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ls?ss.memoizedState=ls=e:ls=ls.next=e,ls}function ys(){if(null===os){var e=ss.alternate;e=null!==e?e.memoizedState:null}else e=os.next;var t=null===ls?ss.memoizedState:ls.next;if(null!==t)ls=t,os=e;else{if(null===e)throw Error(a(310));e={memoizedState:(os=e).memoizedState,baseState:os.baseState,baseQueue:os.baseQueue,queue:os.queue,next:null},null===ls?ss.memoizedState=ls=e:ls=ls.next=e}return ls}function bs(e,t){return"function"===typeof t?t(e):t}function _s(e){var t=ys(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=os,i=r.baseQueue,s=n.pending;if(null!==s){if(null!==i){var o=i.next;i.next=s.next,s.next=o}r.baseQueue=i=s,n.pending=null}if(null!==i){s=i.next,r=r.baseState;var l=o=null,c=null,u=s;do{var h=u.lane;if((as&h)===h)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:h,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=d,o=r):c=c.next=d,ss.lanes|=h,Ll|=h}u=u.next}while(null!==u&&u!==s);null===c?o=r:c.next=l,or(r,t.memoizedState)||(bo=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{s=i.lane,ss.lanes|=s,Ll|=s,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ws(e){var t=ys(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(null!==i){n.pending=null;var o=i=i.next;do{s=e(s,o.action),o=o.next}while(o!==i);or(s,t.memoizedState)||(bo=!0),t.memoizedState=s,null===t.baseQueue&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Ss(){}function Es(e,t){var n=ss,r=ys(),i=t(),s=!or(r.memoizedState,i);if(s&&(r.memoizedState=i,bo=!0),r=r.queue,Ls(Cs.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||null!==ls&&1&ls.memoizedState.tag){if(n.flags|=2048,Rs(9,xs.bind(null,n,r,i,t),void 0,null),null===Al)throw Error(a(349));0!==(30&as)||ks(n,t,i)}return i}function ks(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ss.updateQueue)?(t={lastEffect:null,stores:null},ss.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function xs(e,t,n,r){t.value=n,t.getSnapshot=r,Ps(t)&&As(e)}function Cs(e,t,n){return n(function(){Ps(t)&&As(e)})}function Ps(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!or(e,n)}catch(r){return!0}}function As(e){var t=Fa(e,1);null!==t&&tc(t,e,1,-1)}function Ts(e){var t=vs();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:bs,lastRenderedState:e},t.queue=e,e=e.dispatch=Ws.bind(null,ss,e),[t.memoizedState,e]}function Rs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ss.updateQueue)?(t={lastEffect:null,stores:null},ss.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 Is(){return ys().memoizedState}function Ds(e,t,n,r){var i=vs();ss.flags|=e,i.memoizedState=Rs(1|t,n,void 0,void 0===r?null:r)}function Ms(e,t,n,r){var i=ys();r=void 0===r?null:r;var a=void 0;if(null!==os){var s=os.memoizedState;if(a=s.destroy,null!==r&&fs(r,s.deps))return void(i.memoizedState=Rs(t,n,a,r))}ss.flags|=e,i.memoizedState=Rs(1|t,n,a,r)}function Fs(e,t){return Ds(8390656,8,e,t)}function Ls(e,t){return Ms(2048,8,e,t)}function Ns(e,t){return Ms(4,2,e,t)}function Os(e,t){return Ms(4,4,e,t)}function Bs(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 js(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ms(4,4,Bs.bind(null,t,e),n)}function Vs(){}function Us(e,t){var n=ys();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&fs(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function zs(e,t){var n=ys();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&fs(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Hs(e,t,n){return 0===(21&as)?(e.baseState&&(e.baseState=!1,bo=!0),e.memoizedState=n):(or(n,t)||(n=mt(),ss.lanes|=n,Ll|=n,e.baseState=!0),t)}function Gs(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=is.transition;is.transition={};try{e(!1),t()}finally{bt=n,is.transition=r}}function qs(){return ys().memoizedState}function Ks(e,t,n){var r=ec(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},$s(e))Ys(t,n);else if(null!==(n=Ma(e,t,n,r))){tc(n,e,r,Zl()),Xs(n,t,r)}}function Ws(e,t,n){var r=ec(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if($s(e))Ys(t,i);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var s=t.lastRenderedState,o=a(s,n);if(i.hasEagerState=!0,i.eagerState=o,or(o,s)){var l=t.interleaved;return null===l?(i.next=i,Da(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(c){}null!==(n=Ma(e,t,i,r))&&(tc(n,e,r,i=Zl()),Xs(n,t,r))}}function $s(e){var t=e.alternate;return e===ss||null!==t&&t===ss}function Ys(e,t){us=cs=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Xs(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var Js={readContext:Ra,useCallback:ps,useContext:ps,useEffect:ps,useImperativeHandle:ps,useInsertionEffect:ps,useLayoutEffect:ps,useMemo:ps,useReducer:ps,useRef:ps,useState:ps,useDebugValue:ps,useDeferredValue:ps,useTransition:ps,useMutableSource:ps,useSyncExternalStore:ps,useId:ps,unstable_isNewReconciler:!1},Qs={readContext:Ra,useCallback:function(e,t){return vs().memoizedState=[e,void 0===t?null:t],e},useContext:Ra,useEffect:Fs,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ds(4194308,4,Bs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ds(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ds(4,2,e,t)},useMemo:function(e,t){var n=vs();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=vs();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ks.bind(null,ss,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},vs().memoizedState=e},useState:Ts,useDebugValue:Vs,useDeferredValue:function(e){return vs().memoizedState=e},useTransition:function(){var e=Ts(!1),t=e[0];return e=Gs.bind(null,e[1]),vs().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ss,i=vs();if(ia){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===Al)throw Error(a(349));0!==(30&as)||ks(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,Fs(Cs.bind(null,r,s,e),[e]),r.flags|=2048,Rs(9,xs.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=vs(),t=Al.identifierPrefix;if(ia){var n=Ji;t=":"+t+"R"+(n=(Xi&~(1<<32-st(Xi)-1)).toString(32)+n),0<(n=hs++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ds++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Zs={readContext:Ra,useCallback:Us,useContext:Ra,useEffect:Ls,useImperativeHandle:js,useInsertionEffect:Ns,useLayoutEffect:Os,useMemo:zs,useReducer:_s,useRef:Is,useState:function(){return _s(bs)},useDebugValue:Vs,useDeferredValue:function(e){return Hs(ys(),os.memoizedState,e)},useTransition:function(){return[_s(bs)[0],ys().memoizedState]},useMutableSource:Ss,useSyncExternalStore:Es,useId:qs,unstable_isNewReconciler:!1},eo={readContext:Ra,useCallback:Us,useContext:Ra,useEffect:Ls,useImperativeHandle:js,useInsertionEffect:Ns,useLayoutEffect:Os,useMemo:zs,useReducer:ws,useRef:Is,useState:function(){return ws(bs)},useDebugValue:Vs,useDeferredValue:function(e){var t=ys();return null===os?t.memoizedState=e:Hs(t,os.memoizedState,e)},useTransition:function(){return[ws(bs)[0],ys().memoizedState]},useMutableSource:Ss,useSyncExternalStore:Es,useId:qs,unstable_isNewReconciler:!1};function to(e,t){if(e&&e.defaultProps){for(var n in t=O({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function no(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:O({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ro={isMounted:function(e){return!!(e=e._reactInternals)&&ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Zl(),i=ec(e),a=Ba(r,i);a.payload=t,void 0!==n&&null!==n&&(a.callback=n),null!==(t=ja(e,a,i))&&(tc(t,e,i,r),Va(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Zl(),i=ec(e),a=Ba(r,i);a.tag=1,a.payload=t,void 0!==n&&null!==n&&(a.callback=n),null!==(t=ja(e,a,i))&&(tc(t,e,i,r),Va(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Zl(),r=ec(e),i=Ba(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),null!==(t=ja(e,i,r))&&(tc(t,e,r,n),Va(t,e,r))}};function io(e,t,n,r,i,a,s){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,s):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(i,a))}function ao(e,t,n){var r=!1,i=Pi,a=t.contextType;return"object"===typeof a&&null!==a?a=Ra(a):(i=Di(t)?Ri:Ai.current,a=(r=null!==(r=t.contextTypes)&&void 0!==r)?Ii(e,i):Pi),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ro,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function so(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&&ro.enqueueReplaceState(t,t.state,null)}function oo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Na(e);var a=t.contextType;"object"===typeof a&&null!==a?i.context=Ra(a):(a=Di(t)?Ri:Ai.current,i.context=Ii(e,a)),i.state=e.memoizedState,"function"===typeof(a=t.getDerivedStateFromProps)&&(no(e,t,a,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&&ro.enqueueReplaceState(i,i.state,null),za(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4194308)}function lo(e,t){try{var n="",r=t;do{n+=U(r),r=r.return}while(r);var i=n}catch(a){i="\nError generating stack: "+a.message+"\n"+a.stack}return{value:e,source:t,stack:i,digest:null}}function co(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function uo(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var ho="function"===typeof WeakMap?WeakMap:Map;function po(e,t,n){(n=Ba(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hl||(Hl=!0,Gl=r),uo(0,t)},n}function fo(e,t,n){(n=Ba(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){uo(0,t)}}var a=e.stateNode;return null!==a&&"function"===typeof a.componentDidCatch&&(n.callback=function(){uo(0,t),"function"!==typeof r&&(null===ql?ql=new Set([this]):ql.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function mo(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ho;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=kc.bind(null,e,t,n),t.then(e,e))}function go(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vo(e,t,n,r,i){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ba(-1,1)).tag=2,ja(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var yo=_.ReactCurrentOwner,bo=!1;function _o(e,t,n,r){t.child=null===e?wa(t,null,n,r):_a(t,e.child,n,r)}function wo(e,t,n,r,i){n=n.render;var a=t.ref;return Ta(t,i),r=ms(e,t,n,r,a,i),n=gs(),null===e||bo?(ia&&n&&ea(t),t.flags|=1,_o(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ho(e,t,i))}function So(e,t,n,r,i){if(null===e){var a=n.type;return"function"!==typeof a||Ic(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Mc(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Eo(e,t,a,r,i))}if(a=e.child,0===(e.lanes&i)){var s=a.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(s,r)&&e.ref===t.ref)return Ho(e,t,i)}return t.flags|=1,(e=Dc(a,r)).ref=t.ref,e.return=t,t.child=e}function Eo(e,t,n,r,i){if(null!==e){var a=e.memoizedProps;if(lr(a,r)&&e.ref===t.ref){if(bo=!1,t.pendingProps=r=a,0===(e.lanes&i))return t.lanes=e.lanes,Ho(e,t,i);0!==(131072&e.flags)&&(bo=!0)}}return Co(e,t,n,r,i)}function ko(e,t,n){var r=t.pendingProps,i=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ci(Dl,Il),Il|=n;else{if(0===(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ci(Dl,Il),Il|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,Ci(Dl,Il),Il|=r}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Ci(Dl,Il),Il|=r;return _o(e,t,i,n),t.child}function xo(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Co(e,t,n,r,i){var a=Di(n)?Ri:Ai.current;return a=Ii(t,a),Ta(t,i),n=ms(e,t,n,r,a,i),r=gs(),null===e||bo?(ia&&r&&ea(t),t.flags|=1,_o(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ho(e,t,i))}function Po(e,t,n,r,i){if(Di(n)){var a=!0;Ni(t)}else a=!1;if(Ta(t,i),null===t.stateNode)zo(e,t),ao(t,n,r),oo(t,n,r,i),r=!0;else if(null===e){var s=t.stateNode,o=t.memoizedProps;s.props=o;var l=s.context,c=n.contextType;"object"===typeof c&&null!==c?c=Ra(c):c=Ii(t,c=Di(n)?Ri:Ai.current);var u=n.getDerivedStateFromProps,h="function"===typeof u||"function"===typeof s.getSnapshotBeforeUpdate;h||"function"!==typeof s.UNSAFE_componentWillReceiveProps&&"function"!==typeof s.componentWillReceiveProps||(o!==r||l!==c)&&so(t,s,r,c),La=!1;var d=t.memoizedState;s.state=d,za(t,r,s,i),l=t.memoizedState,o!==r||d!==l||Ti.current||La?("function"===typeof u&&(no(t,n,u,r),l=t.memoizedState),(o=La||io(t,n,o,r,d,l,c))?(h||"function"!==typeof s.UNSAFE_componentWillMount&&"function"!==typeof s.componentWillMount||("function"===typeof s.componentWillMount&&s.componentWillMount(),"function"===typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"===typeof s.componentDidMount&&(t.flags|=4194308)):("function"===typeof s.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=c,r=o):("function"===typeof s.componentDidMount&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Oa(e,t),o=t.memoizedProps,c=t.type===t.elementType?o:to(t.type,o),s.props=c,h=t.pendingProps,d=s.context,"object"===typeof(l=n.contextType)&&null!==l?l=Ra(l):l=Ii(t,l=Di(n)?Ri:Ai.current);var p=n.getDerivedStateFromProps;(u="function"===typeof p||"function"===typeof s.getSnapshotBeforeUpdate)||"function"!==typeof s.UNSAFE_componentWillReceiveProps&&"function"!==typeof s.componentWillReceiveProps||(o!==h||d!==l)&&so(t,s,r,l),La=!1,d=t.memoizedState,s.state=d,za(t,r,s,i);var f=t.memoizedState;o!==h||d!==f||Ti.current||La?("function"===typeof p&&(no(t,n,p,r),f=t.memoizedState),(c=La||io(t,n,c,r,d,f,l)||!1)?(u||"function"!==typeof s.UNSAFE_componentWillUpdate&&"function"!==typeof s.componentWillUpdate||("function"===typeof s.componentWillUpdate&&s.componentWillUpdate(r,f,l),"function"===typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(r,f,l)),"function"===typeof s.componentDidUpdate&&(t.flags|=4),"function"===typeof s.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof s.componentDidUpdate||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof s.getSnapshotBeforeUpdate||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),s.props=r,s.state=f,s.context=l,r=c):("function"!==typeof s.componentDidUpdate||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof s.getSnapshotBeforeUpdate||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Ao(e,t,n,r,a,i)}function Ao(e,t,n,r,i,a){xo(e,t);var s=0!==(128&t.flags);if(!r&&!s)return i&&Oi(t,n,!1),Ho(e,t,a);r=t.stateNode,yo.current=t;var o=s&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&s?(t.child=_a(t,e.child,null,a),t.child=_a(t,null,o,a)):_o(e,t,o,a),t.memoizedState=r.state,i&&Oi(t,n,!0),t.child}function To(e){var t=e.stateNode;t.pendingContext?Fi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Fi(0,t.context,!1),Ya(e,t.containerInfo)}function Ro(e,t,n,r,i){return pa(),fa(i),t.flags|=256,_o(e,t,n,r),t.child}var Io,Do,Mo,Fo={dehydrated:null,treeContext:null,retryLane:0};function Lo(e){return{baseLanes:e,cachePool:null,transitions:null}}function No(e,t,n){var r,i=t.pendingProps,s=Za.current,o=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&s)),r?(o=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(s|=1),Ci(Za,1&s),null===e)return ca(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=i.children,e=i.fallback,o?(i=t.mode,o=t.child,l={mode:"hidden",children:l},0===(1&i)&&null!==o?(o.childLanes=0,o.pendingProps=l):o=Lc(l,i,0,null),e=Fc(e,i,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Lo(n),t.memoizedState=Fo,e):Oo(t,l));if(null!==(s=e.memoizedState)&&null!==(r=s.dehydrated))return function(e,t,n,r,i,s,o){if(n)return 256&t.flags?(t.flags&=-257,Bo(e,t,o,r=co(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=Lc({mode:"visible",children:r.children},i,0,null),(s=Fc(s,i,o,null)).flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,0!==(1&t.mode)&&_a(t,e.child,null,o),t.child.memoizedState=Lo(o),t.memoizedState=Fo,s);if(0===(1&t.mode))return Bo(e,t,o,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var l=r.dgst;return r=l,Bo(e,t,o,r=co(s=Error(a(419)),r,void 0))}if(l=0!==(o&e.childLanes),bo||l){if(null!==(r=Al)){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(r.suspendedLanes|o))?0:i)&&i!==s.retryLane&&(s.retryLane=i,Fa(e,i),tc(r,e,i,-1))}return fc(),Bo(e,t,o,r=co(Error(a(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Cc.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,ra=ci(i.nextSibling),na=t,ia=!0,aa=null,null!==e&&(Wi[$i++]=Xi,Wi[$i++]=Ji,Wi[$i++]=Yi,Xi=e.id,Ji=e.overflow,Yi=t),t=Oo(t,r.children),t.flags|=4096,t)}(e,t,l,i,r,s,n);if(o){o=i.fallback,l=t.mode,r=(s=e.child).sibling;var c={mode:"hidden",children:i.children};return 0===(1&l)&&t.child!==s?((i=t.child).childLanes=0,i.pendingProps=c,t.deletions=null):(i=Dc(s,c)).subtreeFlags=14680064&s.subtreeFlags,null!==r?o=Dc(r,o):(o=Fc(o,l,n,null)).flags|=2,o.return=t,i.return=t,i.sibling=o,t.child=i,i=o,o=t.child,l=null===(l=e.child.memoizedState)?Lo(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},o.memoizedState=l,o.childLanes=e.childLanes&~n,t.memoizedState=Fo,i}return e=(o=e.child).sibling,i=Dc(o,{mode:"visible",children:i.children}),0===(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function Oo(e,t){return(t=Lc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Bo(e,t,n,r){return null!==r&&fa(r),_a(t,e.child,null,n),(e=Oo(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function jo(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Aa(e.return,t,n)}function Vo(e,t,n,r,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function Uo(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(_o(e,t,r.children,n),0!==(2&(r=Za.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&jo(e,n,t);else if(19===e.tag)jo(e,n,t);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(Ci(Za,r),0===(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===es(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Vo(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===es(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Vo(t,!0,n,null,a);break;case"together":Vo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function zo(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ho(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ll|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Dc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Dc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Go(e,t){if(!ia)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 qo(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ko(e,t,n){var r=t.pendingProps;switch(ta(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qo(t),null;case 1:case 17:return Di(t.type)&&Mi(),qo(t),null;case 3:return r=t.stateNode,Xa(),xi(Ti),xi(Ai),ns(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(ha(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==aa&&(ac(aa),aa=null))),qo(t),null;case 5:Qa(t);var i=$a(Wa.current);if(n=t.type,null!==e&&null!=t.stateNode)Do(e,t,n,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(a(166));return qo(t),null}if(e=$a(qa.current),ha(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[di]=t,r[pi]=s,e=0!==(1&t.mode),n){case"dialog":jr("cancel",r),jr("close",r);break;case"iframe":case"object":case"embed":jr("load",r);break;case"video":case"audio":for(i=0;i<Lr.length;i++)jr(Lr[i],r);break;case"source":jr("error",r);break;case"img":case"image":case"link":jr("error",r),jr("load",r);break;case"details":jr("toggle",r);break;case"input":X(r,s),jr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},jr("invalid",r);break;case"textarea":ie(r,s),jr("invalid",r)}for(var l in ye(n,s),i=null,s)if(s.hasOwnProperty(l)){var c=s[l];"children"===l?"string"===typeof c?r.textContent!==c&&(!0!==s.suppressHydrationWarning&&Qr(r.textContent,c,e),i=["children",c]):"number"===typeof c&&r.textContent!==""+c&&(!0!==s.suppressHydrationWarning&&Qr(r.textContent,c,e),i=["children",""+c]):o.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&jr("scroll",r)}switch(n){case"input":K(r),Z(r,s,!0);break;case"textarea":K(r),se(r);break;case"select":case"option":break;default:"function"===typeof s.onClick&&(r.onclick=Zr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=oe(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[di]=t,e[pi]=r,Io(e,t),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":jr("cancel",e),jr("close",e),i=r;break;case"iframe":case"object":case"embed":jr("load",e),i=r;break;case"video":case"audio":for(i=0;i<Lr.length;i++)jr(Lr[i],e);i=r;break;case"source":jr("error",e),i=r;break;case"img":case"image":case"link":jr("error",e),jr("load",e),i=r;break;case"details":jr("toggle",e),i=r;break;case"input":X(e,r),i=Y(e,r),jr("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=O({},r,{value:void 0}),jr("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),jr("invalid",e)}for(s in ye(n,i),c=i)if(c.hasOwnProperty(s)){var u=c[s];"style"===s?ge(e,u):"dangerouslySetInnerHTML"===s?null!=(u=u?u.__html:void 0)&&he(e,u):"children"===s?"string"===typeof u?("textarea"!==n||""!==u)&&de(e,u):"number"===typeof u&&de(e,""+u):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(o.hasOwnProperty(s)?null!=u&&"onScroll"===s&&jr("scroll",e):null!=u&&b(e,s,u,l))}switch(n){case"input":K(e),Z(e,r,!1);break;case"textarea":K(e),se(e);break;case"option":null!=r.value&&e.setAttribute("value",""+G(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ne(e,!!r.multiple,s,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=Zr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return qo(t),null;case 6:if(e&&null!=t.stateNode)Mo(0,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));if(n=$a(Wa.current),$a(qa.current),ha(t)){if(r=t.stateNode,n=t.memoizedProps,r[di]=t,(s=r.nodeValue!==n)&&null!==(e=na))switch(e.tag){case 3:Qr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Qr(r.nodeValue,n,0!==(1&e.mode))}s&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[di]=t,t.stateNode=r}return qo(t),null;case 13:if(xi(Za),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ia&&null!==ra&&0!==(1&t.mode)&&0===(128&t.flags))da(),pa(),t.flags|=98560,s=!1;else if(s=ha(t),null!==r&&null!==r.dehydrated){if(null===e){if(!s)throw Error(a(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(a(317));s[di]=t}else pa(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;qo(t),s=!1}else null!==aa&&(ac(aa),aa=null),s=!0;if(!s)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&Za.current)?0===Ml&&(Ml=3):fc())),null!==t.updateQueue&&(t.flags|=4),qo(t),null);case 4:return Xa(),null===e&&zr(t.stateNode.containerInfo),qo(t),null;case 10:return Pa(t.type._context),qo(t),null;case 19:if(xi(Za),null===(s=t.memoizedState))return qo(t),null;if(r=0!==(128&t.flags),null===(l=s.rendering))if(r)Go(s,!1);else{if(0!==Ml||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=es(e))){for(t.flags|=128,Go(s,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=14680066,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ci(Za,1&Za.current|2),t.child}e=e.sibling}null!==s.tail&&Je()>Ul&&(t.flags|=128,r=!0,Go(s,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=es(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Go(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!ia)return qo(t),null}else 2*Je()-s.renderingStartTime>Ul&&1073741824!==n&&(t.flags|=128,r=!0,Go(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=s.last)?n.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Je(),t.sibling=null,n=Za.current,Ci(Za,r?1&n|2:1&n),t):(qo(t),null);case 22:case 23:return uc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Il)&&(qo(t),6&t.subtreeFlags&&(t.flags|=8192)):qo(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function Wo(e,t){switch(ta(t),t.tag){case 1:return Di(t.type)&&Mi(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Xa(),xi(Ti),xi(Ai),ns(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Qa(t),null;case 13:if(xi(Za),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));pa()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return xi(Za),null;case 4:return Xa(),null;case 10:return Pa(t.type._context),null;case 22:case 23:return uc(),null;default:return null}}Io=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}},Do=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,$a(qa.current);var a,s=null;switch(n){case"input":i=Y(e,i),r=Y(e,r),s=[];break;case"select":i=O({},i,{value:void 0}),r=O({},r,{value:void 0}),s=[];break;case"textarea":i=re(e,i),r=re(e,r),s=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=Zr)}for(u in ye(n,r),n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u){var l=i[u];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(o.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=i?i[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(s||(s=[]),s.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(s=s||[]).push(u,c)):"children"===u?"string"!==typeof c&&"number"!==typeof c||(s=s||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(o.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&jr("scroll",e),s||l===c||(s=[])):(s=s||[]).push(u,c))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}},Mo=function(e,t,n,r){n!==r&&(t.flags|=4)};var $o=!1,Yo=!1,Xo="function"===typeof WeakSet?WeakSet:Set,Jo=null;function Qo(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Ec(e,t,r)}else n.current=null}function Zo(e,t,n){try{n()}catch(r){Ec(e,t,r)}}var el=!1;function tl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,void 0!==a&&Zo(t,n,a)}i=i.next}while(i!==r)}}function nl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function rl(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[di],delete t[pi],delete t[mi],delete t[gi],delete t[vi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ol(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,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=Zr));else if(4!==r&&null!==(e=e.child))for(ol(e,t,n),e=e.sibling;null!==e;)ol(e,t,n),e=e.sibling}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}var cl=null,ul=!1;function hl(e,t,n){for(n=n.child;null!==n;)dl(e,t,n),n=n.sibling}function dl(e,t,n){if(at&&"function"===typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(it,n)}catch(o){}switch(n.tag){case 5:Yo||Qo(n,t);case 6:var r=cl,i=ul;cl=null,hl(e,t,n),ul=i,null!==(cl=r)&&(ul?(e=cl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cl.removeChild(n.stateNode));break;case 18:null!==cl&&(ul?(e=cl,n=n.stateNode,8===e.nodeType?li(e.parentNode,n):1===e.nodeType&&li(e,n),zt(e)):li(cl,n.stateNode));break;case 4:r=cl,i=ul,cl=n.stateNode.containerInfo,ul=!0,hl(e,t,n),cl=r,ul=i;break;case 0:case 11:case 14:case 15:if(!Yo&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var a=i,s=a.destroy;a=a.tag,void 0!==s&&(0!==(2&a)||0!==(4&a))&&Zo(n,t,s),i=i.next}while(i!==r)}hl(e,t,n);break;case 1:if(!Yo&&(Qo(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(o){Ec(n,t,o)}hl(e,t,n);break;case 21:hl(e,t,n);break;case 22:1&n.mode?(Yo=(r=Yo)||null!==n.memoizedState,hl(e,t,n),Yo=r):hl(e,t,n);break;default:hl(e,t,n)}}function pl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xo),t.forEach(function(t){var r=Pc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function fl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,o=t,l=o;e:for(;null!==l;){switch(l.tag){case 5:cl=l.stateNode,ul=!1;break e;case 3:case 4:cl=l.stateNode.containerInfo,ul=!0;break e}l=l.return}if(null===cl)throw Error(a(160));dl(s,o,i),cl=null,ul=!1;var c=i.alternate;null!==c&&(c.return=null),i.return=null}catch(u){Ec(i,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)ml(t,e),t=t.sibling}function ml(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(fl(t,e),gl(e),4&r){try{tl(3,e,e.return),nl(3,e)}catch(g){Ec(e,e.return,g)}try{tl(5,e,e.return)}catch(g){Ec(e,e.return,g)}}break;case 1:fl(t,e),gl(e),512&r&&null!==n&&Qo(n,n.return);break;case 5:if(fl(t,e),gl(e),512&r&&null!==n&&Qo(n,n.return),32&e.flags){var i=e.stateNode;try{de(i,"")}catch(g){Ec(e,e.return,g)}}if(4&r&&null!=(i=e.stateNode)){var s=e.memoizedProps,o=null!==n?n.memoizedProps:s,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===s.type&&null!=s.name&&J(i,s),be(l,o);var u=be(l,s);for(o=0;o<c.length;o+=2){var h=c[o],d=c[o+1];"style"===h?ge(i,d):"dangerouslySetInnerHTML"===h?he(i,d):"children"===h?de(i,d):b(i,h,d,u)}switch(l){case"input":Q(i,s);break;case"textarea":ae(i,s);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var f=s.value;null!=f?ne(i,!!s.multiple,f,!1):p!==!!s.multiple&&(null!=s.defaultValue?ne(i,!!s.multiple,s.defaultValue,!0):ne(i,!!s.multiple,s.multiple?[]:"",!1))}i[pi]=s}catch(g){Ec(e,e.return,g)}}break;case 6:if(fl(t,e),gl(e),4&r){if(null===e.stateNode)throw Error(a(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(g){Ec(e,e.return,g)}}break;case 3:if(fl(t,e),gl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{zt(t.containerInfo)}catch(g){Ec(e,e.return,g)}break;case 4:default:fl(t,e),gl(e);break;case 13:fl(t,e),gl(e),8192&(i=e.child).flags&&(s=null!==i.memoizedState,i.stateNode.isHidden=s,!s||null!==i.alternate&&null!==i.alternate.memoizedState||(Vl=Je())),4&r&&pl(e);break;case 22:if(h=null!==n&&null!==n.memoizedState,1&e.mode?(Yo=(u=Yo)||h,fl(t,e),Yo=u):fl(t,e),gl(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!h&&0!==(1&e.mode))for(Jo=e,h=e.child;null!==h;){for(d=Jo=h;null!==Jo;){switch(f=(p=Jo).child,p.tag){case 0:case 11:case 14:case 15:tl(4,p,p.return);break;case 1:Qo(p,p.return);var m=p.stateNode;if("function"===typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(g){Ec(r,n,g)}}break;case 5:Qo(p,p.return);break;case 22:if(null!==p.memoizedState){_l(d);continue}}null!==f?(f.return=p,Jo=f):_l(d)}h=h.sibling}e:for(h=null,d=e;;){if(5===d.tag){if(null===h){h=d;try{i=d.stateNode,u?"function"===typeof(s=i.style).setProperty?s.setProperty("display","none","important"):s.display="none":(l=d.stateNode,o=void 0!==(c=d.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,l.style.display=me("display",o))}catch(g){Ec(e,e.return,g)}}}else if(6===d.tag){if(null===h)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(g){Ec(e,e.return,g)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;h===d&&(h=null),d=d.return}h===d&&(h=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:fl(t,e),gl(e),4&r&&pl(e);case 21:}}function gl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(al(n)){var r=n;break e}n=n.return}throw Error(a(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(de(i,""),r.flags&=-33),ll(e,sl(e),i);break;case 3:case 4:var s=r.stateNode.containerInfo;ol(e,sl(e),s);break;default:throw Error(a(161))}}catch(o){Ec(e,e.return,o)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function vl(e,t,n){Jo=e,yl(e,t,n)}function yl(e,t,n){for(var r=0!==(1&e.mode);null!==Jo;){var i=Jo,a=i.child;if(22===i.tag&&r){var s=null!==i.memoizedState||$o;if(!s){var o=i.alternate,l=null!==o&&null!==o.memoizedState||Yo;o=$o;var c=Yo;if($o=s,(Yo=l)&&!c)for(Jo=i;null!==Jo;)l=(s=Jo).child,22===s.tag&&null!==s.memoizedState?wl(i):null!==l?(l.return=s,Jo=l):wl(i);for(;null!==a;)Jo=a,yl(a,t,n),a=a.sibling;Jo=i,$o=o,Yo=c}bl(e)}else 0!==(8772&i.subtreeFlags)&&null!==a?(a.return=i,Jo=a):bl(e)}}function bl(e){for(;null!==Jo;){var t=Jo;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Yo||nl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Yo)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:to(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;null!==s&&Ha(t,s,r);break;case 3:var o=t.updateQueue;if(null!==o){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Ha(t,o,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var h=u.memoizedState;if(null!==h){var d=h.dehydrated;null!==d&&zt(d)}}}break;default:throw Error(a(163))}Yo||512&t.flags&&rl(t)}catch(p){Ec(t,t.return,p)}}if(t===e){Jo=null;break}if(null!==(n=t.sibling)){n.return=t.return,Jo=n;break}Jo=t.return}}function _l(e){for(;null!==Jo;){var t=Jo;if(t===e){Jo=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Jo=n;break}Jo=t.return}}function wl(e){for(;null!==Jo;){var t=Jo;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{nl(4,t)}catch(l){Ec(t,n,l)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(l){Ec(t,i,l)}}var a=t.return;try{rl(t)}catch(l){Ec(t,a,l)}break;case 5:var s=t.return;try{rl(t)}catch(l){Ec(t,s,l)}}}catch(l){Ec(t,t.return,l)}if(t===e){Jo=null;break}var o=t.sibling;if(null!==o){o.return=t.return,Jo=o;break}Jo=t.return}}var Sl,El=Math.ceil,kl=_.ReactCurrentDispatcher,xl=_.ReactCurrentOwner,Cl=_.ReactCurrentBatchConfig,Pl=0,Al=null,Tl=null,Rl=0,Il=0,Dl=ki(0),Ml=0,Fl=null,Ll=0,Nl=0,Ol=0,Bl=null,jl=null,Vl=0,Ul=1/0,zl=null,Hl=!1,Gl=null,ql=null,Kl=!1,Wl=null,$l=0,Yl=0,Xl=null,Jl=-1,Ql=0;function Zl(){return 0!==(6&Pl)?Je():-1!==Jl?Jl:Jl=Je()}function ec(e){return 0===(1&e.mode)?1:0!==(2&Pl)&&0!==Rl?Rl&-Rl:null!==ma.transition?(0===Ql&&(Ql=mt()),Ql):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Xt(e.type)}function tc(e,t,n,r){if(50<Yl)throw Yl=0,Xl=null,Error(a(185));vt(e,n,r),0!==(2&Pl)&&e===Al||(e===Al&&(0===(2&Pl)&&(Nl|=n),4===Ml&&sc(e,Rl)),nc(e,r),1===n&&0===Pl&&0===(1&t.mode)&&(Ul=Je()+500,ji&&zi()))}function nc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var s=31-st(a),o=1<<s,l=i[s];-1===l?0!==(o&n)&&0===(o&r)||(i[s]=pt(o,t)):l<=t&&(e.expiredLanes|=o),a&=~o}}(e,t);var r=dt(e,e===Al?Rl:0);if(0===r)null!==n&&$e(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&$e(n),1===t)0===e.tag?function(e){ji=!0,Ui(e)}(oc.bind(null,e)):Ui(oc.bind(null,e)),si(function(){0===(6&Pl)&&zi()}),n=null;else{switch(_t(r)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Ac(n,rc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function rc(e,t){if(Jl=-1,Ql=0,0!==(6&Pl))throw Error(a(327));var n=e.callbackNode;if(wc()&&e.callbackNode!==n)return null;var r=dt(e,e===Al?Rl:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=mc(e,r);else{t=r;var i=Pl;Pl|=2;var s=pc();for(Al===e&&Rl===t||(zl=null,Ul=Je()+500,hc(e,t));;)try{vc();break}catch(l){dc(e,l)}Ca(),kl.current=s,Pl=i,null!==Tl?t=0:(Al=null,Rl=0,t=Ml)}if(0!==t){if(2===t&&(0!==(i=ft(e))&&(r=i,t=ic(e,i))),1===t)throw n=Fl,hc(e,0),sc(e,r),nc(e,Je()),n;if(6===t)sc(e,r);else{if(i=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!or(a(),i))return!1}catch(o){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=mc(e,r))&&(0!==(s=ft(e))&&(r=s,t=ic(e,s))),1===t))throw n=Fl,hc(e,0),sc(e,r),nc(e,Je()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:case 5:_c(e,jl,zl);break;case 3:if(sc(e,r),(130023424&r)===r&&10<(t=Vl+500-Je())){if(0!==dt(e,0))break;if(((i=e.suspendedLanes)&r)!==r){Zl(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(_c.bind(null,e,jl,zl),t);break}_c(e,jl,zl);break;case 4:if(sc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-st(r);s=1<<o,(o=t[o])>i&&(i=o),r&=~s}if(r=i,10<(r=(120>(r=Je()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*El(r/1960))-r)){e.timeoutHandle=ri(_c.bind(null,e,jl,zl),r);break}_c(e,jl,zl);break;default:throw Error(a(329))}}}return nc(e,Je()),e.callbackNode===n?rc.bind(null,e):null}function ic(e,t){var n=Bl;return e.current.memoizedState.isDehydrated&&(hc(e,t).flags|=256),2!==(e=mc(e,t))&&(t=jl,jl=n,null!==t&&ac(t)),e}function ac(e){null===jl?jl=e:jl.push.apply(jl,e)}function sc(e,t){for(t&=~Ol,t&=~Nl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-st(t),r=1<<n;e[n]=-1,t&=~r}}function oc(e){if(0!==(6&Pl))throw Error(a(327));wc();var t=dt(e,0);if(0===(1&t))return nc(e,Je()),null;var n=mc(e,t);if(0!==e.tag&&2===n){var r=ft(e);0!==r&&(t=r,n=ic(e,r))}if(1===n)throw n=Fl,hc(e,0),sc(e,t),nc(e,Je()),n;if(6===n)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_c(e,jl,zl),nc(e,Je()),null}function lc(e,t){var n=Pl;Pl|=1;try{return e(t)}finally{0===(Pl=n)&&(Ul=Je()+500,ji&&zi())}}function cc(e){null!==Wl&&0===Wl.tag&&0===(6&Pl)&&wc();var t=Pl;Pl|=1;var n=Cl.transition,r=bt;try{if(Cl.transition=null,bt=1,e)return e()}finally{bt=r,Cl.transition=n,0===(6&(Pl=t))&&zi()}}function uc(){Il=Dl.current,xi(Dl)}function hc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Tl)for(n=Tl.return;null!==n;){var r=n;switch(ta(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Mi();break;case 3:Xa(),xi(Ti),xi(Ai),ns();break;case 5:Qa(r);break;case 4:Xa();break;case 13:case 19:xi(Za);break;case 10:Pa(r.type._context);break;case 22:case 23:uc()}n=n.return}if(Al=e,Tl=e=Dc(e.current,null),Rl=Il=t,Ml=0,Fl=null,Ol=Nl=Ll=0,jl=Bl=null,null!==Ia){for(t=0;t<Ia.length;t++)if(null!==(r=(n=Ia[t]).interleaved)){n.interleaved=null;var i=r.next,a=n.pending;if(null!==a){var s=a.next;a.next=i,r.next=s}n.pending=r}Ia=null}return e}function dc(e,t){for(;;){var n=Tl;try{if(Ca(),rs.current=Js,cs){for(var r=ss.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}cs=!1}if(as=0,ls=os=ss=null,us=!1,hs=0,xl.current=null,null===n||null===n.return){Ml=1,Fl=t,Tl=null;break}e:{var s=e,o=n.return,l=n,c=t;if(t=Rl,l.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var u=c,h=l,d=h.tag;if(0===(1&h.mode)&&(0===d||11===d||15===d)){var p=h.alternate;p?(h.updateQueue=p.updateQueue,h.memoizedState=p.memoizedState,h.lanes=p.lanes):(h.updateQueue=null,h.memoizedState=null)}var f=go(o);if(null!==f){f.flags&=-257,vo(f,o,l,0,t),1&f.mode&&mo(s,u,t),c=u;var m=(t=f).updateQueue;if(null===m){var g=new Set;g.add(c),t.updateQueue=g}else m.add(c);break e}if(0===(1&t)){mo(s,u,t),fc();break e}c=Error(a(426))}else if(ia&&1&l.mode){var v=go(o);if(null!==v){0===(65536&v.flags)&&(v.flags|=256),vo(v,o,l,0,t),fa(lo(c,l));break e}}s=c=lo(c,l),4!==Ml&&(Ml=2),null===Bl?Bl=[s]:Bl.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t,Ua(s,po(0,c,t));break e;case 1:l=c;var y=s.type,b=s.stateNode;if(0===(128&s.flags)&&("function"===typeof y.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===ql||!ql.has(b)))){s.flags|=65536,t&=-t,s.lanes|=t,Ua(s,fo(s,l,t));break e}}s=s.return}while(null!==s)}bc(n)}catch(_){t=_,Tl===n&&null!==n&&(Tl=n=n.return);continue}break}}function pc(){var e=kl.current;return kl.current=Js,null===e?Js:e}function fc(){0!==Ml&&3!==Ml&&2!==Ml||(Ml=4),null===Al||0===(268435455&Ll)&&0===(268435455&Nl)||sc(Al,Rl)}function mc(e,t){var n=Pl;Pl|=2;var r=pc();for(Al===e&&Rl===t||(zl=null,hc(e,t));;)try{gc();break}catch(i){dc(e,i)}if(Ca(),Pl=n,kl.current=r,null!==Tl)throw Error(a(261));return Al=null,Rl=0,Ml}function gc(){for(;null!==Tl;)yc(Tl)}function vc(){for(;null!==Tl&&!Ye();)yc(Tl)}function yc(e){var t=Sl(e.alternate,e,Il);e.memoizedProps=e.pendingProps,null===t?bc(e):Tl=t,xl.current=null}function bc(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Ko(n,t,Il)))return void(Tl=n)}else{if(null!==(n=Wo(n,t)))return n.flags&=32767,void(Tl=n);if(null===e)return Ml=6,void(Tl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Tl=t);Tl=t=e}while(null!==t);0===Ml&&(Ml=5)}function _c(e,t,n){var r=bt,i=Cl.transition;try{Cl.transition=null,bt=1,function(e,t,n,r){do{wc()}while(null!==Wl);if(0!==(6&Pl))throw Error(a(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-st(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}(e,s),e===Al&&(Tl=Al=null,Rl=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Kl||(Kl=!0,Ac(tt,function(){return wc(),null})),s=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||s){s=Cl.transition,Cl.transition=null;var o=bt;bt=1;var l=Pl;Pl|=4,xl.current=null,function(e,t){if(ei=Gt,pr(e=dr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch(w){n=null;break e}var o=0,l=-1,c=-1,u=0,h=0,d=e,p=null;t:for(;;){for(var f;d!==n||0!==i&&3!==d.nodeType||(l=o+i),d!==s||0!==r&&3!==d.nodeType||(c=o+r),3===d.nodeType&&(o+=d.nodeValue.length),null!==(f=d.firstChild);)p=d,d=f;for(;;){if(d===e)break t;if(p===n&&++u===i&&(l=o),p===s&&++h===r&&(c=o),null!==(f=d.nextSibling))break;p=(d=p).parentNode}d=f}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Gt=!1,Jo=t;null!==Jo;)if(e=(t=Jo).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Jo=e;else for(;null!==Jo;){t=Jo;try{var m=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:to(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var _=t.stateNode.containerInfo;1===_.nodeType?_.textContent="":9===_.nodeType&&_.documentElement&&_.removeChild(_.documentElement);break;default:throw Error(a(163))}}catch(w){Ec(t,t.return,w)}if(null!==(e=t.sibling)){e.return=t.return,Jo=e;break}Jo=t.return}m=el,el=!1}(e,n),ml(n,e),fr(ti),Gt=!!ei,ti=ei=null,e.current=n,vl(n,e,i),Xe(),Pl=l,bt=o,Cl.transition=s}else e.current=n;if(Kl&&(Kl=!1,Wl=e,$l=i),s=e.pendingLanes,0===s&&(ql=null),function(e){if(at&&"function"===typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(it,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),nc(e,Je()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Hl)throw Hl=!1,e=Gl,Gl=null,e;0!==(1&$l)&&0!==e.tag&&wc(),s=e.pendingLanes,0!==(1&s)?e===Xl?Yl++:(Yl=0,Xl=e):Yl=0,zi()}(e,t,n,r)}finally{Cl.transition=i,bt=r}return null}function wc(){if(null!==Wl){var e=_t($l),t=Cl.transition,n=bt;try{if(Cl.transition=null,bt=16>e?16:e,null===Wl)var r=!1;else{if(e=Wl,Wl=null,$l=0,0!==(6&Pl))throw Error(a(331));var i=Pl;for(Pl|=4,Jo=e.current;null!==Jo;){var s=Jo,o=s.child;if(0!==(16&Jo.flags)){var l=s.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Jo=u;null!==Jo;){var h=Jo;switch(h.tag){case 0:case 11:case 15:tl(8,h,s)}var d=h.child;if(null!==d)d.return=h,Jo=d;else for(;null!==Jo;){var p=(h=Jo).sibling,f=h.return;if(il(h),h===u){Jo=null;break}if(null!==p){p.return=f,Jo=p;break}Jo=f}}}var m=s.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Jo=s}}if(0!==(2064&s.subtreeFlags)&&null!==o)o.return=s,Jo=o;else e:for(;null!==Jo;){if(0!==(2048&(s=Jo).flags))switch(s.tag){case 0:case 11:case 15:tl(9,s,s.return)}var y=s.sibling;if(null!==y){y.return=s.return,Jo=y;break e}Jo=s.return}}var b=e.current;for(Jo=b;null!==Jo;){var _=(o=Jo).child;if(0!==(2064&o.subtreeFlags)&&null!==_)_.return=o,Jo=_;else e:for(o=b;null!==Jo;){if(0!==(2048&(l=Jo).flags))try{switch(l.tag){case 0:case 11:case 15:nl(9,l)}}catch(S){Ec(l,l.return,S)}if(l===o){Jo=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Jo=w;break e}Jo=l.return}}if(Pl=i,zi(),at&&"function"===typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(it,e)}catch(S){}r=!0}return r}finally{bt=n,Cl.transition=t}}return!1}function Sc(e,t,n){e=ja(e,t=po(0,t=lo(n,t),1),1),t=Zl(),null!==e&&(vt(e,1,t),nc(e,t))}function Ec(e,t,n){if(3===e.tag)Sc(e,e,n);else for(;null!==t;){if(3===t.tag){Sc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===ql||!ql.has(r))){t=ja(t,e=fo(t,e=lo(n,e),1),1),e=Zl(),null!==t&&(vt(t,1,e),nc(t,e));break}}t=t.return}}function kc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Zl(),e.pingedLanes|=e.suspendedLanes&n,Al===e&&(Rl&n)===n&&(4===Ml||3===Ml&&(130023424&Rl)===Rl&&500>Je()-Vl?hc(e,0):Ol|=n),nc(e,t)}function xc(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var n=Zl();null!==(e=Fa(e,t))&&(vt(e,t,n),nc(e,n))}function Cc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),xc(e,n)}function Pc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(t),xc(e,n)}function Ac(e,t){return We(e,t)}function Tc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=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.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rc(e,t,n,r){return new Tc(e,t,n,r)}function Ic(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Dc(e,t){var n=e.alternate;return null===n?((n=Rc(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.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,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 Mc(e,t,n,r,i,s){var o=2;if(r=e,"function"===typeof e)Ic(e)&&(o=1);else if("string"===typeof e)o=5;else e:switch(e){case E:return Fc(n.children,i,s,t);case k:o=8,i|=8;break;case x:return(e=Rc(12,n,t,2|i)).elementType=x,e.lanes=s,e;case T:return(e=Rc(13,n,t,i)).elementType=T,e.lanes=s,e;case R:return(e=Rc(19,n,t,i)).elementType=R,e.lanes=s,e;case M:return Lc(n,i,s,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case C:o=10;break e;case P:o=9;break e;case A:o=11;break e;case I:o=14;break e;case D:o=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Rc(o,n,t,i)).elementType=e,t.type=r,t.lanes=s,t}function Fc(e,t,n,r){return(e=Rc(7,e,r,t)).lanes=n,e}function Lc(e,t,n,r){return(e=Rc(22,e,r,t)).elementType=M,e.lanes=n,e.stateNode={isHidden:!1},e}function Nc(e,t,n){return(e=Rc(6,e,null,t)).lanes=n,e}function Oc(e,t,n){return(t=Rc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bc(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function jc(e,t,n,r,i,a,s,o,l){return e=new Bc(e,t,n,o,l),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Rc(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Na(a),e}function Vc(e){if(!e)return Pi;e:{if(ze(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Di(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var n=e.type;if(Di(n))return Li(e,n,t)}return t}function Uc(e,t,n,r,i,a,s,o,l){return(e=jc(n,r,!0,e,0,a,0,o,l)).context=Vc(null),n=e.current,(a=Ba(r=Zl(),i=ec(n))).callback=void 0!==t&&null!==t?t:null,ja(n,a,i),e.current.lanes=i,vt(e,i,r),nc(e,r),e}function zc(e,t,n,r){var i=t.current,a=Zl(),s=ec(i);return n=Vc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ba(a,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=ja(i,t,s))&&(tc(e,i,s,a),Va(e,i,s)),s}function Hc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Gc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function qc(e,t){Gc(e,t),(e=e.alternate)&&Gc(e,t)}Sl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ti.current)bo=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return bo=!1,function(e,t,n){switch(t.tag){case 3:To(t),pa();break;case 5:Ja(t);break;case 1:Di(t.type)&&Ni(t);break;case 4:Ya(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ci(Sa,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ci(Za,1&Za.current),t.flags|=128,null):0!==(n&t.child.childLanes)?No(e,t,n):(Ci(Za,1&Za.current),null!==(e=Ho(e,t,n))?e.sibling:null);Ci(Za,1&Za.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return Uo(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ci(Za,Za.current),r)break;return null;case 22:case 23:return t.lanes=0,ko(e,t,n)}return Ho(e,t,n)}(e,t,n);bo=0!==(131072&e.flags)}else bo=!1,ia&&0!==(1048576&t.flags)&&Zi(t,Ki,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;zo(e,t),e=t.pendingProps;var i=Ii(t,Ai.current);Ta(t,n),i=ms(null,t,r,e,i,n);var s=gs();return t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Di(r)?(s=!0,Ni(t)):s=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Na(t),i.updater=ro,t.stateNode=i,i._reactInternals=t,oo(t,r,e,n),t=Ao(null,t,r,!0,s,n)):(t.tag=0,ia&&s&&ea(t),_o(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(zo(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"===typeof e)return Ic(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===A)return 11;if(e===I)return 14}return 2}(r),e=to(r,e),i){case 0:t=Co(null,t,r,e,n);break e;case 1:t=Po(null,t,r,e,n);break e;case 11:t=wo(null,t,r,e,n);break e;case 14:t=So(null,t,r,to(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,Co(e,t,r,i=t.elementType===r?i:to(r,i),n);case 1:return r=t.type,i=t.pendingProps,Po(e,t,r,i=t.elementType===r?i:to(r,i),n);case 3:e:{if(To(t),null===e)throw Error(a(387));r=t.pendingProps,i=(s=t.memoizedState).element,Oa(e,t),za(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated){if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,256&t.flags){t=Ro(e,t,r,n,i=lo(Error(a(423)),t));break e}if(r!==i){t=Ro(e,t,r,n,i=lo(Error(a(424)),t));break e}for(ra=ci(t.stateNode.containerInfo.firstChild),na=t,ia=!0,aa=null,n=wa(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(pa(),r===i){t=Ho(e,t,n);break e}_o(e,t,r,n)}t=t.child}return t;case 5:return Ja(t),null===e&&ca(t),r=t.type,i=t.pendingProps,s=null!==e?e.memoizedProps:null,o=i.children,ni(r,i)?o=null:null!==s&&ni(r,s)&&(t.flags|=32),xo(e,t),_o(e,t,o,n),t.child;case 6:return null===e&&ca(t),null;case 13:return No(e,t,n);case 4:return Ya(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=_a(t,null,r,n):_o(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,wo(e,t,r,i=t.elementType===r?i:to(r,i),n);case 7:return _o(e,t,t.pendingProps,n),t.child;case 8:case 12:return _o(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,Ci(Sa,r._currentValue),r._currentValue=o,null!==s)if(or(s.value,o)){if(s.children===i.children&&!Ti.current){t=Ho(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var l=s.dependencies;if(null!==l){o=s.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===s.tag){(c=Ba(-1,n&-n)).tag=2;var u=s.updateQueue;if(null!==u){var h=(u=u.shared).pending;null===h?c.next=c:(c.next=h.next,h.next=c),u.pending=c}}s.lanes|=n,null!==(c=s.alternate)&&(c.lanes|=n),Aa(s.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===s.tag)o=s.type===t.type?null:s.child;else if(18===s.tag){if(null===(o=s.return))throw Error(a(341));o.lanes|=n,null!==(l=o.alternate)&&(l.lanes|=n),Aa(o,n,t),o=s.sibling}else o=s.child;if(null!==o)o.return=s;else for(o=s;null!==o;){if(o===t){o=null;break}if(null!==(s=o.sibling)){s.return=o.return,o=s;break}o=o.return}s=o}_o(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ta(t,n),r=r(i=Ra(i)),t.flags|=1,_o(e,t,r,n),t.child;case 14:return i=to(r=t.type,t.pendingProps),So(e,t,r,i=to(r.type,i),n);case 15:return Eo(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:to(r,i),zo(e,t),t.tag=1,Di(r)?(e=!0,Ni(t)):e=!1,Ta(t,n),ao(t,r,i),oo(t,r,i,n),Ao(null,t,r,!0,e,n);case 19:return Uo(e,t,n);case 22:return ko(e,t,n)}throw Error(a(156,t.tag))};var Kc="function"===typeof reportError?reportError:function(e){console.error(e)};function Wc(e){this._internalRoot=e}function $c(e){this._internalRoot=e}function Yc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}
vendor: 9,901 bytes, line 2
2function Jc(){}function Qc(e,t,n,r,i){var a=n._reactRootContainer;if(a){var s=a;if("function"===typeof i){var o=i;i=function(){var e=Hc(s);o.call(e)}}zc(t,s,e,i)}else s=function(e,t,n,r,i){if(i){if("function"===typeof r){var a=r;r=function(){var e=Hc(s);a.call(e)}}var s=Uc(t,r,e,0,null,!1,0,"",Jc);return e._reactRootContainer=s,e[fi]=s.current,zr(8===e.nodeType?e.parentNode:e),cc(),s}for(;i=e.lastChild;)e.removeChild(i);if("function"===typeof r){var o=r;r=function(){var e=Hc(l);o.call(e)}}var l=jc(e,0,!1,null,0,!1,0,"",Jc);return e._reactRootContainer=l,e[fi]=l.current,zr(8===e.nodeType?e.parentNode:e),cc(function(){zc(t,l,n,r)}),l}(n,t,e,i,r);return Hc(s)}$c.prototype.render=Wc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));zc(e,t,null,null)},$c.prototype.unmount=Wc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cc(function(){zc(null,e,null,null)}),t[fi]=null}},$c.prototype.unstable_scheduleHydration=function(e){if(e){var t=kt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mt.length&&0!==t&&t<Mt[n].priority;n++);Mt.splice(n,0,e),0===n&&Ot(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ht(t.pendingLanes);0!==n&&(yt(t,1|n),nc(t,Je()),0===(6&Pl)&&(Ul=Je()+500,zi()))}break;case 13:cc(function(){var t=Fa(e,1);if(null!==t){var n=Zl();tc(t,e,1,n)}}),qc(e,1)}},St=function(e){if(13===e.tag){var t=Fa(e,134217728);if(null!==t)tc(t,e,134217728,Zl());qc(e,134217728)}},Et=function(e){if(13===e.tag){var t=ec(e),n=Fa(e,t);if(null!==n)tc(n,e,t,Zl());qc(e,t)}},kt=function(){return bt},xt=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Se=function(e,t,n){switch(t){case"input":if(Q(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=wi(r);if(!i)throw Error(a(90));W(r),Q(r,i)}}}break;case"textarea":ae(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ae=lc,Te=cc;var Zc={usingClientEntryPoint:!1,Events:[bi,_i,wi,Ce,Pe,lc]},eu={findFiberByHostInstance:yi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},tu={bundleType:eu.bundleType,version:eu.version,rendererPackageName:eu.rendererPackageName,rendererConfig:eu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=qe(e))?null:e.stateNode},findFiberByHostInstance:eu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var nu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nu.isDisabled&&nu.supportsFiber)try{it=nu.inject(tu),at=nu}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Yc(t))throw Error(a(200));return function(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}}(e,t,null,n)},t.createRoot=function(e,t){if(!Yc(e))throw Error(a(299));var n=!1,r="",i=Kc;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=jc(e,1,!1,null,0,n,0,r,i),e[fi]=t.current,zr(8===e.nodeType?e.parentNode:e),new Wc(t)},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 e=Object.keys(e).join(","),Error(a(268,e))}return e=null===(e=qe(t))?null:e.stateNode},t.flushSync=function(e){return cc(e)},t.hydrate=function(e,t,n){if(!Xc(t))throw Error(a(200));return Qc(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Yc(e))throw Error(a(405));var r=null!=n&&n.hydratedSources||null,i=!1,s="",o=Kc;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(s=n.identifierPrefix),void 0!==n.onRecoverableError&&(o=n.onRecoverableError)),t=Uc(t,null,e,1,null!=n?n:null,i,0,s,o),e[fi]=t.current,zr(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new $c(t)},t.render=function(e,t,n){if(!Xc(t))throw Error(a(200));return Qc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xc(e))throw Error(a(40));return!!e._reactRootContainer&&(cc(function(){Qc(null,null,e,!1,function(){e._reactRootContainer=null,e[fi]=null})}),!0)},t.unstable_batchedUpdates=lc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xc(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return Qc(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},7950(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(2730)},1153(e,t,n){"use strict";var r=n(5043),i=Symbol.for("react.element"),a=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,a={},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)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:u,props:a,_owner:o.current}}t.Fragment=a,t.jsx=c,t.jsxs=c},4202(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var _=b.prototype=new y;_.constructor=b,m(_,v.prototype),_.isPureReactComponent=!0;var w=Array.isArray,S=Object.prototype.hasOwnProperty,E={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function x(e,t,r){var i,a={},s=null,o=null;if(null!=t)for(i in void 0!==t.ref&&(o=t.ref),void 0!==t.key&&(s=""+t.key),t)S.call(t,i)&&!k.hasOwnProperty(i)&&(a[i]=t[i]);var l=arguments.length-2;if(1===l)a.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];a.children=c}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===a[i]&&(a[i]=l[i]);return{$$typeof:n,type:e,key:s,ref:o,props:a,_owner:E.current}}function C(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var P=/\/+/g;function A(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 T(e,t,i,a,s){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var l=!1;if(null===e)l=!0;else switch(o){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return s=s(l=e),e=""===a?"."+A(l,0):a,w(s)?(i="",null!=e&&(i=e.replace(P,"$&/")+"/"),T(s,t,i,"",function(e){return e})):null!=s&&(C(s)&&(s=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(s,i+(!s.key||l&&l.key===s.key?"":(""+s.key).replace(P,"$&/")+"/")+e)),t.push(s)),1;if(l=0,a=""===a?".":a+":",w(e))for(var c=0;c<e.length;c++){var u=a+A(o=e[c],c);l+=T(o,t,i,u,s)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(o=e.next()).done;)l+=T(o=o.value,t,i,u=a+A(o,c++),s);else if("object"===o)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function R(e,t,n){if(null==e)return e;var r=[],i=0;return T(e,r,"","",function(e){return t.call(n,e,i++)}),r}function I(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var D={current:null},M={transition:null},F={ReactCurrentDispatcher:D,ReactCurrentBatchConfig:M,ReactCurrentOwner:E};function L(){throw Error("act(...) is not supported in production builds of React.")}
vendor: 6,980 bytes, line 2
2t.Children={map:R,forEach:function(e,t,n){R(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return R(e,function(){t++}),t},toArray:function(e){return R(e,function(e){return e})||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=i,t.Profiler=s,t.PureComponent=b,t.StrictMode=a,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=F,t.act=L,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=m({},e.props),a=e.key,s=e.ref,o=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,o=E.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)S.call(t,c)&&!k.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];i.children=l}return{$$typeof:n,type:e.type,key:a,ref:s,props:i,_owner:o}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},t.createElement=x,t.createFactory=function(e){var t=x.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},t.unstable_act=L,t.useCallback=function(e,t){return D.current.useCallback(e,t)},t.useContext=function(e){return D.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return D.current.useDeferredValue(e)},t.useEffect=function(e,t){return D.current.useEffect(e,t)},t.useId=function(){return D.current.useId()},t.useImperativeHandle=function(e,t,n){return D.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return D.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return D.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return D.current.useMemo(e,t)},t.useReducer=function(e,t,n){return D.current.useReducer(e,t,n)},t.useRef=function(e){return D.current.useRef(e)},t.useState=function(e){return D.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return D.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return D.current.useTransition()},t.version="18.3.1"},5043(e,t,n){"use strict";e.exports=n(4202)},579(e,t,n){"use strict";e.exports=n(1153)},7234(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<a(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,s=i>>>1;r<s;){var o=2*(r+1)-1,l=e[o],c=o+1,u=e[c];if(0>a(l,n))c<i&&0>a(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[o]=n,r=o);else{if(!(c<i&&0>a(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var o=Date,l=o.now();t.unstable_now=function(){return o.now()-l}}var c=[],u=[],h=1,d=null,p=3,f=!1,m=!1,g=!1,v="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function _(e){for(var t=r(u);null!==t;){if(null===t.callback)i(u);else{if(!(t.startTime<=e))break;i(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function w(e){if(g=!1,_(e),!m)if(null!==r(c))m=!0,M(S);else{var t=r(u);null!==t&&F(w,t.startTime-e)}}function S(e,n){m=!1,g&&(g=!1,y(C),C=-1),f=!0;var a=p;try{for(_(n),d=r(c);null!==d&&(!(d.expirationTime>n)||e&&!T());){var s=d.callback;if("function"===typeof s){d.callback=null,p=d.priorityLevel;var o=s(d.expirationTime<=n);n=t.unstable_now(),"function"===typeof o?d.callback=o:d===r(c)&&i(c),_(n)}else i(c);d=r(c)}if(null!==d)var l=!0;else{var h=r(u);null!==h&&F(w,h.startTime-n),l=!1}return l}finally{d=null,p=a,f=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,k=!1,x=null,C=-1,P=5,A=-1;function T(){return!(t.unstable_now()-A<P)}function R(){if(null!==x){var e=t.unstable_now();A=e;var n=!0;try{n=x(!0,e)}finally{n?E():(k=!1,x=null)}}else k=!1}if("function"===typeof b)E=function(){b(R)};else if("undefined"!==typeof MessageChannel){var I=new MessageChannel,D=I.port2;I.port1.onmessage=R,E=function(){D.postMessage(null)}}else E=function(){v(R,0)};function M(e){x=e,k||(k=!0,E())}function F(e,n){C=v(function(){e(t.unstable_now())},n)}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||f||(m=!0,M(S))},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"):P=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,i,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 o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return e={id:h++,callback:i,priorityLevel:e,startTime:a,expirationTime:o=a+o,sortIndex:-1},a>s?(e.sortIndex=a,n(u,e),null===r(c)&&e===r(u)&&(g?(y(C),C=-1):g=!0,F(w,a-s))):(e.sortIndex=o,n(c,e),m||f||(m=!0,M(S))),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},8853(e,t,n){"use strict";e.exports=n(7234)}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.exports}__webpack_require__.amdO={},__webpack_require__.n=e=>
2{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;__webpack_require__.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"===typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"===typeof n.then)return n}var i=Object.create(null);__webpack_require__.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;("object"==typeof s||"function"==typeof s)&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach(e=>a[e]=()=>n[e]);return a.default=()=>n,__webpack_require__.d(i,a),i}})(),__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.dn=e=>{(Object.getOwnPropertyDescriptor(e,"name")||{}).writable||Object.defineProperty(e,"name",{value:"default",configurable:!0})},__webpack_require__.p="/";var __webpack_exports__={};(()=>{"use strict";var e={};__webpack_require__.r(e),__webpack_require__.d(e,{hasBrowserEnv:()=>Qe,hasStandardBrowserEnv:()=>et,hasStandardBrowserWebWorkerEnv:()=>tt,navigator:()=>Ze,origin:()=>nt});var t=__webpack_require__(5043),n=__webpack_require__.t(t,2),r=__webpack_require__(7950),i=__webpack_require__.t(r,2),a=__webpack_require__(4800),s=__webpack_require__.n(a),o=__webpack_require__(6779),l=__webpack_require__.n(o);const c=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("boolean"===typeof e)return e;if("string"===typeof e){const t=e.trim().toLowerCase();if("true"===t||"1"===t)return!0;if("false"===t||"0"===t)return!1}return t},u={googleClientId:"502623596250-fb14kii7v91qf3afpovmjocbrbq36kpn.apps.googleusercontent.com",appleClientId:"com.productioncrate.web",facebookAppId:"486867391337544",recaptchaSiteKey:{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_APPLE_CLIENT_ID:"com.productioncrate.web",REACT_APP_FEATURE_APPLE_LOGIN:"true",REACT_APP_SESSION_TOKEN_COOKIE_KEY:"newLogin",REACT_APP_SESSION_TOKEN_LOCAL_STORAGE_KEY:"token",REACT_APP_PLANS_PAGE_VARIANT:"AB",REACT_APP_FEATURE_MARKETPLACE_CART:"true",REACT_APP_BUGSNAG_KEY:"748fc8c8b0858554332f17e8bc3b27ba",REACT_APP_API_BASE_URL:"https://rest.productioncrate.com",REACT_APP_MARKETPLACE_CART_COOKIE_KEY:"crate_marketplace_cart_pr_v1",REACT_APP_REFRESH_TOKEN_COOKIE_KEY:"newLogin_refresh",REACT_APP_REFRESH_TOKEN_LOCAL_STORAGE_KEY:"refresh_token",REACT_APP_PLUGINS_ONLY_HIGHLIGHT_MODE:"ab",REACT_APP_MARKETPLACE_B_PERCENTAGE:"50"}.REACT_APP_RECAPTCHA_KEY||"6LccoQUqAAAAAPYrX7nzBo34lSNigjeXARgbu1b9",sessionTokenLocalStorageKey:"token",refreshTokenLocalStorageKey:"refresh_token",sessionTokenCookieKey:"newLogin",refreshTokenCookieKey:"newLogin_refresh",premiumAssetsSubscriptionCookieKey:{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_APPLE_CLIENT_ID:"com.productioncrate.web",REACT_APP_FEATURE_APPLE_LOGIN:"true",REACT_APP_SESSION_TOKEN_COOKIE_KEY:"newLogin",REACT_APP_SESSION_TOKEN_LOCAL_STORAGE_KEY:"token",REACT_APP_PLANS_PAGE_VARIANT:"AB",REACT_APP_FEATURE_MARKETPLACE_CART:"true",REACT_APP_BUGSNAG_KEY:"748fc8c8b0858554332f17e8bc3b27ba",REACT_APP_API_BASE_URL:"https://rest.productioncrate.com",REACT_APP_MARKETPLACE_CART_COOKIE_KEY:"crate_marketplace_cart_pr_v1",REACT_APP_REFRESH_TOKEN_COOKIE_KEY:"newLogin_refresh",REACT_APP_REFRESH_TOKEN_LOCAL_STORAGE_KEY:"refresh_token",REACT_APP_PLUGINS_ONLY_HIGHLIGHT_MODE:"ab",REACT_APP_MARKETPLACE_B_PERCENTAGE:"50"}.REACT_APP_PREMIUM_ASSETS_SUBSCRIPTION_COOKIE_KEY||"cratePremiumAssetsSubscription",pluginsOnlyHighlightMode:(e=>{const t=String(null!==e&&void 0!==e?e:"").trim().toLowerCase();return["ab","plugins","pro","off"].includes(t)?t:"ab"})("ab"),announcementsEnabled:c({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_APPLE_CLIENT_ID:"com.productioncrate.web",REACT_APP_FEATURE_APPLE_LOGIN:"true",REACT_APP_SESSION_TOKEN_COOKIE_KEY:"newLogin",REACT_APP_SESSION_TOKEN_LOCAL_STORAGE_KEY:"token",REACT_APP_PLANS_PAGE_VARIA
2NT:"AB",REACT_APP_FEATURE_MARKETPLACE_CART:"true",REACT_APP_BUGSNAG_KEY:"748fc8c8b0858554332f17e8bc3b27ba",REACT_APP_API_BASE_URL:"https://rest.productioncrate.com",REACT_APP_MARKETPLACE_CART_COOKIE_KEY:"crate_marketplace_cart_pr_v1",REACT_APP_REFRESH_TOKEN_COOKIE_KEY:"newLogin_refresh",REACT_APP_REFRESH_TOKEN_LOCAL_STORAGE_KEY:"refresh_token",REACT_APP_PLUGINS_ONLY_HIGHLIGHT_MODE:"ab",REACT_APP_MARKETPLACE_B_PERCENTAGE:"50"}.REACT_APP_ANNOUNCEMENTS_ENABLED,!1),cookieDomain:{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_APPLE_CLIENT_ID:"com.productioncrate.web",REACT_APP_FEATURE_APPLE_LOGIN:"true",REACT_APP_SESSION_TOKEN_COOKIE_KEY:"newLogin",REACT_APP_SESSION_TOKEN_LOCAL_STORAGE_KEY:"token",REACT_APP_PLANS_PAGE_VARIANT:"AB",REACT_APP_FEATURE_MARKETPLACE_CART:"true",REACT_APP_BUGSNAG_KEY:"748fc8c8b0858554332f17e8bc3b27ba",REACT_APP_API_BASE_URL:"https://rest.productioncrate.com",REACT_APP_MARKETPLACE_CART_COOKIE_KEY:"crate_marketplace_cart_pr_v1",REACT_APP_REFRESH_TOKEN_COOKIE_KEY:"newLogin_refresh",REACT_APP_REFRESH_TOKEN_LOCAL_STORAGE_KEY:"refresh_token",REACT_APP_PLUGINS_ONLY_HIGHLIGHT_MODE:"ab",REACT_APP_MARKETPLACE_B_PERCENTAGE:"50"}.REACT_APP_COOKIE_DOMAIN||null,marketplaceCartCookieKey:"crate_marketplace_cart_pr_v1"},h=e=>{var t;let n;return String(null!==(t=document.cookie)&&void 0!==t?t:"").split(";").map(e=>e.trim()).filter(Boolean).forEach(t=>{const r=t.indexOf("=");(r>=0?t.slice(0,r):t)===e&&(n=r>=0?t.slice(r+1):"")}),n},d=["productioncrate.com","footagecrate.com","soundscrate.com","rendercrate.com","graphicscrate.com"],p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.hostname;if(u.cookieDomain)return u.cookieDomain;if("development"===b())return"localhost";const t=String(null!==e&&void 0!==e?e:"").trim().toLowerCase(),n=d.find(e=>t===e||t.endsWith(".".concat(e)));return n?".".concat(n):null},f=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=t=>{document.cookie="".concat(e,"=; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/")+(t?"; domain=".concat(t):"")};if(!t){n(void 0);const e=p();return void(e&&n(e))}n(t)},m=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];!1===r&&(r=p());let i="";if(n){const e=new Date;e.setTime(e.getTime()+24*n*60*60*1e3),i="; expires="+e.toUTCString()}let a="",s="";"localhost"!==r&&(a="; Secure",s="; SameSite=None"),document.cookie=e+"="+(t||"")+i+"; path=/"+(r?"; domain="+r:"")+s+a},g=(e,t,n)=>{let r=h(t);return n?(v(e,t,n),n):r},v=(e,t,n)=>{n?m(t,n,365):f(t)},y=e=>{let t=new Date(e);return t.toLocaleDateString()+" "+t.toLocaleTimeString()},b=()=>{const e=window.location.hostname||"";return"localhost"===e||"127.0.0.1"===e||e.endsWith(".localhost")?"development":e.includes("user-qa")||e.includes("staging")?"qa":"production"};function _(e){return _="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 w(e){var t=function(e,t){if("object"!=_(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_(t)?t:t+""}function S(e,t,n){return(t=w(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(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 k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach(function(t){S(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function x(e){if(Array.isArray(e))return e}function C(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 P(e,t){if(e){if("string"==typeof e)return C(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)?C(e,t):void 0}}
2function A(){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 T(e,t){return x(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,s,o=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return o}}(e,t)||P(e,t)||A()}const R=function(e){var n=(0,t.useRef)(e);return n.current=e,n};var I=function(e){if(e.id,"undefined"===typeof cancelAnimationFrame)return clearInterval(e.id);cancelAnimationFrame(e.id)};const D=function(e,n,r){var i=null===r||void 0===r?void 0:r.immediate,a=R(e),s=(0,t.useRef)(void 0),o=(0,t.useCallback)(function(){s.current&&I(s.current)},[]);return(0,t.useEffect)(function(){if(!("number"!==typeof n||n<0))return i&&a.current(),s.current=function(e,t){if(void 0===t&&(t=0),"undefined"===typeof requestAnimationFrame)return{id:setInterval(e,t)};var n=Date.now(),r={id:0},i=function(){var a=Date.now();r.id=requestAnimationFrame(i),a-n>=t&&(e(),n=Date.now())};return r.id=requestAnimationFrame(i),r}(function(){a.current()},n),o},[n]),o};function M(e,t){return function(){return e.apply(t,arguments)}}const F=Object.prototype.toString,L=Object.getPrototypeOf,N=Symbol.iterator,O=Symbol.toStringTag,B=(j=Object.create(null),e=>{const t=F.call(e);return j[t]||(j[t]=t.slice(8,-1).toLowerCase())});var j;const V=e=>(e=e.toLowerCase(),t=>B(t)===e),U=e=>t=>typeof t===e,z=Array.isArray,H=U("undefined");function G(e){return null!==e&&!H(e)&&null!==e.constructor&&!H(e.constructor)&&W(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const q=V("ArrayBuffer");const K=U("string"),W=U("function"),$=U("number"),Y=e=>null!==e&&"object"===typeof e,X=e=>{if("object"!==B(e))return!1;const t=L(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(O in e)&&!(N in e)},J=V("Date"),Q=V("File"),Z=V("Blob"),ee=V("FileList");const te="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof __webpack_require__.g?__webpack_require__.g:{},ne="undefined"!==typeof te.FormData?te.FormData:void 0,re=V("URLSearchParams"),ie=T(["ReadableStream","Request","Response","Headers"].map(V),4),ae=ie[0],se=ie[1],oe=ie[2],le=ie[3];function ce(e,t){let n,r,i=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).allOwnKeys,a=void 0!==i&&i;if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),z(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{if(G(e))return;const r=a?Object.getOwnPropertyNames(e):Object.keys(e),i=r.length;let s;for(n=0;n<i;n++)s=r[n],t.call(null,e[s],s,e)}}function ue(e,t){if(G(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,i=n.length;for(;i-- >0;)if(r=n[i],t===r.toLowerCase())return r;return null}const he="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:__webpack_require__.g,de=e=>!H(e)&&e!==he;const pe=(fe="undefined"!==typeof Uint8Array&&L(Uint8Array),e=>fe&&e instanceof fe);var fe;const me=V("HTMLFormElement"),ge=(()=>{let e=Object.prototype.hasOwnProperty;return(t,n)=>e.call(t,n)})(),ve=V("RegExp"),ye=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ce(n,(n,i)=>{let a;!1!==(a=t(n,i,e))&&(r[i]=a||n)}),Object.defineProperties(e,r)};const be=V("AsyncFunction"),_e=((e,t)=>{return e?setImmediate:t?(n="axios@".concat(Math.random()),r=[],he.addEventListener("message",e=>{let t=e.source,i=e.data;t===he&&i===n&&r.length&&r.shift()()},!1),e=>{r.push(e),he.postMessage(n,"*")}):e=>setTimeout(e);var n,r})("function"===typeof setImmediate,W(he.postMessage)),we="undefined"!==typeof queueMicrotask?queueMicrotask.bind(he):"undefined"!==typeof process&&process.nextTick||_e,Se={isArray:z,isArrayBuffer:q,isBuffer:G,isFormData:e=>{if(!e)return!1;if(ne&&e instanceof ne)return!0;const t=L(e);if(!t||t===Object.prototype)return!1;if(!W(e.append))return!1;const n=B(e);return"formdata"===n||"object"===n&&W(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&q(e.buffer),t},isString:K,isNumber:$,isBoolean:e=>!0===e||!1===e,isObject:Y,isPlainObject:X,isEmptyObject:e=>{if(!Y(e)||G(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(t){return!1}},isReadableStream:ae,isRequest:se,isResponse:oe,isHeaders:le,isUndefined:H,isDate:J,isFile:Q,isReactNativeBlob:e=>!(!e||"undefined"===typeof e.uri),isReactNative:e=>e&&"undefined"!==typeof e.getParts,isBlob:Z,isRegExp:ve,isFunction:W,isStream:e=>Y(e)&&W(e.pipe),isURLSearchParams:re,isTypedArray:pe,isFileList:ee,forEach:ce,merge:function e(){const t=de(this)&&this||{},n=t.caseless,r=t.skipUndefined,i={},a=(t,a)=>{if("__proto__"===a||"constructor"===a||"prototype"===a)return;const s=n&&ue(i,a)||a,o=ge(i,s)?i[s]:void 0;
vendor: 4,985 bytes, line 2
2X(o)&&X(t)?i[s]=e(o,t):X(t)?i[s]=e({},t):z(t)?i[s]=t.slice():r&&H(t)||(i[s]=t)};for(var s=arguments.length,o=new Array(s),l=0;l<s;l++)o[l]=arguments[l];for(let c=0,u=o.length;c<u;c++)o[c]&&ce(o[c],a);return i},extend:function(e,t,n){return ce(t,(t,r)=>{n&&W(t)?Object.defineProperty(e,r,{__proto__:null,value:M(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).allOwnKeys}),e},trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,a,s;const o={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)s=i[a],r&&!r(s,e,t)||o[s]||(t[s]=e[s],o[s]=!0);e=!1!==n&&L(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:B,kindOfTest:V,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(z(e))return e;let t=e.length;if(!$(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[N]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:me,hasOwnProperty:ge,hasOwnProp:ge,reduceDescriptors:ye,freezeMethods:e=>{ye(e,(t,n)=>{if(W(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];W(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return z(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:ue,global:he,isContextDefined:de,isSpecCompliantForm:function(e){return!!(e&&W(e.append)&&"FormData"===e[O]&&e[N])},toJSONObject:e=>{const t=new WeakSet,n=e=>{if(Y(e)){if(t.has(e))return;if(G(e))return e;if(!("toJSON"in e)){t.add(e);const r=z(e)?[]:{};return ce(e,(e,t)=>{const i=n(e);!H(i)&&(r[t]=i)}),t.delete(e),r}}return e};return n(e)},isAsyncFn:be,isThenable:e=>e&&(Y(e)||W(e))&&W(e.then)&&W(e.catch),setImmediate:_e,asap:we,isIterable:e=>null!=e&&W(e[N])},Ee=Se.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ke=e=>{const t={};let n,r,i;return e&&e.split("\n").forEach(function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!n||t[n]&&Ee[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};__webpack_require__.dn(ke);const xe=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Ce=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Pe(e,t){return Se.isArray(e)?e.map(e=>Pe(e,t)):function(e){let t=0,n=e.length;for(;t<n;){const n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(t,""))}function Ae(e){const t=Object.create(null);return Se.forEach(e.toJSON(),(e,n)=>{t[n]=(e=>Pe(e,Ce))(e)}),t}const Te=Symbol("internals");function Re(e){return e&&String(e).trim().toLowerCase()}function Ie(e){return!1===e||null==e?e:Se.isArray(e)?e.map(Ie):(e=>Pe(e,xe))(String(e))}function De(e,t,n,r,i){return Se.isFunction(r)?r.call(this,t,n):(i&&(t=n),Se.isString(t)?Se.isString(r)?-1!==t.indexOf(r):Se.isRegExp(r)?r.test(t):void 0:void 0)}class Me{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=Re(t);if(!i)throw new Error("header name must be a non-empty string");const a=Se.findKey(r,i);(!a||void 0===r[a]||!0===n||void 0===n&&!1!==r[a])&&(r[a||t]=Ie(e))}const a=(e,t)=>Se.forEach(e,(e,n)=>i(e,n,t));if(Se.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(Se.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a(ke(e),t);else if(Se.isObject(e)&&Se.isIterable(e)){let n,r,i={};for(const t of e){if(!Se.isArray(t))throw TypeError("Object iterator must return a key-value pair");i[r=t[0]]=(n=i[r])?Se.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}a(i,t)}else null!=e&&i(t,e,n);return this}get(e,t){if(e=Re(e)){const n=Se.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;
vendor: 6,604 bytes, line 2
2=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(Se.isFunction(t))return t.call(this,e,n);if(Se.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Re(e)){const n=Se.findKey(this,e);return!(!n||void 0===this[n]||t&&!De(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function i(e){if(e=Re(e)){const i=Se.findKey(n,e);!i||t&&!De(0,n[i],i,t)||(delete n[i],r=!0)}}return Se.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];e&&!De(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return Se.forEach(this,(r,i)=>{const a=Se.findKey(n,i);if(a)return t[a]=Ie(r),void delete t[i];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(i):String(i).trim();s!==i&&delete t[i],t[s]=Ie(r),n[s]=!0}),this}concat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.constructor.concat(this,...t)}toJSON(e){const t=Object.create(null);return Se.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Se.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(e=>{let t=T(e,2);return t[0]+": "+t[1]}).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.forEach(e=>t.set(e)),t}static accessor(e){const t=(this[Te]=this[Te]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Re(e);t[r]||(!function(e,t){const n=Se.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}(n,e),t[r]=!0)}return Se.isArray(e)?e.forEach(r):r(e),this}}Me.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Se.reduceDescriptors(Me.prototype,(e,t)=>{let n=e.value,r=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(e){this[r]=e}}}),Se.freezeMethods(Me);const Fe=Me;function Le(e,t){const n=new Set(t.map(e=>String(e).toLowerCase())),r=[],i=e=>{if(null===e||"object"!==typeof e)return e;if(Se.isBuffer(e))return e;if(-1!==r.indexOf(e))return;let t;if(e instanceof Fe&&(e=e.toJSON()),r.push(e),Se.isArray(e))t=[],e.forEach((e,n)=>{const r=i(e);Se.isUndefined(r)||(t[n]=r)});else{if(!Se.isPlainObject(e)&&function(e){if(Se.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(Se.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(e))return r.pop(),e;t=Object.create(null);for(const r of Object.entries(e)){var a=T(r,2);const e=a[0],s=a[1],o=n.has(e.toLowerCase())?"[REDACTED ****]":i(s);Se.isUndefined(o)||(t[e]=o)}}return r.pop(),t};return i(e)}class Ne extends Error{static from(e,t,n,r,i,a){const s=new Ne(e.message,t||e.code,n,r,i);return s.cause=e,s.name=e.name,null!=e.status&&null==s.status&&(s.status=e.status),a&&Object.assign(s,a),s}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){const e=this.config,t=e&&Se.hasOwnProp(e,"redact")?e.redact:void 0,n=Se.isArray(t)&&t.length>0?Le(e,t):Se.toJSONObject(e);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:n,code:this.code,status:this.status}}}Ne.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",Ne.ERR_BAD_OPTION="ERR_BAD_OPTION",Ne.ECONNABORTED="ECONNABORTED",Ne.ETIMEDOUT="ETIMEDOUT",Ne.ECONNREFUSED="ECONNREFUSED",Ne.ERR_NETWORK="ERR_NETWORK",Ne.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",Ne.ERR_DEPRECATED="ERR_DEPRECATED",Ne.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",Ne.ERR_BAD_REQUEST="ERR_BAD_REQUEST",Ne.ERR_CANCELED="ERR_CANCELED",Ne.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",Ne.ERR_INVALID_URL="ERR_INVALID_URL",Ne.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Oe=Ne;function Be(e){return Se.isPlainObject(e)||Se.isArray(e)}function je(e){return Se.endsWith(e,"[]")?e.slice(0,-2):e}function Ve(e,t,n){return e?e.concat(t).map(function(e,t){return e=je(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const Ue=Se.toFlatObject(Se,{},null,function(e){return/^is[A-Z]/.test(e)});const ze=function(e,t,n){if(!Se.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Se.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Se.isUndefined(t[e])})).metaTokens,i=n.visitor||h,a=n.dots,s=n.indexes,o=n.Blob||"undefined"!==typeof Blob&&Blob,l=void 0===n.maxDepth?100:n.maxDepth,c=o&&Se.isSpecCompliantForm(t);if(!Se.isFunction(i))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(Se.isDate(e))return e.toISOString();if(Se.isBoolean(e))return e.toString();if(!c&&Se.isBlob(e))throw new Oe("Blob is not supported. Use a Buffer instead.");return Se.isArrayBuffer(e)||Se.isTypedArray(e)?c&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function h(e,n,i){let o=e;if(Se.isReactNative(t)&&Se.isReactNativeBlob(e))return t.append(Ve(i,n,a),u(e)),!1;if(e&&!i&&"object"===typeof e)if(Se.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Se.isArray(e)&&function(e){return Se.isArray(e)&&!e.some(Be)}(e)||(Se.isFileList(e)||Se.endsWith(n,"[]"))&&(o=Se.toArray(e)))return n=je(n),o.forEach(function(e,r){!Se.isUndefined(e)&&null!==e&&t.append(!0===s?Ve([n],r,a):null===s?n:n+"[]",u(e))}),!1;return!!Be(e)||(t.append(Ve(i,n,a),u(e)),!1)}const d=[],p=Object.assign(Ue,{defaultVisitor:h,convertValue:u,isVisitable:Be});if(!Se.isObject(e))throw new TypeError("data must be an object");return function e(n,r){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!Se.isUndefined(n)){if(a>l)throw new Oe("Object is too deeply nested ("+a+" levels). Max depth: "+l,Oe.ERR_FORM_DATA_DEPTH_EXCEEDED);if(-1!==d.indexOf(n))throw Error("Circular reference detected in "+r.join("."));d.push(n),Se.forEach(n,function(n,s){!0===(!(Se.isUndefined(n)||null===n)&&i.call(t,n,Se.isString(s)?s.trim():s,r,p))&&e(n,r?r.concat(s):[s],a+1)}),d.pop()}}(e),t};
2function He(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function Ge(e,t){this._pairs=[],e&&ze(e,this,t)}const qe=Ge.prototype;qe.append=function(e,t){this._pairs.push([e,t])},qe.toString=function(e){const t=e?function(t){return e.call(this,t,He)}:He;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const Ke=Ge;function We(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function $e(e,t,n){if(!t)return e;const r=n&&n.encode||We,i=Se.isFunction(n)?{serialize:n}:n,a=i&&i.serialize;let s;if(s=a?a(t,i):Se.isURLSearchParams(t)?t.toString():new Ke(t,i).toString(r),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}const Ye=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Se.forEach(this.handlers,function(t){null!==t&&e(t)})}},Xe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Je={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:Ke,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Qe="undefined"!==typeof window&&"undefined"!==typeof document,Ze="object"===typeof navigator&&navigator||void 0,et=Qe&&(!Ze||["ReactNative","NativeScript","NS"].indexOf(Ze.product)<0),tt="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,nt=Qe&&window.location.href||"http://localhost",rt=k(k({},e),Je);const it=function(e){function t(e,n,r,i){let a=e[i++];if("__proto__"===a)return!0;const s=Number.isFinite(+a),o=i>=e.length;if(a=!a&&Se.isArray(r)?r.length:a,o)return Se.hasOwnProp(r,a)?r[a]=Se.isArray(r[a])?r[a].concat(n):[r[a],n]:r[a]=n,!s;Se.hasOwnProp(r,a)&&Se.isObject(r[a])||(r[a]=[]);return t(e,n,r[a],i)&&Se.isArray(r[a])&&(r[a]=function(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}(r[a])),!s}if(Se.isFormData(e)&&Se.isFunction(e.entries)){const n={};return Se.forEachEntry(e,(e,r)=>{t(function(e){return Se.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null},at=(e,t)=>null!=e&&Se.hasOwnProp(e,t)?e[t]:void 0;const st={transitional:Xe,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=Se.isObject(e);i&&Se.isHTMLForm(e)&&(e=new FormData(e));if(Se.isFormData(e))return r?JSON.stringify(it(e)):e;if(Se.isArrayBuffer(e)||Se.isBuffer(e)||Se.isStream(e)||Se.isFile(e)||Se.isBlob(e)||Se.isReadableStream(e))return e;if(Se.isArrayBufferView(e))return e.buffer;if(Se.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;
2if(i){const t=at(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return ze(e,new rt.classes.URLSearchParams,k({visitor:function(e,t,n,r){return rt.isNode&&Se.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,t).toString();if((a=Se.isFileList(e))||n.indexOf("multipart/form-data")>-1){const n=at(this,"env"),r=n&&n.FormData;return ze(a?{"files[]":e}:e,r&&new r,t)}}return i||r?(t.setContentType("application/json",!1),function(e,t,n){if(Se.isString(e))try{return(t||JSON.parse)(e),Se.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=at(this,"transitional")||st.transitional,n=t&&t.forcedJSONParsing,r=at(this,"responseType"),i="json"===r;if(Se.isResponse(e)||Se.isReadableStream(e))return e;if(e&&Se.isString(e)&&(n&&!r||i)){const n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,at(this,"parseReviver"))}catch(a){if(n){if("SyntaxError"===a.name)throw Oe.from(a,Oe.ERR_BAD_RESPONSE,this,null,at(this,"response"));throw a}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:rt.classes.FormData,Blob:rt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Se.forEach(["delete","get","head","post","put","patch","query"],e=>{st.headers[e]={}});const ot=st;function lt(e,t){const n=this||ot,r=t||n,i=Fe.from(r.headers);let a=r.data;return Se.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function ct(e){return!(!e||!e.__CANCEL__)}const ut=class extends Oe{constructor(e,t,n){super(null==e?"canceled":e,Oe.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function ht(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Oe("Request failed with status code "+n.status,n.status>=400&&n.status<500?Oe.ERR_BAD_REQUEST:Oe.ERR_BAD_RESPONSE,n.config,n.request,n)):e(n)}const dt=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i,a=0,s=0;return t=void 0!==t?t:1e3,function(o){const l=Date.now(),c=r[s];i||(i=l),n[a]=o,r[a]=l;let u=s,h=0;for(;u!==a;)h+=n[u++],u%=e;if(a=(a+1)%e,a===s&&(s=(s+1)%e),l-i<t)return;const d=c&&l-c;return d?Math.round(1e3*h/d):void 0}};const pt=function(e,t){let n,r,i=0,a=1e3/t;const s=function(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();i=a,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[function(){const e=Date.now(),t=e-i;for(var o=arguments.length,l=new Array(o),c=0;c<o;c++)l[c]=arguments[c];t>=a?s(l,e):(n=l,r||(r=setTimeout(()=>{r=null,s(n)},a-t)))},()=>n&&s(n)]},ft=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=0;const i=dt(50,250);return pt(n=>{if(!n||"number"!==typeof n.loaded)return;const a=n.loaded,s=n.lengthComputable?n.total:void 0,o=null!=s?Math.min(a,s):a,l=Math.max(0,o-r),c=i(l);r=Math.max(r,o);e({loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s?(s-o)/c:void 0,event:n,lengthComputable:null!=s,[t?"download":"upload"]:!0})},n)},mt=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},gt=e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Se.asap(()=>e(...n))},vt=rt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,rt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(rt.origin),rt.navigator&&/(msie|trident)/i.test(rt.navigator.userAgent)):()=>!0,yt=rt.hasStandardBrowserEnv?{write(e,t,n,r,i,a,s){if("undefined"===typeof document)return;const o=["".concat(e,"=").concat(encodeURIComponent(t))];Se.isNumber(n)&&o.push("expires=".concat(new Date(n).toUTCString())),Se.isString(r)&&o.push("path=".concat(r)),Se.isString(i)&&o.push("domain=".concat(i)),!0===a&&o.push("secure"),Se.isString(s)&&o.push("SameSite=".concat(s)),document.cookie=o.join("; ")},read(e){if("undefined"===typeof document)return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),i=r.indexOf("=");if(-1!==i&&r.slice(0,i)===e)return decodeURIComponent(r.slice(i+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function bt(e,t,n){let r=!("string"===typeof(i=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i));var i;return e&&(r||!1===n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const _t=e=>e instanceof Fe?k({},e):e;function wt(e,t){t=t||{};const n=Object.create(null);function r(e,t,n,r){return Se.isPlainObject(e)&&Se.isPlainObject(t)?Se.merge.call({caseless:r},e,t):Se.isPlainObject(t)?Se.merge({},t):Se.isArray(t)?t.slice():t}function i(e,t,n,i){return Se.isUndefined(t)?Se.isUndefined(e)?void 0:r(void 0,e,0,i):r(e,t,0,i)}function a(e,t){if(!Se.isUndefined(t))return r(void 0,t)}function s(e,t){return Se.isUndefined(t)?Se.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function o(n,i,a){return Se.hasOwnProp(t,a)?r(n,i):Se.hasOwnProp(e,a)?r(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});const l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:o,headers:(e,t,n)=>i(_t(e),_t(t),0,!0)};return Se.forEach(Object.keys(k(k({},e),t)),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;const a=Se.hasOwnProp(l,r)?l[r]:i,s=a(Se.hasOwnProp(e,r)?e[r]:void 0,Se.hasOwnProp(t,r)?t[r]:void 0,r);Se.isUndefined(s)&&a!==o||(n[r]=s)}),n}const St=["content-type","content-length"];const Et=e=>{const t=wt({},e),n=e=>Se.hasOwnProp(t,e)?t[e]:void 0,r=n("data");let i=n("withXSRFToken");const a=n("xsrfHeaderName"),s=n("xsrfCookieName");let o=n("headers");const l=n("auth"),c=n("baseURL"),u=n("allowAbsoluteUrls"),h=n("url");var d;if(t.headers=o=Fe.from(o),t.url=$e(bt(c,h,u),e.params,e.paramsSerializer),l&&o.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?(d=l.password,encodeURIComponent(d).replace(/%([0-9A-F]{2})/gi,(e,t)=>
vendor: 2,738 bytes, line 2
2String.fromCharCode(parseInt(t,16)))):""))),Se.isFormData(r)&&(rt.hasStandardBrowserEnv||rt.hasStandardBrowserWebWorkerEnv?o.setContentType(void 0):Se.isFunction(r.getHeaders)&&function(e,t,n){"content-only"===n?Object.entries(t).forEach(t=>{let n=T(t,2),r=n[0],i=n[1];St.includes(r.toLowerCase())&&e.set(r,i)}):e.set(t)}(o,r.getHeaders(),n("formDataHeaderPolicy"))),rt.hasStandardBrowserEnv){Se.isFunction(i)&&(i=i(t));if(!0===i||null==i&&vt(t.url)){const e=a&&s&&yt.read(s);e&&o.set(a,e)}}return t};__webpack_require__.dn(Et);const kt="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=Et(e);let i=r.data;const a=Fe.from(r.headers).normalize();let s,o,l,c,u,h=r.responseType,d=r.onUploadProgress,p=r.onDownloadProgress;function f(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(s),r.signal&&r.signal.removeEventListener("abort",s)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=Fe.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());ht(function(e){t(e),f()},function(e){n(e),f()},{data:h&&"text"!==h&&"json"!==h?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}if(m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&m.responseURL.startsWith("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new Oe("Request aborted",Oe.ECONNABORTED,e,m)),f(),m=null)},m.onerror=function(t){const r=t&&t.message?t.message:"Network Error",i=new Oe(r,Oe.ERR_NETWORK,e,m);i.event=t||null,n(i),f(),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const i=r.transitional||Xe;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Oe(t,i.clarifyTimeoutError?Oe.ETIMEDOUT:Oe.ECONNABORTED,e,m)),f(),m=null},void 0===i&&a.setContentType(null),"setRequestHeader"in m&&Se.forEach(Ae(a),function(e,t){m.setRequestHeader(t,e)}),Se.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),h&&"json"!==h&&(m.responseType=r.responseType),p){var v=T(ft(p,!0),2);l=v[0],u=v[1],m.addEventListener("progress",l)}if(d&&m.upload){var y=T(ft(d),2);o=y[0],c=y[1],m.upload.addEventListener("progress",o),m.upload.addEventListener("loadend",c)}(r.cancelToken||r.signal)&&(s=t=>{m&&(n(!t||t.type?new ut(null,e,m):t),m.abort(),f(),m=null)},r.cancelToken&&r.cancelToken.subscribe(s),r.signal&&(r.signal.aborted?s():r.signal.addEventListener("abort",s)));const b=function(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}(r.url);!b||rt.protocols.includes(b)?m.send(i||null):n(new Oe("Unsupported protocol "+b+":",Oe.ERR_BAD_REQUEST,e))})},xt=(e,t)=>
2{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const i=function(e){if(!r){r=!0,s();const t=e instanceof Error?e:this.reason;n.abort(t instanceof Oe?t:new ut(t instanceof Error?t.message:t))}};let a=t&&setTimeout(()=>{a=null,i(new Oe("timeout of ".concat(t,"ms exceeded"),Oe.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>e.addEventListener("abort",i));const o=n.signal;return o.unsubscribe=()=>Se.asap(s),o};function Ct(e,t){this.v=e,this.k=t}function Pt(e){return function(){return new At(e.apply(this,arguments))}}function At(e){var t,n;function r(t,n){try{var a=e[t](n),s=a.value,o=s instanceof Ct;Promise.resolve(o?s.v:s).then(function(n){if(o){var l="return"===t&&s.k?t:"next";if(!s.k||n.done)return r(l,n);n=e[l](n).value}i(!!a.done,n)},function(e){r("throw",e)})}catch(e){i(2,e)}}function i(e,i){2===e?t.reject(i):t.resolve({value:i,done:e}),(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,i){return new Promise(function(a,s){var o={key:e,arg:i,resolve:a,reject:s,next:null};n?n=n.next=o:(t=n=o,r(e,i))})},"function"!=typeof e.return&&(this.return=void 0)}function Tt(e){return new Ct(e,0)}function Rt(e){var t={},n=!1;function r(t,r){return n=!0,r=new Promise(function(n){n(e[t](r))}),{done:!1,value:new Ct(r,1)}}return t["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},t.next=function(e){return n?(n=!1,e):r("next",e)},"function"==typeof e.throw&&(t.throw=function(e){if(n)throw n=!1,e;return r("throw",e)}),"function"==typeof e.return&&(t.return=function(e){return n?(n=!1,e):r("return",e)}),t}function It(e){var t,n,r,i=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);i--;){if(n&&null!=(t=e[n]))return t.call(e);if(r&&null!=(t=e[r]))return new Dt(t.call(e));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function Dt(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then(function(e){return{value:e,done:t}})}return Dt=function(e){this.s=e,this.n=e.next},Dt.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new Dt(e)}At.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},At.prototype.next=function(e){return this._invoke("next",e)},At.prototype.throw=function(e){return this._invoke("throw",e)},At.prototype.return=function(e){return this._invoke("return",e)};const Mt=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,i=0;for(;i<n;)r=i+t,yield e.slice(i,r),i=r},Ft=function(){var e=Pt(function*(e,t){var n,r=!1,i=!1;try{for(var a,s=It(Lt(e));r=!(a=yield Tt(s.next())).done;r=!1){const e=a.value;yield*Rt(It(Mt(e,t)))}}catch(Yr){i=!0,n=Yr}finally{try{r&&null!=s.return&&(yield Tt(s.return()))}finally{if(i)throw n}}});return function(t,n){return e.apply(this,arguments)}}(),Lt=function(){var e=Pt(function*(e){if(e[Symbol.asyncIterator])return void(yield*Rt(It(e)));const t=e.getReader();try{for(;;){const e=yield Tt(t.read()),n=e.done,r=e.value;if(n)break;yield r}}finally{yield Tt(t.cancel())}});return function(t){return e.apply(this,arguments)}}(),Nt=(e,t,n,r)=>{const i=Ft(e,t);let a,s=0,o=e=>{a||(a=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const t=await i.next(),r=t.done,a=t.value;if(r)return o(),void e.close();let l=a.byteLength;if(n){let e=s+=l;n(e)}e.enqueue(new Uint8Array(a))}catch(Yr){throw o(Yr),Yr}},cancel:e=>(o(e),i.return())},{highWaterMark:2})};const Ot="1.16.1",Bt=Se.isFunction,jt=function(e){try{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(...n)}catch(i){return!1}},Vt=e=>{const t=void 0!==Se.global&&null!==Se.global?Se.global:globalThis,n=t.ReadableStream,r=t.TextEncoder,i=e=Se.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e),a=i.fetch,s=i.Request,o=i.Response,l=a?Bt(a):"function"===typeof fetch,c=Bt(s),u=Bt(o);if(!l)return!1;const h=l&&Bt(n),d=l&&("function"===typeof r?(p=new r,e=>p.encode(e)):async e=>new Uint8Array(await new s(e).arrayBuffer()));var p;const f=c&&h&&jt(()=>{let e=!1;const t=new s(rt.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),r=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!r}),m=u&&h&&jt(()=>
vendor: 10,929 bytes, line 2
2Se.isReadableStream(new o("").body)),g={stream:m&&(e=>e.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!g[e]&&(g[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new Oe("Response type '".concat(e,"' is not supported"),Oe.ERR_NOT_SUPPORT,n)})});const v=async(e,t)=>{const n=Se.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(Se.isBlob(e))return e.size;if(Se.isSpecCompliantForm(e)){const t=new s(rt.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Se.isArrayBufferView(e)||Se.isArrayBuffer(e)?e.byteLength:(Se.isURLSearchParams(e)&&(e+=""),Se.isString(e)?(await d(e)).byteLength:void 0)})(t):n};return async e=>{let t=Et(e),n=t.url,i=t.method,l=t.data,u=t.signal,h=t.cancelToken,d=t.timeout,p=t.onDownloadProgress,y=t.onUploadProgress,b=t.responseType,_=t.headers,w=t.withCredentials,S=void 0===w?"same-origin":w,E=t.fetchOptions,x=t.maxContentLength,C=t.maxBodyLength;const P=Se.isNumber(x)&&x>-1,A=Se.isNumber(C)&&C>-1;let R=a||fetch;b=b?(b+"").toLowerCase():"text";let I=xt([u,h&&h.toAbortSignal()],d),D=null;const M=I&&I.unsubscribe&&(()=>{I.unsubscribe()});let F;try{if(P&&"string"===typeof n&&n.startsWith("data:")){const t=function(e){if(!e||"string"!==typeof e)return 0;if(!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let e=r.length;const t=r.length;for(let o=0;o<t;o++)if(37===r.charCodeAt(o)&&o+2<t){const t=r.charCodeAt(o+1),n=r.charCodeAt(o+2);(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)&&(n>=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102)&&(e-=2,o+=2)}let n=0,i=t-1;const a=e=>e>=2&&37===r.charCodeAt(e-2)&&51===r.charCodeAt(e-1)&&(68===r.charCodeAt(e)||100===r.charCodeAt(e));i>=0&&(61===r.charCodeAt(i)?(n++,i--):a(i)&&(n++,i-=3)),1===n&&i>=0&&(61===r.charCodeAt(i)||a(i))&&n++;const s=3*Math.floor(e/4)-(n||0);return s>0?s:0}if("undefined"!==typeof Buffer&&"function"===typeof Buffer.byteLength)return Buffer.byteLength(r,"utf8");let i=0;for(let a=0,s=r.length;a<s;a++){const e=r.charCodeAt(a);if(e<128)i+=1;else if(e<2048)i+=2;else if(e>=55296&&e<=56319&&a+1<s){const e=r.charCodeAt(a+1);e>=56320&&e<=57343?(i+=4,a++):i+=3}else i+=3}return i}(n);if(t>x)throw new Oe("maxContentLength size of "+x+" exceeded",Oe.ERR_BAD_RESPONSE,e,D)}if(A&&"get"!==i&&"head"!==i){const t=await v(_,l);if("number"===typeof t&&isFinite(t)&&t>C)throw new Oe("Request body larger than maxBodyLength limit",Oe.ERR_BAD_REQUEST,e,D)}if(y&&f&&"get"!==i&&"head"!==i&&0!==(F=await v(_,l))){let e,t=new s(n,{method:"POST",body:l,duplex:"half"});if(Se.isFormData(l)&&(e=t.headers.get("content-type"))&&_.setContentType(e),t.body){const e=T(mt(F,ft(gt(y))),2),n=e[0],r=e[1];l=Nt(t.body,65536,n,r)}}Se.isString(S)||(S=S?"include":"omit");const t=c&&"credentials"in s.prototype;if(Se.isFormData(l)){const e=_.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&_.delete("content-type")}_.set("User-Agent","axios/"+Ot,!1);const a=k(k({},E),{},{signal:I,method:i.toUpperCase(),headers:Ae(_.normalize()),body:l,duplex:"half",credentials:t?S:void 0});D=c&&new s(n,a);let u=await(c?R(D,E):R(n,a));if(P){const t=Se.toFiniteNumber(u.headers.get("content-length"));if(null!=t&&t>x)throw new Oe("maxContentLength size of "+x+" exceeded",Oe.ERR_BAD_RESPONSE,e,D)}const h=m&&("stream"===b||"response"===b);if(m&&u.body&&(p||P||h&&M)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=u[e]});const n=Se.toFiniteNumber(u.headers.get("content-length")),r=T(p&&mt(n,ft(gt(p),!0))||[],2),i=r[0],a=r[1];let s=0;const l=t=>{if(P&&(s=t,s>x))throw new Oe("maxContentLength size of "+x+" exceeded",Oe.ERR_BAD_RESPONSE,e,D);i&&i(t)};u=new o(Nt(u.body,65536,l,()=>{a&&a(),M&&M()}),t)}b=b||"text";let d=await g[Se.findKey(g,b)||"text"](u,e);if(P&&!m&&!h){let t;if(null!=d&&("number"===typeof d.byteLength?t=d.byteLength:"number"===typeof d.size?t=d.size:"string"===typeof d&&(t="function"===typeof r?(new r).encode(d).byteLength:d.length)),"number"===typeof t&&t>x)throw new Oe("maxContentLength size of "+x+" exceeded",Oe.ERR_BAD_RESPONSE,e,D)}return!h&&M&&M(),await new Promise((t,n)=>{ht(t,n,{data:d,headers:Fe.from(u.headers),status:u.status,statusText:u.statusText,config:e,request:D})})}catch(Yr){if(M&&M(),I&&I.aborted&&I.reason instanceof Oe){const n=I.reason;throw n.config=e,D&&(n.request=D),Yr!==n&&(n.cause=Yr),n}if(Yr&&"TypeError"===Yr.name&&/Load failed|fetch/i.test(Yr.message))throw Object.assign(new Oe("Network Error",Oe.ERR_NETWORK,e,D,Yr&&Yr.response),{cause:Yr.cause||Yr});throw Oe.from(Yr,Yr&&Yr.code,e,D,Yr&&Yr.response)}}},Ut=new Map,zt=e=>{let t=e&&e.env||{};const n=t.fetch,r=[t.Request,t.Response,n];let i,a,s=r.length,o=Ut;for(;s--;)i=r[s],a=o.get(i),void 0===a&&o.set(i,a=s?new Map:Vt(t)),o=a;return a},Ht=(zt(),{http:null,xhr:kt,fetch:{get:zt}});Se.forEach(Ht,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(n){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const Gt=e=>"- ".concat(e),qt=e=>Se.isFunction(e)||null===e||!1===e;const Kt={getAdapter:function(e,t){const n=(e=Se.isArray(e)?e:[e]).length;let r,i;const a={};for(let s=0;s<n;s++){let n;if(r=e[s],i=r,!qt(r)&&(i=Ht[(n=String(r)).toLowerCase()],void 0===i))throw new Oe("Unknown adapter '".concat(n,"'"));if(i&&(Se.isFunction(i)||(i=i.get(t))))break;a[n||"#"+s]=i}if(!i){const e=Object.entries(a).map(e=>{let t=T(e,2),n=t[0],r=t[1];return"adapter ".concat(n," ")+(!1===r?"is not supported by the environment":"is not available in the build")});let t=n?e.length>1?"since :\n"+e.map(Gt).join("\n"):" "+Gt(e[0]):"as no adapter specified";throw new Oe("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return i},adapters:Ht};function Wt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ut(null,e)}function $t(e){Wt(e),e.headers=Fe.from(e.headers),e.data=lt.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Kt.getAdapter(e.adapter||ot.adapter,e)(e).then(function(t){Wt(e),e.response=t;try{t.data=lt.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=Fe.from(t.headers),t},function(t){if(!ct(t)&&(Wt(e),t&&t.response)){e.response=t.response;try{t.response.data=lt.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=Fe.from(t.response.headers)}return Promise.reject(t)})}const Yt={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Yt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Xt={};Yt.transitional=function(e,t,n){function r(e,t){return"[Axios v"+Ot+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,a)=>{if(!1===e)throw new Oe(r(i," has been removed"+(t?" in "+t:"")),Oe.ERR_DEPRECATED);return t&&!Xt[i]&&(Xt[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,a)}},Yt.spelling=function(e){return(t,n)=>(console.warn("".concat(n," is likely a misspelling of ").concat(e)),!0)};const Jt={assertOptions:function(e,t,n){if("object"!==typeof e)throw new Oe("options must be an object",Oe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],s=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(s){const t=e[a],n=void 0===t||s(t,a,e);if(!0!==n)throw new Oe("option "+a+" must be "+n,Oe.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new Oe("Unknown option "+a,Oe.ERR_BAD_OPTION)}},validators:Yt},Qt=Jt.validators;class Zt{constructor(e){this.defaults=e||{},this.interceptors={request:new Ye,response:new Ye}}async request(e,t){try{return await this._request(e,t)}catch(Yr){if(Yr instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=(()=>{if(!t.stack)return"";const e=t.stack.indexOf("\n");return-1===e?"":t.stack.slice(e+1)})();try{if(Yr.stack){if(r){const t=r.indexOf("\n"),n=-1===t?-1:r.indexOf("\n",t+1),i=-1===n?"":r.slice(n+1);String(Yr.stack).endsWith(i)||(Yr.stack+="\n"+r)}}else Yr.stack=r}catch(n){}}throw Yr}}_request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{};const n=t=wt(this.defaults,t),r=n.transitional,i=n.paramsSerializer,a=n.headers;void 0!==r&&Jt.assertOptions(r,{silentJSONParsing:Qt.transitional(Qt.boolean),forcedJSONParsing:Qt.transitional(Qt.boolean),clarifyTimeoutError:Qt.transitional(Qt.boolean),legacyInterceptorReqResOrdering:Qt.transitional(Qt.boolean)},!1),null!=i&&(Se.isFunction(i)?t.paramsSerializer={serialize:i}:Jt.assertOptions(i,{encode:Qt.function,serialize:Qt.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Jt.assertOptions(t,{baseUrl:Qt.spelling("baseURL"),withXsrfToken:Qt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=a&&Se.merge(a.common,a[t.method]);a&&Se.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete a[e]}),t.headers=Fe.concat(s,a);const o=[];let l=!0;this.interceptors.request.forEach(function(e){if("function"===typeof e.runWhen&&!1===e.runWhen(t))return;l=l&&e.synchronous;const n=t.transitional||Xe;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});const c=[];let u;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let h,d=0;if(!l){const e=[$t.bind(this),void 0];for(e.unshift(...o),e.push(...c),h=e.length,u=Promise.resolve(t);d<h;)u=u.then(e[d++],e[d++]);return u}h=o.length;let p=t;for(;d<h;){const e=o[d++],t=o[d++];try{p=e(p)}catch(f){t.call(this,f);break}}try{u=$t.call(this,p)}catch(f){return Promise.reject(f)}for(d=0,h=c.length;d<h;)u=u.then(c[d++],c[d++]);return u}getUri(e){return $e(bt((e=wt(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}Se.forEach(["delete","get","head","options"],function(e){Zt.prototype[e]=function(t,n){return this.request(wt(n||{},{method:e,url:t,data:(n||{}).data}))}}),Se.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,r,i){return this.request(wt(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Zt.prototype[e]=t(),"query"!==e&&(Zt.prototype[e+"Form"]=t(!0))});const en=Zt;class tn{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new ut(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
2subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new tn(function(t){e=t}),cancel:e}}}const nn=tn;const rn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(rn).forEach(e=>{let t=T(e,2),n=t[0],r=t[1];rn[r]=n});const an=rn;const sn=function e(t){const n=new en(t),r=M(en.prototype.request,n);return Se.extend(r,en.prototype,n,{allOwnKeys:!0}),Se.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(wt(t,n))},r}(ot);sn.Axios=en,sn.CanceledError=ut,sn.CancelToken=nn,sn.isCancel=ct,sn.VERSION=Ot,sn.toFormData=ze,sn.AxiosError=Oe,sn.Cancel=sn.CanceledError,sn.all=function(e){return Promise.all(e)},sn.spread=function(e){return function(t){return e.apply(null,t)}},sn.isAxiosError=function(e){return Se.isObject(e)&&!0===e.isAxiosError},sn.mergeConfig=wt,sn.AxiosHeaders=Fe,sn.formToJSON=e=>it(Se.isHTMLForm(e)?new FormData(e):e),sn.getAdapter=Kt.getAdapter,sn.HttpStatusCode=an,sn.default=sn;const on=sn;let ln=null;const cn=()=>{const e="https://rest.productioncrate.com";if(e)return e.trim().replace(/\/+$/,"");const t=window.location.hostname||"";return"localhost"===t||"127.0.0.1"===t||t.endsWith(".localhost")?"http://crate-core.test":t.includes("user-qa.")||t.includes("staging.")?"https://rest-qa.productioncrate.com":"https://rest.productioncrate.com"},un=on.create({baseURL:cn(),withCredentials:!1}),hn=e=>{ln=e||null,ln?un.defaults.headers.common.Authorization="Bearer ".concat(ln):delete un.defaults.headers.common.Authorization},dn=()=>{hn(null)};un.defaults.headers.common["X-Requested-With"]="XMLHttpRequest",un.defaults.headers.common["Content-Type"]="application/json",un.interceptors.request.use(function(e){var t;const n=ln||h(u.sessionTokenCookieKey);return n?e.headers.Authorization="Bearer ".concat(n):null!==(t=e.headers)&&void 0!==t&&t.Authorization&&delete e.headers.Authorization,e}),window.requestStack||(window.requestStack=[]);const pn=e=>{try{const t=Array.isArray(window.requestStack)?[...window.requestStack]:[];window.requestStack=[],t.forEach(t=>{null!==t&&void 0!==t&&t.promiseReject&&t.promiseReject(e)})}catch(t){console.log("Error while rejecting queued requests",t)}};un.interceptors.response.use(e=>e,async e=>{var t,n;const r=e.config;if(e&&e.response&&e.response.status&&401===(null===(t=e.response)||void 0===t?void 0:t.status)){var i,a,s,o;const t=null===e||void 0===e||null===(i=e.response)||void 0===i?void 0:i.data;if("Seat revoked"===(null===t||void 0===t?void 0:t.error))return(t=>{try{Array.isArray(window.requestStack)&&(window.requestStack.forEach(e
2=>{null!==e&&void 0!==e&&e.promiseReject&&e.promiseReject(t)}),window.requestStack=[])}catch(e){console.log("Error while clearing request stack after seat revocation",e)}if(f(u.sessionTokenCookieKey),f(u.refreshTokenCookieKey),localStorage.removeItem(u.sessionTokenLocalStorageKey),localStorage.removeItem(u.refreshTokenLocalStorageKey),dn(),delete on.defaults.headers.common.Authorization,window.__seatRevokedRedirecting)return;window.__seatRevokedRedirecting=!0,"/login"===window.location.pathname&&"?reason=seat-revoked"===window.location.search||(window.location.href="/login?reason=seat-revoked")})(t),Promise.reject(t);if(null!==r&&void 0!==r&&null!==(a=r.url)&&void 0!==a&&a.includes("login")||null!==r&&void 0!==r&&null!==(s=r.url)&&void 0!==s&&s.includes("register"))return e.response.data?Promise.reject(e.response.data):Promise.reject("no error message from api");if(null!==r&&void 0!==r&&null!==(o=r.url)&&void 0!==o&&o.includes("refresh"))return!1;if(r._retry)return Promise.reject(e.response.data?e.response.data:"no error message from api");r._retry=!0;const n=new Promise((e,t)=>{window.requestStack.push({url:r.url,request:()=>un(r),promiseResolve:e,promiseReject:t})});if(window.refreshToken&&1===window.requestStack.length)window.refreshToken().then(t=>{var n;if(!t)return void pn((null===(n=e.response)||void 0===n?void 0:n.data)||"Unauthorized");hn(t),on.defaults.headers.common.Authorization="Bearer "+t;const r=Array.isArray(window.requestStack)?[...window.requestStack]:[];window.requestStack=[],r.forEach(e=>{e.promiseResolve(e.request())})}).catch(t=>{var n;console.log("couldn't refresh token...",t),pn((null===(n=e.response)||void 0===n?void 0:n.data)||t||"Unauthorized")});else if(1===window.requestStack.length){var l;pn((null===(l=e.response)||void 0===l?void 0:l.data)||"Unauthorized")}return await n}return e&&e.response&&e.response.status&&422===(null===(n=e.response)||void 0===n?void 0:n.status)?e.response.data?Promise.reject(e.response.data):Promise.reject("no error message from api"):Promise.reject(e)});const fn=un,mn={randomUUID:"undefined"!==typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let gn;const vn=new Uint8Array(16);const yn=[];for(let Ic=0;Ic<256;++Ic)yn.push((Ic+256).toString(16).slice(1));function bn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(yn[e[t+0]]+yn[e[t+1]]+yn[e[t+2]]+yn[e[t+3]]+"-"+yn[e[t+4]]+yn[e[t+5]]+"-"+yn[e[t+6]]+yn[e[t+7]]+"-"+yn[e[t+8]]+yn[e[t+9]]+"-"+yn[e[t+10]]+yn[e[t+11]]+yn[e[t+12]]+yn[e[t+13]]+yn[e[t+14]]+yn[e[t+15]]).toLowerCase()}const _n=function(e,t,n){var r,i,a,s;if(mn.randomUUID&&!t&&!e)return mn.randomUUID();const o=null!==(r=null!==(i=(e=e||{}).random)&&void 0!==i?i:null===(a=(s=e).rng)||void 0===a?void 0:a.call(s))&&void 0!==r?r:function(){if(!gn){if("undefined"===typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");gn=crypto.getRandomValues.bind(crypto)}return gn(vn)}();if(o.length<16)throw new Error("Random bytes length must be >= 16");if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError("UUID byte range ".concat(n,":").concat(n+15," is out of buffer bounds"));for(let e=0;e<16;++e)t[n+e]=o[e];return t}return bn(o)},wn=["A","B"],Sn=e=>"string"===typeof e?e.trim().toUpperCase():"",En=function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:wn).includes(e)},kn=e=>{const t=(e=>{const t="default";if("string"!==typeof e)return t;const n=e.trim().toLowerCase();return n?n.replace(/[^a-z0-9_-]/g,"_"):t})(e);return{bucket:"cr_exp_".concat(t,"_bucket"),enrolled:"cr_exp_".concat(t,"_enrolled")}},xn=e=>{let t=e.experimentId,n=e.legacyKeys,r=void 0===n?null:n,i=e.additionalKeys,a=void 0===i?[]:i;const s=kn(t);[s.bucket,s.enrolled,null===r||void 0===r?void 0:r.bucket,null===r||void 0===r?void 0:r.enrolled,...a].filter(Boolean).forEach(e=>v(e,e,null))},Cn=(e,t)=>{v(e,e,t)},Pn=e=>g(e,e),An=e=>{let t=e.experimentId,n=e.bucket,r=e.buckets,i=void 0===r?wn:r,a=e.legacyKeys,s=void 0===a?null:a;const o=Sn(n);if(!En(o,i))return null;const l=kn(t);return Cn(l.bucket,o),Cn(l.enrolled,"1"),null!==s&&void 0!==s&&s.bucket&&Cn(s.bucket,o),null!==s&&void 0!==s&&s.enrolled&&Cn(s.enrolled,"1"),o},Tn=e=>{let t=e.experimentId,n=e.buckets,r=void 0===n?wn:n,i=e.legacyKeys,a=void 0===i?null:i;const s=kn(t),o=[Pn(s.bucket),null!==a&&void 0!==a&&a.bucket?Pn(a.bucket):null];for(const l of o){const e=Sn(l);if(En(e,r))return e}return null},Rn=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.experimentId,n=e.mode,r=void 0===n?"AB":n,i=e.userBucket,a=e.buckets,s=void 0===a?wn:a,o=e.defaultBucket,l=void 0===o?"A":o,c=e.bucketWeights,u=void 0===c?null:c,h=e.legacyKeys,d=void 0===h?null:h;const p=Sn(r);if(En(p,s))return An({experimentId:t,bucket:p,buckets:s,legacyKeys:d});if("AB"===p){const e=Sn(i);if(En(e,s))return An({experimentId:t,bucket:e,buckets:s,legacyKeys:d});const n=Tn({experimentId:t,buckets:s,legacyKeys:d});if(n)return An({experimentId:t,bucket:n,buckets:s,legacyKeys:d});const r=(e=>{var t,n;let r=e.buckets,i=e.defaultBucket,a=e.bucketWeights,s=void 0===a?null:a;const o=Array.isArray(r)?r.map(e=>({bucket:e,weight:Number(null===s||void 0===s?void 0:s[e])})):[];var l;if(!o.some(e=>{let t=e.weight;return Number.isFinite(t)&&t>0}))return null!==(l=r[Math.floor(Math.random()*r.length)])&&void 0!==l?l:i;const c=o.reduce((e,t)=>
2{let n=t.weight;return e+(Number.isFinite(n)&&n>0?n:0)},0);var u;if(c<=0)return null!==(u=r[Math.floor(Math.random()*r.length)])&&void 0!==u?u:i;const h=Math.random()*c;let d=0;for(const p of o){const e=p.bucket,t=p.weight;if(d+=Number.isFinite(t)&&t>0?t:0,h<d)return e}return null!==(t=null===(n=o[o.length-1])||void 0===n?void 0:n.bucket)&&void 0!==t?t:i})({buckets:s,defaultBucket:l,bucketWeights:u});return An({experimentId:t,bucket:r,buckets:s,legacyKeys:d})}return An({experimentId:t,bucket:l,buckets:s,legacyKeys:d})},In="marketplace_v1",Dn="cohort_marketplace_v1",Mn="cohort_marketplace_v1_experiment",Fn=["A","B"],Ln=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"50";const t=Number(e),n="string"===typeof e&&""!==e.trim()&&Number.isFinite(t)&&t>=0&&t<=100?t:10;return{A:100-n,B:n}}(),Nn="cr_debug_marketplace_v1_bucket",On=()=>{const e=window.location.hostname||"";return"localhost"===e||"127.0.0.1"===e||e.endsWith(".localhost")||e.includes("user-qa")||e.includes("staging")},Bn=e=>Fn.includes("string"===typeof e?e.trim().toUpperCase():""),jn=e=>"1"===e||1===e||!0===e||"true"===e,Vn=e=>An({experimentId:In,bucket:e,buckets:Fn}),Un=()=>{if(!On())return null;const e=g(Nn,Nn);return Bn(e)?e.trim().toUpperCase():null},zn=function(){let e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).userSettings;const t=Un();return Rn({experimentId:In,userBucket:t||(null===e||void 0===e?void 0:e[Dn]),buckets:Fn,bucketWeights:Ln})},Hn=e=>{const t="undefined"===typeof document?null:document.getElementById("header-root");t&&(!0!==e?!1!==e?delete t.dataset.marketplaceCartEnabled:t.dataset.marketplaceCartEnabled="0":t.dataset.marketplaceCartEnabled="1")},Gn=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;const qn=function(e){return"string"===typeof e&&Gn.test(e)};const Kn="billing_period_visibility_v2",Wn="cohort_billing_period_visibility_v2",$n="cohort_billing_period_visibility_v2_experiment",Yn="cohort_billing_period_visibility_v2_assignment_id",Xn=["A","B"],Jn={A:90,B:10},Qn="cr_exp_billing_period_visibility_v2_assignment_id",Zn="cr_exp_billing_period_visibility_v2_exposed_at",er="cr_exp_billing_period_visibility_v2_surface",tr=()=>{const e=g(Qn,Qn);return"string"===typeof e&&qn(e)?e:null},nr=e=>qn(e)?(v(Qn,Qn,e),e):null,rr=()=>{const e=kn(Kn),t=Tn({experimentId:Kn,buckets:Xn}),n=tr(),r=g(Zn,Zn),i=g(er,er);return t&&n&&r&&i&&("1"===(a=g(e.enrolled,e.enrolled))||1===a||!0===a||"true"===a)?{id:Kn,version:"2",cohort:t,assignment_id:n,exposed_at:r,surface:i}:null;var a};const ir=e=>{const t="string"===typeof(null===e||void 0===e?void 0:e.checkout_url)&&e.checkout_url.trim()?e.checkout_url.trim():null,n=(e=>{const t=Number(e);return!Number.isInteger(t)||t<0?0:t})(null===e||void 0===e?void 0:e.version);return e&&"object"===typeof e&&e.cart&&"object"===typeof e.cart?{cart:e.cart,version:n,checkout_url:t}:e&&"object"===typeof e&&(Array.isArray(e.items)||Object.prototype.hasOwnProperty.call(e,"subtotal_amount")||Object.prototype.hasOwnProperty.call(e,"currency")||Object.prototype.hasOwnProperty.call(e,"id"))?{cart:e,version:n,checkout_url:t}:{cart:null,version:n,checkout_url:t}},ar=e=>{let t=e.version,n=e.idempotencyKey;return{headers:{"If-Match":"".concat(Number.isInteger(t)&&t>=0?t:0),"Idempotency-Key":String(null!==n&&void 0!==n?n:"")}}},sr=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.version,r=t.idempotencyKey;const i=await fn.post("marketplace/cart/items",e,ar({version:n,idempotencyKey:r}));return ir(null===i||void 0===i?void 0:i.data)},or=async e=>{let t={};try{return t=e?await fn.put("me/settings",e):await fn.get("me"),t.data}catch(n){console.log("Throw error",n.message)}},lr=e=>{var t,n,r,i,a,s,o,l,c,u,h,d,p;const f=null!==(t=null!==(n=null===e||void 0===e?void 0:e.image)&&void 0!==n?n:null===e||void 0===e?void 0:e.image_url)&&void 0!==t?t:null;if(!f)return null;if("string"===typeof f)return{url:f,sizes:{sm:f,md:f,lg:f}};const m=null!==f&&void 0!==f&&f.sizes&&"object"===typeof f.sizes?f.sizes:{},g=null!==(r=null!==(i=null!==(a=null!==(s=null===f||void 0===f?void 0:f.url)&&void 0!==s?s:null===f||void 0===f?void 0:f.sm)&&void 0!==a?a:null===f||void 0===f?void 0:f.md)&&void 0!==i?i:null===f||void 0===f?void 0:f.lg)&&void 0!==r?r:null;return{url:null!==(o=null===f||void 0===f?void 0:f.url)&&void 0!==o?o:g,sizes:{sm:null!==(l=null!==(c=m.sm)&&void 0!==c?c:null===f||void 0===f?void 0:f.sm)&&void 0!==l?l:g,md:null!==(u=null!==(h=m.md)&&void 0!==h?h:null===f||void 0===f?void 0:f.md)&&void 0!==u?u:g,lg:null!==(d=null!==(p=m.lg)&&void 0!==p?p:null===f||void 0===f?void 0:f.lg)&&void 0!==d?d:g}}},cr=e=>{var t,n,r,i,a,s,o,l,c,u,h,d,p;const f=null!==(t=null!==(n=null!==(r=null===e||void 0===e?void 0:e.read_at)&&void 0!==r?r:null===e||void 0===e||null===(i=e.state)||void 0===i?void 0:i.read_at)&&void 0!==n?n:null===e||void 0===e||null===(a=e.user_state)||void 0===a?void 0:a.read_at)&&void 0!==t?t:null,m=null!==(s=null!==(o=null===e||void 0===e?void 0:e.created_at)&&void 0!==o?o:null===e||void 0===e?void 0:e.published_at)&&void 0!==s?s:null,g=null!==(l=null===e||void 0===e?void 0:e.published_at)&&void 0!==l?l:m;return k(k({},e),{},{id:null===e||void 0===e?void 0:e.id,title:null!==(c=null===e||void 0===e?void 0:e.title)&&void 0!==c?c:"",message:null!==(u=null===e||void 0===e?void 0:e.message)&&void 0!==u?u:"",type:null!==(h=null===e||void 0===e?void 0:e.type)&&void 0!==h?h:"announcement",url:null!==(d=null===e||void 0===e?void 0:e.url)&&void 0!==d?d:null,image:lr(e),read_at:f,created_at:m,published_at:g,expires_at:null!==(p=null===e||void 0===e?void 0:e.expires_at)&&void 0!==p?p:null})},ur=e=>{const t=Date.parse((null===e||void 0===e?void 0:e.published_at)||"");if(Number.isFinite(t)&&t>0)return t;const n=Date.parse((null===e||void 0===e?void 0:e.created_at)||"");return Number.isFinite(n)&&n>0?n:0},hr=async function(){let e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).page,t=void 0===e?1:e;return(e=>{var t;const n=(Array.isArray(null===e||void 0===e?void 0:e.data)?e.data:[]).map(cr).sort((e,t)=>
2ur(t)-ur(e));return k(k({},e),{},{data:n,meta:null!==(t=null===e||void 0===e?void 0:e.meta)&&void 0!==t?t:{}})})((await fn.get("inbox/announcements",{params:{page:t}})).data)},dr=()=>"localhost"===window.location.hostname?"development":"user-qa.productioncrate.com"===window.location.hostname?"qa":"production",pr=async(e,t)=>{try{return await e()}catch(n){console.error(t,n)}},fr=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};pr(()=>{"development"!==dr()?window.gtag&&window.gtag("event",e,k({send_to:"G-78KP68EXMW",value:t,currency:"USD"},n)):console.log("event",e,k({send_to:"G-78KP68EXMW",value:t,currency:"USD"},n))},"Error in sendGAEvent")},mr=(e,t)=>{pr(()=>{"development"!==dr()?window.gtag&&window.gtag("event","conversion",{send_to:e,value:t,currency:"USD"}):console.log("event","conversion",{send_to:e,value:t,currency:"USD"})},"Error in sendConversion")},gr=e=>"string"===typeof e?e.trim().toUpperCase():"",vr=e=>"A"===e||"B"===e,yr=e=>"1"===e||1===e||!0===e||"true"===e,br={anonymousId:null,userSettings:null,setUserSettings:e=>{br.userSettings=e&&"object"===typeof e?e:null},init:()=>{let e=g("cr_aid","cr_aid");e||(e=_n(),v("cr_aid","cr_aid",e)),br.anonymousId=e},sendCustomEvent:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return pr(async()=>{br.anonymousId||br.init();const n=br.anonymousId,r=br.userSettings&&"object"===typeof br.userSettings?br.userSettings:null,i=gr(null===r||void 0===r?void 0:r[Dn]),a=gr(g("cr_exp_".concat(In,"_bucket"),"cr_exp_".concat(In,"_bucket"))),s=vr(i)?i:vr(a)?a:null,o=null===r||void 0===r?void 0:r[Mn],l=g("cr_exp_".concat(In,"_enrolled"),"cr_exp_".concat(In,"_enrolled")),c=yr(o)||yr(l)?"1":null,u={};s&&(u.cohort_marketplace_v1=s),c&&(u.cohort_marketplace_v1_experiment=c);const h=rr();h&&(u.billing_period_experiment=h),console.debug("Analytics.sendCustomEvent - Anonymous ID:",n,e,t);try{await fn.post("analytics/event",{event:e,anonymous_id:n,metadata:k(k({path:window.location.pathname,host:window.location.hostname,href:window.location.href,referrer:document.referrer,user_agent:navigator.userAgent,screen_resolution:"".concat(window.screen.width,"x").concat(window.screen.height),viewport_size:"".concat(window.innerWidth,"x").concat(window.innerHeight)},u),t)})}catch(d){console.log("Error in Analytics.sendCustomEvent",d)}},"Error in Analytics.sendCustomEvent: "+e)},view:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return br.sendCustomEvent("view_".concat(e),t)},click:e=>br.sendCustomEvent("click",{target:e}),signup:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;pr(()=>{mr("AW-709072149/9-m3CK6M-a8YEJWqjtIC",e),fr("sign_up",e),(e=>{pr(()=>{"object"===typeof window.growsumo?h("referral")?(window.growsumo.data={name:e.name||"",email:e.email||"",customer_key:"".concat(e.team_id||"")},window.growsumo.createSignup(),f("referral",".productioncrate.com")):console.log("Signup without partnerstack referrer."):console.log("Partner Stack wasn't initialized.")},"Error in partnerStackSignUp")})(t),br.sendCustomEvent("signup",k({paid_amount:e},t))},"Error in Analytics.signup")},addToCart:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";pr(()=>{mr("AW-709072149/wmV6CLLtgbAYEJWqjtIC",e),fr("plan_selection",e),br.sendCustomEvent("addToCart",{paid_amount:e,plan_name:t})},"Error in Analytics.addToCart")},conversion:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];pr(()=>{mr("AW-709072149/FZ5WCNL8768YEJWqjtIC",e),fr("purchase",e,{currency:"USD",signed_on:!0,paying_member:!0,page_title:"New Pro Member"}),((e,t)=>{pr(()=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push(k({event:e},t))},"Error in dataLayerPush")})("purchaseConversion",{conversionValue:e,subscriptionId:t}),br.sendCustomEvent("conversion",{paid_amount:e,subscriptionId:t})},"Error in Analytics.conversion")}};var _r=Uint8Array,wr=Uint16Array,Sr=Int32Array,Er=new _r([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),kr=new _r([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),xr=new _r([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Cr=function(e,t){for(var n=new wr(31),r
vendor: 1,342 bytes, line 2
2=0;r<31;++r)n[r]=t+=1<<e[r-1];var i=new Sr(n[30]);for(r=1;r<30;++r)for(var a=n[r];a<n[r+1];++a)i[a]=a-n[r]<<5|r;return{b:n,r:i}},Pr=Cr(Er,2),Ar=Pr.b,Tr=Pr.r;Ar[28]=258,Tr[258]=28;for(var Rr=Cr(kr,0),Ir=Rr.b,Dr=Rr.r,Mr=new wr(32768),Fr=0;Fr<32768;++Fr){var Lr=(43690&Fr)>>1|(21845&Fr)<<1;Lr=(61680&(Lr=(52428&Lr)>>2|(13107&Lr)<<2))>>4|(3855&Lr)<<4,Mr[Fr]=((65280&Lr)>>8|(255&Lr)<<8)>>1}var Nr=function(e,t,n){for(var r=e.length,i=0,a=new wr(t);i<r;++i)e[i]&&++a[e[i]-1];var s,o=new wr(t);for(i=1;i<t;++i)o[i]=o[i-1]+a[i-1]<<1;if(n){s=new wr(1<<t);var l=15-t;for(i=0;i<r;++i)if(e[i])for(var c=i<<4|e[i],u=t-e[i],h=o[e[i]-1]++<<u,d=h|(1<<u)-1;h<=d;++h)s[Mr[h]>>l]=c}else for(s=new wr(r),i=0;i<r;++i)e[i]&&(s[i]=Mr[o[e[i]-1]++]>>15-e[i]);return s},Or=new _r(288);for(Fr=0;Fr<144;++Fr)Or[Fr]=8;for(Fr=144;Fr<256;++Fr)Or[Fr]=9;for(Fr=256;Fr<280;++Fr)Or[Fr]=7;for(Fr=280;Fr<288;++Fr)Or[Fr]=8;var Br=new _r(32);for(Fr=0;Fr<32;++Fr)Br[Fr]=5;var jr=Nr(Or,9,0),Vr=Nr(Or,9,1),Ur=Nr(Br,5,0),zr=Nr(Br,5,1),Hr=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},Gr=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(7&t)&n},qr=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(7&t)},Kr=function(e){return(e+7)/8|0},Wr=function(e,t,n){return(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length),new _r(e.subarray(t,n))}
vendor: 5,069 bytes, line 2
2,$r=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Yr=function(e,t,n){var r=new Error(t||$r[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,Yr),!n)throw r;return r},Xr=function(e,t,n,r){var i=e.length,a=r?r.length:0;if(!i||t.f&&!t.l)return n||new _r(0);var s=!n,o=s||2!=t.i,l=t.i;s&&(n=new _r(3*i));var c=function(e){var t=n.length;if(e>t){var r=new _r(Math.max(2*t,e));r.set(n),n=r}},u=t.f||0,h=t.p||0,d=t.b||0,p=t.l,f=t.d,m=t.m,g=t.n,v=8*i;do{if(!p){u=Gr(e,h,1);var y=Gr(e,h+1,3);if(h+=3,!y){var b=e[(R=Kr(h)+4)-4]|e[R-3]<<8,_=R+b;if(_>i){l&&Yr(0);break}o&&c(d+b),n.set(e.subarray(R,_),d),t.b=d+=b,t.p=h=8*_,t.f=u;continue}if(1==y)p=Vr,f=zr,m=9,g=5;else if(2==y){var w=Gr(e,h,31)+257,S=Gr(e,h+10,15)+4,E=w+Gr(e,h+5,31)+1;h+=14;for(var k=new _r(E),x=new _r(19),C=0;C<S;++C)x[xr[C]]=Gr(e,h+3*C,7);h+=3*S;var P=Hr(x),A=(1<<P)-1,T=Nr(x,P,1);for(C=0;C<E;){var R,I=T[Gr(e,h,A)];if(h+=15&I,(R=I>>4)<16)k[C++]=R;else{var D=0,M=0;for(16==R?(M=3+Gr(e,h,3),h+=2,D=k[C-1]):17==R?(M=3+Gr(e,h,7),h+=3):18==R&&(M=11+Gr(e,h,127),h+=7);M--;)k[C++]=D}}var F=k.subarray(0,w),L=k.subarray(w);m=Hr(F),g=Hr(L),p=Nr(F,m,1),f=Nr(L,g,1)}else Yr(1);if(h>v){l&&Yr(0);break}}o&&c(d+131072);for(var N=(1<<m)-1,O=(1<<g)-1,B=h;;B=h){var j=(D=p[qr(e,h)&N])>>4;if((h+=15&D)>v){l&&Yr(0);break}if(D||Yr(2),j<256)n[d++]=j;else{if(256==j){B=h,p=null;break}var V=j-254;if(j>264){var U=Er[C=j-257];V=Gr(e,h,(1<<U)-1)+Ar[C],h+=U}var z=f[qr(e,h)&O],H=z>>4;z||Yr(3),h+=15&z;L=Ir[H];if(H>3){U=kr[H];L+=qr(e,h)&(1<<U)-1,h+=U}if(h>v){l&&Yr(0);break}o&&c(d+131072);var G=d+V;if(d<L){var q=a-L,K=Math.min(L,G);for(q+d<0&&Yr(3);d<K;++d)n[d]=r[q+d]}for(;d<G;++d)n[d]=n[d-L]}}t.l=p,t.p=B,t.b=d,t.f=u,p&&(u=1,t.m=m,t.d=f,t.n=g)}while(!u);return d!=n.length&&s?Wr(n,0,d):n.subarray(0,d)},Jr=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8},Qr=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8,e[r+2]|=n>>16},Zr=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,a=n.slice();if(!i)return{t:si,l:0};if(1==i){var s=new _r(n[0].s+1);return s[n[0].s]=1,{t:s,l:1}}n.sort(function(e,t){return e.f-t.f}),n.push({s:-1,f:25001});var o=n[0],l=n[1],c=0,u=1,h=2;for(n[0]={s:-1,f:o.f+l.f,l:o,r:l};u!=i-1;)o=n[n[c].f<n[h].f?c++:h++],l=n[c!=u&&n[c].f<n[h].f?c++:h++],n[u++]={s:-1,f:o.f+l.f,l:o,r:l};var d=a[0].s;for(r=1;r<i;++r)a[r].s>d&&(d=a[r].s);var p=new wr(d+1),f=ei(n[u-1],p,0);if(f>t){r=0;var m=0,g=f-t,v=1<<g;for(a.sort(function(e,t){return p[t.s]-p[e.s]||e.f-t.f});r<i;++r){var y=a[r].s;if(!(p[y]>t))break;m+=v-(1<<f-p[y]),p[y]=t}for(m>>=g;m>0;){var b=a[r].s;p[b]<t?m-=1<<t-p[b]++-1:++r}for(;r>=0&&m;--r){var _=a[r].s;p[_]==t&&(--p[_],++m)}f=t}return{t:new _r(p),l:f}},ei=function(e,t,n){return-1==e.s?Math.max(ei(e.l,t,n+1),ei(e.r,t,n+1)):t[e.s]=n},ti=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new wr(++t),r=0,i=e[0],a=1,s=function(e){n[r++]=e},o=1;o<=t;++o)if(e[o]==i&&o!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)s(32754);a>2&&(s(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(s(i),--a;a>6;a-=6)s(8304);a>2&&(s(a-3<<5|8208),a=0)}for(;a--;)s(i);a=1,i=e[o]}return{c:n.subarray(0,r),n:t}},ni=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},ri=function(e,t,n){var r=n.length,i=Kr(t+2);e[i]=255&r,e[i+1]=r>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var a=0;a<r;++a)e[i+a+4]=n[a];return 8*(i+4+r)},ii=function(e,t,n,r,i,a,s,o,l,c,u){Jr(t,u++,n),++i[256];for(var h=Zr(i,15),d=h.t,p=h.l,f=Zr(a,15),m=f.t,g=f.l,v=ti(d),y=v.c,b=v.n,_=ti(m),w=_.c,S=_.n,E=new wr(19),k=0;k<y.length;++k)++E[31&y[k]];for(k=0;k<w.length;++k)++E[31&w[k]];for(var x=Zr(E,7),C=x.t,P=x.l,A=19;A>4&&!C[xr[A-1]];--A);var T,R,I,D,M=c+5<<3,F=ni(i,Or)+ni(a,Br)+s,L=ni(i,d)+ni(a,m)+s+14+3*A+ni(E,C)+2*E[16]+3*E[17]+7*E[18];if(l>=0&&M<=F&&M<=L)return ri(t,u,e.subarray(l,l+c));if(Jr(t,u,1+(L<F)),u+=2,L<F){T=Nr(d,p,0),R=d,I=Nr(m,g,0),D=m;var N=Nr(C,P,0);Jr(t,u,b-257),Jr(t,u+5,S-1),Jr(t,u+10,A-4),u+=14;for(k=0;k<A;++k)Jr(t,u+3*k,C[xr[k]]);u+=3*A;for(var O=[y,w],B=0;B<2;++B){var j=O[B];for(k=0;k<j.length;++k){var V=31&j[k];Jr(t,u,N[V]),u+=C[V],V>15&&(Jr(t,u,j[k]>>5&127),u+=j[k]>>12)}}}else T=jr,R=Or,I=Ur,D=Br;for(k=0;k<o;++k){var U=r[k];if(U>255){Qr(t,u,T[(V=U>>18&31)+257]),u+=R[V+257],V>7&&(Jr(t,u,U>>23&31),u+=Er[V]);var z=31&U;Qr(t,u,I[z]),u+=D[z],z>3&&(Qr(t,u,U>>5&8191),u+=kr[z])}else Qr(t,u,T[U]),u+=R[U]}return Qr(t,u,T[256]),u+R[256]},ai=new Sr([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),si=new _r(0),oi=function(e,t,n,r,i,a){var s=a.z||e.length,o=new _r(r+s+5*(1+Math.ceil(s/7e3))+i),l=o.subarray(r,o.length-i),c=a.l,u=7&(a.r||0);if(t){u&&(l[0]=a.r>>3);for(var h=ai[t-1],d=h>>13,p=8191&h,f=(1<<n)-1,m=a.p||new wr(32768),g=a.h||new wr(f+1),v=Math.ceil(n/3),y=2*v,b=function(t){return(e[t]^e[t+1]<<v^e[t+2]<<y)&f},_=new Sr(25e3),w=new wr(288),S=new wr(32),E=0,k=0,x=a.i||0,C=0,P=a.w||0,A=0;x+2<s;
2++x){var T=b(x),R=32767&x,I=g[T];if(m[R]=I,g[T]=R,P<=x){var D=s-x;if((E>7e3||C>24576)&&(D>423||!c)){u=ii(e,l,0,_,w,S,k,C,A,x-A,u),C=E=k=0,A=x;for(var M=0;M<286;++M)w[M]=0;for(M=0;M<30;++M)S[M]=0}var F=2,L=0,N=p,O=R-I&32767;if(D>2&&T==b(x-O))for(var B=Math.min(d,D)-1,j=Math.min(32767,x),V=Math.min(258,D);O<=j&&--N&&R!=I;){if(e[x+F]==e[x+F-O]){for(var U=0;U<V&&e[x+U]==e[x+U-O];++U);if(U>F){if(F=U,L=O,U>B)break;var z=Math.min(O,U-2),H=0;for(M=0;M<z;++M){var G=x-O+M&32767,q=G-m[G]&32767;q>H&&(H=q,I=G)}}}O+=(R=I)-(I=m[R])&32767}if(L){_[C++]=268435456|Tr[F]<<18|Dr[L];var K=31&Tr[F],W=31&Dr[L];k+=Er[K]+kr[W],++w[257+K],++S[W],P=x+F,++E}else _[C++]=e[x],++w[e[x]]}}for(x=Math.max(x,P);x<s;++x)_[C++]=e[x],++w[e[x]];u=ii(e,l,c,_,w,S,k,C,A,x-A,u),c||(a.r=7&u|l[u/8|0]<<3,u-=7,a.h=g,a.p=m,a.i=x,a.w=P)}else{for(x=a.w||0;x<s+c;x+=65535){var $=x+65535;$>=s&&(l[u/8|0]=c,$=s),u=ri(l,u+1,e.subarray(x,$))}a.i=s}return Wr(o,0,r+Kr(u)+i)},li=function(e,t,n,r,i){if(!i&&(i={l:1},t.dictionary)){var a=t.dictionary.subarray(-32768),s=new _r(a.length+e.length);s.set(a),s.set(e,a.length),e=s,i.w=a.length}return oi(e,null==t.level?6:t.level,null==t.mem?i.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):20:12+t.mem,n,r,i)};function ci(e,t){return li(e,t||{},0,0)}function ui(e,t){return Xr(e,{i:2},t&&t.out,t&&t.dictionary)}var hi="undefined"!=typeof TextEncoder&&new TextEncoder,di="undefined"!=typeof TextDecoder&&new TextDecoder;try{di.decode(si,{stream:!0})}catch(Rc){}var pi=function(e){for(var t="",n=0;;){var r=e[n++],i=(r>127)+(r>223)+(r>239);if(n+i>e.length)return{s:t,r:Wr(e,n-1)};i?3==i?(r=((15&r)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536,t+=String.fromCharCode(55296|r>>10,56320|1023&r)):t+=1&i?String.fromCharCode((31&r)<<6|63&e[n++]):String.fromCharCode((15&r)<<12|(63&e[n++])<<6|63&e[n++]):t+=String.fromCharCode(r)}};function fi(e,t){if(t){for(var n=new _r(e.length),r=0;r<e.length;++r)n[r]=e.charCodeAt(r);return n}if(hi)return hi.encode(e);var i=e.length,a=new _r(e.length+(e.length>>1)),s=0,o=function(e){a[s++]=e};for(r=0;r<i;++r){if(s+5>a.length){var l=new _r(s+8+(i-r<<1));l.set(a),a=l}var c=e.charCodeAt(r);c<128||t?o(c):c<2048?(o(192|c>>6),o(128|63&c)):c>55295&&c<57344?(o(240|(c=65536+(1047552&c)|1023&e.charCodeAt(++r))>>18),o(128|c>>12&63),o(128|c>>6&63),o(128|63&c)):(o(224|c>>12),o(128|c>>6&63),o(128|63&c))}return Wr(a,0,s)}function mi(e,t){if(t){for(var n="",r=0;r<e.length;r+=16384)n+=String.fromCharCode.apply(null,e.subarray(r,r+16384));return n}if(di)return di.decode(e);var i=pi(e),a=i.s;return(n=i.r).length&&Yr(8),a}var gi;"function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout&&setTimeout;const vi="crate_marketplace_cart_v1",yi=String(null!==(gi=u.marketplaceCartCookieKey)&&void 0!==gi?gi:"").trim()||vi,bi=yi===vi?[]:[vi],_i="v2.",wi={CLEAN:"clean",DIRTY:"dirty",SYNCING:"syncing",ERROR:"error"},Si="marketplace_cart_return",Ei=e=>(e=>{let t="";for(let n=0;n<e.length;n+=32768){const r=e.subarray(n,n+32768);t+=String.fromCharCode(...r)}return btoa(t)})(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/g,""),ki=e=>{const t=String(null!==e&&void 0!==e?e:"").replace(/-/g,"+").replace(/_/g,"/"),n=(4-t.length%4)%4;return(e=>{const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r+=1)n[r]=t.charCodeAt(r);return n})("".concat(t).concat("=".repeat(n)))},xi={asset:"Asset",bundle:"Bundle"},Ci={"video-effects":"VFX","motion-graphics":"VFX","stock-image-hd":"GRA",graphics:"GRA",textures:"GRA","sounds-effects":"SFX","royalty-free-music":"SFX",objects:"3D",materials:"3D",environments:"3D"},Pi=e=>{const t=String(null!==e&&void 0!==e?e:"").trim().toLowerCase();return t?"vfx"===t||t.startsWith("vfx/")||"footagecrate"===t||"vfx.productioncrate.com"===t||"footagecrate.com"===t||t.endsWith(".footagecrate.com")||t.includes("visual effect")||t.includes("visual-effect")?"VFX":"sfx"===t||"sounds"===t||"audio"===t||"music"===t||"soundscrate"===t||"sfx.productioncrate.com"===t||"soundscrate.com"===t||t.endsWith(".soundscrate.com")||t.includes("sound effect")||t.includes("sound-effect")?"SFX":"3d"===t||"rendercrate"===t||"3d.productioncrate.com"===t||"rendercrate.com"===t||t.endsWith(".rendercrate.com")||t.includes("render")||t.includes("3d model")?"3D":"gra"===t||"graphics"===t||"graphicscrate"===t||"graphics.productioncrate.com"===t||"graphicscrate.com"===t||t.endsWith(".graphicscrate.com")||t.includes("graphic")?"GRA":null:null},Ai=e=>{const t=String(null!==e&&void 0!==e?e:"").trim();if(!t)return null;try{var n,r,i;const e=new URL(t);return Pi(e.searchParams.get("main_category"))||Ci[null===(n=String(null!==(i=e.pathname)&&void 0!==i?i:"").split("/").filter(
2Boolean)[0])||void 0===n||null===(r=n.toLowerCase)||void 0===r?void 0:r.call(n)]||Pi(e.hostname)}catch(a){return Pi(t)}},Ti=(e,t)=>{const n=t(e);if(!n||n.startsWith("/"))return null;try{return new URL(n).origin}catch(r){return null}},Ri=e=>Ti(e,Vi),Ii=e=>Ti(e,Ui),Di=(e,t,n)=>{const r=n(e);if(r){if(!t||r.startsWith("/"))return r;try{const e=new URL(r);if(e.origin!==t)return r;return"".concat(e.pathname).concat(e.search).concat(e.hash)||"/"}catch(i){return r}}},Mi=(e,t)=>Di(e,t,Vi),Fi=(e,t)=>Di(e,t,Ui),Li=(e,t,n)=>{const r=String(null!==e&&void 0!==e?e:"").trim();return r?t&&r.startsWith("/")?n("".concat(t).concat(r)):n(r):null},Ni=(e,t)=>Li(e,t,Ui),Oi=e=>Number.isInteger(e)&&e>0,Bi=e=>{if("number"===typeof e&&Number.isFinite(e))return Math.trunc(e);if("string"===typeof e&&e.trim()){const t=Number.parseInt(e,10);if(Number.isFinite(t))return t}return null},ji=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(new Date).toISOString();if("string"!==typeof e||!e.trim())return t;const n=new Date(e);return Number.isNaN(n.getTime())?t:n.toISOString()},Vi=e=>{const t=String(null!==e&&void 0!==e?e:"").trim();if(!t)return null;try{const e=new URL(t);if(["http:","https:"].includes(e.protocol))return e.toString()}catch(n){return null}return null},Ui=e=>{const t=String(null!==e&&void 0!==e?e:"").trim();if(!t)return null;if(t.startsWith("/"))return t;try{const e=new URL(t);if(["http:","https:"].includes(e.protocol))return e.toString()}catch(n){return null}return null},zi=e=>{var t,n;return e&&"object"===typeof e?Ui(null!==(t=null!==(n=e.url)&&void 0!==n?n:e.preview_url)&&void 0!==t?t:"".concat(e.host||"").concat(e.path||"")):null},Hi=e=>{var t,n,r,i,a,s,o;return Ui(null!==(t=null!==(n=null!==(r=null!==(i=null!==(a=null!==(s=null!==(o=null===e||void 0===e?void 0:e.previewUrl)&&void 0!==o?o:null===e||void 0===e?void 0:e.preview_url)&&void 0!==s?s:null===e||void 0===e?void 0:e.thumbnailUrl)&&void 0!==a?a:null===e||void 0===e?void 0:e.thumbnail_url)&&void 0!==i?i:null===e||void 0===e?void 0:e.imageUrl)&&void 0!==r?r:null===e||void 0===e?void 0:e.image_url)&&void 0!==n?n:null===e||void 0===e?void 0:e.posterUrl)&&void 0!==t?t:null===e||void 0===e?void 0:e.poster_url)||(e=>{const t=(Array.isArray(e)?e:[]).filter(e=>{var t;return"image"===String(null!==(t=null===e||void 0===e?void 0:e.type)&&void 0!==t?t:"").toLowerCase()}),n=["lg","front","sprite","2x","sm","xs","waveform"];for(const r of n){const e=t.find(e=>{var t;return String(null!==(t=null===e||void 0===e?void 0:e.variant)&&void 0!==t?t:"").toLowerCase()===r}),n=zi(e);if(n)return n}return zi(t[0])})(null===e||void 0===e?void 0:e.previews)},Gi=e=>{var t,n,r;return Ui(null!==(t=null!==(n=null!==(r=null===e||void 0===e?void 0:e.waveformUrl)&&void 0!==r?r:null===e||void 0===e?void 0:e.waveform_url)&&void 0!==n?n:null===e||void 0===e?void 0:e.waveformJsonUrl)&&void 0!==t?t:null===e||void 0===e?void 0:e.waveform_json_url)||(e=>{const t=(Array.isArray(e)?e:[]).find(e=>{var t,n;return"json"===String(null!==(t=null===e||void 0===e?void 0:e.type)&&void 0!==t?t:"").toLowerCase()&&"waveform"===String(null!==(n=null===e||void 0===e?void 0:e.variant)&&void 0!==n?n:"").toLowerCase()});return zi(t)})(null===e||void 0===e?void 0:e.previews)},qi=e=>String(null!==e&&void 0!==e?e:"").trim().toUpperCase()||null,Ki=(e,t)=>{const n=Number(e),r=qi(t);if(!Number.isFinite(n)||!r)return null;try{return new Intl.NumberFormat("en-US",{style:"currency",currency:r,minimumFractionDigits:2,maximumFractionDigits:2}).format(n)}catch(i){return"".concat(r," ").concat(n.toFixed(2))}},Wi=e=>{if("asset"===(null===e||void 0===e?void 0:e.type)&&"string"===typeof(null===e||void 0===e?void 0:e.assetUuid)&&e.assetUuid.trim())return"asset:".concat(e.assetUuid.trim());if("bundle"===(null===e||void 0===e?void 0:e.type)){const t=Bi(null===e||void 0===e?void 0:e.bundleId);if(Oi(t))return"bundle:".concat(t)}return null},$i=e=>{const t=Wi(e);return t?"asset"===(null===e||void 0===e?void 0:e.type)?"".concat(t,":").concat(Bi(null===e||void 0===e?void 0:e.assetPriceId)||""):t:null},Yi=function(e,t){var n,r;let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e||"object"!==typeof e)return null;const a=String(null!==(n=e.name)&&void 0!==n?n:"").trim(),s=Number(e.amount),o=qi(e.currency),l=xi[t]||xi.asset,c=Ki(s,o),u=String(null!==(r=e.priceLabel)&&void 0!==r?r:"").trim()||c,h=function(e){var t,n,r,i,a,s,o,l;
2let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Pi(null!==(t=null!==(n=null!==(r=null!==(i=null===e||void 0===e?void 0:e.vertical)&&void 0!==i?i:null===e||void 0===e?void 0:e.vertical_tag)&&void 0!==r?r:null===e||void 0===e?void 0:e.verticalTag)&&void 0!==n?n:null===e||void 0===e?void 0:e.main_category)&&void 0!==t?t:null===e||void 0===e?void 0:e.mainCategory)||Ai(null===c||void 0===c?void 0:c.originUrl)||Ai(null===c||void 0===c?void 0:c.assetHref)||Pi(null===c||void 0===c?void 0:c.originDomain)||Pi(null!==(a=null!==(s=null!==(o=null!==(l=null===e||void 0===e?void 0:e.category)&&void 0!==l?l:null===e||void 0===e?void 0:e.category_name)&&void 0!==o?o:null===e||void 0===e?void 0:e.categoryName)&&void 0!==s?s:null===e||void 0===e?void 0:e.collection)&&void 0!==a?a:null===e||void 0===e?void 0:e.library)}(e,i),d=Hi(e),p=Gi(e);return{name:a||"Untitled item",amount:Number.isFinite(s)?s:null,currency:o,priceLabel:u||null,typeLabel:l,vertical:h,previewUrl:d,waveformUrl:p}},Xi=function(e,t){var n,r,i,a,s,o;let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e||"object"!==typeof e)return null;const c=Number(null!==(n=e.amount)&&void 0!==n?n:e.a),u=null!==(r=e.name)&&void 0!==r?r:e.n,h=null!==(i=e.vertical)&&void 0!==i?i:e.v,d=null!==(a=e.currency)&&void 0!==a?a:e.c,p=null!==(s=e.previewUrl)&&void 0!==s?s:e.i,f=null!==(o=e.waveformUrl)&&void 0!==o?o:e.f;return Yi({name:u,amount:c,currency:Number.isFinite(c)?d||"USD":d,vertical:h,previewUrl:p,waveformUrl:f},t,l)},Ji=e=>{const t=Bi((e=>{var t,n,r,i,a,s,o,l;return null!==(t=null!==(n=null!==(r=null!==(i=e.assetPriceId)&&void 0!==i?i:e.asset_price_id)&&void 0!==r?r:null===(a=e.defaultPrice)||void 0===a?void 0:a.source_id)&&void 0!==n?n:null===(s=e.default_price)||void 0===s?void 0:s.source_id)&&void 0!==t?t:null===(o=e.marketplace)||void 0===o||null===(l=o.default_price)||void 0===l?void 0:l.source_id})(e));return Oi(t)&&("asset_price"===(e=>{var t,n,r,i,a,s,o,l,c,u,h,d,p;return String(null!==(t=null!==(n=null!==(r=null!==(i=null!==(a=null!==(s=null!==(o=null!==(l=null!==(c=e.assetPriceSourceType)&&void 0!==c?c:e.asset_price_source_type)&&void 0!==l?l:e.priceSourceType)&&void 0!==o?o:e.price_source_type)&&void 0!==s?s:e.sourceType)&&void 0!==a?a:e.source_type)&&void 0!==i?i:null===(u=e.defaultPrice)||void 0===u?void 0:u.source_type)&&void 0!==r?r:null===(h=e.default_price)||void 0===h?void 0:h.source_type)&&void 0!==n?n:null===(d=e.marketplace)||void 0===d||null===(p=d.default_price)||void 0===p?void 0:p.source_type)&&void 0!==t?t:"").trim().toLowerCase()})(e)||(e=>Boolean(e.assetPriceExplicit||e.asset_price_explicit||e.explicitAssetPrice||e.explicit_asset_price||e.selectedAssetPrice||e.selected_asset_price))(e))?t:null},Qi=function(e){var t,n;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||"object"!==typeof e)return null;const i=r.sharedOrigin,a=void 0===i?null:i,s=r.sharedPreviewOrigin,o=void 0===s?null:s,l=String(null!==(t=null!==(n=e.type)&&void 0!==n?n:e.t)&&void 0!==t?t:"").trim().toLowerCase(),c="a"===l?"asset":"b"===l?"bundle":l,u=ji(e.addedAt);if("asset"===c){var h,d,p,f,m,g,v,y,b,_,w,S;const t=String(null!==(h=null!==(d=e.assetUuid)&&void 0!==d?d:e.u)&&void 0!==h?h:"").trim();if(!t)return null;const n=Bi(null!==(p=e.assetPriceId)&&void 0!==p?p:e.p),r=((e,t)=>Li(e,t,Vi))(null!==(f=e.assetHref)&&void 0!==f?f:e.h,a),i=e.display&&"object"===typeof e.display?Xi(k(k({},e.display),{},{previewUrl:Ni(null!==(m=null===(g=e.display)||void 0===g?void 0:g.previewUrl)&&void 0!==m?m:null===(v=e.display)||void 0===v?void 0:v.i,o),waveformUrl:Ni(null!==(y=null===(b=e.display)||void 0===b?void 0:b.waveformUrl)&&void 0!==y?y:null===(_=e.display)||void 0===_?void 0:_.f,o)}),"asset",{assetHref:r}):null,s=Xi(k(k({},e),{},{previewUrl:Ni(null!==(w=e.previewUrl)&&void 0!==w?w:e.i,o),waveformUrl:Ni(null!==(S=e.waveformUrl)&&void 0!==S?S:e.f,o)}),"asset",{assetHref:r});return{type:"asset",assetUuid:t,assetPriceId:Oi(n)?n:null,assetHref:r,bundleId:null,addedAt:u,display:i||s}}if("bundle"===c){var E,x,C,P,A,T,R,I,D;const t=Bi(null!==(E=e.bundleId)&&void 0!==E?E:e.b);if(!Oi(t))return null;const n=e.display&&"object"===typeof e.display?Xi(k(k({},e.display),{},{previewUrl:Ni(null!==(x=null===(C=e.display)||void 0===C?void 0:C.previewUrl)&&void 0!==x?x:null===(P=e.display)||void 0===P?void 0:P.i,o),waveformUrl:Ni(null!==(A=null===(T=e.display)||void 0===T?void 0:T.waveformUrl)&&void 0!==A?A:null===(R=e.display)||void 0===R?void 0:R.f,o)}),"bundle"):null,r=Xi(k(k({},e),{},{previewUrl:Ni(null!==(I=e.previewUrl)&&void 0!==I?I:e.i,o),waveformUrl:Ni(null!==(D=e.waveformUrl)&&void 0!==D?D:e.f,o)}),"bundle");return{type:"bundle",bundleId:t,assetUuid:null,assetPriceId:null,addedAt:u,display:n||r}}return null},Zi=e=>{var t,n;return e&&"object"===typeof e?{explicitPurchase:Boolean(e.explicitPurchase),originUrl:String(null!==(t=e.originUrl)&&void 0!==t?t:"").trim(),originDomain:String(null!==(n=e.originDomain)&&void 0!==n?n:"").trim()}:{explicitPurchase:!1,originUrl:"",originDomain:""}},ea=e=>{const t=Bi(e);return!Number.isInteger(t)||t<0?0:t},ta=e=>String(null!==e&&void 0!==e?e:"").trim()||null,na=e=>{const t=String(null!==e&&void 0!==e?e:"").trim();return!t||t.startsWith("http://")||t.startsWith("https://")?null:t},ra=e=>{if("string"!==typeof e||!e.trim())return null;try{var t,n,r,i,a,s,o,l,c,u,h;const d=e.startsWith(_i)?(e=>{const t=e.slice(3),n=ui(ki(t));return JSON.parse(mi(n))})(e):(e=>JSON.parse(decodeURIComponent(e)))(e);if(!d||"object"!==typeof d)return null;const p=null!==(t=d.lines)&&void 0!==t?t:d.l,f=Ri(null!==(n=null!==(r=d.origin)&&void 0!==r?r:d.m)&&void 0!==n?n:d.o),m=Ii(null!==(i=d.previewOrigin)&&void 0!==i?i:d.q),g=Array.isArray(p)?p.map(e=>Qi(e,{sharedOrigin:f,sharedPreviewOrigin:m}
2)).filter(Boolean):[],v=null!==(a=d.syncState)&&void 0!==a?a:d.s,y="d"===v?wi.DIRTY:"e"===v?wi.ERROR:Object.values(wi).includes(v)?v:wi.CLEAN;return{version:null!==(s=d.version)&&void 0!==s?s:d.v,clientCartId:String(null!==(o=null!==(l=d.clientCartId)&&void 0!==l?l:d.c)&&void 0!==o?o:"").trim(),updatedAt:d.updatedAt?ji(d.updatedAt):null,revision:ea(null!==(c=d.revision)&&void 0!==c?c:d.r),writerId:ta(null!==(u=d.writerId)&&void 0!==u?u:d.w),ownerUserId:na(null!==(h=d.ownerUserId)&&void 0!==h?h:d.o),syncState:y,lines:g}}catch(d){return null}},ia=e=>{const t=Array.isArray(e)?e:[];if(!t.length)return{amount:null,currency:null,formatted:null};let n=null,r=0;for(const s of t){var i,a;const e=Number(null===s||void 0===s||null===(i=s.display)||void 0===i?void 0:i.amount),t=qi(null===s||void 0===s||null===(a=s.display)||void 0===a?void 0:a.currency);if(!Number.isFinite(e)||!t)return{amount:null,currency:null,formatted:null};if(n||(n=t),n!==t)return{amount:null,currency:null,formatted:null};r+=e}return{amount:r,currency:n,formatted:Ki(r,n)}},aa=()=>({apiVersion:1,isReady:!1,isOpen:!1,clientCartId:"",revision:0,updatedAt:null,syncState:wi.CLEAN,isSessionResolved:!1,isReconciling:!1,itemCount:0,lines:[],subtotal:{amount:null,currency:null,formatted:null},mergeRequired:!1,mergeComparison:null,lastError:null}),sa=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/marketplace/cart",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;const n=e.startsWith("/")?e:"/".concat(e);return"".concat(function(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;const r=String(null!==(e=null===n||void 0===n||null===(t=n.location)||void 0===t?void 0:t.hostname)&&void 0!==e?e:"").trim().toLowerCase();return"localhost"===r||"127.0.0.1"===r||r.endsWith(".localhost")?"http://localhost:3000":r.includes("user-qa")||r.includes("staging")?"https://user-qa.productioncrate.com":"https://user.productioncrate.com"}(t)).concat(n)},oa="crate:marketplace-cart-sync",la="crate:cart:ready",ca="crate:cart:changed",ua="crate:cart:sync-state",ha="crate:cart:merge-required",da="crate:cart:opened",pa="crate:cart:closed",fa="addToCart",ma="removeFromCart",ga="checkout",va=e=>{var t,n;return k(k(k(k({item_type:null===e||void 0===e?void 0:e.type},null!==e&&void 0!==e&&e.assetUuid?{asset_uuid:e.assetUuid}:{}),null!==e&&void 0!==e&&e.bundleId?{bundle_id:e.bundleId}:{}),null!=(null===e||void 0===e||null===(t=e.display)||void 0===t?void 0:t.amount)?{amount:e.display.amount}:{}),null!==e&&void 0!==e&&null!==(n=e.display)&&void 0!==n&&n.currency?{currency:e.display.currency}:{})},ya=e=>{const t=Number.parseInt(String(null!==e&&void 0!==e?e:""),10);return!Number.isInteger(t)||t<=0?null:t},ba=e=>{const t=Number.parseInt(String(null!==e&&void 0!==e?e:""),10);return!Number.isInteger(t)||t<0?0:t},_a=e=>{const t=new Map;
2return(Array.isArray(e)?e:[]).forEach(e=>{const n=Wi(e);n&&t.set(n,e)}),t},wa=e=>e&&"object"===typeof e?k({},e):null,Sa=(e,t)=>{const n=wa(e),r=wa(t);return n||r?k(k(k({},r),n),{},{previewUrl:(null===n||void 0===n?void 0:n.previewUrl)||(null===r||void 0===r?void 0:r.previewUrl)||null,waveformUrl:(null===n||void 0===n?void 0:n.waveformUrl)||(null===r||void 0===r?void 0:r.waveformUrl)||null}):null},Ea=e=>Array.isArray(e)?e.map(e=>(e=>e&&"object"===typeof e?k(k({},e),{},{display:wa(e.display)}):null)(e)).filter(Boolean):[],ka=(e,t,n,r)=>{const i=Number.isInteger(e)?e:0,a=Number.isInteger(n)?n:0;return i!==a?i-a:String(null!==t&&void 0!==t?t:"").localeCompare(String(null!==r&&void 0!==r?r:""))},xa=function(e){const t=_a(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]),n=Array.isArray(null===e||void 0===e?void 0:e.items)?e.items.map(e=>((e,t)=>{var n,r,i,a,s,o,l,c,u,h,d,p,f,m,g,v,y,b,_,w,S,E,k,x,C,P,A,T,R,I,D,M,F,L,N,O,B,j,V,U,z,H,G,q,K,W,$,Y,X,J,Q,Z,ee,te,ne,re,ie,ae,se,oe,le,ce,ue,he,de,pe,fe,me,ge,ve,ye,be,_e,we;if(!e||"object"!==typeof e)return null;const Se="bundle"===e.line_type?"bundle":"asset",Ee=t.get("bundle"===Se?"bundle:".concat(null===e||void 0===e||null===(n=e.bundle)||void 0===n?void 0:n.id):"asset:".concat(null===e||void 0===e||null===(r=e.asset)||void 0===r?void 0:r.uuid)),ke=e.selected_price||{},xe=Number(ke.amount),Ce=qi(ke.currency),Pe=(null===Ee||void 0===Ee?void 0:Ee.assetHref)||null,Ae=Yi({name:String((null===e||void 0===e||null===(i=e.asset)||void 0===i?void 0:i.name)||(null===e||void 0===e||null===(a=e.bundle)||void 0===a?void 0:a.name)||(null===Ee||void 0===Ee||null===(s=Ee.display)||void 0===s?void 0:s.name)||"Untitled item"),amount:Number.isFinite(xe)?xe:null,currency:Ce,priceLabel:Ki(xe,Ce),vertical:null!==(o=null!==(l=null!==(c=null!==(u=null!==(h=null!==(d=null===e||void 0===e||null===(p=e.asset)||void 0===p?void 0:p.vertical)&&void 0!==d?d:null===e||void 0===e||null===(f=e.asset)||void 0===f?void 0:f.main_category)&&void 0!==h?h:null===e||void 0===e||null===(m=e.asset)||void 0===m?void 0:m.mainCategory)&&void 0!==u?u:null===e||void 0===e||null===(g=e.bundle)||void 0===g?void 0:g.vertical)&&void 0!==c?c:null===e||void 0===e||null===(v=e.bundle)||void 0===v?void 0:v.main_category)&&void 0!==l?l:null===e||void 0===e||null===(y=e.bundle)||void 0===y?void 0:y.mainCategory)&&void 0!==o?o:null===Ee||void 0===Ee||null===(b=Ee.display)||void 0===b?void 0:b.vertical,previewUrl:null!==(_=null!==(w=null!==(S=null!==(E=null!==(k=null!==(x=null!==(C=null!==(P=null!==(A=null!==(T=null!==(R=null!==(I=null!==(D=null!==(M=null!==(F=null!==(L=null!==(N=null!==(O=null===e||void 0===e?void 0:e.preview_url)&&void 0!==O?O:null===e||void 0===e?void 0:e.previewUrl)&&void 0!==N?N:null===e||void 0===e||null===(B=e.display)||void 0===B?void 0:B.preview_url)&&void 0!==L?L:null===e||void 0===e||null===(j=e.display)||void 0===j?void 0:j.previewUrl)&&void 0!==F?F:null===e||void 0===e||null===(V=e.asset)||void 0===V?void 0:V.preview_url)&&void 0!==M?M:null===e||void 0===e||null===(U=e.asset)||void 0===U?void 0:U.previewUrl)&&void 0!==D?D:null===e||void 0===e||null===(z=e.asset)||void 0===z?void 0:z.thumbnail_url)&&void 0!==I?I:null===e||void 0===e||null===(H=e.asset)||void 0===H?void 0:H.thumbnailUrl)&&void 0!==R?R:null===e||void 0===e||null===(G=e.asset)||void 0===G?void 0:G.image_url)&&void 0!==T?T:null===e||void 0===e||null===(q=e.asset)||void 0===q?void 0:q.imageUrl)&&void 0!==A?A:null===e||void 0===e||null===(K=e.asset)||void 0===K?void 0:K.poster_url)&&void 0!==P?P:null===e||void 0===e||null===(W=e.asset)||void 0===W?void 0:W.posterUrl)&&void 0!==C?C:null===e||void 0===e||null===($=e.bundle)||void 0===$?void 0:$.preview_url)&&void 0!==x?x:null===e||void 0===e||null===(Y=e.bundle)||void 0===Y?void 0:Y.previewUrl)&&void 0!==k?k:null===e||void 0===e||null===(X=e.bundle)||void 0===X?void 0:X.thumbnail_url)&&void 0!==E?E:null===e||void 0===e||null===(J=e.bundle)||void 0===J?void 0:J.thumbnailUrl)&&void 0!==S?S:null===e||void 0===e||null===(Q=e.bundle)||void 0===Q?void 0:Q.image_url)&&void 0!==w?w:null===e||void 0===e||null===(Z=e.bundle)||void 0===Z?void 0:Z.imageUrl)&&void 0!==_?_:null===Ee||void 0===Ee||null===(ee=Ee.display)||void 0===ee?void 0:ee.previewUrl,waveformUrl:null!==(te=null!==(ne=null!==(re=null!==(ie=null!==(ae=null!==(se=null!==(oe=null!==(le=null===e||void 0===e?void 0:e.waveform_url)&&void 0!==le?le:null===e||void 0===e?void 0:e.waveformUrl)&&void 0!==oe?oe:null===e||void 0===e||null===(ce=e.display)||void 0===ce?void 0:ce.waveform_url)&&void 0!==se?se:null===e||void 0===e||null===(ue=e.display)||void 0===ue?void 0:ue.waveformUrl)&&void 0!==ae?ae:null===e||void 0===e||null===(he=e.asset)||void 0===he?void 0:he.waveform_url)&&void 0!==ie?ie:null===e||void 0===e||null===(de=e.asset)||void 0===de?void 0:de.waveformUrl)&&void 0!==re?re:null===e||void 0===e||null===(pe=e.bundle)||void 0===pe?void 0:pe.waveform_url)&&void 0!==ne?ne:null===e||void 0===e||null===(fe=e.bundle)||void 0===fe?void 0:fe.waveformUrl)&&void 0!==te?te:null===Ee||void 0===Ee||null===(me=Ee.display)||void 0===me?void 0:me.waveformUrl,previews:null!==(ge=null!==(ve=null===e||void 0===e||null===(ye=e.display)||void 0===ye?void 0:ye.previews)&&void 0!==ve?ve:null===e||void 0===e||null===(be=e.asset)||void 0===be?void 0:be.previews)&&void 0!==ge?ge:null===e||void 0===e||null===(_e=e.bundle)||void 0===_e?void 0:_e.previews},Se,{assetHref:Pe});if("asset"===Se){var Te,Re,Ie;const t=String(null!==(Te=null===e||void 0===e||null===(Re=e.asset)||void 0===Re?void 0:Re.uuid)&&void 0!==Te?Te:"").trim();return t?{type:Se,assetUuid:t,bundleId:null,assetHref:Pe,assetPriceId:"asset_price"===String(null!==(Ie=ke.source_type)&&void 0!==Ie?Ie:"")?ya(ke.source_id):null,addedAt:(null===Ee||void 0===Ee?void 0:Ee.addedAt)||(new Date).toISOString(),display:Ae,serverLineId:ya(e.id)}:null}const De=ya(null===e||void 0===e||null===(we=e.bundle)||void 0===we?void 0:we.id);return De?{type:Se,bundleId:De,assetUuid:null,assetPriceId:null,addedAt:(null===Ee||void 0===Ee?void 0:Ee.addedAt)||(new Date).toISOString(),display:Ae,serverLineId:ya(e.id)}:null}
2)(e,t)).filter(Boolean):[],r=Number(null===e||void 0===e?void 0:e.subtotal_amount),i=qi(null===e||void 0===e?void 0:e.currency);return{id:ya(null===e||void 0===e?void 0:e.id),lines:n,subtotal:{amount:Number.isFinite(r)?r:null,currency:i,formatted:Number.isFinite(r)&&i?Ki(r,i):null}}},Ca=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=null!==e&&void 0!==e&&e.cart&&"object"===typeof e.cart?e.cart:e;return{cart:xa(n,t),version:ba(null===e||void 0===e?void 0:e.version),checkoutUrl:"string"===typeof(null===e||void 0===e?void 0:e.checkout_url)&&e.checkout_url.trim()?e.checkout_url.trim():null}},Pa=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(e=>{var t;return"cart_version_conflict"===String(null!==(t=null===e||void 0===e?void 0:e.code)&&void 0!==t?t:"").trim().toLowerCase()})(e)?Ca({cart:null===e||void 0===e?void 0:e.cart,version:null===e||void 0===e?void 0:e.version},t):null},Aa=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ia(e);return{itemCount:Array.isArray(e)?e.length:0,subtotal:t,lines:Ea(e).map(e=>({lineKey:Wi(e),type:e.type,assetUuid:e.assetUuid||void 0,bundleId:e.bundleId||void 0,display:e.display||void 0}))}},Ta=(e,t)=>{if(!e.length||!t.length)return!1;const n=new Set(e.map(e=>$i(e)).filter(Boolean)),r=new Set(t.map(e=>$i(e)).filter(Boolean));if(n.size!==r.size)return!0;for(const i of n)if(!r.has(i))return!0;return!1},Ra=e=>{var t,n;return[(null===e||void 0===e||null===(t=e.display)||void 0===t?void 0:t.previewUrl)||"",(null===e||void 0===e||null===(n=e.display)||void 0===n?void 0:n.waveformUrl)||""].join("|")},Ia=(e,t)=>(e=>{var t,n;return Boolean((null===e||void 0===e||null===(t=e.display)||void 0===t?void 0:t.previewUrl)||(null===e||void 0===e||null===(n=e.display)||void 0===n?void 0:n.waveformUrl))})(e)&&Ra(e)!==Ra(t),Da=()=>[yi,...bi].filter(Boolean).filter((e,t,n)=>n.indexOf(e)===t),Ma=()=>
2{Da().forEach(e=>{f(e)})},Fa=e=>{Ma(),m(yi,e,30)};class La{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;this.window=e,this.subscribers=new Set,this.ready=!1,this.isOpen=!1,this.syncTimer=null,this.pendingServerRemovals=new Set,this.pendingSyncRequest=null,this.syncInFlightPromise=null,this.session={user:null,isAuthenticating:!0},this.lastResolvedUserKey=null,this.mergeState=null,this.mergeRequired=!1,this.lastError=null,this.serverCart=null,this.serverVersion=0,this.sessionResolutionPromise=null,this.sessionVersion=0,this.isClearingAfterCheckout=!1,this.checkoutIntentPending=!1,this.isReconciling=!1,this.instanceWriterId=_n(),this.broadcastChannel=null;const t=(()=>{for(const e of Da()){const t=h(e),n=ra(t);if(n)return{cookieName:e,encodedPayload:t,persistedState:n}}return{cookieName:null,encodedPayload:null,persistedState:null}})(),n=t.persistedState;this.clientCartId=(null===n||void 0===n?void 0:n.clientCartId)||_n(),this.updatedAt=(null===n||void 0===n?void 0:n.updatedAt)||null,this.revision=Number.isInteger(null===n||void 0===n?void 0:n.revision)?n.revision:0,this.writerId=(null===n||void 0===n?void 0:n.writerId)||this.instanceWriterId,this.ownerUserId=(null===n||void 0===n?void 0:n.ownerUserId)||null,this.syncState=(null===n||void 0===n?void 0:n.syncState)||wi.CLEAN,this.lines=Ea(null===n||void 0===n?void 0:n.lines).map(e=>k(k({},e),{},{serverLineId:null})),this.subtotal=ia(this.lines),this.handleWindowFocus=this.handleWindowFocus.bind(this),this.handleWindowOnline=this.handleWindowOnline.bind(this),this.handleStorageEvent=this.handleStorageEvent.bind(this),this.handleBroadcastMessage=this.handleBroadcastMessage.bind(this),this.window.addEventListener("focus",this.handleWindowFocus),this.window.addEventListener("online",this.handleWindowOnline),this.window.addEventListener("storage",this.handleStorageEvent),this.broadcastChannel=this.createBroadcastChannel(),t.encodedPayload&&t.cookieName!==yi&&Fa(t.encodedPayload)}destroy(){this.window.removeEventListener("focus",this.handleWindowFocus),this.window.removeEventListener("online",this.handleWindowOnline),this.window.removeEventListener("storage",this.handleStorageEvent),this.clearSyncTimer(),this.broadcastChannel&&"function"===typeof this.broadcastChannel.removeEventListener&&this.broadcastChannel.removeEventListener("message",this.handleBroadcastMessage),this.broadcastChannel&&"function"===typeof this.broadcastChannel.close&&this.broadcastChannel.close(),this.subscribers.clear()}markReady(){this.ready||(this.ready=!0,this.dispatchEvent(la,{snapshot:this.getSnapshot()}))}getSnapshot(){return{apiVersion:1,isReady:this.ready,isOpen:this.isOpen,clientCartId:this.clientCartId,revision:this.revision,updatedAt:this.updatedAt,syncState:this.syncState,isSessionResolved:this.isSessionResolved(),isReconciling:this.isReconciling,itemCount:this.lines.length,lines:this.lines.map(e=>({lineKey:Wi(e),type:e.type,assetUuid:e.assetUuid||void 0,bundleId:e.bundleId||void 0,assetHref:e.assetHref||void 0,assetPriceId:e.assetPriceId||void 0,addedAt:e.addedAt,display:e.display||void 0})),subtotal:this.subtotal,mergeRequired:this.mergeRequired,mergeComparison:this.buildMergeComparisonSnapshot(),lastError:this.lastError}}subscribe(e){return"function"!==typeof e?()=>{}:(this.subscribers.add(e),e(this.getSnapshot()),()=>{this.subscribers.delete(e)})}getSessionUserKey(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.session.user;return(null===e||void 0===e?void 0:e.id)||(null===e||void 0===e?void 0:e.email)||null}getSessionOwnerUserId(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.session.user;return String(null!==(e=null===t||void 0===t?void 0:t.id)&&void 0!==e?e:"").trim()||null}isSessionResolved(){return!this.session.isAuthenticating&&!this.isReconciling&&!this.sessionResolutionPromise}buildMergeComparisonSnapshot(){var e;return this.mergeState?{localCart:Aa(this.mergeState.localLines,ia(this.mergeState.localLines)),accountCart:Aa(this.mergeState.serverLines,(null===(e=this.mergeState.serverCart)||void 0===e?void 0:e.subtotal)||ia(this.mergeState.serverLines))}:null}updateServerStateFromEnvelope(e){return e?(this.serverVersion=ba(e.version),e.cart&&(this.serverCart=e.cart),e):null}getCurrentServerVersion(){return ba(this.serverVersion)}async fetchServerCartEnvelope(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.lines;const t=Ca(await(async()=>{const e=await fn.get("marketplace/cart");return ir(null===e||void 0===e?void 0:e.data)})(),e);return this.updateServerStateFromEnvelope(t),t}applyVersionConflict(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.lines;const n=Pa(e,t);return n?(this.updateServerStateFromEnvelope(n),n):null}async removeServerLineById(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.lines;const n=Ca(await async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
2,n=t.version,r=t.idempotencyKey;const i=await fn.delete("marketplace/cart/items/".concat(e),ar({version:n,idempotencyKey:r}));return ir(null===i||void 0===i?void 0:i.data)}(e,{version:this.getCurrentServerVersion(),idempotencyKey:_n()}),t);return this.updateServerStateFromEnvelope(n),n}buildServerDisplayPayload(e){var t,n;const r=null===e||void 0===e||null===(t=e.display)||void 0===t?void 0:t.previewUrl,i=null===e||void 0===e||null===(n=e.display)||void 0===n?void 0:n.waveformUrl,a={};return r&&(a.previewUrl=r,a.preview_url=r),i&&(a.waveformUrl=i,a.waveform_url=i),Object.keys(a).length?a:void 0}async addAssetLineToServer(e){const t={asset_uuid:e.assetUuid,asset_price_id:e.assetPriceId||void 0},n=this.buildServerDisplayPayload(e);n&&(t.display=n);try{const e=Ca(await sr(t,{version:this.getCurrentServerVersion(),idempotencyKey:_n()}),this.lines);return this.updateServerStateFromEnvelope(e),e}catch(r){if(!t.asset_price_id||!(e=>{var t;const n=null===e||void 0===e||null===(t=e.errors)||void 0===t?void 0:t.asset_price_id,r=String((null===e||void 0===e?void 0:e.message)||"").toLowerCase();return Array.isArray(n)&&n.length>0||r.includes("asset price id")})(r))throw r;const i=Ca(await sr(k({asset_uuid:e.assetUuid},n?{display:n}:{}),{version:this.getCurrentServerVersion(),idempotencyKey:_n()}),this.lines);return this.updateServerStateFromEnvelope(i),i}}async addBundleLineToServer(e){const t=this.buildServerDisplayPayload(e),n=Ca(await sr(k({bundle_id:e.bundleId},t?{display:t}:{}),{version:this.getCurrentServerVersion(),idempotencyKey:_n()}),this.lines);return this.updateServerStateFromEnvelope(n),n}touchRevision(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.ownerUserId;this.revision+=1,this.writerId=this.instanceWriterId,this.ownerUserId=e||null}captureSyncState(){return{revision:this.revision,sessionVersion:this.sessionVersion,userKey:this.getSessionUserKey(),lines:Ea(this.lines),pendingServerRemovals:new Set(this.pendingServerRemovals)}}isCurrentSyncCapture(e){return this.isCurrentAuthenticatedSession(null===e||void 0===e?void 0:e.userKey,null===e||void 0===e?void 0:e.sessionVersion)&&this.revision===(null===e||void 0===e?void 0:e.revision)}setSession(e){let t=e.user,n=e.isAuthenticating;const r=this.getSessionUserKey(),i=this.session.isAuthenticating,a=this.getSessionUserKey(t),s=Boolean(n);if(this.session={user:t||null,isAuthenticating:s},r===a&&i===s||(this.sessionVersion+=1),!this.session.isAuthenticating&&a!==this.lastResolvedUserKey){if(this.lastResolvedUserKey=a,!a)return this.sessionResolutionPromise=null,this.isReconciling=!1,void this.clearForLogout("session-logout");const e=this.sessionVersion;this.isReconciling=!0,this.notifySubscribers("session-reconcile-start");const t=this.handleResolvedSession(a,e).catch(e=>{console.log("Error while reconciling marketplace cart session",e)}).finally(()=>{this.sessionResolutionPromise===t&&(this.sessionResolutionPromise=null),this.sessionVersion===e&&(this.isReconciling=!1,this.notifySubscribers("session-reconcile-finish"))});return void(this.sessionResolutionPromise=t)}this.session.isAuthenticating||a||!i||this.notifySubscribers("session-resolved")}async waitForSessionResolution(){return this.isSessionResolved()?this.getSnapshot():this.sessionResolutionPromise?(await this.sessionResolutionPromise,this.getSnapshot()):new Promise(e=>{const t=this.subscribe(n=>{this.isSessionResolved()&&(t(),e(n))})})}clearForLogout(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"session-logout";this.sessionVersion+=1,this.session={user:null,isAuthenticating:!1},this.lastResolvedUserKey=null,this.sessionResolutionPromise=null,this.isReconciling=!1,this.clearSyncTimer(),this.pendingServerRemovals.clear(),this.pendingSyncRequest=null,this.clientCartId=_n(),this.touchRevision(null),this.updatedAt=null,this.syncState=wi.CLEAN,this.lines=[],this.subtotal=ia(this.lines),this.ownerUserId=null,this.mergeRequired=!1,this.mergeState=null,this.serverCart=null,this.serverVersion=0,this.lastError=null,this.checkoutIntentPending=!1,Ma(),this.publishCartMessage({type:"clear",clientCartId:this.clientCartId,revision:this.revision,writerId:this.writerId,ownerUserId:null}),this.notifySubscribers(e)}async prepareForLogout(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t="string"===typeof e?{reason:e}:e||{},n=t.reason,r=void 0===n?"logout":n,i=t.user,a=void 0===i?null:i;!this.session.user&&a&&(this.sessionVersion+=1,this.session={user:a,isAuthenticating:!1},this.lastResolvedUserKey=(null===a||void 0===a?void 0:a.id)||(null===a||void 0===a?void 0:a.email)||null);if(this.isPrimaryHost()&&Boolean(this.session.user)&&!this.session.isAuthenticating&&!this.mergeRequired&&this.lines.length>0)try{await this.performSync("".concat(r,"-sync"),!0)}catch(s){console.log("Error while syncing marketplace cart before logout",s)}
2return this.clearForLogout(r),this.getSnapshot()}async clearAfterCheckout(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"checkout-complete";if(this.sessionVersion+=1,this.sessionResolutionPromise=null,this.isReconciling=!1,this.isClearingAfterCheckout=!0,this.clearSyncTimer(),this.isPrimaryHost())try{const e=(await this.fetchServerCartEnvelope(this.lines)).cart,t=new Set(e.lines.map(e=>e.serverLineId).filter(Boolean));for(const n of t)await this.removeServerLineById(n,this.lines)}catch(t){console.log("Error while clearing marketplace cart after checkout",t)}return this.pendingServerRemovals.clear(),this.pendingSyncRequest=null,this.clientCartId=_n(),this.touchRevision(null),this.updatedAt=null,this.syncState=wi.CLEAN,this.lines=[],this.subtotal=ia(this.lines),this.ownerUserId=null,this.mergeRequired=!1,this.mergeState=null,this.serverCart=null,this.serverVersion=0,this.lastError=null,this.isClearingAfterCheckout=!1,this.checkoutIntentPending=!1,Ma(),this.publishCartMessage({type:"clear",clientCartId:this.clientCartId,revision:this.revision,writerId:this.writerId,ownerUserId:null}),this.notifySubscribers(e),this.getSnapshot()}async addItem(e){var t;const n=(e=>{var t;if(!e||"object"!==typeof e)return null;const n=String(null!==(t=e.type)&&void 0!==t?t:"").trim().toLowerCase(),r=(new Date).toISOString();if("asset"===n){var i,a,s;const t=String(null!==(i=e.assetUuid)&&void 0!==i?i:"").trim();if(!t)return null;const n=Ji(e),o=Zi(e.sourceContext),l=Vi(null!==(a=null!==(s=e.assetHref)&&void 0!==s?s:e.asset_href)&&void 0!==a?a:o.originUrl),c=k(k({},o),{},{assetHref:l,originUrl:o.originUrl||l||""});return{type:"asset",assetUuid:t,assetPriceId:n,assetPriceSourceType:n?"asset_price":null,assetHref:l,bundleId:null,addedAt:r,display:Yi(e.display,"asset",c),sourceContext:o}}if("bundle"===n){const t=Bi(e.bundleId);if(!Oi(t))return null;const n=Zi(e.sourceContext);return{type:"bundle",bundleId:t,assetUuid:null,assetPriceId:null,addedAt:r,display:Yi(e.display,"bundle",n),sourceContext:n}}return null})(e);if(!n)throw new Error("Invalid cart input");if(!this.isPrimaryHost())return this.window.location.assign(this.buildSecondaryDomainIntakeUrl(n)),this.getSnapshot();const r=Wi(n),i=_a(this.lines).get(r);if(!i&&this.lines.length>=50)return this.setNonBlockingError("Cart is full."),this.notifySubscribers("cart-full"),this.getSnapshot();const a=k(k(k({},i),n),{},{addedAt:(null===i||void 0===i?void 0:i.addedAt)||n.addedAt,serverLineId:(null===i||void 0===i?void 0:i.serverLineId)||null,assetHref:n.assetHref||(null===i||void 0===i?void 0:i.assetHref)||null,display:n.display||(null===i||void 0===i?void 0:i.display)||null}),s=i?this.lines.map(e=>Wi(e)===r?a:e):[...this.lines,a],o=this.revision,l=this.writerId,c=this.ownerUserId;return this.touchRevision(this.getSessionOwnerUserId()||this.ownerUserId),this.pendingServerRemovals.delete(r),this.persistLines(s,wi.DIRTY)?(this.lines=s,this.syncState=wi.DIRTY,this.lastError=null,this.updatedAt=(new Date).toISOString(),this.subtotal=ia(this.lines),br.sendCustomEvent(fa,va(n)),null!==(t=n.sourceContext)&&void 0!==t&&t.explicitPurchase&&this.setOpenState(!0,"item-added"),this.notifySubscribers("item-added"),this.scheduleSync("item-added"),this.getSnapshot()):(this.revision=o,this.writerId=l,this.ownerUserId=c,this.setNonBlockingError("Cart is full."),this.notifySubscribers("cart-full"),this.getSnapshot())}async removeItem(e){var t,n;const r=String(null!==e&&void 0!==e?e:"").trim(),i=this.lines.find(e=>Wi(e)===r);if(!i)return this.getSnapshot();(i.serverLineId||null!==(t=this.serverCart)&&void 0!==t&&null!==(n=t.lines)&&void 0!==n&&n.some(e=>Wi(e)===r))&&this.pendingServerRemovals.add(r);const a=this.lines.filter(e=>Wi(e)!==r),s=this.revision,o=this.writerId,l=this.ownerUserId;return this.touchRevision(this.getSessionOwnerUserId()||this.ownerUserId),this.persistLines(a,wi.DIRTY)?(this.lines=a,this.syncState=wi.DIRTY,this.lastError=null,this.updatedAt=(new Date).toISOString(),this.subtotal=ia(this.lines),br.sendCustomEvent(ma,va(i)),this.notifySubscribers("item-removed"),this.scheduleSync("item-removed"),this.get
2Snapshot()):(this.revision=s,this.writerId=o,this.ownerUserId=l,this.setNonBlockingError("We could not update the cart right now."),this.notifySubscribers("remove-failed"),this.getSnapshot())}async open(){return this.setOpenState(!0,"drawer-open")&&this.notifySubscribers("drawer-open"),this.canSyncInBackground()&&[wi.DIRTY,wi.ERROR].includes(this.syncState)&&this.scheduleSync("drawer-open",!0),this.getSnapshot()}async close(){return this.isOpen&&(this.setOpenState(!1,"drawer-close"),this.notifySubscribers("drawer-close")),this.getSnapshot()}async sync(){let e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).reason,t=void 0===e?"manual":e;return this.performSync(t,!1)}async checkout(){if(!this.session.user)return this.window.location.assign("/login?return_to=/marketplace/cart&cart_intent=checkout"),!1;if(this.checkoutIntentPending=!0,this.mergeRequired)return this.setOpenState(!0,"checkout-merge-required"),this.notifySubscribers("checkout-merge-required"),!1;if(this.sessionResolutionPromise&&await this.sessionResolutionPromise,this.mergeRequired)return this.setOpenState(!0,"checkout-merge-required"),this.notifySubscribers("checkout-merge-required"),!1;try{await this.performSync("checkout",!0)}catch(e){return this.checkoutIntentPending=!1,!1}try{const e=Ca(await async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.version,n=e.idempotencyKey,r=e.provider,i=void 0===r?"stripe":r;const a=await fn.post("marketplace/cart/checkout",{provider:i},ar({version:t,idempotencyKey:n}));return ir(null===a||void 0===a?void 0:a.data)}({version:this.getCurrentServerVersion(),idempotencyKey:_n()}),this.lines);if(this.updateServerStateFromEnvelope(e),e.checkoutUrl)return br.sendCustomEvent(ga,{item_count:this.lines.length,subtotal_amount:this.subtotal.amount,currency:this.subtotal.currency}),this.checkoutIntentPending=!1,this.window.location.assign(e.checkoutUrl),!0}catch(e){this.applyVersionConflict(e,this.lines)}return this.checkoutIntentPending=!1,!1}async resolveMerge(e){if(!this.mergeRequired||!this.mergeState)return this.getSnapshot();const t=this.checkoutIntentPending,n=String(null!==e&&void 0!==e?e:"").trim().toLowerCase(),r=Ea(this.mergeState.localLines),i=Ea(this.mergeState.serverLines),a=this.getSessionOwnerUserId()||this.ownerUserId;if("keep-account-cart"===n)return this.touchRevision(a),this.applyServerCart(this.mergeState.serverCart,"merge-keep-account",{ownerUserId:a,preserveRevision:!0,version:this.mergeState.serverVersion}),this.mergeRequired=!1,this.mergeState=null,this.notifySubscribers("merge-keep-account"),t&&await this.checkout(),this.getSnapshot();if("keep-local-cart"===n){const e=this.mergeState.serverCart;for(const t of e.lines)t.serverLineId&&await this.removeServerLineById(t.serverLineId,r);return this.pendingServerRemovals.clear(),this.mergeRequired=!1,this.mergeState=null,this.syncState=wi.DIRTY,this.touchRevision(a),this.persistLines(r,wi.DIRTY),await this.performSync("merge-keep-local",!0),t&&await this.checkout(),this.getSnapshot()}const s=_a(i);return r.forEach(e=>{var t,n,r;s.set(Wi(e),k(k(k({},s.get(Wi(e))),e),{},{assetPriceId:e.assetPriceId||(null===(t=s.get(Wi(e)))||void 0===t?void 0:t.assetPriceId)||null,display:e.display||(null===(n=s.get(Wi(e)))||void 0===n?void 0:n.display)||null,addedAt:e.addedAt||(null===(r=s.get(Wi(e)))||void 0===r?void 0:r.addedAt)||(new Date).toISOString()}))}),this.lines=Array.from(s.values()),this.mergeRequired=!1,this.mergeState=null,this.syncState=wi.DIRTY,this.touchRevision(a),this.persistLines(this.lines,wi.DIRTY),this.notifySubscribers("merge-keep-both"),await this.performSync("merge-keep-both",!0),t&&await this.checkout(),this.getSnapshot()}buildSecondaryDomainIntakeUrl(e){var t,n,r,i,a,s;const o=new URLSearchParams;return o.set("type",e.type),o.set("open","1"),o.set("intent","buy"),o.set("marketplace_experiment","marketplace_v1"),o.set("marketplace_cohort","B"),o.set("origin_url",this.window.location.href),"asset"===e.type&&(o.set("asset_uuid",e.assetUuid),e.assetPriceId&&(o.set("asset_price_id","".concat(e.assetPriceId)),o.set("asset_price_source_type","asset_price"))),"bundle"===e.type&&o.set("bundle_id","".concat(e.bundleId)),null!==(t=e.display)&&void 0!==t&&t.name&&o.set("name",e.display.name),Number.isFinite(Number(null===(n=e.display)||void 0===n?void 0:n.amount))&&o.set("amount","".concat(e.display.amount)),null!==(r=e.display)&&void 0!==r&&r.currency&&o.set("currency",e.display.currency),null!==(i=e.display)&&void 0!==i&&i.vertical&&o.set("vertical",e.display.vertical),null!==(a=e.display)&&void 0!==a&&a.previewUrl&&o.set("preview_url",e.display.previewUrl),null!==(s=e.display)&&void 0!==s&&s.waveformUrl&&o.set("waveform_url",e.display.waveformUrl),sa("/marketplace/cart/intake?".concat(o.toString()),this.window)}isPrimaryHost(){return(e=>{const t=String(null!==e&&void 0!==e?e:"").trim().toLowerCase();return!!t&&("productioncrate.com"===t||t.endsWith(".productioncrate.com")||"localhost"===t||"127.0.0.1"===t||t.endsWith(".localhost"))})(this.window.location.hostname)}
2canSyncInBackground(){return this.isPrimaryHost()&&Boolean(this.session.user)&&!this.session.isAuthenticating&&!this.mergeRequired}isCurrentAuthenticatedSession(e,t){var n,r;const i=(null===(n=this.session.user)||void 0===n?void 0:n.id)||(null===(r=this.session.user)||void 0===r?void 0:r.email)||null;return Boolean(e)&&Boolean(this.session.user)&&!this.session.isAuthenticating&&i===e&&this.sessionVersion===t}clearSyncTimer(){this.syncTimer&&(this.window.clearTimeout(this.syncTimer),this.syncTimer=null)}queueSyncRequest(e){var t;let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.pendingSyncRequest={reason:e,forceSync:Boolean(n)||Boolean(null===(t=this.pendingSyncRequest)||void 0===t?void 0:t.forceSync)}}scheduleSync(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.canSyncInBackground()&&(this.clearSyncTimer(),this.syncTimer=this.window.setTimeout(()=>{this.performSync(e,!1).catch(e=>{console.log("Background marketplace cart sync failed",e)})},t?0:400))}async performSync(e,t){return this.queueSyncRequest(e,t),this.syncInFlightPromise?(await this.syncInFlightPromise,this.getSnapshot()):(this.syncInFlightPromise=(async()=>{for(;this.pendingSyncRequest;){const e=this.pendingSyncRequest;this.pendingSyncRequest=null,await this.runSyncPass(e.reason,e.forceSync)}})().finally(()=>{this.syncInFlightPromise=null}),await this.syncInFlightPromise,this.getSnapshot())}async runSyncPass(e,t){if(!this.isPrimaryHost())return;if(!this.session.user)return void("checkout"===e&&this.window.location.assign("/login?return_to=/marketplace/cart&cart_intent=checkout"));if(this.mergeRequired&&!t)return;const n=this.captureSyncState(),r=_a(n.lines);this.syncState=wi.SYNCING,this.dispatchEvent(ua,{syncState:this.syncState,reason:e}),this.notifySubscribers("sync-start");for(let a=0;a<2;a+=1)try{const i=(await this.fetchServerCartEnvelope(n.lines)).cart;if(!this.isCurrentAuthenticatedSession(n.userKey,n.sessionVersion))return;for(const e of i.lines){const t=Wi(e),i=r.get(t),a=$i(i),s=$i(e),o=Ia(i,e);if(Boolean(e.serverLineId)&&(n.pendingServerRemovals.has(t)||!i||a!==s||o)&&(await this.removeServerLineById(e.serverLineId,n.lines),!this.isCurrentAuthenticatedSession(n.userKey,n.sessionVersion)))return}const a=(await this.fetchServerCartEnvelope(n.lines)).cart;if(!this.isCurrentAuthenticatedSession(n.userKey,n.sessionVersion))return;const s=_a(a.lines);for(const e of n.lines){const t=Wi(e),r=$i(e),i=s.get(t),a=$i(i),o=Ia(e,i);if((!i||r!==a||o)&&("asset"===e.type?await this.addAssetLineToServer(e):await this.addBundleLineToServer(e),!this.isCurrentAuthenticatedSession(n.userKey,n.sessionVersion)))return}const o=await this.fetchServerCartEnvelope(n.lines),l=o.cart;if(!this.isCurrentAuthenticatedSession(n.userKey,n.sessionVersion))return;const c=_a(l.lines);return n.pendingServerRemovals.forEach(e=>{this.pendingServerRemovals.has(e)&&!c.has(e)&&this.pendingServerRemovals.delete(e)}),this.isCurrentSyncCapture(n)?(this.applyServerCart(l,e,{preserveRevision:!0,ownerUserId:this.getSessionOwnerUserId()||this.ownerUserId,version:o.version}),this.syncState=wi.CLEAN,this.lastError=null,this.persistLines(this.lines,wi.CLEAN),this.dispatchEvent(ua,{syncState:this.syncState,reason:e}),void this.notifySubscribers("sync-success")):void this.queueSyncRequest("".concat(e,"-rerun"),t)}catch(i){if(this.isCurrentAuthenticatedSession(n.userKey,n.sessionVersion)&&this.revision!==n.revision)return void this.queueSyncRequest("".concat(e,"-rerun"),t);if(this.applyVersionConflict(i,n.lines)&&0===a)continue;throw this.isCurrentAuthenticatedSession(n.userKey,n.sessionVersion)&&(this.syncState=wi.ERROR,this.lastError="We could not sync yet. Please review the cart and try checkout again.",this.persistLines(this.lines,wi.ERROR),this.dispatchEvent(ua,{syncState:this.syncState,reason:e,error:this.lastError}),this.notifySubscribers("sync-error")),i}}async handleResolvedSession(e,t){if(this.isClearingAfterCheckout||!this.isPrimaryHost()||!this.isCurrentAuthenticatedSession(e,t))return;const n=await this.fetchServerCartEnvelope(this.lines),r=n.cart,i=this.getSessionOwnerUserId();if(this.isClearingAfterCheckout||!this.isCurrentAuthenticatedSession(e,t))return;const a=this.ownerUserId,s=Boolean(i)&&a===i,o=Boolean(a)&&a!==i,l=!a,c=[wi.DIRTY,wi.ERROR].includes(this.syncState),u=(h=this.lines,d=r.lines,h.length===d.length&&!Ta(h,d));var h,d;const p=_a(r.lines),f=this.lines.some(e=>Ia(e,p.get(Wi(e))));return o?(this.touchRevision(i),this.applyServerCart(r,"server-refresh",{ownerUserId:i,preserveRevision:!0,version:n.version}),void this.notifySubscribers("server-refresh")):!this.lines.length&&r.lines.length?(this.touchRevision(i),this.applyServerCart(r,"server-hydrate",{ownerUserId:i,preserveRevision:!0,version:n.version}),void this.notifySubscribers("server-hydrate")):s?c&&!u||f?(this.ownerUserId=i,void await this.performSync("session-reconcile",!0)):!u||r.lines.length||this.lines.length?(u||this.touchRevision(i),this.applyServerCart(r,"server-refresh",{ownerUserId:i,preserveRevision:!0,version:n.version}),void this.notifySubscribers("server-refresh")):(this.ownerUserId=i,void this.persistLines(this.lines,wi.CLEAN)):l&&!r.lines.length&&this.lines.length?(this.ownerUserId=i,void await this.performSync("session-hydrate",!0)):l&&u?f?(this.ownerUserId=i,void await this.performSync("session-metadata-reconcile",!0)):(this.touchRevision(i),this.applyServerCart(r,"server-refresh",{ownerUserId:i,preserveRevision:!0,version:n.version}),void this.notifySubscribers("server-refresh")):Ta(this.lines,r.lines)?(this.mergeRequired=!0,this.mergeState={localLines:Ea(this.lines),serverLines:Ea(r.lines),serverCart:r,serverVersion:n.version},this.setOpenState(!0,"merge-required"),this.dispatchEvent(ha,{localCount:this.lines.length,serverCount:r.lines.length,snapshot:this.getSnapshot()}),void this.notifySubscribers("merge-required")):this.lines.length||r.lines.length?!r.lines.length&&this.lines.length?(this.ownerUserId=i,void await this.performSync("session-hydrate",!0)):(this.touchRevision(i),this.applyServerCart(r,"server-refresh",{ownerUserId:i,preserveRevision:!0,version:n.version}),void this.notifySubscribers("server-refresh")):(this.ownerUserId=i,void this.persistLines(this.lines,wi.CLEAN))}createBroadcastChannel(){var e;if("function"!==typeof(null===(e=this.window)||void 0===e?void 0:e.BroadcastChannel))return null;const t=new this.window.BroadcastChannel("crate:marketplace-cart-sync");return"function"===typeof t.addEventListener?t.addEventListener("message",this.handleBroadcastMessage):t.onmessage=this.handleBroadcastMessage,t}handleBroadcastMessage(e){this.handleIncomingCartMessage(null===e||void 0===e?void 0:e.data)}handleStorageEvent(e){if((null===e||void 0===e?void 0:e.key)===oa&&null!==e&&void 0!==e&&e.newValue)try{this.handleIncomingCartMessage(JSON.parse(e.newValue))}catch(t){return}}handleIncomingCartMessage(e){if(!e||e.sourceId===this.instanceWriterId)return;if("clear"===e.type){if(!(ka(e.revision,e.writerId,this.revision,this.writerId)>0))return;return this.clientCartId=e.clientCartId||this.clientCartId,this.revision=Number.isInteger(e.revision)?e.revision:this.revision,this.writerId=e.writerId||this.writerId,this.ownerUserId=null,this.syncState=wi.CLEAN,this.lines=[],this.subtotal=ia(this.lines),this.updatedAt=(new Date).toISOString(),this.pendingServerRemovals.clear(),this.mergeRequired=!1,this.mergeState=null,this.serverVersion=0,this.lastError=null,void this.notifySubscribers("remote-clear")}if("state"!==e.type)return;const t=ra(e.encodedPayload);if(!t)return;ka(t.revision,t.writerId,this.revision,this.writerId)>0&&(this.clientCartId=t.clientCartId||this.clientCartId,this.revision=t.revision,this.writerId=t.
2writerId||this.writerId,this.ownerUserId=t.ownerUserId||null,this.syncState=t.syncState||wi.CLEAN,this.lines=Ea(t.lines).map(e=>k(k({},e),{},{serverLineId:null})),this.subtotal=ia(this.lines),this.updatedAt=(new Date).toISOString(),this.pendingServerRemovals.clear(),this.mergeRequired=!1,this.mergeState=null,this.serverVersion=0,this.lastError=this.syncState===wi.ERROR?"We could not sync yet. Please review the cart and try checkout again.":null,this.notifySubscribers("remote-update"),this.canSyncInBackground()&&[wi.DIRTY,wi.ERROR].includes(this.syncState)&&this.scheduleSync("remote-update",!0))}publishCartMessage(e){var t,n;const r=k(k({},e),{},{sourceId:this.instanceWriterId,messageId:_n()});this.broadcastChannel&&"function"===typeof this.broadcastChannel.postMessage&&this.broadcastChannel.postMessage(r),"function"===typeof(null===(t=this.window)||void 0===t||null===(n=t.localStorage)||void 0===n?void 0:n.setItem)&&this.window.localStorage.setItem(oa,JSON.stringify(r))}handleWindowFocus(){[wi.DIRTY,wi.ERROR].includes(this.syncState)&&this.scheduleSync("window-focus",!0)}handleWindowOnline(){[wi.DIRTY,wi.ERROR].includes(this.syncState)&&this.scheduleSync("window-online",!0)}applyServerCart(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=n.ownerUserId,i=void 0===r?this.ownerUserId:r,a=n.preserveRevision,s=void 0!==a&&a,o=n.version,l=void 0===o?this.serverVersion:o;s?this.ownerUserId=i||null:this.touchRevision(i),this.serverCart=e,this.serverVersion=ba(l);const c=_a(this.lines);this.lines=e.lines.map(e=>{const t=c.get(Wi(e));return k(k({},e),{},{assetHref:e.assetHref||(null===t||void 0===t?void 0:t.assetHref)||null,addedAt:(null===t||void 0===t?void 0:t.addedAt)||e.addedAt,display:Sa(e.display,null===t||void 0===t?void 0:t.display)})}),this.updatedAt=(new Date).toISOString(),this.subtotal=null!==e.subtotal.amount?e.subtotal:ia(this.lines),this.mergeRequired=!1,this.mergeState=null,this.lastError=null,this.persistLines(this.lines,wi.CLEAN),this.notifySubscribers(t)}persistLines(e,t){const n=(new Date).toISOString(),r=(e=>{let t=e.clientCartId,n=e.ownerUserId,r=e.revision,i=e.syncState,a=e.writerId,s=e.lines;const o=Array.isArray(s)?s:[],l=o.map(e=>"asset"===(null===e||void 0===e?void 0:e.type)?Ri(e.assetHref):null).filter(Boolean),c=l.length>0&&l.every(e=>e===l[0])?l[0]:null,u=o.flatMap(e=>{var t,n;return[Ii(null===e||void 0===e||null===(t=e.display)||void 0===t?void 0:t.previewUrl),Ii(null===e||void 0===e||null===(n=e.display)||void 0===n?void 0:n.waveformUrl)]}).filter(Boolean),h=u.length>0&&u.every(e=>e===u[0])?u[0]:null;return{v:2,c:String(null!==t&&void 0!==t?t:"").trim(),o:String(null!==n&&void 0!==n?n:"").trim()||void 0,r:ea(r),w:ta(a)||void 0,m:c||void 0,q:h||void 0,s:i===wi.DIRTY?"d":i===wi.ERROR?"e":void 0,l:o.map(e=>{if("asset"===(null===e||void 0===e?void 0:e.type)){const t=Yi(e.display,"asset");return{t:"a",u:e.assetUuid,p:e.assetPriceId||void 0,h:Mi(e.assetHref,c),n:(null===t||void 0===t?void 0:t.name)||void 0,a:Number.isFinite(Number(null===t||void 0===t?void 0:t.amount))?Number(t.amount):void 0,v:(null===t||void 0===t?void 0:t.vertical)||void 0,i:Fi(null===t||void 0===t?void 0:t.previewUrl,h),f:Fi(null===t||void 0===t?void 0:t.waveformUrl,h)}}const t=Yi(e.display,"bundle");return{t:"b",b:e.bundleId,n:(null===t||void 0===t?void 0:t.name)||void 0,a:Number.isFinite(Number(null===t||void 0===t?void 0:t.amount))?Number(t.amount):void 0,v:(null===t||void 0===t?void 0:t.vertical)||void 0,i:Fi(null===t||void 0===t?void 0:t.previewUrl,h),f:Fi(null===t||void 0===t?void 0:t.waveformUrl,h)}})}})({clientCartId:this.clientCartId,ownerUserId:this.ownerUserId,revision:this.revision,syncState:t,writerId:this.writerId,lines:e}),i=(e=>{const t=ci(fi(JSON.stringify(e)));return"".concat(_i).concat(Ei(t))})(r);return!(i.length>3500)&&(Fa(i),this.updatedAt=n,this.publishCartMessage({type:"state",clientCartId:this.clientCartId,revision:this.revision,writerId:this.writerId,encodedPayload:i}),!0)}setNonBlockingError(e){this.lastError=e}setOpenState(e,t){const n=Boolean(e);return this.isOpen!==n&&(this.isOpen=n,this.dispatchEvent(n?da:pa,{isOpen:this.isOpen,reason:t,snapshot:this.getSnapshot()}),!0)}notifySubscribers(e){const t=this.getSnapshot();
2this.subscribers.forEach(e=>{e(t)}),this.dispatchEvent(ca,{snapshot:t,reason:e})}dispatchEvent(e,t){var n,r;"function"===typeof(null===(n=this.window)||void 0===n?void 0:n.dispatchEvent)&&"function"===typeof(null===(r=this.window)||void 0===r?void 0:r.CustomEvent)&&this.window.dispatchEvent(new this.window.CustomEvent(e,{detail:t}))}}let Na=null;const Oa=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;return Na||(Na=new La(e)),Na},Ba=()=>aa(),ja=()=>{Ma()},Va=["addItem","removeItem","open","close","sync","clearAfterCheckout"],Ua=e=>{const t=new Set,n=new Set,r=[];let i=aa();const a={__crateCartBootstrap:!0,__queue:r,__subscribers:t,__pendingSubscriptions:n,__setSnapshot(e){i=e,t.forEach(e=>{e(i)})},getSnapshot:()=>i,subscribe:e=>"function"!==typeof e?()=>{}:(t.add(e),n.add(e),e(i),()=>{t.delete(e),n.delete(e)})};return Va.forEach(e=>{a[e]=function(){const t=(()=>{let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}})();for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r.push({name:e,args:i,resolve:t.resolve,reject:t.reject}),t.promise}}),e.CrateCart=a,a},za=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;return e.CrateCart&&e.CrateCart.__crateCartBootstrap||e.CrateCart&&!e.CrateCart.__crateCartBootstrap?e.CrateCart:Ua(e)},Ha=(e,t)=>{var n,r;const i=String(null!==t&&void 0!==t?t:"").trim();return!!i&&(null!==(n=null===e||void 0===e||null===(r=e.policy)||void 0===r?void 0:r.statements)&&void 0!==n?n:[]).some(e=>{var t,n;const r=String(null!==(t=null===e||void 0===e?void 0:e.type)&&void 0!==t?t:"").trim().toLowerCase();if(r&&"level"!==r)return!1;return String(null!==(n=null===e||void 0===e?void 0:e.statement)&&void 0!==n?n:"").split(",").map(e=>e.trim()).filter(Boolean).includes(i)})},Ga=(e,t)=>{var n,r;const i=Array.isArray(t)?t:[t];return null!==(n=(null!==(r=null===e||void 0===e?void 0:e.features)&&void 0!==r?r:[]).find(e=>i.includes(null===e||void 0===e?void 0:e.name)))&&void 0!==n?n:null},qa=e=>Ha(Ga(e,["assets-download","asset-download"]),"1"),Ka=e=>{var t,n,r;if(!e)return"Free";const i=qa(e),a=(e=>Ha(Ga(e,"apps-tier-access"),"1"))(e),s=Number(null!==(t=null===e||void 0===e?void 0:e.price)&&void 0!==t?t:0),o=String(null!==(n=null===e||void 0===e||null===(r=e.product)||void 0===r?void 0:r.name)&&void 0!==n?n:"").trim().toUpperCase();return o.includes("ENTERPRISE")||o.includes("EDUCATORS")?"Enterprise":i?"PRO":!i&&a?"Plugins Only":s>0?"Skills":"Free"};var Wa=__webpack_require__(579);const $a=(0,t.createContext)(),Ya=e=>{let n=e.children;const r=T((0,t.useState)(null),2),i=r[0],a=r[1],s=T((0,t.useState)(!1),2),o=s[0],l=s[1],c=T((0,t.useState)(!1),2),h=c[0],d=c[1],p=T((0,t.useState)(!0),2),y=p[0],b=p[1],_=T((0,t.useState)(!1),2),w=_[0],S=_[1],E=T((0,t.useState)(0),2),k=E[0],x=E[1],C=T((0,t.useState)(!0),2),P=C[0],A=C[1],R=(0,t.useRef)(!1);(0,t.useEffect)(()=>{let e=!0;const t=e=>{const t=g(u.sessionTokenLocalStorageKey,u.sessionTokenCookieKey,e);if(!t)return dn(),l(null),a(null),void b(!1);hn(t),l(t),b(!0)};return(async()=>{var n;const r=new URLSearchParams(window.location.search),i=r.get("link_token"),a=null!==(n=r.get("u_t"))&&void 0!==n&&n,s=g(u.refreshTokenLocalStorageKey,u.refreshTokenCookieKey);if(d(s||null),i)try{const n=await(async e=>{try{return(await fn.post("auth/magic",{link_token:e})).data}catch(t){throw t}})(i);if(!e)return;if(null!==n&&void 0!==n&&n.access_token)return hn(n.access_token),l(n.access_token),void d(n.refresh_token||null);t(a)}catch(Rc){if(!e)return;console.log("error while authenticating magic link",Rc),t(a)}finally{(()=>{const e=new URL(window.location.href);if(!e.searchParams.has("link_token"))return;e.searchParams.delete("link_token");const t=e.searchParams.toString(),n="".concat(e.pathname).concat(t?"?".concat(t):"").concat(e.hash);window.history.replaceState({},document.title,n)})()}else t(a)})(),window.refreshToken=async()=>{const e=g(u.refreshTokenLocalStorageKey,u.refreshTokenCookieKey);if(e){let t;try{if(t=await(async e=>{try{return(await fn.post("auth/refresh-token",{refresh_token:e})).data}catch(t){throw t}})(e),t&&t.access_token)return console.debug("Persist token and refresh after refres-token request response"),hn(t.access_token),v(u.sessionTokenLocal
2StorageKey,u.sessionTokenCookieKey,t.access_token),v(u.refreshTokenLocalStorageKey,u.refreshTokenCookieKey,t.refresh_token),l(t.access_token),d(t.refresh_token),t.access_token}catch(Rc){console.log("error while refreshing token",Rc)}return f(u.refreshTokenCookieKey),!1}return!1},()=>{e=!1}},[]),(0,t.useEffect)(()=>{o&&(R.current?R.current=!1:(console.debug("use effect perssisting token"),hn(o),v(u.sessionTokenLocalStorageKey,u.sessionTokenCookieKey,o),setTimeout(I,300)))},[o]),(0,t.useEffect)(()=>{h&&(console.debug("use effect perssisting refresh token"),v(u.refreshTokenLocalStorageKey,u.refreshTokenCookieKey,h))},[h]),(0,t.useEffect)(()=>{var e;if(console.log("USER",i),br.setUserSettings(null!==(e=null===i||void 0===i?void 0:i.settings)&&void 0!==e?e:null),i){if(b(!1),i&&i.created_at){let e=new Date(i.created_at).getTime();m("crateRegistration","".concat(e),365)}(e=>{var t,n,r,i;return"active"===(null===e||void 0===e||null===(t=e.team)||void 0===t||null===(n=t.subscription)||void 0===n?void 0:n.state)&&qa(null===e||void 0===e||null===(r=e.team)||void 0===r||null===(i=r.subscription)||void 0===i?void 0:i.plan)})(i)?m(u.premiumAssetsSubscriptionCookieKey,"1",365):f(u.premiumAssetsSubscriptionCookieKey),(async()=>(await fn.get("assets/remaining")).data)().then(e=>{console.log("assets available",e);let t=0;e.forEach(e=>{"assets-download"===e.name&&(t=e.remaining)}),x(t),A(!1)}).catch(e=>{console.log("Error getting assets availability",e),A(!1)})}},[i]);const I=(0,t.useCallback)(async()=>{b(!0);try{var e,t,n,r,i,s,o,c;let l=await or();l.premiumAssetsPolicy=!1,l.isEnterprise=!1,l.assetsPerDay=0;const u=null===l||void 0===l||null===(e=l.team)||void 0===e||null===(t=e.subscription)||void 0===t||null===(n=t.plan)||void 0===n||null===(r=n.features)||void 0===r?void 0:r.find(e=>"assets-download"===e.name);console.log({assetsFeature:u}),u&&(l.assetsPerDay=+u.charges,l.premiumAssetsPolicy=!u.policy.name.toLowerCase().includes("free"));const h=null===l||void 0===l||null===(i=l.team)||void 0===i||null===(s=i.subscription)||void 0===s||null===(o=s.plan)||void 0===o||null===(c=o.features)||void 0===c?void 0:c.find(e=>"users-on-team"===e.name);return h&&(l.isEnterprise=h.charges>1&&h.charges),a(l),l}catch(Yr){return dn(),l(null),b(!1),null}},[]),D=(0,t.useCallback)(async(e,t)=>{ja(),v(u.sessionTokenLocalStorageKey,u.sessionTokenCookieKey,null),v(u.refreshTokenLocalStorageKey,u.refreshTokenCookieKey,null),a(null),hn(e),v(u.sessionTokenLocalStorageKey,u.sessionTokenCookieKey,e),v(u.refreshTokenLocalStorageKey,u.refreshTokenCookieKey,t),R.current=!0,l(e),d(t),b(!0);const n=await I();if(!n)throw new Error("Unable to load the signed-in account.");return n},[I]);return(0,Wa.jsx)($a.Provider,{value:{user:i,userToken:o,isAuthenticating:y,setUser:a,setUserToken:l,setRefreshToken:d,reloadCurrentUser:I,replaceUserSession:D,unloadUser:()=>{ja(),dn(),v(u.sessionTokenLocalStorageKey,u.sessionTokenCookieKey,null),v(u.refreshTokenLocalStorageKey,u.refreshTokenCookieKey,null),l(null),d(null),a(null),b(!1)},focusMode:w,setFocusMode:S,assetsAvailable:k,isGettingAssetAvailability:P},children:n})},Xa=()=>(0,t.useContext)($a),Ja={appleLogin:c("true",!1),marketplaceCart:c("true",!1),billingPeriodVisibilityExperiment:c({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_APPLE_CLIENT_ID:"com.productioncrate.web",REACT_APP_FEATURE_APPLE_LOGIN:"true",REACT_APP_SESSION_TOKEN_COOKIE_KEY:"newLogin",REACT_APP_SESSION_TOKEN_LOCAL_STORAGE_KEY:"token",REACT_APP_PLANS_PAGE_VARIANT:"AB",REACT_APP_FEATURE_MARKETPLACE_CART:"true",REACT_APP_BUGSNAG_KEY:"748fc8c8b0858554332f17e8bc3b27ba",REACT_APP_API_BASE_URL:"https://rest.productioncrate.com",REACT_APP_MARKETPLACE_CART_COOKIE_KEY:"crate_marketplace_cart_pr_v1",REACT_APP_REFRESH_TOKEN_COOKIE_KEY:"newLogin_refresh",REACT_APP_REFRESH_TOKEN_LOCAL_STORAGE_KEY:"refresh_token",REACT_APP_PLUGINS_ONLY_HIGHLIGHT_MODE:"ab",REACT_APP_MARKETPLACE_B_PERCENTAGE:"50"}.REACT_APP_FEATURE_BILLING_PERIOD_VISIBILITY_EXPERIMENT,!1)},Qa=(0,t.createContext)({marketplaceEnabled:!1,resolvedCohort:null,isResolved:!1,promoteMarketplaceToB:async()=>!1}),Za=e=>null!==e&&void 0!==e&&e.settings&&"object"===typeof e.settings?e.settings:{},es=e=>{var n,r;let i=e.children;const a=Xa(),s=a.user,o=a.isAuthenticating,l=a.setUser,c=T((0,t.useState)(()=>zn()),2),d=c[0],p=c[1],f=T((0,t.useState)(!1),2),m=f[0],g=f[1],v=T((0,t.useState)(null),2),y=v[0],b=v[1],_=T((0,t.useState)(null),2),w=_[0],S=_[1],E=(0,t.useRef)(null),x=(0,t.useCallback)(async()=>
2{if(o)throw new Error("Marketplace authentication is still resolving");if("B"!==Vn("B"))throw new Error("Unable to persist marketplace cohort");S("B"),p("B"),g(!0);const e=Za(s),t="B"===e[Dn],n=jn(e[Mn]);if(null===s||void 0===s||!s.id||t&&n)return"B";const r={[Dn]:"B",[Mn]:"1"};if(!await or(r))throw new Error("Unable to promote marketplace cohort");return l(e=>e&&e.id===s.id?k(k({},e),{},{settings:k(k({},Za(e)),r)}):e),"B"},[o,l,s]);(0,t.useEffect)(()=>{const e=e=>{const t=null===e||void 0===e?void 0:e.detail;"marketplace_v1"===(null===t||void 0===t?void 0:t.experimentId)&&(!0!==t.cleared?Bn(t.cohort)&&b({type:"override",cohort:t.cohort.trim().toUpperCase()}):b({type:"cleared"}))};return window.addEventListener("crate:experiment-updated",e),()=>window.removeEventListener("crate:experiment-updated",e)},[]),(0,t.useEffect)(()=>{var e,t;if("B"===w)return p("B"),void g(!0);if("cleared"===(null===y||void 0===y?void 0:y.type))return p(null),void g(!0);if("override"===(null===y||void 0===y?void 0:y.type))return p(y.cohort),void g(!0);const n=zn();if(p(n),o)return void g(!1);if(null===s||void 0===s||!s.id)return void g(!0);const r=zn({userSettings:s.settings}),i=Za(s),a=Bn(i[Dn]),c=jn(i[Mn]),u=!a||i[Dn]!==r,h=!c;if(p(r),g(!0),!u&&!h)return;const d=[s.id,r,null!==(e=i[Dn])&&void 0!==e?e:"",null!==(t=i[Mn])&&void 0!==t?t:"",u?"1":"0",h?"1":"0"].join(":");if(E.current===d)return;E.current=d;const f={};(u||h)&&(f[Dn]=r,f[Mn]="1"),or(f).then(e=>{e?l(e=>{if(!e||e.id!==s.id)return e;const t=Za(e);return k(k({},e),{},{settings:k(k({},t),f)})}):console.log("marketplace cohort settings update failed")}).catch(e=>{console.log("marketplace cohort settings update failed",e)})},[o,l,s,null===s||void 0===s?void 0:s.id,null===s||void 0===s?void 0:s.settings,null===s||void 0===s||null===(n=s.settings)||void 0===n?void 0:n.cohort_marketplace_v1,null===s||void 0===s||null===(r=s.settings)||void 0===r?void 0:r.cohort_marketplace_v1_experiment,y,w]);const C=Boolean(m&&Ja.marketplaceCart&&"B"===d&&((null===s||void 0===s?void 0:s.id)||!h(u.premiumAssetsSubscriptionCookieKey)));(0,t.useEffect)(()=>{Hn(m?C:null)},[m,C]);const P=(0,t.useMemo)(()=>({marketplaceEnabled:C,resolvedCohort:d,isResolved:m,promoteMarketplaceToB:x}),[C,x,d,m]);return(0,Wa.jsx)(Qa.Provider,{value:P,children:i})},ts=()=>(0,t.useContext)(Qa);let ns=JSON.parse('{"mainCategories":[{"name":"Home","mapped":true,"id":"home","link":"https://www.productioncrate.com/","newLink":"https://app.productioncrate.com/","categories":[{"name":"Software & Tools","id":"search","link":"https://www.productioncrate.com/plugins","subcategories":[{"name":"Portal","id":"portal","tag":"new","link":"https://www.productioncrate.com/portal"},{"name":"All Plugins","id":"laforge","link":"https://www.productioncrate.com/laforge"},{"name":"Mobile App","id":"mobile+app","link":"https://apps.apple.com/us/app/productioncrate-movie-fx-vfx/id1575694812"},{"name":"Scripts and Plugins","id":"scripts+and+plugins","link":"https://www.productioncrate.com/plugins"}]},{"name":"News & Updates","id":"news-and-updates","link":"https://www.productioncrate.com/news/","subcategories":[{"name":"Blog","id":"blog","link":"https://www.productioncrate.com/news/blog/"},{"name":"Latest Content","tag":"new","id":"search/new","link":"https://www.productioncrate.com/search/vfx/new"}]},{"name":"Help and Support","id":"help-and-support","link":"https://www.productioncrate.com/support/index.html","subcategories":[{"name":"FAQ","id":"frequently-asked-questions","link":"https://www.productioncrate.com/questions-answers.html"},{"name":"Terms of Use","id":"terms-of-use","link":"https://www.productioncrate.com/terms.html"},{"name":"How to use our VFX","id":"how-to-use-our-vfx","link":"https://www.productioncrate.com/support/how-to/how-to-add-vfx-to-videos.html"},{"name":"Free VFX Software","id":"free-software-for-vfx","link":"https://www.productioncrate.com/articles/free-software-for-vfx.html"},{"name":"Member page","id":"member-page","link":"https://user.productioncrate.com/account"},{"name":"Contact Us","id":"member-page","link":"mailto:[email protected]"}]}
2,{"name":"Contest","id":"contest","link":"https://contests.productioncrate.com/","subcategories":[{"name":"This months contest","id":"contest-this-month","link":"https://contests.productioncrate.com/"},{"name":"Past Winners","id":"contest-past-winners","link":"https://contests.productioncrate.com/hall-of-fame.html"}]},{"name":"Tutorials","id":"tutorials","tag":"new","link":"https://www.productioncrate.com/skills-tier","subcategories":[{"name":"UV Mapping","id":"intro-to-uv-mapping","tag":"new","link":"https://www.productioncrate.com/skills/courses/intro-to-uv-mapping"},{"name":"Adobe After Effects","id":"tutorials-after-effects","link":"https://learn.productioncrate.com/after-effects-tutorials.html"},{"name":"Premiere Pro","id":"tutorials-premiere-pro","link":"https://learn.productioncrate.com/adobe-premiere-tutorials.html"},{"name":"Davinci Resolve","id":"tutorials-davinci-resolve","link":"https://learn.productioncrate.com/davinci-resolve-lite-tutorials.html"},{"name":"3D","id":"tutorials-3d","link":"https://learn.productioncrate.com/3d-general-tutorials.html"},{"name":"Hitfilm","id":"tutorials-hitfilm","link":"https://learn.productioncrate.com/hitfilm-tutorials.html"},{"name":"Final Cut Pro","id":"tutorials-after-effects","link":"https://learn.productioncrate.com/final-cut-tutorials.html"},{"name":"Sony Vegas","id":"tutorials-sony-vegas","link":"https://learn.productioncrate.com/sony-vegas-tutorials.html"},{"name":"Cinema4D","id":"tutorials-cinema4d","link":"https://learn.productioncrate.com/cinema-4d-tutorials.html"}]},{"name":"Affiliate","id":"affiliate","link":"https://productioncrate.partnerstack.com/"}]},{"name":"VFX","mapped":true,"id":"vfx/visual-graphics","link":"https://footagecrate.com/","categories":[{"name":"View All","id":"view-all","link":"https://footagecrate.com/"},{"name":"Explosions","id":"explosions","link":"https://vfx.productioncrate.com/explosion-vfx-categories.html","subcategories":[{"name":"Ground","id":"ground-explosions","link":"https://footagecrate.com/search/#!/Ground+Explosions&type=explosion-vfx"},{"name":"Aerial","id":"aerial-explosions","link":"https://footagecrate.com/search/#!/Aerial+Explosions&type=explosion-vfx"},{"name":"Dust","id":"dust-and-debris-explosions","link":"https://footagecrate.com/search/#!/Dust+and+Debris+Explosions&type=explosion-vfx"},{"name":"Nuclear","id":"nuclear-bombs","tag":"new","link":"https://footagecrate.com/search/#!/Nuclear+Bomb&type=explosion-vfx"}]},{"name":"Fire","id":"fire-sparks","icon":"fire_icon.png","link":"https://vfx.productioncrate.com/fire-and-sparks-vfx-categories.html","subcategories":[{"name":"Burning","id":"burning-elements","link":"https://footagecrate.com/search/#!/Fire+Elements&type=fire-and-sparks"},{"name":"Bursts","id":"fire-bursts","link":"https://footagecrate.com/search/#!/Fire+Burst+Explosions&type=fire-and-sparks"},{"name":"Embers","id":"embers-screen-hits","tag":"new","link":"https://footagecrate.com/search/#!/Embers+and+Screen+Hits&type=fire-and-sparks"}]},{"name":"Sparks","id":"fire-sparks","icon":"fire_icon.png","link":"https://footagecrate.com/search/#!/Spark+Sweeteners&type=fire-and-sparks"},{"name":"Muzzle Flashes","id":"muzzle-flashes","icon":"fire_icon.png","link":"https://footagecrate.com/muzzle-flash-categories.html"},{"name":"Smoke","id":"dust-smoke","link":"https://vfx.productioncrate.com/dust-smoke-categories.html","subcategories":[{"name":"Smoke Plumes","id":"dark-smoke-plumes","link":"https://footagecrate.com/search/#!/DarkSmoke&type=dust-smoke"},{"name":"Debris Bursts","id":"debris-bursts","link":"https://footagecrate.com/search/#!/LiveActionDust&type=dust-smoke"},{"name":"Shockwaves","id":"shockwaves","link":"https://footagecrate.com/search/#!/Dust+Smoke+Shockwaves&type=dust-smoke"}]},{"name":"Debris","id":"debris","link":"https://footagecrate.com/debris-categories.html","subcategories":[{"name":"Destruction","id":"object-destruction","link":"https://footagecrate.com/search/#!/Dirt+Debris&type=debris-categories&ai=Debris"},{"name":"Ash","id":"dirt-debris","link":"https://footagecrate.com/search/#!/Embers+and+Screen+Hits&type=fire-and-sparks"},{"name":"Glass","id":"glass-elements","link":"https://footagecrate.com/search/#!/Glass+Elements&type=debris-categories"}]},{"name":"Magic","id":"magic-powers","icon":"magic_icon.png","link":"https://footagecrate.com/magic-powers-categories.html","subcategories":[{"name":"Portals","id":"magic-circles","link":"https://footagecrate.com/search/#!/portal"},{"name":"Energy Balls","id":"energy-balls","link":"https://footagecrate.com/search/#!/Energy+Balls&type=magic-power"},{"name":"Lightning","id":"super-lightning","link":"https://footagecrate.com/search/#!/Super+Lightning&type=magic-power"},{"name":"Lasers","id":"laser-eyes","link":"https://footagecrate.com/search/#!/Laser+Eye&type=magic-power"},{"name":"Shockwaves","id":"front-facing-shockwaves","link":"https://footagecrate.com/search/#!/Front+Facing+Shockwave&type=magic-power"},{"name":"Spells","id":"spells-beams","link":"https://footagecrate.com/search/#!/Magic+Spell&type=magic-power"}
2,{"name":"Force Fields","id":"force-fields","link":"https://footagecrate.com/search/#!/Forcefield&type=scifi-vfx"}]},{"name":"Sci-Fi","id":"sci-fi","link":"https://footagecrate.com/scifi-vfx-categories.html","subcategories":[{"name":"Holograms","id":"holograms","link":"https://footagecrate.com/search/#!/Hologram+FX&type=scifi-vfx"},{"name":"HUD","id":"future-hud","link":"https://footagecrate.com/search/#!/hud"},{"name":"Force Fields","id":"forcefields","link":"https://footagecrate.com/search/#!/Forcefield&type=scifi-vfx"},{"name":"Spaceship","id":"spaceship","link":"https://footagecrate.com/search/#!/UFO&type=scifi-vfx"}]},{"name":"Vehicles","id":"vehicles","link":"https://footagecrate.com/vehicle-categories.html","subcategories":[{"name":"Helicopters","id":"helicopters","link":"https://footagecrate.com/search/#!/Helicopters&type=vehicle"},{"name":"Planes","id":"planes","link":"https://footagecrate.com/search/#!/Planes&type=vehicle"},{"name":"Police Cars","id":"police-fx","tag":"new","link":"https://footagecrate.com/search/#!/Police+FX&type=vehicle"},{"name":"Tanks","id":"tank-fx","link":"https://footagecrate.com/search/#!/Tank+FX&type=vehicle"}]},{"name":"Swat Henchmen","id":"swat-henchmen","link":"https://footagecrate.com/search/#!/Swat+Henchmen","subcategories":[{"name":"SWAT","id":"swat","link":"https://footagecrate.com/search/#!/Download+SWAT&type=extras"},{"name":"Hazmat","id":"hazmat-characters","link":"https://footagecrate.com/search/#!/Hazmat+Suits&type=extras"}]},{"name":"Zombies","id":"zombies","link":"https://footagecrate.com/zombies-categories.html"},{"name":"Blood","id":"blood","link":"https://footagecrate.com/search/#!/blood","subcategories":[{"name":"Wall Gore","id":"wall-gore","link":"https://footagecrate.com/search/#!/wall+gore"},{"name":"Wounds + Healing","id":"wounds-healing","link":"https://footagecrate.com/search/#!/wounds+healing"}]},{"name":"Natural","id":"natural-elements","link":"https://footagecrate.com/natural-elements-categories.html","subcategories":[{"name":"Rain","id":"rain","link":"https://footagecrate.com/search/#!/Rain+&type=natural-elements"},{"name":"Tornados","id":"tornados","link":"https://footagecrate.com/search/#!/Tornado&type=natural-elements"},{"name":"Meteors","id":"meteors","link":"https://footagecrate.com/search/#!/Meteor&type=natural-elements"},{"name":"Clouds","id":"storm-clouds","link":"https://footagecrate.com/search/#!/cloud"},{"name":"Lightning","id":"lightning","link":"https://footagecrate.com/search/#!/Lightning+Strike&type=natural-elements"},{"name":"Oceans","id":"oceans","link":"https://footagecrate.com/search/#!/Ocean+Waves&type=natural-elements"},{"name":"Sandstorms + Avalanches","id":"sandstorms-avalanches","link":"https://footagecrate.com/search/#!/Sand+Storms+and+Avalanches&type=natural-elements"},{"name":"Earthquakes","id":"earthquake","link":"https://footagecrate.com/search/#!/earthquakes"}]},{"name":"Creatures","id":"animals-creatures","link":"https://footagecrate.com/animals-creatures-categories.html","subcategories":[{"name":"Birds","id":"birds","link":"https://footagecrate.com/search/#!/Birds&type=animals-creatures"},{"name":"Dinosaurs","id":"dinosaurs","link":"https://footagecrate.com/search/#!/Dinosaurs&type=animals-creatures"},{"name":"Fish","id":"fish","link":"https://footagecrate.com/search/#!/fish"}]},{"name":"Liquids","id":"liquids-ice","link":"https://footagecrate.com/liquids-ice-categories.html","subcategories":[{"name":"Ocean","id":"oceans","link":"https://footagecrate.com/vfx/space/aerial"},{"name":"Slime","id":"clear-slime","link":"https://footagecrate.com/search/#!/Colored+Slime&type=liquids-ice"},{"name":"Splashes","id":"splashes-other","link":"https://footagecrate.com/search/#!/Splashes+and+Other&type=liquids-ice"}]},{"name":"Anime","id":"toon-anime-fx","link":"https://footagecrate.com/toon-anime-categories.html","subcategories":[{"name":"BG + Overlays","id":"toon-anime-backgrounds","link":"https://footagecrate.com/search/#!/Toon+Anime+Backgrounds&type=toon-anime"},{"name":"Explosions","id":"toon-clouds-explosions","link":"https://footagecrate.com/search/#!/Toon+Clouds+and+Explosions&type=toon-anime"},{"name":"Energy","id":"toon-energy-electricity","link":"https://footagecrate.com/search/#!/Toon+Energy+and+Electricity&type=toon-anime"},{"name":"Accents","id":"toon-accents-extras","link":"https://footagecrate.com/search/#!/Toon+Strikes+and+Attacks&type=toon-anime"},{"name":"Fire","id":"toon-fire-sparks","link":"https://footagecrate.com/search/#!/Toon+Fire+and+Sparks&type=toon-anime"},{"name":"Text","id":"toon-text-elements","link":"https://footagecrate.com/search/#!/Toon+Text+Elements&type=toon-anime"}]}]},{"name":"Motion Graphics","mapped":true,"alternate":"Motions","i
2d":"vfx/motion-graphics","link":"https://footagecrate.com/vfx/motion-graphics","categories":[{"name":"View All","id":"view-all","link":"https://footagecrate.com/vfx/motion-graphics"},{"name":"Transitions","id":"transitions","link":"https://footagecrate.com/transition-categories.html","subcategories":[{"name":"Glitch","id":"glitched","link":"https://footagecrate.com/search/#!/glitch&type=transition-categories"},{"name":"Mograph","id":"mograph-lines","link":"https://footagecrate.com/search/#!/Mograph+Lines+Transition&type=transition-categories"},{"name":"Mattes","id":"matte","link":"https://footagecrate.com/search/#!/Transition+Mattes&type=transition-categories"},{"name":"Drippy","id":"drippy","link":"https://footagecrate.com/search/#!/Drippy+Transition&type=transition-categories"},{"name":"Paint","id":"paint-ink","link":"https://footagecrate.com/search/#!/Paint+and+Ink+Transitions&type=transition-categories"},{"name":"Nature","id":"nature","link":"https://footagecrate.com/search/#!/Nature+Transition&type=transition-categories"},{"name":"Sports","id":"sports","link":"https://footagecrate.com/search/#!/Sports+Transition&type=transition-categories"},{"name":"Holiday","id":"holiday","link":"https://footagecrate.com/search/#!/Holiday+Transitions&type=transition-categories"}]},{"name":"Lens Flares","id":"lens-flares-bokeh","link":"https://footagecrate.com/lens-flares-bokeh-categories.html","subcategories":[{"name":"Anamorphic","id":"anamorphic-future","link":"https://footagecrate.com/lens-flares-bokeh.html"},{"name":"Bokeh","id":"bokeh-leaks","link":"https://footagecrate.com/search/#!/Bokeh+and+Light+Leaks&type=lens-flares"}]},{"name":"Hand Gestures","id":"hand-gestures","link":"https://footagecrate.com/hand-gestures-categories.html"},{"name":"Sports","id":"sports","link":"https://footagecrate.com/sports.html"},{"name":"Backgrounds","id":"backgrounds","link":"https://footagecrate.com/backgrounds-categories.html","subcategories":[{"name":"Technology","id":"technology","link":"https://footagecrate.com/search/#!/Tech+Backgrounds&type=background"},{"name":"Particles","id":"particles","link":"https://footagecrate.com/search/#!/Particle+Backgrounds&type=background"},{"name":"Anime","id":"toon-anime","link":"https://footagecrate.com/search/#!/Toon+Anime+Backgrounds&type=background"},{"name":"Low-Poly","id":"low-poly","link":"https://footagecrate.com/search/#!/Low+Poly+Background&type=background"},{"name":"Neon Lights","id":"neon-lights","link":"https://footagecrate.com/search/#!/Neon+Background&type=background"},{"name":"Holiday","id":"holiday","link":"https://footagecrate.com/search/#!/Holiday+Backgrounds&type=background"},{"name":"Flags","id":"flags","link":"https://footagecrate.com/search/#!/Flag+Backgrounds&type=background"}]},{"name":"Buttons + Icons","id":"buttons-icons","link":"https://footagecrate.com/backgrounds-categories.html","subcategories":[{"name":"Call-To-Actions","id":"modern-social-media","link":"https://footagecrate.com/search/#!/Youtube+CTA&type=youtube-categories"},{"name":"Loading","id":"loading","link":"https://vfx.productioncrate.com/search/#!/loading"},{"name":"Emojis","id":"animated-emojis","link":"https://footagecrate.com/search/#!/Emoji+Button&type=button"}]},{"name":"Lower Thirds","id":"lower-thirds","link":"https://footagecrate.com/lower-thirds.html"},{"name":"Texture Overlays","id":"textures-overlay-filters","link":"https://footagecrate.com/textures-and-overlay-filters-categories.html","subcategories":[{"name":"Camcorder","id":"camcorder","link":"https://footagecrate.com/search/#!/Camcorder&type=overlay"},{"name":"Leaks + Flares","id":"leaks-flares","link":"https://footagecrate.com/lens-flares-bokeh-categories.html"},{"name":"Glitches","id":"glitched-distorted","link":"https://footagecrate.com/search/#!/glitch&type=textures"},{"name":"Edgy","id":"edgy-effects","link":"https://footagecrate.com/search/#!/Edgy+FX&type=textures"},{"name":"Old Film","id":"aged-vintage","link":"https://footagecrate.com/search/#!/Old+Film+Look&type=textures"},{"name":"Paint","id":"ink-paint","link":"https://footagecrate.com/search/#!/Ink+and+Paint+Overlays&type=textures"},{"name":"Fluids","id":"fluid-color","link":"https://footagecrate.com/fluid-color.html"}]}
2,{"name":"Holidays","id":"holiday","link":"https://footagecrate.com/holiday-categories.html","subcategories":[{"name":"Christmas","id":"christmas","link":"https://footagecrate.com/christmas.html"},{"name":"Halloween","id":"halloween","link":"https://footagecrate.com/halloween.html"},{"name":"Valentines","id":"valentines-day","link":"https://footagecrate.com/valentines-day.html"},{"name":"New Year","id":"new-years","link":"https://footagecrate.com/new-years.html"},{"name":"Thanksgiving","id":"thanksgiving","link":"https://footagecrate.com/thanksgiving.html"}]}]},{"name":"Music","mapped":true,"id":"sfx/music","slug":"sfx","link":"https://soundscrate.com/royalty-free-music-categories.html","categories":[{"name":"View All","id":"view-all","link":"https://soundscrate.com/sfx/music"},{"name":"Theme","id":"music","subcategories":[{"name":"Epic","id":"epic","link":"https://soundscrate.com/epic.html"},{"name":"Action","id":"action","link":"https://soundscrate.com/action.html"},{"name":"Mystery","id":"noir-mystery","link":"https://soundscrate.com/noir-mystery.html"},{"name":"Thriller","id":"thriller","link":"https://soundscrate.com/thriller.html"},{"name":"Drama","id":"dramatic","link":"https://soundscrate.com/drama.html"},{"name":"Suspense","id":"suspenseful","link":"https://soundscrate.com/suspense.html"},{"name":"Feel Good","id":"feel-good","link":"https://soundscrate.com/feel-good-music.html"}]},{"name":"Setting","id":"music","subcategories":[{"name":"Fantasy","id":"fantasy","link":"https://soundscrate.com/fantasy.html"},{"name":"Western","id":"western","link":"https://soundscrate.com/western.html"}
2,{"name":"Sci-Fi","id":"scifi+music","search":true,"link":"https://soundscrate.com/scifi-music.html"},{"name":"Worldwide","id":"world+wide+music","search":true,"link":"https://soundscrate.com/world-folk.html"},{"name":"Atmospheric","id":"atmospheric-experimental","link":"https://soundscrate.com/atmospheric.html"},{"name":"Corporate","id":"corporate","link":"https://soundscrate.com/corporate.html"}]},{"name":"Genre","id":"music","subcategories":[{"name":"Hip-Hop","id":"hip-hop","link":"https://soundscrate.com/hip-hop.html"},{"name":"Dance","id":"dance-groove","link":"https://soundscrate.com/dance-groove.html"},{"name":"World + Folk","id":"world-folk","link":"https://soundscrate.com/world-folk.html"},{"name":"Disco","id":"disco","link":"https://soundscrate.com/dance-groove.html"},{"name":"Electronic","id":"electronic","link":"https://soundscrate.com/electronic.html"},{"name":"Lo-Fi","id":"lo-fi","search":"lofi+music","link":"https://soundscrate.com/lofi.html"},{"name":"Jazz","id":"jazz","search":"jazz+music","link":"https://soundscrate.com/jazz.html"},{"name":"Rock","id":"rock","link":"https://soundscrate.com/rock.html"}]},{"name":"Idents","id":"idents","link":"https://soundscrate.com/idents-categories.html","subcategories":[{"name":"Corporate","id":"corporate","link":"https://soundscrate.com/search/#!/Corporate&type=idents"},{"name":"Holiday","id":"holiday-idents","link":"https://soundscrate.com/search/#!/Holiday+Idents&type=idents"},{"name":"Logos","id":"logo-jingles","link":"https://soundscrate.com/search/#!/Logo+Jingles&type=idents"},{"name":"News","id":"news-jingles","link":"https://soundscrate.com/search/#!/News+Jingle&type=idents"}]},{"name":"Game Tracks","id":"plugins","link":"https://soundscrate.com/game-tracks.html"}]},{"name":"SFX","mapped":true,"id":"sfx/sound-effects","slug":"sfx","link":"https://soundscrate.com/sound-fx-categories.html","categories":[{"name":"View All","id":"view-all","link":"https://soundscrate.com/sfx/sound-effects"},{"name":"Movement","id":"sound-effects/movement","link":"https://soundscrate.com/movement.html"},{"name":"Action","id":"sound-effects","subcategories":[{"name":"Fighting","id":"fight","link":"https://soundscrate.com/fighting.html"},{"name":"Guns","id":"guns","link":"https://soundscrate.com/gun-related.html"},{"name":"Explosions","id":"explosions-bangs","link":"https://soundscrate.com/explosions-bangs-categories.html"},{"name":"Crashes","id":"crashes-debris","link":"https://soundscrate.com/crashes-debris.html"},{"name":"Impacts","id":"impacts","link":"https://soundscrate.com/impacts.html"}]},{"name":"Metal","id":"sound-effects","subcategories":[{"name":"Blades","id":"blades-metal","link":"https://soundscrate.com/blades-and-metal.html"},{"name":"Mechanical","id":"mechanical","link":"https://soundscrate.com/mechanical.html"}]},{"name":"People","id":"sound-effects/people","link":"https://soundscrate.com/people-voices-categories.html"},{"name":"Natural","id":"sound-effects","subcategories":[{"name":"Ambient","id":"ambient","link":"https://soundscrate.com/nature-and-ambient.html"},{"name":"Animals","id":"animals","link":"https://soundscrate.com/animals.html"},{"name":"Liquids","id":"liquids","link":"https://soundscrate.com/liquids.html"},{"name":"Organic","id":"organic","link":"https://soundscrate.com/organic.html"},{"name":"Wind","id":"natural-elements","link":"https://soundscrate.com/search/#!/wind"}]},{"name":"Domestic","id":"sound-effects/domestic","link":"https://soundscrate.com/domestic-categories.html"},{"name":"Vehicles","id":"sound-effects/vehicles","link":"https://soundscrate.com/vehicles-categories.html"},{"name":"Magic","id":"sound-effects/magic-fantasy","link":"https://soundscrate.com/magical.html"},{"name":"Sci-Fi","id":"sound-effects/sci-fi","subcategories":[{"name":"Machines","id":"machinery","link":"https://soundscrate.com/search/#!/scifi+machinery&type=scifi"},{"name":"Weapons","id":"weapons-firing","link":"https://soundscrate.com/search/#!/SciFi+Weapons+Firing&type=scifi"},{"name":"Glitches","id":"glitches","link":"https://soundscrate.com/search/#!/scifi+glitches&type=scifi"},{"name":"Vehicles","id":"vehicles","link":"https://soundscrate.com/search/#!/SciFi+Vehicles&type=scifi"}]},{"name":"Funny","id":"sound-design/funny","link":"https://soundscrate.com/funny-sound-effects-categories.html"},{"name":"Video Games","id":"sound-design/video-games","link":"https://soundscrate.com/video-games.html"},{"name":"Instruments","id":"sound-design/instruments","link":"https://soundscrate.com/instruments.html"},{"name":"Horror","id":"sound-design/horror","link":"https://soundscrate.com/horror-sound-categories.html","subcategories":[{"name":"Build Ups","id":"horror-build-ups","link":"https://soundscrate.com/search/#!/Horror+Build+Up+SFX&type=horror"},{"name":"Scene","id":"horror-scene-setting","link":"https://soundscrate.com/search/#!/Horror+Scene+Setting+SFX&type=horror"},{"name":"Hits","id":"horror-hits","link":"https://soundscrate.com/search/#!/Horror+Hits+SFX&type=horror"}]}
2,{"name":"Cinematic","id":"sound-design","slug":"sound-design","subcategories":[{"name":"Bass Drops","id":"bass-drops","link":"https://soundscrate.com/bass-drops.html"},{"name":"Classic + Noir","id":"classic-noir","link":"https://soundscrate.com/cinematic-hits.html"},{"name":"Epic Trailer","id":"epic-sounds","link":"https://soundscrate.com/epic-sounds.html"},{"name":"Happy","id":"happy","link":"https://soundscrate.com/happy-positive.html"},{"name":"Sad/Dramatic","id":"dramatic","link":"https://soundscrate.com/dramatic.html"}]}]},{"name":"Graphics","mapped":true,"id":"graphics","link":"https://graphics.productioncrate.com/","categories":[{"name":"View All","id":"view-all","link":"https://graphicscrate.com/"},{"name":"Set Extensions","id":"set-extensions","link":"https://graphicscrate.com/set-extensions.html","subcategories":[{"name":"Space","id":"space","link":"https://graphicscrate.com/space.html"},{"name":"Skies","id":"skies","link":"https://graphicscrate.com/set-extensions-skies.html"},{"name":"Buildings","id":"buildings","link":"https://graphicscrate.com/buildings.html"},{"name":"Vehicles","id":"vehicles","link":"https://graphicscrate.com/vehicles-categories.html"},{"name":"Landscapes","id":"landscapes","link":"https://graphicscrate.com/landscapes.html"},{"name":"Plants","id":"plants","link":"https://graphicscrate.com/plants.html"},{"name":"Apocalypse","id":"apocalypse","link":"https://graphicscrate.com/set-extensions-apocalypse.html"},{"name":"Explosions","id":"explosions","link":"https://graphicscrate.com/explosions-and-smoke.html"},{"name":"Destruction","id":"destruction","link":"https://graphicscrate.com/set-extensions-destruction.html"},{"name":"Ancient","id":"ancient","link":"https://graphicscrate.com/set-extensions-ancient.html"}]},{"name":"Effects","id":"effects","link":"https://graphicscrate.com/effects.html","subcategories":[{"name":"Lens Grunge","id":"lens-grunge","link":"https://graphicscrate.com/textures-grunge-lens-and-glass.html"},{"name":"Cracks","id":"cracks","link":"https://graphicscrate.com/cracks.html"},{"name":"Bullet holes","id":"bullet-holes","link":"https://graphicscrate.com/bullet-holes.html"},{"name":"Scorch Marks","id":"scorch-marks","link":"https://graphicscrate.com/scorch-marks.html"},{"name":"Smashed Glass","id":"smashed-glass","link":"https://graphicscrate.com/smashed-glass.html"},{"name":"Blood","id":"blood","link":"https://graphicscrate.com/effects-blood-splatter.html"},{"name":"Fabric","id":"fabric","link":"https://graphicscrate.com/effects-torn-fabric.html"}]}
2,{"name":"Film + Video","id":"film-and-video","link":"https://graphicscrate.com/film-and-video.html","subcategories":[{"name":"Gobos","id":"gobos","link":"https://graphicscrate.com/graphics/film-and-video/gobos"},{"name":"Composition Grids","id":"compositional-grids","link":"https://graphicscrate.com/film-and-video-compositional-grids.html"}]},{"name":"Textures","id":"textures","link":"https://graphicscrate.com/dirt-grunge.html","subcategories":[{"name":"Puddle Maps","id":"puddle-maps","link":"https://graphicscrate.com/puddle-maps.html"},{"name":"Concrete","id":"dirt-grunge/concrete","link":"https://graphicscrate.com/concrete.html"},{"name":"Rust","id":"dirt-grunge/rust","link":"https://graphicscrate.com/rust.html"},{"name":"Rock","id":"dirt-grunge/rock","link":"https://graphicscrate.com/rock.htm"},{"name":"Dirt","id":"dirt-grunge/dirt","link":"https://graphicscrate.com/dirt.html"},{"name":"Wood","id":"dirt-grunge/wood","link":"https://graphicscrate.com/wood.html"}]},{"name":"Print & Design","id":"search","link":"https://graphicscrate.com/print-and-design.html","subcategories":[{"name":"Illustration","id":"illustrations","link":"https://graphicscrate.com/search/#!/illustration"},{"name":"Balloon Font","id":"design+balloon+font","link":"https://graphicscrate.com/design-balloon-font.html"},{"name":"8-Bit","id":"print+design+8bit+pixels","link":"https://graphicscrate.com/print-design-8bit-pixels.html"}]},{"name":"Backgrounds","id":"search","link":"https://graphicscrate.com/textures-backgrounds.html","subcategories":[{"name":"Comic Halftone","id":"comic+halftone+backgrounds","link":"https://graphicscrate.com/comic-halftone-backgrounds.html"},{"name":"Clean","id":"textures+clean+backdrops","link":"https://graphicscrate.com/textures-clean-backdrops.html"}]}]},{"name":"3d","id":"3d","mapped":true,"link":"https://rendercrate.com/3D","categories":[{"name":"View All","id":"view-all","link":"https://rendercrate.com/"},{"name":"HDRI","id":"environments","link":"https://rendercrate.com/3D/environments.html","subcategories":[{"name":"Skies","id":"skies","link":"https://rendercrate.com/3D/skies.html"},{"name":"Space","id":"space","link":"https://rendercrate.com/3D/hdr-space.html"},{"name":"Aerial","id":"aerial","link":"https://rendercrate.com/3D/hdr-aerial.html"},{"name":"Studio","id":"studio","link":"https://rendercrate.com/3D/hdr-studio.html"}]},{"name":"Materials","id":"materials","link":"https://rendercrate.com/3D/materials.html","subcategories":[{"name":"Metal","id":"metal","link":"https://rendercrate.com/3D/metal.html"},{"name":"Architecture","id":"architecture","link":"https://rendercrate.com/3D/architecture.html"},{"name":"Fabric","id":"fabric","link":"https://rendercrate.com/3D/fabric.html"},{"name":"Dirt","id":"dirt","link":"https://rendercrate.com/3D/materials-dirt.html"},{"name":"Sand","id":"sand","link":"https://rendercrate.com/3D/materials-sand.html"},{"name":"Terrain","id":"terrain","link":"https://rendercrate.com/3D/terrain.html"}]},{"name":"After Effects Plugin","id":"plugin","link":"https://rendercrate.com/plugins/rendercrate"},{"name":"Blender Plugin","id":"plugin","link":"https://rendercrate.com/plugins/rendercrate-blender"},{"name":"3D Models","id":"models","link":"https://rendercrate.com/3D/models.html","subcategories":[{"name":"Character Builder","tag":"new","id":"character","customLink":true,"link":"https://character.productioncrate.com"},{"name":"Characters & Creatures","id":"characters","link":"https://rendercrate.com/3D/characters.html"},{"name":"Vehicles","id":"vehicles","link":"https://rendercrate.com/3D/vehicles.html"},{"name":"Urban","id":"urban","link":"https://rendercrate.com/3D/urban.html"},{"name":"Domestic","id":"domestic","link":"https://rendercrate.com/3D/domestic.html"},{"name":"Weapons","id":"weapons","link":"https://rendercrate.com/3D/weapons.html"},{"name":"Space","id":"space","link":"https://rendercrate.com/3D/space.html"},{"name":"Tech","id":"tech","link":"https://rendercrate.com/3D/tech.html"},{"name":"Apocalypse","id":"apocalypse","link":"https://rendercrate.com/3D/apocalypse.html"},{"name":"Ancient","id":"ancient","link":"https://rendercrate.com/3D/ancient.html"},{"name":"Food","id":"food","link":"https://rendercrate.com/3D/food.html"},{"name":"Sports","id":"sports","link":"https://rendercrate.com/3D/sports.html"},{"name":"Money","id":"money","link":"https://rendercrate.com/3D/money.html"},{"name":"Gore","id":"gore","link":"https://rendercrate.com/3D/gore.html"},{"name":"VDB\'s","id":"vdb","link":"https://rendercrate.com/3D/atmospheric-categories.html"},{"name":"Vegetation","id":"nature/vegetation-3d-models","link":"https://rendercrate.com/3d/models/nature/vegetation-3d-models"},{"name":"Landscapes","id":"nature/landscape-3d-models","link":"https://rendercrate.com/3d/models/nature/vegetation-3d-models"}]}]}
2,{"name":"Plugins","id":"plugins","link":"https://www.productioncrate.com/plugins","categories":[{"name":"After Effects + Premiere","id":"after-effects-premiere","subcategories":[{"name":"Perfect Screen","tag":"new","id":"perfect-screen","link":"https://www.productioncrate.com/plugins/perfect-screen","keywords":["perfect screen","screen plugin","perfect screen plugin"]},{"name":"Dither Works","tag":"new","id":"dither-works","link":"https://www.productioncrate.com/plugins/dither-works","keywords":["dither works plugin","dither works","dither","dithering"]},{"name":"Crates Hologram","id":"crates-hologram","link":"https://www.productioncrate.com/plugins/crates-hologram"},{"name":"Easy Glow","id":"crates-easy-glow","link":"https://www.productioncrate.com/plugins/crates-easy-glow"},{"name":"Crates Object Glow","id":"crates-object-glow","link":"https://www.productioncrate.com/plugins/crates-object-glow"},{"name":"Crates Glass","id":"crates-glass","link":"https://www.productioncrate.com/plugins/crates-glass"},{"name":"CRT Factory","id":"crt-factory","link":"https://www.productioncrate.com/plugins/crt-factory"},{"name":"Unmult","id":"crates-unmult","link":"https://www.productioncrate.com/plugins/crates-unmult"},{"name":"Black Hole","id":"crates-black-hole","link":"https://www.productioncrate.com/plugins/crates-black-hole"},{"name":"Hyperglitch","id":"crates-hyperglitch","link":"https://www.productioncrate.com/plugins/crates-hyperglitch"},{"name":"Height Relight","id":"crates-height-relight","link":"https://www.productioncrate.com/plugins/crates-height-relight"},{"name":"VHS Master","id":"crates-vhs-master","link":"https://www.productioncrate.com/plugins/crates-vhs-master"},{"name":"Camera Shake","id":"crates-camera-shake","link":"https://www.productioncrate.com/plugins/crates-camera-shake"},{"name":"Rec Overlay","id":"crates-rec-overlay","link":"https://www.productioncrate.com/plugins/crates-rec-overlay"}]},{"name":"","jumpColumn":true,"id":"after-effects-premiere-more","subcategories":[{"name":"Film Grade","id":"crates-film-grade","link":"https://www.productioncrate.com/plugins/crates-film-grade"},{"name":"Final Grain","id":"crates-final-grain","link":"https://www.productioncrate.com/plugins/crates-final-grain"},{"name":"Star Flare","id":"crates-star-flare","link":"https://www.productioncrate.com/plugins/crates-star-flare"},{"name":"Chromatic Aberration","id":"crates-chromatic-aberration","link":"https://www.productioncrate.com/plugins/crates-chromatic-aberration"},{"name":"Easy Godrays","id":"crates-easy-godrays","link":"https://www.productioncrate.com/plugins/crates-easy-godrays"},{"name":"Light Wrap","id":"crates-light-wrap","link":"https://www.productioncrate.com/plugins/crates-light-wrap"},{"name":"RenderCrate","id":"rendercrate","link":"https://www.productioncrate.com/plugins/rendercrate"},{"name":"Halftone","id":"crates-halftone","link":"https://www.productioncrate.com/plugins/crates-halftone"},{"name":"Crates Doodle Outline","id":"crates-doodle-outline","link":"https://www.productioncrate.com/plugins/crates-doodle-outline"},{"name":"Long Gradient","id":"crates-long-gradient","link":"https://www.productioncrate.com/plugins/crates-long-gradient"},{"name":"Long Shadow","id":"crates-long-shadow","link":"https://www.productioncrate.com/plugins/crates-long-shadow"},{"name":"Retro Film Essentials","id":"retro-film","link":"https://www.productioncrate.com/plugins/retro-film"}]},{"name":"View More","id":"view-more","customLink":true,"link":"https://www.productioncrate.com/plugins"}]}]}'),rs=null;const is=new Set,as=e=>"string"===typeof e&&e.trim().length>0,ss=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!e||"object"!==typeof e)return!1;if(!as(e.id))return!1;if(!as(e.name)&&!((e,t)=>1===t&&!as(null===e||void 0===e?void 0:e.name)&&!(null!==e&&void 0!==e&&e.link)&&Array.isArray(null===e||void 0===e?void 0:e.subcategories)&&e.subcategories.length>0)(e,t))return!1;if(void 0!==e.categories&&!Array.isArray(e.categories))return!1;if(void 0!==e.subcategories&&!Array.isArray(e.subcategories))return!1;const n=Array.isArray(e.categories)?e.categories:[],r=Array.isArray(e.subcategories)?e.subcategories:[];return n.every(e=>ss(e,t+1))&&r.every(e=>ss(e,t+1))},os=e=>{var t;const n=null!==e&&void 0!==e&&null!==(t=e.data)&&void 0!==t&&t.mainCategories?e.data:e;return(r=n)&&"object"===typeof r&&Array.isArray(r.mainCategories)&&r.mainCategories.every(e=>ss(e))?n:null;var r},ls=async function(){let e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).signal;const t=cn(),n=await fetch("".concat(t,"/").concat("web/header-menu"),{headers:{Accept:"application/json"},signal:e});if(!n.ok)throw new Error("Header menu request failed (".concat(n.status,")"));return n.json()},cs=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.requestMenu,n=void 0===t?ls:t,r=e.signal;return rs||(rs=n({signal:r}).then(e=>{const t=os(e);
2return t?(ns=t,is.forEach(e=>e(ns)),ns):ns}).catch(()=>ns)),rs},us=()=>{const e=T((0,t.useState)(ns),2),n=e[0],r=e[1];return(0,t.useEffect)(()=>(is.add(r),()=>{is.delete(r)}),[]),(0,t.useEffect)(()=>{cs()},[]),n},hs=["localhost","127.0.0.1"],ds=new Set(["productioncrate.com","www.productioncrate.com","user.productioncrate.com","user-qa.productioncrate.com","staging.productioncrate.com","app.productioncrate.com","vfx.productioncrate.com","graphics.productioncrate.com","sfx.productioncrate.com","rendercrate.com","footagecrate.com","graphicscrate.com","soundscrate.com"]),ps=e=>{try{const t=new URL(e);return hs.includes(t.hostname)||t.hostname.endsWith(".localhost")}catch(t){return!1}},fs=(e,t)=>{if(!e||!ps(t))return e;if(e.startsWith("mailto:"))return e;try{const n=new URL(e);return ds.has(n.hostname)?"".concat(t).concat(n.pathname).concat(n.search).concat(n.hash):e}catch(n){return e}},ms=(e,n)=>{let r=e.visible,i=e.closeCallback,a=e.onLogout,s=e.external;const o=Xa().user,l=us(),c=(0,t.useMemo)(()=>Array.isArray(null===l||void 0===l?void 0:l.mainCategories)?l.mainCategories:[],[l]),u=(0,t.useRef)(null),h=T((0,t.useState)(null),2),d=h[0],p=h[1],f=T((0,t.useState)(null),2),m=f[0],g=f[1],v=(0,t.useRef)(null),y=T((0,t.useState)(!1),2),b=y[0],_=y[1],w=T((0,t.useState)(!1),2),S=w[0],E=w[1],k=T((0,t.useState)(0),2),x=k[0],C=k[1],P=T((0,t.useState)(0),2),A=P[0],R=P[1],I=(()=>{if(!s)return"";const e=window.location.origin||"",t=window.location.hostname||"";return ps(e)?e:t.includes("user-qa")||t.includes("staging")?"https://user-qa.productioncrate.com":"https://user.productioncrate.com"})(),D=e=>(0,Wa.jsxs)(Wa.Fragment,{children:["plugins"===e.id&&(0,Wa.jsx)("img",{className:"main-category-icon",src:"".concat(I,"/images/icon.plugins.fire.svg"),alt:"","aria-hidden":"true"}),(0,Wa.jsx)("span",{children:e.name})]});(0,t.useEffect)(()=>{null!==d&&r&&u&&u.current&&(window.scrollTo(0,0),u.current.scrollTo({top:0,behavior:"smooth"}))},[d]);const M=(0,t.useCallback)(()=>{let e=window.location.pathname;""!==e&&"/"!==e||(e="home"),c.some(t=>e.includes("/"+t.id))||(e=null),g(e)},[c]),F=function(e,t,n,r,i){let a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];const s=window.location.origin||"https://www.productioncrate.com";if("plugins"===n||"plugins"===r)return(e=>{if(!e||e.startsWith("mailto:"))return e;try{const t=new URL(e);return t.protocol="https:",t.hostname="www.productioncrate.com",t.toString()}catch(t){return e}})(a||e);if("plugins"!==n&&"plugins"!==r&&"home"!==n){let e=s;switch(n){case"3d":e="https://rendercrate.com";break;case"graphics":e="https://graphicscrate.com";break;case"vfx/motion-graphics":case"vfx/visual-graphics":e="https://footagecrate.com";break;case"sfx":e="https://soundscrate.com"}if(t&&(e="https://www.productioncrate.com"),s.includes("productioncrate.com"))switch(n){case"3d":e="https://www.productioncrate.com";break;case"graphics":e="https://graphics.productioncrate.com";break;case"vfx/motion-graphics":case"vfx/visual-graphics":e="https://vfx.productioncrate.com";break;case"sfx":e="https://sfx.productioncrate.com"}if(ps(s)&&(e=s),(s.includes("staging.")||s.includes("user-qa."))&&(e="https://staging.productioncrate.com"),n&&r&&i&&"search"===r){let t=n;return"vfx/motion-graphics"!==n&&"vfx/visual-graphics"!==n||(t="vfx"),e+="/search/".concat(i,"?main_category=").concat(t),e.toLocaleLowerCase()}return n&&(n.replace("home",""),e+="/".concat(n)),r&&"view-all"!==r&&(e+="/".concat(r)),i&&(e+="/".concat(i)),fs(a||e.toLocaleLowerCase(),s)}let o=t?e.replace("rendercrate.com","productioncrate.com").replace("graphicscrate.com","graphics.productioncrate.com").replace("footagecrate.com","vfx.productioncrate.com").replace("soundscrate.com","sfx.productioncrate.com"):e;return"https://rendercrate.com/3D"===o&&(o="https://rendercrate.com/"),"https://productioncrate.com/3D"===o&&(o="https://productioncrate.com/3D/"),fs(o,s)};(0,t.useEffect)(()=>{M()},[M]);const L=(e,t)=>{let n,r=[],i=[],a=0;n=window.innerWidth<1024?20:18;const s=Array.isArray(e.categories)?e.categories:[];return s.forEach((e,t)=>{e.subcategories||(e.subcategories=[]),a+1+e.subcategories.length<n&&!e.jumpColumn?(r.push(e),a+=1+e.subcategories.length):(i.push([...r]),a=0,r=[],r.push(e),a+=1+e.subcategories.length),t===s.length-1&&i.push([...r])}),i.filter(e=>e.length>0).map((n,r)=>(0,Wa.jsx)("div",{className:"content_wrapper fade-in",children:n.map((n,i)=>{var a;return(0,Wa.jsxs)("div",{className:"menu_lol",children:[n.link&&(0,Wa.jsxs)("a",{className:"title",href:F(n.link,t,null!==(a=e.slug)&&void 0!==a?a:e.id,n.id,null,!!n.customLink&&n.link),children:[n.name,(0,Wa.jsx)("img",{src:"".concat(I,"/images/icon.external_link.svg"),className:"icon"})]}),!n.link&&(0,Wa.jsx)("span",{className:"title",children:n.name}),n.subcategories&&n.subcategories.length>0&&(0,Wa.jsx)("div",{className:"submenu",children:n.subcategories.map((a,s)=>{var o;return(0,Wa.jsxs)("a",{href:F(a.link,t,null!==(o=e.slug)&&void 0!==o?o:e.id,a.search?"search":n.id,a.id,!!a.customLink&&a.link),className:"submenuItem",children:[a.name,a.tag&&(0,Wa.jsx)("span",{className:"tag",children:a.tag})]},"mainCategory-".concat(b,"-").concat(r,"-categories-").concat(i,"-").concat(n.id,"-submenu-").concat(s))})})]},"mainCategory-".concat(b,"-").concat(r,"-categories-").concat(i,"-").concat(n.id))})},"menu-column-".concat(r)))};return(0,Wa.jsxs)(Wa.Fragment,{children:[(0,Wa.jsxs)("div",{className:"big_menu","data-main-menu":"1",ref:n,onMouseLeave:()=>{E(!1),_(!1),R(0),M()},children:[(0,Wa.jsx)("div",{className:"top_menu",children:c.map((e,t)=>{var n;return(0,Wa.jsx)("div",{className:"menu_heading ".concat(b===e.id?"selected":""," "),onMouseEnter:t=>{const n=t.currentTarget.querySelector("[data-title]"),r=n.closest("[data-main-menu]"),i=n.getBoundingClientRect(),a=r.getBoundingClientRect(),s=i.left-a.left+n.getBoundingClientRect().width/2;E(!0),_(e.id),C(s),R(n.getBoundingClientRect().width),g("/"+e.id)},children:(0,Wa.jsx)("a",{className:"title ".concat(!m||m.includes("/"+e.id)?"active":"disabled"),"data-title":e.name,"data-alternate":null!==(n=e.alternate)&&void 0!==n?n:e.name,href:F(e.link,o,e.id),children:D(e)})},"key-main_category-".concat(t,"=").concat(e.id))})}),(0,Wa.jsx)("div",{className:"little_guy",style:{left:"".concat(x,"px"),width:"".concat(A,"px")}}),(0,Wa.jsx)("div",{className:" content_container visible\n                    ".concat(!1!==b&&[0,1,2].includes(c.map(e=>e.id).indexOf(b))?"left-side":""," \n                    ").concat(!1!==b&&[c.length-1,c.length-2].includes(c.map(e=>e.id).indexOf(b))?"right-side":"","\n                "),ref:v,style:{display:S?"flex":"none",left:"".concat(x,"px")},children:c.map((e,n)=>(0,Wa.jsx)(t.Fragment,{children:b===e.id&&(0,Wa.jsx)(Wa.Fragment,{children:L(e,o)})},"mainCategory-".concat(b,"-categories-").concat(n)))})]}),(0,Wa.jsxs)("div",{className:"floating_menu ".concat(r?"visible":""),ref:u,children:[(0,Wa.jsx)("div",{className:"barrier"}),(0,Wa.jsx)("span",{onClick:i,className:"close glyphicon glyphicon-cross"}),(0,Wa.jsxs)("a",{className:"title",href:"/account",children:["Account ",(0,Wa.jsx)("img",{src:"".concat(I,"/images/icon.external_link.svg"),style:{height:"40px",filter:"invert(1)",marginLeft:"8px"},className:"icon"})]}),o&&(0,Wa.jsxs)("button",{type:"button",className:"title logout",onClick:()=>{i(),a()},children:[(0,Wa.jsx)("i",{className:"glyphicon glyphicon-lock","aria-hidden":"true"}),"Logout"]}),c.map((e,n)=>(0,Wa.jsxs)(t.Fragment,{children:[(0,Wa.jsxs)("span",{className:"title ".concat(d===n?"visible":""),onClick:()=>p(e=>null===e||e!==n?n:null),children:[D(e),(0,Wa.jsx)("span",{className:"glyphicon glyphicon-down"})]}),(0,Wa.jsx)("div",{className:"list ".concat(d===n?"visible":""),children:(Array.isArray(e.categories)?e.categories:[]).map((r,i)=>{var a,s;return(0,Wa.jsxs)(t.Fragment,{children:[r.link&&(0,Wa.jsxs)("a",{className:"subtitle",href:F(r.link,o,null!==(a=e.slug)&&void 0!==a?a:e.id,r.id,null,!!r.customLink&&r.link),children:[r.name," ",(0,Wa.jsx)("img",{src:"".concat(I,"/images/icon.external_link.svg"),className:"icon"})]}),!r.link&&(0,Wa.jsxs)("span",{className:"subtitle",children:[" ",r.name]}),null===(s=r.subcategories)||void 0===s?void 0:s.map((t,i)=>{var a;return(0,Wa.jsxs)("a",{href:F(t.link,o,null!==(a=e.slug)&&void 0!==a?a:e.id,t.search?"search":r.id,t.id,!!t.customLink&&t.link),className:"link",children:["- ",t.name,t.tag&&(0,Wa.jsx)("span",{className:"tag",children:t.tag})]},"mainCategory-".concat(b,"-categories-").concat(n,"-").concat(r.id,"-submenu-").concat(i))})]},"mainCategory3-".concat(b,"-categories-").concat(n,"-").concat(i,"-").concat(r.id))})})]},"mainCategory2-".concat(b,"-categories-").concat(n)))]})]})},gs=(0,t.forwardRef)(ms);const vs=__webpack_require__.p+"static/media/logo.9115a46913461ee33c6575566790f253.svg";const ys=__webpack_require__.p+"static/media/logo.name.25c7a4bc6f44bce2973f59e4b7185b4c.svg";__webpack_require__.p;var bs=__webpack_require__(3750),_s=__webpack_require__.n(bs);
2const ws=JSON.parse('{"v":"4.8.0","meta":{"g":"LottieFiles AE 3.5.4","a":"","k":"","d":"","tc":""},"fr":60,"ip":0,"op":180,"w":1000,"h":1000,"nm":"Main","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Shape Layer 8","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":35,"s":[0]},{"t":36,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[500,500,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.122,"y":1},"o":{"x":0.093,"y":0},"t":35,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-163,279],[-15.5,364.25],[-15.5,364.25]],"c":true}]},{"t":80,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-163,279],[-163.25,449.75],[-15.5,364.25]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0,0.188,0.569,0.251,0.5,0.235,0.639,0.314,1,0.282,0.71,0.376],"ix":9}},"s":{"a":0,"k":[-164,450],"ix":5},"e":{"a":0,"k":[-27,316.5],"ix":6},"t":1,"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":35,"op":180,"st":35,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Shape Layer 7","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":44,"s":[100]},{"t":45,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[500,500,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.419,"y":1},"o":{"x":0.793,"y":0},"t":0,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-163,279],[-163.25,449.75],[-15.5,364.25]],"c":true}]},{"t":45,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-163,279],[-163.25,449.75],[-163.25,449.812]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0,0.188,0.569,0.251,0.5,0.235,0.639,0.314,1,0.282,0.71,0.376],"ix":9}},"s":{"a":0,"k":[-164,450],"ix":5},"e":{"a":0,"k":[-27,316.5],"ix":6},"t":1,"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":46,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Shape Layer 9","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":50,"s":[0]},{"t":51,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[500,500,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.122,"y":1},"o":{"x":0.093,"y":0},"t":50,"s":[{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[-342.062,346.75],[-341.5,347.562],[-193,432.875],[-192.437,228.25],[-14.938,329.938],[-14.938,329.938],[-192.437,228.25],[-193,432.875]],"c":true}]},{"t":95,"s":[{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[-341.625,-235.5],[-341.5,347.562],[-193,432.875],[-192.438,228.25],[-14.938,329.938],[-14.875,158.937],[-192.625,55.562],[-192.562,-149.375]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0,0.804,0.2,0.169,0.5,0.833,0.247,0.208,1,0.863,0.294,0.247],"ix":9}},"s":{"a":0,"k":[-340,346],"ix":5},"e":{"a":0,"k":[-108,-62],"ix":6}
2,"t":1,"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":50,"op":180,"st":50,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"Shape Layer 6","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":59,"s":[98]},{"t":60,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[500,500,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.419,"y":1},"o":{"x":0.793,"y":0},"t":15,"s":[{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[-341.625,-235.5],[-341.5,347.562],[-193,432.875],[-192.438,228.25],[-14.938,329.938],[-14.875,158.937],[-192.625,55.562],[-192.562,-149.375]],"c":true}]},{"t":60,"s":[{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[-342.438,-235.375],[-342.5,-235.437],[-192.625,-149.438],[-192.438,56.25],[-14.875,158.938],[-14.875,158.937],[-192.438,56.25],[-192.562,-149.375]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0,0.804,0.2,0.169,0.5,0.833,0.247,0.208,1,0.863,0.294,0.247],"ix":9}},"s":{"a":0,"k":[-340,346],"ix":5},"e":{"a":0,"k":[-108,-62],"ix":6},"t":1,"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":61,"st":15,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"Shape Layer 10","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":65,"s":[0]},{"t":66,"s":[100]}],"ix":11},"r":{"a":0,"k":-119,"ix":10},"p":{"a":0,"k":[545,419,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.603,"y":0},"o":{"x":0.356,"y":0},"t":65,"s":[{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[338.498,-237.913],[189.496,-149.053],[189.466,-149.047],[189.425,-149.064],[189.525,-148.971],[338.783,-237.516]],"c":true}]},{"i":{"x":0.314,"y":1},"o":{"x":0.219,"y":0.55},"t":82,"s":[{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[338.498,-237.913],[191.075,-149.321],[194.433,56.509],[194.423,56.437],[196.78,227.784],[344.679,139.629]],"c":true}]},{"t":110,"s":[{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[338.498,-237.913],[191.075,-149.321],[194.433,56.509],[18.326,162.056],[21.273,334.015],[344.679,139.629]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0,0.968,0.689,0.113,0.5,0.957,0.612,0.098,1,0.946,0.534,0.082],"ix":9}},"s":{"a":0,"k":[21.348,333.823],"ix":5},"e":{"a":0,"k":[339.549,-238.056],"ix":6},"t":1,"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":65,"op":180,"st":65,"bm":0},{"ddd":0,"ind":6,"ty":4,"nm":"Shape Layer 5","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":74,"s":[100]},{"t":75,"s":[0]}],"ix":11},"r":{"a":0,"k":-119,"ix":10},"p":{"a":0,"k":[545,419,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.801,"y":0.41},"o":{"x":0.649,"y":0}
2,"t":30,"s":[{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[338.498,-237.913],[191.075,-149.321],[194.433,56.509],[18.326,162.056],[21.273,334.015],[344.679,139.629]],"c":true}]},{"i":{"x":0.304,"y":1},"o":{"x":0.291,"y":0.864},"t":52,"s":[{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[340.396,-29.914],[194.403,56.613],[194.433,56.509],[18.326,162.056],[21.273,334.015],[344.921,139.191]],"c":true}]},{"t":75,"s":[{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[18.343,162.016],[17.123,162.433],[18.391,162.159],[18.326,162.056],[21.273,334.015],[21.281,334.242]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0,0.968,0.689,0.113,0.5,0.957,0.612,0.098,1,0.946,0.534,0.082],"ix":9}},"s":{"a":0,"k":[21.348,333.823],"ix":5},"e":{"a":0,"k":[339.549,-238.056],"ix":6},"t":1,"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":76,"st":30,"bm":0},{"ddd":0,"ind":7,"ty":4,"nm":"Shape Layer 11","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":80,"s":[0]},{"t":81,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[500,500,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.579,"y":0},"o":{"x":0.356,"y":0},"t":80,"s":[{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[341.062,-235.062],[192.75,-149.25],[192.75,-148.75],[192.625,-149],[192.688,-149.062],[340.812,-235.875]],"c":true}]},{"i":{"x":0.314,"y":1},"o":{"x":0.219,"y":0.57},"t":98,"s":[{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[341.062,-235.062],[192.75,-149.25],[193,56],[193.125,56],[193.938,226.438],[341.062,141.125]],"c":true}]},{"t":125,"s":[{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[341.062,-235.062],[192.75,-149.25],[193,56],[14.875,159],[14.938,329.938],[341.062,141.125]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0,0.192,0.459,0.69,0.5,0.239,0.549,0.741,1,0.286,0.639,0.792],"ix":9}},"s":{"a":0,"k":[16,328],"ix":5},"e":{"a":0,"k":[343,-235],"ix":6},"t":1,"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":80,"op":180,"st":80,"bm":0},{"ddd":0,"ind":8,"ty":4,"nm":"Shape Layer 4","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":89,"s":[100]},{"t":90,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[500,500,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.801,"y":0.41},"o":{"x":0.649,"y":0},"t":45,"s":[{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[341.062,-235.062],[192.75,-149.25],[193,56],[14.875,159],[14.938,329.938],[341.062,141.125]],"c":true}]},{"i":{"x":0.304,"y":1},"o":{"x":0.291,"y":0.864},"t":67,"s":[{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[340.062,-26.062],[192.75,55.75],[193,56],[14.875,159],[14.938,329.938],[341.062,141.125]],"c":true}]},{"t":90,"s":[{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[14.812,158.938],[15.25,159.75],[14.5,159.5],[14.875,159],[14.938,329.938],[15.812,326.125]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0,0.192,0.459,0.69,0.5,0.239,0.549,0.741,1,0.286,0.639,0.792],"ix":9}},"s":{"a":0,"k":[16,328],"ix":5},"e":{"a":0,"k":[343,-235],"ix":6}
2,"t":1,"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":91,"st":45,"bm":0},{"ddd":0,"ind":9,"ty":4,"nm":"Shape Layer 14","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":65,"s":[0]},{"t":66,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[674.125,415.375,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.122,"y":1},"o":{"x":0.093,"y":0},"t":65,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[24.347,214.75],[24.228,214.632],[-112.624,114.055],[-112.506,114.027]],"c":true}]},{"t":110,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[161.142,113.441],[24.228,214.632],[-112.624,114.055],[24.692,13.954]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0,0.953,0.533,0.075,0.5,0.961,0.612,0.094,1,0.969,0.69,0.114],"ix":9}},"s":{"a":0,"k":[-111.965,113.927],"ix":5},"e":{"a":0,"k":[23.322,13.255],"ix":6},"t":1,"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-201,34],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[108.602,85.937],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":65,"op":180,"st":65,"bm":0},{"ddd":0,"ind":10,"ty":4,"nm":"Shape Layer 3","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":74,"s":[100]},{"t":75,"s":[14]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[674.125,415.375,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.419,"y":1},"o":{"x":0.793,"y":0},"t":30,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[161.142,113.441],[24.228,214.632],[-112.624,114.055],[24.692,13.954]],"c":true}]},{"t":75,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[161.142,113.441],[161.139,113.468],[24.574,13.982],[24.692,13.954]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0,0.953,0.533,0.075,0.5,0.961,0.612,0.094,1,0.969,0.69,0.114],"ix":9}},"s":{"a":0,"k":[-111.965,113.927],"ix":5},"e":{"a":0,"k":[23.322,13.255],"ix":6},"t":1,"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-201,34],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[108.602,85.937],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":130,"st":30,"bm":0},{"ddd":0,"ind":11,"ty":4,"nm":"Shape Layer 13","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":80,"s":[0]},{"t":81,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[678.5,415.5,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.122,"y":1},"o":{"x":0.093,"y":0},"t":80,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-112.855,-85.113],[-112.625,114.05],[-112.624,114.055],[-112.797,-85.109]],"c":true}]},{"t":125,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[23.653,14.378],[24.228,214.632],[-112.624,114.055],[-112.797,-85.109]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0,0.388,0.224,0.616,0.5,0.486,0.278,0.679,1,0.584,0.333,0.74
21],"ix":9}},"s":{"a":0,"k":[-111.965,113.927],"ix":5},"e":{"a":0,"k":[23.322,13.255],"ix":6},"t":1,"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-41.5,-78],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[108.602,85.937],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":80,"op":180,"st":80,"bm":0},{"ddd":0,"ind":12,"ty":4,"nm":"Shape Layer 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":89,"s":[100]},{"t":90,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[678.5,415.5,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.419,"y":1},"o":{"x":0.793,"y":0},"t":45,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[23.653,14.378],[24.228,214.632],[-112.624,114.055],[-112.797,-85.109]],"c":true}]},{"t":90,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[23.653,14.378],[24.228,214.632],[23.653,214.127],[23.48,14.964]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0,0.388,0.224,0.616,0.5,0.486,0.278,0.679,1,0.584,0.333,0.741],"ix":9}},"s":{"a":0,"k":[-111.965,113.927],"ix":5},"e":{"a":0,"k":[23.322,13.255],"ix":6},"t":1,"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-41.5,-78],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[108.602,85.937],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":91,"st":45,"bm":0},{"ddd":0,"ind":13,"ty":4,"nm":"Shape Layer 12","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":64,"s":[0]},{"t":65,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[500,500,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.122,"y":1},"o":{"x":0.093,"y":0},"t":64,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-112.624,-85.109],[-112.049,115.145],[-112.394,114.932],[-112.797,-85.109]],"c":true}]},{"t":109,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[23.653,-185.181],[24.228,15.073],[-112.394,114.932],[-112.797,-85.109]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0,0.188,0.569,0.251,0.5,0.235,0.639,0.314,1,0.282,0.71,0.376],"ix":9}},"s":{"a":0,"k":[-82.5,86],"ix":5},"e":{"a":0,"k":[91,-81],"ix":6},"t":1,"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-41.5,-78],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[108.602,85.937],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":64,"op":180,"st":64,"bm":0},{"ddd":0,"ind":14,"ty":4,"nm":"SL 1","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":74,"s":[100]},{"t":75,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[500,500,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.419,"y":1},"o":{"x":0.793,"y":0},"t":30,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[23.653,-185.181],[24.228,15.073],[-112.394,114.932],[-112.797,-85.109]],"c":true}]},{"t":75,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[23.653,-185.181],[24.228,15.073],[23.883,16.023],[23.48,-184.018]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0,0.188,0.569,0.251,0.5,0.235,0.639,0.314,1,0.282,0.71,0.376],"ix":9}},"s":{"a":0,"k":[-82.5,86],"ix":5}
2,"e":{"a":0,"k":[91,-81],"ix":6},"t":1,"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-41.5,-78],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[108.602,85.937],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":76,"st":30,"bm":0}],"markers":[]}'),Ss=e=>{let t=e.type,n=void 0===t?"logo":t,r=e.loop,i=void 0===r||r,a=e.label,s=void 0===a?"Loading...":a,o=e.style;return(0,Wa.jsxs)("div",{className:"spinner",onClick:e=>{e.stopPropagation()},style:o,children:["ripple"==n&&(0,Wa.jsxs)("div",{className:"ripple",children:[(0,Wa.jsx)("div",{}),(0,Wa.jsx)("div",{})]}),"logo"==n&&(0,Wa.jsx)(_s(),{animationData:ws,loop:i,autoPlay:!0,style:{width:"80px"}}),s&&(0,Wa.jsx)("div",{className:"label",children:s})]})},Es="Survey_survey__JFblu",ks="Survey_visible__6kuaL",xs="Survey_shadow__ueeNi",Cs="Survey_modal__LP2AK",Ps="Survey_close__KiW+i",As="Survey_progress_bar__tKLBk",Ts="Survey_progress__Kpw3S",Rs="Survey_question__Vws6+",Is="Survey_accent__GtRZ5",Ds="Survey_column_wrapper__cAfA6",Ms="Survey_thankYou__iDKWp",Fs="Survey_cta__yPj32",Ls="Survey_disabled__e8M0c",Ns="Survey_back__ADZvN",Os="Survey_answer__cEA4g",Bs="Survey_selected__pcLai",js=()=>{const e=Xa(),n=e.user,r=e.assetsAvailable,i=e.isGettingAssetAvailability,a=T((0,t.useState)(!1),2),s=a[0],o=a[1],l=T((0,t.useState)(!1),2),c=l[0],u=l[1],h=T((0,t.useState)(0),2),d=h[0],p=h[1],f=T((0,t.useState)({thankYou:"Thanks for your feedback!",frequency:.3,name:"how_you_found_us",flagName:"crate.surveyFlagId1",questions:[{labelAccent:"Hey there!",label:"We'd love to know how you found out about us:",value:"how_you_found_us",answers:[{label:"\ud83d\udd0e Google search",value:"google",selected:!1},{label:"\ud83d\ude01 From a Friend",value:"friend",selected:!1},{label:"\ud83d\udcd6 Our Tutorials",value:"tutorials",selected:!1},{label:"\ud83d\udcf1 Social Media",value:"social-media",selected:!1}]}]}),2),m=f[0],g=f[1],v=T((0,t.useState)({}),2),y=v[0],b=v[1],_=()=>{o(!1)},w=[{questionId:"entry.1982830785",answerId:"entry.1053492427"},{questionId:"entry.57395573",answerId:"entry.686072284"},{questionId:"entry.412179655",answerId:"entry.2009039441"},{questionId:"entry.837359487",answerId:"entry.2143974432"},{questionId:"entry.590641382",answerId:"entry.661817722"}],S="entry.674977585",E="entry.790349041",x="entry.1849155168",C=()=>{y.hasOwnProperty(m.flagName)||(()=>{if(!(m.questions.length>5)){var e=new FormData;return e.append("entry.1864451892",m.name),m.questions.forEach((t,n)=>{e.append(w[n].questionId,t.value),t.answers.forEach((t,r)=>{t.selected&&e.append(w[n].answerId,t.value)})}),n&&n.username&&e.append(S,n.username),n&&n.email&&e.append(E,n.email),n&&n.team&&n.team.subscription&&n.team.subscription.plan&&n.team.subscription.plan.id&&e.append(x,n.team.subscription.plan.id),fetch("https://docs.google.com/forms/d/e/1FAIpQLSfPp8q1Bj22OaP4qKmsIWzg11UrtkG2Kn0N9La0dQ_DIsaq1A/formResponse",{method:"POST",body:e,mode:"no-cors"})}console.log("Error can't handle a survey with more than 5 questions.")})(),u(m.thankYou),A(m.flagName)},P=e=>{if(!e)return;let t={};try{t=e.settings&&e.settings.surveys?JSON.parse(e.settings.surveys):{}}catch(Rc){console.log("Problem parsing surveys",Rc)}return t},A=e=>{if(!n)return console.log("No user to mark survey as seen."),!1;let t=P(n);return t[e]="".concat(Date.now()),console.log({seenSurveysLocal:t}),b(t),or({surveys:JSON.stringify(t)})},R=async function(){var e;let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!n)return void console.log("User is null, skipping survey.");const r=t||(null!==(e=m.frequency)&&void 0!==e?e:-1);if(!(Math.random()<=r))return await A(m.flagName),!1;y.hasOwnProperty(m.flagName)?console.log("survey already seen, do not show"):o(!0)};return(0,t.useEffect)(()=>{window.resetSurveys=async()=>{await or({surveys:JSON.stringify({})}),o(!1),u(!1),p(0),g(e=>{let t=k({},e);return t.questions.forEach(e=>
2{e.answers.forEach(e=>{e.selected=!1})}),t}),b({})},window.crateSurveyShow=function(){R(arguments.length>0&&void 0!==arguments[0]&&arguments[0])}},[n,y]),(0,t.useEffect)(()=>{if(!m)return;m.questions.reduce((e,t)=>e+t.answers.filter(e=>e.selected).length,0)!==m.questions.length||C()},[m]),(0,t.useEffect)(()=>{if(!n)return;let e=P(n);b(e)},[n]),(0,t.useEffect)(()=>{if(n&&!i&&r<n.assetsPerDay){const e=setTimeout(()=>{R()},3e3);return()=>clearTimeout(e)}},[n,r,i]),(0,Wa.jsxs)("div",{className:"".concat(Es," ").concat(s?ks:""),children:[(0,Wa.jsx)("div",{className:"".concat(xs),onClick:()=>{o(!1)}}),(0,Wa.jsxs)("div",{className:"".concat(Cs),children:[(0,Wa.jsx)("span",{className:"".concat(Ps," "),onClick:_,children:"X"}),!c&&m.questions.filter((e,t)=>t===d).map((e,n)=>(0,Wa.jsxs)(t.Fragment,{children:[(0,Wa.jsx)("div",{className:"".concat(Rs," ").concat(Is," m-b-16"),children:e.labelAccent}),(0,Wa.jsx)("div",{className:"".concat(Rs," m-b-16"),children:e.label}),e.answers.map((e,t)=>(0,Wa.jsx)("div",{id:"question-1-answer-".concat(t),className:"".concat(Os," m-b-8"),onClick:()=>((e,t)=>{g(n=>{let r=k({},n);return r.questions[e].answers[t].selected=!0,r}),p(e=>e+1)})(n,t),children:e.label},"question-1-answer-".concat(t)))]},n)),c&&(0,Wa.jsxs)(Wa.Fragment,{children:[(0,Wa.jsx)("div",{className:"".concat(Ms," ").concat(Is," m-b-16"),children:c}),(0,Wa.jsx)("div",{className:"".concat(Fs),onClick:_,children:"Continue"})]})]})]})};var Vs=__webpack_require__(3603),Us=__webpack_require__.n(Vs);const zs={development:"https://rest-qa.productioncrate.com",qa:"https://rest-qa.productioncrate.com",production:"https://rest.productioncrate.com",webapp:"https://rest.productioncrate.com"},Hs="app.productioncrate.com"===window.location.hostname?"webapp":"localhost"===window.location.hostname?"development":"staging.productioncrate.com"===window.location.hostname||"user-qa.productioncrate.com"===window.location.hostname?"qa":"production",Gs=()=>{const e=Xa(),n=e.user,r=e.userToken,i=(e.unloadUser,e.focusMode,e.isAuthenticating),a=(e.assetsAvailable,T((0,t.useState)([]),2)),s=a[0],o=a[1],l=T((0,t.useState)(null),2),c=l[0],d=l[1],p=zs[Hs]||"https://rest.productioncrate.com",f=e=>!!e&&/<\/?[a-z][\s\S]*>/i.test(String(e)),m=e=>String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;");(0,t.useEffect)(()=>{if(i)return;const e=r||h(u.sessionTokenCookieKey),t=!!n||!!e,a=new AbortController;return(async()=>{const n="".concat(p,"/web/banners"),r=async t=>{const r=t&&e?{Authorization:"Bearer ".concat(e)}:void 0,i=await fetch(n,{headers:r,signal:a.signal});if(!i.ok){const e=new Error("Banners request failed (".concat(i.status,")"));throw e.status=i.status,e}return i.json()};try{const e=t?await r(!0):await r(!1);o(e)}catch(Rc){if(t&&(401===(null===Rc||void 0===Rc?void 0:Rc.status)||403===(null===Rc||void 0===Rc?void 0:Rc.status)))try{const e=await r(!1);o(e)}catch(i){}}})(),()=>a.abort()},[p,i,n,r]),(0,t.useEffect)(()=>{if(!s||0===s.length)return;if(!n&&i)return;let e={};try{var t;e=JSON.parse((null===n||void 0===n||null===(t=n.settings)||void 0===t?void 0:t.banners)||"{}")}catch(Rc){return}let r=s.filter(t=>!e.hasOwnProperty(+t.id));if(["register","upgrade","signup"].some(e=>window.location.href.includes(e)))return;if(0===r.length)return;let a=r[0];if(a.message&&a.message.includes("{{user}}")){const e=g(),t=f(a.message)?m(e):e;a=k(k({},a),{},{message:a.message.replace("{{user}}",t)})}d(a)},[n,i,s]),(0,t.useEffect)(()=>{c&&br.view("banner",{target:"banner_".concat(c.title.toLowerCase().replace(/ /g,"_"))})},[c]);const g=()=>n.first_name&&"no_firstname"!==n.first_name?n.first_name:n.username===n.email?"valued user":n.username,v=()=>{br.click("banner_".concat(c.title.toLowerCase().replace(/ /g,"_"))).finally(()=>{document.location.href=c.url})},y=(0,t.useMemo)(()=>f(null===c||void 0===c?void 0:c.message),[null===c||void 0===c?void 0:c.message]),b=(0,t.useMemo)(()=>y&&null!==c&&void 0!==c&&c.message?(e=>{if(!e)return"";if("undefined"===typeof window||"undefined"===typeof window.DOMParser)return m(e);const t=(new window.DOMParser).parseFromString(String(e),"text/html"),n=new Set(["A","B","BR","EM","I","LI","OL","P","SMALL","SPAN","STRONG","SUB","SUP","UL"]),r=e=>{if(!e)return!1;const t=String(e).trim();if(t.startsWith("/"))return!0;
2if(t.startsWith("#"))return!0;try{const e=new URL(t,window.location.origin);return["http:","https:","mailto:","tel:"].includes(e.protocol)}catch(Rc){return!1}},i=e=>{if(e.nodeType===window.Node.COMMENT_NODE)return void e.remove();if(e.nodeType===window.Node.TEXT_NODE)return;if(e.nodeType!==window.Node.ELEMENT_NODE)return void e.remove();const a=e.tagName;if(!n.has(a)){const n=t.createTextNode(e.textContent||"");return void e.replaceWith(n)}const s=Array.from(e.attributes||[]);for(const t of s){const n=t.name.toLowerCase(),i=t.value;if(n.startsWith("on")||"style"===n)e.removeAttribute(t.name);else if("A"!==a)e.removeAttribute(t.name);else{if("href"===n){r(i)||e.removeAttribute(t.name);continue}if("target"===n||"rel"===n||"title"===n)continue;e.removeAttribute(t.name)}}if("A"===a&&"_blank"===e.getAttribute("target")){const t=e.getAttribute("rel")||"",n=new Set(t.split(/\s+/).filter(Boolean));n.add("noopener"),n.add("noreferrer"),e.setAttribute("rel",Array.from(n).join(" "))}const o=Array.from(e.childNodes||[]);for(const t of o)i(t)},a=Array.from(t.body.childNodes||[]);for(const s of a)i(s);return t.body.innerHTML})(c.message):"",[null===c||void 0===c?void 0:c.message,y]),_=e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),v())};return(0,Wa.jsx)(Wa.Fragment,{children:c&&(0,Wa.jsxs)("div",{className:"banner_web ".concat(c.title.toLowerCase().replace(/ /g,"_")," "),children:[c.image&&c.image.url&&(0,Wa.jsx)("img",{src:c.image.url,className:"banner_pic",alt:"banner"}),!c.image&&(0,Wa.jsxs)("span",{className:"banner_content",children:[c.url&&(0,Wa.jsx)(Wa.Fragment,{children:y?(0,Wa.jsx)("div",{className:"banner_message banner_message_html",onClick:e=>{var t;(null!==e&&void 0!==e&&null!==(t=e.target)&&void 0!==t&&t.closest?e.target.closest("a"):null)||v()},onKeyDown:_,role:"link",tabIndex:0,dangerouslySetInnerHTML:{__html:b}}):(0,Wa.jsx)("div",{className:"banner_message banner_message_plain",onClick:v,onKeyDown:_,role:"link",tabIndex:0,children:c.message})}),!c.url&&(0,Wa.jsx)(Wa.Fragment,{children:y?(0,Wa.jsx)("span",{className:"banner_message banner_message_html",dangerouslySetInnerHTML:{__html:b}}):(0,Wa.jsx)(Wa.Fragment,{children:c.message})})]}),(0,Wa.jsx)("span",{className:"banner_content banner_close glyphicon glyphicon-cross",onClick:()=>(e=>{d(null);let t={};try{t=n.settings&&n.settings.banners?JSON.parse(n.settings.banners):{}}catch(Rc){}t[+e]=!0,or({banners:JSON.stringify(t)}),br.sendCustomEvent("close_banner",{target:"".concat(c.title.toLowerCase().replace(/ /g,"_"))})})(c.id)})]})})},qs=["profile-pic--tone-gold","profile-pic--tone-teal","profile-pic--tone-blue","profile-pic--tone-red","profile-pic--tone-slate"],Ks=e=>String(e||"").trim(),Ws=e=>{var t;return(t=null===e||void 0===e?void 0:e.email,Ks(t).split("@")[0]||"")||Ks(null===e||void 0===e?void 0:e.username)||Ks("".concat((null===e||void 0===e?void 0:e.first_name)||""," ").concat((null===e||void 0===e?void 0:e.last_name)||""))||"PC"},$s=e=>(e=>{const t=Ks(e).replace(/[^a-zA-Z0-9._+\-\s]/g," ").trim();if(!t)return"";const n=t.split(/[._+\-\s]+/).filter(Boolean);return n.length>=2?"".concat(n[0][0]).concat(n[1][0]).toUpperCase():t.replace(/[^a-zA-Z0-9]/g,"").slice(0,2).toUpperCase()})(Ws(e))||"PC",Ys=e=>{let n=e.user,r=e.progress,i=void 0!==r&&r,a=e.notificationBadgeText,s=void 0===a?"":a,o=e.showPremiumStar,l=void 0!==o&&o;const c=Us()(((null===n||void 0===n?void 0:n.email)||"").trim().toLowerCase()),u=null!==n&&void 0!==n&&n.email?"https://www.gravatar.com/avatar/".concat(c,"?s=200&d=404"):"",h=$s(n),d=(e=>{const t=Ws(e).split("").reduce((e,t)=>e+t.charCodeAt(0),0);return qs[t%qs.length]})(n),p=T((0,t.useState)(!u),2),f=p[0],m=p[1],g=2*Math.PI*82,v=g,y=g*((100-(0===i?15:i))/100),b=T((0,t.useState)(g),2),_=b[0],w=b[1];return(0,t.useEffect)(()=>{setTimeout(()=>w(y),100)},[i]),(0,t.useEffect)(()=>{m(!u)},[u]),(0,Wa.jsxs)("div",{className:"profile-container",children:[!f&&(0,Wa.jsx)("img",{src:u,alt:"Profile",className:"profile-pic",onError:()=>m(!0)}),f&&(0,Wa.jsx)("div",{className:"profile-pic profile-pic-fallback ".concat(d),"aria-label":"Profile",children:h}),s&&(0,Wa.jsx)("span",{className:"profile-notification-badge",children:s}),l&&(0,Wa.jsx)("span",{"aria-label":"PRO asset access",className:"profile-premium-badge",title:"PRO asset access",children:(0,Wa.jsx)("span",{"aria-hidden":"true",className:"glyphicon glyphicon-star"})}),!1!==i&&(0,Wa.jsxs)("svg",{className:"progress-bar",viewBox:"0 0 200 200",style:{transform:"rotate(-90deg)"},children:[(0,Wa.jsx)("circle",{r:82,cx:"100",cy:"100",fill:"transparent",stroke:"#e0e0e0",strokeWidth:16}),(0,Wa.jsx)("circle",{r:82,cx:"100",cy:"100",stroke:"#f36c17",strokeWidth:16,strokeLinecap:"round",fill:"transparent",className:"progress-ring",style:{strokeDasharray:v,strokeDashoffset:_}})]})]})},Xs=["localhost","127.0.0.1"],Js=new Set(["productioncrate.com","www.productioncrate.com","user.productioncrate.com","user-qa.productioncrate.com","staging.productioncrate.com","app.productioncrate.com","vfx.productioncrate.com","graphics.productioncrate.com","sfx.productioncrate.com","rendercrate.com","footagecrate.com","graphicscrate.com","soundscrate.com"]),Qs=["all","vfx","sfx","3d","graphics"],Zs=()=>{var e,t,n,r;const i=(null===(e=window)||void 0===e||null===(t=e.location)||void 0===t?void 0:t.pathname)||"",a=(null===(n=window)||void 0===n||null===(r=n.location)||void 0===r?void 0:r.hostname)||"";if(i.includes("/search")){const e=new URLSearchParams(window.location.search).get("main_category");if(Qs.includes(e))return e}return i.includes("/vfx")||a.includes("footagecrate")?"vfx":i.includes("/sfx")||a.includes("soundscrate")?"sfx":i.includes("/3d")||a.includes("rendercrate")?"3d":i.includes("/graphics")||a.includes("graphicscrate")?"graphics":"all"},eo=e=>{try{const t=new URL(e);return Xs.includes(t.hostname)||t.hostname.endsWith(".localhost")}catch(t){return!1}},to=(e,t)=>{if(!e||!eo(t))return e;if(e.startsWith("mailto:"))return e;try{const n=new URL(e);return Js.has(n.hostname)?"".concat(t).concat(n.pathname).concat(n.search).concat(n.hash):e}catch(n){return e}},no=function(e,t,n,r,i){let a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];const s=window.location.origin||"https://www.productioncrate.com";if("plugins"===n||"plugins"===r)return(e=>{if(!e||e.startsWith("mailto:"))return e;try{const t=new URL(e);return t.protocol="https:",t.hostname="www.productioncrate.com",t.toString()}catch(t){return e}})(a||e);if("plugins"!==n&&"plugins"!==r&&"home"!==n){let e=s;switch(n){case"3d":e="https://rendercrate.com";break;case"graphics":e="https://graphicscrate.com";break;case"vfx/motion-graphics":case"vfx/visual-graphics":e="https://footagecrate.com";break;case"sfx":e="https://soundscrate.com"}if(t&&(e="https://www.productioncrate.com"),s.includes("productioncrate.com"))switch(n){case"3d":e="https://www.productioncrate.com";break;case"graphics":e="https://graphics.productioncrate.com";break;case"vfx/motion-graphics":case"vfx/visual-graphics":e="https://vfx.productioncrate.com";break;case"sfx":e="https://sfx.productioncrate.com"}if(eo(s)&&(e=s),(s.includes("staging.")||s.includes("user-qa."))&&(e="https://staging.productioncrate.com"),n&&r&&i&&"search"===r){let t=n;return"vfx/motion-graphics"!==n&&"vfx/visual-graphics"!==n||(t="vfx"),e+="/search/".concat(i,"?main_category=").concat(t),e.toLocaleLowerCase()}return n&&(e+="/".concat(n)),r&&"view-all"!==r&&(e+="/".concat(r)),i&&(e+="/".concat(i)),to(a||e.toLocaleLowerCase(),s)}let o=t?e.replace("rendercrate.com","productioncrate.com").replace("graphicscrate.com","graphics.productioncrate.com").replace("footagecrate.com","vfx.productioncrate.com").replace("soundscrate.com","sfx.productioncrate.com"):e;return"https://rendercrate.com/3D"===o&&(o="https://rendercrate.com/"),"https://productioncrate.com/3D"===o&&(o="https://productioncrate.com/3D/"),to(o,s)},ro=e=>String(e||"").trim().replace(/\s+/g," ").toLowerCase(),io=e=>[null===e||void 0===e?void 0:e.name,null===e||void 0===e?void 0:e.id,...Array.isArray(null===e||void 0===e?void 0:e.keywords)?e.keywords:[]].map(e=>
2String(e||"").toLowerCase()).filter(Boolean),ao=(e,t)=>{const n=io(e);let r=null!==e&&void 0!==e&&e.isPluginCategory?1e3:0;return t.forEach(e=>{n.forEach((t,n)=>{const i=0===n?1:.8;t.startsWith(e)&&(r+=30*i),t.includes(e)&&(r+=20*i)})}),r},so=(e,n)=>{const r=String(e||"");if(!r||!Array.isArray(n)||0===n.length)return r;const i=[...new Set(n)].sort((e,t)=>t.length-e.length);if(0===i.length)return r;const a=new RegExp("(".concat(i.map(e=>(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(e)).join("|"),")"),"ig");return r.split(a).map((e,n)=>i.some(t=>e.toLowerCase()===t)?(0,Wa.jsx)("span",{className:"search-bar-autocomplete-match",children:e},"match-".concat(n)):(0,Wa.jsx)(t.Fragment,{children:e},"text-".concat(n)))},oo=e=>{const t=String((null===e||void 0===e?void 0:e.groupPath)||"").split("/").map(e=>e.trim()).filter(Boolean).join(" / "),n=String((null===e||void 0===e?void 0:e.name)||"").trim();return t?n?t.toLowerCase().endsWith(n.toLowerCase())?t:"".concat(t," / ").concat(n):t:n},lo=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.map(e=>String(e||"").trim()).filter(Boolean).join(" / ")},co=(e,t)=>{const n=Array.isArray(null===e||void 0===e?void 0:e.mainCategories)?e.mainCategories:[],r=[],i=new Set;return n.forEach(e=>{var n;if("home"===String((null===e||void 0===e?void 0:e.id)||"").toLowerCase())return;const a=(e=>"3d"===String((null===e||void 0===e?void 0:e.id)||"").toLowerCase()?"3D":String((null===e||void 0===e?void 0:e.name)||"").trim())(e);if(!a)return;const s=null!==(n=null===e||void 0===e?void 0:e.slug)&&void 0!==n?n:null===e||void 0===e?void 0:e.id,o="plugins"===String((null===e||void 0===e?void 0:e.id)||"").toLowerCase();if(null!==e&&void 0!==e&&e.name&&null!==e&&void 0!==e&&e.link){const n=no(e.link,t,e.id),s="".concat(a,"|").concat(e.name,"|").concat(n);i.has(s)||(i.add(s),r.push({id:String(e.id||e.name).trim(),name:String(e.name).trim(),link:n,category:a,groupPath:a,isPluginCategory:o}))}(Array.isArray(null===e||void 0===e?void 0:e.categories)?e.categories:[]).forEach(e=>{if(null!==e&&void 0!==e&&e.name&&null!==e&&void 0!==e&&e.link){const n=no(e.link,t,s,e.id,null,!!e.customLink&&e.link),l="".concat(a,"|").concat(e.name,"|").concat(n);i.has(l)||(i.add(l),r.push({id:String(e.id||e.name).trim(),name:String(e.name).trim(),link:n,category:a,groupPath:lo(a,e.name),isPluginCategory:o}))}(Array.isArray(null===e||void 0===e?void 0:e.subcategories)?e.subcategories:[]).forEach(n=>{if(null===n||void 0===n||!n.name||null===n||void 0===n||!n.link)return;const l=no(n.link,t,s,n.search?"search":e.id,n.id,!!n.customLink&&n.link),c="".concat(a,"|").concat(n.name,"|").concat(l);i.has(c)||(i.add(c),r.push({id:String(n.id||n.name).trim(),name:String(n.name).trim(),link:l,category:a,groupPath:lo(e.name,n.name),isPluginCategory:o,keywords:Array.isArray(n.keywords)?n.keywords:[]}))})})}),r},uo=e=>{let n=e.searchCallback,r=void 0===n?"testSearch":n;const i=(0,t.useRef)(null),a=(0,t.useRef)(!1),s=Xa().user,o=us(),l=T((0,t.useState)(null),2),c=l[0],u=l[1],h=T((0,t.useState)(Zs),2),d=h[0],p=h[1],f=T((0,t.useState)(Zs),2),m=f[0],g=f[1],v=T((0,t.useState)(!1),2),y=v[0],b=v[1],_=T((0,t.useState)(!1),2),w=_[0],S=_[1],E=T((0,t.useState)(-1),2),x=E[0],C=E[1],P=(0,t.useMemo)(()=>String(c||"").trim().toLowerCase().split(/\s+/).filter(Boolean),[c]),A=(0,t.useMemo)(()=>co(o,!!s),[o,s]),R=(0,t.useMemo)(()=>0===P.length?[]:A.map((e,t)=>k(k({},e),{},{originalIndex:t})).filter(e=>{const t=io(e);return P.every(e=>t.some(t=>t.includes(e)))}).sort((e,t)=>{const n=ao(e,P),r=ao(t,P);return n!==r?r-n:e.originalIndex-t.originalIndex}).slice(0,10),[A,P]),I=y&&!w&&R.length>0;(0,t.useEffect)(()=>{0!==R.length?x>=R.length&&C(R.length-1):C(-1)},[x,R]);const M=D(()=>{g(Zs())},100);(0,t.useEffect)(()=>()=>{M()},[M]),(0,t.useEffect)(()=>{if(null===c||void 0===c)return;const e=Zs();r&&window[r]&&window&&"function"===typeof window[r]&&window[r](c,e)},[c]),(0,t.useEffect)(()=>{p(m)},[m,p]),(0,t.useEffect)(()=>{if(!window.location.pathname.includes("/search"))return;let e="";const t=window.location.pathname.split("/");"search"===t[1]&&t[2]?e=decodeURIComponent(t[2]):"search"!==t[1]||t[2]||(e=""),e=e.replace("+"," "),e.length>0&&u(e),i&&i.current&&(S(!0),a.current=!0,i.current.focus())},[]);const F=(0,t.useCallback)(function(){let e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).blurInput,t=void 0!==e&&e;b(!1),C(-1),t&&i.current&&i.current.blur()},[]),L=e=>{null!==e&&void 0!==e&&e.link&&(S(!0),F({blurInput:!0}),u(e.name),window.location.href=e.link)};return(0,Wa.jsxs)("form",{className:"search-bar",onSubmit:e=>{e&&e.preventDefault();const t=((e,t)=>{const n=ro(t);return n&&e.find(e=>(null===e||void 0===e?void 0:e.isPluginCategory)&&ro(e.name)===n)||null})(A,c);t?L(t):(S(!0),F({blurInput:!0}),async function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0;var r=e;r=null===r||""===r?"":encodeURIComponent(r).replace(/%20/g,"+");const i=window.location.origin||"https://www.productioncrate.com";let a=i;switch(t||(t="all"),t){case"3d":a="https://rendercrate.com";break;case"graphics":a="https://graphicscrate.com";break;case"vfx":a="https://footagecrate.com";break;case"sfx":a="https://soundscrate.com"}n&&(a="https://www.productioncrate.com"),i.includes("localhost")&&(a=i),(i.includes("user-qa.")||i.includes("staging."))&&(a="https://staging.productioncrate.com");let s="".concat(a,"/search/").concat(r,"?main_category=").concat(t);window.location.href=s}(c,d,!!s))},children:[(0,Wa.jsx)("input",{type:"text",value:c,onChange:e=>{let t=e.target;u(t.value),S(!1),C(-1)},name:"query",placeholder:'Search "new" for latest content',spellCheck:"True",autoComplete:"off",id:"header-search-bar-input",dir:"auto",ref:i,onFocus:()=>{b(!0),C(-1),a.current?a.current=!1:S(!1)},onBlur:()=>{window.setTimeout(()=>{F()},120)},onKeyDown:e=>{if(I)return"ArrowDown"===e.key?(e.preventDefault(),void C(e=>e<R.length-1?e+1:0)):"ArrowUp"===e.key?(e.preventDefault(),void C(e=>e>0?e-1:R.length-1)):"Enter"===e.key&&x>=0?(e.preventDefault(),void L(R[x])):void("Escape"===e.key&&(e.preventDefault(),F()))},className:"search-bar-input"}),(0,Wa.jsx)("span",{className:"close glyphicon glyphicon-cross ".concat(c?"visible":""),onClick:()=>{u("")}}),(0,Wa.jsx)("button",{type:"submit",className:"form-btn btn-search",children:(0,Wa.jsx)("span",{className:"glyphicon glyphicon-search"})}),I&&(0,Wa.jsx)("div",{className:"search-bar-autocomplete",role:"listbox","aria-label":"Menu suggestions",children:R.map((e,t)=>(0,Wa.jsxs)("a",{href:e.link,className:"search-bar-autocomplete-item ".concat(x===t?"active":""),role:"option","aria-selected":x===t,onMouseEnter:()=>{C(t)},onClick:()=>{u(e.name)}
2,children:[(0,Wa.jsx)("span",{className:"search-bar-autocomplete-item-name",children:so(oo(e),P)}),(0,Wa.jsx)("span",{className:"search-bar-autocomplete-item-type ".concat(e.isPluginCategory?"is-plugins":""),children:so(e.category,P)})]},"menu-autocomplete-".concat(e.link,"-").concat(e.category,"-").concat(e.id)))})]})},ho=(0,t.forwardRef)(uo),po="crate.notifications.last_seen_at",fo=e=>{const t=Date.parse(e);return Number.isFinite(t)?t:0},mo=e=>{if(!e)return"";const t=new Date(e);return Number.isNaN(t.getTime())?"":new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"}).format(t)},go=e=>fo(null===e||void 0===e?void 0:e.published_at)||fo(null===e||void 0===e?void 0:e.created_at),vo=e=>{let n=e.onIndicatorChange;const r=(0,t.useRef)(null),i=(0,t.useRef)(null),a=T((0,t.useState)(!1),2),s=a[0],o=a[1],l=T((0,t.useState)(!1),2),c=l[0],u=l[1],h=T((0,t.useState)(!1),2),d=h[0],p=h[1],f=T((0,t.useState)(null),2),m=f[0],g=f[1],v=T((0,t.useState)(""),2),y=v[0],b=v[1],_=T((0,t.useState)([]),2),w=_[0],S=_[1],E=T((0,t.useState)(0),2),x=E[0],C=E[1],P=T((0,t.useState)(()=>(()=>{try{return window.localStorage.getItem(po)||""}catch(e){return""}})()),2),A=P[0],R=P[1],I=(0,t.useCallback)(async function(){let e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).silent,t=void 0!==e&&e;t||(u(!0),b(""));try{const e=await hr(),t=Array.isArray(null===e||void 0===e?void 0:e.data)?e.data:[];S(t),C(((e,t)=>{const n=Number(null===e||void 0===e?void 0:e.unread_count);return Number.isFinite(n)&&n>=0?n:t.filter(e=>!e.read_at).length})(null===e||void 0===e?void 0:e.meta,t))}catch(n){console.log("Could not load notifications",n),t||b("Could not load notifications.")}finally{t||u(!1)}},[]);(0,t.useEffect)(()=>{I();const e=window.setInterval(()=>{I({silent:!0})},6e4);return()=>{window.clearInterval(e)}},[I]),(0,t.useEffect)(()=>{if(!s)return;const e=e=>{r.current&&!r.current.contains(e.target)&&o(!1)},t=e=>{"Escape"===e.key&&o(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[s]);const D=(0,t.useCallback)(()=>{i.current&&(window.clearTimeout(i.current),i.current=null)},[]);(0,t.useEffect)(()=>()=>{D()},[D]);const M=(0,t.useCallback)(e=>{const t=(e=>e.reduce((e,t)=>{const n=go(t);return n>e?n:e},0))(Array.isArray(e)?e:[]),n=Date.now(),r=t||n;R(e=>{const t=fo(e),n=Math.max(t,r),i=new Date(n).toISOString();return(e=>{try{window.localStorage.setItem(po,e)}catch(t){}})(i),i})},[]);(0,t.useEffect)(()=>{s&&M(w)},[s,w,M]);const F=(0,t.useCallback)(()=>{D(),o(e=>(e||(M(w),I({silent:!0})),!0))},[M,D,I,w]),L=(0,t.useCallback)(()=>{D(),o(!1)},[D]),N=(0,t.useCallback)(()=>{D(),i.current=window.setTimeout(()=>{o(!1),i.current=null},180)},[D]),O=()=>{D(),F()},B=e=>{r.current&&r.current.contains(e.relatedTarget)||N()},j=async e=>{if(!e)return;const t=!e.read_at;if(t){g(e.id);try{await(async e=>(await fn.post("inbox/announcements/".concat(e,"/read"))).data)(e.id),S(t=>t.map(t=>t.id===e.id?k(k({},t),{},{read_at:(new Date).toISOString()}):t)),C(e=>Math.max(e-1,0))}catch(r){var n;if(404===(null===r||void 0===r||null===(n=r.response)||void 0===n?void 0:n.status))return S(t=>t.filter(t=>t.id!==e.id)),t&&C(e=>Math.max(e-1,0)),void I({silent:!0});console.log("Could not mark notification as read",r)}finally{g(null)}}o(!1),e.url&&(window.location.href=e.url)},V=async(e,t)=>{e.preventDefault(),e.stopPropagation();const n=w.find(e=>e.id===t);g(t);try{await(async e=>(await fn.delete("inbox/announcements/".concat(e))).data)(t),S(e=>e.filter(e=>e.id!==t)),n&&!n.read_at&&C(e=>Math.max(e-1,0))}catch(i){var r;if(404===(null===i||void 0===i||null===(r=i.response)||void 0===r?void 0:r.status))return S(e=>e.filter(e=>e.id!==t)),n&&!n.read_at&&C(e=>Math.max(e-1,0)),void I({silent:!0});console.log("Could not dismiss notification",i)}finally{g(null)}},U=x>0,z=fo(A),H=w.some(e=>!e.read_at&&go(e)>z),G=w.length>0?H:U&&!z,q=x>99?"".concat(99,"+"):x;return(0,t.useEffect)(()=>{"function"===typeof n&&n({badgeText:U?"".concat(q):"",hasUnread:U,shouldShowBadge:G,unreadCount:x})},[q,U,n,G,x]),(0,Wa.jsxs)("div",{className:"notifications ".concat(s?"is-open":""),ref:r,onMouseEnter:O,onMouseLeave:B,onFocus:O,onBlur:B,children:[(0,Wa.jsxs)("button",{type:"button",className:"item notifications-menu-item ".concat(U?"has-unread":""),onClick:()=>{s?L():F()},"aria-label":"Notifications".concat(U?" (".concat(x," unread)"):""),"aria-haspopup":"dialog","aria-expanded":s,children:[(0,Wa.jsx)("span",{className:"notifications-row-icon","aria-hidden":"true",children:(0,Wa.jsx)("svg",{viewBox:"0 0 24 24",children:(0,Wa.jsx)("path",{d:"M12 2a6 6 0 0 0-6 6v2.6c0 .8-.2 1.5-.7 2.1L3.4 15c-.4.5-.5 1.2-.2 1.8.3.6.9 1 1.6 1H19.2c.7 0 1.3-.4 1.6-1 .3-.6.2-1.3-.2-1.8l-1.9-2.3c-.5-.6-.7-1.3-.7-2.1V8a6 6 0 0 0-6-6Zm0 20a2.9 2.9 0 0 0 2.6-1.6h-5.2A2.9 2.9 0 0 0 12 22Z"})})}),(0,Wa.jsx)("span",{className:"notifications-row-label",children:"Notifications"}),U&&(0,Wa.jsx)("span",{className:"notifications-badge",children:q}),(0,Wa.jsx)("span",{className:"notifications-row-caret","aria-hidden":"true",children:"\u203a"})]}),(0,Wa.jsx)("span",{className:"notifications-hover-bridge","aria-hidden":"true"}),(0,Wa.jsxs)("div",{className:"notifications-panel ".concat(s?"is-open":""),role:"dialog","aria-hidden":!s,children:[(0,Wa.jsxs)("div",{className:"notifications-panel-header",children:[(0,Wa.jsx)("div",{className:"notifications-title",children:"Notifications"}),(0,Wa.jsxs)("div",{className:"notifications-actions",children:[(0,Wa.jsx)("button",{type:"button",onClick:()=>
2I(),disabled:c,children:"Refresh"}),w.length>0&&(0,Wa.jsx)("button",{type:"button",onClick:async()=>{p(!0);try{await(async()=>(await fn.delete("inbox/announcements")).data)(),S([]),C(0),I({silent:!0})}catch(e){console.log("Could not dismiss all notifications",e)}finally{p(!1)}},disabled:d,children:d?"Dismissing...":"Dismiss all"})]})]}),c&&0===w.length&&(0,Wa.jsx)("div",{className:"notifications-state",children:"Loading notifications..."}),!c&&y&&(0,Wa.jsx)("div",{className:"notifications-state error",children:y}),!c&&!y&&0===w.length&&(0,Wa.jsx)("div",{className:"notifications-state",children:"You have no notifications."}),w.length>0&&(0,Wa.jsx)("ul",{className:"notifications-list",children:w.map(e=>{const t=!e.read_at,n=m===e.id,r=(e=>{var t,n,r;return(null===e||void 0===e||null===(t=e.image)||void 0===t||null===(n=t.sizes)||void 0===n?void 0:n.sm)||(null===e||void 0===e||null===(r=e.image)||void 0===r?void 0:r.url)||null})(e);return(0,Wa.jsxs)("li",{className:"notification-item ".concat(t?"is-unread":""),children:[(0,Wa.jsxs)("button",{type:"button",className:"notification-main",onClick:()=>j(e),disabled:n||d,children:[(0,Wa.jsxs)("div",{className:"notification-thumb ".concat(r?"with-image":""),children:[r&&(0,Wa.jsx)("img",{src:r,alt:"",loading:"lazy"}),!r&&(0,Wa.jsx)("span",{children:((null===e||void 0===e?void 0:e.type)||"!").slice(0,1).toUpperCase()})]}),(0,Wa.jsxs)("div",{className:"notification-content",children:[(0,Wa.jsxs)("div",{className:"notification-title-row",children:[(0,Wa.jsx)("span",{className:"notification-title",children:e.title||"Notification"}),t&&(0,Wa.jsx)("span",{className:"notification-pill",children:"New"})]}),e.message&&(0,Wa.jsx)("p",{className:"notification-message",children:e.message}),(0,Wa.jsx)("span",{className:"notification-date",children:mo(e.published_at||e.created_at)})]})]}),(0,Wa.jsx)("button",{type:"button",className:"notification-dismiss",onClick:t=>V(t,e.id),disabled:n||d,"aria-label":"Dismiss notification",children:"\xd7"})]},e.id)})})]})]})},yo=e=>(null===e||void 0===e?void 0:e.username)||(null===e||void 0===e?void 0:e.email)||"Account",bo=e
2=>{var t;const n=null===e||void 0===e||null===(t=e.team)||void 0===t?void 0:t.subscription;return!0===(null===n||void 0===n?void 0:n.stripe)&&(!0===(null===n||void 0===n?void 0:n.is_past_due)||"past_due"===(null===n||void 0===n?void 0:n.provider_status))},_o=e=>{const t=String(null!==e&&void 0!==e?e:"").trim();return t.startsWith("/")?t:"/".concat(t)},wo=e=>{let n=e.title,r=e.pretitle,i=e.img,a=e.msg,s=e.footer,o=e.className,l=e.cta,c=e.ctaCallback,u=e.ctaClose,h=e.ctaCloseCallback,d=e.ctaSize,p=e.ctaDisabled,f=e.overlayCallback,m=e.overlayClassName,g=e.visible,v=e.style,y=void 0===v?{}:v,b=e.showCloseIcon,_=e.loadingSpinner,w=e.loadingLabel;const S=T((0,t.useState)(!!_),2),E=S[0],x=S[1];g&&_&&(console.log("THIS MODAL IS VISIBLE",n,_),console.log("SPINNER",_,E),setTimeout(()=>x(!1),_));const C=()=>{h&&h()};return(0,Wa.jsxs)("div",{className:"modal_container",children:[(0,Wa.jsx)("div",{className:"overlay ".concat(g?"visible":""," ").concat(m||""),onClick:e=>(e=>{e.preventDefault(),f&&f()})(e)}),(0,Wa.jsxs)("div",{className:"modal ".concat(g?"visible":"","  ").concat(o||""),style:k(k({},y),{},{minHeight:E?"240px":"unset"}),children:[E&&(0,Wa.jsx)(Ss,{label:(0,Wa.jsx)("span",{style:{color:"#fff",fontSize:"18px",fontWeight:"600"},children:null!==w&&void 0!==w?w:"Loading..."})}),!E&&(0,Wa.jsxs)(Wa.Fragment,{children:[b&&(0,Wa.jsx)("span",{className:"glyphicon glyphicon-plus close",onClick:C}),r&&(0,Wa.jsx)("div",{className:"modal_pretitle m-b-8",children:r}),n&&(0,Wa.jsx)("div",{className:"modal_title",children:n}),i&&(0,Wa.jsx)("img",{className:"plan_img m-t-a m-b-a",src:i,width:"120",height:"120"}),a&&(0,Wa.jsx)("div",{className:"msg m-b-32 m-t-16",children:a}),l&&(0,Wa.jsx)("div",{className:"cta ".concat(d||""," ").concat(p?"disabled":""," m-t-36"),onClick:()=>{c&&c()},children:l}),u&&(0,Wa.jsx)("div",{className:"cta-close m-t-32",onClick:C,children:u}),s&&(0,Wa.jsx)("div",{className:"modal_footer",children:s})]})]})]})},So="https://www.productioncrate.com/terms-embed.html",Eo=[/^\/register(\/|$)/,/^\/teams(\/|$)/,/^\/enterprise(\/|$)/,/^\/signup(\/|$)/,/^\/upgrade(\/|$)/],ko=()=>{const e=Xa(),n=e.user,r=e.isAuthenticating,i=e.reloadCurrentUser,a=T((0,t.useState)(!1),2),s=a[0],o=a[1],l=T((0,t.useState)(!1),2),c=l[0],u=l[1];(0,t.useEffect)(()=>{o(!1)},[null===n||void 0===n?void 0:n.id]);const h=(0,t.useMemo)(()=>{if(!n)return!1;const e=n.settings&&"object"===typeof n.settings?n.settings:{},t=e.terms_privacy_optin;return!(!0===t||"true"===t||1===t||"1"===t||!!e.terms_privacy_optin_at)},[n]),d=(0,t.useMemo)(()=>{var e,t;const n=(null===(e=window)||void 0===e||null===(t=e.location)||void 0===t?void 0:t.pathname)||"";return Eo.some(e=>e.test(n))},[]),p=!!n&&!r&&h&&!s&&!d;if(!p)return null;const f=(0,Wa.jsxs)("div",{className:"terms-consent",children:[(0,Wa.jsx)("div",{className:"terms-consent__intro",children:"Please review and accept the Terms and Privacy Policy to continue."}),(0,Wa.jsx)("div",{className:"terms-consent__frame",children:(0,Wa.jsx)("iframe",{title:"ProductionCrate Terms and Conditions",src:So})}),(0,Wa.jsxs)("div",{className:"terms-consent__links",children:[(0,Wa.jsx)("a",{className:"terms-consent__link",target:"_blank",rel:"noreferrer",href:So,children:"Open Terms"}),(0,Wa.jsx)("span",{className:"terms-consent__dot",children:"\xb7"}),(0,Wa.jsx)("a",{className:"terms-consent__link",target:"_blank",rel:"noreferrer",href:"https://www.productioncrate.com/privacy.html",children:"Privacy Policy"})]})]});return(0,Wa.jsx)(wo,{visible:p,title:"Terms and Conditions",msg:f,cta:c?"Saving...":"I Agree",ctaCallback:async()=>{if(c)return;u(!0);const e={terms_privacy_optin:!0,terms_privacy_optin_at:(new Date).toISOString()};try{await or(e);try{await(null===i||void 0===i?void 0:i())}catch(Rc){}o(!0)}catch(Rc){console.log("terms consent update failed",Rc)}finally{u(!1)}},ctaDisabled:c,showCloseIcon:!1,className:"terms-consent-modal"})},xo="/register/come-back-offer",Co={utm_source:"productioncrate",utm_medium:"modal",utm_campaign:"f_pro_convert"},Po="__pcSubscriptionIrregularityModalDismissedUsers",Ao=["localhost","127.0.0.1"],To=()=>"undefined"===typeof window?{}
2:(window[Po]&&"object"===typeof window[Po]||(window[Po]={}),window[Po]),Ro=()=>{var e;const n=Xa(),r=n.user,i=n.isAuthenticating,a=T((0,t.useState)(!1),2),s=a[0],o=a[1],l=null!==(e=null===r||void 0===r?void 0:r.id)&&void 0!==e?e:null,c=(0,t.useMemo)(()=>(()=>{if("undefined"===typeof window)return"https://user.productioncrate.com".concat(xo);const e=window.location.hostname||"",t=Ao.includes(e)||e.endsWith(".localhost"),n=new URL("https://".concat(t||"user-qa.productioncrate.com"===e||"staging.productioncrate.com"===e?"user-qa.productioncrate.com":"user.productioncrate.com").concat(xo));return Object.entries(Co).forEach(e=>{let t=T(e,2),r=t[0],i=t[1];n.searchParams.set(r,i)}),n.toString()})(),[]);(0,t.useEffect)(()=>{o(!!l&&Boolean(To()[l]))},[l]);const u=(0,t.useMemo)(()=>{var e,t,n;return!i&&(!(!r||(e=>{if(!e)return!1;const t=e.settings&&"object"===typeof e.settings?e.settings:{},n=t.terms_privacy_optin;return!(!0===n||"true"===n||1===n||"1"===n||t.terms_privacy_optin_at)})(r))&&39===Number(null===r||void 0===r||null===(e=r.team)||void 0===e||null===(t=e.subscription)||void 0===t||null===(n=t.plan)||void 0===n?void 0:n.id))},[i,r]),h=()=>{l&&(To()[l]=!0),o(!0)};if(!u||s)return null;const d=(0,Wa.jsxs)("div",{className:"subscription-irregularity",children:[(0,Wa.jsx)("p",{className:"subscription-irregularity__lead",children:"We found some irregularities in your subscription due to technical issues."}),(0,Wa.jsxs)("p",{className:"subscription-irregularity__body",children:["Your account will have Pro Access for ",(0,Wa.jsx)("strong",{children:"2 more weeks"}),". After that, you will be ",(0,Wa.jsx)("strong",{children:"downgraded"})," to a Free account."]}),(0,Wa.jsxs)("p",{className:"subscription-irregularity__body subscription-irregularity__body--secondary",children:["To help you renew your membership, here is a special limited-time offer at a ",(0,Wa.jsx)("strong",{children:"50% discount"}),":"]})]});return(0,Wa.jsx)(wo,{visible:!0,pretitle:"Action needed",title:"Subscription information update",msg:d,cta:"Claim offer",ctaCallback:()=>{h(),window.location.href=c},ctaClose:"Dismiss",ctaCloseCallback:h,overlayCallback:h,overlayClassName:"subscription-irregularity-modal__overlay",showCloseIcon:!0,className:"subscription-irregularity-modal"})},Io=()=>{var e,n;const r=Xa(),i=r.user,a=r.isAuthenticating,s=T((0,t.useState)(!1),2),o=s[0],l=s[1],c=T((0,t.useState)(!1),2),u=c[0],h=c[1],d=T((0,t.useState)(null),2),p=d[0],f=d[1],m=T((0,t.useState)(null),2),g=m[0],v=m[1],b=(0,t.useRef)(!1),_=(0,t.useRef)(!1),w=null===i||void 0===i||null===(e=i.team)||void 0===e?void 0:e.subscription,S=Boolean(i),E=!0===(null===i||void 0===i?void 0:i.is_team_owner),x=!0===(null===w||void 0===w?void 0:w.stripe)&&(e=>!0===(null===e||void 0===e?void 0:e.is_past_due)||"past_due"===(null===e||void 0===e?void 0:e.provider_status))(w),C=(e=>{if(!0===(null===e||void 0===e?void 0:e.payment_access_restricted))return!0;const t=null===e||void 0===e?void 0:e.grace_days_ended_at,n=t?new Date(t).getTime():null;return Number.isFinite(n)&&n<=Date.now()})(w),P="undefined"!==typeof window&&"payment-method-updated"===new URLSearchParams(window.location.search).get("billing");(0,t.useEffect)(()=>{h(!1),f(null),v(null),l(!1),b.current=!1,_.current=!1},[null===w||void 0===w?void 0:w.past_due_at,null===i||void 0===i?void 0:i.id]);const A=(0,t.useMemo)(()=>{var e;return{provider:"stripe",payment_access_restricted:C,subscription_id:null===w||void 0===w?void 0:w.id,plan_id:null===w||void 0===w||null===(e=w.plan)||void 0===e?void 0:e.id}},[C,null===w||void 0===w?void 0:w.id,null===w||void 0===w||null===(n=w.plan)||void 0===n?void 0:n.id]),R=(0,t.useCallback)(async(e,t)=>{f("retrying"),v(null);try{const n=await(async()=>(await fn.post("subscriptions/retry-past-due-payment")).data)(),r=(null===n||void 0===n?void 0:n.status)||"payment_failed";f(r),"paid"===r&&br.sendCustomEvent("manual"===e?"past_due_payment_manual_retry_succeeded":"past_due_payment_update_retry_succeeded",k(k({},t),{},{retry_source:e}))}catch(n){console.log("Could not retry the past-due payment",n),f("retry_error"),v("We could not retry your payment right now. Please try again.")}},[]);(0,t.useEffect)(()=>{!a&&S&&x&&!_.current&&(_.current=!0,br.sendCustomEvent("past_due_payment_modal_shown",A))},[A,S,a,x]),(0,t.useEffect)(()=>
2{if(!P||!x||!E||b.current)return;b.current=!0;let e=!0;return(async()=>{if(br.sendCustomEvent("past_due_payment_update_retrying_modal_shown",A),await R("payment_method_update",A),e){const e=new URL(window.location.href);e.searchParams.delete("billing"),window.history.replaceState({},document.title,"".concat(e.pathname).concat(e.search).concat(e.hash))}})(),()=>{e=!1}},[A,E,x,P,R]);const I=()=>{l(!0)};if(a||!i||!x||o)return null;const D=null===w||void 0===w?void 0:w.grace_days_ended_at,M="retrying"===p,F="paid"===p,L=E&&!F&&!M&&"payment_pending"!==p,N=(e=>{var t,n,r;const i=Ka(e);return"Free"!==i&&"Skills"!==i?"PRO"===i?"Pro":i:String(null!==(t=null!==(n=null===e||void 0===e||null===(r=e.product)||void 0===r?void 0:r.name)&&void 0!==n?n:null===e||void 0===e?void 0:e.name)&&void 0!==t?t:"").trim()||("Skills"===i?"Skills":"Pro")})(null===w||void 0===w?void 0:w.plan),O=F?"Payment received":M?"Restoring your ".concat(N," access"):C?"Restore your ".concat(N," access"):"Keep your ".concat(N," access active"),B=(0,Wa.jsxs)("div",{className:"past-due-payment-modal__content",children:[F?(0,Wa.jsxs)("p",{children:["Your payment was received and your ",N," access has been restored. Refresh this page to update your account."]}):M?(0,Wa.jsx)("p",{children:"We are retrying your latest payment with Stripe now."}):"payment_pending"===p?(0,Wa.jsx)("p",{children:"Stripe is still processing your payment. Please wait a moment, then refresh this page."}):"payment_failed"===p?(0,Wa.jsx)("p",{children:"Stripe could not charge the updated payment method. Please try another payment method."}):C?(0,Wa.jsx)("p",{children:"We could not process your latest payment. Premium downloads and Plugins are temporarily paused until your payment is resolved."}):(0,Wa.jsxs)("p",{children:["We could not process your latest payment. Your Pro access remains active until ",(0,Wa.jsx)("strong",{children:y(D)}),"."]}),!E||F||M?F||M?null:(0,Wa.jsx)("p",{children:"Please ask your team owner to update the payment method in Stripe."}):(0,Wa.jsxs)("p",{children:["Update your payment method in Stripe to restore and protect your ",N," access."]}),L&&(0,Wa.jsx)("button",{type:"button",className:"past-due-payment-modal__retry-button",onClick:async()=>{"retrying"!==p&&"payment_pending"!==p&&(br.sendCustomEvent("past_due_payment_manual_retry_clicked",A),await R("manual",A))},children:"Retry payment"}),g&&(0,Wa.jsx)("p",{className:"past-due-payment-modal__error",children:g})]}),j=(0,Wa.jsxs)("p",{className:"past-due-payment-modal__support",children:["Questions or issues? ",(0,Wa.jsx)("a",{href:"mailto:[email protected]",children:"Email [email protected]"})]});return(0,Wa.jsx)(wo,{visible:!0,pretitle:(0,Wa.jsxs)(Wa.Fragment,{children:[(0,Wa.jsx)("i",{className:"glyphicon glyphicon-lock past-due-payment-modal__lock","aria-hidden":"true"}),(0,Wa.jsx)("span",{children:"Payment action needed"})]}),title:O,msg:B,footer:j,cta:!(!E||F||M)&&(u?"Opening Stripe...":"Update payment method"),ctaCallback:async()=>{if(!u){h(!0),v(null),br.sendCustomEvent("past_due_payment_update_clicked",A);try{const e=await(async()=>(await fn.post("subscriptions/payment-method-update")).data)();if(null===e||void 0===e||!e.url)throw new Error("Missing payment-method update URL.");window.location.href=e.url}catch(e){console.log("Could not open the payment-method update page",e),v("We could not open Stripe right now. Please try again."),h(!1)}}},ctaDisabled:u,ctaClose:"Dismiss",ctaCloseCallback:I,overlayCallback:I,overlayClassName:"past-due-payment-modal__overlay",showCloseIcon:!0,className:"past-due-payment-modal"})};const Do={checkout:async()=>null,clearForLogout:()=>{},close:async()=>null,getSnapshot:Ba,open:async()=>null,prepareForLogout:async()=>null,removeItem:async()=>null,setSession:()=>{},subscribe:()=>()=>{}},Mo=()=>{const e=ts().marketplaceEnabled,n=e?Oa(window):Do,r=T((0,t.useState)(()=>n.getSnapshot()),2),i=r[0],a=r[1];return(0,t.useEffect)(()=>{if(e)return n.subscribe(a);a(Ba())},[n,e]),{isEnabled:e,snapshot:i,controller:n}},Fo=()=>(0,Wa.jsxs)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:[(0,Wa.jsx)("path",{d:"M3.75 5.25H6.25L8.45 14.1C8.6 14.7 9.14 15.12 9.76 15.12H18.18C18.76 15.12 19.28 14.75 19.47 14.2L21 9.48H7.18",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.8"}),(0,Wa.jsx)("circle",{cx:"10.25",cy:"19",r:"1.45",fill:"currentColor"}),(0,Wa.jsx)("circle",{cx:"17.5",cy:"19",r:"1.45",fill:"currentColor"})]}),Lo=()=>(0,Wa.jsx)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:(0,Wa.jsx)("path",{d:"M9 3.75H15M4.5 6.75H19.5M18 6.75L17.42 18.33C17.37 19.38 16.5 20.25 15.45 20.25H8.55C7.5 20.25 6.63 19.38 6.58 18.33L6 6.75M10 10.5V16.5M14 10.5V16.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.8"})}),No={"3D":"glyphicon-cube",GRA:"glyphicon-image",SFX:"glyphicon-music",VFX:"glyphicon-film"},Oo={"3D":"/images/marketplace-cart-preview-3d.svg",GRA:"/images/marketplace-cart-preview-graphics.svg",SFX:"/images/marketplace-cart-preview-audio.svg",VFX:"/images/marketplace-cart-preview-vfx.svg"},Bo=Oo.VFX,jo=e=>e?Array.isArray(e)?e:Array.isArray(e.data)?e.data:Array.isArray(e.samples)?e.samples:Array.isArray(e.values)?e.values:Array.isArray(e.waveform)?e.waveform:[]:[],Vo=e=>{var t;return"".concat(e.lineKey,":").concat((null===(t=e.display)||void 0===t?void 0:t.waveformUrl)||"")},Uo=e=>{let t=e.values,n=void 0===t?[]:t;const r=n.length?n:[.1,.16,.12,.2,.28,.22,.42,.68,.48,.32,.2,.14,.1],i=Math.max(Math.floor(r.length/36),1),a=[];for(let o=0;o<36;o+=1){const e=o*i,t=r.slice(e,e+i);if(!t.length)break;const n=t.reduce((e,t)=>
2e+Math.abs(Number(t)||0),0)/t.length;a.push(n)}const s=a.reduce((e,t)=>Math.max(e,t),0)||1;return(0,Wa.jsx)("div",{className:"marketplace-cart-line__waveform ".concat(n.length?"":"is-loading").trim(),children:a.map((e,t)=>(0,Wa.jsx)("span",{style:{height:"".concat(Math.max(e/s*34,4),"px")}},"marketplace-cart-waveform-".concat(t)))})},zo=e=>{var t,n,r,i,a;const s=Number(null===(t=e.display)||void 0===t?void 0:t.amount),o=String(null!==(n=null===(r=e.display)||void 0===r?void 0:r.currency)&&void 0!==n?n:"").trim().toUpperCase();if(Number.isFinite(s)&&o)try{return new Intl.NumberFormat("en-US",{style:"currency",currency:o,minimumFractionDigits:0,maximumFractionDigits:0}).format(s)}catch(c){return"".concat(o," ").concat(Math.round(s))}const l=String(null!==(i=null===(a=e.display)||void 0===a?void 0:a.priceLabel)&&void 0!==i?i:"").trim();return l?l.replace(/([.,]\d{2})(?!.*\d)/,""):"Pending"},Ho=e=>{let n=e.snapshot,r=e.embedded,i=void 0!==r&&r,a=e.checkoutPending,s=void 0!==a&&a,o=e.onCheckout,l=e.onRemove,c=e.showCheckoutAuthPrompt,u=void 0!==c&&c,h=e.loginHref,d=void 0===h?"/login?return_to=/marketplace/cart&cart_intent=checkout":h,p=e.signupHref,f=void 0===p?"/register":p,m=e.subscribeHref,g=void 0===m?"/upgrade":m,v=e.subscribeLabel,y=void 0===v?"Unlimited access":v,b=e.subscribeSubtext,_=void 0===b?"Save with a Pro Plan and access the entire library":b,w=e.continueExploringHref,S=void 0===w?null:w,E=e.assetInteractionMode,x=void 0===E?"event-first":E,C=e.assetOpenEventName,P=void 0===C?"crate:asset:open":C;const A=T((0,t.useState)({}),2),R=A[0],I=A[1],D=(0,t.useRef)(new Set);(0,t.useEffect)(()=>{if("function"!==typeof fetch)return;let e=!1;return n.lines.forEach(t=>{var n;const r=null===(n=t.display)||void 0===n?void 0:n.waveformUrl;if(!r)return;const i=Vo(t);D.current.has(i)||(D.current.add(i),fetch(r).then(e=>e.json()).then(t=>{e||I(e=>k(k({},e),{},{[i]:jo(t)}))}).catch(()=>{e||I(e=>k(k({},e),{},{[i]:[]}))}))}),()=>{e=!0}},[n.lines]);const M=e=>{var t;if("link-only"===x)return;const n=(e=>{let t=e.assetOpenEventName,n=e.line;if("undefined"===typeof window||"function"!==typeof window.CustomEvent||"function"!==typeof window.dispatchEvent)return!1;const r=new window.CustomEvent(t,{cancelable:!0,detail:{assetHref:n.assetHref||null,assetUuid:n.assetUuid||null,lineKey:n.lineKey,source:"marketplace-cart"}}),i=window.dispatchEvent(r);return r.defaultPrevented||!1===i})({assetOpenEventName:P,line:e});!n&&e.assetHref&&"undefined"!==typeof window&&null!==(t=window.location)&&void 0!==t&&t.assign&&window.location.assign(e.assetHref)},F=e=>{let t=e.className,n=e.line,r=e.content,i=e.label,a=void 0===i?null:i;const s="asset"===n.type&&!!n.assetHref,o="asset"===n.type&&"event-first"===x&&s;return"asset"===n.type&&"link-only"===x&&s?(0,Wa.jsx)("a",{"aria-label":a||void 0,className:t,href:n.assetHref,children:r}):o?(0,Wa.jsx)("button",{"aria-label":a||void 0,className:t,onClick:()=>M(n),type:"button",children:r}):(0,Wa.jsx)("span",{className:t,children:r})};return n.lines.length?(0,Wa.jsxs)("div",{className:"marketplace-cart-summary ".concat(i?"is-embedded":""),children:[(0,Wa.jsx)("div",{className:"marketplace-cart-summary__items",children:n.lines.map(e=>{var t;const n=(e=>{var t;return String((null===(t=e.display)||void 0===t?void 0:t.name)||"Untitled item").replace(/^\(4k\)\s*/i,"").trim()||"Untitled item"})(e),r=(e=>{var t,n;return String(null!==(t=null===(n=e.display)||void 0===n?void 0:n.vertical)&&void 0!==t?t:"").trim().toUpperCase()})(e),i=No[r]||"";const a=((e,t)=>{var n;return(null===(n=e.display)||void 0===n?void 0:n.previewUrl)||Oo[t]||Bo})(e,r),s="SFX"===r&&!(null===(t=e.display)||void 0===t||!t.waveformUrl),o=Vo(e),c=(0,Wa.jsxs)(Wa.Fragment,{children:[r&&(0,Wa.jsxs)("span",{className:"marketplace-cart-line__vertical",title:r,children:[i&&(0,Wa.jsx)("span",{className:"glyphicon ".concat(i),"aria-hidden":"true"}),!i&&(0,Wa.jsx)("span",{"aria-hidden":"true",children:r}),(0,Wa.jsx)("span",{className:"screen-reader-only",children:r})]}),(0,Wa.jsx)("span",{className:"marketplace-cart-line__name-text",title:n,children:n})]}),u=s?(0,Wa.jsx)(Uo,{values:R[o]||[]}):(0,Wa.jsx)("img",{className:"marketplace-cart-line__preview-image",src:a,alt:"",loading:"lazy"});return(0,Wa.jsxs)("article",{className:"marketplace-cart-line",children:[F({className:"marketplace-cart-line__preview-action",line:e,label:"Open preview for ".concat(n),content:(0,Wa.jsx)("div",{className:"marketplace-cart-line__preview",children:u})}),(0,Wa.jsxs)("div",{className:"marketplace-cart-line__details",children:[(0,Wa.jsx)("div",{className:"marketplace-cart-line__name",children:F({className:"marketplace-cart-line__name-action",line:e,content:c})}),(0,Wa.jsxs)("div",{className:"marketplace-cart-line__actions",children:[(0,Wa.jsx)("div",{className:"marketplace-cart-line__price",children:zo(e)}),(0,Wa.jsx)("button",{"aria-label":"Remove ".concat(n," from cart"),className:"marketplace-cart-inline-button marketplace-cart-inline-button--icon",onClick:()=>l(e.lineKey),type:"button",children:(0,Wa.jsx)(Lo,{})})]})]})]},e.lineKey)})}),(0,Wa.jsxs)("div",{className:"marketplace-cart-summary__footer",children:[(0,Wa.jsxs)("div",{className:"marketplace-cart-summary__subtotal",children:[(0,Wa.jsx)("span",{children:"Subtotal"}),(0,Wa.jsx)("strong",{children:n.subtotal.formatted||"Pending"})]}),u&&(0,Wa.jsxs)("div",{className:"marketplace-cart-auth-prompt",children:[(0,Wa.jsx)("p",{children:"Log in or sign up to continue to checkout."}),(0,Wa.jsxs)("div",{className:"marketplace-cart-auth-prompt__actions",children:[(0,Wa.jsx)("a",{className:"marketplace-cart-button is-primary",href:d,children:"Log in"}),(0,Wa.jsx)("a",{className:"marketplace-cart-button is-secondary",href:f,children:"Sign up"})]})]}),(0,Wa.jsxs)("div",{className:"marketplace-cart-summary__actions",children:[S&&(0,Wa.jsx)("a",{className:"marketplace-cart-button is-primary",href:S,children:"Continue exploring"}),!S&&(0,Wa.jsxs)(Wa.Fragment,{children:[(0,Wa.jsx)("button",{className:"marketplace-cart-button is-primary is-checkout",disabled:s,onClick:o,type:"button",children:"Checkout"}),(0,Wa.jsx)("div",{className:"marketplace-cart-summary__or",children:"or"}),(0,Wa.jsxs)("a",{className:"marketplace-cart-button is-secondary is-subscribe",href:g,children:[(0,Wa.jsx)("span",{className:"glyphicon glyphicon-star","aria-hidden":"true"}),(0,Wa.jsx)("span",{children:y})]}),(0,Wa.jsx)("p",{className:"marketplace-cart-summary__subscribe-subtext",children:_})]})]}),(0,Wa.jsxs)("div",{className:"marketplace-cart-summary__legal",children:[(0,Wa.jsx)("a",{href:"https://www.productioncrate.com/terms.html",children:"Terms of Service"}),(0,Wa.jsx)("span",{"aria-hidden":"true",children:"\xb7"}),(0,Wa.jsx)("a",{href:"https://www.productioncrate.com/privacy.html",children:"Privacy Policy"})]})]})]}):(0,Wa.jsx)("div",{className:"marketplace-cart-summary ".concat(i?"is-embedded":""),children:(0,Wa.jsxs)("div",{className:"marketplace-cart-empty",children:[(0,Wa.jsx)("div",{className:"marketplace-cart-empty__icon",children:(0,Wa.jsx)(Fo,{})}),(0,Wa.jsx)("h2",{children:"Your cart is empty"}),(0,Wa.jsx)("p",{children:"Add one-time assets or bundles, then come back here to complete checkout."})]})})},Go="/signup/marketplace-cart/s?checkout_item_type=marketplace_cart",qo=new Set(["staging.productioncrate.com","user-qa.productioncrate.com"]),Ko=new Set(["localhost","127.0.0.1"]),Wo=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;e.location.href=function(){var e;const t=(null===(e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).location)||void 0===e?void 0:e.hostname)||"";if(Ko.has(t)||t.endsWith(".localhost"))return Go;const n=qo.has(t)?"user-qa.productioncrate.com":"user.productioncrate.com";return"https://".concat(n).concat(Go)}(e)};const $o=["a[href]","button:not([disabled])","textarea:not([disabled])","input:not([disabled])","select:not([disabled])",'[tabindex]:not
2([tabindex="-1"])'].join(","),Yo=(e,n)=>{(0,t.useEffect)(()=>{if(!n||!e.current)return;const t=e.current,r=(e=>e?Array.from(e.querySelectorAll($o)).filter(e=>!e.hasAttribute("disabled")&&"true"!==e.getAttribute("aria-hidden")):[])(t),i=r[0],a=r[r.length-1];i&&document.activeElement&&!t.contains(document.activeElement)&&i.focus();const s=e=>{if("Tab"===e.key&&0!==r.length)return e.shiftKey&&document.activeElement===i?(e.preventDefault(),void a.focus()):void(e.shiftKey||document.activeElement!==a||(e.preventDefault(),i.focus()))};return document.addEventListener("keydown",s),()=>{document.removeEventListener("keydown",s)}},[n,e])};const Xo=()=>(0,Wa.jsxs)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:[(0,Wa.jsx)("path",{d:"M3.75 5.25H6.25L8.45 14.1C8.6 14.7 9.14 15.12 9.76 15.12H18.18C18.76 15.12 19.28 14.75 19.47 14.2L21 9.48H7.18",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.8"}),(0,Wa.jsx)("circle",{cx:"10.25",cy:"19",r:"1.45",fill:"currentColor"}),(0,Wa.jsx)("circle",{cx:"17.5",cy:"19",r:"1.45",fill:"currentColor"})]}),Jo=e=>{let t=e.direction;return(0,Wa.jsx)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:(0,Wa.jsx)("path",{d:"right"===t?"M9 5.5L15.5 12 9 18.5":"M15 5.5L8.5 12 15 18.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})},Qo=e=>e.visible?(0,Wa.jsx)("span",{"aria-hidden":"true",className:"marketplace-cart-status",children:(0,Wa.jsx)("span",{className:"marketplace-cart-status__spinner"})}):null,Zo=e=>{var t;return null!==e&&void 0!==e&&null!==(t=e.display)&&void 0!==t&&t.typeLabel?e.display.typeLabel:"bundle"===(null===e||void 0===e?void 0:e.type)?"Bundle":"Asset"},el=e=>{var t;let n=e.cart,r=e.title;return(0,Wa.jsxs)("section",{className:"marketplace-cart-merge__column","aria-label":r,children:[(0,Wa.jsxs)("div",{className:"marketplace-cart-merge__column-header",children:[(0,Wa.jsxs)("div",{children:[(0,Wa.jsx)("span",{children:r}),(0,Wa.jsxs)("strong",{children:[(null===n||void 0===n?void 0:n.itemCount)||0," items"]})]}),(0,Wa.jsx)("div",{className:"marketplace-cart-merge__subtotal",children:(null===n||void 0===n||null===(t=n.subtotal)||void 0===t?void 0:t.formatted)||"Pending"})]}),(0,Wa.jsxs)("div",{className:"marketplace-cart-merge__list",role:"list",children:[((null===n||void 0===n?void 0:n.lines)||[]).map(e=>{var t,n;return(0,Wa.jsxs)("div",{className:"marketplace-cart-merge__line",role:"listitem",children:[(0,Wa.jsxs)("div",{className:"marketplace-cart-merge__line-copy",children:[(0,Wa.jsx)("strong",{children:(null===(t=e.display)||void 0===t?void 0:t.name)||"Untitled item"}),(0,Wa.jsx)("span",{children:Zo(e)})]}),(0,Wa.jsx)("div",{className:"marketplace-cart-merge__line-price",children:(null===(n=e.display)||void 0===n?void 0:n.priceLabel)||"Pending"})]},e.lineKey)}),(!(null!==n&&void 0!==n&&n.lines)||!n.lines.length)&&(0,Wa.jsx)("div",{className:"marketplace-cart-merge__empty",children:"No items"})]})]})},tl=e=>{var n,i;let a=e.snapshot,s=e.controller,o=e.topOffset,l=void 0===o?0:o;const c=(0,t.useRef)(null),u=(0,t.useRef)(null),h=T((0,t.useState)(""),2),d=h[0],p=h[1],f=T((0,t.useState)(!1),2),m=f[0],g=f[1],v=T((0,t.useState)(""),2),y=v[0],b=v[1],_=!(null!==(n=s.session)&&void 0!==n&&n.user)&&!(null!==(i=s.session)&&void 0!==i&&i.isAuthenticating),w=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.environment,r=t.pathname,i=t.locationObject;const a=_o(r),s=i||("undefined"!==typeof window?window.location:null),o=String(null!==(e=null===s||void 0===s?void 0:s.hostname)&&void 0!==e?e:"").trim();return"qa"===n||o.includes("user-qa")||o.includes("staging")?"https://user-qa.productioncrate.com".concat(a):"development"===n||(e=>"localhost"===e||"127.0.0.1"===e||e.endsWith(".localhost"))(o)?"http://localhost:3000".concat(a):"https://user.productioncrate.com".concat(a)}({pathname:_?"/register/cart-subscribe":"/upgrade?campaign=cart-subscribe"}),S=a.itemCount>99?"99+":"".concat(a.itemCount),E={"--marketplace-cart-top-offset":"".concat(Math.max(0,Number(l)||0),"px")},k=a.mergeComparison;Yo(c,a.isOpen),Yo(u,a.mergeRequired),(0,t.useEffect)(()=>
2{if(!a.isOpen)return;const e=e=>{"Escape"===e.key&&s.close()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[s,a.isOpen]),(0,t.useEffect)(()=>{const e=e=>{var t;const n=null===e||void 0===e||null===(t=e.detail)||void 0===t?void 0:t.reason;"item-added"!==n?"item-removed"===n&&p("Item removed from cart"):p("Item added to cart")};return window.addEventListener("crate:cart:changed",e),()=>{window.removeEventListener("crate:cart:changed",e)}},[]),(0,t.useEffect)(()=>{if(!d)return;const e=window.setTimeout(()=>{p("")},1500);return()=>{window.clearTimeout(e)}},[d]);const x=async e=>{b(e);try{await s.resolveMerge(e)}finally{b("")}},C=(0,Wa.jsxs)(Wa.Fragment,{children:[(0,Wa.jsx)("div",{className:"marketplace-cart-live-region","aria-live":"polite",children:d}),(0,Wa.jsxs)("div",{className:"marketplace-cart-layer",ref:c,style:E,children:[(a.itemCount>0||a.isOpen)&&(0,Wa.jsxs)("button",{"aria-label":a.isOpen?"Collapse cart":"Open cart",className:"marketplace-cart-drawer-tab ".concat(a.isOpen?"is-open":""),onClick:()=>{a.isOpen?s.close():s.open()},type:"button",children:[(0,Wa.jsx)("span",{className:"marketplace-cart-drawer-tab__chevron",children:(0,Wa.jsx)(Jo,{direction:a.isOpen?"right":"left"})}),!a.isOpen&&(0,Wa.jsx)("span",{className:"marketplace-cart-drawer-tab__icon",children:(0,Wa.jsx)(Xo,{})}),!a.isOpen&&a.itemCount>0&&(0,Wa.jsx)("span",{className:"marketplace-cart-drawer-tab__badge","aria-hidden":"true",children:S})]}),(0,Wa.jsxs)("aside",{"aria-hidden":!a.isOpen,"aria-label":"Shopping cart",className:"marketplace-cart-drawer ".concat(a.isOpen?"is-open":""),role:"dialog",children:[(0,Wa.jsxs)("div",{className:"marketplace-cart-drawer__header",children:[(0,Wa.jsxs)("div",{className:"marketplace-cart-drawer__copy",children:[(0,Wa.jsx)("h2",{children:"Shopping Cart"}),(0,Wa.jsx)("p",{children:"Buy lifetime access to individual assets and Plugins."})]}),(0,Wa.jsx)("div",{className:"marketplace-cart-drawer__actions",children:(0,Wa.jsx)(Qo,{visible:m||"syncing"===a.syncState})})]}),(0,Wa.jsx)("div",{className:"marketplace-cart-drawer__body",children:(0,Wa.jsx)(Ho,{assetInteractionMode:"event-first",assetOpenEventName:"crate:asset:open",checkoutPending:m,embedded:!0,loginHref:"/login?return_to=/marketplace/cart&cart_intent=checkout",onCheckout:async()=>{if(_)Wo();else{g(!0);try{await s.checkout()}finally{g(!1)}}},onRemove:e=>s.removeItem(e),signupHref:"/register",subscribeHref:w,subscribeLabel:"Unlimited access",snapshot:a})})]})]}),a.mergeRequired&&(0,Wa.jsxs)("div",{className:"marketplace-cart-merge",children:[(0,Wa.jsx)("div",{className:"marketplace-cart-merge__overlay"}),(0,Wa.jsxs)("div",{className:"marketplace-cart-merge__dialog",ref:u,role:"dialog",children:[(0,Wa.jsx)("h2",{children:"You already have items in your cart"}),(0,Wa.jsx)("p",{children:"Choose how to reconcile your local cart and account cart before checkout."}),(0,Wa.jsxs)("div",{className:"marketplace-cart-merge__comparison",children:[(0,Wa.jsx)(el,{cart:null===k||void 0===k?void 0:k.localCart,title:"This cart"}),(0,Wa.jsx)(el,{cart:null===k||void 0===k?void 0:k.accountCart,title:"Account cart"})]}),(0,Wa.jsxs)("div",{className:"marketplace-cart-merge__actions",children:[(0,Wa.jsx)("button",{autoFocus:!0,className:"marketplace-cart-button is-primary",disabled:!!y,onClick:()=>x("keep-both-carts"),type:"button",children:"keep-both-carts"===y?"Working...":"Merge carts"}),(0,Wa.jsx)("button",{className:"marketplace-cart-button is-secondary",disabled:!!y,onClick:()=>x("keep-account-cart"),type:"button",children:"Use account cart"}),(0,Wa.jsx)("button",{className:"marketplace-cart-inline-button is-standalone",disabled:!!y,onClick:()=>x("keep-local-cart"),type:"button",children:"Use this cart"})]})]})]})]});return"undefined"!==typeof document&&document.body?(0,r.createPortal)(C,document.body):C},nl={development:"https://user-qa.productioncrate.com",qa:"https://user-qa.productioncrate.com",production:"https://user.productioncrate.com",webapp:"https://user.productioncrate.com"},rl=["localhost","127.0.0.1"],il=e=>{let t=e.external,n=e.environment;return t?(()=>{const e=window.location.hostname||"";return rl.includes(e)||e.endsWith(".localhost")})()?window.location.origin:nl[n]:""},al=(()=>
2{if("app.productioncrate.com"===window.location.hostname)return"webapp";let e;return e="localhost"===window.location.hostname||window.location.hostname.includes("crate-webapp.pages.dev")?"development":window.location.hostname.includes("user-qa")||window.location.hostname.includes("staging")?"qa":"production",e})(),sl=e=>String(null!==e&&void 0!==e?e:"").trim().toLowerCase().replace(/[^a-z0-9]+/g,"-"),ol=e=>Boolean(null===e||void 0===e?void 0:e.analytics)&&!0===(null===e||void 0===e?void 0:e.availableAppsLoaded),ll=(e,n)=>{var i,a,s,o,l,c,d;let p=e.minimal,m=void 0!==p&&p,g=e.external,v=void 0!==g&&g,y=e.newUrlScheme,b=void 0===y||y,_=e.searchCallback,w=void 0===_?"testSearch":_;const S=(0,t.useRef)(null),E=(0,t.useRef)(null),x=(0,t.useRef)(null),C=(0,t.useRef)(null),P=["development","qa"].includes(al)||b,A=Xa(),R=A.user,I=A.unloadUser,M=A.focusMode,F=A.isAuthenticating,L=A.assetsAvailable,N=(A.reloadCurrentUser,ts()),O=N.isResolved,B=N.marketplaceEnabled,j=N.resolvedCohort,V=Mo(),U=V.isEnabled,z=V.snapshot,H=V.controller,G=T((0,t.useState)(""),2),q=(G[0],G[1]),K=T((0,t.useState)(!1),2),W=K[0],$=(K[1],T((0,t.useState)(!1),2)),Y=$[0],X=$[1],J=T((0,t.useState)(!1),2),Q=(J[0],J[1]),Z=T((0,t.useState)(!1),2),ee=(Z[0],Z[1],T((0,t.useState)(!1),2)),te=(ee[0],ee[1],T((0,t.useState)("vfx"),2)),ne=(te[0],te[1]),re=T((0,t.useState)("vfx"),2),ie=re[0],ae=re[1],se=T((0,t.useState)(125),2),oe=se[0],le=se[1],ce=T((0,t.useState)(!1),2),ue=ce[0],he=ce[1],de=T((0,t.useState)({right:12,top:0}),2),pe=de[0],fe=de[1],me=T((0,t.useState)(null!==(i=null===(a=window)||void 0===a||null===(s=a.location)||void 0===s?void 0:s.href)&&void 0!==i?i:""),2),ge=me[0],ve=me[1],ye=nl[al],be=il({external:v,environment:al}),_e=["rendercrate","footagecrate","graphicscrate","soundscrate"].some(e=>window.location.hostname.includes(e)),we=yo(R),Se=(e=>{const t=(null===e||void 0===e?void 0:e.email)||"",n=yo(e);return t&&t!==n?t:""})(R),Ee=String(Ka(null===R||void 0===R||null===(o=R.team)||void 0===o||null===(l=o.subscription)||void 0===l?void 0:l.plan)||"").trim(),ke=qa(null===R||void 0===R||null===(c=R.team)||void 0===c||null===(d=c.subscription)||void 0===d?void 0:d.plan),xe=ke,Ce=bo(R),Pe=(e=>{let t=e.hasPremiumAssetDownloads,n=e.user;return Boolean(!t&&(null===n||void 0===n?void 0:n.team)&&!bo(n))})({hasPremiumAssetDownloads:ke,user:R}),Ae=(e=>{var t,n;return!0!==(null===e||void 0===e||null===(t=e.team)||void 0===t||null===(n=t.subscription)||void 0===n?void 0:n.stripe)})(R),Te=(e=>{var t,n;return!0!==(null===e||void 0===e||null===(t=e.team)||void 0===t||null===(n=t.subscription)||void 0===n?void 0:n.paypal)})(R),Re=U&&!ke&&!Ce,Ie=function(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.environment,i=n.pathname,a=n.locationObject;const s=_o(i),o=a||("undefined"!==typeof window?window.location:null),l=String(null!==(e=null===o||void 0===o?void 0:o.hostname)&&void 0!==e?e:"").trim(),c=String(null!==(t=null===o||void 0===o?void 0:o.origin)&&void 0!==t?t:"").replace(/\/+$/,"");return"qa"===r||l.includes("user-qa")||l.includes("staging")?"https://staging.productioncrate.com".concat(s):"production"===r||"webapp"===r?"https://www.productioncrate.com".concat(s):c?"".concat(c).concat(s):"https://www.productioncrate.com".concat(s)}({environment:al,pathname:"/my-assets"}),De=T((0,t.useState)(!1),2),Me=De[0],Fe=De[1],Le=T((0,t.useState)(!1),2),Ne=Le[0],Oe=Le[1],Be=T((0,t.useState)(!1),2),je=Be[0],Ve=Be[1],Ue=T((0,t.useState)(""),2),ze=Ue[0],He=Ue[1],Ge=T((0,t.useState)({badgeText:"",hasUnread:!1}),2),qe=Ge[0],Ke=Ge[1],We=T((0,t.useState)([]),2),$e=We[0],Ye=We[1],Xe=T((0,t.useState)(!1),2),Je=Xe[0],Qe=Xe[1],Ze=u.announcementsEnabled,et=T((0,t.useState)(0),2),tt=et[0],nt=et[1],rt=T((0,t.useState)({thankYou:"Thanks, your profile is 100% complete! Time to make it awesome!",name:"how_you_found_us",flagName:"crate.surveyFlagId1",questions:[{labelAccent:"1 of 3",label:"What is your profession?",value:"profession",cta:"Next",answers:[{label:"\ud83c\udfa5 Vlogger",value:"vlogger",selected:!1},{label:"\ud83d\udcbc Business owner",value:"business-owner",selected:!1},{label:"\ud83c\udfa8 VFX artist",value:"vfx-artist",selected:!1},{label:"\ud83d\udd8c\ufe0f Motion graphics artist",value:"motion-graphics-artist",selected:!1},{label:"\ud83d\udcda Teacher",value:"teacher",selected:!1},{label:"\ud83c\udf93 Student",value:"student",selected:!1},{label:"\u2702\ufe0f Video editor",value:"video-editor",selected:!1},{label:"\ud83c\udfac Filmmaker",value:"filmmaker",selected:!1},{label:"\ud83d\udcbb Developer",value:"developer",selected:!1},{label:"\u2753 Other",value:"other",selected:!1}]},{labelAccent:"2 of 3",label:"What software do you use?",value:"software_preferences",cta:"Next",answers:[{label:"After Effects",value:"after-effects",selected:!1,icon:"https://user.productioncrate.com/images/logos/after_effects.svg"},{label:"iMovie",value:"imovie",selected:!1,icon:"https://user.productioncrate.com/images/logos/imovie.svg"},{label:"Adobe Premiere",value:"adobe-premiere",selected:!1,icon:"https://user.productioncrate.com/images/logos/premiere_pro.svg"},{label:"DaVinci Resolve",value:"davinci-resolve",selected:!1,icon:"https://user.productioncrate.com/images/logos/davinci.svg"},{label:"Final Cut",value:"final-cut",selected:!1,icon:"https://user.productioncrate.com/images/logos/final_cut.svg"},{label:"Wondershare Filmora",value:"wondershare-filmora",selected:!1,icon:"https://user.productioncrate.com/images/logos/filmora.svg"},{label:"Sony Vegas",value:"sony-vegas",selected:!1,icon:"https://user.productioncrate.com/images/logos/sony_vegas.svg"},{label:"BlackMagic Fusion",value:"blackmagic-fusion",selected:!1,icon:"https://user.productioncrate.com/images/logos/blackmagic_fusion.png"},{label:"Kinemaster",value:"kinemaster",selected:!1,icon:"https://user.productioncrate.com/images/logos/kine_master.svg"},{label:"Nuke",value:"nuke",selected:!1,icon:"https://user.productioncrate.com/images/logos/nuke.svg"},{label:"Blender",value:"blender",selected:!1,icon:"https://user.productioncrate.com/images/logos/blender.svg"},{label:"Power Director",value:"power-director",selected:!1,icon:"https://user.productioncrate.com/images/logos/power_director.png"},{label:"Photoshop",value:"photoshop",selected:!1,icon:"https://user.productioncrate.com/images/logos/photoshop.svg"},{label:"CapCut",value:"capcut",selected:!1,icon:"https://user.productioncrate.com/images/logos/capcut.png"},{label:"Cinema 4D",value:"cinema-4d",selected:!1,icon:"https://user.productioncrate.com/images/logos/cinema4d.png"},{label:"Houdini",value:"houdini",selected:!1,icon:"https://user.productioncrate.com/images/logos/houdini.png"},{label:"Maya",value:"maya",selected:!1,icon:"https://user.productioncrate.com/images/logos/maya.png"},{label:"Unity",value:"unity",selected:!1,icon:"https://user.productioncrate.com/images/logos/unity.svg"},{label:"Unreal Engine",value:"unreal-engine",selected:!1,icon:"https://user.productioncrate.com/images/logos/unreal_engine.png"},{label:"Other",value:"other",selected:!1,icon:null}]},{labelAccent:"3 of 3",label:"What is your usage purpose?",value:"usage_purpose",cta:"Send",answers:[{label:"Not Sure",value:"not-sure",selected:!1},{label:"School Project",value:"school-project",selected:!1},{label:"Films",value:"feature-film",selected:!1},{label:"Commercials",value:"client-projects-commercials",selected:!1},{label:"YouTube",value:"youtube",selected:!1},{label:"Just exploring!",value:"just-browsing",selected:!1},{label:"Games",value:"games",selected:!1},{label:"Instagram",value:"instagram",selected:!1},{label:"TikTok",value:"tiktok",selected:!1},{label:"Music Videos",value:"music-videos",selected:!1},{label:"Graphics",value:"graphic-design",selected:!1},{label:"VFX Shots",value:"vfx-shots",selected:!1},{label:"Other Socials",value:"other-socials",selected:!1},{label:"Learning/Practice",value:"learning-practice",selected:!1},{label:"Other",value:"other",selected:!1}]}]}),2),it=rt[0],at=rt[1],st=D(()=>{var e,t;let n=(null===(e=window)||void 0===e||null===(t=e.location)||void 0===t?void 0:t.pathname)||"";if(ge&&ge!==window.location.href&&(console.log("HEADER HREF > currentUrl",ge,"new",window.location.href),ve(window.location.href)),n.includes("/search")){const e=new URLSearchParams(window.location.search).get("main_category");["all","vfx","sfx","3d","graphics"].some(t=>t===e)&&ae(e)}},100);(0,t.useEffect)(()=>()=>{st()},[st]);const ot=!!R&&(!1===R.email_verified||R.email_verified&&je);(0,t.useEffect)(()=>
2{if("undefined"===typeof document)return;const e=document.body;if(!e)return;let t=null;const n=()=>{const t=document.querySelectorAll(".header .banner");let n=0;t.forEach(e=>{const t=e.getBoundingClientRect();n=Math.max(n,t.height||0)}),e.style.setProperty("--fixed-bottom-banner-offset","".concat(Math.ceil(n),"px"))};return ot?(e.classList.add("has-fixed-bottom-banner"),t=window.requestAnimationFrame(n),window.addEventListener("resize",n)):(e.classList.remove("has-fixed-bottom-banner"),e.style.setProperty("--fixed-bottom-banner-offset","0px")),()=>{null!==t&&window.cancelAnimationFrame(t),window.removeEventListener("resize",n),e.classList.remove("has-fixed-bottom-banner"),e.style.setProperty("--fixed-bottom-banner-offset","0px")}},[ot]),(0,t.useEffect)(()=>{ne(ie)},[ie,ne]),(0,t.useEffect)(()=>{if((()=>{try{(h("cr_sess_refresh_local")||h("cr_sess_local"))&&(console.log("user has faulty cookies, deleting..."),f("cr_sess_refresh_local"),f("cr_sess_local"),br.sendCustomEvent("deleteFaultyCookies"))}catch(e){console.error("Error trying to delete cookies",e)}})(),!window.location.pathname.includes("/search"))return;let e="";const t=window.location.pathname.split("/"),n=new URLSearchParams(window.location.search).get("main_category");"search"===t[1]&&t[2]?e=decodeURIComponent(t[2]):"search"!==t[1]||t[2]||(e=""),e=e.replace("+"," "),e.length>0&&(console.log("HEADER RESOLUTION > search_query",e),q(e)),!n&&window.location.host.includes("footagecrate")&&ne("vfx"),!n&&window.location.host.includes("rendercrate")&&ne("3d"),!n&&window.location.host.includes("graphicscrate")&&ne("graphics"),!n&&window.location.host.includes("soundscrate")&&ne("sfx"),["all","vfx","sfx","3d","graphics"].some(e=>e===n)&&(console.log("HEADER RESOLUTION > category",n),ne(n)),(e.length>0||["vfx","sfx","3d","graphics"].some(e=>e===n))&&(Q(!0),setTimeout(()=>{E&&E.current&&E.current.focus()},100)),setTimeout(()=>{E&&E.current&&E.current.focus()},100),window.debugDomainHeader||(window.debugDomainHeader=()=>{console.log("DEBUG DOMAIN"),console.log({baseUrl:ye,baseHref:be,env:al,external:v,newUrlScheme:b})})},[]),(0,t.useEffect)(()=>{if("undefined"===typeof window)return;const e=()=>{var e,t;const n=Math.ceil((null===(e=S.current)||void 0===e||null===(t=e.getBoundingClientRect)||void 0===t?void 0:t.call(e).height)||125);le(e=>e===n?e:n)};if(e(),"function"===typeof window.ResizeObserver&&S.current){const t=new window.ResizeObserver(e);return t.observe(S.current),()=>{t.disconnect()}}return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),(0,t.useEffect)(()=>{try{br.view("page",{target:window.location.href})}catch(Rc){console.log("Error while sending page view",Rc)}},[ge]),(0,t.useEffect)(()=>{var e,t,n,r;if(!R)return;console.log("SETTINGS",R.settings);if(null===(e=R.settings)||void 0===e?void 0:e.skipUserProfile)return;const i=null===(t=R.settings)||void 0===t?void 0:t.profession,a=null===(n=R.settings)||void 0===n?void 0:n.software_preferences,s=null===(r=R.settings)||void 0===r?void 0:r.usage_purpose;if(i&&a&&s)return;!i||a||s||nt(1),i&&a&&!s&&nt(2);const o=[i,a,s];at(e=>{let t=k({},e);return o.forEach((e,n)=>{e&&(Array.isArray(e)&&t.questions[n].answers.forEach(t=>{t.selected=e.includes(t.value),t.selected&&console.log("ans in array",t,e)}),"string"===typeof e&&t.questions[n].answers.forEach(t=>{t.selected=t.value===e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,""),t.selected&&console.log("ans as string",t,e)}))}),t}),setTimeout(()=>Ve(!0),2e3)},[R]),(0,t.useEffect)(()=>{let e=!0;return F?()=>{e=!1}:R?(Qe(!1),(async()=>{const e=await fn.get("bundles/purchased"),t=null===e||void 0===e?void 0:e.data;return Array.isArray(t)?t:Array.isArray(null===t||void 0===t?void 0:t.data)?t.data:[]})().then(t=>{e&&Ye(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=new Map;
2return(Array.isArray(e)?e:[]).forEach(e=>{var n,r;[null===e||void 0===e||null===(n=e.bundle)||void 0===n?void 0:n.apps,null===e||void 0===e?void 0:e.apps,null===e||void 0===e||null===(r=e.bundle)||void 0===r?void 0:r.plugins,null===e||void 0===e?void 0:e.plugins].forEach(e=>{(Array.isArray(e)?e:[]).forEach(e=>{const n=e&&"object"===typeof e?e:{name:String(null!==e&&void 0!==e?e:"").trim()},r=[null!==n&&void 0!==n&&n.id?"id:".concat(String(n.id).trim()):"",null!==n&&void 0!==n&&n.slug?"slug:".concat(sl(n.slug)):"",null!==n&&void 0!==n&&n.app_slug?"slug:".concat(sl(n.app_slug)):"",null!==n&&void 0!==n&&n.appSlug?"slug:".concat(sl(n.appSlug)):"",null!==n&&void 0!==n&&n.name?"name:".concat(sl(n.name)):"",null!==n&&void 0!==n&&n.title?"title:".concat(sl(n.title)):""].find(e=>!!e);r&&(t.has(r)||t.set(r,n))})})}),Array.from(t.values())}(t))}).catch(t=>{e&&(console.log("Error loading available apps from purchased bundles",t),Ye([]))}).finally(()=>{e&&Qe(!0)}),()=>{e=!1}):(Ye([]),Qe(!0),()=>{e=!1})},[R,F]),(0,t.useEffect)(()=>{if(F)return;const e=()=>{const e={user:R,availableApps:R?$e:[],availableAppsLoaded:Je,analytics:br,marketplace:{cohort:j,enabled:B,isResolved:O}};window.getGlobalSession=()=>e,"function"!==typeof window.waitForGlobalSession&&(window.waitForGlobalSession=()=>{const e="function"===typeof window.getGlobalSession?window.getGlobalSession():null;return ol(e)?Promise.resolve(e):new Promise(e=>{const t=n=>{ol(null===n||void 0===n?void 0:n.detail)&&(window.removeEventListener("crate:header:session",t),window.removeEventListener("crate:header:ready",t),e(n.detail))};window.addEventListener("crate:header:session",t),window.addEventListener("crate:header:ready",t)})}),window.dispatchEvent(new CustomEvent("crate:header:session",{detail:e})),!window.__crateHeaderReady&&ol(e)&&(window.__crateHeaderReady=!0,window.dispatchEvent(new CustomEvent("crate:header:ready",{detail:e}))),window.globalSessionCallback&&"function"===typeof window.globalSessionCallback&&window.globalSessionCallback(R,br)};"complete"===document.readyState?e():window.addEventListener("load",e,{once:!0})},[R,$e,Je,F,O,B,j]),(0,t.useEffect)(()=>{!Re&&z.isOpen&&H.close()},[z.isOpen,H,Re]),(0,t.useEffect)(()=>{U&&H.setSession({user:R,isAuthenticating:F})},[F,H,U,R]),(0,t.useEffect)(()=>{if(!O)return;const e=function(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;if(null===n||void 0===n||null===(e=n.location)||void 0===e||!e.href||null===n||void 0===n||null===(t=n.history)||void 0===t||!t.replaceState)return!1;try{var r;const e=new URL(n.location.href);if("1"!==e.searchParams.get(Si))return!1;e.searchParams.delete(Si);const t="".concat(e.pathname).concat(e.search).concat(e.hash);return n.history.replaceState({},(null===(r=n.document)||void 0===r?void 0:r.title)||"",t),!0}catch(i){return!1}}(window);e&&U&&!ke&&H.open()},[ke,O,H,U]),(0,t.useEffect)(()=>{if(tt&&tt>0){const e={};e[it.questions[tt-1].value]=it.questions[tt-1].answers.filter(e=>e.selected).map(e=>e.value),or(e)}3===tt&&Oe(it.thankYou)},[tt]);const lt=()=>{Ve(!1),Fe(!1);const e={skipUserProfile:tt>=3};ze&&(e.usedForText=ze),or(e)},ct=async()=>{U&&await H.prepareForLogout(),"staging.productioncrate.com"!==window.location.hostname?"user.productioncrate.com"===window.location.hostname||"user-qa.productioncrate.com"===window.location.hostname?I():window.location.href="https://user.productioncrate.com/logout":window.location.href="https://user-qa.productioncrate.com/logout"},ut=(0,t.useCallback)(e=>{const t=Boolean(null===e||void 0===e?void 0:e.hasUnread),n=t?"".concat((null===e||void 0===e?void 0:e.badgeText)||""):"";Ke(e=>e.hasUnread===t&&e.badgeText===n?e:{badgeText:n,hasUnread:t})},[]),ht=(0,t.useCallback)(()=>{C.current&&(window.clearTimeout(C.current),C.current=null)},[]),dt=(0,t.useCallback)(()=>{const e=x.current;if(!e||"undefined"===typeof window)return;const t=e.getBoundingClientRect(),n=window.innerWidth||document.documentElement.clientWidth||0;fe({top:Math.max(12,Math.round(t.bottom+8)),right:Math.max(12,Math.round(n-t.right))})},[]),pt=(0,t.useCallback)(()=>{ht(),dt(),he(!0)}
2,[ht,dt]),ft=(0,t.useCallback)(()=>{ht(),C.current=window.setTimeout(()=>{he(!1),C.current=null},120)},[ht]),mt=(0,t.useCallback)(()=>{ft()},[ft]);(0,t.useEffect)(()=>()=>{ht()},[ht]),(0,t.useEffect)(()=>{if(ue)return dt(),window.addEventListener("resize",dt),window.addEventListener("scroll",dt,!0),()=>{window.removeEventListener("resize",dt),window.removeEventListener("scroll",dt,!0)}},[ue,dt]);const gt=ue&&"undefined"!==typeof document?(0,r.createPortal)((0,Wa.jsxs)("div",{className:"account-menu-submenu is-open",id:"js-account-menu",onMouseEnter:pt,onMouseLeave:ft,onFocus:pt,onBlur:mt,style:{"--account-menu-top":"".concat(pe.top,"px"),right:"".concat(pe.right,"px"),top:"".concat(pe.top,"px")},children:[R&&(0,Wa.jsxs)("div",{className:"account-identity",children:[(0,Wa.jsx)(Ys,{showPremiumStar:ke,user:R}),(0,Wa.jsxs)("div",{className:"account-identity__text",children:[(0,Wa.jsx)("div",{className:"account-identity__name",children:we}),Se&&(0,Wa.jsx)("div",{className:"account-identity__email",children:Se})]})]}),null!==L&&R&&(0,Wa.jsxs)("div",{className:"item head",children:[L," downloads remaining today."]}),Ee&&R&&(0,Wa.jsxs)("div",{className:"item head",children:["User Level: ",Ee]}),Ze&&(0,Wa.jsx)(vo,{onIndicatorChange:ut}),R&&(0,Wa.jsxs)("a",{className:"item show-logged-free show-logged-pro",href:"".concat(be,"/account"),children:[(0,Wa.jsx)("i",{className:"glyphicon glyphicon-user"}),"Member Page"]}),R&&(0,Wa.jsxs)("a",{className:"item show-logged-free show-logged-pro",href:Ie,children:[(0,Wa.jsx)("i",{className:"glyphicon glyphicon-image"}),"My Assets"]}),!R&&(0,Wa.jsxs)(Wa.Fragment,{children:[(0,Wa.jsxs)("a",{className:"item show-logged-out",href:"".concat(be,"/login"),children:[(0,Wa.jsx)("i",{className:"glyphicon glyphicon-user"}),"Login"]}),(0,Wa.jsxs)("a",{className:"item show-logged-out",href:"".concat(be,"/register"),children:[(0,Wa.jsx)("i",{className:"glyphicon glyphicon-lock"}),"Register"]}),!1,(0,Wa.jsxs)("a",{className:"item show-logged-out",href:"".concat(be,"/register"),children:[(0,Wa.jsx)("i",{className:"glyphicon glyphicon-google-plus-square"}),"Google Connect"]})]}),!xe&&(0,Wa.jsxs)(Wa.Fragment,{children:[Ae&&(0,Wa.jsxs)("a",{className:"item show-logged-free",href:"".concat(be,"/upgrade/?prov=p"),children:[(0,Wa.jsx)("i",{className:"glyphicon glyphicon-paypal"}),"PRO Upgrade (PayPal)"]}),Te&&(0,Wa.jsxs)("a",{className:"item show-logged-free",href:"".concat(be,"/upgrade"),children:[(0,Wa.jsx)("i",{className:"glyphicon glyphicon-credit-card"}),"PRO Upgrade (credit/Debit)"]})]}),R&&(0,Wa.jsxs)("div",{className:"item show-logged-free show-logged-pro",onClick:ct,children:[(0,Wa.jsx)("i",{className:"glyphicon glyphicon-lock"}),"Logout"]})]}),document.body):null;return(0,Wa.jsxs)("div",{className:"header ".concat(M?"fade-out"
2:""," ").concat(m?"minimal":""," "),ref:S,children:[!m&&(0,Wa.jsxs)(Wa.Fragment,{children:[gt,(0,Wa.jsx)(js,{}),(0,Wa.jsx)(Gs,{}),(0,Wa.jsx)(ko,{}),(0,Wa.jsx)(Ro,{}),(0,Wa.jsx)(Io,{}),Re&&(0,Wa.jsx)(tl,{controller:H,snapshot:z,topOffset:oe})]}),(0,Wa.jsx)("div",{className:"first-row header-nav-row",style:{paddingBottom:"4px"},children:(0,Wa.jsxs)("div",{className:"wrapper",style:{display:"flex"},children:[(0,Wa.jsxs)("a",{className:"logo m-r-auto xs:m-r-0",href:"https://www.productioncrate.com",children:[(0,Wa.jsx)("img",{className:"pic",src:"https://user.productioncrate.com".concat(vs),alt:"Logo"}),(0,Wa.jsxs)("div",{className:"name",children:[(0,Wa.jsx)("img",{src:"https://user.productioncrate.com".concat(ys),alt:"logo name"}),_e&&(0,Wa.jsx)("div",{className:"brand_subtitle",children:"by ProductionCrate"})]})]}),!m&&(0,Wa.jsx)("div",{className:"wrapper wrapper_menu m-r-a",style:{position:"relative",alignItems:"center",flexDirection:"column",justifyContent:"space-between",flexWrap:"wrap"},children:(0,Wa.jsx)(gs,{visible:Y,closeCallback:()=>X(!1),onLogout:ct,external:v,newUrlScheme:P})}),!m&&!R&&!F&&(0,Wa.jsxs)("div",{className:"controls",children:["development"===al&&(0,Wa.jsx)("a",{className:"item show-logged-out",href:"/login",children:"Login"}),"development"!==al&&(0,Wa.jsx)("a",{className:"item show-logged-out",href:"".concat(be,"/login"),children:"Login"}),(0,Wa.jsx)("a",{className:"item show-logged-out accent",href:"".concat(be,"/register"),children:"Register"})]}),!m&&R&&!F&&(0,Wa.jsxs)("div",{className:"account-menu",children:[!xe&&(0,Wa.jsxs)("div",{className:"controls long-desktop_only",style:{width:"auto"},children:[!1,Pe&&(0,Wa.jsxs)("a",{className:"item show-logged-free accent",href:"".concat(be,"/upgrade"),children:[(0,Wa.jsx)("span",{className:"label-full",children:"Get unlimited access"}),(0,Wa.jsx)("span",{className:"label-compact",children:"Get unlimited access"})]})]}),(0,Wa.jsxs)("div",{className:"user-data ".concat(Pe?"has-upgrade-cta":""),ref:x,onMouseEnter:pt,onMouseLeave:ft,onFocus:pt,onBlur:mt,children:[R&&(0,Wa.jsx)("div",{className:"username",children:we}),!R&&(0,Wa.jsx)("div",{className:"username",children:"Account"}),(0,Wa.jsx)(Ys,{user:R,notificationBadgeText:Ze&&qe.hasUnread?qe.badgeText:"",showPremiumStar:ke})]})]}),!m&&!R&&F&&(0,Wa.jsx)("div",{className:"account-menu",children:"Loading user..."}),!m&&!xe&&R&&(0,Wa.jsxs)("div",{className:"controls mobile_only m-l-16 m-r-12",style:{justifyContent:"center"},children:[!1,Pe&&(0,Wa.jsx)(Wa.Fragment,{children:(0,Wa.jsx)("a",{className:"item show-logged-free accent",style:{cursor:"pointer"},href:"".concat(be,"/upgrade"),children:"Get unlimited access"})})]}),!m&&(0,Wa.jsx)("img",{alt:"menun icon",src:"".concat(be,"/images/icon.burger.svg"),className:"menu-bar",onClick:()=>X(!0)})]})}),!m&&(0,Wa.jsx)("div",{className:"first-row header-search-row",style:{paddingTop:"4px"},children:(0,Wa.jsx)("div",{className:"wrapper",style:{display:"flex"},children:!m&&(0,Wa.jsx)("div",{style:{position:"relative",display:"flex",flexDirection:"row",alignItems:"center",gap:"12px",width:"100%"},className:"",children:(0,Wa.jsx)(ho,{searchCallback:w})})})}),!m&&R&&!1===R.email_verified&&(0,Wa.jsx)("div",{className:"banner",children:(0,Wa.jsxs)("div",{className:"content",onClick:()=>document.location.href="https://user.productioncrate.com/member/email-verify",children:["Action Required: Your email address has not been verified yet. Click ",(0,Wa.jsx)("a",{href:"https://user.productioncrate.com/member/email-verify",children:"here"})," to resend the verification email"]})}),!m&&R&&R.email_verified&&je&&(0,Wa.jsxs)(Wa.Fragment,{children:[(0,Wa.jsx)("div",{className:"banner",style:{backgroundColor:"#ea5317"},children:(0,Wa.jsx)("div",{className:"content",style:{width:"max-content"},onClick:()=>Fe(!0),children:"Your profile is almost complete - Click here to finish!"})}),(0,Wa.jsxs)("div",{className:"".concat(Es," ").concat(Me?ks:""),children:[(0,Wa.jsx)("div",{className:"".concat(xs),onClick:lt}),(0,Wa.jsxs)("div",{className:"".concat(Cs),children:[(0,Wa.jsx)("span",{className:"".concat(Ps," "),onClick:lt,children:"X"}),(0,Wa.jsxs)("div",{className:"".concat(As),children:[tt<3&&(0,Wa.jsx)("div",{className:"".concat(Ts),style:{width:"".concat(100*(tt+(it.questions[tt].answers.find(e=>e.selected)?1:0))/it.questions.length,"%")}}),tt<=3&&(0,Wa.jsx)("div",{className:"".concat(Ts),style:{width:"100%"}})]}),!Ne&&tt<3&&it.questions.filter((e,t)=>
2t===tt).map(e=>(0,Wa.jsxs)(t.Fragment,{children:[(0,Wa.jsx)("div",{className:"".concat(Rs," ").concat(Is," m-b-16"),children:e.labelAccent}),(0,Wa.jsx)("div",{className:"".concat(Rs," m-b-16"),children:e.label}),(0,Wa.jsx)("div",{className:"".concat(Ds),children:e.answers.map((e,t)=>(0,Wa.jsxs)("div",{id:"question-1-answer-".concat(t),style:{display:"flex",alignItems:"center",gap:"8px",minWidth:"240px"},className:"".concat(Os," ").concat(e.selected?Bs:""," m-b-8"),onClick:()=>((e,t)=>{console.log("SURVEY",e,t,it.questions[e].answers[t]),at(n=>{let r=k({},n);return r.questions[e].answers[t].selected=!r.questions[e].answers[t].selected,console.log(r.questions[e].answers[t]),r})})(tt,t),children:[e.icon&&(0,Wa.jsx)("img",{style:{maxWidth:"25px",height:"auto"},src:e.icon,alt:"software logo"}),e.label]},"question-".concat(tt,"-answer-").concat(t)))}),(0,Wa.jsx)("div",{className:"".concat(Fs," ").concat(e.answers.find(e=>e.selected)?"":Ls),onClick:()=>nt(e=>e+1),children:e.cta}),tt>0&&(0,Wa.jsx)("div",{className:"".concat(Ns," m-t-12 m-h-a"),onClick:()=>nt(e=>e-1),children:"Back"}),0===tt&&(0,Wa.jsx)("div",{className:"".concat(Ns," m-t-12 m-h-a")})]},"question-index-".concat(tt))),Ne&&(0,Wa.jsxs)(Wa.Fragment,{children:[(0,Wa.jsx)("div",{className:"".concat(Ms," ").concat(Is," m-b-16"),children:Ne}),(0,Wa.jsx)("div",{style:{margin:"24px 0 12px 0",textAlign:"center"},children:"We would love to see what you have built with our assets:"}),(0,Wa.jsx)("textarea",{value:ze,onChange:e=>He(e.target.value),placeholder:"URL or description",style:{height:"90px",width:"435px",padding:"8px",color:"white",background:"#1e1d1d"}}),(0,Wa.jsx)("div",{className:"".concat(Fs),onClick:lt,children:"Save & Close"})]})]})]})]}),!m&&W&&(0,Wa.jsx)("div",{style:{background:"rgba(0,0,0,0.9)",width:"100vw",height:"100vh",top:"0",left:"0",position:"fixed",zIndex:"9",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,Wa.jsx)(Ss,{label:"Reactivating subscription..."})})]})},cl=(0,t.forwardRef)(ll);const ul=(0,t.createContext)(null);function hl(e){let n=e.clientId,r=e.nonce,i=e.onScriptLoadSuccess,a=e.onScriptLoadError,s=e.children;const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=e.nonce,r=e.onScriptLoadSuccess,i=e.onScriptLoadError,a=T((0,t.useState)(!1),2),s=a[0],o=a[1],l=(0,t.useRef)(r);l.current=r;const c=(0,t.useRef)(i);return c.current=i,(0,t.useEffect)(()=>{const e=document.createElement("script");return e.src="https://accounts.google.com/gsi/client",e.async=!0,e.defer=!0,e.nonce=n,e.onload=()=>{var e;o(!0),null===(e=l.current)||void 0===e||e.call(l)},e.onerror=()=>{var e;o(!1),null===(e=c.current)||void 0===e||e.call(c)},document.body.appendChild(e),()=>{document.body.removeChild(e)}},[n]),s}({nonce:r,onScriptLoadSuccess:i,onScriptLoadError:a}),l=(0,t.useMemo)(()=>({clientId:n,scriptLoadedSuccessfully:o}),[n,o]);return t.createElement(ul.Provider,{value:l},s)}function dl(e){return x(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||P(e)||A()}var pl;!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(pl||(pl={}));function fl(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function ml(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(Rc){}}}function gl(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var vl;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(vl||(vl={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function yl(e,t,n){return void 0===n&&(n="/"),bl(e,t,n,!1)}function bl(e,t,n,r){let i=Ml(("string"===typeof t?gl(t):t).pathname||"/",n);if(null==i)return null;let a=_l(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n]);return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(a);let s=null;for(let o=0;null==s&&o<a.length;++o){let e=Dl(i);s=Rl(a[o],e,r)}return s}function _l(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let i=(e,i,a)=>{let s={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};s.relativePath.startsWith("/")&&(fl(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path "'+r+'" is not val
2id. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(r.length));let o=Fl([r,s.relativePath]),l=n.concat(s);e.children&&e.children.length>0&&(fl(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+o+'".'),_l(e.children,t,l,o)),(null!=e.path||e.index)&&t.push({path:o,score:Tl(o,e.index),routesMeta:l})};return e.forEach((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let r of wl(e.path))i(e,t,r);else i(e,t)}),t}function wl(e){let t=e.split("/");if(0===t.length)return[];let n=dl(t),r=n[0],i=C(n).slice(1),a=r.endsWith("?"),s=r.replace(/\?$/,"");if(0===i.length)return a?[s,""]:[s];let o=wl(i.join("/")),l=[];return l.push(...o.map(e=>""===e?s:[s,e].join("/"))),a&&l.push(...o),l.map(t=>e.startsWith("/")&&""===t?"/":t)}const Sl=/^:[\w-]+$/,El=3,kl=2,xl=1,Cl=10,Pl=-2,Al=e=>"*"===e;function Tl(e,t){let n=e.split("/"),r=n.length;return n.some(Al)&&(r+=Pl),t&&(r+=kl),n.filter(e=>!Al(e)).reduce((e,t)=>e+(Sl.test(t)?El:""===t?xl:Cl),r)}function Rl(e,t,n){void 0===n&&(n=!1);let r=e.routesMeta,i={},a="/",s=[];for(let o=0;o<r.length;++o){let e=r[o],l=o===r.length-1,c="/"===a?t:t.slice(a.length)||"/",u=Il({path:e.relativePath,caseSensitive:e.caseSensitive,end:l},c),h=e.route;if(!u&&l&&n&&!r[r.length-1].route.index&&(u=Il({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},c)),!u)return null;
vendor: 1,160 bytes, line 2
2Object.assign(i,u.params),s.push({params:i,pathname:Fl([a,u.pathname]),pathnameBase:Ll(Fl([a,u.pathnameBase])),route:h}),"/"!==u.pathnameBase&&(a=Fl([a,u.pathnameBase]))}return s}function Il(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let n=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);ml("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)"));e.endsWith("*")?(r.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))");let a=new RegExp(i,t?void 0:"i");return[a,r]}(e.path,e.caseSensitive,e.end),r=T(n,2),i=r[0],a=r[1],s=t.match(i);if(!s)return null;let o=s[0],l=o.replace(/(.)\/+$/,"$1"),c=s.slice(1);return{params:a.reduce((e,t,n)=>
2{let r=t.paramName,i=t.isOptional;if("*"===r){let e=c[n]||"";l=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const a=c[n];return e[r]=i&&!a?void 0:(a||"").replace(/%2F/g,"/"),e},{}),pathname:o,pathnameBase:l,pattern:e}}function Dl(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return ml(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function Ml(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}const Fl=e=>e.join("/").replace(/\/\/+/g,"/"),Ll=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");Error;function Nl(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}const Ol=["post","put","patch","delete"],Bl=(new Set(Ol),["get",...Ol]);new Set(Bl),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred");function jl(){return jl=Object.assign?Object.assign.bind():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},jl.apply(this,arguments)}const Vl=t.createContext(null);const Ul=t.createContext(null);const zl=t.createContext(null);const Hl=t.createContext(null);const Gl=t.createContext({outlet:null,matches:[],isDataRoute:!1});const ql=t.createContext(null);function Kl(){return null!=t.useContext(Hl)}function Wl(){return Kl()||fl(!1),t.useContext(Hl).location}function $l(e,n,r,i){Kl()||fl(!1);let a=t.useContext(zl).navigator,s=t.useContext(Gl).matches,o=s[s.length-1],l=o?o.params:{},c=(o&&o.pathname,o?o.pathnameBase:"/");o&&o.route;let u,h=Wl();if(n){var d;let e="string"===typeof n?gl(n):n;"/"===c||(null==(d=e.pathname)?void 0:d.startsWith(c))||fl(!1),u=e}else u=h;let p=u.pathname||"/",f=p;if("/"!==c){let e=c.replace(/^\//,"").split("/");f="/"+p.replace(/^\//,"").split("/").slice(e.length).join("/")}let m=yl(e,{pathname:f});let g=Zl(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},l,e.params),pathname:Fl([c,a.encodeLocation?a.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?c:Fl([c,a.encodeLocation?a.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),s,r,i);return n&&g?t.createElement(Hl.Provider,{value:{location:jl({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:pl.Pop}},g):g}function Yl(){let e=function(){var e;let n=t.useContext(ql),r=tc(ec.UseRouteError),i=nc(ec.UseRouteError);if(void 0!==n)return n;return null==(e=r.errors)?void 0:e[i]}(),n=Nl(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:i};return t.createElement(t.Fragment,null,t.createElement("h2",null,"Unexpected Application Error!"),t.createElement("h3",{style:{fontStyle:"italic"}},n),r?t.createElement("pre",{style:a},r):null,null)}const Xl=t.createElement(Yl,null);class Jl extends t.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?t.createElement(Gl.Provider,{value:this.props.routeContext},t.createElement(ql.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Ql(e){let n=e.routeContext,r=e.match,i=e.children,a=t.useContext(Vl);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),t.createElement(Gl.Provider,{value:n},i)}function Zl(e,n,r,i){var a;if(void 0===n&&(n=[]),void 0===r&&(r=null),void 0===i&&(i=null),null==e){var s;if(!r)return null;if(r.errors)e=r.matches;else{if(!(null!=(s=i)&&s.v7_partialHydration&&0===n.length&&!r.initialized&&r.matches.length>0))return null;e=r.matches}}let o=e,l=null==(a=r)?void 0:a.errors;if(null!=l){let e=o.findIndex(e=>e.route.id&&void 0!==(null==l?void 0:l[e.route.id]));e>=0||fl(!1),o=o.slice(0,Math.min(o.length,e+1))}let c=!1,u=-1;if(r&&i&&i.v7_partialHydration)for(let t=0;t<o.length;t++){let e=o[t];
2if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(u=t),e.route.id){let t=r,n=t.loaderData,i=t.errors,a=e.route.loader&&void 0===n[e.route.id]&&(!i||void 0===i[e.route.id]);if(e.route.lazy||a){c=!0,o=u>=0?o.slice(0,u+1):[o[0]];break}}}return o.reduceRight((e,i,a)=>{let s,h=!1,d=null,p=null;var f;r&&(s=l&&i.route.id?l[i.route.id]:void 0,d=i.route.errorElement||Xl,c&&(u<0&&0===a?(f="route-fallback",!1||rc[f]||(rc[f]=!0),h=!0,p=null):u===a&&(h=!0,p=i.route.hydrateFallbackElement||null)));let m=n.concat(o.slice(0,a+1)),g=()=>{let n;return n=s?d:h?p:i.route.Component?t.createElement(i.route.Component,null):i.route.element?i.route.element:e,t.createElement(Ql,{match:i,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:n})};return r&&(i.route.ErrorBoundary||i.route.errorElement||0===a)?t.createElement(Jl,{location:r.location,revalidation:r.revalidation,component:d,error:s,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()},null)}var ec=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ec||{});function tc(e){let n=t.useContext(Ul);return n||fl(!1),n}function nc(e){let n=function(){let e=t.useContext(Gl);return e||fl(!1),e}(),r=n.matches[n.matches.length-1];return r.route.id||fl(!1),r.route.id}const rc={};function ic(e,t){null==e||e.v7_startTransition,void 0===(null==e?void 0:e.v7_relativeSplatPath)&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}n.startTransition;function ac(e){let n=e.basename,r=void 0===n?"/":n,i=e.children,a=void 0===i?null:i,s=e.location,o=e.navigationType,l=void 0===o?pl.Pop:o,c=e.navigator,u=e.static,h=void 0!==u&&u,d=e.future;Kl()&&fl(!1);let p=r.replace(/^\/*/,"/"),f=t.useMemo(()=>({basename:p,navigator:c,static:h,future:jl({v7_relativeSplatPath:!1},d)}),[p,d,c,h]);"string"===typeof s&&(s=gl(s));let m=s,g=m.pathname,v=void 0===g?"/":g,y=m.search,b=void 0===y?"":y,_=m.hash,w=void 0===_?"":_,S=m.state,E=void 0===S?null:S,k=m.key,x=void 0===k?"default":k,C=t.useMemo(()=>{let e=Ml(v,p);return null==e?null:{location:{pathname:e,search:b,hash:w,state:E,key:x},navigationType:l}},[p,v,b,w,E,x,l]);return null==C?null:t.createElement(zl.Provider,{value:f},t.createElement(Hl.Provider,{children:a,value:C}))}new Promise(()=>{});t.Component;new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(Rc){}const sc=t.createContext({isTransitioning:!1});const oc=t.createContext(new Map);const lc=n.startTransition,cc=i.flushSync;n.useId;function uc(e){cc?cc(e):e()}class hc{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}})}}function dc(e){let n=e.fallbackElement,r=e.router,i=e.future,a=T(t.useState(r.state),2),s=a[0],o=a[1],l=T(t.useState(),2),c=l[0],u=l[1],h=T(t.useState({isTransitioning:!1}),2),d=h[0],p=h[1],f=T(t.useState(),2),m=f[0],g=f[1],v=T(t.useState(),2),y=v[0],b=v[1],_=T(t.useState(),2),w=_[0],S=_[1],E=t.useRef(new Map),k=(i||{}).v7_startTransition,x=t.useCallback(e=>{k?function(e){lc?lc(e):e()}(e):e()},[k]),C=t.useCallback((e,t)=>{let n=t.deletedFetchers,i=t.flushSync,a=t.viewTransitionOpts;e.fetchers.forEach((e,t)=>{void 0!==e.data&&E.current.set(t,e.data)}),n.forEach(e=>E.current.delete(e));let s=null==r.window||null==r.window.document||"function"!==typeof r.window.document.startViewTransition;if(a&&!s){if(i){uc(()=>{y&&(m&&m.resolve(),y.skipTransition()),p({isTransitioning:!0,flushSync:!0,currentLocation:a.currentLocation,nextLocation:a.nextLocation})});let t=r.window.document.startViewTransition(()=>{uc(()=>o(e))});return t.finished.finally(()=>{uc(()=>{g(void 0),b(void 0),u(void 0),p({isTransitioning:!1})})}),void uc(()=>b(t))}y?(m&&m.resolve(),y.skipTransition(),S({state:e,currentLocation:a.currentLocation,nextLocation:a.nextLocation})):(u(e),p({isTransitioning:!0,flushSync:!1,currentLocation:a.currentLocation,nextLocation:a.nextLocation}))}else i?uc(()=>o(e)):x(()=>o(e))},[r.window,y,m,E,x]);t.useLayoutEffect(()=>r.subscribe(C),[r,C]),t.useEffect(()=>{d.isTransitioning&&!d.flushSync&&g(new hc)},[d]),t.useEffect(()=>{if(m&&c&&r.window){let e=c,t=m.promise,n=r.window.document.startViewTransition(async()=>{x(()=>o(e)),await t});n.finished.finally(()=>{g(void 0),b(void 0),u(void 0),p({isTransitioning:!1})}),b(n)}},[x,c,m,r.window]),t.useEffect(()=>{m&&c&&s.location.key===c.location.key&&m.resolve()},[m,y,s.location,c]),t.useEffect(()=>{!d.isTransitioning&&w&&(u(w.state),p({isTransitioning:!0,flushSync:!1,currentLocation:w.currentLocation,nextLocation:w.nextLocation}),S(void 0))},[d.isTransitioning,w]),t.useEffect(()=>{},[]);let P=t.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:e=>r.navigate(e),push:(e,t,n)=>r.navigate(e,{state:t,preventScrollReset:null==n?void 0:n.preventScrollReset}),replace:(e,t,n)=>r.navigate(e,{replace:!0,state:t,preventScrollReset:null==n?void 0:n.preventScrollReset})}),[r]),A=r.basename||"/",R=t.useMemo(()=>({router:r,navigator:P,static:!1,basename:A}),[r,P,A]),I=t.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return t.useEffect(()=>ic(i,r.future),[i,r.future]),t.createElement(t.Fragment,null,t.createElement(Vl.Provider,{value:R},t.createElement(Ul.Provider,{value:s},t.createElement(oc.Provider,{value:E.current},t.createElement(sc.Provider,{value:d},t.createElement(ac,{basename:A,location:s.location,navigationType:s.historyAction,navigator:P,future:I},s.initialized||r.future.v7_partialHydration?t.createElement(pc,{routes:r.routes,future:r.future,state:s}):n))))),null)}const pc=t.memo(fc);function fc(e){let t=e.routes,n=e.future;
2return $l(t,void 0,e.state,n)}"undefined"!==typeof window&&"undefined"!==typeof window.document&&window.document.createElement;var mc,gc;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(mc||(mc={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(gc||(gc={}));const vc=[{id:Kn,label:"Billing period visibility",buckets:Xn,bucketWeights:Jn,cohortSettingKey:Wn,experimentSettingKey:$n,getBrowserCohort:()=>{var e,t;return null!==(e=null===(t=rr())||void 0===t?void 0:t.cohort)&&void 0!==e?e:null},setBrowserCohort:e=>An({experimentId:Kn,bucket:e,buckets:Xn}),clearBrowserAssignment:()=>{xn({experimentId:Kn,additionalKeys:[Qn,Zn,er]})},additionalKeys:[]},{id:In,label:"Marketplace",buckets:Fn,bucketWeights:Ln,cohortSettingKey:Dn,experimentSettingKey:Mn,legacyKeys:null,getBrowserCohort:()=>Tn({experimentId:In,buckets:Fn}),getDebugCohort:Un,setBrowserCohort:e=>{const t=Vn(e);return t&&On()&&v(Nn,Nn,t),t},additionalKeys:[Nn],resetBeforeChange:!0}],yc=(e,t)=>{var n,r;const i=null===(n=e.getDebugCohort)||void 0===n?void 0:n.call(e);if(i)return{cohort:i,source:"debug cookie"};const a=null===t||void 0===t||null===(r=t.settings)||void 0===r?void 0:r[e.cohortSettingKey];if(e.buckets.includes(String(null!==a&&void 0!==a?a:"").trim().toUpperCase()))return{cohort:String(a).trim().toUpperCase(),source:"user.settings"};const s=e.getBrowserCohort();return s?{cohort:s,source:"cookie"}:{cohort:null,source:"none"}},bc=(e,t)=>{window.dispatchEvent(new CustomEvent("crate:experiment-updated",{detail:k({experimentId:e.id},t)}))},_c=e=>{let t=e.experiment,n=e.assignment,r=e.onChange,i=e.onClear,a=e.isSaving;const s=n.cohort;return(0,Wa.jsxs)("section",{className:"experiment-debug-tool__experiment","aria-labelledby":"experiment-".concat(t.id),children:[(0,Wa.jsxs)("div",{className:"experiment-debug-tool__experiment-header",children:[(0,Wa.jsxs)("div",{children:[(0,Wa.jsx)("h2",{id:"experiment-".concat(t.id),children:t.label}),(0,Wa.jsxs)("p",{children:[t.id," \xb7 ",n.source]})]}),(0,Wa.jsx)("span",{className:"experiment-debug-tool__cohort ".concat(s?"is-selected":""),children:s||"\u2014"})]}),(0,Wa.jsx)("div",{className:"experiment-debug-tool__allocation","aria-label":"".concat(t.label," allocation probabilities"),children:t.buckets.map(e=>{var n;const i=null!==(n=t.bucketWeights[e])&&void 0!==n?n:0,o=s===e;return(0,Wa.jsxs)("button",{type:"button",className:"experiment-debug-tool__bucket ".concat(o?"is-selected":""),"aria-pressed":o,disabled:a,onClick:()=>r(t,e),children:[(0,Wa.jsx)("span",{className:"experiment-debug-tool__bucket-label",children:e}),(0,Wa.jsx)("span",{className:"experiment-debug-tool__bucket-percent",children:(l=i,"".concat(l,"%"))})]},e);var l})}),(0,Wa.jsx)("button",{type:"button",className:"experiment-debug-tool__clear",disabled:a||!s,onClick:()=>i(t),children:a?"Saving\u2026":"Clear assignment"})]})},wc=()=>{const e=Xa(),n=e.user,r=e.setUser,i=T((0,t.useState)(!1),2),a=i[0],s=i[1],o=T((0,t.useState)(null),2),l=o[0],c=o[1],u=T((0,t.useState)(""),2),h=u[0],d=u[1],p=vc.map(e=>({experiment:e,assignment:yc(e,n)})),f=(0,t.useCallback)(e=>{null!==n&&void 0!==n&&n.id&&r(t=>{if(!t||t.id!==n.id)return t;const r=(e=>null!==e&&void 0!==e&&e.settings&&"object"===typeof e.settings?e.settings:{})(t),i=k({},r);return Object.entries(e).forEach(e=>{let t=T(e,2),n=t[0],r=t[1];null===r?delete i[n]:i[n]=r}),k(k({},t),{},{settings:i})})},[r,null===n||void 0===n?void 0:n.id]),m=(0,t.useCallback)(async(e,t)=>{d(""),c(e.id);try{let a=null;if(null!==n&&void 0!==n&&n.id){const r=yc(e,n).cohort,i=Boolean(e.resetBeforeChange&&r&&r!==t),s={[e.cohortSettingKey]:t,[e.experimentSettingKey]:"1"};if(e.id===Kn&&(s[Yn]=_n(),a=s[Yn]),i){const t=await or({[e.cohortSettingKey]:null,[e.experimentSettingKey]:null});if(!t||"marketplace_v1"===e.id&&null!==t.marketplace_experiment)throw new Error("The existing account assignment could not be reset.")}if(!await or(s))throw new Error("The account settings could not be updated.");f(s)}var r;if(e.setBrowserCohort(t),e.id===Kn)i=null!==(r=a)&&void 0!==r?r:_n(),nr(i);bc(e,{cohort:t})}catch(a){d(a.message||"The assignment could not be saved.")}finally{c(null)}var i},[f,n]),g=(0,t.useCallback)(async e=>{d(""),c(e.id),(e=>{"function"!==typeof e.clearBrowserAssignment?xn({experimentId:e.id,legacyKeys:e.legacyKeys,additionalKeys:e.additionalKeys}
2):e.clearBrowserAssignment()})(e);try{if(null!==n&&void 0!==n&&n.id){const t={[e.cohortSettingKey]:null,[e.experimentSettingKey]:null};e.id===Kn&&(t[Yn]=null);const n=await or(t);if(!n||"marketplace_v1"===e.id&&null!==n.marketplace_experiment)throw new Error("The account settings could not be updated.");f(t)}bc(e,{cleared:!0})}catch(t){d(t.message||"The assignment could not be cleared.")}finally{c(null)}},[f,null===n||void 0===n?void 0:n.id]);return"production"===b()?null:(0,Wa.jsxs)("aside",{className:"experiment-debug-tool ".concat(a?"is-open":""),children:[(0,Wa.jsxs)("button",{type:"button",className:"experiment-debug-tool__toggle","aria-expanded":a,"aria-controls":"experiment-debug-tool-panel",onClick:()=>s(e=>!e),children:[(0,Wa.jsx)("span",{className:"experiment-debug-tool__status-dot","aria-hidden":"true"}),(0,Wa.jsx)("span",{children:"EXP"}),(0,Wa.jsx)("span",{className:"experiment-debug-tool__environment",children:b()})]}),a&&(0,Wa.jsxs)("div",{id:"experiment-debug-tool-panel",className:"experiment-debug-tool__panel",children:[(0,Wa.jsxs)("div",{className:"experiment-debug-tool__panel-header",children:[(0,Wa.jsxs)("div",{children:[(0,Wa.jsx)("p",{className:"experiment-debug-tool__eyebrow",children:"Testing utility"}),(0,Wa.jsx)("h1",{children:"Experiment console"})]}),(0,Wa.jsx)("button",{type:"button",className:"experiment-debug-tool__close","aria-label":"Close experiment console",onClick:()=>s(!1),children:"\xd7"})]}),(0,Wa.jsx)("p",{className:"experiment-debug-tool__hint",children:"Override assignments locally or for the signed-in account."}),p.map(e=>{let t=e.experiment,n=e.assignment;return(0,Wa.jsx)(_c,{experiment:t,assignment:n,isSaving:l===t.id,onChange:m,onClear:g},t.id)}),h&&(0,Wa.jsx)("p",{className:"experiment-debug-tool__error",role:"alert",children:h})]})]})},Sc=e=>{let t=e.router,n=e.children;return t?(0,Wa.jsx)(Ya,{children:(0,Wa.jsxs)(es,{children:[(0,Wa.jsx)(wc,{}),(0,Wa.jsx)(hl,{clientId:u.googleClientId,children:(0,Wa.jsx)(dc,{router:t,children:n})})]})}):(0,Wa.jsx)(Ya,{children:(0,Wa.jsxs)(es,{children:[(0,Wa.jsx)(wc,{}),n]})})},Ec="crate-attribution-embed-snippet",kc={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_APPLE_CLIENT_ID:"com.productioncrate.web",REACT_APP_FEATURE_APPLE_LOGIN:"true",REACT_APP_SESSION_TOKEN_COOKIE_KEY:"newLogin",REACT_APP_SESSION_TOKEN_LOCAL_STORAGE_KEY:"token",REACT_APP_PLANS_PAGE_VARIANT:"AB",REACT_APP_FEATURE_MARKETPLACE_CART:"true",REACT_APP_BUGSNAG_KEY:"748fc8c8b0858554332f17e8bc3b27ba",REACT_APP_API_BASE_URL:"https://rest.productioncrate.com",REACT_APP_MARKETPLACE_CART_COOKIE_KEY:"crate_marketplace_cart_pr_v1",REACT_APP_REFRESH_TOKEN_COOKIE_KEY:"newLogin_refresh",REACT_APP_REFRESH_TOKEN_LOCAL_STORAGE_KEY:"refresh_token",REACT_APP_PLUGINS_ONLY_HIGHLIGHT_MODE:"ab",REACT_APP_MARKETPLACE_B_PERCENTAGE:"50"}.REACT_APP_CRATE_CORE_HOST||"crate-core.com",xc={production:"https://www.productioncrate.com/js/attribution.js",qa:"https://staging.productioncrate.com/js/attribution.js",local:"http://".concat(kc,"/js/attribution.js")};function Cc(e){var t;const n=null===(t={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_APPLE_CLIENT_ID:"com.productioncrate.web",REACT_APP_FEATURE_APPLE_LOGIN:"true",REACT_APP_SESSION_TOKEN_COOKIE_KEY:"newLogin",REACT_APP_SESSION_TOKEN_LOCAL_STORAGE_KEY:"token",REACT_APP_PLANS_PAGE_VARIANT:"AB",REACT_APP_FEATURE_MARKETPLACE_CART:"true",REACT_APP_BUGSNAG_KEY:"748fc8c8b0858554332f17e8bc3b27ba",REACT_APP_API_BASE_URL:"https://rest.productioncrate.com",REACT_APP_MARKETPLACE_CART_COOKIE_KEY:"crate_marketplace_cart_pr_v1",REACT_APP_REFRESH_TOKEN_COOKIE_KEY:"newLogin_refresh",REACT_APP_REFRESH_TOKEN_LOCAL_STORAGE_KEY:"refresh_token",REACT_APP_PLUGINS_ONLY_HIGHLIGHT_MODE:"ab",REACT_APP_MARKETPLACE_B_PERCENTAGE:"50"}.REACT_APP_ATTRIBUTION_SNIPPET_URL)||void 0===t?void 0:t.trim();if(n)return n;if(function(e){return"localhost"===e||"127.0.0.1"===e||"::1"===e||e===kc}(e))return xc.local;return"staging.productioncrate.com"===e||/(^|[.-])qa([.-]|$)/.test(e)?xc.qa:xc.production}const Pc="720308051639967";window.crateVersion="1.22.0",window.bugsnagKey="748fc8c8b0858554332f17e8bc3b27ba",function(){if("undefined"===typeof window||"undefined"===typeof document)return;if(document.getElementById(Ec))return;!function(){const e={};({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_APPLE_CLIENT_ID:"com.productioncrate.web",REACT_APP_FEATURE_APPLE_LOGIN:"true",REACT_APP_SESSION_TOKEN_COOKIE_KEY:"newLogin",REACT_APP_SESSION_TOKEN_LOCAL_STORAGE_KEY:"token",REACT_APP_PLANS_PAGE_VARIA
2NT:"AB",REACT_APP_FEATURE_MARKETPLACE_CART:"true",REACT_APP_BUGSNAG_KEY:"748fc8c8b0858554332f17e8bc3b27ba",REACT_APP_API_BASE_URL:"https://rest.productioncrate.com",REACT_APP_MARKETPLACE_CART_COOKIE_KEY:"crate_marketplace_cart_pr_v1",REACT_APP_REFRESH_TOKEN_COOKIE_KEY:"newLogin_refresh",REACT_APP_REFRESH_TOKEN_LOCAL_STORAGE_KEY:"refresh_token",REACT_APP_PLUGINS_ONLY_HIGHLIGHT_MODE:"ab",REACT_APP_MARKETPLACE_B_PERCENTAGE:"50"}).REACT_APP_ATTRIBUTION_API_BASE_URL&&(e.apiBaseUrl={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_APPLE_CLIENT_ID:"com.productioncrate.web",REACT_APP_FEATURE_APPLE_LOGIN:"true",REACT_APP_SESSION_TOKEN_COOKIE_KEY:"newLogin",REACT_APP_SESSION_TOKEN_LOCAL_STORAGE_KEY:"token",REACT_APP_PLANS_PAGE_VARIANT:"AB",REACT_APP_FEATURE_MARKETPLACE_CART:"true",REACT_APP_BUGSNAG_KEY:"748fc8c8b0858554332f17e8bc3b27ba",REACT_APP_API_BASE_URL:"https://rest.productioncrate.com",REACT_APP_MARKETPLACE_CART_COOKIE_KEY:"crate_marketplace_cart_pr_v1",REACT_APP_REFRESH_TOKEN_COOKIE_KEY:"newLogin_refresh",REACT_APP_REFRESH_TOKEN_LOCAL_STORAGE_KEY:"refresh_token",REACT_APP_PLUGINS_ONLY_HIGHLIGHT_MODE:"ab",REACT_APP_MARKETPLACE_B_PERCENTAGE:"50"}.REACT_APP_ATTRIBUTION_API_BASE_URL),{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_APPLE_CLIENT_ID:"com.productioncrate.web",REACT_APP_FEATURE_APPLE_LOGIN:"true",REACT_APP_SESSION_TOKEN_COOKIE_KEY:"newLogin",REACT_APP_SESSION_TOKEN_LOCAL_STORAGE_KEY:"token",REACT_APP_PLANS_PAGE_VARIANT:"AB",REACT_APP_FEATURE_MARKETPLACE_CART:"true",REACT_APP_BUGSNAG_KEY:"748fc8c8b0858554332f17e8bc3b27ba",REACT_APP_API_BASE_URL:"https://rest.productioncrate.com",REACT_APP_MARKETPLACE_CART_COOKIE_KEY:"crate_marketplace_cart_pr_v1",REACT_APP_REFRESH_TOKEN_COOKIE_KEY:"newLogin_refresh",REACT_APP_REFRESH_TOKEN_LOCAL_STORAGE_KEY:"refresh_token",REACT_APP_PLUGINS_ONLY_HIGHLIGHT_MODE:"ab",REACT_APP_MARKETPLACE_B_PERCENTAGE:"50"}.REACT_APP_ATTRIBUTION_COOKIE_DOMAIN&&(e.cookieDomain={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_APPLE_CLIENT_ID:"com.productioncrate.web",REACT_APP_FEATURE_APPLE_LOGIN:"true",REACT_APP_SESSION_TOKEN_COOKIE_KEY:"newLogin",REACT_APP_SESSION_TOKEN_LOCAL_STORAGE_KEY:"token",REACT_APP_PLANS_PAGE_VARIANT:"AB",REACT_APP_FEATURE_MARKETPLACE_CART:"true",REACT_APP_BUGSNAG_KEY:"748fc8c8b0858554332f17e8bc3b27ba",REACT_APP_API_BASE_URL:"https://rest.productioncrate.com",REACT_APP_MARKETPLACE_CART_COOKIE_KEY:"crate_marketplace_cart_pr_v1",REACT_APP_REFRESH_TOKEN_COOKIE_KEY:"newLogin_refresh",REACT_APP_REFRESH_TOKEN_LOCAL_STORAGE_KEY:"refresh_token",REACT_APP_PLUGINS_ONLY_HIGHLIGHT_MODE:"ab",REACT_APP_MARKETPLACE_B_PERCENTAGE:"50"}.REACT_APP_ATTRIBUTION_COOKIE_DOMAIN);const t=function(e){if("string"!==typeof e)return;const t=e.trim().toLowerCase();return"true"===t||"false"!==t&&void 0}({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_APPLE_CLIENT_ID:"com.productioncrate.web",REACT_APP_FEATURE_APPLE_LOGIN:"true",REACT_APP_SESSION_TOKEN_COOKIE_KEY:"newLogin",REACT_APP_SESSION_TOKEN_LOCAL_STORAGE_KEY:"token",REACT_APP_PLANS_PAGE_VARIANT:"AB",REACT_APP_FEATURE_MARKETPLACE_CART:"true",REACT_APP_BUGSNAG_KEY:"748fc8c8b0858554332f17e8bc3b27ba",REACT_APP_API_BASE_URL:"https://rest.productioncrate.com",REACT_APP_MARKETPLACE_CART_COOKIE_KEY:"crate_marketplace_cart_pr_v1",REACT_APP_REFRESH_TOKEN_COOKIE_KEY:"newLogin_refresh",REACT_APP_REFRESH_TOKEN_LOCAL_STORAGE_KEY:"refresh_token",REACT_APP_PLUGINS_ONLY_HIGHLIGHT_MODE:"ab",REACT_APP_MARKETPLACE_B_PERCENTAGE:"50"}.REACT_APP_ATTRIBUTION_ENABLED);"boolean"===typeof t&&(e.enabled=t),0!==Object.keys(e).length&&(window.__CRATE_ATTRIBUTION_CONFIG__=k(k({},window.__CRATE_ATTRIBUTION_CONFIG__||{}),e))}();const e=Cc(window.location.hostname);if(!e)return;const t=document.createElement("script");t.id=Ec,t.src=e,t.async=!0,document.head.appendChild(t)}(),(()=>{var e,t,n,r,i,a,s;"undefined"===typeof window||window.__crateMetaPixelInitialized||(window.__crateMetaPixelInitialized=!0,"function"!==typeof window.fbq?(e=window,t=document,n="script",r="https://connect.facebook.net/en_US/fbevents.js",e.fbq||(i=e.fbq=function(){i.callMethod?i.callMethod.apply(i,arguments):i.queue.push(arguments)},e._fbq||(e._fbq=i),i.push=i,i.loaded=!0,i.version="2.0",i.queue=[],(a=t.createElement(n)).async=!0,a.src=r,(s=t.getElementsByTagName(n)[0]).parentNode.insertBefore(a,s)),window.fbq("init",Pc)):window.fbq("init",Pc))})(),zn();const Ac=document.getElementById("header-root");
2if(Ja.marketplaceCart){za(window);const e=Oa(window);!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;const n=za(t),r={addItem:function(){return e.addItem(...arguments)},removeItem:function(){return e.removeItem(...arguments)},open:function(){return e.open(...arguments)},close:function(){return e.close(...arguments)},getSnapshot:function(){return e.getSnapshot(...arguments)},sync:function(){return e.sync(...arguments)},clearAfterCheckout:function(){return e.clearAfterCheckout(...arguments)},subscribe:function(){return e.subscribe(...arguments)}};t.CrateCart=r,n.__pendingSubscriptions.forEach(t=>{e.subscribe(t)});const i=[...n.__queue];n.__queue.length=0,i.reduce((e,t)=>e.then(async()=>{try{const e=await r[t.name](...t.args);t.resolve(e)}catch(e){t.reject(e)}}),Promise.resolve())}(e,window),e.markReady()}if("function"!==typeof window.getGlobalSession&&(window.getGlobalSession=()=>null),"function"!==typeof window.waitForGlobalSession&&(window.waitForGlobalSession=()=>{const e=window.getGlobalSession();return e&&e.analytics&&!0===e.availableAppsLoaded?Promise.resolve(e):new Promise(e=>{const t=n=>{const r=null===n||void 0===n?void 0:n.detail;r&&r.analytics&&!0===r.availableAppsLoaded&&(window.removeEventListener("crate:header:session",t),window.removeEventListener("crate:header:ready",t),e(r))};window.addEventListener("crate:header:session",t),window.addEventListener("crate:header:ready",t)})}),Ac){var Tc;let e=(0,Wa.jsx)(Sc,{children:(0,Wa.jsx)(cl,{external:!0,searchCallback:null!==(Tc=Ac.dataset.searchCallback)&&void 0!==Tc?Tc:null})});const n=window.bugsnagKey;if({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_APPLE_CLIENT_ID:"com.productioncrate.web",REACT_APP_FEATURE_APPLE_LOGIN:"true",REACT_APP_SESSION_TOKEN_COOKIE_KEY:"newLogin",REACT_APP_SESSION_TOKEN_LOCAL_STORAGE_KEY:"token",REACT_APP_PLANS_PAGE_VARIANT:"AB",REACT_APP_FEATURE_MARKETPLACE_CART:"true",REACT_APP_BUGSNAG_KEY:"748fc8c8b0858554332f17e8bc3b27ba",REACT_APP_API_BASE_URL:"https://rest.productioncrate.com",REACT_APP_MARKETPLACE_CART_COOKIE_KEY:"crate_marketplace_cart_pr_v1",REACT_APP_REFRESH_TOKEN_COOKIE_KEY:"newLogin_refresh",REACT_APP_REFRESH_TOKEN_LOCAL_STORAGE_KEY:"refresh_token",REACT_APP_PLUGINS_ONLY_HIGHLIGHT_MODE:"ab",REACT_APP_MARKETPLACE_B_PERCENTAGE:"50"}.HEADER_BUGSNAG_ENABLE&&n){s().start({apiKey:n,plugins:[new(l())],releaseStage:b(),appVersion:window.crateVersion,endpoints:{notify:"https://bs-notify.productioncrate.com",sessions:"https://bs-sessions.productioncrate.com"}});const r=s().getPlugin("react").createErrorBoundary(t);e=(0,Wa.jsx)(r,{children:e})}r.createRoot(Ac).render(e)}})()})();
3//# sourceMappingURL=header.af4f1e9bde06b30cc677.js.map

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.