PageSourceSearch

https://brickit.app/_nuxt/dabea6d.js

js brickit.app collected 2026-10-02 03:22:57 UTC 1,289,624 bytes, 2 lines download raw bytes

1/*! For license information please see LICENSES */
2(window.webpackJsonp=window.webpackJsonp||[]).push([[16],{0:function(t,e,r){"use strict";function n(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}r.d(e,"a",(function(){return n}))},1:function(t,e,r){"use strict";r.d(e,"a",(function(){return l}));var n=r(25),o=r(0);function l(t){Object(o.a)(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===Object(n.a)(t)&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):("string"!=typeof t&&"[object String]"!==e||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}},106:function(t,e,r){"use strict";r.d(e,"a",(function(){return d}));var n=r(1),o=r(0),l=r(52),c=r(3),h=r(16);function d(t,e){var r,d,f,m,y,v,w,E;Object(o.a)(1,arguments);var _=Object(n.a)(t),T=_.getUTCFullYear(),S=Object(h.a)(),x=Object(c.a)(null!==(r=null!==(d=null!==(f=null!==(m=null==e?void 0:e.firstWeekContainsDate)&&void 0!==m?m:null==e||null===(y=e.locale)||void 0===y||null===(v=y.options)||void 0===v?void 0:v.firstWeekContainsDate)&&void 0!==f?f:S.firstWeekContainsDate)&&void 0!==d?d:null===(w=S.locale)||void 0===w||null===(E=w.options)||void 0===E?void 0:E.firstWeekContainsDate)&&void 0!==r?r:1);if(!(x>=1&&x<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var I=new Date(0);I.setUTCFullYear(T+1,0,x),I.setUTCHours(0,0,0,0);var P=Object(l.a)(I,e),O=new Date(0);O.setUTCFullYear(T,0,x),O.setUTCHours(0,0,0,0);var A=Object(l.a)(O,e);return _.getTime()>=P.getTime()?T+1:_.getTime()>=A.getTime()?T:T-1}},107:function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return n}));var n=function(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==t?t:void 0}}).call(this,r(49))},108:function(t,e,r){"use strict";r.r(e),r.d(e,"createInstance",(function(){return Ut})),r.d(e,"add",(function(){return qt})),r.d(e,"flush",(function(){return Ht})),r.d(e,"getDeviceId",(function(){return Yt})),r.d(e,"getSessionId",(function(){return Wt})),r.d(e,"getUserId",(function(){return Kt})),r.d(e,"groupIdentify",(function(){return Qt})),r.d(e,"identify",(function(){return Jt})),r.d(e,"init",(function(){return Xt})),r.d(e,"logEvent",(function(){return Zt})),r.d(e,"remove",(function(){return te})),r.d(e,"reset",(function(){return ee})),r.d(e,"revenue",(function(){return re})),r.d(e,"setDeviceId",(function(){return ne})),r.d(e,"setGroup",(function(){return ie})),r.d(e,"setOptOut",(function(){return ae})),r.d(e,"setSessionId",(function(){return se})),r.d(e,"setTransport",(function(){return oe})),r.d(e,"setUserId",(function(){return le})),r.d(e,"track",(function(){return ce})),r.d(e,"runQueuedFunctions",(function(){return mt})),r.d(e,"Revenue",(function(){return F})),r.d(e,"Identify",(function(){return R})),r.d(e,"Types",(function(){return n}));var n={};r.r(n),r.d(n,"ServerZone",(function(){return d})),r.d(n,"SpecialEventType",(function(){return T})),r.d(n,"IdentifyOperation",(function(){return E})),r.d(n,"RevenueProperty",(function(){return _})),r.d(n,"LogLevel",(function(){return h})),r.d(n,"PluginType",(function(){return o})),r.d(n,"Status",(function(){return l})),r.d(n,"TransportType",(function(){return D}));var o,l,c=r(2);!function(t){t.BEFORE="before",t.ENRICHMENT="enrichment",t.DESTINATION="destination"}(o||(o={})),function(t){t.Unknown="unknown",t.Skipped="skipped",t.Success="success",t.RateLimit="rate_limit",t.PayloadTooLarge="payload_too_large",t.Invalid="invalid",t.Failed="failed",t.Timeout="Timeout",t.SystemError="SystemError"}(l||(l={}));var h,d,f="Event rejected due to exceeded retry count",m="AMP",y="".concat(m,"_unsent"),v="https://api2.amplitude.com/2/httpapi",w=function(t,code,e){return void 0===code&&(code=0),void 0===e&&(e=l.Unknown),{event:t,code:code,message:e}};!function(t){t[t.None=0]="None",t[t.Error=1]="Error",t[t.Warn=2]="Warn",t[t.Verbose=3]="Verbose",t[t.Debug=4]="Debug"}(h||(h={})),function(t){t.US="US",t.EU="EU"}(d||(d={}));var E,_,T,S="Amplitude Logger ",x=function(){function t(){this.logLevel=h.None}return t.prototype.disable=function(){this.logLevel=h.None},t.prototype.enable=function(t){void 0===t&&(t=h.Warn),this.logLevel=t},t.prototype.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.logLevel<h.Verbose||console.log("".concat(S,"[Log]: ").concat(t.join(" ")))},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.logLevel<h.Warn||console.warn("".concat(S,"[Warn]: ").concat(t.join(" ")))},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.logLevel<h.Error||console.error("".concat(S,"[Error]: ").concat(t.join(" ")))},t.prototype.debug=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.logLevel<h.Debug||console.log("".concat(S,"[Debug]: ").concat(t.join(" ")))},t}(),I=function(){return{flushMaxRetries:12,flushQueueSize:200,flushIntervalMillis:1e4,logLevel:h.Warn,loggerProvider:new x,optOut:!1,serverUrl:v,serverZone:d.US,useBatch:!1}},P=function(){function t(t){var e,r,n;this._optOut=!1;var o=I();this.apiKey=t.apiKey,this.flushIntervalMillis=t.flushIntervalMillis||o.flushIntervalMillis,this.flushMaxRetries=t.flushMaxRetries||o.flushMaxRetries,this.flushQueueSize=t.flushQueueSize||o.flushQueueSize,this.loggerProvider=t.loggerProvider||o.loggerProvider,this.logLevel=null!==(e=t.logLevel)&&void 0!==e?e:o.logLevel,this.minIdLength=t.minIdLength,this.plan=t.plan,this.ingestionMetadata=t.ingestionMetadata,this.optOut=null!==(r=t.optOut)&&void 0!==r?r:o.optOut,this.serverUrl=t.serverUrl,this.serverZone=t.serverZone||o.serverZone,this.storageProvider=t.storageProvider,this.transportProvider=t.transportProvider,this.useBatch=null!==(n=t.useBatch)&&void 0!==n?n:o.useBatch,this.loggerProvider.enable(this.logLevel);var l=A(t.serverUrl,t.serverZone,t.useBatch);this.serverZone=l.serverZone,this.serverUrl=l.serverUrl}return Object.defineProperty(t.prototype,"optOut",{get:function(){return this._optOut},set:function(t){this._optOut=t}
2,enumerable:!1,configurable:!0}),t}(),O=function(t,e){return t===d.EU?e?"https://api.eu.amplitude.com/batch":"https://api.eu.amplitude.com/2/httpapi":e?"https://api2.amplitude.com/batch":v},A=function(t,e,r){if(void 0===t&&(t=""),void 0===e&&(e=I().serverZone),void 0===r&&(r=I().useBatch),t)return{serverUrl:t,serverZone:void 0};var n=[d.US,d.EU].includes(e)?e:I().serverZone;return{serverZone:n,serverUrl:O(n,r)}},k=function(){function t(){this.name="amplitude",this.type=o.DESTINATION,this.retryTimeout=1e3,this.throttleTimeout=3e4,this.storageKey="",this.scheduled=null,this.queue=[]}return t.prototype.setup=function(t){var e;return Object(c.b)(this,void 0,void 0,(function(){var r,n=this;return Object(c.d)(this,(function(o){switch(o.label){case 0:return this.config=t,this.storageKey="".concat(y,"_").concat(this.config.apiKey.substring(0,10)),[4,null===(e=this.config.storageProvider)||void 0===e?void 0:e.get(this.storageKey)];case 1:return r=o.sent(),this.saveEvents(),r&&r.length>0&&Promise.all(r.map((function(t){return n.execute(t)}))).catch(),[2,Promise.resolve(void 0)]}}))}))},t.prototype.execute=function(t){var e=this;return new Promise((function(r){var n={event:t,attempts:0,callback:function(t){return r(t)},timeout:0};e.addToQueue(n)}))},t.prototype.addToQueue=function(){for(var t=this,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=e.filter((function(e){return e.attempts<t.config.flushMaxRetries?(e.attempts+=1,!0):(t.fulfillRequest([e],500,f),!1)}));n.forEach((function(e){t.queue=t.queue.concat(e),0!==e.timeout?setTimeout((function(){e.timeout=0,t.schedule(0)}),e.timeout):t.schedule(t.config.flushIntervalMillis)})),this.saveEvents()},t.prototype.schedule=function(t){var e=this;this.scheduled||(this.scheduled=setTimeout((function(){e.flush(!0).then((function(){e.queue.length>0&&e.schedule(t)}))}),t))},t.prototype.flush=function(t){return void 0===t&&(t=!1),Object(c.b)(this,void 0,void 0,(function(){var e,r,n,o=this;return Object(c.d)(this,(function(l){switch(l.label){case 0:return e=[],r=[],this.queue.forEach((function(t){return 0===t.timeout?e.push(t):r.push(t)})),this.queue=r,this.scheduled&&(clearTimeout(this.scheduled),this.scheduled=null),c=e,h=this.config.flushQueueSize,d=Math.max(h,1),n=c.reduce((function(t,element,e){var r=Math.floor(e/d);return t[r]||(t[r]=[]),t[r].push(element),t}),[]),[4,Promise.all(n.map((function(e){return o.send(e,t)})))];case 1:return l.sent(),[2]}var c,h,d}))}))},t.prototype.send=function(t,e){return void 0===e&&(e=!0),Object(c.b)(this,void 0,void 0,(function(){var r,n,o,l,h;return Object(c.d)(this,(function(d){switch(d.label){case 0:if(!this.config.apiKey)return[2,this.fulfillRequest(t,400,"Event rejected due to missing API key")];r={api_key:this.config.apiKey,events:t.map((function(t){var e=t.event;e.extra;return Object(c.f)(e,["extra"])})),options:{min_id_length:this.config.minIdLength}},d.label=1;case 1:return d.trys.push([1,3,,4]),n=A(this.config.serverUrl,this.config.serverZone,this.config.useBatch).serverUrl,[4,this.config.transportProvider.send(n,r)];case 2:if(null===(o=d.sent()))return this.fulfillRequest(t,0,"Unexpected error occurred"),[2];if(!e){if("body"in o){l="";try{l=JSON.stringify(o.body,null,2)}catch(t){}this.fulfillRequest(t,o.statusCode,"".concat(o.status,": ").concat(l))}else this.fulfillRequest(t,o.statusCode,o.status);return[2]}return this.handleReponse(o,t),[3,4];case 3:return h=d.sent(),this.fulfillRequest(t,0,String(h)),[3,4];case 4:return[2]}}
2))}))},t.prototype.handleReponse=function(t,e){switch(t.status){case l.Success:this.handleSuccessResponse(t,e);break;case l.Invalid:this.handleInvalidResponse(t,e);break;case l.PayloadTooLarge:this.handlePayloadTooLargeResponse(t,e);break;case l.RateLimit:this.handleRateLimitResponse(t,e);break;default:this.handleOtherReponse(e)}},t.prototype.handleSuccessResponse=function(t,e){this.fulfillRequest(e,t.statusCode,"Event tracked successfully")},t.prototype.handleInvalidResponse=function(t,e){var r=this;if(t.body.missingField||t.body.error.startsWith("Invalid API key"))this.fulfillRequest(e,t.statusCode,t.body.error);else{var n=Object(c.g)(Object(c.g)(Object(c.g)(Object(c.g)([],Object(c.e)(Object.values(t.body.eventsWithInvalidFields)),!1),Object(c.e)(Object.values(t.body.eventsWithMissingFields)),!1),Object(c.e)(Object.values(t.body.eventsWithInvalidIdLengths)),!1),Object(c.e)(t.body.silencedEvents),!1).flat(),o=new Set(n),l=e.filter((function(e,n){if(!o.has(n))return!0;r.fulfillRequest([e],t.statusCode,t.body.error)}));this.addToQueue.apply(this,Object(c.g)([],Object(c.e)(l),!1))}},t.prototype.handlePayloadTooLargeResponse=function(t,e){1!==e.length?(this.config.flushQueueSize/=2,this.addToQueue.apply(this,Object(c.g)([],Object(c.e)(e),!1))):this.fulfillRequest(e,t.statusCode,t.body.error)},t.prototype.handleRateLimitResponse=function(t,e){var r=this,n=Object.keys(t.body.exceededDailyQuotaUsers),o=Object.keys(t.body.exceededDailyQuotaDevices),l=t.body.throttledEvents,h=new Set(n),d=new Set(o),f=new Set(l),m=e.filter((function(e,n){if(!(e.event.user_id&&h.has(e.event.user_id)||e.event.device_id&&d.has(e.event.device_id)))return f.has(n)&&(e.timeout=r.throttleTimeout),!0;r.fulfillRequest([e],t.statusCode,t.body.error)}));this.addToQueue.apply(this,Object(c.g)([],Object(c.e)(m),!1))},t.prototype.handleOtherReponse=function(t){var e=this;this.addToQueue.apply(this,Object(c.g)([],Object(c.e)(t.map((function(t){return t.timeout=t.attempts*e.retryTimeout,t}))),!1))},t.prototype.fulfillRequest=function(t,code,e){this.saveEvents(),t.forEach((function(t){return t.callback(w(t.event,code,e))}))},t.prototype.saveEvents=function(){if(this.config.storageProvider){var t=Array.from(this.queue.map((function(t){return t.event})));this.config.storageProvider.set(this.storageKey,t)}},t}(),C=function(a){return a?(a^16*Math.random()>>a/4).toString(16):(String(1e7)+String(-1e3)+String(-4e3)+String(-8e3)+String(-1e11)).replace(/[018]/g,C)};!function(t){t.SET="$set",t.SET_ONCE="$setOnce",t.ADD="$add",t.APPEND="$append",t.PREPEND="$prepend",t.REMOVE="$remove",t.PREINSERT="$preInsert",t.POSTINSERT="$postInsert",t.UNSET="$unset",t.CLEAR_ALL="$clearAll"}(E||(E={})),function(t){t.REVENUE_PRODUCT_ID="$productId",t.REVENUE_QUANTITY="$quantity",t.REVENUE_PRICE="$price",t.REVENUE_TYPE="$revenueType",t.REVENUE="$revenue"}(_||(_={})),function(t){t.IDENTIFY="$identify",t.GROUP_IDENTIFY="$groupidentify",t.REVENUE="revenue_amount"}(T||(T={}));var D,M=function(t){if(Object.keys(t).length>1e3)return!1;for(var e in t){var r=t[e];if(!N(e,r))return!1}return!0},N=function(t,e){var r,n;if("string"!=typeof t)return!1;if(Array.isArray(e)){var o=!0;try{for(var l=Object(c.h)(e),h=l.next();!h.done;h=l.next()){var d=h.value;if(Array.isArray(d))return!1;if("object"==typeof d)o=o&&M(d);else if(!["number","string"].includes(typeof d))return!1;if(!o)return!1}}catch(t){r={error:t}}finally{try{h&&!h.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}else{if(null==e)return!1;if("object"==typeof e)return M(e);if(!["number","string","boolean"].includes(typeof e))return!1}return!0},R=function(){function t(){this._propertySet=new Set,this._properties={}}return t.prototype.getUserProperties=function(){return Object(c.a)({},this._properties)},t.prototype.set=function(t,e){return this._safeSet(E.SET,t,e),this},t.prototype.setOnce=function(t,e){return this._safeSet(E.SET_ONCE,t,e),this},t.prototype.append=function(t,e){return this._safeSet(E.APPEND,t,e),this},t.prototype.prepend=function(t,e){return this._safeSet(E.PREPEND,t,e),this},t.prototype.postInsert=function(t,e){return this._safeSet(E.POSTINSERT,t,e),this},t.prototype.preInsert=function(t,e){return this._safeSet(E.PREINSERT,t,e),this},t.prototype.remove=function(t,e){return this._safeSet(E.REMOVE,t,e),this},t.prototype.add=function(t,e){return this._safeSet(E.ADD,t,e),this},t.prototype.unset=function(t){return this._safeSet(E.UNSET,t,"-"),this},t.prototype.clearAll=function(){return this._properties={},this._properties[E.CLEAR_ALL]="-",this}
2,t.prototype._safeSet=function(t,e,r){if(this._validate(t,e,r)){var n=this._properties[t];return void 0===n&&(n={},this._properties[t]=n),n[e]=r,this._propertySet.add(e),!0}return!1},t.prototype._validate=function(t,e,r){return void 0===this._properties[E.CLEAR_ALL]&&(!this._propertySet.has(e)&&(t===E.ADD?"number"==typeof r:t===E.UNSET||t===E.REMOVE||N(e,r)))},t}(),F=function(){function t(){this.productId="",this.quantity=1,this.price=0}return t.prototype.setProductId=function(t){return this.productId=t,this},t.prototype.setQuantity=function(t){return t>0&&(this.quantity=t),this},t.prototype.setPrice=function(t){return this.price=t,this},t.prototype.setRevenueType=function(t){return this.revenueType=t,this},t.prototype.setRevenue=function(t){return this.revenue=t,this},t.prototype.setEventProperties=function(t){return M(t)&&(this.properties=t),this},t.prototype.getEventProperties=function(){var t=this.properties?Object(c.a)({},this.properties):{};return t[_.REVENUE_PRODUCT_ID]=this.productId,t[_.REVENUE_QUANTITY]=this.quantity,t[_.REVENUE_PRICE]=this.price,t[_.REVENUE_TYPE]=this.revenueType,t[_.REVENUE]=this.revenue,t},t}(),j=function(t,e){return Object(c.a)(Object(c.a)({},e),{event_type:T.IDENTIFY,user_properties:t.getUserProperties()})},L=function(){function t(){this.queue=[],this.applying=!1,this.plugins=[]}return t.prototype.register=function(t,e){return Object(c.b)(this,void 0,void 0,(function(){return Object(c.d)(this,(function(r){switch(r.label){case 0:return[4,t.setup(e)];case 1:return r.sent(),this.plugins.push(t),[2]}}))}))},t.prototype.deregister=function(t){return this.plugins.splice(this.plugins.findIndex((function(e){return e.name===t})),1),Promise.resolve()},t.prototype.reset=function(){this.applying=!1,this.plugins=[]},t.prototype.push=function(t){var e=this;return new Promise((function(r){e.queue.push([t,r]),e.scheduleApply(0)}))},t.prototype.scheduleApply=function(t){var e=this;this.applying||(this.applying=!0,setTimeout((function(){e.apply(e.queue.shift()).then((function(){e.applying=!1,e.queue.length>0&&e.scheduleApply(0)}))}),t))},t.prototype.apply=function(t){return Object(c.b)(this,void 0,void 0,(function(){var e,r,n,l,h,d,f,m,y,v,E,_,T,S,x,I,P,O;return Object(c.d)(this,(function(A){switch(A.label){case 0:if(!t)return[2];e=Object(c.e)(t,1),r=e[0],n=Object(c.e)(t,2),l=n[1],h=this.plugins.filter((function(t){return t.type===o.BEFORE})),A.label=1;case 1:A.trys.push([1,6,7,8]),d=Object(c.h)(h),f=d.next(),A.label=2;case 2:return f.done?[3,5]:[4,f.value.execute(Object(c.a)({},r))];case 3:r=A.sent(),A.label=4;case 4:return f=d.next(),[3,2];case 5:return[3,8];case 6:return m=A.sent(),x={error:m},[3,8];case 7:try{f&&!f.done&&(I=d.return)&&I.call(d)}finally{if(x)throw x.error}return[7];case 8:y=this.plugins.filter((function(t){return t.type===o.ENRICHMENT})),A.label=9;case 9:A.trys.push([9,14,15,16]),v=Object(c.h)(y),E=v.next(),A.label=10;case 10:return E.done?[3,13]:[4,E.value.execute(Object(c.a)({},r))];case 11:r=A.sent(),A.label=12;case 12:return E=v.next(),[3,10];case 13:return[3,16];case 14:return _=A.sent(),P={error:_},[3,16];case 15:try{E&&!E.done&&(O=v.return)&&O.call(v)}finally{if(P)throw P.error}return[7];case 16:return T=this.plugins.filter((function(t){return t.type===o.DESTINATION})),S=T.map((function(t){var e=Object(c.a)({},r);return t.execute(e).catch((function(t){return w(e,0,String(t))}))})),Promise.all(S).then((function(t){var e=Object(c.e)(t,1)[0];l(e)})),[2]}}))}))},t.prototype.flush=function(){return Object(c.b)(this,void 0,void 0,(function(){var t,e,r,n=this;return Object(c.d)(this,(function(l){switch(l.label){case 0:return t=this.queue,this.queue=[],[4,Promise.all(t.map((function(t){return n.apply(t)})))];case 1:return l.sent(),e=this.plugins.filter((function(t){return t.type===o.DESTINATION})),r=e.map((function(t){return t.flush&&t.flush()})),[4,Promise.all(r)];case 2:return l.sent(),[2]}}))}))},t}(),B=function(){function t(t){void 0===t&&(t="$default"),this.initializing=!1,this.q=[],this.dispatchQ=[],this.logEvent=this.track.bind(this),this.timeline=new L,this.name=t}return t.prototype._init=function(t){return Object(c.b)(this,void 0,void 0,(function(){return Object(c.d)(this,(function(e){switch(e.label){case 0:return this.config=t,this.timeline.reset(),[4,this.runQueuedFunctions("q")];case 1:return e.sent(),[2]}}))}))},t.prototype.runQueuedFunctions=function(t){return Object(c.b)(this,void 0,void 0,(function(){var e,r,n,o,l,h;return Object(c.d)(this,(function(d){switch(d.label){case 0:e=this[t],this[t]=[],d.label=1;case 1:d.trys.push([1,6,7,8]),r=Object(c.h)(e),n=r.next(),d.label=2;case 2:return n.done?[3,5]:[4,(0,n.value)()];case 3:d.sent(),d.label=4;case 4:return n=r.next(),[3,2];case 5:return[3,8];case 6:return o=d.sent(),l={error:o},[3,8];case 7:try{n&&!n.done&&(h=r.return)&&h.call(r)}finally{if(l)throw l.error}
2return[7];case 8:return[2]}}))}))},t.prototype.track=function(t,e,r){var n=function(t,e,r){var n="string"==typeof t?{event_type:t}:t;return Object(c.a)(Object(c.a)(Object(c.a)({},n),r),e&&{event_properties:e})}(t,e,r);return this.dispatch(n)},t.prototype.identify=function(t,e){var r=j(t,e);return this.dispatch(r)},t.prototype.groupIdentify=function(t,e,r,n){var o=function(t,e,r,n){var o;return Object(c.a)(Object(c.a)({},n),{event_type:T.GROUP_IDENTIFY,group_properties:r.getUserProperties(),groups:(o={},o[t]=e,o)})}(t,e,r,n);return this.dispatch(o)},t.prototype.setGroup=function(t,e,r){var n=function(t,e,r){var n,o=new R;return o.set(t,e),Object(c.a)(Object(c.a)({},r),{event_type:T.IDENTIFY,user_properties:o.getUserProperties(),groups:(n={},n[t]=e,n)})}(t,e,r);return this.dispatch(n)},t.prototype.revenue=function(t,e){var r=function(t,e){return Object(c.a)(Object(c.a)({},e),{event_type:T.REVENUE,event_properties:t.getEventProperties()})}(t,e);return this.dispatch(r)},t.prototype.add=function(t){return Object(c.b)(this,void 0,void 0,(function(){return Object(c.d)(this,(function(e){return this.config?[2,this.timeline.register(t,this.config)]:(this.q.push(this.add.bind(this,t)),[2])}))}))},t.prototype.remove=function(t){return Object(c.b)(this,void 0,void 0,(function(){return Object(c.d)(this,(function(e){return this.config?[2,this.timeline.deregister(t)]:(this.q.push(this.remove.bind(this,t)),[2])}))}))},t.prototype.dispatchWithCallback=function(t,e){if(!this.config)return e(w(t,0,"Client not initialized"));this.process(t).then(e)},t.prototype.dispatch=function(t){return Object(c.b)(this,void 0,void 0,(function(){var e=this;return Object(c.d)(this,(function(r){return this.config?[2,this.process(t)]:[2,new Promise((function(r){e.dispatchQ.push(e.dispatchWithCallback.bind(e,t,r))}))]}))}))},t.prototype.process=function(t){return Object(c.b)(this,void 0,void 0,(function(){var e,r,n;return Object(c.d)(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),this.config.optOut?[2,w(t,0,"Event skipped due to optOut config")]:[4,this.timeline.push(t)];case 1:return 200===(n=o.sent()).code?this.config.loggerProvider.log(n.message):this.config.loggerProvider.error(n.message),[2,n];case 2:return e=o.sent(),r=String(e),this.config.loggerProvider.error(r),[2,n=w(t,0,r)];case 3:return[2]}}
2))}))},t.prototype.setOptOut=function(t){this.config?this.config.optOut=Boolean(t):this.q.push(this.setOptOut.bind(this,Boolean(t)))},t.prototype.flush=function(){return this.timeline.flush()},t}(),V=function(t){return void 0===t&&(t=0),((new Error).stack||"").split("\n").slice(2+t).map((function(text){return text.trim()}))},z=function(t){return function(){var e=Object(c.a)({},t.config);return{logger:e.loggerProvider,logLevel:e.logLevel}}},G=function(t,path){var e,r;path=(path=path.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"");try{for(var n=Object(c.h)(path.split(".")),o=n.next();!o.done;o=n.next()){var l=o.value;if(!(l in t))return;t=t[l]}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}return t},U=function(t,e){return function(){var r,n,o={};try{for(var l=Object(c.h)(e),h=l.next();!h.done;h=l.next()){var path=h.value;o[path]=G(t,path)}}catch(t){r={error:t}}finally{try{h&&!h.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}return o}},$=function(t,e,r,n,o){return void 0===o&&(o=null),function(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];var d=r(),f=d.logger,m=d.logLevel;if(m&&m<h.Debug||!m||!f)return t.apply(o,l);var y={type:"invoke public method",name:e,args:l,stacktrace:V(1),time:{start:(new Date).toISOString()},states:{}};n&&y.states&&(y.states.before=n());var v=t.apply(o,l);return v&&v.promise?v.promise.then((function(){n&&y.states&&(y.states.after=n()),y.time&&(y.time.end=(new Date).toISOString()),f.debug(JSON.stringify(y,null,2))})):(n&&y.states&&(y.states.after=n()),y.time&&(y.time.end=(new Date).toISOString()),f.debug(JSON.stringify(y,null,2))),v}},H=function(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return{promise:t.apply(void 0,Object(c.g)([],Object(c.e)(e),!1))}}},Y=r(281),W=function(){return Y.a.getInstance("$default_instance")},K=function(){function t(){this.name="identity",this.type=o.BEFORE,this.identityStore=W().identityStore}return t.prototype.execute=function(t){return Object(c.b)(this,void 0,void 0,(function(){var e;return Object(c.d)(this,(function(r){return(e=t.user_properties)&&this.identityStore.editIdentity().updateUserProperties(e).commit(),[2,t]}))}))},t.prototype.setup=function(t){return Promise.resolve(void 0)},t}(),Q=function(t,e,r){return void 0===e&&(e=""),void 0===r&&(r=10),[m,e,t.substring(0,r)].filter(Boolean).join("_")},J=r(107),X=function(){var t,e=Object(J.a)();return(null===(t=null==e?void 0:e.location)||void 0===t?void 0:t.search)?e.location.search.substring(1).split("&").filter(Boolean).reduce((function(t,e){var r=e.split("=",2),n=Z(r[0]),o=Z(r[1]);return o?(t[n]=o,t):t}),{}):{}},Z=function(t){void 0===t&&(t="");try{return decodeURIComponent(t)}catch(t){return""}},tt="dclid",et="fbclid",nt="gbraid",it="gclid",at="ko_click_id",st="msclkid",ot="ttclid",lt="twclid",ct="wbraid",ht={utm_campaign:void 0,utm_content:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,referrer:void 0,referring_domain:void 0,dclid:void 0,gbraid:void 0,gclid:void 0,fbclid:void 0,ko_click_id:void 0,msclkid:void 0,ttclid:void 0,twclid:void 0,wbraid:void 0},ut=function(){function t(){}return t.prototype.parse=function(){return Object(c.b)(this,void 0,void 0,(function(){return Object(c.d)(this,(function(t){return[2,Object(c.a)(Object(c.a)(Object(c.a)(Object(c.a)({},ht),this.getUtmParam()),this.getReferrer()),this.getClickIds())]}))}))},t.prototype.getUtmParam=function(){var t=X();return{utm_campaign:t.utm_campaign,utm_content:t.utm_content,utm_id:t.utm_id,utm_medium:t.utm_medium,utm_source:t.utm_source,utm_term:t.utm_term}},t.prototype.getReferrer=function(){var t,e,data={referrer:void 0,referring_domain:void 0};try{data.referrer=document.referrer||void 0,data.referring_domain=null!==(e=null===(t=data.referrer)||void 0===t?void 0:t.split("/")[2])&&void 0!==e?e:void 0}catch(t){}return data},t.prototype.getClickIds=function(){var t,e=X();return(t={})[tt]=e[tt],t[et]=e[et],t[nt]=e[nt],t[it]=e[it],t[at]=e[at],t[st]=e[st],t[ot]=e[ot],t[lt]=e[lt],t[ct]=e[ct],t},t}(),pt=function(){function t(t,e){var r,n;this.storage=e.storage,this.storageKey=Q(t,"MKTG"),this.parser=new ut,this.track=e.track,this.onNewCampaign=e.onNewCampaign,this.disabled=Boolean(e.disabled),this.trackNewCampaigns=Boolean(e.trackNewCampaigns),this.trackPageViews=Boolean(e.trackPageViews),this.excludeReferrers=null!==(r=e.excludeReferrers)&&void 0!==r?r:[],"undefined"!=typeof location&&this.excludeReferrers.unshift(location.hostname),this.initialEmptyValue=null!==(n=e.initialEmptyValue)&&void 0!==n?n:"EMPTY"}return t.prototype.isNewCampaign=function(t,e,r){void 0===r&&(r=!1);t.referrer;var n=t.referring_domain,o=Object(c.f)(t,["referrer","referring_domain"]),l=e||{},h=(l.referrer,l.referring_domain),d=Object(c.f)(l,["referrer","referring_domain"]);if(t.referring_domain&&this.excludeReferrers.includes(t.referring_domain))return!1;var f=JSON.stringify(o)!==JSON.stringify(d),m=r?ft(n||"")!==ft(h||""):n!==h;return!e||f||m},t.prototype.saveCampaignToStorage=function(t){return Object(c.b)(this,void 0,void 0,(function(){return Object(c.d)(this,(function(e){switch(e.label){case 0:return[4,this.storage.set(this.storageKey,t)];case 1:return e.sent(),[2]}}))}))},t.prototype.getCampaignFromStorage=function(){return Object(c.b)(this,void 0,void 0,(function(){return Object(c.d)(this,(function(t){switch(t.label){case 0:return[4,this.storage.get(this.storageKey)];case 1:return[2,t.sent()]}}))}))},t.prototype.createCampaignEvent=function(t){var e=this,r=Object(c.a)(Object(c.a)({},ht),t),n=Object.entries(r).reduce((function(t,r){var n=Object(c.e)(r,2),o=n[0],l=n[1];return t.setOnce("initial_".concat(o),l||e.initialEmptyValue),l?t.set(o,l):t.unset(o)}),new R),o={event_type:"Page View",event_properties:{page_title:"undefined"!=typeof document&&document.title||"",page_location:"undefined"!=typeof location&&location.href||"",page_path:"undefined"!=typeof location&&location.pathname||""}};return Object(c.a)(Object(c.a)({},j(n)),this.trackPageViews&&o)},t.prototype.send=function(t){return Object(c.b)(this,void 0,void 0,(function(){var e,r;return Object(c.d)(this,(function(n){switch(n.label){case 0:return this.disabled?[2]:[4,this.parser.parse()];case 1:return e=n.sent(),[4,this.getCampaignFromStorage()];case 2:if(r=n.sent(),!t){if(!this.trackNewCampaigns||!this.isNewCampaign(e,r))return[2];this.onNewCampaign(e)}return[4,this.track(this.createCampaignEvent(e))];
2case 3:return n.sent(),[4,this.saveCampaignToStorage(e)];case 4:return n.sent(),[2]}}))}))},t}(),ft=function(t){var e=t.split(".");return e.length<=2?t:e.slice(e.length-2,e.length).join(".")},mt=function(t,e){gt(t,e)},gt=function(t,e){for(var i=0;i<e.length;i++){var r=e[i],n=r.name,o=r.args,l=r.resolve,c=t&&t[n];if("function"==typeof c){var h=c.apply(t,o);"function"==typeof l&&l(null==h?void 0:h.promise)}}return t},yt=function(t){return t&&void 0!==t._q},vt=r(158),bt=r.n(vt),wt=function(){var t,e,r,n;if("undefined"==typeof navigator)return"";var o=navigator.userLanguage;return null!==(n=null!==(r=null!==(e=null===(t=navigator.languages)||void 0===t?void 0:t[0])&&void 0!==e?e:navigator.language)&&void 0!==r?r:o)&&void 0!==n?n:""},Et=function(){function t(){var t;this.name="context",this.type=o.BEFORE,this.eventId=0,this.library="amplitude-ts/".concat("1.6.8"),"undefined"!=typeof navigator&&(t=navigator.userAgent),this.uaResult=new bt.a(t).getResult()}return t.prototype.setup=function(t){return this.config=t,Promise.resolve(void 0)},t.prototype.execute=function(t){return Object(c.b)(this,void 0,void 0,(function(){var time,e,r,n,o;return Object(c.d)(this,(function(l){return this.isSessionValid()||(this.config.sessionId=Date.now()),this.config.lastEventTime=Date.now(),time=(new Date).getTime(),e=this.uaResult.browser.name,r=this.uaResult.browser.version,n=this.uaResult.device.model||this.uaResult.os.name,o=this.uaResult.device.vendor,[2,Object(c.a)(Object(c.a)(Object(c.a)(Object(c.a)(Object(c.a)(Object(c.a)(Object(c.a)(Object(c.a)(Object(c.a)(Object(c.a)(Object(c.a)(Object(c.a)({user_id:this.config.userId,device_id:this.config.deviceId,session_id:this.config.sessionId,time:time},this.config.appVersion&&{app_version:this.config.appVersion}),this.config.trackingOptions.platform&&{platform:"Web"}),this.config.trackingOptions.osName&&{os_name:e}),this.config.trackingOptions.osVersion&&{os_version:r}),this.config.trackingOptions.deviceManufacturer&&{device_manufacturer:o}),this.config.trackingOptions.deviceModel&&{device_model:n}),this.config.trackingOptions.language&&{language:wt()}),this.config.trackingOptions.ipAddress&&{ip:"$remote"}),{insert_id:C(),partner_id:this.config.partnerId,plan:this.config.plan}),this.config.ingestionMetadata&&{ingestion_metadata:{source_name:this.config.ingestionMetadata.sourceName,source_version:this.config.ingestionMetadata.sourceVersion}}),t),{event_id:this.eventId++,library:this.library})]}))}))},t.prototype.isSessionValid=function(){var t=this.config.lastEventTime||Date.now();return Date.now()-t<this.config.sessionTimeout},t}();!function(t){t.XHR="xhr",t.SendBeacon="beacon",t.Fetch="fetch"}(D||(D={}));var _t=function(){function t(){this.memoryStorage=new Map}return t.prototype.isEnabled=function(){return Object(c.b)(this,void 0,void 0,(function(){return Object(c.d)(this,(function(t){return[2,!0]}))}))},t.prototype.get=function(t){return Object(c.b)(this,void 0,void 0,(function(){return Object(c.d)(this,(function(e){return[2,this.memoryStorage.get(t)]}))}))},t.prototype.getRaw=function(t){return Object(c.b)(this,void 0,void 0,(function(){var e;return Object(c.d)(this,(function(r){switch(r.label){case 0:return[4,this.get(t)];case 1:return[2,(e=r.sent())?JSON.stringify(e):void 0]}}))}))},t.prototype.set=function(t,e){return Object(c.b)(this,void 0,void 0,(function(){return Object(c.d)(this,(function(r){return this.memoryStorage.set(t,e),[2]}))}))},t.prototype.remove=function(t){return Object(c.b)(this,void 0,void 0,(function(){return Object(c.d)(this,(function(e){return this.memoryStorage.delete(t),[2]}))}))},t.prototype.reset=function(){return Object(c.b)(this,void 0,void 0,(function(){return Object(c.d)(this,(function(t){return this.memoryStorage.clear(),[2]}))}))},t}(),Tt=function(){function t(t,e){this.storage=t,this.storageKey=Q(e),this.cache={optOut:!1}}return t.prototype.load=function(){var t;return Object(c.b)(this,void 0,void 0,(function(){var e;return Object(c.d)(this,(function(r){switch(r.label){case 0:return e=this,[4,this.storage.get(this.storageKey)];case 1:return e.cache=null!==(t=r.sent())&&void 0!==t?t:{optOut:!1},[2,this]}}))}))},t.prototype.setSession=function(t){this.cache=Object(c.a)(Object(c.a)({},this.cache),t),this.storage.set(this.storageKey,this.cache)},t.prototype.getSessionId=function(){return this.cache.sessionId},t.prototype.setSessionId=function(t){this.setSession({sessionId:t})},t.prototype.getDeviceId=function(){return this.cache.deviceId},t.prototype.setDeviceId=function(t){this.setSession({deviceId:t})},t.prototype.getUserId=function(){return this.cache.userId},t.prototype.setUserId=function(t){this.setSession({userId:t})},t.prototype.getLastEventTime=function(){return this.cache.lastEventTime},t.prototype.setLastEventTime=function(t){this.setSession({lastEventTime:t})},t.prototype.getOptOut=function(){return this.cache.optOut},t.prototype.setOptOut=function(t){this.setSession({optOut:t})},t.prototype.getLastEventId=function(){return this.cache.lastEventId},t.prototype.setLastEventId=function(t){this.setSession({lastEventId:t})},t}(),St=function(){function t(){}return t.prototype.send=function(t,e){return Promise.resolve(null)},t.prototype.buildResponse=function(t){var e,r,n,o,c,h,d,f,m,y,v,w,E,_,T,S,x,I,P,O,A,k;if("object"!=typeof t)return null;var C=t.code||0,D=this.buildStatus(C);switch(D){case l.Success:return{status:D,statusCode:C,body:{eventsIngested:null!==(e=t.events_ingested)&&void 0!==e?e:0,payloadSizeBytes:null!==(r=t.payload_size_bytes)&&void 0!==r?r:0,serverUploadTime:null!==(n=t.server_upload_time)&&void 0!==n?n:0}};case l.Invalid:return{status:D,statusCode:C,body:{error:null!==(o=t.error)&&void 0!==o?o:"",missingField:null!==(c=t.missing_field)&&void 0!==c?c:"",eventsWithInvalidFields:null!==(h=t.events_with_invali
2d_fields)&&void 0!==h?h:{},eventsWithMissingFields:null!==(d=t.events_with_missing_fields)&&void 0!==d?d:{},eventsWithInvalidIdLengths:null!==(f=t.events_with_invalid_id_lengths)&&void 0!==f?f:{},epsThreshold:null!==(m=t.eps_threshold)&&void 0!==m?m:0,exceededDailyQuotaDevices:null!==(y=t.exceeded_daily_quota_devices)&&void 0!==y?y:{},silencedDevices:null!==(v=t.silenced_devices)&&void 0!==v?v:[],silencedEvents:null!==(w=t.silenced_events)&&void 0!==w?w:[],throttledDevices:null!==(E=t.throttled_devices)&&void 0!==E?E:{},throttledEvents:null!==(_=t.throttled_events)&&void 0!==_?_:[]}};case l.PayloadTooLarge:return{status:D,statusCode:C,body:{error:null!==(T=t.error)&&void 0!==T?T:""}};case l.RateLimit:return{status:D,statusCode:C,body:{error:null!==(S=t.error)&&void 0!==S?S:"",epsThreshold:null!==(x=t.eps_threshold)&&void 0!==x?x:0,throttledDevices:null!==(I=t.throttled_devices)&&void 0!==I?I:{},throttledUsers:null!==(P=t.throttled_users)&&void 0!==P?P:{},exceededDailyQuotaDevices:null!==(O=t.exceeded_daily_quota_devices)&&void 0!==O?O:{},exceededDailyQuotaUsers:null!==(A=t.exceeded_daily_quota_users)&&void 0!==A?A:{},throttledEvents:null!==(k=t.throttled_events)&&void 0!==k?k:[]}};case l.Timeout:default:return{status:D,statusCode:C}}},t.prototype.buildStatus=function(code){return code>=200&&code<300?l.Success:429===code?l.RateLimit:413===code?l.PayloadTooLarge:408===code?l.Timeout:code>=400&&code<500?l.Invalid:code>=500?l.Failed:l.Unknown},t}(),xt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.c)(e,t),e.prototype.send=function(t,e){return Object(c.b)(this,void 0,void 0,(function(){var r,n;return Object(c.d)(this,(function(o){switch(o.label){case 0:if("undefined"==typeof fetch)throw new Error("FetchTransport is not supported");return r={headers:{"Content-Type":"application/json",Accept:"*/*"},body:JSON.stringify(e),method:"POST"},[4,fetch(t,r)];case 1:return[4,o.sent().json()];case 2:return n=o.sent(),[2,this.buildResponse(n)]}}))}))},e}(St),It=function(){function t(t){this.options=Object(c.a)({},t)}return t.prototype.isEnabled=function(){return Object(c.b)(this,void 0,void 0,(function(){var e,r,n;return Object(c.d)(this,(function(o){switch(o.label){case 0:if(!Object(J.a)())return[2,!1];e=String(Date.now()),r=new t(this.options),n="AMP_TEST",o.label=1;case 1:return o.trys.push([1,4,5,7]),[4,r.set(n,e)];case 2:return o.sent(),[4,r.get(n)];case 3:return[2,o.sent()===e];case 4:return o.sent(),[2,!1];case 5:return[4,r.remove(n)];case 6:return o.sent(),[7];case 7:return[2]}}
2))}))},t.prototype.get=function(t){return Object(c.b)(this,void 0,void 0,(function(){var e;return Object(c.d)(this,(function(r){switch(r.label){case 0:return[4,this.getRaw(t)];case 1:if(!(e=r.sent()))return[2,void 0];try{try{e=decodeURIComponent(atob(e))}catch(t){}return[2,JSON.parse(e)]}catch(t){return[2,void 0]}return[2]}}))}))},t.prototype.getRaw=function(t){var e;return Object(c.b)(this,void 0,void 0,(function(){var r,n,o;return Object(c.d)(this,(function(l){return r=Object(J.a)(),n=null!==(e=null==r?void 0:r.document.cookie.split("; "))&&void 0!==e?e:[],(o=n.find((function(e){return 0===e.indexOf(t+"=")})))?[2,o.substring(t.length+1)]:[2,void 0]}))}))},t.prototype.set=function(t,e){var r;return Object(c.b)(this,void 0,void 0,(function(){var n,o,l,h,d,f;return Object(c.d)(this,(function(c){try{n=null!==(r=this.options.expirationDays)&&void 0!==r?r:0,l=void 0,(o=null!==e?n:-1)&&((h=new Date).setTime(h.getTime()+24*o*60*60*1e3),l=h),d="".concat(t,"=").concat(btoa(encodeURIComponent(JSON.stringify(e)))),l&&(d+="; expires=".concat(l.toUTCString())),d+="; path=/",this.options.domain&&(d+="; domain=".concat(this.options.domain)),this.options.secure&&(d+="; Secure"),this.options.sameSite&&(d+="; SameSite=".concat(this.options.sameSite)),(f=Object(J.a)())&&(f.document.cookie=d)}catch(t){}return[2]}))}))},t.prototype.remove=function(t){return Object(c.b)(this,void 0,void 0,(function(){return Object(c.d)(this,(function(e){switch(e.label){case 0:return[4,this.set(t,null)];case 1:return e.sent(),[2]}}))}))},t.prototype.reset=function(){return Object(c.b)(this,void 0,void 0,(function(){return Object(c.d)(this,(function(t){return[2]}))}))},t}(),Pt=function(){function t(){}return t.prototype.isEnabled=function(){return Object(c.b)(this,void 0,void 0,(function(){var e,r,n;return Object(c.d)(this,(function(o){switch(o.label){case 0:if(!Object(J.a)())return[2,!1];e=String(Date.now()),r=new t,n="AMP_TEST",o.label=1;case 1:return o.trys.push([1,4,5,7]),[4,r.set(n,e)];case 2:return o.sent(),[4,r.get(n)];case 3:return[2,o.sent()===e];case 4:return o.sent(),[2,!1];case 5:return[4,r.remove(n)];case 6:return o.sent(),[7];case 7:return[2]}}
2))}))},t.prototype.get=function(t){return Object(c.b)(this,void 0,void 0,(function(){var e;return Object(c.d)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.getRaw(t)];case 1:return(e=r.sent())?[2,JSON.parse(e)]:[2,void 0];case 2:return r.sent(),[2,void 0];case 3:return[2]}}))}))},t.prototype.getRaw=function(t){var e;return Object(c.b)(this,void 0,void 0,(function(){return Object(c.d)(this,(function(r){return[2,(null===(e=Object(J.a)())||void 0===e?void 0:e.localStorage.getItem(t))||void 0]}))}))},t.prototype.set=function(t,e){var r;return Object(c.b)(this,void 0,void 0,(function(){return Object(c.d)(this,(function(n){try{null===(r=Object(J.a)())||void 0===r||r.localStorage.setItem(t,JSON.stringify(e))}catch(t){}return[2]}))}))},t.prototype.remove=function(t){var e;return Object(c.b)(this,void 0,void 0,(function(){return Object(c.d)(this,(function(r){try{null===(e=Object(J.a)())||void 0===e||e.localStorage.removeItem(t)}catch(t){}return[2]}))}))},t.prototype.reset=function(){var t;return Object(c.b)(this,void 0,void 0,(function(){return Object(c.d)(this,(function(e){try{null===(t=Object(J.a)())||void 0===t||t.localStorage.clear()}catch(t){}return[2]}))}))},t}(),Ot=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={done:4},e}return Object(c.c)(e,t),e.prototype.send=function(t,e){return Object(c.b)(this,void 0,void 0,(function(){var r=this;return Object(c.d)(this,(function(n){return[2,new Promise((function(n,o){"undefined"==typeof XMLHttpRequest&&o(new Error("XHRTransport is not supported."));var l=new XMLHttpRequest;l.open("POST",t,!0),l.onreadystatechange=function(){if(l.readyState===r.state.done)try{var t=l.responseText,e=JSON.parse(t),c=r.buildResponse(e);n(c)}catch(t){o(t)}},l.setRequestHeader("Content-Type","application/json"),l.setRequestHeader("Accept","*/*"),l.send(JSON.stringify(e))}))]}))}))},e}(St),At=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.c)(e,t),e.prototype.send=function(t,e){return Object(c.b)(this,void 0,void 0,(function(){var r=this;return Object(c.d)(this,(function(n){return[2,new Promise((function(n,o){var l=Object(J.a)();if(!(null==l?void 0:l.navigator.sendBeacon))throw new Error("SendBeaconTransport is not supported");try{var data=JSON.stringify(e);return n(l.navigator.sendBeacon(t,JSON.stringify(e))?r.buildResponse({code:200,events_ingested:e.events.length,payload_size_bytes:data.length,server_upload_time:Date.now()}):r.buildResponse({code:500}))}catch(t){o(t)}}))]}))}))},e}(St),kt=function(){var t=new _t;return{cookieExpiration:365,cookieSameSite:"Lax",cookieSecure:!1,cookieStorage:t,disableCookies:!1,domain:"",sessionManager:new Tt(t,""),sessionTimeout:18e5,storageProvider:new _t,trackingOptions:{deviceManufacturer:!0,deviceModel:!0,ipAddress:!0,language:!0,osName:!0,osVersion:!0,platform:!0},transportProvider:new xt}},Ct=function(t){function e(e,r,n){var o,l,h,d,f,m,y,v,w,E,_,T,S=this,x=kt();return(S=t.call(this,Object(c.a)(Object(c.a)({flushIntervalMillis:1e3,flushMaxRetries:5,flushQueueSize:30},n),{apiKey:e,storageProvider:null!==(o=null==n?void 0:n.storageProvider)&&void 0!==o?o:x.storageProvider,transportProvider:null!==(l=null==n?void 0:n.transportProvider)&&void 0!==l?l:x.transportProvider}))||this).cookieStorage=null!==(h=null==n?void 0:n.cookieStorage)&&void 0!==h?h:x.cookieStorage,S.sessionManager=null!==(d=null==n?void 0:n.sessionManager)&&void 0!==d?d:x.sessionManager,S.sessionTimeout=null!==(f=null==n?void 0:n.sessionTimeout)&&void 0!==f?f:x.sessionTimeout,S.appVersion=null==n?void 0:n.appVersion,S.attribution=null==n?void 0:n.attribution,S.cookieExpiration=null!==(m=null==n?void 0:n.cookieExpiration)&&void 0!==m?m:x.cookieExpiration,S.cookieSameSite=null!==(y=null==n?void 0:n.cookieSameSite)&&void 0!==y?y:x.cookieSameSite,S.cookieSecure=null!==(v=null==n?void 0:n.cookieSecure)&&void 0!==v?v:x.cookieSecure,S.deviceId=null==n?void 0:n.deviceId,S.disableCookies=null!==(w=null==n?void 0:n.disableCookies)&&void 0!==w?w:x.disableCookies,S.domain=null!==(E=null==n?void 0:n.domain)&&void 0!==E?E:x.domain,S.lastEventTime=null!==(_=S.lastEventTime)&&void 0!==_?_:null==n?void 0:n.lastEventTime,S.optOut=Boolean(null==n?void 0:n.optOut),S.partnerId=null==n?void 0:n.partnerId,S.sessionId=null==n?void 0:n.sessionId,S.trackingOptions=null!==(T=null==n?void 0:n.trackingOptions)&&void 0!==T?T:x.trackingOptions,S.userId=r,S}return Object(c.c)(e,t),Object.defineProperty(e.prototype,"deviceId",{get:function(){return this.sessionManager.getDeviceId()},set:function(t){this.sessionManager.setDeviceId(t)}
2,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"userId",{get:function(){return this.sessionManager.getUserId()},set:function(t){this.sessionManager.setUserId(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sessionId",{get:function(){return this.sessionManager.getSessionId()},set:function(t){this.sessionManager.setSessionId(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"optOut",{get:function(){return this.sessionManager.getOptOut()},set:function(t){var e;null===(e=this.sessionManager)||void 0===e||e.setOptOut(Boolean(t))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastEventTime",{get:function(){return this.sessionManager.getLastEventTime()},set:function(t){this.sessionManager.setLastEventTime(t)},enumerable:!1,configurable:!0}),e}(P),Dt=function(t,e,r){return Object(c.b)(void 0,void 0,void 0,(function(){var n,o,l,h,d,f,m,y,v,w,E,_,T,S,x,I,P;return Object(c.d)(this,(function(O){switch(O.label){case 0:return n=kt(),null===(T=null==r?void 0:r.domain)||void 0===T?[3,1]:(l=T,[3,3]);case 1:return[4,Lt()];case 2:l=O.sent(),O.label=3;case 3:return o=l,[4,Mt(Object(c.a)(Object(c.a)({},r),{domain:o}))];case 4:return h=O.sent(),d=Q(t),[4,h.get(d)];case 5:return f=O.sent(),m=X(),[4,new Tt(h,t).load()];case 6:return y=O.sent(),v=Ct.bind,w=[void 0,t,null!=e?e:null==f?void 0:f.userId],E=[Object(c.a)({},r)],_={cookieStorage:h,sessionManager:y,deviceId:Ft(null==f?void 0:f.deviceId,null==r?void 0:r.deviceId,m.deviceId),domain:o,optOut:null!==(S=null==r?void 0:r.optOut)&&void 0!==S?S:Boolean(null==f?void 0:f.optOut)},[4,h.get(d)];case 7:return _.sessionId=null!==(I=null===(x=O.sent())||void 0===x?void 0:x.sessionId)&&void 0!==I?I:null==r?void 0:r.sessionId,[4,Rt(r)];case 8:return[2,new(v.apply(Ct,w.concat([c.a.apply(void 0,E.concat([(_.storageProvider=O.sent(),_.trackingOptions=Object(c.a)(Object(c.a)({},n.trackingOptions),null==r?void 0:r.trackingOptions),_.transportProvider=null!==(P=null==r?void 0:r.transportProvider)&&void 0!==P?P:jt(null==r?void 0:r.transport),_)]))])))]}}))}))},Mt=function(t,e){return void 0===e&&(e=kt()),Object(c.b)(void 0,void 0,void 0,(function(){var r,n,o;return Object(c.d)(this,(function(l){switch(l.label){case 0:return r=Object(c.a)(Object(c.a)({},e),t),n=null==t?void 0:t.cookieStorage,(o=!n)?[3,2]:[4,n.isEnabled()];case 1:o=!l.sent(),l.label=2;case 2:return o?[2,Nt(r)]:[2,n]}}))}))},Nt=function(t){return Object(c.b)(void 0,void 0,void 0,(function(){var e,r;return Object(c.d)(this,(function(n){switch(n.label){case 0:return e=new It({domain:t.domain,expirationDays:t.cookieExpiration,sameSite:t.cookieSameSite,secure:t.cookieSecure}),(r=t.disableCookies)?[3,2]:[4,e.isEnabled()];case 1:r=!n.sent(),n.label=2;case 2:return r?[4,(e=new Pt).isEnabled()]:[3,4];case 3:n.sent()||(e=new _t),n.label=4;case 4:return[2,e]}}))}))},Rt=function(t){return Object(c.b)(void 0,void 0,void 0,(function(){var e,r,n,o,l,h,d;return Object(c.d)(this,(function(f){switch(f.label){case 0:if(t&&Object.prototype.hasOwnProperty.call(t,"storageProvider")&&!t.storageProvider)return[3,9];f.label=1;case 1:f.trys.push([1,7,8,9]),e=Object(c.h)([null==t?void 0:t.storageProvider,new Pt]),r=e.next(),f.label=2;case 2:return r.done?[3,6]:(n=r.value,(o=n)?[4,n.isEnabled()]:[3,4]);case 3:o=f.sent(),f.label=4;case 4:if(o)return[2,n];f.label=5;case 5:return r=e.next(),[3,2];case 6:return[3,9];case 7:return l=f.sent(),h={error:l},[3,9];case 8:try{r&&!r.done&&(d=e.return)&&d.call(e)}finally{if(h)throw h.error}return[7];case 9:return[2,void 0]}}))}))},Ft=function(t,e,r){return e||r||t||C()},jt=function(t){return t===D.XHR?new Ot:t===D.SendBeacon?new At:kt().transportProvider},Lt=function(t){return Object(c.b)(void 0,void 0,void 0,(function(){var e,r,n,o,i,l,h;return Object(c.d)(this,(function(c){switch(c.label){case 0:return[4,(new It).isEnabled()];case 1:if(!c.sent()||!t&&"undefined"==typeof location)return[2,""];for(e=null!=t?t:location.hostname,r=e.split("."),n=[],o="AMP_TLDTEST",i=r.length-2;i>=0;--i)n.push(r.slice(i).join("."));i=0,c.label=2;case 2:return i<n.length?(l=n[i],[4,(h=new It({domain:"."+l})).set(o,1)]):[3,7];case 3:return c.sent(),[4,h.get(o)];case 4:return c.sent()?[4,h.remove(o)]:[3,6];case 5:return c.sent(),[2,"."+l];case 6:return i++,[3,2];case 7:return[2,""]}}))}))},Bt=function(t,e){return Object(c.b)(void 0,void 0,void 0,(function(){var r,n,o,l,h,d,f,y,v;return Object(c.d)(this,(function(w){switch(w.label){case 0:return[4,(r=new It).isEnabled()];case 1:return w.sent()&&!(null==e?void 0:e.disableCookies)||(r=new Pt),[4,r.isEnabled()];case 2:return w.sent()?(n=function(t){return"".concat(m.toLowerCase(),"_").concat(t.substring(0,6))}(t),[4,r.getRaw(n)]):[2,{optOut:!1}];case 3:return(o=w.sent())?[4,r.remove(n)]:[2,{optOut:!1}];case 4:return w.sent(),l=Object(c.e)(o.split("."),5),h=l[0],d=l[1],f=l[2],y=l[3],v=l[4],[2,{deviceId:h,userId:zt(d),sessionId:Vt(y),lastEventTime:Vt(v),optOut:Boolean(f)}]}}))}))},Vt=function(t){var e=parseInt(t,32);if(!isNaN(e))return e},zt=function(t){if(atob&&escape&&t)try{return decodeURIComponent(escape(atob(t)))}catch(t){return}},Gt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.c)(e,t),e.prototype.init=function(e,r,n){var o,l,h;return void 0===e&&(e=""),Object(c.b)(this,void 0,void 0,(function(){var d,f,m,y,v=this;return Object(c.d)(this,(function(w){switch(w.label){case 0:return this.initializing?[2]:(this.initializing=!0,[4,Bt(e,n)]);case 1:return d=w.sent(),[4,Dt(e,r||d.userId,Object(c.a)(Object(c.a)({},n),{deviceId:null!==(o=d.deviceId)&&void 0!==o?o:null==n?void 0:n.deviceId,sessionId:null!==(l=d.sessionId)&&void 0!==l?l:null==n?void 0:n.sessionId,optOut:null!==(h=null==n?void 0:n.optOut)&&void 0!==h?h:d.optOut,lastEventTime:d.lastEventTime}))];
2case 2:return f=w.sent(),[4,t.prototype._init.call(this,f)];case 3:return w.sent(),m=!this.config.lastEventTime,(!this.config.sessionId||this.config.lastEventTime&&Date.now()-this.config.lastEventTime>this.config.sessionTimeout)&&(this.setSessionId(Date.now()),m=!0),(y=W()).eventBridge.setEventReceiver((function(t){v.track(t.eventType,t.eventProperties)})),y.identityStore.setIdentity({userId:this.config.userId,deviceId:this.config.deviceId}),[4,this.add(new Et)];case 4:return w.sent(),[4,this.add(new K)];case 5:return w.sent(),[4,this.add(new k)];case 6:return w.sent(),this.initializing=!1,[4,this.runAttributionStrategy(f.attribution,m)];case 7:return w.sent(),[4,this.runQueuedFunctions("dispatchQ")];case 8:return w.sent(),[2]}}))}))},e.prototype.runAttributionStrategy=function(t,e){return void 0===e&&(e=!1),Object(c.b)(this,void 0,void 0,(function(){var track,r,n;return Object(c.d)(this,(function(o){switch(o.label){case 0:return track=this.track.bind(this),r=this.setSessionId.bind(this,Date.now()),[4,Nt(this.config)];case 1:return n=o.sent(),[4,new pt(this.config.apiKey,Object(c.a)(Object(c.a)({},t),{storage:n,track:track,onNewCampaign:r})).send(e)];case 2:return o.sent(),[2]}}))}))},e.prototype.getUserId=function(){var t;return null===(t=this.config)||void 0===t?void 0:t.userId},e.prototype.setUserId=function(t){this.config?this.config.userId=t:this.q.push(this.setUserId.bind(this,t))},e.prototype.getDeviceId=function(){var t;return null===(t=this.config)||void 0===t?void 0:t.deviceId},e.prototype.setDeviceId=function(t){this.config?this.config.deviceId=t:this.q.push(this.setDeviceId.bind(this,t))},e.prototype.reset=function(){this.setUserId(void 0),this.setDeviceId(C())},e.prototype.getSessionId=function(){var t;return null===(t=this.config)||void 0===t?void 0:t.sessionId},e.prototype.setSessionId=function(t){this.config?(this.config.sessionId=t,this.config.lastEventTime=void 0):this.q.push(this.setSessionId.bind(this,t))},e.prototype.setTransport=function(t){this.config?this.config.transportProvider=jt(t):this.q.push(this.setTransport.bind(this,t))},e.prototype.identify=function(e,r){if(yt(e)){var n=e._q;e._q=[],e=gt(new R,n)}return(null==r?void 0:r.user_id)&&this.setUserId(r.user_id),(null==r?void 0:r.device_id)&&this.setDeviceId(r.device_id),t.prototype.identify.call(this,e,r)},e.prototype.groupIdentify=function(e,r,n,o){if(yt(n)){var l=n._q;n._q=[],n=gt(new R,l)}return t.prototype.groupIdentify.call(this,e,r,n,o)},e.prototype.revenue=function(e,r){if(yt(e)){var n=e._q;e._q=[],e=gt(new F,n)}return t.prototype.revenue.call(this,e,r)},e}(B),Ut=function(){var t=new Gt;return{init:$(H(t.init.bind(t)),"init",z(t),U(t,["config"])),add:$(H(t.add.bind(t)),"add",z(t),U(t,["config.apiKey","timeline.plugins"])),remove:$(H(t.remove.bind(t)),"remove",z(t),U(t,["config.apiKey","timeline.plugins"])),track:$(H(t.track.bind(t)),"track",z(t),U(t,["config.apiKey","timeline.queue.length"])),logEvent:$(H(t.logEvent.bind(t)),"logEvent",z(t),U(t,["config.apiKey","timeline.queue.length"])),identify:$(H(t.identify.bind(t)),"identify",z(t),U(t,["config.apiKey","timeline.queue.length"])),groupIdentify:$(H(t.groupIdentify.bind(t)),"groupIdentify",z(t),U(t,["config.apiKey","timeline.queue.length"])),setGroup:$(H(t.setGroup.bind(t)),"setGroup",z(t),U(t,["config.apiKey","timeline.queue.length"])),revenue:$(H(t.revenue.bind(t)),"revenue",z(t),U(t,["config.apiKey","timeline.queue.length"])),flush:$(H(t.flush.bind(t)),"flush",z(t),U(t,["config.apiKey","timeline.queue.length"])),getUserId:$(t.getUserId.bind(t),"getUserId",z(t),U(t,["config","config.userId"])),setUserId:$(t.setUserId.bind(t),"setUserId",z(t),U(t,["config","config.userId"])),getDeviceId:$(t.getDeviceId.bind(t),"getDeviceId",z(t),U(t,["config","config.deviceId"])),setDeviceId:$(t.setDeviceId.bind(t),"setDeviceId",z(t),U(t,["config","config.deviceId"])),reset:$(t.reset.bind(t),"reset",z(t),U(t,["config","config.userId","config.deviceId"])),getSessionId:$(t.getSessionId.bind(t),"getSessionId",z(t),U(t,["config"])),setSessionId:$(t.setSessionId.bind(t),"setSessionId",z(t),U(t,["config"])),setOptOut:$(t.setOptOut.bind(t),"setOptOut",z(t),U(t,["config"])),setTransport:$(t.setTransport.bind(t),"setTransport",z(t),U(t,["config"]))}},$t=Ut(),qt=$t.add,Ht=$t.flush,Yt=$t.getDeviceId,Wt=$t.getSessionId,Kt=$t.getUserId,Qt=$t.groupIdentify,Jt=$t.identify,Xt=$t.init,Zt=$t.logEvent,te=$t.remove,ee=$t.reset,re=$t.revenue,ne=$t.setDeviceId,ie=$t.setGroup,ae=$t.setOptOut,se=$t.setSessionId,oe=$t.setTransport,le=$t.setUserId,ce=$t.track},109:function(t,e,r){"use strict";var n={name:"NoSsr",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(t,e){var r=e.parent,n=e.slots,o=e.props,l=n(),c=l.default;void 0===c&&(c=[]);var h=l.placeholder;return r._isMounted?c:(r.$once("hook:mounted",(function(){r.$forceUpdate()})),o.placeholderTag&&(o.placeholder||h)?t(o.placeholderTag,{class:["no-ssr-placeholder"]},o.placeholder||h):c.length>0?c.map((function(){return t(!1)})):t(!1))}};t.exports=n},110:function(t,e,r){"use strict";r.r(e),r.d(e,"add",(function(){return f})),r.d(e,"addBusinessDays",(function(){return w})),r.d(e,"addDays",(function(){return h})),r.d(e,"addHours",(function(){return T})),r.d(e,"addISOWeekYears",(function(){return N})),r.d(e,"addMilliseconds",(function(){return E.a})),r.d(e,"addMinutes",(function(){return R})),r.d(e,"addMonths",(function(){return d})),r.d(e,"addQuarters",(function(){return F})),r.d(e,"addSeconds",(function(){return j})),r.d(e,"addWeeks",(function(){return L})),r.d(e,"addYears",(function(){return B})),r.d(e,"areIntervalsOverlapping",(function(){return V})),r.d(e,"clamp",(function(){return U})),r.d(e,"closestIndexTo",(function(){return $})),r.d(e,"closestTo",(function(){return H})),r.d(e,"compareAsc",(function(){return Y})),r.d(e,"compareDesc",(function(){return W})),r.d(e,"daysToWeeks",(function(){return Q})),r.d(e,"differenceInBusinessDays",(function(){return Z})),r.d(e,"differenceInCalendarDays",(function(){return D})),r.d(e,"differenceInCalendarISOWeekYears",(function(){return tt})),r.d(e,"differenceInCalendarISOWeeks",(function(){return nt})),r.d(e,"differenceInCalendarMonths",(function(){return it})),r.d(e,"differenceInCalendarQuarters",(function(){return st})),r.d(e,"differenceInCalendarWeeks",(function(){return lt})),r.d(e,"differenceInCalendarYears",(function(){return ct})),r.d(e,"differenceInDays",(function(){return ut})),r.d(e,"differenceInHours",(function(){return gt})),r.d(e,"differenceInISOWeekYears",(function(){return vt})),r.d(e,"differenceInMilliseconds",(function(){return pt})),r.d(e,"differenceInMinutes",(function(){return bt})),r.d(e,"differenceInMonths",(function(){return Tt})),r.d(e,"differenceInQuarters",(function(){return St})),r.d(e,"differenceInSeconds",(function(){return xt})),r.d(e,"differenceInWeeks",(function(){return It})),r.d(e,"differenceInYears",(function(){return Pt}
2)),r.d(e,"eachDayOfInterval",(function(){return Ot})),r.d(e,"eachHourOfInterval",(function(){return At})),r.d(e,"eachMinuteOfInterval",(function(){return Ct})),r.d(e,"eachMonthOfInterval",(function(){return Dt})),r.d(e,"eachQuarterOfInterval",(function(){return Nt})),r.d(e,"eachWeekOfInterval",(function(){return Rt})),r.d(e,"eachWeekendOfInterval",(function(){return Ft})),r.d(e,"eachWeekendOfMonth",(function(){return Lt})),r.d(e,"eachWeekendOfYear",(function(){return zt})),r.d(e,"eachYearOfInterval",(function(){return Gt})),r.d(e,"endOfDay",(function(){return wt})),r.d(e,"endOfDecade",(function(){return Ut})),r.d(e,"endOfHour",(function(){return $t})),r.d(e,"endOfISOWeek",(function(){return Ht})),r.d(e,"endOfISOWeekYear",(function(){return Yt})),r.d(e,"endOfMinute",(function(){return Wt})),r.d(e,"endOfMonth",(function(){return Et})),r.d(e,"endOfQuarter",(function(){return Kt})),r.d(e,"endOfSecond",(function(){return Qt})),r.d(e,"endOfToday",(function(){return Jt})),r.d(e,"endOfTomorrow",(function(){return Xt})),r.d(e,"endOfWeek",(function(){return qt})),r.d(e,"endOfYear",(function(){return Bt})),r.d(e,"endOfYesterday",(function(){return Zt})),r.d(e,"format",(function(){return te.a})),r.d(e,"formatDistance",(function(){return se})),r.d(e,"formatDistanceStrict",(function(){return ue})),r.d(e,"formatDistanceToNow",(function(){return pe})),r.d(e,"formatDistanceToNowStrict",(function(){return de})),r.d(e,"formatDuration",(function(){return me})),r.d(e,"formatISO",(function(){return ye})),r.d(e,"formatISO9075",(function(){return ve})),r.d(e,"formatISODuration",(function(){return be})),r.d(e,"formatRFC3339",(function(){return we})),r.d(e,"formatRFC7231",(function(){return Te})),r.d(e,"formatRelative",(function(){return xe})),r.d(e,"fromUnixTime",(function(){return Ie})),r.d(e,"getDate",(function(){return Pe})),r.d(e,"getDay",(function(){return Oe})),r.d(e,"getDayOfYear",(function(){return Ae})),r.d(e,"getDaysInMonth",(function(){return ke})),r.d(e,"getDaysInYear",(function(){return De})),r.d(e,"getDecade",(function(){return Me})),r.d(e,"getDefaultOptions",(function(){return Ne})),r.d(e,"getHours",(function(){return Re})),r.d(e,"getISODay",(function(){return Fe})),r.d(e,"getISOWeek",(function(){return Le})),r.d(e,"getISOWeekYear",(function(){return P})),r.d(e,"getISOWeeksInYear",(function(){return Ve})),r.d(e,"getMilliseconds",(function(){return ze})),r.d(e,"getMinutes",(function(){return Ge})),r.d(e,"getMonth",(function(){return Ue})),r.d(e,"getOverlappingDaysInIntervals",(function(){return qe})),r.d(e,"getQuarter",(function(){return at})),r.d(e,"getSeconds",(function(){return He})),r.d(e,"getTime",(function(){return Ye})),r.d(e,"getUnixTime",(function(){return We})),r.d(e,"getWeek",(function(){return Xe})),r.d(e,"getWeekOfMonth",(function(){return Ze})),r.d(e,"getWeekYear",(function(){return Ke})),r.d(e,"getWeeksInMonth",(function(){return rr})),r.d(e,"getYear",(function(){return nr})),r.d(e,"hoursToMilliseconds",(function(){return ir})),r.d(e,"hoursToMinutes",(function(){return ar})),r.d(e,"hoursToSeconds",(function(){return sr})),r.d(e,"intervalToDuration",(function(){return or})),r.d(e,"intlFormat",(function(){return lr})),r.d(e,"intlFormatDistance",(function(){return ur})),r.d(e,"isAfter",(function(){return pr})),r.d(e,"isBefore",(function(){return dr})),r.d(e,"isDate",(function(){return fr.a})),r.d(e,"isEqual",(function(){return mr})),r.d(e,"isExists",(function(){return gr})),r.d(e,"isFirstDayOfMonth",(function(){return yr})),r.d(e,"isFriday",(function(){return vr})),r.d(e,"isFuture",(function(){return wr})),r.d(e,"isLastDayOfMonth",(function(){return _t})),r.d(e,"isLeapYear",(function(){return Ce})),r.d(e,"isMatch",(function(){return _r})),r.d(e,"isMonday",(function(){return Tr})),r.d(e,"isPast",(function(){return Sr})),r.d(e,"isSameDay",(function(){return J})),r.d(e,"isSameHour",(function(){return Ir})),r.d(e,"isSameISOWeek",(function(){return Or})),r.d(e,"isSameISOWeekYear",(function(){return Ar})),r.d(e,"isSameMinute",(function(){return kr})),r.d(e,"isSameMonth",(function(){return Cr})),r.d(e,"isSameQuarter",(function(){return Dr})),r.d(e,"isSameSecond",(function(){return Nr})),r.d(e,"isSameWeek",(function(){return Pr})),r.d(e,"isSameYear",(function(){return Rr})),r.d(e,"isSaturday",(function(){return v})),r.d(e,"isSunday",(function(){return y}
2)),r.d(e,"isThisHour",(function(){return Fr})),r.d(e,"isThisISOWeek",(function(){return jr})),r.d(e,"isThisMinute",(function(){return Lr})),r.d(e,"isThisMonth",(function(){return Br})),r.d(e,"isThisQuarter",(function(){return Vr})),r.d(e,"isThisSecond",(function(){return zr})),r.d(e,"isThisWeek",(function(){return Gr})),r.d(e,"isThisYear",(function(){return Ur})),r.d(e,"isThursday",(function(){return $r})),r.d(e,"isToday",(function(){return qr})),r.d(e,"isTomorrow",(function(){return Hr})),r.d(e,"isTuesday",(function(){return Yr})),r.d(e,"isValid",(function(){return X.a})),r.d(e,"isWednesday",(function(){return Wr})),r.d(e,"isWeekend",(function(){return m})),r.d(e,"isWithinInterval",(function(){return Kr})),r.d(e,"isYesterday",(function(){return Jr})),r.d(e,"lastDayOfDecade",(function(){return Xr})),r.d(e,"lastDayOfISOWeek",(function(){return tn})),r.d(e,"lastDayOfISOWeekYear",(function(){return en})),r.d(e,"lastDayOfMonth",(function(){return er})),r.d(e,"lastDayOfQuarter",(function(){return rn})),r.d(e,"lastDayOfWeek",(function(){return Zr})),r.d(e,"lastDayOfYear",(function(){return nn})),r.d(e,"lightFormat",(function(){return hn})),r.d(e,"max",(function(){return z})),r.d(e,"milliseconds",(function(){return dn})),r.d(e,"millisecondsToHours",(function(){return fn})),r.d(e,"millisecondsToMinutes",(function(){return mn})),r.d(e,"millisecondsToSeconds",(function(){return gn})),r.d(e,"min",(function(){return G})),r.d(e,"minutesToHours",(function(){return yn})),r.d(e,"minutesToMilliseconds",(function(){return vn})),r.d(e,"minutesToSeconds",(function(){return bn})),r.d(e,"monthsToQuarters",(function(){return wn})),r.d(e,"monthsToYears",(function(){return En})),r.d(e,"nextDay",(function(){return _n})),r.d(e,"nextFriday",(function(){return Tn})),r.d(e,"nextMonday",(function(){return Sn})),r.d(e,"nextSaturday",(function(){return xn})),r.d(e,"nextSunday",(function(){return In})),r.d(e,"nextThursday",(function(){return Pn})),r.d(e,"nextTuesday",(function(){return On})),r.d(e,"nextWednesday",(function(){return An})),r.d(e,"parse",(function(){return Er.a})),r.d(e,"parseISO",(function(){return kn.a})),r.d(e,"parseJSON",(function(){return Cn})),r.d(e,"previousDay",(function(){return Dn})),r.d(e,"previousFriday",(function(){return Mn})),r.d(e,"previousMonday",(function(){return Nn})),r.d(e,"previousSaturday",(function(){return Rn})),r.d(e,"previousSunday",(function(){return Fn})),r.d(e,"previousThursday",(function(){return jn})),r.d(e,"previousTuesday",(function(){return Ln})),r.d(e,"previousWednesday",(function(){return Bn})),r.d(e,"quartersToMonths",(function(){return Vn})),r.d(e,"quartersToYears",(function(){return zn})),r.d(e,"roundToNearestMinutes",(function(){return Gn})),r.d(e,"secondsToHours",(function(){return Un})),r.d(e,"secondsToMilliseconds",(function(){return $n})),r.d(e,"secondsToMinutes",(function(){return qn})),r.d(e,"set",(function(){return Yn})),r.d(e,"setDate",(function(){return Wn})),r.d(e,"setDay",(function(){return Kn})),r.d(e,"setDayOfYear",(function(){return Qn})),r.d(e,"setDefaultOptions",(function(){return Jn})),r.d(e,"setHours",(function(){return Xn})),r.d(e,"setISODay",(function(){return Zn})),r.d(e,"setISOWeek",(function(){return ti})),r.d(e,"setISOWeekYear",(function(){return M})),r.d(e,"setMilliseconds",(function(){return ei})),r.d(e,"setMinutes",(function(){return ri})),r.d(e,"setMonth",(function(){return Hn})),r.d(e,"setQuarter",(function(){return ni})),r.d(e,"setSeconds",(function(){return ii})),r.d(e,"setWeek",(function(){return ai})),r.d(e,"setWeekYear",(function(){return si})),r.d(e,"setYear",(function(){return oi})),r.d(e,"startOfDay",(function(){return k})),r.d(e,"startOfDecade",(function(){return ci})),r.d(e,"startOfHour",(function(){return xr})),r.d(e,"startOfISOWeek",(function(){return I})),r.d(e,"startOfISOWeekYear",(function(){return O})),r.d(e,"startOfMinute",(function(){return kt})),r.d(e,"startOfMonth",(function(){return jt})),r.d(e,"startOfQuarter",(function(){return Mt})),r.d(e,"startOfSecond",(function(){return Mr})),r.d(e,"startOfToday",(function(){return hi})),r.d(e,"startOfTomorrow",(function(){return ui})),r.d(e,"startOfWeek",(function(){return x})),r.d(e,"startOfWeekYear",(function(){return Qe})),r.d(e,"startOfYear",(function(){return Vt})),r.d(e,"startOfYesterday",(function(){return pi})),r.d(e,"sub",(function(){return sub})),r.d(e,"subBusinessDays",(function(){return fi})),r.d(e,"subDays",(function(){return Qr})),r.d(e,"subHours",(function(){return mi})),r.d(e,"subISOWeekYears",(function(){return yt})),r.d(e,"subMilliseconds",(function(){return Se.a})),r.d(e,"subMinutes",(function(){return gi})),r.d(e,"subMonths",(function(){return di})),r.d(e,"subQuarters",(function(){return yi})),r.d(e,"subSeconds",(function(){return vi})),r.d(e,"subWeeks",(function(){return bi})),r.d(e,"subYears",(function(){return wi})),r.d(e,"toDate",(function(){return l.a})),r.d(e,"weeksToDays",(function(){return Ei})),r.d(e,"yearsToMonths",(function(){return _i})),r.d(e,"yearsToQuarters",(function(){return Ti})),r.d(e,"daysInWeek",(function(){return K.a})),r.d(e,"daysInYear",(function(){return K.b})),r.d(e,"maxTime",(function(){return K.c})),r.d(e,"millisecondsInMinute",(function(){return K.e})),r.d(e,"millisecondsInHour",(function(){return K.d})),r.d(e,"millisecondsInSecond",(function(){return K.f})),r.d(e,"minTime",(function(){return K.g})),r.d(e,"minutesInHour",(function(){return K.h})),r.d(e,"monthsInQuarter",(function(){return K.i})),r.d(e,"monthsInYear",(function(){return K.j})),r.d(e,"quartersInYear",(function(){return K.k})),r.d(e,"secondsInHour",(function(){return K.m})),r.d(e,"secondsInMinute",(function(){return K.n})),r.d(e,"secondsInDay",(function(){return K.l})),r.d(e,"secondsInWeek",(function(){return K.q})),r.d(e,"secondsInYear",(function(){return K.r})),r.d(e,"secondsInMonth",(function(){return K.o})),r.d(e,"secondsInQuarter",(function(){return K.p}));var n=r(25),o=r(3),l=r(1),c=r(0);function h(t,e){Object(c.a)(2,arguments);var r=Object(l.a)(t),n=Object(o.a)(e);return isNaN(n)?new Date(NaN):n?(r.setDate(r.getDate()+n),r):r}function d(t,e){Object(c.a)(2,arguments);var r=Object(l.a)(t),n=Object(o.a)(e);if(isNaN(n))return new Date(NaN);if(!n)return r;var h=r.getDate(),d=new Date(r.getTime());d.setMonth(r.getMonth()+n+1,0);var f=d.getDate();return h>=f?d:(r.setFullYear(d.getFullYear(),d.getMonth(),h),r)}function f(t,e){if(Object(c.a)(2,arguments),!e||"object"!==Object(n.a)(e))return new Date(NaN);var r=e.years?Object(o.a)(e.years):0,f=e.months?Object(o.a)(e.months):0,m=e.weeks?Object(o.a)(e.weeks):0,y=e.days?Object(o.a)(e.days):0,v=e.hours?Object(o.a)(e.hours):0,w=e.minutes?Object(o.a)(e.minutes):0,E=e.seconds?Object(o.a)(e.seconds):0,_=Object(l.a)(t),T=f||r?d(_,f+12*r):_,S=y||m?h(T,y+7*m):T,x=w+60*v,I=E+60*x,P=1e3*I,O=new Date(S.getTime()+P);return O}function m(t){Object(c.a)(1,arguments);var e=Object(l.a)(t),r=e.getDay();return 0===r||6===r}function y(t){return Object(c.a)(1,arguments),0===Object(l.a)(t).getDay()}function v(t){return Object(c.a)(1,arguments),6===Object(l.a)(t).getDay()}function w(t,e){Object(c.a)(2,arguments);var r=Object(l.a)(t),n=m(r),h=Object(o.a)(e);if(isNaN(h))return new Date(NaN);var d=r.getHours(),f=h<0?-1:1,w=Object(o.a)(h/5);r.setDate(r.getDate()+7*w);for(var E=Math.abs(h%5);E>0;)r.setDate(r.getDate()+f),m(r)||(E-=1);return n&&m(r)&&0!==h&&(v(r)&&r.setDate(r.getDate()+(f<0?2:-1)),y(r)&&r.setDate(r.getDate()+(f<0?1:-2))),r.setHours(d),r}var E=r(62),_=36e5;function T(t,e){Object(c.a)(2,arguments);var r=Object(o.a)(e);return Object(E.a)(t,r*_)}var S=r(16);function x(t,e){var r,n,h,d,f,m,y,v;Object(c.a)(1,arguments);var w=Object(S.a)(),E=Object(o.a)(null!==(r=null!==(n=null!==(h=null!==(d=null==e?void 0:e.weekStartsOn)&&void 0!==d?d:null==e||null===(f=e.locale)||void 0===f||null===(m=f.options)||void 0===m?void 0:m.weekStartsOn)&&void 0!==h?h:w.weekStartsOn)&&void 0!==n?n:null===(y=w.locale)||void 0===y||null===(v=y.options)||void 0===v?void 0:v.weekStartsOn)&&void 0!==r?r:0);if(!(E>=0&&E<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var _=Object(l.a)(t),T=_.getDay(),x=(T<E?7:0)+T-E;return _.setDate(_.getDate()-x),_.setHours(0,0,0,0),_}function I(t){return Object(c.a)(1,arguments),x(t,{weekStartsOn:1}
2)}function P(t){Object(c.a)(1,arguments);var e=Object(l.a)(t),r=e.getFullYear(),n=new Date(0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);var o=I(n),h=new Date(0);h.setFullYear(r,0,4),h.setHours(0,0,0,0);var d=I(h);return e.getTime()>=o.getTime()?r+1:e.getTime()>=d.getTime()?r:r-1}function O(t){Object(c.a)(1,arguments);var e=P(t),r=new Date(0);r.setFullYear(e,0,4),r.setHours(0,0,0,0);var n=I(r);return n}var A=r(26);function k(t){Object(c.a)(1,arguments);var e=Object(l.a)(t);return e.setHours(0,0,0,0),e}var C=864e5;function D(t,e){Object(c.a)(2,arguments);var r=k(t),n=k(e),o=r.getTime()-Object(A.a)(r),l=n.getTime()-Object(A.a)(n);return Math.round((o-l)/C)}function M(t,e){Object(c.a)(2,arguments);var r=Object(l.a)(t),n=Object(o.a)(e),h=D(r,O(r)),d=new Date(0);return d.setFullYear(n,0,4),d.setHours(0,0,0,0),(r=O(d)).setDate(r.getDate()+h),r}function N(t,e){Object(c.a)(2,arguments);var r=Object(o.a)(e);return M(t,P(t)+r)}function R(t,e){Object(c.a)(2,arguments);var r=Object(o.a)(e);return Object(E.a)(t,6e4*r)}function F(t,e){Object(c.a)(2,arguments);var r=Object(o.a)(e),n=3*r;return d(t,n)}function j(t,e){Object(c.a)(2,arguments);var r=Object(o.a)(e);return Object(E.a)(t,1e3*r)}function L(t,e){Object(c.a)(2,arguments);var r=Object(o.a)(e),n=7*r;return h(t,n)}function B(t,e){Object(c.a)(2,arguments);var r=Object(o.a)(e);return d(t,12*r)}function V(t,e,r){Object(c.a)(2,arguments);var n=Object(l.a)(null==t?void 0:t.start).getTime(),o=Object(l.a)(null==t?void 0:t.end).getTime(),h=Object(l.a)(null==e?void 0:e.start).getTime(),d=Object(l.a)(null==e?void 0:e.end).getTime();if(!(n<=o&&h<=d))throw new RangeError("Invalid interval");return null!=r&&r.inclusive?n<=d&&h<=o:n<d&&h<o}function z(t){var e,r;if(Object(c.a)(1,arguments),t&&"function"==typeof t.forEach)e=t;else{if("object"!==Object(n.a)(t)||null===t)return new Date(NaN);e=Array.prototype.slice.call(t)}return e.forEach((function(t){var e=Object(l.a)(t);(void 0===r||r<e||isNaN(Number(e)))&&(r=e)})),r||new Date(NaN)}function G(t){var e,r;if(Object(c.a)(1,arguments),t&&"function"==typeof t.forEach)e=t;else{if("object"!==Object(n.a)(t)||null===t)return new Date(NaN);e=Array.prototype.slice.call(t)}return e.forEach((function(t){var e=Object(l.a)(t);(void 0===r||r>e||isNaN(e.getDate()))&&(r=e)})),r||new Date(NaN)}function U(t,e){var r=e.start,n=e.end;return Object(c.a)(2,arguments),G([z([t,r]),n])}function $(t,e){Object(c.a)(2,arguments);var r=Object(l.a)(t);if(isNaN(Number(r)))return NaN;var n,o,h=r.getTime();return(null==e?[]:"function"==typeof e.forEach?e:Array.prototype.slice.call(e)).forEac
2h((function(t,e){var r=Object(l.a)(t);if(isNaN(Number(r)))return n=NaN,void(o=NaN);var c=Math.abs(h-r.getTime());(null==n||c<Number(o))&&(n=e,o=c)})),n}function H(t,e){Object(c.a)(2,arguments);var r=Object(l.a)(t);if(isNaN(Number(r)))return new Date(NaN);var n,o,h=r.getTime();return(null==e?[]:"function"==typeof e.forEach?e:Array.prototype.slice.call(e)).forEach((function(t){var e=Object(l.a)(t);if(isNaN(Number(e)))return n=new Date(NaN),void(o=NaN);var r=Math.abs(h-e.getTime());(null==n||r<Number(o))&&(n=e,o=r)})),n}function Y(t,e){Object(c.a)(2,arguments);var r=Object(l.a)(t),n=Object(l.a)(e),o=r.getTime()-n.getTime();return o<0?-1:o>0?1:o}function W(t,e){Object(c.a)(2,arguments);var r=Object(l.a)(t),n=Object(l.a)(e),o=r.getTime()-n.getTime();return o>0?-1:o<0?1:o}var K=r(12);function Q(t){Object(c.a)(1,arguments);var e=t/K.a;return Math.floor(e)}function J(t,e){Object(c.a)(2,arguments);var r=k(t),n=k(e);return r.getTime()===n.getTime()}var X=r(33);function Z(t,e){Object(c.a)(2,arguments);var r=Object(l.a)(t),n=Object(l.a)(e);if(!Object(X.a)(r)||!Object(X.a)(n))return NaN;var d=D(r,n),f=d<0?-1:1,y=Object(o.a)(d/7),v=5*y;for(n=h(n,7*y);!J(r,n);)v+=m(n)?0:f,n=h(n,f);return 0===v?0:v}function tt(t,e){return Object(c.a)(2,arguments),P(t)-P(e)}var et=6048e5;function nt(t,e){Object(c.a)(2,arguments);var r=I(t),n=I(e),o=r.getTime()-Object(A.a)(r),l=n.getTime()-Object(A.a)(n);return Math.round((o-l)/et)}function it(t,e){Object(c.a)(2,arguments);var r=Object(l.a)(t),n=Object(l.a)(e),o=r.getFullYear()-n.getFullYear(),h=r.getMonth()-n.getMonth();return 12*o+h}function at(t){Object(c.a)(1,arguments);var e=Object(l.a)(t),r=Math.floor(e.getMonth()/3)+1;return r}function st(t,e){Object(c.a)(2,arguments);var r=Object(l.a)(t),n=Object(l.a)(e),o=r.getFullYear()-n.getFullYear(),h=at(r)-at(n);return 4*o+h}var ot=6048e5;function lt(t,e,r){Object(c.a)(2,arguments);var n=x(t,r),o=x(e,r),l=n.getTime()-Object(A.a)(n),h=o.getTime()-Object(A.a)(o);return Math.round((l-h)/ot)}function ct(t,e){Object(c.a)(2,arguments);var r=Object(l.a)(t),n=Object(l.a)(e);return r.getFullYear()-n.getFullYear()}function ht(t,e){var r=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return r<0?-1:r>0?1:r}function ut(t,e){Object(c.a)(2,arguments);var r=Object(l.a)(t),n=Object(l.a)(e),o=ht(r,n),h=Math.abs(D(r,n));r.setDate(r.getDate()-o*h);var d=Number(ht(r,n)===-o),f=o*(h-d);return 0===f?0:f}function pt(t,e){return Object(c.a)(2,arguments),Object(l.a)(t).getTime()-Object(l.a)(e).getTime()}var ft={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}};function mt(t){return t?ft[t]:ft.trunc}function gt(t,e,r){Object(c.a)(2,arguments);var n=pt(t,e)/K.d;return mt(null==r?void 0:r.roundingMethod)(n)}function yt(t,e){Object(c.a)(2,arguments);var r=Object(o.a)(e);return N(t,-r)}function vt(t,e){Object(c.a)(2,arguments);var r=Object(l.a)(t),n=Object(l.a)(e),o=Y(r,n),h=Math.abs(tt(r,n));r=yt(r,o*h);var d=Number(Y(r,n)===-o),f=o*(h-d);return 0===f?0:f}function bt(t,e,r){Object(c.a)(2,arguments);var n=pt(t,e)/K.e;return mt(null==r?void 0:r.roundingMethod)(n)}function wt(t){Object(c.a)(1,arguments);var e=Object(l.a)(t);return e.setHours(23,59,59,999),e}function Et(t){Object(c.a)(1,arguments);var e=Object(l.a)(t),r=e.getMonth();return e.setFullYear(e.getFullYear(),r+1,0),e.setHours(23,59,59,999),e}function _t(t){Object(c.a)(1,arguments);var e=Object(l.a)(t);return wt(e).getTime()===Et(e).getTime()}function Tt(t,e){Object(c.a)(2,arguments);var r,n=Object(l.a)(t),o=Object(l.a)(e),h=Y(n,o),d=Math.abs(it(n,o));if(d<1)r=0;else{1===n.getMonth()&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-h*d);var f=Y(n,o)===-h;_t(Object(l.a)(t))&&1===d&&1===Y(t,o)&&(f=!1),r=h*(d-Number(f))}return 0===r?0:r}function St(t,e,r){Object(c.a)(2,arguments);var n=Tt(t,e)/3;return mt(null==r?void 0:r.roundingMethod)(n)}function xt(t,e,r){Object(c.a)(2,arguments);var n=pt(t,e)/1e3;return mt(null==r?void 0:r.roundingMethod)(n)}function It(t,e,r){Object(c.a)(2,arguments);var n=ut(t,e)/7;return mt(null==r?void 0:r.roundingMethod)(n)}function Pt(t,e){Object(c.a)(2,arguments);var r=Object(l.a)(t),n=Object(l.a)(e),o=Y(r,n),h=Math.abs(ct(r,n));r.setFullYear(1584),n.setFullYear(1584);var d=Y(r,n)===-o,f=o*(h-Number(d));return 0===f?0:f}function Ot(t,e){var r;Object(c.a)(1,arguments);var n=t||{},o=Object(l.a)(n.start),h=Object(l.a)(n.end),d=h.getTime();if(!(o.getTime()<=d))throw new RangeError("Invalid interval");var f=[],m=o;m.setHours(0,0,0,0);var y=Number(null!==(r=null==e?void 0:e.step)&&void 0!==r?r:1);if(y<1||isNaN(y))throw new RangeError("`options.step` must be a number greater than 1");for(;m.getTime()<=d;)f.push(Object(l.a)(m)),m.setDate(m.getDate()+y),m.setHours(0,0,0,0);return f}function At(t,e){var r;Object(c.a)(1,arguments);var n=t||{},o=Object(l.a)(n.start),h=Object(l.a)(n.end),d=o.getTime(),f=h.getTime();if(!(d<=f))throw new RangeError("Invalid interval");var m=[],y=o;y.setMinutes(0,0,0);var v=Number(null!==(r=null==e?void 0:e.step)&&void 0!==r?r:1);if(v<1||isNaN(v))throw new RangeError("`options.step` must be a number greater than 1");for(;y.getTime()<=f;)m.push(Object(l.a)(y)),y=T(y,v);return m}function kt(t){Object(c.a)(1,arguments);var e=Object(l.a)(t);return e.setSeconds(0,0),e}function Ct(t,e){var r;Object(c.a)(1,arguments);var n=kt(Object(l.a)(t.start)),o=Object(l.a)(t.end),h=n.getTime(),d=o.getTime();if(h>=d)throw new RangeError("Invalid interval");var f=[],m=n,y=Number(null!==(r=null==e?void 0:e.step)&&void 0!==r?r:1);if(y<1||isNaN(y))throw new RangeError("`options.step` must be a number equal to or greater than 1");for(;m.getTime()<=d;)f.push(Object(l.a)(m)),m=R(m,y);return f}function Dt(t){Object(c.a)(1,arguments);var e=t||{},r=Object(l.a)(e.start),n=Object(l.a)(e.end),o=n.getTime(),h=[];if(!(r.getTime()<=o))throw new RangeError("Invalid interval");var d=r;for(d.setHours(0,0,0,0),d.setDate(1);d.getTime()<=o;)h.push(Object(l.a)(d)),d.setMonth(d.getMonth()+1);return h}function Mt(t){Object(c.a)(1,arguments);var e=Object(l.a)(t),r=e.getMonth(),n=r-r%3;return e.setMonth(n,1),e.setHours(0,0,0,0),e}function Nt(t){Object(c.a)(1,arguments);var e=t||{},r=Object(l.a)(e.start),n=Object(l.a)(e.end),o=n.getTime();if(!(r.getTime()<=o))throw new RangeError("Invalid interval");var h=Mt(r),d=Mt(n);o=d.getTime();for(var f=[],m=h;m.getTime()<=o;)f.push(Object(l.a)(m)),m=F(m,1);return f}function Rt(t,e){Object(c.a)(1,arguments);var r=t||{}
2,n=Object(l.a)(r.start),o=Object(l.a)(r.end),h=o.getTime();if(!(n.getTime()<=h))throw new RangeError("Invalid interval");var d=x(n,e),f=x(o,e);d.setHours(15),f.setHours(15),h=f.getTime();for(var m=[],y=d;y.getTime()<=h;)y.setHours(0),m.push(Object(l.a)(y)),(y=L(y,1)).setHours(15);return m}function Ft(t){Object(c.a)(1,arguments);for(var e=Ot(t),r=[],n=0;n<e.length;){var o=e[n++];m(o)&&(r.push(o),y(o)&&(n+=5))}return r}function jt(t){Object(c.a)(1,arguments);var e=Object(l.a)(t);return e.setDate(1),e.setHours(0,0,0,0),e}function Lt(t){Object(c.a)(1,arguments);var e=jt(t);if(isNaN(e.getTime()))throw new RangeError("The passed date is invalid");var r=Et(t);return Ft({start:e,end:r})}function Bt(t){Object(c.a)(1,arguments);var e=Object(l.a)(t),r=e.getFullYear();return e.setFullYear(r+1,0,0),e.setHours(23,59,59,999),e}function Vt(t){Object(c.a)(1,arguments);var e=Object(l.a)(t),r=new Date(0);return r.setFullYear(e.getFullYear(),0,1),r.setHours(0,0,0,0),r}function zt(t){Object(c.a)(1,arguments);var e=Vt(t),r=Bt(t);return Ft({start:e,end:r})}function Gt(t){Object(c.a)(1,arguments);var e=t||{},r=Object(l.a)(e.start),n=Object(l.a)(e.end),o=n.getTime();if(!(r.getTime()<=o))throw new RangeError("Invalid interval");var h=[],d=r;for(d.setHours(0,0,0,0),d.setMonth(0,1);d.getTime()<=o;)h.push(Object(l.a)(d)),d.setFullYear(d.getFullYear()+1);return h}function Ut(t){Object(c.a)(1,arguments);var e=Object(l.a)(t),r=e.getFullYear(),n=9+10*Math.floor(r/10);return e.setFullYear(n,11,31),e.setHours(23,59,59,999),e}function $t(t){Object(c.a)(1,arguments);var e=Object(l.a)(t);return e.setMinutes(59,59,999),e}function qt(t,e){var r,n,h,d,f,m,y,v;Object(c.a)(1,arguments);var w=Object(S.a)(),E=Object(o.a)(null!==(r=null!==(n=null!==(h=null!==(d=null==e?void 0:e.weekStartsOn)&&void 0!==d?d:null==e||null===(f=e.locale)||void 0===f||null===(m=f.options)||void 0===m?void 0:m.weekStartsOn)&&void 0!==h?h:w.weekStartsOn)&&void 0!==n?n:null===(y=w.locale)||void 0===y||null===(v=y.options)||void 0===v?void 0:v.weekStartsOn)&&void 0!==r?r:0);if(!(E>=0&&E<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var _=Object(l.a)(t),T=_.getDay(),x=6+(T<E?-7:0)-(T-E);return _.setDate(_.getDate()+x),_.setHours(23,59,59,999),_}function Ht(t){return Object(c.a)(1,arguments),qt(t,{weekStartsOn:1})}function Yt(t){Object(c.a)(1,arguments);var e=P(t),r=new Date(0);r.setFullYear(e+1,0,4),r.setHours(0,0,0,0);var n=I(r);return n.setMilliseconds(n.getMilliseconds()-1),n}function Wt(t){Object(c.a)(1,arguments);var e=Object(l.a)(t);return e.setSeconds(59,999),e}function Kt(t){Object(c.a)(1,arguments);var e=Object(l.a)(t),r=e.getMonth(),n=r-r%3+3;return e.setMonth(n,0),e.setHours(23,59,59,999),e}function Qt(t){Object(c.a)(1,arguments);var e=Object(l.a)(t);return e.setMilliseconds(999),e}function Jt(){return wt(Date.now())}function Xt(){var t=new Date,e=t.getFullYear(),r=t.getMonth(),n=t.getDate(),o=new Date(0);return o.setFullYear(e,r,n+1),o.setHours(23,59,59,999),o}function Zt(){var t=new Date,e=t.getFullYear(),r=t.getMonth(),n=t.getDate(),o=new Date(0);return o.setFullYear(e,r,n-1),o.setHours(23,59,59,999),o}var te=r(150),ee=r(51),re=r(63);function ne(object){return Object(re.a)({},object)}var ie=1440,ae=43200;function se(t,e,r){var n,o;Object(c.a)(2,arguments);var h=Object(S.a)(),d=null!==(n=null!==(o=null==r?void 0:r.locale)&&void 0!==o?o:h.locale)&&void 0!==n?n:ee.a;if(!d.formatDistance)throw new RangeError("locale must contain formatDistance property");var f=Y(t,e);if(isNaN(f))throw new RangeError("Invalid time value");var m,y,v=Object(re.a)(ne(r),{addSuffix:Boolean(null==r?void 0:r.addSuffix),comparison:f});f>0?(m=Object(l.a)(e),y=Object(l.a)(t)):(m=Object(l.a)(t),y=Object(l.a)(e));var w,E=xt(y,m),_=(Object(A.a)(y)-Object(A.a)(m))/1e3,T=Math.round((E-_)/60);if(T<2)return null!=r&&r.includeSeconds?E<5?d.formatDistance("lessThanXSeconds",5,v):E<10?d.formatDistance("lessThanXSeconds",10,v):E<20?d.formatDistance("lessThanXSeconds",20,v):E<40?d.formatDistance("halfAMinute",0,v):E<60?d.formatDistance("lessThanXMinutes",1,v):d.formatDistance("xMinutes",1,v):0===T?d.formatDistance("lessThanXMinutes",1,v):d.formatDistance("xMinutes",T,v);if(T<45)return d.formatDistance("xMinutes",T,v);if(T<90)return d.formatDistance("aboutXHours",1,v);if(T<ie){var x=Math.round(T/60);return d.formatDistance("aboutXHours",x,v)}if(T<2520)return d.formatDistance("xDays",1,v);if(T<ae){var I=Math.round(T/ie);return d.formatDistance("xDays",I,v)}if(T<86400)return w=Math.round(T/ae),d.formatDistance("aboutXMonths",w,v);
2if((w=Tt(y,m))<12){var P=Math.round(T/ae);return d.formatDistance("xMonths",P,v)}var O=w%12,k=Math.floor(w/12);return O<3?d.formatDistance("aboutXYears",k,v):O<9?d.formatDistance("overXYears",k,v):d.formatDistance("almostXYears",k+1,v)}var oe=6e4,le=1440,ce=43200,he=525600;function ue(t,e,r){var n,o,h;Object(c.a)(2,arguments);var d=Object(S.a)(),f=null!==(n=null!==(o=null==r?void 0:r.locale)&&void 0!==o?o:d.locale)&&void 0!==n?n:ee.a;if(!f.formatDistance)throw new RangeError("locale must contain localize.formatDistance property");var m=Y(t,e);if(isNaN(m))throw new RangeError("Invalid time value");var y,v,w=Object(re.a)(ne(r),{addSuffix:Boolean(null==r?void 0:r.addSuffix),comparison:m});m>0?(y=Object(l.a)(e),v=Object(l.a)(t)):(y=Object(l.a)(t),v=Object(l.a)(e));var E,_=String(null!==(h=null==r?void 0:r.roundingMethod)&&void 0!==h?h:"round");if("floor"===_)E=Math.floor;else if("ceil"===_)E=Math.ceil;else{if("round"!==_)throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");E=Math.round}var T,x=v.getTime()-y.getTime(),I=x/oe,P=Object(A.a)(v)-Object(A.a)(y),O=(x-P)/oe,k=null==r?void 0:r.unit;if("second"===(T=k?String(k):I<1?"second":I<60?"minute":I<le?"hour":O<ce?"day":O<he?"month":"year")){var C=E(x/1e3);return f.formatDistance("xSeconds",C,w)}if("minute"===T){var D=E(I);return f.formatDistance("xMinutes",D,w)}if("hour"===T){var M=E(I/60);return f.formatDistance("xHours",M,w)}if("day"===T){var N=E(O/le);return f.formatDistance("xDays",N,w)}if("month"===T){var R=E(O/ce);return 12===R&&"month"!==k?f.formatDistance("xYears",1,w):f.formatDistance("xMonths",R,w)}if("year"===T){var F=E(O/he);return f.formatDistance("xYears",F,w)}throw new RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'")}function pe(t,e){return Object(c.a)(1,arguments),se(t,Date.now(),e)}function de(t,e){return Object(c.a)(1,arguments),ue(t,Date.now(),e)}var fe=["years","months","weeks","days","hours","minutes","seconds"];function me(t,e){var r,n,o,l,c;if(arguments.length<1)throw new TypeError("1 argument required, but only ".concat(arguments.length," present"));var h=Object(S.a)(),d=null!==(r=null!==(n=null==e?void 0:e.locale)&&void 0!==n?n:h.locale)&&void 0!==r?r:ee.a,f=null!==(o=null==e?void 0:e.format)&&void 0!==o?o:fe,m=null!==(l=null==e?void 0:e.zero)&&void 0!==l&&l,y=null!==(c=null==e?void 0:e.delimiter)&&void 0!==c?c:" ";if(!d.formatDistance)return"";var v=f.reduce((function(e,r){var n="x".concat(r.replace(/(^.)/,(function(t){return t.toUpperCase()}))),o=t[r];return"number"==typeof o&&(m||t[r])?e.concat(d.formatDistance(n,o)):e}),[]).join(y);return v}var ge=r(13);function ye(t,e){var r,n;Object(c.a)(1,arguments);var o=Object(l.a)(t);if(isNaN(o.getTime()))throw new RangeError("Invalid time value");var h=String(null!==(r=null==e?void 0:e.format)&&void 0!==r?r:"extended"),d=String(null!==(n=null==e?void 0:e.representation)&&void 0!==n?n:"complete");if("extended"!==h&&"basic"!==h)throw new RangeError("format must be 'extended' or 'basic'");if("date"!==d&&"time"!==d&&"complete"!==d)throw new RangeError("representation must be 'date', 'time', or 'complete'");var f="",m="",y="extended"===h?"-":"",v="extended"===h?":":"";if("time"!==d){var w=Object(ge.a)(o.getDate(),2),E=Object(ge.a)(o.getMonth()+1,2),_=Object(ge.a)(o.getFullYear(),4);f="".concat(_).concat(y).concat(E).concat(y).concat(w)}if("date"!==d){var T=o.getTimezoneOffset();if(0!==T){var S=Math.abs(T),x=Object(ge.a)(Math.floor(S/60),2),I=Object(ge.a)(S%60,2),P=T<0?"+":"-";m="".concat(P).concat(x,":").concat(I)}else m="Z";var O=Object(ge.a)(o.getHours(),2),A=Object(ge.a)(o.getMinutes(),2),k=Object(ge.a)(o.getSeconds(),2),C=""===f?"":"T",time=[O,A,k].join(v);f="".concat(f).concat(C).concat(time).concat(m)}return f}function ve(t,e){var r,n;if(arguments.length<1)throw new TypeError("1 argument required, but only ".concat(arguments.length," present"));var o=Object(l.a)(t);if(!Object(X.a)(o))throw new RangeError("Invalid time value");var c=String(null!==(r=null==e?void 0:e.format)&&void 0!==r?r:"extended"),h=String(null!==(n=null==e?void 0:e.representation)&&void 0!==n?n:"complete");if("extended"!==c&&"basic"!==c)throw new RangeError("format must be 'extended' or 'basic'");if("date"!==h&&"time"!==h&&"complete"!==h)throw new RangeError("representation must be 'date', 'time', or 'complete'");var d="",f="extended"===c?"-":"",m="extended"===c?":":"";if("time"!==h){var y=Object(ge.a)(o.getDate(),2),v=Object(ge.a)(o.getMonth()+1,2),w=Object(ge.a)(o.getFullYear(),4);
2d="".concat(w).concat(f).concat(v).concat(f).concat(y)}if("date"!==h){var E=Object(ge.a)(o.getHours(),2),_=Object(ge.a)(o.getMinutes(),2),T=Object(ge.a)(o.getSeconds(),2),S=""===d?"":" ";d="".concat(d).concat(S).concat(E).concat(m).concat(_).concat(m).concat(T)}return d}function be(t){if(Object(c.a)(1,arguments),"object"!==Object(n.a)(t))throw new Error("Duration must be an object");var e=t.years,r=void 0===e?0:e,o=t.months,l=void 0===o?0:o,h=t.days,d=void 0===h?0:h,f=t.hours,m=void 0===f?0:f,y=t.minutes,v=void 0===y?0:y,w=t.seconds,E=void 0===w?0:w;return"P".concat(r,"Y").concat(l,"M").concat(d,"DT").concat(m,"H").concat(v,"M").concat(E,"S")}function we(t,e){var r;if(arguments.length<1)throw new TypeError("1 arguments required, but only ".concat(arguments.length," present"));var n=Object(l.a)(t);if(!Object(X.a)(n))throw new RangeError("Invalid time value");var c=Number(null!==(r=null==e?void 0:e.fractionDigits)&&void 0!==r?r:0);if(!(c>=0&&c<=3))throw new RangeError("fractionDigits must be between 0 and 3 inclusively");var h=Object(ge.a)(n.getDate(),2),d=Object(ge.a)(n.getMonth()+1,2),f=n.getFullYear(),m=Object(ge.a)(n.getHours(),2),y=Object(ge.a)(n.getMinutes(),2),v=Object(ge.a)(n.getSeconds(),2),w="";if(c>0){var E=n.getMilliseconds(),_=Math.floor(E*Math.pow(10,c-3));w="."+Object(ge.a)(_,c)}var T="",S=n.getTimezoneOffset();if(0!==S){var x=Math.abs(S),I=Object(ge.a)(Object(o.a)(x/60),2),P=Object(ge.a)(x%60,2),O=S<0?"+":"-";T="".concat(O).concat(I,":").concat(P)}else T="Z";return"".concat(f,"-").concat(d,"-").concat(h,"T").concat(m,":").concat(y,":").concat(v).concat(w).c
2oncat(T)}var Ee=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],_e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Te(t){if(arguments.length<1)throw new TypeError("1 arguments required, but only ".concat(arguments.length," present"));var e=Object(l.a)(t);if(!Object(X.a)(e))throw new RangeError("Invalid time value");var r=Ee[e.getUTCDay()],n=Object(ge.a)(e.getUTCDate(),2),o=_e[e.getUTCMonth()],c=e.getUTCFullYear(),h=Object(ge.a)(e.getUTCHours(),2),d=Object(ge.a)(e.getUTCMinutes(),2),f=Object(ge.a)(e.getUTCSeconds(),2);return"".concat(r,", ").concat(n," ").concat(o," ").concat(c," ").concat(h,":").concat(d,":").concat(f," GMT")}var Se=r(56);function xe(t,e,r){var n,h,d,f,m,y,v,w,E,_;Object(c.a)(2,arguments);var T=Object(l.a)(t),x=Object(l.a)(e),I=Object(S.a)(),P=null!==(n=null!==(h=null==r?void 0:r.locale)&&void 0!==h?h:I.locale)&&void 0!==n?n:ee.a,O=Object(o.a)(null!==(d=null!==(f=null!==(m=null!==(y=null==r?void 0:r.weekStartsOn)&&void 0!==y?y:null==r||null===(v=r.locale)||void 0===v||null===(w=v.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==m?m:I.weekStartsOn)&&void 0!==f?f:null===(E=I.locale)||void 0===E||null===(_=E.options)||void 0===_?void 0:_.weekStartsOn)&&void 0!==d?d:0);if(!P.localize)throw new RangeError("locale must contain localize property");if(!P.formatLong)throw new RangeError("locale must contain formatLong property");if(!P.formatRelative)throw new RangeError("locale must contain formatRelative property");var k,C=D(T,x);if(isNaN(C))throw new RangeError("Invalid time value");k=C<-6?"other":C<-1?"lastWeek":C<0?"yesterday":C<1?"today":C<2?"tomorrow":C<7?"nextWeek":"other";var M=Object(Se.a)(T,Object(A.a)(T)),N=Object(Se.a)(x,Object(A.a)(x)),R=P.formatRelative(k,M,N,{locale:P,weekStartsOn:O});return Object(te.a)(T,R,{locale:P,weekStartsOn:O})}function Ie(t){Object(c.a)(1,arguments);var e=Object(o.a)(t);return Object(l.a)(1e3*e)}function Pe(t){Object(c.a)(1,arguments);var e=Object(l.a)(t),r=e.getDate();return r}function Oe(t){Object(c.a)(1,arguments);var e=Object(l.a)(t),r=e.getDay();return r}function Ae(t){Object(c.a)(1,arguments);var e=Object(l.a)(t),r=D(e,Vt(e)),n=r+1;return n}function ke(t){Object(c.a)(1,arguments);var e=Object(l.a)(t),r=e.getFullYear(),n=e.getMonth(),o=new Date(0);return o.setFullYear(r,n+1,0),o.setHours(0,0,0,0),o.getDate()}function Ce(t){Object(c.a)(1,arguments);var e=Object(l.a)(t),r=e.getFullYear();return r%400==0||r%4==0&&r%100!=0}function De(t){Object(c.a)(1,arguments);var e=Object(l.a)(t);return"Invalid Date"===String(new Date(e))?NaN:Ce(e)?366:365}function Me(t){Object(c.a)(1,arguments);var e=Object(l.a)(t),r=e.getFullYear(),n=10*Math.floor(r/10);return n}function Ne(){return Object(re.a)({},Object(S.a)())}function Re(t){Object(c.a)(1,arguments);var e=Object(l.a)(t),r=e.getHours();return r}function Fe(t){Object(c.a)(1,arguments);var e=Object(l.a)(t),r=e.getDay();return 0===r&&(r=7),r}var je=6048e5;function Le(t){Object(c.a)(1,arguments);var e=Object(l.a)(t),r=I(e).getTime()-O(e).getTime();return Math.round(r/je)+1}var Be=6048e5;function Ve(t){Object(c.a)(1,arguments);var e=O(t),r=O(L(e,60)),n=r.valueOf()-e.valueOf();return Math.round(n/Be)}function ze(t){Object(c.a)(1,arguments);var e=Object(l.a)(t),r=e.getMilliseconds();return r}function Ge(t){Object(c.a)(1,arguments);var e=Object(l.a)(t),r=e.getMinutes();return r}function Ue(t){Object(c.a)(1,arguments);var e=Object(l.a)(t),r=e.getMonth();return r}var $e=864e5;function qe(t,e){Object(c.a)(2,arguments);var r=t||{},n=e||{}
2,o=Object(l.a)(r.start).getTime(),h=Object(l.a)(r.end).getTime(),d=Object(l.a)(n.start).getTime(),f=Object(l.a)(n.end).getTime();if(!(o<=h&&d<=f))throw new RangeError("Invalid interval");var m=o<f&&d<h;if(!m)return 0;var y=d<o?o:d,v=f>h?h:f,w=v-y;return Math.ceil(w/$e)}function He(t){Object(c.a)(1,arguments);var e=Object(l.a)(t),r=e.getSeconds();return r}function Ye(t){Object(c.a)(1,arguments);var e=Object(l.a)(t),r=e.getTime();return r}function We(t){return Object(c.a)(1,arguments),Math.floor(Ye(t)/1e3)}function Ke(t,e){var r,n,h,d,f,m,y,v;Object(c.a)(1,arguments);var w=Object(l.a)(t),E=w.getFullYear(),_=Object(S.a)(),T=Object(o.a)(null!==(r=null!==(n=null!==(h=null!==(d=null==e?void 0:e.firstWeekContainsDate)&&void 0!==d?d:null==e||null===(f=e.locale)||void 0===f||null===(m=f.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==h?h:_.firstWeekContainsDate)&&void 0!==n?n:null===(y=_.locale)||void 0===y||null===(v=y.options)||void 0===v?void 0:v.firstWeekContainsDate)&&void 0!==r?r:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var I=new Date(0);I.setFullYear(E+1,0,T),I.setHours(0,0,0,0);var P=x(I,e),O=new Date(0);O.setFullYear(E,0,T),O.setHours(0,0,0,0);var A=x(O,e);return w.getTime()>=P.getTime()?E+1:w.getTime()>=A.getTime()?E:E-1}function Qe(t,e){var r,n,l,h,d,f,m,y;Object(c.a)(1,arguments);var v=Object(S.a)(),w=Object(o.a)(null!==(r=null!==(n=null!==(l=null!==(h=null==e?void 0:e.firstWeekContainsDate)&&void 0!==h?h:null==e||null===(d=e.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==l?l:v.firstWeekContainsDate)&&void 0!==n?n:null===(m=v.locale)||void 0===m||null===(y=m.options)||void 0===y?void 0:y.firstWeekContainsDate)&&void 0!==r?r:1),E=Ke(t,e),_=new Date(0);_.setFullYear(E,0,w),_.setHours(0,0,0,0);var T=x(_,e);return T}var Je=6048e5;function Xe(t,e){Object(c.a)(1,arguments);var r=Object(l.a)(t),n=x(r,e).getTime()-Qe(r,e).getTime();return Math.round(n/Je)+1}function Ze(t,e){var r,n,l,h,d,f,m,y;Object(c.a)(1,arguments);var v=Object(S.a)(),w=Object(o.a)(null!==(r=null!==(n=null!==(l=null!==(h=null==e?void 0:e.weekStartsOn)&&void 0!==h?h:null==e||null===(d=e.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==l?l:v.weekStartsOn)&&void 0!==n?n:null===(m=v.locale)||void 0===m||null===(y=m.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==r?r:0);if(!(w>=0&&w<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var E=Pe(t);if(isNaN(E))return NaN;var _=Oe(jt(t)),T=w-_;T<=0&&(T+=7);var x=E-T;return Math.ceil(x/7)+1}function er(t){Object(c.a)(1,arguments);var e=Object(l.a)(t),r=e.getMonth();return e.setFullYear(e.getFullYear(),r+1,0),e.setHours(0,0,0,0),e}function rr(t,e){return Object(c.a)(1,arguments),lt(er(t),jt(t),e)+1}function nr(t){return Object(c.a)(1,arguments),Object(l.a)(t).getFullYear()}function ir(t){return Object(c.a)(1,arguments),Math.floor(t*K.d)}function ar(t){return Object(c.a)(1,arguments),Math.floor(t*K.h)}function sr(t){return Object(c.a)(1,arguments),Math.floor(t*K.m)}function or(t){Object(c.a)(1,arguments);var e=Object(l.a)(t.start),r=Object(l.a)(t.end);if(isNaN(e.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(r.getTime()))throw new RangeError("End Date is invalid");var n={};n.years=Math.abs(Pt(r,e));var o=Y(r,e),h=f(e,{years:o*n.years});n.months=Math.abs(Tt(r,h));var d=f(h,{months:o*n.months});n.days=Math.abs(ut(r,d));var m=f(d,{days:o*n.days});n.hours=Math.abs(gt(r,m));var y=f(m,{hours:o*n.hours});n.minutes=Math.abs(bt(r,y));var v=f(y,{minutes:o*n.minutes});return n.seconds=Math.abs(xt(r,v)),n}function lr(t,e,r){var n,o;return Object(c.a)(1,arguments),cr(e)?o=e:r=e,new Intl.DateTimeFormat(null===(n=r)||void 0===n?void 0:n.locale,o).format(t)}function cr(t){return void 0!==t&&!("locale"in t)}function ur(t,e,r){Object(c.a)(2,arguments);var n,o=0,h=Object(l.a)(t),d=Object(l.a)(e);if(null!=r&&r.unit)"second"===(n=null==r?void 0:r.unit)?o=xt(h,d):"minute"===n?o=bt(h,d):"hour"===n?o=gt(h,d):"day"===n?o=D(h,d):"week"===n?o=lt(h,d):"month"===n?o=it(h,d):"quarter"===n?o=st(h,d):"year"===n&&(o=ct(h,d));else{var f=xt(h,d);
2Math.abs(f)<K.n?(o=xt(h,d),n="second"):Math.abs(f)<K.m?(o=bt(h,d),n="minute"):Math.abs(f)<K.l&&Math.abs(D(h,d))<1?(o=gt(h,d),n="hour"):Math.abs(f)<K.q&&(o=D(h,d))&&Math.abs(o)<7?n="day":Math.abs(f)<K.o?(o=lt(h,d),n="week"):Math.abs(f)<K.p?(o=it(h,d),n="month"):Math.abs(f)<K.r&&st(h,d)<4?(o=st(h,d),n="quarter"):(o=ct(h,d),n="year")}var m=new Intl.RelativeTimeFormat(null==r?void 0:r.locale,{localeMatcher:null==r?void 0:r.localeMatcher,numeric:(null==r?void 0:r.numeric)||"auto",style:null==r?void 0:r.style});return m.format(o,n)}function pr(t,e){Object(c.a)(2,arguments);var r=Object(l.a)(t),n=Object(l.a)(e);return r.getTime()>n.getTime()}function dr(t,e){Object(c.a)(2,arguments);var r=Object(l.a)(t),n=Object(l.a)(e);return r.getTime()<n.getTime()}var fr=r(148);function mr(t,e){Object(c.a)(2,arguments);var r=Object(l.a)(t),n=Object(l.a)(e);return r.getTime()===n.getTime()}function gr(t,e,r){if(arguments.length<3)throw new TypeError("3 argument required, but only "+arguments.length+" present");var n=new Date(t,e,r);return n.getFullYear()===t&&n.getMonth()===e&&n.getDate()===r}function yr(t){return Object(c.a)(1,arguments),1===Object(l.a)(t).getDate()}function vr(t){return Object(c.a)(1,arguments),5===Object(l.a)(t).getDay()}function wr(t){return Object(c.a)(1,arguments),Object(l.a)(t).getTime()>Date.now()}var Er=r(149);function _r(t,e,r){return Object(c.a)(2,arguments),Object(X.a)(Object(Er.a)(t,e,new Date,r))}function Tr(t){return Object(c.a)(1,arguments),1===Object(l.a)(t).getDay()}function Sr(t){return Object(c.a)(1,arguments),Object(l.a)(t).getTime()<Date.now()}function xr(t){Object(c.a)(1,arguments);var e=Object(l.a)(t);return e.setMinutes(0,0,0),e}function Ir(t,e){Object(c.a)(2,arguments);var r=xr(t),n=xr(e);return r.getTime()===n.getTime()}function Pr(t,e,r){Object(c.a)(2,arguments);var n=x(t,r),o=x(e,r);return n.getTime()===o.getTime()}function Or(t,e){return Object(c.a)(2,arguments),Pr(t,e,{weekStartsOn:1})}function Ar(t,e){Object(c.a)(2,arguments);var r=O(t),n=O(e);return r.getTime()===n.getTime()}function kr(t,e){Object(c.a)(2,arguments);var r=kt(t),n=kt(e);return r.getTime()===n.getTime()}function Cr(t,e){Object(c.a)(2,arguments);var r=Object(l.a)(t),n=Object(l.a)(e);return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()}function Dr(t,e){Object(c.a)(2,arguments);var r=Mt(t),n=Mt(e);return r.getTime()===n.getTime()}function Mr(t){Object(c.a)(1,arguments);var e=Object(l.a)(t);return e.setMilliseconds(0),e}function Nr(t,e){Object(c.a)(2,arguments);var r=Mr(t),n=Mr(e);return r.getTime()===n.getTime()}function Rr(t,e){Object(c.a)(2,arguments);var r=Object(l.a)(t),n=Object(l.a)(e);return r.getFullYear()===n.getFullYear()}function Fr(t){return Object(c.a)(1,arguments),Ir(Date.now(),t)}function jr(t){return Object(c.a)(1,arguments),Or(t,Date.now())}function Lr(t){return Object(c.a)(1,arguments),kr(Date.now(),t)}function Br(t){return Object(c.a)(1,arguments),Cr(Date.now(),t)}function Vr(t){return Object(c.a)(1,arguments),Dr(Date.now(),t)}function zr(t){return Object(c.a)(1,arguments),Nr(Date.now(),t)}function Gr(t,e){return Object(c.a)(1,arguments),Pr(t,Date.now(),e)}function Ur(t){return Object(c.a)(1,arguments),Rr(t,Date.now())}function $r(t){return Object(c.a)(1,arguments),4===Object(l.a)(t).getDay()}function qr(t){return Object(c.a)(1,arguments),J(t,Date.now())}function Hr(t){return Object(c.a)(1,arguments),J(t,h(Date.now(),1))}function Yr(t){return Object(c.a)(1,arguments),2===Object(l.a)(t).getDay()}function Wr(t){return Object(c.a)(1,arguments),3===Object(l.a)(t).getDay()}function Kr(t,e){Object(c.a)(2,arguments);var time=Object(l.a)(t).getTime(),r=Object(l.a)(e.start).getTime(),n=Object(l.a)(e.end).getTime();if(!(r<=n))throw new RangeError("Invalid interval");return time>=r&&time<=n}function Qr(t,e){Object(c.a)(2,arguments);var r=Object(o.a)(e);return h(t,-r)}function Jr(t){return Object(c.a)(1,arguments),J(t,Qr(Date.now(),1))}function Xr(t){Object(c.a)(1,arguments);var e=Object(l.a)(t),r=e.getFullYear(),n=9+10*Math.floor(r/10);return e.setFullYear(n+1,0,0),e.setHours(0,0,0,0),e}function Zr(t,e){var r,n,h,d,f,m,y,v;Object(c.a)(1,arguments);var w=Object(S.a)(),E=Object(o.a)(null!==(r=null!==(n=null!==(h=null!==(d=null==e?void 0:e.weekStartsOn)&&void 0!==d?d:null==e||null===(f=e.locale)||void 0===f||null===(m=f.options)||void 0===m?void 0:m.weekStartsOn)&&void 0!==h?h:w.weekStartsOn)&&void 0!==n?n:null===(y=w.locale)||void 0===y||null===(v=y.options)||void 0===v?void 0:v.weekStartsOn)&&void 0!==r?r:0);if(!(E>=0&&E<=6))throw new RangeError("weekStartsOn must be between 0 and 6");var _=Object(l.a)(t),T=_.getDay(),x=6+(T<E?-7:0)-(T-E);return _.setHours(0,0,0,0),_.setDate(_.getDate()+x),_}function tn(t){return Object(c.a)(1,arguments),Zr(t,{weekStartsOn:1}
2)}function en(t){Object(c.a)(1,arguments);var e=P(t),r=new Date(0);r.setFullYear(e+1,0,4),r.setHours(0,0,0,0);var n=I(r);return n.setDate(n.getDate()-1),n}function rn(t){Object(c.a)(1,arguments);var e=Object(l.a)(t),r=e.getMonth(),n=r-r%3+3;return e.setMonth(n,0),e.setHours(0,0,0,0),e}function nn(t){Object(c.a)(1,arguments);var e=Object(l.a)(t),r=e.getFullYear();return e.setFullYear(r+1,0,0),e.setHours(0,0,0,0),e}var an=r(58),sn=/(\w)\1*|''|'(''|[^'])+('|$)|./g,on=/^'([^]*?)'?$/,ln=/''/g,cn=/[a-zA-Z]/;function hn(t,e){Object(c.a)(2,arguments);var r=Object(l.a)(t);if(!Object(X.a)(r))throw new RangeError("Invalid time value");var n=Object(A.a)(r),o=Object(Se.a)(r,n),h=e.match(sn);if(!h)return"";var d=h.map((function(t){if("''"===t)return"'";var e=t[0];if("'"===e)return un(t);var r=an.a[e];if(r)return r(o,t);if(e.match(cn))throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return t})).join("");return d}function un(input){var t=input.match(on);return t?t[1].replace(ln,"'"):input}var pn=365.2425;function dn(t){var e=t.years,r=t.months,n=t.weeks,o=t.days,l=t.hours,h=t.minutes,d=t.seconds;Object(c.a)(1,arguments);var f=0;e&&(f+=e*pn),r&&(f+=30.436875*r),n&&(f+=7*n),o&&(f+=o);var m=24*f*60*60;return l&&(m+=60*l*60),h&&(m+=60*h),d&&(m+=d),Math.round(1e3*m)}function fn(t){Object(c.a)(1,arguments);var e=t/K.d;return Math.floor(e)}function mn(t){Object(c.a)(1,arguments);var e=t/K.e;return Math.floor(e)}function gn(t){Object(c.a)(1,arguments);var e=t/K.f;return Math.floor(e)}function yn(t){Object(c.a)(1,arguments);var e=t/K.h;return Math.floor(e)}function vn(t){return Object(c.a)(1,arguments),Math.floor(t*K.e)}function bn(t){return Object(c.a)(1,arguments),Math.floor(t*K.n)}function wn(t){Object(c.a)(1,arguments);var e=t/K.i;return Math.floor(e)}function En(t){Object(c.a)(1,arguments);var e=t/K.j;return Math.floor(e)}function _n(t,e){Object(c.a)(2,arguments);var r=e-Oe(t);return r<=0&&(r+=7),h(t,r)}function Tn(t){return Object(c.a)(1,arguments),_n(t,5)}function Sn(t){return Object(c.a)(1,arguments),_n(t,1)}function xn(t){return Object(c.a)(1,arguments),_n(t,6)}function In(t){return Object(c.a)(1,arguments),_n(t,0)}function Pn(t){return Object(c.a)(1,arguments),_n(t,4)}function On(t){return Object(c.a)(1,arguments),_n(t,2)}function An(t){return Object(c.a)(1,arguments),_n(t,3)}var kn=r(269);function Cn(t){if(Object(c.a)(1,arguments),"string"==typeof t){var e=t.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return e?new Date(Date.UTC(+e[1],+e[2]-1,+e[3],+e[4]-(+e[9]||0)*("-"==e[8]?-1:1),+e[5]-(+e[10]||0)*("-"==e[8]?-1:1),+e[6],+((e[7]||"0")+"00").substring(0,3))):new Date(NaN)}return Object(l.a)(t)}function Dn(t,e){Object(c.a)(2,arguments);var r=Oe(t)-e;return r<=0&&(r+=7),Qr(t,r)}function Mn(t){return Object(c.a)(1,arguments),Dn(t,5)}function Nn(t){return Object(c.a)(1,arguments),Dn(t,1)}function Rn(t){return Object(c.a)(1,arguments),Dn(t,6)}function Fn(t){return Object(c.a)(1,arguments),Dn(t,0)}function jn(t){return Object(c.a)(1,arguments),Dn(t,4)}function Ln(t){return Object(c.a)(1,arguments),Dn(t,2)}function Bn(t){return Object(c.a)(1,arguments),Dn(t,3)}function Vn(t){return Object(c.a)(1,arguments),Math.floor(t*K.i)}function zn(t){Object(c.a)(1,arguments);var e=t/K.k;return Math.floor(e)}function Gn(t,e){var r;if(arguments.length<1)throw new TypeError("1 argument required, but only none provided present");var n=Object(o.a)(null!==(r=null==e?void 0:e.nearestTo)&&void 0!==r?r:1);if(n<1||n>30)throw new RangeError("`options.nearestTo` must be between 1 and 30");var c=Object(l.a)(t),h=c.getSeconds(),d=c.getMinutes()+h/60,f=mt(null==e?void 0:e.roundingMethod),m=f(d/n)*n,y=d%n,v=Math.round(y/n)*n;return new Date(c.getFullYear(),c.getMonth(),c.getDate(),c.getHours(),m+v)}function Un(t){Object(c.a)(1,arguments);var e=t/K.m;return Math.floor(e)}function $n(t){return Object(c.a)(1,arguments),t*K.f}function qn(t){Object(c.a)(1,arguments);var e=t/K.n;return Math.floor(e)}function Hn(t,e){Object(c.a)(2,arguments);var r=Object(l.a)(t),n=Object(o.a)(e),h=r.getFullYear(),d=r.getDate(),f=new Date(0);f.setFullYear(h,n,15),f.setHours(0,0,0,0);var m=ke(f);return r.setMonth(n,Math.min(d,m)),r}function Yn(t,e){if(Object(c.a)(2,arguments),"object"!==Object(n.a)(e)||null===e)throw new RangeError("values parameter must be an object");var r=Object(l.a)(t);return isNaN(r.getTime())?new Date(NaN):(null!=e.year&&r.setFullYear(e.year),null!=e.month&&(r=Hn(r,e.month)),null!=e.date&&r.setDate(Object(o.a)(e.date)),null!=e.hours&&r.setHours(Object(o.a)(e.hours)),null!=e.minutes&&r.setMinutes(Object(o.a)(e.minutes)),null!=e.seconds&&r.setSeconds(Object(o.a)(e.seconds)),null!=e.milliseconds&&r.setMilliseconds(Object(o.a)(e.milliseconds)),r)}function Wn(t,e){Object(c.a)(2,arguments);var r=Object(l.a)(t),n=Object(o.a)(e);return r.setDate(n),r}function Kn(t,e,r){var n,d,f,m,y,v,w,E;Object(c.a)(2,arguments);var _=Object(S.a)(),T=Object(o.a)(null!==(n=null!==(d=null!==(f=null!==(m=null==r?void 0:r.weekStartsOn)&&void 0!==m?m:null==r||null===(y=r.locale)||void 0===y||null===(v=y.options)||void 0===v?void 0:v.weekStartsOn)&&void 0!==f?f:_.weekStartsOn)&&void 0!==d?d:null===(w=_.locale)||void 0===w||null===(E=w.options)||void 0===E?void 0:E.weekStartsOn)&&void 0!==n?n:0);if(!(T>=0&&T<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var x=Object(l.a)(t),I=Object(o.a)(e),P=x.getDay(),O=I%7,A=(O+7)%7,k=7-T,C=I<0||I>6?I-(P+k)%7:(A+k)%7-(P+k)%7;return h(x,C)}function Qn(t,e){Object(c.a)(2,arguments);var r=Object(l.a)(t),n=Object(o.a)(e);return r.setMonth(0),r.setDate(n),r}function Jn(t){Object(c.a)(1,arguments);var e={},r=Object(S.a)();
2for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(void 0===t[o]?delete e[o]:e[o]=t[o]);Object(S.b)(e)}function Xn(t,e){Object(c.a)(2,arguments);var r=Object(l.a)(t),n=Object(o.a)(e);return r.setHours(n),r}function Zn(t,e){Object(c.a)(2,arguments);var r=Object(l.a)(t),n=Object(o.a)(e),d=Fe(r),f=n-d;return h(r,f)}function ti(t,e){Object(c.a)(2,arguments);var r=Object(l.a)(t),n=Object(o.a)(e),h=Le(r)-n;return r.setDate(r.getDate()-7*h),r}function ei(t,e){Object(c.a)(2,arguments);var r=Object(l.a)(t),n=Object(o.a)(e);return r.setMilliseconds(n),r}function ri(t,e){Object(c.a)(2,arguments);var r=Object(l.a)(t),n=Object(o.a)(e);return r.setMinutes(n),r}function ni(t,e){Object(c.a)(2,arguments);var r=Object(l.a)(t),n=Object(o.a)(e),h=Math.floor(r.getMonth()/3)+1,d=n-h;return Hn(r,r.getMonth()+3*d)}function ii(t,e){Object(c.a)(2,arguments);var r=Object(l.a)(t),n=Object(o.a)(e);return r.setSeconds(n),r}function ai(t,e,r){Object(c.a)(2,arguments);var n=Object(l.a)(t),h=Object(o.a)(e),d=Xe(n,r)-h;return n.setDate(n.getDate()-7*d),n}function si(t,e,r){var n,h,d,f,m,y,v,w;Object(c.a)(2,arguments);var E=Object(S.a)(),_=Object(o.a)(null!==(n=null!==(h=null!==(d=null!==(f=null==r?void 0:r.firstWeekContainsDate)&&void 0!==f?f:null==r||null===(m=r.locale)||void 0===m||null===(y=m.options)||void 0===y?void 0:y.firstWeekContainsDate)&&void 0!==d?d:E.firstWeekContainsDate)&&void 0!==h?h:null===(v=E.locale)||void 0===v||null===(w=v.options)||void 0===w?void 0:w.firstWeekContainsDate)&&void 0!==n?n:1),T=Object(l.a)(t),x=Object(o.a)(e),I=D(T,Qe(T,r)),P=new Date(0);return P.setFullYear(x,0,_),P.setHours(0,0,0,0),(T=Qe(P,r)).setDate(T.getDate()+I),T}function oi(t,e){Object(c.a)(2,arguments);var r=Object(l.a)(t),n=Object(o.a)(e);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(n),r)}function ci(t){Object(c.a)(1,arguments);var e=Object(l.a)(t),r=e.getFullYear(),n=10*Math.floor(r/10);return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}function hi(){return k(Date.now())}function ui(){var t=new Date,e=t.getFullYear(),r=t.getMonth(),n=t.getDate(),o=new Date(0);return o.setFullYear(e,r,n+1),o.setHours(0,0,0,0),o}function pi(){var t=new Date,e=t.getFullYear(),r=t.getMonth(),n=t.getDate(),o=new Date(0);return o.setFullYear(e,r,n-1),o.setHours(0,0,0,0),o}function di(t,e){Object(c.a)(2,arguments);var r=Object(o.a)(e);return d(t,-r)}function sub(t,e){if(Object(c.a)(2,arguments),!e||"object"!==Object(n.a)(e))return new Date(NaN);var r=e.years?Object(o.a)(e.years):0,l=e.months?Object(o.a)(e.months):0,h=e.weeks?Object(o.a)(e.weeks):0,d=e.days?Object(o.a)(e.days):0,f=e.hours?Object(o.a)(e.hours):0,m=e.minutes?Object(o.a)(e.minutes):0,y=e.seconds?Object(o.a)(e.seconds):0,v=di(t,l+12*r),w=Qr(v,d+7*h),E=m+60*f,_=y+60*E,T=1e3*_,S=new Date(w.getTime()-T);return S}function fi(t,e){Object(c.a)(2,arguments);var r=Object(o.a)(e);return w(t,-r)}function mi(t,e){Object(c.a)(2,arguments);var r=Object(o.a)(e);return T(t,-r)}function gi(t,e){Object(c.a)(2,arguments);var r=Object(o.a)(e);return R(t,-r)}function yi(t,e){Object(c.a)(2,arguments);var r=Object(o.a)(e);return F(t,-r)}function vi(t,e){Object(c.a)(2,arguments);var r=Object(o.a)(e);return j(t,-r)}function bi(t,e){Object(c.a)(2,arguments);var r=Object(o.a)(e);return L(t,-r)}function wi(t,e){Object(c.a)(2,arguments);var r=Object(o.a)(e);return B(t,-r)}function Ei(t){return Object(c.a)(1,arguments),Math.floor(t*K.a)}function _i(t){return Object(c.a)(1,arguments),Math.floor(t*K.j)}function Ti(t){return Object(c.a)(1,arguments),Math.floor(t*K.k)}},12:function(t,e,r){"use strict";r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return o})),r.d(e,"c",(function(){return l})),r.d(e,"e",(function(){return c})),r.d(e,"d",(function(){return h})),r.d(e,"f",(function(){return d})),r.d(e,"g",(function(){return f})),r.d(e,"h",(function(){return m})),r.d(e,"i",(function(){return y})),r.d(e,"j",(function(){return v})),r.d(e,"k",(function(){return w})),r.d(e,"m",(function(){return E})),r.d(e,"n",(function(){return _})),r.d(e,"l",(function(){return T})),r.d(e,"q",(function(){return S})),r.d(e,"r",(function(){return x})),r.d(e,"o",(function(){return I})),r.d(e,"p",(function(){return P}));var n=7,o=365.2425,l=24*Math.pow(10,8)*60*60*1e3,c=6e4,h=36e5,d=1e3,f=-l,m=60,y=3,v=12,w=4,E=3600,_=60,T=24*E,S=7*T,x=T*o,I=x/12,P=3*I},127:function(t,e,r){"use strict";var n=function(pattern,t){switch(pattern){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},o=function(pattern,t){switch(pattern){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},l={p:o,P:function(pattern,t){var e,r=pattern.match(/(P+)(p+)?/)||[],l=r[1],c=r[2];if(!c)return n(pattern,t);switch(l){case"P":e=t.dateTime({width:"short"});break;case"PP":e=t.dateTime({width:"medium"});break;case"PPP":e=t.dateTime({width:"long"});break;default:e=t.dateTime({width:"full"})}return e.replace("{{date}}",n(l,t)).replace("{{time}}",o(c,t))}};e.a=l},13:function(t,e,r){"use strict";function n(t,e){for(var r=t<0?"-":"",output=Math.abs(t).toString();output.length<e;)output="0"+output;return r+output}r.d(e,"a",(function(){return n}))},148:function(t,e,r){"use strict";r.d(e,"a",(function(){return l}));var n=r(25),o=r(0);function l(t){return Object(o.a)(1,arguments),t instanceof Date||"object"===Object(n.a)(t)&&"[object Date]"===Object.prototype.toString.call(t)}},149:function(t,e,r){"use strict";r.d(e,"a",(function(){return oe}));var n=r(25),o=r(194),l=r(51),c=r(56),h=r(1),d=r(63),f=r(127),m=r(26),y=r(64),v=r(3),w=r(0),E=r(6),_=r(11),T=r(10),S=r(8),x=r(9),I=r(5),P=function(){function t(){Object(S.a)(this,t),Object(I.a)(this,"priority",void 0),Object(I.a)(this,"subPriority",0)}return Object(x.a)(t,[{key:"validate",value:function(t,e){return!0}}]),t}(),O=function(t){Object(_.a)(r,t);var e=Object(T.a)(r);function r(t,n,o,l,c){var h;return Object(S.a)(this,r),(h=e.call(this)).value=t,h.validateValue=n,h.setValue=o,h.priority=l,c&&(h.subPriority=c),h}return Object(x.a)(r,[{key:"validate",value:function(t,e){return this.validateValue(t,this.value,e)}},{key:"set",value:function(t,e,r){return this.setValue(t,e,this.value,r)}}]),r}(P),A=function(t){Object(_.a)(r,t);var e=Object(T.a)(r);function r(){var t;Object(S.a)(this,r);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return t=e.call.apply(e,[this].concat(o)),Object(I.a)(Object(E.a)(t),"priority",10),Object(I.a)(Object(E.a)(t),"subPriority",-1),t}return Object(x.a)(r,[{key:"set",value:function(t,e){if(e.timestampIsSet)return t;var r=new Date(0);return r.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),r.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),r}}]),r}(P),k=function(){function t(){Object(S.a)(this,t),Object(I.a)(this,"incompatibleTokens",void 0),Object(I.a)(this,"priority",void 0),Object(I.a)(this,"subPriority",void 0)}return Object(x.a)(t,[{key:"run",value:function(t,e,r,n){var o=this.parse(t,e,r,n);return o?{setter:new O(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(t,e,r){return!0}}]),t}(),C=function(t){Object(_.a)(r,t);var e=Object(T.a)(r);function r(){var t;Object(S.a)(this,r);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return t=e.call.apply(e,[this].concat(o)),Object(I.a)(Object(E.a)(t),"priority",140),Object(I.a)(Object(E.a)(t),"incompatibleTokens",["R","u","t","T"]),t}return Object(x.a)(r,[{key:"parse",value:function(t,e,r){switch(e){case"G":case"GG":case"GGG":return r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"});case"GGGGG":return r.era(t,{width:"narrow"});default:return r.era(t,{width:"wide"})||r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"})}}},{key:"set",value:function(t,e,r){return e.era=r,t.setUTCFullYear(r,0,1),t.setUTCHours(0,0,0,0),t}}]),r}(k),D=r(12),M=/^(1[0-2]|0?\d)/,N=/^(3[0-1]|[0-2]?\d)/,R=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,F=/^(5[0-3]|[0-4]?\d)/,j=/^(2[0-3]|[0-1]?\d)/,L=/^(2[0-4]|[0-1]?\d)/,B=/^(1[0-1]|0?\d)/,V=/^(1[0-2]|0?\d)/,z=/^[0-5]?\d/,G=/^[0-5]?\d/,U=/^\d/,$=/^\d{1,2}/,H=/^\d{1,3}/,Y=/^\d{1,4}/,W=/^-?\d+/,K=/^-?\d/,Q=/^-?\d{1,2}/,J=/^-?\d{1,3}/,X=/^-?\d{1,4}
vendor: 12,498 bytes, line 2
2/,Z=/^([+-])(\d{2})(\d{2})?|Z/,tt=/^([+-])(\d{2})(\d{2})|Z/,et=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,nt=/^([+-])(\d{2}):(\d{2})|Z/,it=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function at(t,e){return t?{value:e(t.value),rest:t.rest}:t}function st(pattern,t){var e=t.match(pattern);return e?{value:parseInt(e[0],10),rest:t.slice(e[0].length)}:null}function ot(pattern,t){var e=t.match(pattern);if(!e)return null;if("Z"===e[0])return{value:0,rest:t.slice(1)};var r="+"===e[1]?1:-1,n=e[2]?parseInt(e[2],10):0,o=e[3]?parseInt(e[3],10):0,l=e[5]?parseInt(e[5],10):0;return{value:r*(n*D.d+o*D.e+l*D.f),rest:t.slice(e[0].length)}}function lt(t){return st(W,t)}function ct(t,e){switch(t){case 1:return st(U,e);case 2:return st($,e);case 3:return st(H,e);case 4:return st(Y,e);default:return st(new RegExp("^\\d{1,"+t+"}"),e)}}function ht(t,e){switch(t){case 1:return st(K,e);case 2:return st(Q,e);case 3:return st(J,e);case 4:return st(X,e);default:return st(new RegExp("^-?\\d{1,"+t+"}"),e)}}function ut(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function pt(t,e){var r,n=e>0,o=n?e:1-e;if(o<=50)r=t||100;else{var l=o+50;r=t+100*Math.floor(l/100)-(t>=l%100?100:0)}return n?r:1-r}function ft(t){return t%400==0||t%4==0&&t%100!=0}var mt=function(t){Object(_.a)(r,t);var e=Object(T.a)(r);function r(){var t;Object(S.a)(this,r);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return t=e.call.apply(e,[this].concat(o)),Object(I.a)(Object(E.a)(t),"priority",130),Object(I.a)(Object(E.a)(t),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),t}return Object(x.a)(r,[{key:"parse",value:function(t,e,r){var n=function(t){return{year:t,isTwoDigitYear:"yy"===e}};switch(e){case"y":return at(ct(4,t),n);case"yo":return at(r.ordinalNumber(t,{unit:"year"}),n);default:return at(ct(e.length,t),n)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,r){var n=t.getUTCFullYear();if(r.isTwoDigitYear){var o=pt(r.year,n);return t.setUTCFullYear(o,0,1),t.setUTCHours(0,0,0,0),t}var l="era"in e&&1!==e.era?1-r.year:r.year;return t.setUTCFullYear(l,0,1),t.setUTCHours(0,0,0,0),t}}]),r}(k),gt=r(106),yt=r(52),vt=function(t){Object(_.a)(r,t);var e=Object(T.a)(r);function r(){var t;Object(S.a)(this,r);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return t=e.call.apply(e,[this].concat(o)),Object(I.a)(Object(E.a)(t),"priority",130),Object(I.a)(Object(E.a)(t),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),t}return Object(x.a)(r,[{key:"parse",value:function(t,e,r){var n=function(t){return{year:t,isTwoDigitYear:"YY"===e}};switch(e){case"Y":return at(ct(4,t),n);case"Yo":return at(r.ordinalNumber(t,{unit:"year"}),n);default:return at(ct(e.length,t),n)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,r,n){var o=Object(gt.a)(t,n);if(r.isTwoDigitYear){var l=pt(r.year,o);return t.setUTCFullYear(l,0,n.firstWeekContainsDate),t.setUTCHours(0,0,0,0),Object(yt.a)(t,n)}var c="era"in e&&1!==e.era?1-r.year:r.year;return t.setUTCFullYear(c,0,n.firstWeekContainsDate),t.setUTCHours(0,0,0,0),Object(yt.a)(t,n)}}]),r}(k),bt=r(57),wt=function(t){Object(_.a)(r,t);var e=Object(T.a)(r);function r(){var t;Object(S.a)(this,r);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return t=e.call.apply(e,[this].concat(o)),Object(I.a)(Object(E.a)(t),"priority",130),Object(I.a)(Object(E.a)(t),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),t}return Object(x.a)(r,[{key:"parse",value:function(t,e){return ht("R"===e?4:e.length,t)}},{key:"set",value:function(t,e,r){var n=new Date(0);return n.setUTCFullYear(r,0,4),n.setUTCHours(0,0,0,0),Object(bt.a)(n)}}]),r}(k),Et=function(t){Object(_.a)(r,t);var e=Object(T.a)(r);function r(){var t;Object(S.a)(this,r);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return t=e.call.apply(e,[this].concat(o)),Object(I.a)(Object(E.a)(t),"priority",130),Object(I.a)(Object(E.a)(t),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),t}return Object(x.a)(r,[{key:"parse",value:function(t,e){return ht("u"===e?4:e.length,t)}},{key:"set",value:function(t,e,r){return t.setUTCFullYear(r,0,1),t.setUTCHours(0,0,0,0),t}}]),r}(k),_t=function(t){Object(_.a)(r,t);var e=Object(T.a)(r);function r(){var t;Object(S.a)(this,r);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return t=e.call.apply(e,[this].concat(o)),Object(I.a)(Object(E.a)(t),"priority",120),Object(I.a)(Object(E.a)(t),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),t}return Object(x.a)(r,[{key:"parse",value:function(t,e,r){switch(e){case"Q":case"QQ":return ct(e.length,t);case"Qo":return r.ordinalNumber(t,{unit:"quarter"});case"QQQ":return r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(t,{width:"narrow",context:"formatting"});default:return r.quarter(t,{width:"wide",context:"formatting"})||r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=1&&e<=4}},{key:"set",value:function(t,e,r){return t.setUTCMonth(3*(r-1),1),t.setUTCHours(0,0,0,0),t}}]),r}(k),Tt=function(t){Object(_.a)(r,t);var e=Object(T.a)(r);function r(){var t;Object(S.a)(this,r);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return t=e.call.apply(e,[this].concat(o)),Object(I.a)(Object(E.a)(t),"priority",120),Object(I.a)(Object(E.a)(t),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),t}return Object(x.a)(r,[{key:"parse",value:function(t,e,r){switch(e){case"q":case"qq":return ct(e.length,t);case"qo":return r.ordinalNumber(t,{unit:"quarter"});case"qqq":return r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(t,{width:"narrow",context:"standalone"});default:return r.quarter(t,{width:"wide",context:"standalone"})||r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=1&&e<=4}},{key:"set",value:function(t,e,r){return t.setUTCMonth(3*(r-1),1),t.setUTCHours(0,0,0,0),t}}]),r}(k),St=function(t){Object(_.a)(r,t);var e=Object(T.a)(r);function r(){var t;Object(S.a)(this,r);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return t=e.call.apply(e,[this].concat(o)),Object(I.a)(Object(E.a)(t),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Object(I.a)(Object(E.a)(t),"priority",110),t}return Object(x.a)(r,[{key:"parse",value:function(t,e,r){var n=function(t){return t-1};switch(e){case"M":return at(st(M,t),n);case"MM":return at(ct(2,t),n);case"Mo":return at(r.ordinalNumber(t,{unit:"month"}),n);case"MMM":return r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(t,{width:"narrow",context:"formatting"});default:return r.month(t,{width:"wide",context:"formatting"})||r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,r){return t.setUTCMonth(r,1),t.setUTCHours(0,0,0,0),t}}]),r}(k),xt=function(t){Object(_.a)(r,t);var e=Object(T.a)(r);function r(){var t;Object(S.a)(this,r);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return t=e.call.apply(e,[this].concat(o)),Object(I.a)(Object(E.a)(t),"priority",110),Object(I.a)(Object(E.a)(t),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),t}return Object(x.a)(r,[{key:"parse",value:function(t,e,r){var n=function(t){return t-1};switch(e){case"L":return at(st(M,t),n);case"LL":return at(ct(2,t),n);case"Lo":return at(r.ordinalNumber(t,{unit:"month"}),n);case"LLL":return r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(t,{width:"narrow",context:"standalone"});default:return r.month(t,{width:"wide",context:"standalone"})||r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,r){return t.setUTCMonth(r,1),t.setUTCHours(0,0,0,0),t}}]),r}(k),It=r(161);var Pt=function(t){Object(_.a)(r,t);var e=Object(T.a)(r);function r(){var t;Object(S.a)(this,r);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return t=e.call.apply(e,[this].concat(o)),Object(I.a)(Object(E.a)(t),"priority",100),Object(I.a)(Object(E.a)(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),t}return Object(x.a)(r,[{key:"parse",value:function(t,e,r){switch(e){case"w":return st(F,t);case"wo":return r.ordinalNumber(t,{unit:"week"});default:return ct(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,r,n){return Object(yt.a)(function(t,e,r){Object(w.a)(2,arguments);var n=Object(h.a)(t),o=Object(v.a)(e),l=Object(It.a)(n,r)-o;return n.setUTCDate(n.getUTCDate()-7*l),n}(t,r,n),n)}}]),r}(k),Ot=r(162);var At=function(t){Object(_.a)(r,t);var e=Object(T.a)(r);function r(){var t;Object(S.a)(this,r);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return t=e.call.apply(e,[this].concat(o)),Object(I.a)(Object(E.a)(t),"priority",100),Object(I.a)(Object(E.a)(t),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),t}return Object(x.a)(r,[{key:"parse",value:function(t,e,r){switch(e){case"I":return st(F,t);case"Io":return r.ordinalNumber(t,{unit:"week"});default:return ct(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,r){return Object(bt.a)(function(t,e){Object(w.a)(2,arguments);var r=Object(h.a)(t),n=Object(v.a)(e),o=Object(Ot.a)(r)-n;return r.setUTCDate(r.getUTCDate()-7*o),r}(t,r))}}]),r}(k),kt=[31,28,31,30,31,30,31,31,30,31,30,31],Ct=[31,29,31,30,31,30,31,31,30,31,30,31],Dt=function(t){Object(_.a)(r,t);var e=Object(T.a)(r);function r(){var t;Object(S.a)(this,r);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return t=e.call.apply(e,[this].concat(o)),Object(I.a)(Object(E.a)(t),"priority",90),Object(I.a)(Object(E.a)(t),"subPriority",1),Object(I.a)(Object(E.a)(t),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),t}return Object(x.a)(r,[{key:"parse",value:function(t,e,r){switch(e){case"d":return st(N,t);case"do":return r.ordinalNumber(t,{unit:"date"});default:return ct(e.length,t)}}},{key:"validate",value:function(t,e){var r=ft(t.getUTCFullYear()),n=t.getUTCMonth();return r?e>=1&&e<=Ct[n]:e>=1&&e<=kt[n]}},{key:"set",value:function(t,e,r){return t.setUTCDate(r),t.setUTCHours(0,0,0,0),t}}]),r}(k),Mt=function(t){Object(_.a)(r,t);var e=Object(T.a)(r);function r(){var t;Object(S.a)(this,r);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return t=e.call.apply(e,[this].concat(o)),Object(I.a)(Object(E.a)(t),"priority",90),Object(I.a)(Object(E.a)(t),"subpriority",1),Object(I.a)(Object(E.a)(t),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),t}return Object(x.a)(r,[{key:"parse",value:function(t,e,r){switch(e){case"D":case"DD":return st(R,t);case"Do":return r.ordinalNumber(t,{unit:"date"});default:return ct(e.length,t)}}},{key:"validate",value:function(t,e){return ft(t.getUTCFullYear())?e>=1&&e<=366:e>=1&&e<=365}},{key:"set",value:function(t,e,r){return t.setUTCMonth(0,r),t.setUTCHours(0,0,0,0),t}}]),r}(k),Nt=r(16);function Rt(t,e,r){var n,o,l,c,d,f,m,y;Object(w.a)(2,arguments);var E=Object(Nt.a)(),_=Object(v.a)(null!==(n=null!==(o=null!==(l=null!==(c=null==r?void 0:r.weekStartsOn)&&void 0!==c?c:null==r||null===(d=r.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==l?l:E.weekStartsOn)&&void 0!==o?o:null===(m=E.locale)||void 0===m||null===(y=m.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==n?n:0);if(!(_>=0&&_<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var T=Object(h.a)(t),S=Object(v.a)(e),x=T.getUTCDay(),I=S%7,P=(I+7)%7,O=(P<_?7:0)+S-x;
2return T.setUTCDate(T.getUTCDate()+O),T}var Ft=function(t){Object(_.a)(r,t);var e=Object(T.a)(r);function r(){var t;Object(S.a)(this,r);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return t=e.call.apply(e,[this].concat(o)),Object(I.a)(Object(E.a)(t),"priority",90),Object(I.a)(Object(E.a)(t),"incompatibleTokens",["D","i","e","c","t","T"]),t}return Object(x.a)(r,[{key:"parse",value:function(t,e,r){switch(e){case"E":case"EE":case"EEE":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,r,n){return(t=Rt(t,r,n)).setUTCHours(0,0,0,0),t}}]),r}(k),jt=function(t){Object(_.a)(r,t);var e=Object(T.a)(r);function r(){var t;Object(S.a)(this,r);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return t=e.call.apply(e,[this].concat(o)),Object(I.a)(Object(E.a)(t),"priority",90),Object(I.a)(Object(E.a)(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),t}return Object(x.a)(r,[{key:"parse",value:function(t,e,r,n){var o=function(t){var e=7*Math.floor((t-1)/7);return(t+n.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return at(ct(e.length,t),o);case"eo":return at(r.ordinalNumber(t,{unit:"day"}),o);case"eee":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"eeeee":return r.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,r,n){return(t=Rt(t,r,n)).setUTCHours(0,0,0,0),t}}]),r}(k),Lt=function(t){Object(_.a)(r,t);var e=Object(T.a)(r);function r(){var t;Object(S.a)(this,r);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return t=e.call.apply(e,[this].concat(o)),Object(I.a)(Object(E.a)(t),"priority",90),Object(I.a)(Object(E.a)(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),t}return Object(x.a)(r,[{key:"parse",value:function(t,e,r,n){var o=function(t){var e=7*Math.floor((t-1)/7);return(t+n.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return at(ct(e.length,t),o);case"co":return at(r.ordinalNumber(t,{unit:"day"}),o);case"ccc":return r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});case"ccccc":return r.day(t,{width:"narrow",context:"standalone"});case"cccccc":return r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});default:return r.day(t,{width:"wide",context:"standalone"})||r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,r,n){return(t=Rt(t,r,n)).setUTCHours(0,0,0,0),t}}]),r}(k);var Bt=function(t){Object(_.a)(r,t);var e=Object(T.a)(r);function r(){var t;Object(S.a)(this,r);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return t=e.call.apply(e,[this].concat(o)),Object(I.a)(Object(E.a)(t),"priority",90),Object(I.a)(Object(E.a)(t),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),t}return Object(x.a)(r,[{key:"parse",value:function(t,e,r){var n=function(t){return 0===t?7:t};switch(e){case"i":case"ii":return ct(e.length,t);case"io":return r.ordinalNumber(t,{unit:"day"});case"iii":return at(r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),n);case"iiiii":return at(r.day(t,{width:"narrow",context:"formatting"}),n);case"iiiiii":return at(r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),n);default:return at(r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),n)}}},{key:"validate",value:function(t,e){return e>=1&&e<=7}},{key:"set",value:function(t,e,r){return t=function(t,e){Object(w.a)(2,arguments);var r=Object(v.a)(e);r%7==0&&(r-=7);var n=1,o=Object(h.a)(t),l=o.getUTCDay(),c=((r%7+7)%7<n?7:0)+r-l;return o.setUTCDate(o.getUTCDate()+c),o}(t,r),t.setUTCHours(0,0,0,0),t}}]),r}(k),Vt=function(t){Object(_.a)(r,t);var e=Object(T.a)(r);function r(){var t;Object(S.a)(this,r);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return t=e.call.apply(e,[this].concat(o)),Object(I.a)(Object(E.a)(t),"priority",80),Object(I.a)(Object(E.a)(t),"incompatibleTokens",["b","B","H","k","t","T"]),t}return Object(x.a)(r,[{key:"parse",value:function(t,e,r){switch(e){case"a":case"aa":case"aaa":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,r){return t.setUTCHours(ut(r),0,0,0),t}}]),r}(k),zt=function(t){Object(_.a)(r,t);var e=Object(T.a)(r);function r(){var t;Object(S.a)(this,r);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return t=e.call.apply(e,[this].concat(o)),Object(I.a)(Object(E.a)(t),"priority",80),Object(I.a)(Object(E.a)(t),"incompatibleTokens",["a","B","H","k","t","T"]),t}return Object(x.a)(r,[{key:"parse",value:function(t,e,r){switch(e){case"b":case"bb"
2:case"bbb":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,r){return t.setUTCHours(ut(r),0,0,0),t}}]),r}(k),Gt=function(t){Object(_.a)(r,t);var e=Object(T.a)(r);function r(){var t;Object(S.a)(this,r);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return t=e.call.apply(e,[this].concat(o)),Object(I.a)(Object(E.a)(t),"priority",80),Object(I.a)(Object(E.a)(t),"incompatibleTokens",["a","b","t","T"]),t}return Object(x.a)(r,[{key:"parse",value:function(t,e,r){switch(e){case"B":case"BB":case"BBB":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,r){return t.setUTCHours(ut(r),0,0,0),t}}]),r}(k),Ut=function(t){Object(_.a)(r,t);var e=Object(T.a)(r);function r(){var t;Object(S.a)(this,r);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return t=e.call.apply(e,[this].concat(o)),Object(I.a)(Object(E.a)(t),"priority",70),Object(I.a)(Object(E.a)(t),"incompatibleTokens",["H","K","k","t","T"]),t}return Object(x.a)(r,[{key:"parse",value:function(t,e,r){switch(e){case"h":return st(V,t);case"ho":return r.ordinalNumber(t,{unit:"hour"});default:return ct(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=12}},{key:"set",value:function(t,e,r){var n=t.getUTCHours()>=12;return n&&r<12?t.setUTCHours(r+12,0,0,0):n||12!==r?t.setUTCHours(r,0,0,0):t.setUTCHours(0,0,0,0),t}}]),r}(k),$t=function(t){Object(_.a)(r,t);var e=Object(T.a)(r);function r(){var t;Object(S.a)(this,r);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return t=e.call.apply(e,[this].concat(o)),Object(I.a)(Object(E.a)(t),"priority",70),Object(I.a)(Object(E.a)(t),"incompatibleTokens",["a","b","h","K","k","t","T"]),t}return Object(x.a)(r,[{key:"parse",value:function(t,e,r){switch(e){case"H":return st(j,t);case"Ho":return r.ordinalNumber(t,{unit:"hour"});default:return ct(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=23}},{key:"set",value:function(t,e,r){return t.setUTCHours(r,0,0,0),t}}]),r}(k),qt=function(t){Object(_.a)(r,t);var e=Object(T.a)(r);function r(){var t;Object(S.a)(this,r);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return t=e.call.apply(e,[this].concat(o)),Object(I.a)(Object(E.a)(t),"priority",70),Object(I.a)(Object(E.a)(t),"incompatibleTokens",["h","H","k","t","T"]),t}return Object(x.a)(r,[{key:"parse",value:function(t,e,r){switch(e){case"K":return st(B,t);case"Ko":return r.ordinalNumber(t,{unit:"hour"});default:return ct(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,r){return t.getUTCHours()>=12&&r<12?t.setUTCHours(r+12,0,0,0):t.setUTCHours(r,0,0,0),t}}]),r}(k),Ht=function(t){Object(_.a)(r,t);var e=Object(T.a)(r);function r(){var t;Object(S.a)(this,r);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return t=e.call.apply(e,[this].concat(o)),Object(I.a)(Object(E.a)(t),"priority",70),Object(I.a)(Object(E.a)(t),"incompatibleTokens",["a","b","h","H","K","t","T"]),t}return Object(x.a)(r,[{key:"parse",value:function(t,e,r){switch(e){case"k":return st(L,t);case"ko":return r.ordinalNumber(t,{unit:"hour"});default:return ct(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=24}},{key:"set",value:function(t,e,r){var n=r<=24?r%24:r;return t.setUTCHours(n,0,0,0),t}}]),r}(k),Yt=function(t){Object(_.a)(r,t);var e=Object(T.a)(r);function r(){var t;Object(S.a)(this,r);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return t=e.call.apply(e,[this].concat(o)),Object(I.a)(Object(E.a)(t),"priority",60),Object(I.a)(Object(E.a)(t),"incompatibleTokens",["t","T"]),t}return Object(x.a)(r,[{key:"parse",value:function(t,e,r){switch(e){case"m":return st(z,t);case"mo":return r.ordinalNumber(t,{unit:"minute"});default:return ct(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=59}},{key:"set",value:function(t,e,r){return t.setUTCMinutes(r,0,0),t}}
2]),r}(k),Wt=function(t){Object(_.a)(r,t);var e=Object(T.a)(r);function r(){var t;Object(S.a)(this,r);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return t=e.call.apply(e,[this].concat(o)),Object(I.a)(Object(E.a)(t),"priority",50),Object(I.a)(Object(E.a)(t),"incompatibleTokens",["t","T"]),t}return Object(x.a)(r,[{key:"parse",value:function(t,e,r){switch(e){case"s":return st(G,t);case"so":return r.ordinalNumber(t,{unit:"second"});default:return ct(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=59}},{key:"set",value:function(t,e,r){return t.setUTCSeconds(r,0),t}}]),r}(k),Kt=function(t){Object(_.a)(r,t);var e=Object(T.a)(r);function r(){var t;Object(S.a)(this,r);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return t=e.call.apply(e,[this].concat(o)),Object(I.a)(Object(E.a)(t),"priority",30),Object(I.a)(Object(E.a)(t),"incompatibleTokens",["t","T"]),t}return Object(x.a)(r,[{key:"parse",value:function(t,e){return at(ct(e.length,t),(function(t){return Math.floor(t*Math.pow(10,3-e.length))}))}},{key:"set",value:function(t,e,r){return t.setUTCMilliseconds(r),t}}]),r}(k),Qt=function(t){Object(_.a)(r,t);var e=Object(T.a)(r);function r(){var t;Object(S.a)(this,r);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return t=e.call.apply(e,[this].concat(o)),Object(I.a)(Object(E.a)(t),"priority",10),Object(I.a)(Object(E.a)(t),"incompatibleTokens",["t","T","x"]),t}return Object(x.a)(r,[{key:"parse",value:function(t,e){switch(e){case"X":return ot(Z,t);case"XX":return ot(tt,t);case"XXXX":return ot(et,t);case"XXXXX":return ot(it,t);default:return ot(nt,t)}}},{key:"set",value:function(t,e,r){return e.timestampIsSet?t:new Date(t.getTime()-r)}}]),r}(k),Jt=function(t){Object(_.a)(r,t);var e=Object(T.a)(r);function r(){var t;Object(S.a)(this,r);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return t=e.call.apply(e,[this].concat(o)),Object(I.a)(Object(E.a)(t),"priority",10),Object(I.a)(Object(E.a)(t),"incompatibleTokens",["t","T","X"]),t}return Object(x.a)(r,[{key:"parse",value:function(t,e){switch(e){case"x":return ot(Z,t);case"xx":return ot(tt,t);case"xxxx":return ot(et,t);case"xxxxx":return ot(it,t);default:return ot(nt,t)}}},{key:"set",value:function(t,e,r){return e.timestampIsSet?t:new Date(t.getTime()-r)}}]),r}(k),Xt=function(t){Object(_.a)(r,t);var e=Object(T.a)(r);function r(){var t;Object(S.a)(this,r);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return t=e.call.apply(e,[this].concat(o)),Object(I.a)(Object(E.a)(t),"priority",40),Object(I.a)(Object(E.a)(t),"incompatibleTokens","*"),t}return Object(x.a)(r,[{key:"parse",value:function(t){return lt(t)}},{key:"set",value:function(t,e,r){return[new Date(1e3*r),{timestampIsSet:!0}]}}]),r}(k),Zt=function(t){Object(_.a)(r,t);var e=Object(T.a)(r);function r(){var t;Object(S.a)(this,r);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return t=e.call.apply(e,[this].concat(o)),Object(I.a)(Object(E.a)(t),"priority",20),Object(I.a)(Object(E.a)(t),"incompatibleTokens","*"),t}return Object(x.a)(r,[{key:"parse",value:function(t){return lt(t)}},{key:"set",value:function(t,e,r){return[new Date(r),{timestampIsSet:!0}]}}]),r}(k),te={G:new C,y:new mt,Y:new vt,R:new wt,u:new Et,Q:new _t,q:new Tt,M:new St,L:new xt,w:new Pt,I:new At,d:new Dt,D:new Mt,E:new Ft,e:new jt,c:new Lt,i:new Bt,a:new Vt,b:new zt,B:new Gt,h:new Ut,H:new $t,K:new qt,k:new Ht,m:new Yt,s:new Wt,S:new Kt,X:new Qt,x:new Jt,t:new Xt,T:new Zt},ee=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,re=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ne=/^'([^]*?)'?$/,ie=/''/g,ae=/\S/,se=/[a-zA-Z]/;function oe(t,e,r,E){var _,T,S,x,I,P,O,k,C,D,M,N,R,F,j,L,B,V;Object(w.a)(3,arguments);var z=String(t),G=String(e),U=Object(Nt.a)(),$=null!==(_=null!==(T=null==E?void 0:E.locale)&&void 0!==T?T:U.locale)&&void 0!==_?_:l.a;if(!$.match)throw new RangeError("locale must contain match property");var H=Object(v.a)(null!==(S=null!==(x=null!==(I=null!==(P=null==E?void 0:E.firstWeekContainsDate)&&void 0!==P?P:null==E||null===(O=E.locale)||void 0===O||null===(k=O.options)||void 0===k?void 0:k.firstWeekContainsDate)&&void 0!==I?I:U.firstWeekContainsDate)&&void 0!==x?x:null===(C=U.locale)||void 0===C||null===(D=C.options)||void 0===D?void 0:D.firstWeekContainsDate)&&void 0!==S?S:1);if(!(H>=1&&H<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Y=Object(v.a)(null!==(M=null!==(N=null!==(R=null!==(F=null==E?void 0:E.weekStartsOn)&&void 0!==F?F:null==E||null===(j=E.locale)||void 0===j||null===(L=j.options)||void 0===L?void 0:L.weekStartsOn)&&void 0!==R?R:U.weekStartsOn)&&void 0!==N?N:null===(B=U.locale)||void 0===B||null===(V=B.options)||void 0===V?void 0:V.weekStartsOn)&&void 0!==M?M:0);if(!(Y>=0&&Y<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===G)return""===z?Object(h.a)(r):new Date(NaN);var W,K={firstWeekContainsDate:H,weekStartsOn:Y,locale:$},Q=[new A],J=G.match(re).map((function(t){var e=t[0];return e in f.a?(0,f.a[e])(t,$.formatLong):t})).join("").match(ee),X=[],Z=Object(o.a)(J);try{var tt=function(){var e=W.value;null!=E&&E.useAdditionalWeekYearTokens||!Object(y.b)(e)||Object(y.c)(e,G,t),null!=E&&E.useAdditionalDayOfYearTokens||!Object(y.a)(e)||Object(y.c)(e,G,t);var r=e[0],n=te[r];
2if(n){var o=n.incompatibleTokens;if(Array.isArray(o)){var l=X.find((function(t){return o.includes(t.token)||t.token===r}));if(l)throw new RangeError("The format string mustn't contain `".concat(l.fullToken,"` and `").concat(e,"` at the same time"))}else if("*"===n.incompatibleTokens&&X.length>0)throw new RangeError("The format string mustn't contain `".concat(e,"` and any other token at the same time"));X.push({token:r,fullToken:e});var c=n.run(z,e,$.match,K);if(!c)return{v:new Date(NaN)};Q.push(c.setter),z=c.rest}else{if(r.match(se))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");if("''"===e?e="'":"'"===r&&(e=le(e)),0!==z.indexOf(e))return{v:new Date(NaN)};z=z.slice(e.length)}};for(Z.s();!(W=Z.n()).done;){var et=tt();if("object"===Object(n.a)(et))return et.v}}catch(t){Z.e(t)}finally{Z.f()}if(z.length>0&&ae.test(z))return new Date(NaN);var nt=Q.map((function(t){return t.priority})).sort((function(a,b){return b-a})).filter((function(t,e,r){return r.indexOf(t)===e})).map((function(t){return Q.filter((function(e){return e.priority===t})).sort((function(a,b){return b.subPriority-a.subPriority}))})).map((function(t){return t[0]})),it=Object(h.a)(r);if(isNaN(it.getTime()))return new Date(NaN);var at,st=Object(c.a)(it,Object(m.a)(it)),ot={},lt=Object(o.a)(nt);try{for(lt.s();!(at=lt.n()).done;){var ct=at.value;if(!ct.validate(st,K))return new Date(NaN);var ht=ct.set(st,ot,K);Array.isArray(ht)?(st=ht[0],Object(d.a)(ot,ht[1])):st=ht}}catch(t){lt.e(t)}finally{lt.f()}return st}function le(input){return input.match(ne)[1].replace(ie,"'")}},150:function(t,e,r){"use strict";r.d(e,"a",(function(){return U}));var n=r(33),o=r(56),l=r(1),c=r(0),h=864e5;var d=r(162),f=r(156),m=r(161),y=r(106),v=r(13),w=r(58),E="midnight",_="noon",T="morning",S="afternoon",x="evening",I="night",P={G:function(t,e,r){var n=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(t,e,r){if("yo"===e){var n=t.getUTCFullYear(),o=n>0?n:1-n;return r.ordinalNumber(o,{unit:"year"})}return w.a.y(t,e)},Y:function(t,e,r,n){var o=Object(y.a)(t,n),l=o>0?o:1-o;if("YY"===e){var c=l%100;return Object(v.a)(c,2)}return"Yo"===e?r.ordinalNumber(l,{unit:"year"}):Object(v.a)(l,e.length)},R:function(t,e){var r=Object(f.a)(t);return Object(v.a)(r,e.length)},u:function(t,e){var r=t.getUTCFullYear();return Object(v.a)(r,e.length)},Q:function(t,e,r){var n=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(n);case"QQ":return Object(v.a)(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(t,e,r){var n=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(n);case"qq":return Object(v.a)(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(t,e,r){var n=t.getUTCMonth();switch(e){case"M":case"MM":return w.a.M(t,e);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(t,e,r){var n=t.getUTCMonth();switch(e){case"L":return String(n+1);case"LL":return Object(v.a)(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(t,e,r,n){var o=Object(m.a)(t,n);return"wo"===e?r.ordinalNumber(o,{unit:"week"}):Object(v.a)(o,e.length)},I:function(t,e,r){var n=Object(d.a)(t);return"Io"===e?r.ordinalNumber(n,{unit:"week"}):Object(v.a)(n,e.length)},d:function(t,e,r){return"do"===e?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):w.a.d(t,e)},D:function(t,e,r){var n=function(t){Object(c.a)(1,arguments);var e=Object(l.a)(t),r=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var n=e.getTime(),o=r-n;return Math.floor(o/h)+1}(t);return"Do"===e?r.ordinalNumber(n,{unit:"dayOfYear"}):Object(v.a)(n,e.length)},E:function(t,e,r){var n=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(t,e,r,n){var o=t.getUTCDay(),l=(o-n.weekStartsOn+8)%7||7;switch(e){case"e":return String(l);case"ee":return Object(v.a)(l,2);case"eo":return r.ordinalNumber(l,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(t,e,r,n){var o=t.getUTCDay(),l=(o-n.weekStartsOn+8)%7||7;switch(e){case"c":return String(l);case"cc":return Object(v.a)(l,e.length);case"co":return r.ordinalNumber(l,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(t,e,r){var n=t.getUTCDay(),o=0===n?7:n;switch(e){case"i":return String(o);case"ii":return Object(v.a)(o,e.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(t,e,r){var n=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(t,e,r){var n,o=t.getUTCHours();switch(n=12===o?_:0===o?E:o/12>
2=1?"pm":"am",e){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(t,e,r){var n,o=t.getUTCHours();switch(n=o>=17?x:o>=12?S:o>=4?T:I,e){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(t,e,r){if("ho"===e){var n=t.getUTCHours()%12;return 0===n&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return w.a.h(t,e)},H:function(t,e,r){return"Ho"===e?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):w.a.H(t,e)},K:function(t,e,r){var n=t.getUTCHours()%12;return"Ko"===e?r.ordinalNumber(n,{unit:"hour"}):Object(v.a)(n,e.length)},k:function(t,e,r){var n=t.getUTCHours();return 0===n&&(n=24),"ko"===e?r.ordinalNumber(n,{unit:"hour"}):Object(v.a)(n,e.length)},m:function(t,e,r){return"mo"===e?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):w.a.m(t,e)},s:function(t,e,r){return"so"===e?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):w.a.s(t,e)},S:function(t,e){return w.a.S(t,e)},X:function(t,e,r,n){var o=(n._originalDate||t).getTimezoneOffset();if(0===o)return"Z";switch(e){case"X":return A(o);case"XXXX":case"XX":return k(o);default:return k(o,":")}},x:function(t,e,r,n){var o=(n._originalDate||t).getTimezoneOffset();switch(e){case"x":return A(o);case"xxxx":case"xx":return k(o);default:return k(o,":")}},O:function(t,e,r,n){var o=(n._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+O(o,":");default:return"GMT"+k(o,":")}},z:function(t,e,r,n){var o=(n._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+O(o,":");default:return"GMT"+k(o,":")}},t:function(t,e,r,n){var o=n._originalDate||t,l=Math.floor(o.getTime()/1e3);return Object(v.a)(l,e.length)},T:function(t,e,r,n){var o=(n._originalDate||t).getTime();return Object(v.a)(o,e.length)}};function O(t,e){var r=t>0?"-":"+",n=Math.abs(t),o=Math.floor(n/60),l=n%60;if(0===l)return r+String(o);var c=e||"";return r+String(o)+c+Object(v.a)(l,2)}function A(t,e){return t%60==0?(t>0?"-":"+")+Object(v.a)(Math.abs(t)/60,2):k(t,e)}function k(t,e){var r=e||"",n=t>0?"-":"+",o=Math.abs(t);return n+Object(v.a)(Math.floor(o/60),2)+r+Object(v.a)(o%60,2)}var C=P,D=r(127),M=r(26),N=r(64),R=r(3),F=r(16),j=r(51),L=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,B=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,V=/^'([^]*?)'?$/,z=/''/g,G=/[a-zA-Z]/;function U(t,e,r){var h,d,f,m,y,v,w,E,_,T,S,x,I,P,O,A,k,V;Object(c.a)(2,arguments);var z=String(e),U=Object(F.a)(),H=null!==(h=null!==(d=null==r?void 0:r.locale)&&void 0!==d?d:U.locale)&&void 0!==h?h:j.a,Y=Object(R.a)(null!==(f=null!==(m=null!==(y=null!==(v=null==r?void 0:r.firstWeekContainsDate)&&void 0!==v?v:null==r||null===(w=r.locale)||void 0===w||null===(E=w.options)||void 0===E?void 0:E.firstWeekContainsDate)&&void 0!==y?y:U.firstWeekContainsDate)&&void 0!==m?m:null===(_=U.locale)||void 0===_||null===(T=_.options)||void 0===T?void 0:T.firstWeekContainsDate)&&void 0!==f?f:1);if(!(Y>=1&&Y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var W=Object(R.a)(null!==(S=null!==(x=null!==(I=null!==(P=null==r?void 0:r.weekStartsOn)&&void 0!==P?P:null==r||null===(O=r.locale)||void 0===O||null===(A=O.options)||void 0===A?void 0:A.weekStartsOn)&&void 0!==I?I:U.weekStartsOn)&&void 0!==x?x:null===(k=U.locale)||void 0===k||null===(V=k.options)||void 0===V?void 0:V.weekStartsOn)&&void 0!==S?S:0);if(!(W>=0&&W<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!H.localize)throw new RangeError("locale must contain localize property");if(!H.formatLong)throw new RangeError("locale must contain formatLong property");var K=Object(l.a)(t);if(!Object(n.a)(K))throw new RangeError("Invalid time value");var Q=Object(M.a)(K),J=Object(o.a)(K,Q),X={firstWeekContainsDate:Y,weekStartsOn:W,locale:H,_originalDate:K},Z=z.match(B).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,D.a[e])(t,H.formatLong):t})).join("").match(L).map((function(n){if("''"===n)return"'";var o=n[0];if("'"===o)return $(n);var l=C[o];if(l)return null!=r&&r.useAdditionalWeekYearTokens||!Object(N.b)(n)||Object(N.c)(n,e,String(t)),null!=r&&r.useAdditionalDayOfYearTokens||!Object(N.a)(n)||Object(N.c)(n,e,String(t)),l(J,n,H.localize,X);
2if(o.match(G))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return n})).join("");return Z}function $(input){var t=input.match(V);return t?t[1].replace(z,"'"):input}},156:function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var n=r(1),o=r(0),l=r(57);function c(t){Object(o.a)(1,arguments);var e=Object(n.a)(t),r=e.getUTCFullYear(),c=new Date(0);c.setUTCFullYear(r+1,0,4),c.setUTCHours(0,0,0,0);var h=Object(l.a)(c),d=new Date(0);d.setUTCFullYear(r,0,4),d.setUTCHours(0,0,0,0);var f=Object(l.a)(d);return e.getTime()>=h.getTime()?r+1:e.getTime()>=f.getTime()?r:r-1}},157:function(t,e,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var s,i=1,e=arguments.length;i<e;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t},n.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var desc=Object.getOwnPropertyDescriptor(e,r);desc&&!("get"in desc?!e.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,desc)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),l=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),c=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&o(e,t,r);return l(e,t),e},h=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,l){function c(t){try{d(n.next(t))}catch(t){l(t)}}function h(t){try{d(n.throw(t))}catch(t){l(t)}}function d(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(c,h)}d((n=n.apply(t,e||[])).next())}))},d=this&&this.__generator||function(t,body){var e,r,n,g,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return g={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function l(l){return function(c){return function(l){if(e)throw new TypeError("Generator is already executing.");for(;o;)try{if(e=1,r&&(n=2&l[0]?r.return:l[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,l[1])).done)return n;switch(r=0,n&&(l=[2&l[0],n.value]),l[0]){case 0:case 1:n=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!(n=o.trys,(n=n.length>0&&n[n.length-1])||6!==l[0]&&2!==l[0])){o=0;continue}if(3===l[0]&&(!n||l[1]>n[0]&&l[1]<n[3])){o.label=l[1];break}if(6===l[0]&&o.label<n[1]){o.label=n[1],n=l;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(l);break}n[2]&&o.ops.pop(),o.trys.pop();continue}l=body.call(t,o)}catch(t){l=[6,t],r=0}finally{e=n=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,c])}}},f=this&&this.__rest||function(s,t){var e={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&t.indexOf(p)<0&&(e[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i<p.length;i++)t.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(e[p[i]]=s[p[i]])}return e},m=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))},y=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.resolveRequestDocument=e.GraphQLWebSocketClient=e.gql=e.batchRequests=e.request=e.rawRequest=e.GraphQLClient=e.ClientError=void 0;var v=c(r(428)),w=v,E=y(r(429)),_=r(271),T=r(432),S=r(272);Object.defineProperty(e,"ClientError",{enumerable:!0,get:function(){return S.ClientError}});var x=r(187),I=function(t){var e={};return t&&("undefined"!=typeof Headers&&t instanceof Headers||w&&w.Headers&&t instanceof w.Headers?e=function(t){var e={};return t.forEach((function(t,r){e[r]=t})),e}(t):Array.isArray(t)?t.forEach((function(t){var r=t[0],n=t[1];e[r]=n})):e=t),e},P=function(t){return t.replace(/([\s,]|#[^\n\r]+)+/g," ").trim()},O=function(t){var e=t.url,r=t.query,o=t.variables,l=t.operationName,c=t.headers,m=t.fetch,y=t.fetchOptions,v=t.middleware;return h(void 0,void 0,void 0,(function(){var body,t,h;return d(this,(function(d){switch(d.label){case 0:return body=(0,E.default)(r,o,l,y.jsonSerializer),t=n({method:"POST",headers:n(n({},"string"==typeof body?{"Content-Type":"application/json"}:{}
2),c),body:body},y),v?[4,Promise.resolve(v(n(n({},t),{url:e,operationName:l,variables:o})))]:[3,2];case 1:h=d.sent(),e=h.url,t=f(h,["url"]),d.label=2;case 2:return[4,m(e,t)];case 3:return[2,d.sent()]}}))}))},A=function(t){var e=t.url,r=t.query,o=t.variables,l=t.operationName,c=t.headers,m=t.fetch,y=t.fetchOptions,v=t.middleware;return h(void 0,void 0,void 0,(function(){var t,h,w;return d(this,(function(d){switch(d.label){case 0:return t=function(t){var e=t.query,r=t.variables,n=t.operationName,o=t.jsonSerializer;if(!Array.isArray(e)){var l=["query=".concat(encodeURIComponent(P(e)))];return r&&l.push("variables=".concat(encodeURIComponent(o.stringify(r)))),n&&l.push("operationName=".concat(encodeURIComponent(n))),l.join("&")}if(void 0!==r&&!Array.isArray(r))throw new Error("Cannot create query with given variable type, array expected");var c=e.reduce((function(t,e,n){return t.push({query:P(e),variables:r?o.stringify(r[n]):void 0}),t}),[]);return"query=".concat(encodeURIComponent(o.stringify(c)))}({query:r,variables:o,operationName:l,jsonSerializer:y.jsonSerializer}),h=n({method:"GET",headers:c},y),v?[4,Promise.resolve(v(n(n({},h),{url:e,operationName:l,variables:o})))]:[3,2];case 1:w=d.sent(),e=w.url,h=f(w,["url"]),d.label=2;case 2:return[4,m("".concat(e,"?").concat(t),h)];case 3:return[2,d.sent()]}}))}))},k=function(){function t(t,e){void 0===e&&(e={}),this.url=t,this.options=e}return t.prototype.rawRequest=function(t,e,r){return h(this,void 0,void 0,(function(){var o,l,c,h,m,y,w,E,_,S,P,O;return d(this,(function(d){return o=(0,T.parseRawRequestArgs)(t,e,r),l=this.options,c=l.headers,h=l.fetch,m=void 0===h?v.default:h,y=l.method,w=void 0===y?"POST":y,E=l.requestMiddleware,_=l.responseMiddleware,S=f(l,["headers","fetch","method","requestMiddleware","responseMiddleware"]),P=this.url,void 0!==o.signal&&(S.signal=o.signal),O=(0,x.resolveRequestDocument)(o.query).operationName,[2,C({url:P,query:o.query,variables:o.variables,headers:n(n({},I(N(c))),I(o.requestHeaders)),operationName:O,fetch:m,method:w,fetchOptions:S,middleware:E}).then((function(t){return _&&_(t),t})).catch((function(t){throw _&&_(t),t}))]}))}))},t.prototype.request=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return h(this,void 0,void 0,(function(){var r,o,l,c,h,m,y,w,E,_,S,P,O,A,k,D;return d(this,(function(d){return r=e[0],o=e[1],l=(0,T.parseRequestArgs)(t,r,o),c=this.options,h=c.headers,m=c.fetch,y=void 0===m?v.default:m,w=c.method,E=void 0===w?"POST":w,_=c.requestMiddleware,S=c.responseMiddleware,P=f(c,["headers","fetch","method","requestMiddleware","responseMiddleware"]),O=this.url,void 0!==l.signal&&(P.signal=l.signal),A=(0,x.resolveRequestDocument)(l.document),k=A.query,D=A.operationName,[2,C({url:O,query:k,variables:l.variables,headers:n(n({},I(N(h))),I(l.requestHeaders)),operationName:D,fetch:y,method:E,fetchOptions:P,middleware:_}).then((function(t){return S&&S(t),t.data}
2)).catch((function(t){throw S&&S(t),t}))]}))}))},t.prototype.batchRequests=function(t,e){var r=(0,T.parseBatchRequestArgs)(t,e),o=this.options,l=o.headers,c=o.fetch,h=void 0===c?v.default:c,d=o.method,m=void 0===d?"POST":d,y=o.requestMiddleware,w=o.responseMiddleware,E=f(o,["headers","fetch","method","requestMiddleware","responseMiddleware"]),_=this.url;void 0!==r.signal&&(E.signal=r.signal);var S=r.documents.map((function(t){var e=t.document;return(0,x.resolveRequestDocument)(e).query})),P=r.documents.map((function(t){return t.variables}));return C({url:_,query:S,variables:P,headers:n(n({},I(N(l))),I(r.requestHeaders)),operationName:void 0,fetch:h,method:m,fetchOptions:E,middleware:y}).then((function(t){return w&&w(t),t.data})).catch((function(t){throw w&&w(t),t}))},t.prototype.setHeaders=function(t){return this.options.headers=t,this},t.prototype.setHeader=function(t,e){var r,n=this.options.headers;return n?n[t]=e:this.options.headers=((r={})[t]=e,r),this},t.prototype.setEndpoint=function(t){return this.url=t,this},t}();function C(t){var e=t.url,r=t.query,o=t.variables,l=t.headers,c=t.operationName,m=t.fetch,y=t.method,v=void 0===y?"POST":y,w=t.fetchOptions,E=t.middleware;return h(this,void 0,void 0,(function(){var t,h,y,_,T,x,I,P,k,data,C;return d(this,(function(d){switch(d.label){case 0:return t="POST"===v.toUpperCase()?O:A,h=Array.isArray(r),[4,t({url:e,query:r,variables:o,operationName:c,headers:l,fetch:m,fetchOptions:w,middleware:E})];case 1:return[4,M(y=d.sent(),w.jsonSerializer)];case 2:if(_=d.sent(),T=h&&Array.isArray(_)?!_.some((function(t){return!t.data})):!!_.data,x=!_.errors||"all"===w.errorPolicy||"ignore"===w.errorPolicy,y.ok&&x&&T)return I=y.headers,P=y.status,_.errors,k=f(_,["errors"]),data="ignore"===w.errorPolicy?k:_,[2,n(n({},h?{data:data}:data),{headers:I,status:P})];throw C="string"==typeof _?{error:_}:_,new S.ClientError(n(n({},C),{status:y.status,headers:y.headers}),{query:r,variables:o})}}))}))}function D(t,e){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];return h(this,void 0,void 0,(function(){var o;return d(this,(function(l){return o=T.parseRequestExtendedArgs.apply(void 0,m([t,e],r,!1)),[2,new k(o.url).request(n({},o))]}))}))}function M(t,e){return void 0===e&&(e=_.defaultJsonSerializer),h(this,void 0,void 0,(function(){var r,n,o;return d(this,(function(l){switch(l.label){case 0:return t.headers.forEach((function(t,e){"content-type"===e.toLowerCase()&&(r=t)})),r&&(r.toLowerCase().startsWith("application/json")||r.toLowerCase().startsWith("application/graphql+json")||r.toLowerCase().startsWith("application/graphql-response+json"))?(o=(n=e).parse,[4,t.text()]):[3,2];case 1:return[2,o.apply(n,[l.sent()])];case 2:return[2,t.text()]}}))}))}function N(t){return"function"==typeof t?t():t}e.GraphQLClient=k,e.rawRequest=function(t,e){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];return h(this,void 0,void 0,(function(){var o;return d(this,(function(l){return o=T.parseRawRequestExtendedArgs.apply(void 0,m([t,e],r,!1)),[2,new k(o.url).rawRequest(n({},o))]}))}))},e.request=D,e.batchRequests=function(t,e,r){return h(this,void 0,void 0,(function(){var o;return d(this,(function(l){return o=(0,T.parseBatchRequestsExtendedArgs)(t,e,r),[2,new k(o.url).batchRequests(n({},o))]}))}))},e.default=D,e.gql=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return t.reduce((function(t,r,n){return"".concat(t).concat(r).concat(n in e?e[n]:"")}),"")};var R=r(433);Object.defineProperty(e,"GraphQLWebSocketClient",{enumerable:!0,get:function(){return R.GraphQLWebSocketClient}});var F=r(187);Object.defineProperty(e,"resolveRequestDocument",{enumerable:!0,get:function(){return F.resolveRequestDocument}})},158:function(t,e,r){var n;!function(o,l){"use strict";var c="function",h="undefined",d="object",f="string",m="model",y="name",v="type",w="vendor",E="version",_="architecture",T="console",S="mobile",x="tablet",I="smarttv",P="wearable",O="embedded",A="Amazon",k="Apple",C="ASUS",D="BlackBerry",M="Browser",N="Chrome",R="Firefox",F="Google",j="Huawei",L="LG",B="Microsoft",V="Motorola",z="Opera",G="Samsung",U="Sony",$="Xiaomi",H="Zebra",Y="Facebook",W=function(t){for(var e={},i=0;i<t.length;i++)e[t[i].toUpperCase()]=t[i];return e},K=function(t,e){return typeof t===f&&-1!==Q(e).indexOf(Q(t))},Q=function(t){return t.toLowerCase()},J=function(t,e){if(typeof t===f)return t=t.replace(/^\s\s*/,"").replace(/\s\s*$/,""),typeof e===h?t:t.substring(0,275)},X=function(t,e){for(var r,n,p,q,o,h,i=0;i<e.length&&!o;){var f=e[i],m=e[i+1];for(r=n=0;r<f.length&&!o;
vendor: 4,306 bytes, line 2
2)if(o=f[r++].exec(t))for(p=0;p<m.length;p++)h=o[++n],typeof(q=m[p])===d&&q.length>0?2===q.length?typeof q[1]==c?this[q[0]]=q[1].call(this,h):this[q[0]]=q[1]:3===q.length?typeof q[1]!==c||q[1].exec&&q[1].test?this[q[0]]=h?h.replace(q[1],q[2]):l:this[q[0]]=h?q[1].call(this,h,q[2]):l:4===q.length&&(this[q[0]]=h?q[3].call(this,h.replace(q[1],q[2])):l):this[q]=h||l;i+=2}},Z=function(t,map){for(var i in map)if(typeof map[i]===d&&map[i].length>0){for(var e=0;e<map[i].length;e++)if(K(map[i][e],t))return"?"===i?l:i}else if(K(map[i],t))return"?"===i?l:i;return t},tt={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},et={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[E,[y,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[E,[y,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[y,E],[/opios[\/ ]+([\w\.]+)/i],[E,[y,z+" Mini"]],[/\bopr\/([\w\.]+)/i],[E,[y,z]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[y,E],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[E,[y,"UC"+M]],[/\bqbcore\/([\w\.]+)/i],[E,[y,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[E,[y,"WeChat"]],[/konqueror\/([\w\.]+)/i],[E,[y,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[E,[y,"IE"]],[/yabrowser\/([\w\.]+)/i],[E,[y,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[y,/(.+)/,"$1 Secure "+M],E],[/\bfocus\/([\w\.]+)/i],[E,[y,R+" Focus"]],[/\bopt\/([\w\.]+)/i],[E,[y,z+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[E,[y,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[E,[y,"Dolphin"]],[/coast\/([\w\.]+)/i],[E,[y,z+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[E,[y,"MIUI "+M]],[/fxios\/([-\w\.]+)/i],[E,[y,R]],[/\bqihu|(qi?ho?o?|360)browser/i],[[y,"360 "+M]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[y,/(.+)/,"$1 "+M],E],[/(comodo_dragon)\/([\w\.]+)/i],[[y,/_/g," "],E],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[y,E],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[y],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[y,Y],E],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[y,E],[/\bgsa\/([\w\.]+) .*safari\//i],[E,[y,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[E,[y,N+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[y,N+" WebView"],E],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[E,[y,"Android "+M]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[y,E],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[E,[y,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[E,y],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[y,[E,Z,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[y,E],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[y,"Netscape"],E],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[E,[y,R+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[y,E]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[_,"amd64"]],[/(ia32(?=;))/i],[[_,Q]],[/((?:i[346]|x)86)[;\)]/i],[[_,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[_,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[_,"armhf"]],[/windows (ce|mobile); ppc;/i],[[_,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[_,/ower/,"",Q]],[/(sun4\w)[;\)]/i],[[_,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;
2|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[_,Q]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[m,[w,G],[v,x]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[m,[w,G],[v,S]],[/((ipod|iphone)\d+,\d+)/i],[m,[w,k],[v,S]],[/(ipad\d+,\d+)/i],[m,[w,k],[v,x]],[/\((ip(?:hone|od)[\w ]*);/i],[m,[w,k],[v,S]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[m,[w,k],[v,x]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[m,[w,j],[v,x]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[m,[w,j],[v,S]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[m,/_/g," "],[w,$],[v,S]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[m,/_/g," "],[w,$],[v,x]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[m,[w,"OPPO"],[v,S]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[m,[w,"Vivo"],[v,S]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[m,[w,"Realme"],[v,S]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[m,[w,V],[v,S]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[m,[w,V],[v,x]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[m,[w,L],[v,x]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[m,[w,L],[v,S]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[m,[w,"Lenovo"],[v,x]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[m,/_/g," "],[w,"Nokia"],[v,S]],[/(pixel c)\b/i],[m,[w,F],[v,x]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[m,[w,F],[v,S]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[m,[w,U],[v,S]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[m,"Xperia Tablet"],[w,U],[v,x]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[m,[w,"OnePlus"],[v,S]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[m,[w,A],[v,x]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[m,/(.+
vendor: 6,380 bytes, line 2
2)/g,"Fire Phone $1"],[w,A],[v,S]],[/(playbook);[-\w\),; ]+(rim)/i],[m,w,[v,x]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[m,[w,D],[v,S]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[m,[w,C],[v,x]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[m,[w,C],[v,S]],[/(nexus 9)/i],[m,[w,"HTC"],[v,x]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[w,[m,/_/g," "],[v,S]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[m,[w,"Acer"],[v,x]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[m,[w,"Meizu"],[v,S]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[m,[w,"Sharp"],[v,S]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[w,m,[v,S]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[w,m,[v,x]],[/(surface duo)/i],[m,[w,B],[v,x]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[m,[w,"Fairphone"],[v,S]],[/(u304aa)/i],[m,[w,"AT&T"],[v,S]],[/\bsie-(\w*)/i],[m,[w,"Siemens"],[v,S]],[/\b(rct\w+) b/i],[m,[w,"RCA"],[v,x]],[/\b(venue[\d ]{2,7}) b/i],[m,[w,"Dell"],[v,x]],[/\b(q(?:mv|ta)\w+) b/i],[m,[w,"Verizon"],[v,x]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[m,[w,"Barnes & Noble"],[v,x]],[/\b(tm\d{3}\w+) b/i],[m,[w,"NuVision"],[v,x]],[/\b(k88) b/i],[m,[w,"ZTE"],[v,x]],[/\b(nx\d{3}j) b/i],[m,[w,"ZTE"],[v,S]],[/\b(gen\d{3}) b.+49h/i],[m,[w,"Swiss"],[v,S]],[/\b(zur\d{3}) b/i],[m,[w,"Swiss"],[v,x]],[/\b((zeki)?tb.*\b) b/i],[m,[w,"Zeki"],[v,x]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[w,"Dragon Touch"],m,[v,x]],[/\b(ns-?\w{0,9}) b/i],[m,[w,"Insignia"],[v,x]],[/\b((nxa|next)-?\w{0,9}) b/i],[m,[w,"NextBook"],[v,x]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[w,"Voice"],m,[v,S]],[/\b(lvtel\-)?(v1[12]) b/i],[[w,"LvTel"],m,[v,S]],[/\b(ph-1) /i],[m,[w,"Essential"],[v,S]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[m,[w,"Envizen"],[v,x]],[/\b(trio[-\w\. ]+) b/i],[m,[w,"MachSpeed"],[v,x]],[/\btu_(1491) b/i],[m,[w,"Rotor"],[v,x]],[/(shield[\w ]+) b/i],[m,[w,"Nvidia"],[v,x]],[/(sprint) (\w+)/i],[w,m,[v,S]],[/(kin\.[onetw]{3})/i],[[m,/\./g," "],[w,B],[v,S]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[m,[w,H],[v,x]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[m,[w,H],[v,S]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[w,m,[v,T]],[/droid.+; (shield) bui/i],[m,[w,"Nvidia"],[v,T]],[/(playstation [345portablevi]+)/i],[m,[w,U],[v,T]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[m,[w,B],[v,T]],[/smart-tv.+(samsung)/i],[w,[v,I]],[/hbbtv.+maple;(\d+)/i],[[m,/^/,"SmartTV"],[w,G],[v,I]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[w,L],[v,I]],[/(apple) ?tv/i],[w,[m,k+" TV"],[v,I]],[/crkey/i],[[m,N+"cast"],[w,F],[v,I]],[/droid.+aft(\w)( bui|\))/i],[m,[w,A],[v,I]],[/\(dtv[\);].+(aquos)/i],[m,[w,"Sharp"],[v,I]],[/(bravia[\w- ]+) bui/i],[m,[w,U],[v,I]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[w,J],[m,J],[v,I]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[v,I]],[/((pebble))app/i],[w,m,[v,P]],[/droid.+; (glass) \d/i],[m,[w,F],[v,P]],[/droid.+; (wt63?0{2,3})\)/i],[m,[w,H],[v,P]],[/(quest( 2)?)/i],[m,[w,Y],[v,P]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[w,[v,O]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[m,[v,S]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[m,[v,x]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[v,x]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[v,S]],[/(android[-\w\. ]{0,9});.+buil/i],[m,[w,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[E,[y,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[E,[y,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[y,E],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[E,y]],os:[[/microsoft (windows) (vista|xp)/i],[y,E],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[y,[E,Z,tt]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[y,"Windows"],[E,Z,tt]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[E,/_/g,"."],[y,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[y,"Mac OS"],[E,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[E,y],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[y,E],[/\(bb(10);/i],[E,[y,D]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[E,[y,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[E,[y,R+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[E,[y,"webOS"]],[/crkey\/([\d\.]+)/i],[E,[y,N+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[y,"Chromium OS"],E],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[y,E],[/(sunos) ?([\w\.\d]*)/i],[[y,"Solaris"],E],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[y,E]]},nt=function(t,e){if(typeof t===d&&(e=t,t=l),!(this instanceof nt))return new nt(t,e).getResult();var r=t||(typeof o!==h&&o.navigator&&o.navigator.userAgent?o.navigator.userAgent:""),n=e?function(t,e){var r={};
2for(var i in t)e[i]&&e[i].length%2==0?r[i]=e[i].concat(t[i]):r[i]=t[i];return r}(et,e):et;return this.getBrowser=function(){var t,e={};return e[y]=l,e[E]=l,X.call(e,r,n.browser),e.major=typeof(t=e.version)===f?t.replace(/[^\d\.]/g,"").split(".")[0]:l,e},this.getCPU=function(){var t={};return t[_]=l,X.call(t,r,n.cpu),t},this.getDevice=function(){var t={};return t[w]=l,t[m]=l,t[v]=l,X.call(t,r,n.device),t},this.getEngine=function(){var t={};return t[y]=l,t[E]=l,X.call(t,r,n.engine),t},this.getOS=function(){var t={};return t[y]=l,t[E]=l,X.call(t,r,n.os),t},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(t){return r=typeof t===f&&t.length>275?J(t,275):t,this},this.setUA(r),this};nt.VERSION="0.7.31",nt.BROWSER=W([y,E,"major"]),nt.CPU=W([_]),nt.DEVICE=W([m,w,v,T,S,I,x,P,O]),nt.ENGINE=nt.OS=W([y,E]),typeof e!==h?(typeof t!==h&&t.exports&&(e=t.exports=nt),e.UAParser=nt):r(257)?(n=function(){return nt}.call(e,r,e,t))===l||(t.exports=n):typeof o!==h&&(o.UAParser=nt);var it=typeof o!==h&&(o.jQuery||o.Zepto);if(it&&!it.ua){var at=new nt;it.ua=at.getResult(),it.ua.get=function(){return at.getUA()},it.ua.set=function(t){at.setUA(t);var e=at.getResult();for(var r in e)it.ua[r]=e[r]}}}("object"==typeof window?window:this)},16:function(t,e,r){"use strict";r.d(e,"a",(function(){return o})),r.d(e,"b",(function(){return l}));var n={};function o(){return n}function l(t){n=t}},161:function(t,e,r){"use strict";r.d(e,"a",(function(){return y}));var n=r(1),o=r(52),l=r(106),c=r(0),h=r(3),d=r(16);function f(t,e){var r,n,f,m,y,v,w,E;Object(c.a)(1,arguments);var _=Object(d.a)(),T=Object(h.a)(null!==(r=null!==(n=null!==(f=null!==(m=null==e?void 0:e.firstWeekContainsDate)&&void 0!==m?m:null==e||null===(y=e.locale)||void 0===y||null===(v=y.options)||void 0===v?void 0:v.firstWeekContainsDate)&&void 0!==f?f:_.firstWeekContainsDate)&&void 0!==n?n:null===(w=_.locale)||void 0===w||null===(E=w.options)||void 0===E?void 0:E.firstWeekContainsDate)&&void 0!==r?r:1),S=Object(l.a)(t,e),x=new Date(0);x.setUTCFullYear(S,0,T),x.setUTCHours(0,0,0,0);var I=Object(o.a)(x,e);return I}var m=6048e5;function y(t,e){Object(c.a)(1,arguments);var r=Object(n.a)(t),l=Object(o.a)(r,e).getTime()-f(r,e).getTime();return Math.round(l/m)+1}},162:function(t,e,r){"use strict";r.d(e,"a",(function(){return f}));var n=r(1),o=r(57),l=r(156),c=r(0);function h(t){Object(c.a)(1,arguments);var e=Object(l.a)(t),r=new Date(0);r.setUTCFullYear(e,0,4),r.setUTCHours(0,0,0,0);var n=Object(o.a)(r);return n}var d=6048e5;function f(t){Object(c.a)(1,arguments);var e=Object(n.a)(t),r=Object(o.a)(e).getTime()-h(e).getTime();return Math.round(r/d)+1}},185:function(t,e,r){"use strict";t.exports=function(t){var e=t.uri,r=t.name,n=t.type;this.uri=e,this.name=r,this.type=n}},186:function(t,e,r){"use strict";var n=r(185);t.exports=function(t){return"undefined"!=typeof File&&t instanceof File||"undefined"!=typeof Blob&&t instanceof Blob||t instanceof n}},187:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resolveRequestDocument=void 0;var n=r(440);function o(t){var e,r=void 0,n=t.definitions.filter((function(t){return"OperationDefinition"===t.kind}));return 1===n.length&&(r=null===(e=n[0].name)||void 0===e?void 0:e.value),r}e.resolveRequestDocument=function(t){if("string"==typeof t){var e=void 0;try{e=o((0,n.parse)(t))}catch(t){}return{query:t,operationName:e}}var r=o(t);return{query:(0,n.print)(t),operationName:r}}},190:function(t,e,r){"use strict";r.d(e,"a",(function(){return n.l})),r.d(e,"b",(function(){return n.m})),r.d(e,"c",(function(){return n.o})),r.d(e,"d",(function(){return n.vb})),r.d(e,"e",(function(){return n.W})),r.d(e,"f",(function(){return n.Ab})),r.d(e,"g",(function(){return n.kb})),r.d(e,"h",(function(){return n.c}));var n=r(7);r(4),r(40),r(70),r(61)},192:function(t,e,r){"use strict";var n={name:"ClientOnly",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(t,e){var r=e.parent,n=e.slots,o=e.props,l=n(),c=l.default;void 0===c&&(c=[]);var h=l.placeholder;return r._isMounted?c:(r.$once("hook:mounted",(function(){r.$forceUpdate()})),o.placeholderTag&&(o.placeholder||h)?t(o.placeholderTag,{class:["client-only-placeholder"]},o.placeholder||h):c.length>0?c.map((function(){return t(!1)})):t(!1))}};t.exports=n},2:function(t,e,r){"use strict";r.d(e,"c",(function(){return o}
2)),r.d(e,"a",(function(){return l})),r.d(e,"f",(function(){return c})),r.d(e,"b",(function(){return h})),r.d(e,"d",(function(){return d})),r.d(e,"h",(function(){return f})),r.d(e,"e",(function(){return m})),r.d(e,"g",(function(){return y}));var n=function(t,b){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)Object.prototype.hasOwnProperty.call(b,p)&&(t[p]=b[p])},n(t,b)};function o(t,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function e(){this.constructor=t}n(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}var l=function(){return l=Object.assign||function(t){for(var s,i=1,e=arguments.length;i<e;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t},l.apply(this,arguments)};function c(s,t){var e={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&t.indexOf(p)<0&&(e[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i<p.length;i++)t.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(e[p[i]]=s[p[i]])}return e}function h(t,e,r,n){return new(r||(r=Promise))((function(o,l){function c(t){try{d(n.next(t))}catch(t){l(t)}}function h(t){try{d(n.throw(t))}catch(t){l(t)}}function d(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(c,h)}d((n=n.apply(t,e||[])).next())}))}function d(t,body){var e,r,n,g,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return g={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function l(l){return function(c){return function(l){if(e)throw new TypeError("Generator is already executing.");for(;g&&(g=0,l[0]&&(o=0)),o;)try{if(e=1,r&&(n=2&l[0]?r.return:l[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,l[1])).done)return n;switch(r=0,n&&(l=[2&l[0],n.value]),l[0]){case 0:case 1:n=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!(n=o.trys,(n=n.length>0&&n[n.length-1])||6!==l[0]&&2!==l[0])){o=0;continue}if(3===l[0]&&(!n||l[1]>n[0]&&l[1]<n[3])){o.label=l[1];break}if(6===l[0]&&o.label<n[1]){o.label=n[1],n=l;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(l);break}n[2]&&o.ops.pop(),o.trys.pop();continue}l=body.call(t,o)}catch(t){l=[6,t],r=0}finally{e=n=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,c])}}}Object.create;function f(t){var s="function"==typeof Symbol&&Symbol.iterator,e=s&&t[s],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),l=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)l.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return l}function y(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}Object.create},26:function(t,e,r){"use strict";function n(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}r.d(e,"a",(function(){return n}))},269:function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var n=r(12),o=r(0),l=r(3);function c(t,e){var r;Object(o.a)(1,arguments);var n=Object(l.a)(null!==(r=null==e?void 0:e.additionalDigits)&&void 0!==r?r:2);if(2!==n&&1!==n&&0!==n)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof t&&"[object String]"!==Object.prototype.toString.call(t))return new Date(NaN);var c,h=y(t);if(h.date){var d=v(h.date,n);c=w(d.restDateString,d.year)}if(!c||isNaN(c.getTime()))return new Date(NaN);var f,m=c.getTime(),time=0;
2if(h.time&&(time=_(h.time),isNaN(time)))return new Date(NaN);if(!h.timezone){var E=new Date(m+time),T=new Date(0);return T.setFullYear(E.getUTCFullYear(),E.getUTCMonth(),E.getUTCDate()),T.setHours(E.getUTCHours(),E.getUTCMinutes(),E.getUTCSeconds(),E.getUTCMilliseconds()),T}return f=S(h.timezone),isNaN(f)?new Date(NaN):new Date(m+time+f)}var h={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},d=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,f=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,m=/^([+-])(\d{2})(?::?(\d{2}))?$/;function y(t){var e,r={},n=t.split(h.dateTimeDelimiter);if(n.length>2)return r;if(/:/.test(n[0])?e=n[0]:(r.date=n[0],e=n[1],h.timeZoneDelimiter.test(r.date)&&(r.date=t.split(h.timeZoneDelimiter)[0],e=t.substr(r.date.length,t.length))),e){var o=h.timezone.exec(e);o?(r.time=e.replace(o[1],""),r.timezone=o[1]):r.time=e}return r}function v(t,e){var r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),n=t.match(r);if(!n)return{year:NaN,restDateString:""};var o=n[1]?parseInt(n[1]):null,l=n[2]?parseInt(n[2]):null;return{year:null===l?o:100*l,restDateString:t.slice((n[1]||n[2]).length)}}function w(t,e){if(null===e)return new Date(NaN);var r=t.match(d);if(!r)return new Date(NaN);var n=!!r[4],o=E(r[1]),l=E(r[2])-1,c=E(r[3]),h=E(r[4]),f=E(r[5])-1;if(n)return function(t,e,r){return e>=1&&e<=53&&r>=0&&r<=6}(0,h,f)?function(t,e,r){var n=new Date(0);n.setUTCFullYear(t,0,4);var o=n.getUTCDay()||7,l=7*(e-1)+r+1-o;return n.setUTCDate(n.getUTCDate()+l),n}(e,h,f):new Date(NaN);var m=new Date(0);return function(t,e,r){return e>=0&&e<=11&&r>=1&&r<=(x[e]||(I(t)?29:28))}(e,l,c)&&function(t,e){return e>=1&&e<=(I(t)?366:365)}(e,o)?(m.setUTCFullYear(e,l,Math.max(o,c)),m):new Date(NaN)}function E(t){return t?parseInt(t):1}function _(t){var e=t.match(f);if(!e)return NaN;var r=T(e[1]),o=T(e[2]),l=T(e[3]);return function(t,e,r){if(24===t)return 0===e&&0===r;return r>=0&&r<60&&e>=0&&e<60&&t>=0&&t<25}(r,o,l)?r*n.d+o*n.e+1e3*l:NaN}function T(t){return t&&parseFloat(t.replace(",","."))||0}function S(t){if("Z"===t)return 0;var e=t.match(m);if(!e)return 0;var r="+"===e[1]?-1:1,o=parseInt(e[2]),l=e[3]&&parseInt(e[3])||0;return function(t,e){return e>=0&&e<=59}(0,l)?r*(o*n.d+l*n.e):NaN}var x=[31,null,31,30,31,30,31,31,30,31,30,31];function I(t){return t%400==0||t%4==0&&t%100!=0}},270:function(t,e,r){"use strict";var n=r(186);t.exports=function t(e,path,r){var o;void 0===path&&(path=""),void 0===r&&(r=n);var l=new Map;function c(t,e){var r=l.get(e);r?r.push.apply(r,t):l.set(e,t)}if(r(e))o=null,c([path],e);else{var h=path?path+".":"";if("undefined"!=typeof FileList&&e instanceof FileList)o=Array.prototype.map.call(e,(function(t,i){return c([""+h+i],t),null}));else if(Array.isArray(e))o=e.map((function(e,i){var n=t(e,""+h+i,r);return n.files.forEach(c),n.clone}));else if(e&&e.constructor===Object)for(var i in o={},e){var d=t(e[i],""+h+i,r);d.files.forEach(c),o[i]=d.clone}else o=e}return{clone:o,files:l}}},271:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultJsonSerializer=void 0,e.defaultJsonSerializer={parse:JSON.parse,stringify:JSON.stringify}},272:function(t,e,r){"use strict";
2var n,o=this&&this.__extends||(n=function(t,b){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)Object.prototype.hasOwnProperty.call(b,p)&&(t[p]=b[p])},n(t,b)},function(t,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function e(){this.constructor=t}n(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0}),e.ClientError=void 0;var l=function(t){function e(r,n){var o=this,l="".concat(e.extractMessage(r),": ").concat(JSON.stringify({response:r,request:n}));return o=t.call(this,l)||this,Object.setPrototypeOf(o,e.prototype),o.response=r,o.request=n,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(o,e),o}return o(e,t),e.extractMessage=function(t){try{return t.errors[0].message}catch(e){return"GraphQL Error (Code: ".concat(t.status,")")}},e}(Error);e.ClientError=l},273:function(t,e,r){"use strict";e.a=function(t,e){return e=e||{},new Promise((function(r,n){var s=new XMLHttpRequest,o=[],u=[],i={},a=function(){return{ok:2==(s.status/100|0),statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(s.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:a,headers:{keys:function(){return o},entries:function(){return u},get:function(t){return i[t.toLowerCase()]},has:function(t){return t.toLowerCase()in i}}}};for(var l in s.open(e.method||"get",t,!0),s.onload=function(){s.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(t,e,r){o.push(e=e.toLowerCase()),u.push([e,r]),i[e]=i[e]?i[e]+","+r:r})),r(a())},s.onerror=n,s.withCredentials="include"==e.credentials,e.headers)s.setRequestHeader(l,e.headers[l]);s.send(e.body||null)}))}},276:function(t,e,r){"use strict";var n=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===o}(t)}(t)};var o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function l(t,e){return!1!==e.clone&&e.isMergeableObject(t)?m((r=t,Array.isArray(r)?[]:{}),t,e):t;var r}function c(t,source,e){return t.concat(source).map((function(element){return l(element,e)}))}function h(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(symbol){return t.propertyIsEnumerable(symbol)})):[]}(t))}function d(object,t){try{return t in object}catch(t){return!1}}function f(t,source,e){var r={};return e.isMergeableObject(t)&&h(t).forEach((function(n){r[n]=l(t[n],e)})),h(source).forEach((function(n){(function(t,e){return d(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,n)||(d(t,n)&&e.isMergeableObject(source[n])?r[n]=function(t,e){if(!e.customMerge)return m;var r=e.customMerge(t);return"function"==typeof r?r:m}(n,e)(t[n],source[n],e):r[n]=l(source[n],e))})),r}function m(t,source,e){(e=e||{}).arrayMerge=e.arrayMerge||c,e.isMergeableObject=e.isMergeableObject||n,e.cloneUnlessOtherwiseSpecified=l;var r=Array.isArray(source);return r===Array.isArray(t)?r?e.arrayMerge(t,source,e):f(t,source,e):l(source,e)}m.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,r){return m(t,r,e)}),{})};var y=m;t.exports=y},277:function(module,exports,__webpack_require__){var factory;"undefined"!=typeof navigator&&(factory=function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t},getLocationHref=function(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,e){var i,r,n=t.length;for(i=0;i<n;i+=1)for(var o in r=t[i].prototype)Object.prototype.hasOwnProperty.call(r,o)&&(e.prototype[o]=r[o])}function getDescriptor(object,t){return Object.getOwnPropertyDescriptor(object,t)}function createProxyFunction(t){function e(){}return e.prototype=t,e}var audioControllerFactory=function(){function t(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(audio){this.audios.push(audio)},pause:function(){var i,t=this.audios.length;for(i=0;i<t;i+=1)this.audios[i].pause()},resume:function(){var i,t=this.audios.length;for(i=0;i<t;i+=1)this.audios[i].resume()},setRate:function(t){var i,e=this.audios.length;for(i=0;i<e;i+=1)this.audios[i].setRate(t)},createAudio:function(t){return this.audioFactory?this.audioFactory(t):window.Howl?new window.Howl({src:[t]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(t){this.audioFactory=t},setVolume:function(t){this._volume=t,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var i,t=this.audios.length;for(i=0;i<t;i+=1)this.audios[i].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),createTypedArray=function(){function t(t,e){var r,i=0,n=[];switch(t){case"int16":case"uint8c":r=1;break;default:r=1.1}for(i=0;i<e;i+=1)n.push(r);return n}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(e,r){return"float32"===e?new Float32Array(r):"int16"===e?new Int16Array(r):"uint8c"===e?new Uint8ClampedArray(r):t(e,r)}:t}();function createSizedArray(t){return Array.apply(null,{length:t})}function _typeof$6(t){return _typeof$6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$6(t)}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 i,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"],e=t.length;for(i=0;i<e;i+=1)BMMath[t[i]]=Math[t[i]]}(),BMMath.random=Math.random,BMMath.abs=function(t){if("object"===_typeof$6(t)&&t.length){var i,e=createSizedArray(t.length),r=t.length;for(i=0;i<r;i+=1)e[i]=Math.abs(t[i]);return e}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(t){_shouldRoundValues=!!t}function bmRnd(t){return _shouldRoundValues?Math.round(t):t}function styleDiv(element){element.style.position="absolute",element.style.top=0,element.style.left=0,element.style.display="block",element.style.transformOrigin="0 0",element.style.webkitTransformOrigin="0 0",element.style.backfaceVisibility="visible",element.style.webkitBackfaceVisibility="visible",element.style.transformStyle="preserve-3d",element.style.webkitTransformStyle="preserve-3d",element.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(t,e,r,n){this.type=t,this.currentTime=e,this.totalTime=r,this.direction=n<0?-1:1}function BMCompleteEvent(t,e){this.type=t,this.direction=e<0?-1:1}function BMCompleteLoopEvent(t,e,r,n){this.type=t,this.currentLoop=r,this.totalLoops=e,this.direction=n<0?-1:1}function BMSegmentStartEvent(t,e,r){this.type=t,this.firstFrame=e,this.totalFrames=r}function BMDestroyEvent(t,e){this.type=t,this.target=e}function BMRenderFrameErrorEvent(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function BMConfigErrorEvent(t){this.type="configError",this.nativeError=t}function BMAnimationConfigErrorEvent(t,e){this.type=t,this.nativeError=e}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(t,s,e){var r,g,b,i,n,p,q,o;switch(p=e*(1-s),q=e*(1-(n=6*t-(i=Math.floor(6*t)))*s),o=e*(1-(1-n)*s),i%6){case 0:r=e,g=o,b=p;break;case 1:r=q,g=e,b=p;break;case 2:r=p,g=e,b=o;break;case 3:r=p,g=q,b=e;break;case 4:r=o,g=p,b=e;break;case 5:r=e,g=p,b=q}return[r,g,b]}function RGBtoHSV(t,g,b){var e,r=Math.max(t,g,b),n=Math.min(t,g,b),o=r-n,s=0===r?0:o/r,l=r/255;switch(r){case n:e=0;break;case t:e=g-b+o*(g<b?6:0),e/=6*o;break;case g:e=b-t+2*o,e/=6*o;break;case b:e=t-g+4*o,e/=6*o}return[e,s,l]}function addSaturationToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[1]+=e,r[1]>1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[2]+=e,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[0]+=e/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=function(){var i,t,e=[];for(i=0;i<256;i+=1)t=i.toString(16),e[i]=1===t.length?"0"+t:t;return function(t,g,b){return t<0&&(t=0),g<0&&(g=0),b<0&&(b=0),"#"+e[t]+e[g]+e[b]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t},getIdPrefix=function(){return idPrefix$1};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){return _typeof$5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$5(t)}var dataManager=function(){var t,e,r=1,n=[],o={onmessage:function(){},postMessage:function(path){t({data:path}
vendor: 27,557 bytes, line 2
2)}},l={postMessage:function(data){o.onmessage({data:data})}};function c(){e||(e=function(e){if(window.Worker&&window.Blob&&getWebWorker()){var r=new Blob(["var _workerSelf = self; self.onmessage = ",e.toString()],{type:"text/javascript"}),n=URL.createObjectURL(r);return new Worker(n)}return t=e,o}((function(t){if(l.dataManager||(l.dataManager=function(){function t(o,l){var c,i,h,d,f,m,v=o.length;for(i=0;i<v;i+=1)if("ks"in(c=o[i])&&!c.completed){if(c.completed=!0,c.hasMask){var w=c.masksProperties;for(d=w.length,h=0;h<d;h+=1)if(w[h].pt.k.i)n(w[h].pt.k);else for(m=w[h].pt.k.length,f=0;f<m;f+=1)w[h].pt.k[f].s&&n(w[h].pt.k[f].s[0]),w[h].pt.k[f].e&&n(w[h].pt.k[f].e[0])}0===c.ty?(c.layers=e(c.refId,l),t(c.layers,l)):4===c.ty?r(c.shapes):5===c.ty&&y(c)}}function e(t,e){var r=function(t,e){for(var i=0,r=e.length;i<r;){if(e[i].id===t)return e[i];i+=1}return null}(t,e);return r?r.layers.__used?JSON.parse(JSON.stringify(r.layers)):(r.layers.__used=!0,r.layers):null}function r(t){var i,e,o;for(i=t.length-1;i>=0;i-=1)if("sh"===t[i].ty)if(t[i].ks.k.i)n(t[i].ks.k);else for(o=t[i].ks.k.length,e=0;e<o;e+=1)t[i].ks.k[e].s&&n(t[i].ks.k[e].s[0]),t[i].ks.k[e].e&&n(t[i].ks.k[e].e[0]);else"gr"===t[i].ty&&r(t[i].it)}function n(path){var i,t=path.i.length;for(i=0;i<t;i+=1)path.i[i][0]+=path.v[i][0],path.i[i][1]+=path.v[i][1],path.o[i][0]+=path.v[i][0],path.o[i][1]+=path.v[i][1]}function o(t,e){var r=e?e.split("."):[100,100,100];return t[0]>r[0]||!(r[0]>t[0])&&(t[1]>r[1]||!(r[1]>t[1])&&(t[2]>r[2]||!(r[2]>t[2])&&null))}var l,c=function(){var t=[4,4,14];function e(t){var i,e,r,n=t.length;for(i=0;i<n;i+=1)5===t[i].ty&&(r=void 0,r=(e=t[i]).t.d,e.t.d={k:[{s:r,t:0}]})}return function(r){if(o(t,r.v)&&(e(r.layers),r.assets)){var i,n=r.assets.length;for(i=0;i<n;i+=1)r.assets[i].layers&&e(r.assets[i].layers)}}}(),h=(l=[4,7,99],function(t){if(t.chars&&!o(l,t.v)){var i,e=t.chars.length;for(i=0;i<e;i+=1){var n=t.chars[i];n.data&&n.data.shapes&&(r(n.data.shapes),n.data.ip=0,n.data.op=99999,n.data.st=0,n.data.sr=1,n.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[i].t||(n.data.shapes.push({ty:"no"}),n.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"})))}}}),d=function(){var t=[5,7,15];function e(t){var i,e,r=t.length;for(i=0;i<r;i+=1)5===t[i].ty&&(e=void 0,"number"==typeof(e=t[i].t.p).a&&(e.a={a:0,k:e.a}),"number"==typeof e.p&&(e.p={a:0,k:e.p}),"number"==typeof e.r&&(e.r={a:0,k:e.r}))}return function(r){if(o(t,r.v)&&(e(r.layers),r.assets)){var i,n=r.assets.length;for(i=0;i<n;i+=1)r.assets[i].layers&&e(r.assets[i].layers)}}}(),f=function(){var t=[4,1,9];function e(t){var i,r,n,o=t.length;for(i=0;i<o;i+=1)if("gr"===t[i].ty)e(t[i].it);else if("fl"===t[i].ty||"st"===t[i].ty)if(t[i].c.k&&t[i].c.k[0].i)for(n=t[i].c.k.length,r=0;r<n;r+=1)t[i].c.k[r].s&&(t[i].c.k[r].s[0]/=255,t[i].c.k[r].s[1]/=255,t[i].c.k[r].s[2]/=255,t[i].c.k[r].s[3]/=255),t[i].c.k[r].e&&(t[i].c.k[r].e[0]/=255,t[i].c.k[r].e[1]/=255,t[i].c.k[r].e[2]/=255,t[i].c.k[r].e[3]/=255);else t[i].c.k[0]/=255,t[i].c.k[1]/=255,t[i].c.k[2]/=255,t[i].c.k[3]/=255}function r(t){var i,r=t.length;for(i=0;i<r;i+=1)4===t[i].ty&&e(t[i].shapes)}return function(e){if(o(t,e.v)&&(r(e.layers),e.assets)){var i,n=e.assets.length;for(i=0;i<n;i+=1)e.assets[i].layers&&r(e.assets[i].layers)}}}(),m=function(){var t=[4,4,18];function e(t){var i,r,n;for(i=t.length-1;i>=0;i-=1)if("sh"===t[i].ty)if(t[i].ks.k.i)t[i].ks.k.c=t[i].closed;else for(n=t[i].ks.k.length,r=0;r<n;r+=1)t[i].ks.k[r].s&&(t[i].ks.k[r].s[0].c=t[i].closed),t[i].ks.k[r].e&&(t[i].ks.k[r].e[0].c=t[i].closed);else"gr"===t[i].ty&&e(t[i].it)}function r(t){var r,i,n,o,l,c,h=t.length;for(i=0;i<h;i+=1){if((r=t[i]).hasMask){var d=r.masksProperties;for(o=d.length,n=0;n<o;n+=1)if(d[n].pt.k.i)d[n].pt.k.c=d[n].cl;else for(c=d[n].pt.k.length,l=0;l<c;l+=1)d[n].pt.k[l].s&&(d[n].pt.k[l].s[0].c=d[n].cl),d[n].pt.k[l].e&&(d[n].pt.k[l].e[0].c=d[n].cl)}4===r.ty&&e(r.shapes)}}return function(e){if(o(t,e.v)&&(r(e.layers),e.assets)){var i,n=e.assets.length;for(i=0;i<n;i+=1)e.assets[i].layers&&r(e.assets[i].layers)}}}();function y(data){0===data.t.a.length&&data.t.p}var v={completeData:function(r){r.__complete||(f(r),c(r),h(r),d(r),m(r),t(r.layers,r.assets),function(r,n){if(r){var i=0,o=r.length;for(i=0;i<o;i+=1)1===r[i].t&&(r[i].data.layers=e(r[i].data.refId,n),t(r[i].data.layers,n))}}(r.chars,r.assets),r.__complete=!0)}};return v.checkColors=f,v.checkChars=h,v.checkPathProperties=d,v.checkShapes=m,v.completeLayers=t,v}()),l.assetLoader||(l.assetLoader=function(){function t(t){var e=t.getResponseHeader("content-type");return e&&"json"===t.responseType&&-1!==e.indexOf("json")||t.response&&"object"===_typeof$5(t.response)?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):null}return{load:function(path,e,r,n){var o,l=new XMLHttpRequest;try{l.responseType="json"}catch(t){}l.onreadystatechange=function(){if(4===l.readyState)if(200===l.status)o=t(l),r(o);else try{o=t(l),r(o)}catch(t){n&&n(t)}};try{l.open(["G","E","T"].join(""),path,!0)}catch(t){l.open(["G","E","T"].join(""),e+"/"+path,!0)}l.send()}}}()),"loadAnimation"===t.data.type)l.assetLoader.load(t.data.path,t.data.fullPath,(function(data){l.dataManager.completeData(data),l.postMessage({id:t.data.id,payload:data,status:"success"})}),(function(){l.postMessage({id:t.data.id,status:"error"})}));else if("complete"===t.data.type){var e=t.data.animation;l.dataManager.completeData(e),l.postMessage({id:t.data.id,payload:e,status:"success"})}else"loadData"===t.data.type&&l.assetLoader.load(t.data.path,t.data.fullPath,(function(data){l.postMessage({id:t.data.id,payload:data,status:"success"})}),(function(){l.postMessage({id:t.data.id,status:"error"})}))})),e.onmessage=function(t){var data=t.data,e=data.id,r=n[e];n[e]=null,"success"===data.status?r.onComplete(data.payload):r.onError&&r.onError()})}function h(t,e){var o="processId_"+(r+=1);return n[o]={onComplete:t,onError:e},o}return{loadAnimation:function(path,t,r){c();var n=h(t,r);e.postMessage({type:"loadAnimation",path:path,fullPath:window.location.origin+window.location.pathname,id:n})},loadData:function(path,t,r){c();var n=h(t,r);e.postMessage({type:"loadData",path:path,fullPath:window.location.origin+window.location.pathname,id:n})},completeAnimation:function(t,r,n){c();var o=h(r,n);e.postMessage({type:"complete",animation:t,id:o})}}}(),ImagePreloader=function(){var t=function(){var canvas=createTag("canvas");canvas.width=1,canvas.height=1;var t=canvas.getContext("2d");return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),canvas}();function e(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(t,e,r){var path="";if(t.e)path=t.p;else if(e){var n=t.p;-1!==n.indexOf("images/")&&(n=n.split("/")[1]),path=e+n}else path=r,path+=t.u?t.u:"",path+=t.p;return path}function o(img){var t=0,e=setInterval(function(){(img.getBBox().width||t>500)&&(this._imageLoaded(),clearInterval(e)),t+=1}.bind(this),50)}function l(data){var t={assetData:data},path=n(data,this.assetsPath,this.path);return dataManager.loadData(path,function(e){t.img=e,this._footageLoaded()}.bind(this),function(){t.img={},this._footageLoaded()}.bind(this)),t}function c(){this._imageLoaded=e.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=o.bind(this),this.createFootageData=l.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return c.prototype={loadAssets:function(t,e){var i;this.imagesLoadedCb=e;var r=t.length;for(i=0;i<r;i+=1)t[i].layers||(t[i].t&&"seq"!==t[i].t?3===t[i].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(t[i]))):(this.totalImages+=1,this.images.push(this._createImageData(t[i]))))},setAssetsPath:function(path){this.assetsPath=path||""},setPath:function(path){this.path=path||""},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(t){for(var i=0,e=this.images.length;i<e;){if(this.images[i].assetData===t)return this.images[i].img;i+=1}return null},createImgData:function(e){var path=n(e,this.assetsPath,this.path),img=createTag("img");img.crossOrigin="anonymous",img.addEventListener("load",this._imageLoaded,!1),img.addEventListener("error",function(){r.img=t,this._imageLoaded()}.bind(this),!1),img.src=path;var r={img:img,assetData:e};return r},createImageData:function(e){var path=n(e,this.assetsPath,this.path),img=createNS("image");isSafari?this.testImageLoaded(img):img.addEventListener("load",this._imageLoaded,!1),img.addEventListener("error",function(){r.img=t,this._imageLoaded()}.bind(this),!1),img.setAttributeNS("http://www.w3.org/1999/xlink","href",path),this._elementHelper.append?this._elementHelper.append(img):this._elementHelper.appendChild(img);var r={img:img,assetData:e};return r},imageLoaded:e,footageLoaded:r,setCacheType:function(t,e){"svg"===t?(this._elementHelper=e,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},c}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var r=this._cbs[t],i=0;i<r.length;i+=1)r[i](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var i=0,r=this._cbs[t].length;i<r;)this._cbs[t][i]===e&&(this._cbs[t].splice(i,1),i-=1,r-=1),i+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var markerParser=function(){function t(t){for(var line,e=t.split("\r\n"),r={},n=0,i=0;i<e.length;i+=1)2===(line=e[i].split(":")).length&&(r[line[0]]=line[1].trim(),n+=1);if(0===n)throw new Error;return r}return function(e){for(var r=[],i=0;i<e.length;i+=1){var n=e[i],o={time:n.tm,duration:n.dr};try{o.payload=JSON.parse(e[i].cm)}catch(r){try{o.payload=t(e[i].cm)}catch(t){o.payload={name:e[i].cm}}}r.push(o)}return r}}(),ProjectInterface=function(){function t(t){this.compositions.push(t)}return function(){function e(t){for(var i=0,e=this.compositions.length;i<e;){if(this.compositions[i].data&&this.compositions[i].data.nm===t)return this.compositions[i].prepareFrame&&this.compositions[i].data.xt&&this.compositions[i].prepareFrame(this.currentFrame),this.compositions[i].compInterface;i+=1}return null}return e.compositions=[],e.currentFrame=0,e.registerComposition=t,e}}(),renderers={},registerRenderer=function(t,e){renderers[t]=e};function getRenderer(t){return renderers[t]}function _typeof$4(t){return _typeof$4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$4(t)}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)};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e="svg";t.animType?e=t.animType:t.renderer&&(e=t.renderer);var r=getRenderer(e);this.renderer=new r(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,""===t.loop||null===t.loop||void 0===t.loop||!0===t.loop?this.loop=!0:!1===t.loop?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name?t.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(t,"autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(-1!==t.path.lastIndexOf("\\")?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(t.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(data){dataManager.completeAnimation(data,this.configAnimation)},AnimationItem.prototype.setData=function(t,e){e&&"object"!==_typeof$4(e)&&(e=JSON.parse(e));var r={wrapper:t,animationData:e},n=t.attributes;r.path=n.getNamedItem("data-animation-path")?n.getNamedItem("data-animation-path").value:n.getNamedItem("data-bm-path")?n.getNamedItem("data-bm-path").value:n.getNamedItem("bm-path")?n.getNamedItem("bm-path").value:"",r.animType=n.getNamedItem("data-anim-type")?n.getNamedItem("data-anim-type").value:n.getNamedItem("data-bm-type")?n.getNamedItem("data-bm-type").value:n.getNamedItem("bm-type")?n.getNamedItem("bm-type").value:n.getNamedItem("data-bm-renderer")?n.getNamedItem("data-bm-renderer").value:n.getNamedItem("bm-renderer")?n.getNamedItem("bm-renderer").value:"canvas";var o=n.getNamedItem("data-anim-loop")?n.getNamedItem("data-anim-loop").value:n.getNamedItem("data-bm-loop")?n.getNamedItem("data-bm-loop").value:n.getNamedItem("bm-loop")?n.getNamedItem("bm-loop").value:"";"false"===o?r.loop=!1:"true"===o?r.loop=!0:""!==o&&(r.loop=parseInt(o,10));var l=n.getNamedItem("data-anim-autoplay")?n.getNamedItem("data-anim-autoplay").value:n.getNamedItem("data-bm-autoplay")?n.getNamedItem("data-bm-autoplay").value:!n.getNamedItem("bm-autoplay")||n.getNamedItem("bm-autoplay").value;r.autoplay="false"!==l,r.name=n.getNamedItem("data-name")?n.getNamedItem("data-name").value:n.getNamedItem("data-bm-name")?n.getNamedItem("data-bm-name").value:n.getNamedItem("bm-name")?n.getNamedItem("bm-name").value:"","false"===(n.getNamedItem("data-anim-prerender")?n.getNamedItem("data-anim-prerender").value:n.getNamedItem("data-bm-prerender")?n.getNamedItem("data-bm-prerender").value:n.getNamedItem("bm-prerender")?n.getNamedItem("bm-prerender").value:"")&&(r.prerender=!1),this.setParams(r)},AnimationItem.prototype.includeLayers=function(data){data.op>this.animationData.op&&(this.animationData.op=data.op,this.totalFrames=Math.floor(data.op-this.animationData.ip));var i,t,e=this.animationData.layers,r=e.length,n=data.layers,o=n.length;for(t=0;t<o;t+=1)for(i=0;i<r;){if(e[i].id===n[t].id){e[i]=n[t];break}i+=1}if((data.chars||data.fonts)&&(this.renderer.globalData.fontManager.addChars(data.chars),this.renderer.globalData.fontManager.addFonts(data.fonts,this.renderer.globalData.defs)),data.assets)for(r=data.assets.length,i=0;i<r;i+=1)this.animationData.assets.push(data.assets[i]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(data){this.animationData=data;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var e=t.shift();this.timeCompleted=e.time*this.frameRate;var r=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(r,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(t){if(this.renderer)try{this.animationData=t,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(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=markerParser(t.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 t=getExpressionsPlugin();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(t,e){var r="number"==typeof t?t:void 0,n="number"==typeof e?e:void 0;this.renderer.updateContainerSize(r,n)},AnimationItem.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},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.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!==t||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!==t||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(t){for(var marker,i=0;i<this.markers.length;i+=1)if((marker=this.markers[i]).payload&&marker.payload.name===t)return marker;return null},AnimationItem.prototype.goToAndStop=function(t,e,r){if(!r||this.name===r){var n=Number(t);if(isNaN(n)){var marker=this.getMarkerData(t);marker&&this.goToAndStop(marker.time,!0)}else e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(t,e,r){if(!r||this.name===r){var n=Number(t);if(isNaN(n)){var marker=this.getMarkerData(t);marker&&(marker.duration?this.playSegments([marker.time,marker.time+marker.duration],!0):this.goToAndStop(marker.time,!0))}else this.goToAndStop(n,e,r);this.play()}},AnimationItem.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,r=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(r=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(r=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),r&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,e){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?r=t:this.currentRawFrame+this.firstFrame>e&&(r=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==r&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===_typeof$4(t[0])){var i,r=t.length;for(i=0;i<r;i+=1)this.segments.push(t[i])}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},AnimationItem.prototype.destroy=function(t){t&&this.name!==t||!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.renderer=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},AnimationItem.prototype.unmute=function(t){t&&this.name!==t||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(t){var path="";if(t.e)path=t.p;else if(this.assetsPath){var e=t.p;-1!==e.indexOf("images/")&&(e=e.split("/")[1]),path=this.assetsPath+e}else path=this.path,path+=t.u?t.u:"",path+=t.p;return path},AnimationItem.prototype.getAssetData=function(t){for(var i=0,e=this.assets.length;i<e;){if(t===this.assets[i].id)return this.assets[i];i+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(path,t,e){try{this.renderer.getElementByPath(path).updateDocumentData(t,e)}catch(t){}},AnimationItem.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new BMEnterFrameEvent(t,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(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new BMCompleteEvent(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new BMDestroyEvent(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},AnimationItem.prototype.triggerRenderFrameError=function(t){var e=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)},AnimationItem.prototype.triggerConfigError=function(t){var e=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)};var animationManager=function(){var t={},e=[],r=0,n=0,o=0,l=!0,c=!1;function h(t){for(var i=0,r=t.target;i<n;)e[i].animation===r&&(e.splice(i,1),i-=1,n-=1,r.isPaused||m()),i+=1}function d(element,t){if(!element)return null;for(var i=0;i<n;){if(e[i].elem===element&&null!==e[i].elem)return e[i].animation;i+=1}var r=new AnimationItem;return y(r,element),r.setData(element,t),r}function f(){o+=1,E()}function m(){o-=1}function y(t,element){t.addEventListener("destroy",h),t.addEventListener("_active",f),t.addEventListener("_idle",m),e.push({elem:element,animation:t}),n+=1}function v(t){var i,h=t-r;for(i=0;i<n;i+=1)e[i].animation.advanceTime(h);
vendor: 4,863 bytes, line 2
2r=t,o&&!c?window.requestAnimationFrame(v):l=!0}function w(t){r=t,window.requestAnimationFrame(v)}function E(){!c&&o&&l&&(window.requestAnimationFrame(w),l=!1)}return t.registerAnimation=d,t.loadAnimation=function(t){var e=new AnimationItem;return y(e,null),e.setParams(t),e},t.setSpeed=function(t,r){var i;for(i=0;i<n;i+=1)e[i].animation.setSpeed(t,r)},t.setDirection=function(t,r){var i;for(i=0;i<n;i+=1)e[i].animation.setDirection(t,r)},t.play=function(t){var i;for(i=0;i<n;i+=1)e[i].animation.play(t)},t.pause=function(t){var i;for(i=0;i<n;i+=1)e[i].animation.pause(t)},t.stop=function(t){var i;for(i=0;i<n;i+=1)e[i].animation.stop(t)},t.togglePause=function(t){var i;for(i=0;i<n;i+=1)e[i].animation.togglePause(t)},t.searchAnimations=function(t,e,r){var i,n=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),o=n.length;for(i=0;i<o;i+=1)r&&n[i].setAttribute("data-bm-type",r),d(n[i],t);if(e&&0===o){r||(r="svg");var body=document.getElementsByTagName("body")[0];body.innerText="";var div=createTag("div");div.style.width="100%",div.style.height="100%",div.setAttribute("data-bm-type",r),body.appendChild(div),d(div,t)}},t.resize=function(){var i;for(i=0;i<n;i+=1)e[i].animation.resize()},t.goToAndStop=function(t,r,o){var i;for(i=0;i<n;i+=1)e[i].animation.goToAndStop(t,r,o)},t.destroy=function(t){var i;for(i=n-1;i>=0;i-=1)e[i].animation.destroy(t)},t.freeze=function(){c=!0},t.unfreeze=function(){c=!1,E()},t.setVolume=function(t,r){var i;for(i=0;i<n;i+=1)e[i].animation.setVolume(t,r)},t.mute=function(t){var i;for(i=0;i<n;i+=1)e[i].animation.mute(t)},t.unmute=function(t){var i;for(i=0;i<n;i+=1)e[i].animation.unmute(t)},t.getRegisteredAnimations=function(){var i,t=e.length,r=[];for(i=0;i<t;i+=1)r.push(e[i].animation);return r},t}(),BezierFactory=function(){var t={getBezierEasing:function(a,b,t,r,n){var o=n||("bez_"+a+"_"+b+"_"+t+"_"+r).replace(/\./g,"p");if(e[o])return e[o];var l=new f([a,b,t,r]);return e[o]=l,l}},e={},r=.1,n="function"==typeof Float32Array;function o(t,e){return 1-3*e+3*t}function l(t,e){return 3*e-6*t}function c(t){return 3*t}function h(t,e,r){return((o(e,r)*t+l(e,r))*t+c(e))*t}function d(t,e,r){return 3*o(e,r)*t*t+2*l(e,r)*t+c(e)}function f(t){this._p=t,this._mSampleValues=n?new Float32Array(11):new Array(11),this._precomputed=!1,this.get=this.get.bind(this)}return f.prototype={get:function(t){var e=this._p[0],r=this._p[1],n=this._p[2],o=this._p[3];return this._precomputed||this._precompute(),e===r&&n===o?t:0===t?0:1===t?1:h(this._getTForX(t),r,o)},_precompute:function(){var t=this._p[0],e=this._p[1],r=this._p[2],n=this._p[3];this._precomputed=!0,t===e&&r===n||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],i=0;i<11;++i)this._mSampleValues[i]=h(i*r,t,e)},_getTForX:function(t){for(var e=this._p[0],n=this._p[2],o=this._mSampleValues,l=0,c=1;10!==c&&o[c]<=t;++c)l+=r;var f=l+(t-o[--c])/(o[c+1]-o[c])*r,m=d(f,e,n);return m>=.001?function(t,e,r,n){for(var i=0;i<4;++i){var o=d(e,r,n);if(0===o)return e;e-=(h(e,r,n)-t)/o}return e}(t,f,e,n):0===m?f:function(t,e,r,n,o){var l,c,i=0;do{(l=h(c=e+(r-e)/2,n,o)-t)>0?r=c:e=c}while(Math.abs(l)>1e-7&&++i<10);return c}(t,l,l+r,e,n)}},t}(),pooling={double:function(t){return t.concat(createSizedArray(t.length))}},poolFactory=function(t,e,r){var n=0,o=t,l=createSizedArray(o);return{newElement:function(){return n?l[n-=1]:e()},release:function(element){n===o&&(l=pooling.double(l),o*=2),r&&r(element),l[n]=element,n+=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(element){var i,t=element.lengths.length;for(i=0;i<t;i+=1)bezierLengthPool.release(element.lengths[i]);element.lengths.length=0}));function bezFunction(){var t=Math;function e(t,e,r,n,o,l){var c=t*n+e*o+r*l-o*n-l*t-r*e;return c>-.001&&c<.001}var r=function(t,e,r,n){var o,i,l,c,h,d,f=getDefaultCurveSegments(),m=0,y=[],v=[],w=bezierLengthPool.newElement();for(l=r.length,o=0;o<f;o+=1){for(h=o/(f-1),d=0,i=0;i<l;i+=1)c=bmPow(1-h,3)*t[i]+3*bmPow(1-h,2)*h*r[i]+3*(1-h)*bmPow(h,2)*n[i]+bmPow(h,3)*e[i],y[i]=c,null!==v[i]&&(d+=bmPow(y[i]-v[i],2)),v[i]=y[i];d&&(m+=d=bmSqrt(d)),w.percents[o]=h,w.lengths[o]=m}return w.addedLength=m,w};function n(t){this.segmentLength=0,this.points=new Array(t)}function o(t,e){this.partialLength=t,this.point=e}var l,c=(l={},function(t,r,c,h){var d=(t[0]+"_"+t[1]+"_"+r[0]+"_"+r[1]+"_"+c[0]+"_"+c[1]+"_"+h[0]+"_"+h[1]).replace(/\./g,"p");if(!l[d]){var f,i,m,y,v,w,E,_=getDefaultCurveSegments(),T=0,S=null;2===t.length&&(t[0]!==r[0]||t[1]!==r[1])&&e(t[0],t[1],r[0],r[1],t[0]+c[0],t[1]+c[1])&&e(t[0],t[1],r[0],r[1],r[0]+h[0],r[1]+
vendor: 4,218 bytes, line 2
2h[1])&&(_=2);var x=new n(_);for(m=c.length,f=0;f<_;f+=1){for(E=createSizedArray(m),v=f/(_-1),w=0,i=0;i<m;i+=1)y=bmPow(1-v,3)*t[i]+3*bmPow(1-v,2)*v*(t[i]+c[i])+3*(1-v)*bmPow(v,2)*(r[i]+h[i])+bmPow(v,3)*r[i],E[i]=y,null!==S&&(w+=bmPow(E[i]-S[i],2));T+=w=bmSqrt(w),x.points[f]=new o(w,E),S=E}x.segmentLength=T,l[d]=x}return l[d]});function h(t,e){var r=e.percents,n=e.lengths,o=r.length,l=bmFloor((o-1)*t),c=t*e.addedLength,h=0;if(l===o-1||0===l||c===n[l])return r[l];for(var d=n[l]>c?-1:1,f=!0;f;)if(n[l]<=c&&n[l+1]>c?(h=(c-n[l])/(n[l+1]-n[l]),f=!1):l+=d,l<0||l>=o-1){if(l===o-1)return r[l];f=!1}return r[l]+(r[l+1]-r[l])*h}var d=createTypedArray("float32",8);return{getSegmentsLength:function(t){var i,e=segmentsLengthPool.newElement(),n=t.c,o=t.v,l=t.o,c=t.i,h=t._length,d=e.lengths,f=0;for(i=0;i<h-1;i+=1)d[i]=r(o[i],o[i+1],l[i],c[i+1]),f+=d[i].addedLength;return n&&h&&(d[i]=r(o[i],o[0],l[i],c[0]),f+=d[i].addedLength),e.totalLength=f,e},getNewSegment:function(e,r,n,o,l,c,f){l<0?l=0:l>1&&(l=1);var i,m=h(l,f),y=h(c=c>1?1:c,f),v=e.length,w=1-m,E=1-y,_=w*w*w,T=m*w*w*3,S=m*m*w*3,x=m*m*m,I=w*w*E,P=m*w*E+w*m*E+w*w*y,O=m*m*E+w*m*y+m*w*y,A=m*m*y,k=w*E*E,C=m*E*E+w*y*E+w*E*y,D=m*y*E+w*y*y+m*E*y,M=m*y*y,N=E*E*E,R=y*E*E+E*y*E+E*E*y,F=y*y*E+E*y*y+y*E*y,j=y*y*y;for(i=0;i<v;i+=1)d[4*i]=t.round(1e3*(_*e[i]+T*n[i]+S*o[i]+x*r[i]))/1e3,d[4*i+1]=t.round(1e3*(I*e[i]+P*n[i]+O*o[i]+A*r[i]))/1e3,d[4*i+2]=t.round(1e3*(k*e[i]+C*n[i]+D*o[i]+M*r[i]))/1e3,d[4*i+3]=t.round(1e3*(N*e[i]+R*n[i]+F*o[i]+j*r[i]))/1e3;return d},getPointInSegment:function(e,r,n,o,l,c){var d=h(l,c),f=1-d;return[t.round(1e3*(f*f*f*e[0]+(d*f*f+f*d*f+f*f*d)*n[0]+(d*d*f+f*d*d+d*f*d)*o[0]+d*d*d*r[0]))/1e3,t.round(1e3*(f*f*f*e[1]+(d*f*f+f*d*f+f*f*d)*n[1]+(d*d*f+f*d*d+d*f*d)*o[1]+d*d*d*r[1]))/1e3]},buildBezierData:c,pointOnLine2D:e,pointOnLine3D:function(r,n,o,l,c,h,d,f,m){if(0===o&&0===h&&0===m)return e(r,n,l,c,d,f);var y,v=t.sqrt(t.pow(l-r,2)+t.pow(c-n,2)+t.pow(h-o,2)),w=t.sqrt(t.pow(d-r,2)+t.pow(f-n,2)+t.pow(m-o,2)),E=t.sqrt(t.pow(d-l,2)+t.pow(f-c,2)+t.pow(m-h,2));return(y=v>w?v>E?v-w-E:E-w-v:E>w?E-w-v:w-v-E)>-1e-4&&y<1e-4}}}var bez=bezFunction(),PropertyFactory=function(){var t=initialDefaultFrame,e=Math.abs;function r(t,e){var r,o=this.offsetTime;"multidimensional"===this.propType&&(r=createTypedArray("float32",this.pv.length));for(var l,c,h,d,f,m,y,v,w,E=e.lastIndex,i=E,_=this.keyframes.length-1,T=!0;T;){if(l=this.keyframes[i],c=this.keyframes[i+1],i===_-1&&t>=c.t-o){l.h&&(l=c),E=0;break}if(c.t-o>t){E=i;break}i<_-1?i+=1:(E=0,T=!1)}h=this.keyframesMetadata[i]||{};var S,x,I,P,O,A,k,C,D,M,N=c.t-o,R=l.t-o;if(l.to){h.bezierData||(h.bezierData=bez.buildBezierData(l.s,c.s||l.e,l.to,l.ti));var F=h.bezierData;if(t>=N||t<R){var j=t>=N?F.points.length-1:0;for(f=F.points[j].point.length,d=0;d<f;d+=1)r[d]=F.points[j].point[d]}else{h.__fnct?w=h.__fnct:(w=BezierFactory.getBezierEasing(l.o.x,l.o.y,l.i.x,l.i.y,l.n).get,h.__fnct=w),m=w((t-R)/(N-R));var L,B=F.segmentLength*m,V=e.lastFrame<t&&e._lastKeyframeIndex===i?e._lastAddedLength:0;for(v=e.lastFrame<t&&e._lastKeyframeIndex===i?e._lastPoint:0,T=!0,y=F.points.length;T;){if(V+=F.points[v].partialLength,0===B||0===m||v===F.points.length-1){for(f=F.points[v].point.length,d=0;d<f;d+=1)r[d]=F.points[v].point[d];break}if(B>=V&&B<V+F.points[v+1].partialLength){for(L=(B-V)/F.points[v+1].partialLength,f=F.points[v].point.length,d=0;d<f;d+=1)r[d]=F.points[v].point[d]+(F.points[v+1].point[d]-F.points[v].point[d])*L;break}v<y-1?v+=1:T=!1}e._lastPoint=v,e._lastAddedLength=V-F.points[v].partialLength,e._lastKeyframeIndex=i}}else{var z,G,U,$,H;if(_=l.s.length,S=c.s||l.e,this.sh&&1!==l.h)if(t>=N)r[0]=S[0],r[1]=S[1],r[2]=S[2];else if(t<=R)r[0]=l.s[0],r[1]=l.s[1],r[2]=l.s[2];else{var Y=n(l.s),W=n(S);x=r,I=function(a,b,t){var e,r,n,o,l,c=[],h=a[0],d=a[1],f=a[2],m=a[3],y=b[0],v=b[1],w=b[2],E=b[3];return(r=h*y+d*v+f*w+m*E)<0&&(r=-r,y=-y,v=-v,w=-w,E=-E),1-r>1e-6?(e=Math.acos(r),n=Math.sin(e),o=Math.sin((1-t)*e)/n,l=Math.sin(t*e)/n):(o=1-t,l=t),c[0]=o*h+l*y,c[1]=o*d+l*v,c[2]=o*f+l*w,c[3]=o*m+l*E,c}(Y,W,(t-R)/(N-R)),P=I[0],O=I[1],A=I[2],k=I[3],C=Math.atan2(2*O*k-2*P*A,1-2*O*O-2*A*A),D=Math.asin(2*P*O+2*A*k),M=Math.atan2(2*P*k-2*O*A,1-2*P*P-2*A*A),x[0]=C/degToRads,x[1]=D/degToRads,x[2]=M/degToRads}
vendor: 13,610 bytes, line 2
2else for(i=0;i<_;i+=1)1!==l.h&&(t>=N?m=1:t<R?m=0:(l.o.x.constructor===Array?(h.__fnct||(h.__fnct=[]),h.__fnct[i]?w=h.__fnct[i]:(z=void 0===l.o.x[i]?l.o.x[0]:l.o.x[i],G=void 0===l.o.y[i]?l.o.y[0]:l.o.y[i],U=void 0===l.i.x[i]?l.i.x[0]:l.i.x[i],$=void 0===l.i.y[i]?l.i.y[0]:l.i.y[i],w=BezierFactory.getBezierEasing(z,G,U,$).get,h.__fnct[i]=w)):h.__fnct?w=h.__fnct:(z=l.o.x,G=l.o.y,U=l.i.x,$=l.i.y,w=BezierFactory.getBezierEasing(z,G,U,$).get,l.keyframeMetadata=w),m=w((t-R)/(N-R)))),S=c.s||l.e,H=1===l.h?l.s[i]:l.s[i]+(S[i]-l.s[i])*m,"multidimensional"===this.propType?r[i]=H:r=H}return e.lastIndex=E,r}function n(t){var e=t[0]*degToRads,r=t[1]*degToRads,n=t[2]*degToRads,o=Math.cos(e/2),l=Math.cos(r/2),c=Math.cos(n/2),h=Math.sin(e/2),d=Math.sin(r/2),f=Math.sin(n/2);return[h*d*c+o*l*f,h*l*c+o*d*f,o*d*c-h*l*f,o*l*c-h*d*f]}function o(){var e=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==t&&(this._caching.lastFrame>=n&&e>=n||this._caching.lastFrame<r&&e<r))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var o=this.interpolateValue(e,this._caching);this.pv=o}return this._caching.lastFrame=e,this.pv}function l(t){var r;if("unidimensional"===this.propType)r=t*this.mult,e(this.v-r)>1e-5&&(this.v=r,this._mdf=!0);else for(var i=0,n=this.v.length;i<n;)r=t[i]*this.mult,e(this.v[i]-r)>1e-5&&(this.v[i]=r,this._mdf=!0),i+=1}function c(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var i;this.lock=!0,this._mdf=this._isFirstFrame;var t=this.effectsSequence.length,e=this.kf?this.pv:this.data.k;for(i=0;i<t;i+=1)e=this.effectsSequence[i](e);this.setVValue(e),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function h(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function d(t,data,e,r){this.propType="unidimensional",this.mult=e||1,this.data=data,this.v=e?data.k*e:data.k,this.pv=data.k,this._mdf=!1,this.elem=t,this.container=r,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=c,this.setVValue=l,this.addEffect=h}function f(t,data,e,r){var i;this.propType="multidimensional",this.mult=e||1,this.data=data,this._mdf=!1,this.elem=t,this.container=r,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var n=data.k.length;for(this.v=createTypedArray("float32",n),this.pv=createTypedArray("float32",n),this.vel=createTypedArray("float32",n),i=0;i<n;i+=1)this.v[i]=data.k[i]*this.mult,this.pv[i]=data.k[i];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=c,this.setVValue=l,this.addEffect=h}function m(e,data,n,d){this.propType="unidimensional",this.keyframes=data.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:t,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=data,this.mult=n||1,this.elem=e,this.container=d,this.comp=e.comp,this.v=t,this.pv=t,this._isFirstFrame=!0,this.getValue=c,this.setVValue=l,this.interpolateValue=r,this.effectsSequence=[o.bind(this)],this.addEffect=h}function y(e,data,n,d){var i;this.propType="multidimensional";var s,f,m,y,v=data.k.length;for(i=0;i<v-1;i+=1)data.k[i].to&&data.k[i].s&&data.k[i+1]&&data.k[i+1].s&&(s=data.k[i].s,f=data.k[i+1].s,m=data.k[i].to,y=data.k[i].ti,(2===s.length&&(s[0]!==f[0]||s[1]!==f[1])&&bez.pointOnLine2D(s[0],s[1],f[0],f[1],s[0]+m[0],s[1]+m[1])&&bez.pointOnLine2D(s[0],s[1],f[0],f[1],f[0]+y[0],f[1]+y[1])||3===s.length&&(s[0]!==f[0]||s[1]!==f[1]||s[2]!==f[2])&&bez.pointOnLine3D(s[0],s[1],s[2],f[0],f[1],f[2],s[0]+m[0],s[1]+m[1],s[2]+m[2])&&bez.pointOnLine3D(s[0],s[1],s[2],f[0],f[1],f[2],f[0]+y[0],f[1]+y[1],f[2]+y[2]))&&(data.k[i].to=null,data.k[i].ti=null),s[0]===f[0]&&s[1]===f[1]&&0===m[0]&&0===m[1]&&0===y[0]&&0===y[1]&&(2===s.length||s[2]===f[2]&&0===m[2]&&0===y[2])&&(data.k[i].to=null,data.k[i].ti=null));this.effectsSequence=[o.bind(this)],this.data=data,this.keyframes=data.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=d,this.comp=e.comp,this.getValue=c,this.setVValue=l,this.interpolateValue=r,this.frameId=-1;var w=data.k[0].s.length;for(this.v=createTypedArray("float32",w),this.pv=createTypedArray("float32",w),i=0;i<w;i+=1)this.v[i]=t,this.pv[i]=t;this._caching={lastFrame:t,lastIndex:0,value:createTypedArray("float32",w)},this.addEffect=h}return{getProp:function(t,data,e,r,n){var p;if(data.k.length)if("number"==typeof data.k[0])p=new f(t,data,r,n);else switch(e){case 0:p=new m(t,data,r,n);break;case 1:p=new y(t,data,r,n)}else p=new d(t,data,r,n);return p.effectsSequence.length&&n.addDynamicProperty(p),p}}}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var i;this._mdf=!1;var t=this.dynamicProperties.length;for(i=0;i<t;i+=1)this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,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(t,e){this.c=t,this.setLength(e);for(var i=0;i<e;)this.v[i]=pointPool.newElement(),this.o[i]=pointPool.newElement(),this.i[i]=pointPool.newElement(),i+=1},ShapePath.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},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(t,e,r,n,o){var l;switch(this._length=Math.max(this._length,n+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":l=this.v;break;case"i":l=this.i;break;case"o":l=this.o;break;default:l=[]}(!l[n]||l[n]&&!o)&&(l[n]=pointPool.newElement()),l[n][0]=t,l[n][1]=e},ShapePath.prototype.setTripleAt=function(t,e,r,n,o,l,c,h){this.setXYAt(t,e,"v",c,h),this.setXYAt(r,n,"o",c,h),this.setXYAt(o,l,"i",c,h)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,r=this.o,n=this.i,o=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],n[0][0],n[0][1],r[0][0],r[0][1],0,!1),o=1);var i,l=this._length-1,c=this._length;for(i=o;i<c;i+=1)t.setTripleAt(e[l][0],e[l][1],n[l][0],n[l][1],r[l][0],r[l][1],i,!1),l-=1;return t},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,(function(){return new ShapePath}),(function(t){var i,e=t._length;for(i=0;i<e;i+=1)pointPool.release(t.v[i]),pointPool.release(t.i[i]),pointPool.release(t.o[i]),t.v[i]=null,t.i[i]=null,t.o[i]=null;t._length=0,t.c=!1})),factory.clone=function(t){var i,e=factory.newElement(),r=void 0===t._length?t.v.length:t._length;for(e.setLength(r),e.c=t.c,i=0;i<r;i+=1)e.setTripleAt(t.v[i][0],t.v[i][1],t.o[i][0],t.o[i][1],t.i[i][0],t.i[i][1],i);return e},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var i;for(i=0;i<this._length;i+=1)shapePool.release(this.shapes[i]);this._length=0};var shapeCollectionPool=(ob={newShapeCollection:function(){return _length?pool[_length-=1]:new ShapeCollection},release:function(t){var i,e=t._length;for(i=0;i<e;i+=1)shapePool.release(t.shapes[i]);t._length=0,_length===_maxLength&&(pool=pooling.double(pool),_maxLength*=2),pool[_length]=t,_length+=1}},_length=0,_maxLength=4,pool=createSizedArray(_maxLength),ob),ob,_length,_maxLength,pool,ShapePropertyFactory=function(){var t=-999999;function e(t,e,r){var n,o,l,c,h,d,f,m,y,v=r.lastIndex,w=this.keyframes;if(t<w[0].t-this.offsetTime)n=w[0].s[0],l=!0,v=0;else if(t>=w[w.length-1].t-this.offsetTime)n=w[w.length-1].s?w[w.length-1].s[0]:w[w.length-2].e[0],l=!0;else{for(var E,_,T,i=v,S=w.length-1,x=!0;x&&(E=w[i],!((_=w[i+1]).t-this.offsetTime>t));)i<S-1?i+=1:x=!1;if(T=this.keyframesMetadata[i]||{},v=i,!(l=1===E.h)){if(t>=_.t-this.offsetTime)m=1;else if(t<E.t-this.offsetTime)m=0;else{var I;T.__fnct?I=T.__fnct:(I=BezierFactory.getBezierEasing(E.o.x,E.o.y,E.i.x,E.i.y).get,T.__fnct=I),m=I((t-(E.t-this.offsetTime))/(_.t-this.offsetTime-(E.t-this.offsetTime)))}o=_.s?_.s[0]:E.e[0]}n=E.s[0]}for(d=e._length,f=n.i[0].length,r.lastIndex=v,c=0;c<d;c+=1)for(h=0;h<f;h+=1)y=l?n.i[c][h]:n.i[c][h]+(o.i[c][h]-n.i[c][h])*m,e.i[c][h]=y,y=l?n.o[c][h]:n.o[c][h]+(o.o[c][h]-n.o[c][h])*m,e.o[c][h]=y,y=l?n.v[c][h]:n.v[c][h]+(o.v[c][h]-n.v[c][h])*m,e.v[c][h]=y}function r(){var e=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime,o=this._caching.lastFrame;return o!==t&&(o<r&&e<r||o>n&&e>n)||(this._caching.lastIndex=o<e?this._caching.lastIndex:0,this.interpolateShape(e,this.pv,this._caching)),this._caching.lastFrame=e,this.pv}function n(){this.paths=this.localShapeCollection}function o(t){(function(t,e){if(t._length!==e._length||t.c!==e.c)return!1;var i,r=t._length;for(i=0;i<r;i+=1)if(t.v[i][0]!==e.v[i][0]||t.v[i][1]!==e.v[i][1]||t.o[i][0]!==e.o[i][0]||t.o[i][1]!==e.o[i][1]||t.i[i][0]!==e.i[i][0]||t.i[i][1]!==e.i[i][1])return!1;return!0})(this.v,t)||(this.v=shapePool.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function l(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t,i;this.lock=!0,this._mdf=!1,t=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var e=this.effectsSequence.length;for(i=0;i<e;i+=1)t=this.effectsSequence[i](t);this.setVValue(t),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function c(t,data,e){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=data,this.k=!1,this.kf=!1,this._mdf=!1;var r=3===e?data.pt.k:data.ks.k;this.v=shapePool.clone(r),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=n,this.effectsSequence=[]}function h(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function d(e,data,o){this.propType="shape",this.comp=e.comp,this.elem=e,this.container=e,this.offsetTime=e.data.st,this.keyframes=3===o?data.pt.k:data.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var l=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,l),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=n,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[r.bind(this)]}c.prototype.interpolateShape=e,c.prototype.getValue=l,c.prototype.setVValue=o,c.prototype.addEffect=h,d.prototype.getValue=l,d.prototype.interpolateShape=e,d.prototype.setVValue=o,d.prototype.addEffect=h;var f=function(){var t=roundCorner;function e(t,data){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=data.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,data.p,1,0,this),this.s=PropertyFactory.getProp(t,data.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return e.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var e=this.p.v[0],r=this.p.v[1],n=this.s.v[0]/2,o=this.s.v[1]/2,l=3!==this.d,c=this.v;c.v[0][0]=e,c.v[0][1]=r-o,c.v[1][0]=l?e+n:e-n,c.v[1][1]=r,c.v[2][0]=e,c.v[2][1]=r+o,c.v[3][0]=l?e-n:e+n,c.v[3][1]=r,c.i[0][0]=l?e-n*t:e+n*t,c.i[0][1]=r-o,c.i[1][0]=l?e+n:e-n,c.i[1][1]=r-o*t,c.i[2][0]=l?e+n*t:e-n*t,c.i[2][1]=r+o,c.i[3][0]=l?e-n:e+n,c.i[3][1]=r+o*t,c.o[0][0]=l?e+n*t:e-n*t,c.o[0][1]=r-o,c.o[1][0]=l?e+n:e-n,c.o[1][1]=r+o*t,c.o[2][0]=l?e-n*t:e+n*t,c.o[2][1]=r+o,c.o[3][0]=l?e-n:e+n,c.o[3][1]=r-o*t}},extendPrototype([DynamicPropertyContainer],e),e}(),m=function(){function t(t,data){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=data,this.frameId=-1,this.d=data.d,this.initDynamicPropertyContainer(t),1===data.sy?(this.ir=PropertyFactory.getProp(t,data.ir,0,0,this),this.is=PropertyFactory.getProp(t,data.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=Pro
vendor: 5,031 bytes, line 2
2pertyFactory.getProp(t,data.pt,0,0,this),this.p=PropertyFactory.getProp(t,data.p,1,0,this),this.r=PropertyFactory.getProp(t,data.r,0,degToRads,this),this.or=PropertyFactory.getProp(t,data.or,0,0,this),this.os=PropertyFactory.getProp(t,data.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 t.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var i,t,e,r,n=2*Math.floor(this.pt.v),o=2*Math.PI/n,l=!0,c=this.or.v,h=this.ir.v,d=this.os.v,f=this.is.v,m=2*Math.PI*c/(2*n),y=2*Math.PI*h/(2*n),v=-Math.PI/2;v+=this.r.v;var w=3===this.data.d?-1:1;for(this.v._length=0,i=0;i<n;i+=1){e=l?d:f,r=l?m:y;var E=(t=l?c:h)*Math.cos(v),_=t*Math.sin(v),T=0===E&&0===_?0:_/Math.sqrt(E*E+_*_),S=0===E&&0===_?0:-E/Math.sqrt(E*E+_*_);E+=+this.p.v[0],_+=+this.p.v[1],this.v.setTripleAt(E,_,E-T*r*e*w,_-S*r*e*w,E+T*r*e*w,_+S*r*e*w,i,!0),l=!l,v+=o*w}},convertPolygonToPath:function(){var i,t=Math.floor(this.pt.v),e=2*Math.PI/t,r=this.or.v,n=this.os.v,o=2*Math.PI*r/(4*t),l=.5*-Math.PI,c=3===this.data.d?-1:1;for(l+=this.r.v,this.v._length=0,i=0;i<t;i+=1){var h=r*Math.cos(l),d=r*Math.sin(l),f=0===h&&0===d?0:d/Math.sqrt(h*h+d*d),m=0===h&&0===d?0:-h/Math.sqrt(h*h+d*d);h+=+this.p.v[0],d+=+this.p.v[1],this.v.setTripleAt(h,d,h-f*o*n*c,d-m*o*n*c,h+f*o*n*c,d+m*o*n*c,i,!0),l+=e*c}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],t),t}(),y=function(){function t(t,data){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=data.d,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,data.p,1,0,this),this.s=PropertyFactory.getProp(t,data.s,1,0,this),this.r=PropertyFactory.getProp(t,data.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return t.prototype={convertRectToPath:function(){var t=this.p.v[0],e=this.p.v[1],r=this.s.v[0]/2,n=this.s.v[1]/2,o=bmMin(r,n,this.r.v),l=o*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+r,e-n+o,t+r,e-n+o,t+r,e-n+l,0,!0),this.v.setTripleAt(t+r,e+n-o,t+r,e+n-l,t+r,e+n-o,1,!0),0!==o?(this.v.setTripleAt(t+r-o,e+n,t+r-o,e+n,t+r-l,e+n,2,!0),this.v.setTripleAt(t-r+o,e+n,t-r+l,e+n,t-r+o,e+n,3,!0),this.v.setTripleAt(t-r,e+n-o,t-r,e+n-o,t-r,e+n-l,4,!0),this.v.setTripleAt(t-r,e-n+o,t-r,e-n+l,t-r,e-n+o,5,!0),this.v.setTripleAt(t-r+o,e-n,t-r+o,e-n,t-r+l,e-n,6,!0),this.v.setTripleAt(t+r-o,e-n,t+r-l,e-n,t+r-o,e-n,7,!0)):(this.v.setTripleAt(t-r,e+n,t-r+l,e+n,t-r,e+n,2),this.v.setTripleAt(t-r,e-n,t-r,e-n+l,t-r,e-n,3))):(this.v.setTripleAt(t+r,e-n+o,t+r,e-n+l,t+r,e-n+o,0,!0),0!==o?(this.v.setTripleAt(t+r-o,e-n,t+r-o,e-n,t+r-l,e-n,1,!0),this.v.setTripleAt(t-r+o,e-n,t-r+l,e-n,t-r+o,e-n,2,!0),this.v.setTripleAt(t-r,e-n+o,t-r,e-n+o,t-r,e-n+l,3,!0),this.v.setTripleAt(t-r,e+n-o,t-r,e+n-l,t-r,e+n-o,4,!0),this.v.setTripleAt(t-r+o,e+n,t-r+o,e+n,t-r+l,e+n,5,!0),this.v.setTripleAt(t+r-o,e+n,t+r-l,e+n,t+r-o,e+n,6,!0),this.v.setTripleAt(t+r,e+n-o,t+r,e+n-o,t+r,e+n-l,7,!0)):(this.v.setTripleAt(t-r,e-n,t-r+l,e-n,t-r,e-n,1,!0),this.v.setTripleAt(t-r,e+n,t-r,e+n-l,t-r,e+n,2,!0),this.v.setTripleAt(t+r,e+n,t+r-l,e+n,t+r,e+n,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:n},extendPrototype([DynamicPropertyContainer],t),t}(),v={getShapeProp:function(t,data,e){var r;return 3===e||4===e?r=(3===e?data.pt:data.ks).k.length?new d(t,data,e):new c(t,data,e):5===e?r=new y(t,data):6===e?r=new f(t,data):7===e&&(r=new m(t,data)),r.k&&t.addDynamicProperty(r),r},getConstructorFunction:function(){return c},getKeyframedConstructorFunction:function(){return d}};return v}(),Matrix=function(){var t=Math.cos,e=Math.sin,r=Math.tan,n=Math.round;function o(){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 l(r){if(0===r)return this;var n=t(r),o=e(r);return this._t(n,-o,0,0,o,n,0,0,0,0,1,0,0,0,0,1)}function c(r){if(0===r)return this;var n=t(r),o=e(r);return this._t(1,0,0,0,0,n,-o,0,0,o,n,0,0,0,0,1)}function h(r){if(0===r)return this;var n=t(r),o=e(r);return this._t(n,0,o,0,0,1,0,0,-o,0,n,0,0,0,0,1)}function d(r){if(0===r)return this;var n=t(r),o=e(r);return this._t(n,-o,0,0,o,n,0,0,0,0,1,0,0,0,0,1)}function f(t,e){return this._t(1,e,t,1,0,0)}function m(t,e){return this.shear(r(t),r(e))}
vendor: 9,299 bytes, line 2
2function y(n,o){var l=t(o),c=e(o);return this._t(l,c,0,0,-c,l,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(n),1,0,0,0,0,1,0,0,0,0,1)._t(l,-c,0,0,c,l,0,0,0,0,1,0,0,0,0,1)}function v(t,e,r){return r||0===r||(r=1),1===t&&1===e&&1===r?this:this._t(t,0,0,0,0,e,0,0,0,0,r,0,0,0,0,1)}function w(a,b,t,e,r,n,g,o,i,l,c,h,d,f,m,p){return this.props[0]=a,this.props[1]=b,this.props[2]=t,this.props[3]=e,this.props[4]=r,this.props[5]=n,this.props[6]=g,this.props[7]=o,this.props[8]=i,this.props[9]=l,this.props[10]=c,this.props[11]=h,this.props[12]=d,this.props[13]=f,this.props[14]=m,this.props[15]=p,this}function E(t,e,r){return r=r||0,0!==t||0!==e||0!==r?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,r,1):this}function _(t,e,r,n,o,l,c,h2,h,d,f,m,y,v,w,E){var _=this.props;if(1===t&&0===e&&0===r&&0===n&&0===o&&1===l&&0===c&&0===h2&&0===h&&0===d&&1===f&&0===m)return _[12]=_[12]*t+_[15]*y,_[13]=_[13]*l+_[15]*v,_[14]=_[14]*f+_[15]*w,_[15]*=E,this._identityCalculated=!1,this;var T=_[0],S=_[1],x=_[2],I=_[3],P=_[4],O=_[5],A=_[6],h1=_[7],k=_[8],C=_[9],D=_[10],M=_[11],N=_[12],R=_[13],F=_[14],j=_[15];return _[0]=T*t+S*o+x*h+I*y,_[1]=T*e+S*l+x*d+I*v,_[2]=T*r+S*c+x*f+I*w,_[3]=T*n+S*h2+x*m+I*E,_[4]=P*t+O*o+A*h+h1*y,_[5]=P*e+O*l+A*d+h1*v,_[6]=P*r+O*c+A*f+h1*w,_[7]=P*n+O*h2+A*m+h1*E,_[8]=k*t+C*o+D*h+M*y,_[9]=k*e+C*l+D*d+M*v,_[10]=k*r+C*c+D*f+M*w,_[11]=k*n+C*h2+D*m+M*E,_[12]=N*t+R*o+F*h+j*y,_[13]=N*e+R*l+F*d+j*v,_[14]=N*r+R*c+F*f+j*w,_[15]=N*n+R*h2+F*m+j*E,this._identityCalculated=!1,this}function T(){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 S(t){for(var i=0;i<16;){if(t.props[i]!==this.props[i])return!1;i+=1}return!0}function x(t){var i;for(i=0;i<16;i+=1)t.props[i]=this.props[i];return t}function I(t){var i;for(i=0;i<16;i+=1)this.props[i]=t[i]}function P(t,e,r){return{x:t*this.props[0]+e*this.props[4]+r*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+r*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+r*this.props[10]+this.props[14]}}function O(t,e,r){return t*this.props[0]+e*this.props[4]+r*this.props[8]+this.props[12]}function A(t,e,r){return t*this.props[1]+e*this.props[5]+r*this.props[9]+this.props[13]}function k(t,e,r){return t*this.props[2]+e*this.props[6]+r*this.props[10]+this.props[14]}function C(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],a=this.props[5]/t,b=-this.props[1]/t,e=-this.props[4]/t,r=this.props[0]/t,n=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,o=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,l=new Matrix;return l.props[0]=a,l.props[1]=b,l.props[4]=e,l.props[5]=r,l.props[12]=n,l.props[13]=o,l}function D(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function M(t){var i,e=t.length,r=[];for(i=0;i<e;i+=1)r[i]=D(t[i]);return r}function N(t,e,r){var n=createTypedArray("float32",6);if(this.isIdentity())n[0]=t[0],n[1]=t[1],n[2]=e[0],n[3]=e[1],n[4]=r[0],n[5]=r[1];else{var o=this.props[0],l=this.props[1],c=this.props[4],h=this.props[5],d=this.props[12],f=this.props[13];n[0]=t[0]*o+t[1]*c+d,n[1]=t[0]*l+t[1]*h+f,n[2]=e[0]*o+e[1]*c+d,n[3]=e[0]*l+e[1]*h+f,n[4]=r[0]*o+r[1]*c+d,n[5]=r[0]*l+r[1]*h+f}return n}function R(t,e,r){return this.isIdentity()?[t,e,r]:[t*this.props[0]+e*this.props[4]+r*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+r*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+r*this.props[10]+this.props[14]]}function F(t,e){if(this.isIdentity())return t+","+e;var r=this.props;return Math.round(100*(t*r[0]+e*r[4]+r[12]))/100+","+Math.round(100*(t*r[1]+e*r[5]+r[13]))/100}function j(){for(var i=0,t=this.props,e="matrix3d(";i<16;)e+=n(1e4*t[i])/1e4,e+=15===i?")":",",i+=1;return e}function L(t){return t<1e-6&&t>0||t>-1e-6&&t<0?n(1e4*t)/1e4:t}function B(){var t=this.props;return"matrix("+L(t[0])+","+L(t[1])+","+L(t[4])+","+L(t[5])+","+L(t[12])+","+L(t[13])+")"}return function(){this.reset=o,this.rotate=l,this.rotateX=c,this.rotateY=h,this.rotateZ=d,this.skew=m,this.skewFromAxis=y,this.shear=f,this.scale=v,this.setTransform=w,this.translate=E,this.transform=_,this.applyToPoint=P,this.applyToX=O,this.applyToY=A,this.applyToZ=k,this.applyToPointArray=R,this.applyToTriplePoints=N,this.applyToPointStringified=F,this.toCSS=j,this.to2dCSS=B,this.clone=x,this.cloneFromProps=I,this.equals=S,this.inversePoints=M,this.inversePoint=D,this.getInverseMatrix=C,this._t=this.transform,this.isIdentity=T,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(t){return _typeof$3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$3(t)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(t){setLocationHref(t)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(t){setSubframeEnabled(t)}function setPrefix(t){setIdPrefix(t)}function loadAnimation(t){return!0===standalone&&(t.animationData=JSON.parse(animationData)),animationManager.loadAnimation(t)}function setQuality(t){if("string"==typeof t)switch(t){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(t)&&t>1&&setDefaultCurveSegments(t);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(t,e){"expressions"===t&&setExpressionsPlugin(e)}function getFactory(t){switch(t){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(t){for(var e=queryString.split("&"),i=0;i<e.length;i+=1){var r=e[i].split("=");if(decodeURIComponent(r[0])==t)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.10.1";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)&&void 0!==module||__webpack_require__(257)||(window.bodymovin=lottie)}catch(t){}var ShapeModifiers=function(){var t={},e={};return t.registerModifier=function(t,r){e[t]||(e[t]=r)},t.getModifier=function(t,r,data){return new e[t](r,data)},t}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(data){if(!this.closed){data.sh.container.addDynamicProperty(data.sh);var t={shape:data.sh,data:data,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&data.setAsAnimated()}},ShapeModifier.prototype.init=function(t,data){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,data),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(t,data){this.s=PropertyFactory.getProp(t,data.s,0,.01,this),this.e=Pro
vendor: 4,319 bytes, line 2
2pertyFactory.getProp(t,data.e,0,.01,this),this.o=PropertyFactory.getProp(t,data.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=data.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(s,t,e,r,n){var o=[];t<=1?o.push({s:s,e:t}):s>=1?o.push({s:s-1,e:t-1}):(o.push({s:s,e:1}),o.push({s:0,e:t-1}));var i,l,c=[],h=o.length;for(i=0;i<h;i+=1){var d,f;(l=o[i]).e*n<r||l.s*n>r+e||(d=l.s*n<=r?0:(l.s*n-r)/e,f=l.e*n>=r+e?1:(l.e*n-r)/e,c.push([d,f]))}return c.length||c.push([0,0]),c},TrimModifier.prototype.releasePathsData=function(t){var i,e=t.length;for(i=0;i<e;i+=1)segmentsLengthPool.release(t[i]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){var s,e,r,i;if(this._mdf||t){var n=this.o.v%360/360;if(n<0&&(n+=1),(s=this.s.v>1?1+n:this.s.v<0?0+n:this.s.v+n)>(e=this.e.v>1?1+n:this.e.v<0?0+n:this.e.v+n)){var o=s;s=e,e=o}s=1e-4*Math.round(1e4*s),e=1e-4*Math.round(1e4*e),this.sValue=s,this.eValue=e}else s=this.sValue,e=this.eValue;var l,c,h,d,f,m=this.shapes.length,y=0;if(e===s)for(i=0;i<m;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===e&&0===s||0===e&&1===s){if(this._mdf)for(i=0;i<m;i+=1)this.shapes[i].pathsData.length=0,this.shapes[i].shape._mdf=!0}else{var v,w,E=[];for(i=0;i<m;i+=1)if((v=this.shapes[i]).shape._mdf||this._mdf||t||2===this.m){if(c=(r=v.shape.paths)._length,f=0,!v.shape._mdf&&v.pathsData.length)f=v.totalShapeLength;else{for(h=this.releasePathsData(v.pathsData),l=0;l<c;l+=1)d=bez.getSegmentsLength(r.shapes[l]),h.push(d),f+=d.totalLength;v.totalShapeLength=f,v.pathsData=h}y+=f,v.shape._mdf=!0}else v.shape.paths=v.localShapeCollection;var _,T=s,S=e,x=0;for(i=m-1;i>=0;i-=1)if((v=this.shapes[i]).shape._mdf){for((w=v.localShapeCollection).releaseShapes(),2===this.m&&m>1?(_=this.calculateShapeEdges(s,e,v.totalShapeLength,x,y),x+=v.totalShapeLength):_=[[T,S]],c=_.length,l=0;l<c;l+=1){T=_[l][0],S=_[l][1],E.length=0,S<=1?E.push({s:v.totalShapeLength*T,e:v.totalShapeLength*S}):T>=1?E.push({s:v.totalShapeLength*(T-1),e:v.totalShapeLength*(S-1)}):(E.push({s:v.totalShapeLength*T,e:v.totalShapeLength}),E.push({s:0,e:v.totalShapeLength*(S-1)}));var I=this.addShapes(v,E[0]);if(E[0].s!==E[0].e){if(E.length>1)if(v.shape.paths.shapes[v.shape.paths._length-1].c){var P=I.pop();this.addPaths(I,w),I=this.addShapes(v,E[1],P)}else this.addPaths(I,w),I=this.addShapes(v,E[1]);this.addPaths(I,w)}}v.shape.paths=w}}},TrimModifier.prototype.addPaths=function(t,e){var i,r=t.length;for(i=0;i<r;i+=1)e.addShape(t[i])},TrimModifier.prototype.addSegment=function(t,e,r,n,o,l,c){o.setXYAt(e[0],e[1],"o",l),o.setXYAt(r[0],r[1],"i",l+1),c&&o.setXYAt(t[0],t[1],"v",l),o.setXYAt(n[0],n[1],"v",l+1)},TrimModifier.prototype.addSegmentFromArray=function(t,e,r,n){e.setXYAt(t[1],t[5],"o",r),e.setXYAt(t[2],t[6],"i",r+1),n&&e.setXYAt(t[0],t[4],"v",r),e.setXYAt(t[3],t[7],"v",r+1)},TrimModifier.prototype.addShapes=function(t,e,r){var i,n,o,l,c,h,d,f,m=t.pathsData,y=t.shape.paths.shapes,v=t.shape.paths._length,w=0,E=[],_=!0;for(r?(c=r._length,f=r._length):(r=shapePool.newElement(),c=0,f=0),E.push(r),i=0;i<v;i+=1){for(h=m[i].lengths,r.c=y[i].c,o=y[i].c?h.length:h.length+1,n=1;n<o;n+=1)if(w+(l=h[n-1]).addedLength<e.s)w+=l.addedLength,r.c=!1;else{if(w>e.e){r.c=!1;break}e.s<=w&&e.e>=w+l.addedLength?(this.addSegment(y[i].v[n-1],y[i].o[n-1],y[i].i[n],y[i].v[n],r,c,_),_=!1):(d=bez.getNewSegment(y[i].v[n-1],y[i].v[n],y[i].o[n-1],y[i].i[n],(e.s-w)/l.addedLength,(e.e-w)/l.addedLength,h[n-1]),this.addSegmentFromArray(d,r,c,_),_=!1,r.c=!1),w+=l.addedLength,c+=1}if(y[i].c&&h.length){if(l=h[n-1],w<=e.e){var T=h[n-1].addedLength;e.s<=w&&e.e>=w+T?(this.addSegment(y[i].v[n-1],y[i].o[n-1],y[i].i[0],y[i].v[0],r,c,_),_=!1):(d=bez.getNewSegment(y[i].v[n-1],y[i].v[0],y[i].o[n-1],y[i].i[0],(e.s-w)/T,(e.e-w)/T,h[n-1]),this.addSegmentFromArray(d,r,c,_),_=!1,r.c=!1)}else r.c=!1;w+=l.addedLength,c+=1}if(r._length&&(r.setXYAt(r.v[f][0],r.v[f][1],"i",f),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),w>e.e)break;
vendor: 27,485 bytes, line 2
2i<v-1&&(r=shapePool.newElement(),_=!0,E.push(r),c=0)}return E},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(t,data){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,data.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(path,t){var e=t/100,r=[0,0],n=path._length,i=0;for(i=0;i<n;i+=1)r[0]+=path.v[i][0],r[1]+=path.v[i][1];r[0]/=n,r[1]/=n;var o,l,c,h,d,f,m=shapePool.newElement();for(m.c=path.c,i=0;i<n;i+=1)o=path.v[i][0]+(r[0]-path.v[i][0])*e,l=path.v[i][1]+(r[1]-path.v[i][1])*e,c=path.o[i][0]+(r[0]-path.o[i][0])*-e,h=path.o[i][1]+(r[1]-path.o[i][1])*-e,d=path.i[i][0]+(r[0]-path.i[i][0])*-e,f=path.i[i][1]+(r[1]-path.i[i][1])*-e,m.setTripleAt(o,l,c,h,d,f,i);return m},PuckerAndBloatModifier.prototype.processShapes=function(t){var e,i,r,n,o,l,c=this.shapes.length,h=this.amount.v;if(0!==h)for(i=0;i<c;i+=1){if(l=(o=this.shapes[i]).localShapeCollection,o.shape._mdf||this._mdf||t)for(l.releaseShapes(),o.shape._mdf=!0,e=o.shape.paths.shapes,n=o.shape.paths._length,r=0;r<n;r+=1)l.addShape(this.processPath(e[r],h));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var t=[0,0];function e(t,data,e){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=data,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(e||t),data.p&&data.p.s?(this.px=PropertyFactory.getProp(t,data.p.x,0,0,this),this.py=PropertyFactory.getProp(t,data.p.y,0,0,this),data.p.z&&(this.pz=PropertyFactory.getProp(t,data.p.z,0,0,this))):this.p=PropertyFactory.getProp(t,data.p||{k:[0,0,0]},1,0,this),data.rx){if(this.rx=PropertyFactory.getProp(t,data.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(t,data.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(t,data.rz,0,degToRads,this),data.or.k[0].ti){var i,r=data.or.k.length;for(i=0;i<r;i+=1)data.or.k[i].to=null,data.or.k[i].ti=null}this.or=PropertyFactory.getProp(t,data.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(t,data.r||{k:0},0,degToRads,this);data.sk&&(this.sk=PropertyFactory.getProp(t,data.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(t,data.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(t,data.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(t,data.s||{k:[100,100,100]},1,.01,this),data.o?this.o=PropertyFactory.getProp(t,data.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return e.prototype={applyToMatrix:function(t){var e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||e,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),this.r?t.rotate(-this.r.v):t.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?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(e){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||e){var r;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 n,o;if(r=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(n=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/r,0),o=this.p.getValueAtTime(this.p.keyframes[0].t/r,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(n=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/r,0),o=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/r,0)):(n=this.p.pv,o=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/r,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){n=[],o=[];var l=this.px,c=this.py;l._caching.lastFrame+l.offsetTime<=l.keyframes[0].t?(n[0]=l.getValueAtTime((l.keyframes[0].t+.01)/r,0),n[1]=c.getValueAtTime((c.keyframes[0].t+.01)/r,0),o[0]=l.getValueAtTime(l.keyframes[0].t/r,0),o[1]=c.getValueAtTime(c.keyframes[0].t/r,0)):l._caching.lastFrame+l.offsetTime>=l.keyframes[l.keyframes.length-1].t?(n[0]=l.getValueAtTime(l.keyframes[l.keyframes.length-1].t/r,0),n[1]=c.getValueAtTime(c.keyframes[c.keyframes.length-1].t/r,0),o[0]=l.getValueAtTime((l.keyframes[l.keyframes.length-1].t-.01)/r,0),o[1]=c.getValueAtTime((c.keyframes[c.keyframes.length-1].t-.01)/r,0)):(n=[l.pv,c.pv],o[0]=l.getValueAtTime((l._caching.lastFrame+l.offsetTime-.01)/r,l.offsetTime),o[1]=c.getValueAtTime((c._caching.lastFrame+c.offsetTime-.01)/r,c.offsetTime))}else n=o=t;this.v.rotate(-Math.atan2(n[1]-o[1],n[0]-o[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.a.k&&(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],e),e.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},e.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(t,data,r){return new e(t,data,r)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(a,b){return 1e5*Math.abs(a-b)<=Math.min(Math.abs(a),Math.abs(b))}function floatZero(t){return Math.abs(t)<=1e-5}function lerp(t,e,r){return t*(1-r)+e*r}function lerpPoint(t,e,r){return[lerp(t[0],e[0],r),lerp(t[1],e[1],r)]}function quadRoots(a,b,t){if(0===a)return[];var s=b*b-4*a*t;if(s<0)return[];var e=-b/(2*a);if(0===s)return[e];var r=Math.sqrt(s)/(2*a);return[e-r,e+r]}function polynomialCoefficients(t,e,r,n){return[3*e-t-3*r+n,3*t-6*e+3*r,-3*t+3*e,t]}function singlePoint(p){return new PolynomialBezier(p,p,p,p,!1)}function PolynomialBezier(t,e,r,n,o){o&&pointEqual(t,e)&&(e=lerpPoint(t,n,1/3)),o&&pointEqual(r,n)&&(r=lerpPoint(t,n,2/3));var l=polynomialCoefficients(t[0],e[0],r[0],n[0]),c=polynomialCoefficients(t[1],e[1],r[1],n[1]);this.a=[l[0],c[0]],this.b=[l[1],c[1]],this.c=[l[2],c[2]],this.d=[l[3],c[3]],this.points=[t,e,r,n]}function extrema(t,e){var r=t.points[0][e],n=t.points[t.points.length-1][e];if(r>n){var o=n;n=r,r=o}for(var l=quadRoots(3*t.a[e],2*t.b[e],t.c[e]),i=0;i<l.length;i+=1)if(l[i]>0&&l[i]<1){var c=t.point(l[i])[e];c<r?r=c:c>n&&(n=c)}return{min:r,max:n}}function intersectData(t,e,r){var n=t.boundingBox();return{cx:n.cx,cy:n.cy,width:n.width,height:n.height,bez:t,t:(e+r)/2,t1:e,t2:r}}function splitData(data){var t=data.bez.split(.5);return[intersectData(t[0],data.t1,data.t),intersectData(t[1],data.t,data.t2)]}function boxIntersect(t,e){return 2*Math.abs(t.cx-e.cx)<t.width+e.width&&2*Math.abs(t.cy-e.cy)<t.height+e.height}function intersectsImpl(t,e,r,n,o,l){if(boxIntersect(t,e))if(r>=l||t.width<=n&&t.height<=n&&e.width<=n&&e.height<=n)o.push([t.t,e.t]);else{var c=splitData(t),h=splitData(e);intersectsImpl(c[0],h[0],r+1,n,o,l),intersectsImpl(c[0],h[1],r+1,n,o,l),intersectsImpl(c[1],h[0],r+1,n,o,l),intersectsImpl(c[1],h[1],r+1,n,o,l)}}function crossProduct(a,b){return[a[1]*b[2]-a[2]*b[1],a[2]*b[0]-a[0]*b[2],a[0]*b[1]-a[1]*b[0]]}function lineIntersection(t,e,r,n){var o=[t[0],t[1],1],l=[e[0],e[1],1],c=[r[0],r[1],1],h=[n[0],n[1],1],d=crossProduct(crossProduct(o,l),crossProduct(c,h));return floatZero(d[2])?null:[d[0]/d[2],d[1]/d[2]]}function polarOffset(p,t,e){return[p[0]+Math.cos(t)*e,p[1]-Math.sin(t)*e]}function pointDistance(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function pointEqual(t,e){return floatEqual(t[0],e[0])&&floatEqual(t[1],e[1])}function ZigZagModifier(){}function setPoint(t,e,r,n,o,l,c){var h=r-Math.PI/2,d=r+Math.PI/2,f=e[0]+Math.cos(r)*n*o,m=e[1]-Math.sin(r)*n*o;t.setTripleAt(f,m,f+Math.cos(h)*l,m-Math.sin(h)*l,f+Math.cos(d)*c,m-Math.sin(d)*c,t.length())}function getPerpendicularVector(t,e){var r=[e[0]-t[0],e[1]-t[1]],n=.5*-Math.PI;return[Math.cos(n)*r[0]-Math.sin(n)*r[1],Math.sin(n)*r[0]+Math.cos(n)*r[1]]}function getProjectingAngle(path,t){var e=0===t?path.length()-1:t-1,r=(t+1)%path.length(),n=getPerpendicularVector(path.v[e],path.v[r]);return Math.atan2(0,1)-Math.atan2(n[1],n[0])}function zigZagCorner(t,path,e,r,n,o,l){var c=getProjectingAngle(path,e),h=path.v[e%path._length],d=path.v[0===e?path._length-1:e-1],f=path.v[(e+1)%path._length],m=2===o?Math.sqrt(Math.pow(h[0]-d[0],2)+Math.pow(h[1]-d[1],2)):0,y=2===o?Math.sqrt(Math.pow(h[0]-f[0],2)+Math.pow(h[1]-f[1],2)):0;setPoint(t,path.v[e%path._length],c,l,r,y/(2*(n+1)),m/(2*(n+1)),o)}function zigZagSegment(t,e,r,n,o,l){for(var i=0;i<n;i+=1){var c=(i+1)/(n+1),h=2===o?Math.sqrt(Math.pow(e.points[3][0]-e.points[0][0],2)+Math.pow(e.points[3][1]-e.points[0][1],2)):0,d=e.normalAngle(c);setPoint(t,e.point(c),d,l,r,h/(2*(n+1)),h/(2*(n+1)),o),l=-l}return l}function linearOffset(t,e,r){var n=Math.atan2(e[0]-t[0],e[1]-t[1]);return[polarOffset(t,n,r),polarOffset(e,n,r)]}function offsetSegment(t,e){var r,n,o,l,c,h,d;r=(d=linearOffset(t.points[0],t.points[1],e))[0],n=d[1],o=(d=linearOffset(t.points[1],t.points[2],e))[0],l=d[1],c=(d=linearOffset(t.points[2],t.points[3],e))[0],h=d[1];var f=lineIntersection(r,n,o,l);null===f&&(f=n);var m=lineIntersection(c,h,o,l);return null===m&&(m=c),new PolynomialBezier(r,f,m,h)}function joinLines(t,e,r,n,o){var l=e.points[3],c=r.points[0];if(3===n)return l;if(pointEqual(l,c))return l;if(2===n){var h=-e.tangentAngle(1),d=-r.tangentAngle(0)+Math.PI,f=lineIntersection(l,polarOffset(l,h+Math.PI/2,100),c,polarOffset(c,h+Math.PI/2,100)),m=f?pointDistance(f,l):pointDistance(l,c)/2,y=polarOffset(l,h,2*m*roundCorner);return t.setXYAt(y[0],y[1],"o",t.length()-1),y=polarOffset(c,d,2*m*roundCorner),t.setTripleAt(c[0],c[1],c[0],c[1],y[0],y[1],t.length()),c}var v=lineIntersection(pointEqual(l,e.points[2])?e.points[0]:e.points[2],l,c,pointEqual(c,r.points[1])?r.points[3]:r.points[1]);return v&&pointDistance(v,l)<o?(t.setTripleAt(v[0],v[1],v[0],v[1],v[0],v[1],t.length()),v):l}function getIntersection(a,b){var t=a.intersections(b);return t.length&&floatEqual(t[0][0],1)&&t.shift(),t.length?t[0]:null}function pruneSegmentIntersection(a,b){var t=a.slice(),e=b.slice(),r=getIntersection(a[a.length-1],b[0]);return r&&(t[a.length-1]=a[a.length-1].split(r[0])[0],e[0]=b[0].split(r[1])[1]),a.length>1&&b.length>1&&(r=getIntersection(a[0],b[b.length-1]))?[[a[0].split(r[0])[0]],[b[b.length-1].split(r[1])[1]]]:[t,e]}function pruneIntersections(t){for(var e,i=1;i<t.length;i+=1)e=pruneSegmentIntersection(t[i-1],t[i]),t[i-1]=e[0],t[i]=e[1];return t.length>1&&(e=pruneSegmentIntersection(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}function offsetSegmentSplit(t,e){var r,n,o,l,c=t.inflectionPoints();if(0===c.length)return[offsetSegment(t,e)];if(1===c.length||floatEqual(c[1],1))return r=(o=t.split(c[0]))[0],n=o[1],[offsetSegment(r,e),offsetSegment(n,e)];r=(o=t.split(c[0]))[0];var h=(c[1]-c[0])/(1-c[0]);return l=(o=o[1].split(h))[0],n=o[1],[offsetSegment(r,e),offsetSegment(l,e),offsetSegment(n,e)]}function OffsetPathModifier(){}function getFontProperties(t){for(var e=t.fStyle?t.fStyle.split(" "):[],r="normal",n="normal",o=e.length,i=0;i<o;i+=1)switch(e[i].toLowerCase()){case"italic":n="italic";break;case"bold":r="700";break;case"black":r="900";break;case"medium":r="500";break;case"regular":case"normal":r="400";break;case"light":case"thin":r="200"}return{style:n,weight:t.fWeight||r}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(t,data){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(t,data.c,0,null,this),this.o=PropertyFactory.getProp(t,data.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(t,data.tr,this),this.so=PropertyFactory.getProp(t,data.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(t,data.tr.eo,0,.01,this),this.data=data,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(t,e,r,n,o,l){var c=l?-1:1,h=n.s.v[0]+(1-n.s.v[0])*(1-o),d=n.s.v[1]+(1-n.s.v[1])*(1-o);t.translate(n.p.v[0]*c*o,n.p.v[1]*c*o,n.p.v[2]),e.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),e.rotate(-n.r.v*c*o),e.translate(n.a.v[0],n.a.v[1],n.a.v[2]),r.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),r.scale(l?1/h:h,l?1/d:d),r.translate(n.a.v[0],n.a.v[1],n.a.v[2])},RepeaterModifier.prototype.init=function(t,e,r,n){for(this.elem=t,this.arr=e,this.pos=r,this.elemsData=n,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[r]);r>0;)r-=1,this._elements.unshift(e[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var i,e=t.length;for(i=0;i<e;i+=1)t[i]._processed=!1,"gr"===t[i].ty&&this.resetElements(t[i].it)},RepeaterModifier.prototype.cloneElements=function(t){var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},RepeaterModifier.prototype.changeGroupRender=function(t,e){var i,r=t.length;for(i=0;i<r;i+=1)t[i]._render=e,"gr"===t[i].ty&&this.changeGroupRender(t[i].it,e)},RepeaterModifier.prototype.processShapes=function(t){var e,r,i,n,o,l=!1;if(this._mdf||t){var c,h=Math.ceil(this.c.v);if(this._groups.length<h){for(;this._groups.length<h;){var d={it:this.cloneElements(this._elements),ty:"gr"};d.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,d),this._groups.splice(0,0,d),this._currentCopies+=1}this.elem.reloadShapes(),l=!0}for(o=0,i=0;i<=this._groups.length-1;i+=1){if(c=o<h,this._groups[i]._render=c,this.changeGroupRender(this._groups[i].it,c),!c){var f=this.elemsData[i].it,m=f[f.length-1];0!==m.transform.op.v?(m.transform.op._mdf=!0,m.transform.op.v=0):m.transform.op._mdf=!1}o+=1}this._currentCopies=h;var y=this.o.v,v=y%1,w=y>0?Math.floor(y):Math.ceil(y),E=this.pMatrix.props,_=this.rMatrix.props,T=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var S,x,I=0;if(y>0){for(;I<w;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),I+=1;v&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,v,!1),I+=v)}else if(y<0){for(;I>w;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),I-=1;v&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-v,!0),I-=v)}for(i=1===this.data.m?0:this._currentCopies-1,n=1===this.data.m?1:-1,o=this._currentCopies;o;){if(x=(r=(e=this.elemsData[i].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),0!==I){for((0!==i&&1===n||i!==this._currentCopies-1&&-1===n)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(_[0],_[1],_[2],_[3],_[4],_[5],_[6],_[7],_[8],_[9],_[10],_[11],_[12],_[13],_[14],_[15]),this.matrix.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]),this.matrix.transform(E[0],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]),S=0;S<x;S+=1)r[S]=this.matrix.props[S];this.matrix.reset()}else for(this.matrix.reset(),S=0;S<x;S+=1)r[S]=this.matrix.props[S];I+=1,o-=1,i+=n}}else for(o=this._currentCopies,i=0,n=1;o;)r=(e=this.elemsData[i].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,o-=1,i+=n;return l},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(t,data){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(t,data.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(path,t){var i,e=shapePool.newElement();e.c=path.c;var r,n,o,l,c,h,d,f,m,y,v,w,E=path._length,_=0;for(i=0;i<E;i+=1)r=path.v[i],o=path.o[i],n=path.i[i],r[0]===o[0]&&r[1]===o[1]&&r[0]===n[0]&&r[1]===n[1]?0!==i&&i!==E-1||path.c?(l=0===i?path.v[E-1]:path.v[i-1],h=(c=Math.sqrt(Math.pow(r[0]-l[0],2)+Math.pow(r[1]-l[1],2)))?Math.min(c/2,t)/c:0,d=v=r[0]+(l[0]-r[0])*h,f=w=r[1]-(r[1]-l[1])*h,m=d-(d-r[0])*roundCorner,y=f-(f-r[1])*roundCorner,e.setTripleAt(d,f,m,y,v,w,_),_+=1,l=i===E-1?path.v[0]:path.v[i+1],h=(c=Math.sqrt(Math.pow(r[0]-l[0],2)+Math.pow(r[1]-l[1],2)))?Math.min(c/2,t)/c:0,d=m=r[0]+(l[0]-r[0])*h,f=y=r[1]+(l[1]-r[1])*h,v=d-(d-r[0])*roundCorner,w=f-(f-r[1])*roundCorner,e.setTripleAt(d,f,m,y,v,w,_),_+=1):(e.setTripleAt(r[0],r[1],o[0],o[1],n[0],n[1],_),_+=1):(e.setTripleAt(path.v[i][0],path.v[i][1],path.o[i][0],path.o[i][1],path.i[i][0],path.i[i][1],_),_+=1);return e},RoundCornersModifier.prototype.processShapes=function(t){var e,i,r,n,o,l,c=this.shapes.length,h=this.rd.v;if(0!==h)for(i=0;i<c;i+=1){if(l=(o=this.shapes[i]).localShapeCollection,o.shape._mdf||this._mdf||t)for(l.releaseShapes(),o.shape._mdf=!0,e=o.shape.paths.shapes,n=o.shape.paths._length,r=0;r<n;r+=1)l.addShape(this.processPath(e[r],h));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(t){return[((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]},PolynomialBezier.prototype.derivative=function(t){return[(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(t){var p=this.derivative(t);return Math.atan2(p[1],p[0])},PolynomialBezier.prototype.normalAngle=function(t){var p=this.derivative(t);return Math.atan2(p[0],p[1])},PolynomialBezier.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(t))return[];var e=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,r=e*e-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(r<0)return[];var n=Math.sqrt(r);return floatZero(n)?n>0&&n<1?[e]:[]:[e-n,e+n].filter((function(t){return t>0&&t<1}))},PolynomialBezier.prototype.split=function(t){if(t<=0)return[singlePoint(this.points[0]),this];if(t>=1)return[this,singlePoint(this.points[this.points.length-1])];var e=lerpPoint(this.points[0],this.points[1],t),r=lerpPoint(this.points[1],this.points[2],t),n=lerpPoint(this.points[2],this.points[3],t),o=lerpPoint(e,r,t),l=lerpPoint(r,n,t),c=lerpPoint(o,l,t);return[new PolynomialBezier(this.points[0],e,o,c,!0),new PolynomialBezier(c,l,n,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}},PolynomialBezier.prototype.intersections=function(t,e,r){void 0===e&&(e=2),void 0===r&&(r=7);var n=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,e,n,r),n},PolynomialBezier.shapeSegment=function(t,e){var r=(e+1)%t.length();return new PolynomialBezier(t.v[e],t.o[e],t.i[r],t.v[r],!0)},PolynomialBezier.shapeSegmentInverted=function(t,e){var r=(e+1)%t.length();return new PolynomialBezier(t.v[r],t.i[r],t.o[e],t.v[e],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(t,data){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(t,data.s,0,null,this),this.frequency=PropertyFactory.getProp(t,data.r,0,null,this),this.pointsType=PropertyFactory.getProp(t,data.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(path,t,e,r){var n=path._length,o=shapePool.newElement();if(o.c=path.c,path.c||(n-=1),0===n)return o;var l=-1,c=PolynomialBezier.shapeSegment(path,0);zigZagCorner(o,path,0,t,e,r,l);for(var i=0;i<n;i+=1)l=zigZagSegment(o,c,t,e,r,-l),c=i!==n-1||path.c?PolynomialBezier.shapeSegment(path,(i+1)%n):null,zigZagCorner(o,path,i+1,t,e,r,l);return o},ZigZagModifier.prototype.processShapes=function(t){var e,i,r,n,o,l,c=this.shapes.length,h=this.amplitude.v,d=Math.max(0,Math.round(this.frequency.v)),f=this.pointsType.v;if(0!==h)for(i=0;i<c;i+=1){if(l=(o=this.shapes[i]).localShapeCollection,o.shape._mdf||this._mdf||t)for(l.releaseShapes(),o.shape._mdf=!0,e=o.shape.paths.shapes,n=o.shape.paths._length,r=0;r<n;r+=1)l.addShape(this.processPath(e[r],h,d,f));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(t,data){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,data.a,0,null,this),this.miterLimit=PropertyFactory.getProp(t,data.ml,0,null,this),this.lineJoin=data.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(t,e,r,n){var o=shapePool.newElement();o.c=t.c;var i,l,c,h=t.length();t.c||(h-=1);var d=[];for(i=0;i<h;i+=1)c=PolynomialBezier.shapeSegment(t,i),d.push(offsetSegmentSplit(c,e));if(!t.c)for(i=h-1;i>=0;i-=1)c=PolynomialBezier.shapeSegmentInverted(t,i),d.push(offsetSegmentSplit(c,e));d=pruneIntersections(d);var f=null,m=null;for(i=0;i<d.length;i+=1){var y=d[i];for(m&&(f=joinLines(o,m,y[0],r,n)),m=y[y.length-1],l=0;l<y.length;l+=1)c=y[l],f&&pointEqual(c.points[0],f)?o.setXYAt(c.points[1][0],c.points[1][1],"o",o.length()-1):o.setTripleAt(c.points[0][0],c.points[0][1],c.points[1][0],c.points[1][1],c.points[0][0],c.points[0][1],o.length()),o.setTripleAt(c.points[3][0],c.points[3][1],c.points[3][0],c.points[3][1],c.points[2][0],c.points[2][1],o.length()),f=c.points[3]}return d.length&&joinLines(o,m,d[0][0],r,n),o},OffsetPathModifier.prototype.processShapes=function(t){var e,i,r,n,o,l,c=this.shapes.length,h=this.amount.v,d=this.miterLimit.v,f=this.lineJoin;if(0!==h)for(i=0;i<c;i+=1){if(l=(o=this.shapes[i]).localShapeCollection,o.shape._mdf||this._mdf||t)for(l.releaseShapes(),o.shape._mdf=!0,e=o.shape.paths.shapes,n=o.shape.paths._length,r=0;r<n;r+=1)l.addShape(this.processPath(e[r],h,f,d));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var t={w:0,size:0,shapes:[],data:{shapes:[]}},e=[];e=e.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 r=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],n=[65039,8205];function o(t,e){var r=createTag("span");r.setAttribute("aria-hidden",!0),r.style.fontFamily=e;var n=createTag("span");n.innerText="giItT1WQy@!-/#",r.style.position="absolute",r.style.left="-10000px",r.style.top="-10000px",r.style.fontSize="300px",r.style.fontVariant="normal",r.style.fontStyle="normal",r.style.fontWeight="normal",r.style.letterSpacing="0",r.appendChild(n),document.body.appendChild(r);var o=n.offsetWidth;return n.style.fontFamily=function(t){var i,e=t.split(","),r=e.length,n=[];for(i=0;i<r;i+=1)"sans-serif"!==e[i]&&"monospace"!==e[i]&&n.push(e[i]);return n.join(",")}(t)+", "+e,{node:n,w:o,parent:r}}function l(t,e){var r,n=document.body&&e?"svg":"canvas",o=getFontProperties(t);if("svg"===n){var l=createNS("text");l.style.fontSize="100px",l.setAttribute("font-family",t.fFamily),l.setAttribute("font-style",o.style),l.setAttribute("font-weight",o.weight),l.textContent="1",t.fClass?(l.style.fontFamily="inherit",l.setAttribute("class",t.fClass)):l.style.fontFamily=t.fFamily,e.appendChild(l),r=l}else{var c=new OffscreenCanvas(500,500).getContext("2d");c.font=o.style+" "+o.weight+" 100px "+t.fFamily,r=c}return{measureText:function(text){return"svg"===n?(r.textContent=text,r.getComputedTextLength()):r.measureText(text).width}}}var c=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)};c.isModifier=function(t,e){var n=t.toString(16)+e.toString(16);return-1!==r.indexOf(n)},c.isZeroWidthJoiner=function(t,e){return e?t===n[0]&&e===n[1]:t===n[1]},c.isCombinedCharacter=function(t){return-1!==e.indexOf(t)};var h={addChars:function(t){if(t){var i;this.chars||(this.chars=[]);var e,r,n=t.length,o=this.chars.length;for(i=0;i<n;i+=1){for(e=0,r=!1;e<o;)this.chars[e].style===t[i].style&&this.chars[e].fFamily===t[i].fFamily&&this.chars[e].ch===t[i].ch&&(r=!0),e+=1;r||(this.chars.push(t[i]),o+=1)}}},addFonts:function(t,defs){if(t){if(this.chars)return this.isLoaded=!0,void(this.fonts=t.list);if(!document.body)return this.isLoaded=!0,t.list.forEach((function(data){data.helper=l(data),data.cache={}})),void(this.fonts=t.list);var i,e=t.list,r=e.length,n=r;for(i=0;i<r;i+=1){var c,h,d=!0;if(e[i].loaded=!1,e[i].monoCase=o(e[i].fFamily,"monospace"),e[i].sansCase=o(e[i].fFamily,"sans-serif"),e[i].fPath){if("p"===e[i].fOrigin||3===e[i].origin){if((c=document.querySelectorAll('style[f-forigin="p"][f-family="'+e[i].fFamily+'"], style[f-origin="3"][f-family="'+e[i].fFamily+'"]')).length>0&&(d=!1),d){var s=createTag("style");s.setAttribute("f-forigin",e[i].fOrigin),s.setAttribute("f-origin",e[i].origin),s.setAttribute("f-family",e[i].fFamily),s.type="text/css",s.innerText="@font-face {font-family: "+e[i].fFamily+"; font-style: normal; src: url('"+e[i].fPath+"');}",defs.appendChild(s)}}
vendor: 6,330 bytes, line 2
2else if("g"===e[i].fOrigin||1===e[i].origin){for(c=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),h=0;h<c.length;h+=1)-1!==c[h].href.indexOf(e[i].fPath)&&(d=!1);if(d){var f=createTag("link");f.setAttribute("f-forigin",e[i].fOrigin),f.setAttribute("f-origin",e[i].origin),f.type="text/css",f.rel="stylesheet",f.href=e[i].fPath,document.body.appendChild(f)}}else if("t"===e[i].fOrigin||2===e[i].origin){for(c=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),h=0;h<c.length;h+=1)e[i].fPath===c[h].src&&(d=!1);if(d){var m=createTag("link");m.setAttribute("f-forigin",e[i].fOrigin),m.setAttribute("f-origin",e[i].origin),m.setAttribute("rel","stylesheet"),m.setAttribute("href",e[i].fPath),defs.appendChild(m)}}}else e[i].loaded=!0,n-=1;e[i].helper=l(e[i],defs),e[i].cache={},this.fonts.push(e[i])}0===n?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(e,style,r){for(var i=0,n=this.chars.length;i<n;){if(this.chars[i].ch===e&&this.chars[i].style===style&&this.chars[i].fFamily===r)return this.chars[i];i+=1}return("string"==typeof e&&13!==e.charCodeAt(0)||!e)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",e,style,r)),t},getFontByName:function(t){for(var i=0,e=this.fonts.length;i<e;){if(this.fonts[i].fName===t)return this.fonts[i];i+=1}return this.fonts[0]},measureText:function(t,e,r){var n=this.getFontByName(e),o=t.charCodeAt(0);if(!n.cache[o+1]){var l=n.helper;if(" "===t){var c=l.measureText("|"+t+"|"),h=l.measureText("||");n.cache[o+1]=(c-h)/100}else n.cache[o+1]=l.measureText(t)/100}return n.cache[o+1]*r},checkLoadedFonts:function(){var i,t,e,r=this.fonts.length,n=r;for(i=0;i<r;i+=1)this.fonts[i].loaded?n-=1:"n"===this.fonts[i].fOrigin||0===this.fonts[i].origin?this.fonts[i].loaded=!0:(t=this.fonts[i].monoCase.node,e=this.fonts[i].monoCase.w,t.offsetWidth!==e?(n-=1,this.fonts[i].loaded=!0):(t=this.fonts[i].sansCase.node,e=this.fonts[i].sansCase.w,t.offsetWidth!==e&&(n-=1,this.fonts[i].loaded=!0)),this.fonts[i].loaded&&(this.fonts[i].sansCase.parent.parentNode.removeChild(this.fonts[i].sansCase.parent),this.fonts[i].monoCase.parent.parentNode.removeChild(this.fonts[i].monoCase.parent)));0!==n&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return c.prototype=h,c}();function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(component){-1===this.renderableComponents.indexOf(component)&&this.renderableComponents.push(component)},removeRenderableComponent:function(component){-1!==this.renderableComponents.indexOf(component)&&this.renderableComponents.splice(this.renderableComponents.indexOf(component),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},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(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!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 i,t=this.renderableComponents.length;for(i=0;i<t;i+=1)this.renderableComponents[i].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=(blendModeEnums={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"},function(t){return blendModeEnums[t]||""}),blendModeEnums;function SliderEffect(data,t,e){this.p=PropertyFactory.getProp(t,data.v,0,0,e)}function AngleEffect(data,t,e){this.p=PropertyFactory.getProp(t,data.v,0,0,e)}function ColorEffect(data,t,e){this.p=PropertyFactory.getProp(t,data.v,1,0,e)}function PointEffect(data,t,e){this.p=PropertyFactory.getProp(t,data.v,1,0,e)}function LayerIndexEffect(data,t,e){this.p=PropertyFactory.getProp(t,data.v,0,0,e)}function MaskIndexEffect(data,t,e){this.p=PropertyFactory.getProp(t,data.v,0,0,e)}function CheckboxEffect(data,t,e){this.p=PropertyFactory.getProp(t,data.v,0,0,e)}function NoValueEffect(){this.p={}}function EffectsManager(data,element){var i,t=data.ef||[];this.effectElements=[];var e,r=t.length;for(i=0;i<r;i+=1)e=new GroupEffect(t[i],element),this.effectElements.push(e)}function GroupEffect(data,element){this.init(data,element)}function BaseElement(){}function FrameElement(){}function FootageElement(data,t,e){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(data.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(data,t,e)}function AudioElement(data,t,e){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(data.refId),this.initBaseData(data,t,e),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=data.tm?PropertyFactory.getProp(this,data.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,data.au&&data.au.lv?data.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}function TransformElement(){}function MaskElement(data,element,t){this.data=data,this.element=element,this.globalData=t,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var i,path,defs=this.globalData.defs,e=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(e),this.solidPath="";var r,n,rect,o,l,c,h=this.masksProperties,d=0,f=[],m=createElementID(),y="clipPath",v="clip-path";
vendor: 7,572 bytes, line 2
2for(i=0;i<e;i+=1)if(("a"!==h[i].mode&&"n"!==h[i].mode||h[i].inv||100!==h[i].o.k||h[i].o.x)&&(y="mask",v="mask"),"s"!==h[i].mode&&"i"!==h[i].mode||0!==d?rect=null:((rect=createNS("rect")).setAttribute("fill","#ffffff"),rect.setAttribute("width",this.element.comp.data.w||0),rect.setAttribute("height",this.element.comp.data.h||0),f.push(rect)),path=createNS("path"),"n"===h[i].mode)this.viewData[i]={op:PropertyFactory.getProp(this.element,h[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,h[i],3),elem:path,lastPath:""},defs.appendChild(path);else{var w;if(d+=1,path.setAttribute("fill","s"===h[i].mode?"#000000":"#ffffff"),path.setAttribute("clip-rule","nonzero"),0!==h[i].x.k?(y="mask",v="mask",c=PropertyFactory.getProp(this.element,h[i].x,0,null,this.element),w=createElementID(),(o=createNS("filter")).setAttribute("id",w),(l=createNS("feMorphology")).setAttribute("operator","erode"),l.setAttribute("in","SourceGraphic"),l.setAttribute("radius","0"),o.appendChild(l),defs.appendChild(o),path.setAttribute("stroke","s"===h[i].mode?"#000000":"#ffffff")):(l=null,c=null),this.storedData[i]={elem:path,x:c,expan:l,lastPath:"",lastOperator:"",filterId:w,lastRadius:0},"i"===h[i].mode){n=f.length;var g=createNS("g");for(r=0;r<n;r+=1)g.appendChild(f[r]);var mask=createNS("mask");mask.setAttribute("mask-type","alpha"),mask.setAttribute("id",m+"_"+d),mask.appendChild(path),defs.appendChild(mask),g.setAttribute("mask","url("+getLocationHref()+"#"+m+"_"+d+")"),f.length=0,f.push(g)}else f.push(path);h[i].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[i]={elem:path,lastPath:"",op:PropertyFactory.getProp(this.element,h[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,h[i],3),invRect:rect},this.viewData[i].prop.k||this.drawPath(h[i],this.viewData[i].prop.v,this.viewData[i])}for(this.maskElement=createNS(y),e=f.length,i=0;i<e;i+=1)this.maskElement.appendChild(f[i]);d>0&&(this.maskElement.setAttribute("id",m),this.element.maskedElement.setAttribute(v,"url("+getLocationHref()+"#"+m+")"),defs.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(data,element){var i;this.data=data,this.effectElements=[],this.initDynamicPropertyContainer(element);var t,e=this.data.ef.length,r=this.data.ef;for(i=0;i<e;i+=1){switch(t=null,r[i].ty){case 0:t=new SliderEffect(r[i],element,this);break;case 1:t=new AngleEffect(r[i],element,this);break;case 2:t=new ColorEffect(r[i],element,this);break;case 3:t=new PointEffect(r[i],element,this);break;case 4:case 7:t=new CheckboxEffect(r[i],element,this);break;case 10:t=new LayerIndexEffect(r[i],element,this);break;case 11:t=new MaskIndexEffect(r[i],element,this);break;case 5:t=new EffectsManager(r[i],element,this);break;default:t=new NoValueEffect(r[i],element,this)}t&&this.effectElements.push(t)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var i=0,t=this.data.masksProperties.length;i<t;){if("n"!==this.data.masksProperties[i].mode&&!1!==this.data.masksProperties[i].cl)return!0;i+=1}return!1},initExpressions:function(){var t=getExpressionInterfaces();if(t){var e=t("layer"),r=t("effects"),n=t("shape"),o=t("text"),l=t("comp");this.layerInterface=e(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var c=r.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(c),0===this.data.ty||this.data.xt?this.compInterface=l(this):4===this.data.ty?(this.layerInterface.shapeInterface=n(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=o(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var t=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(data,t,e){this.globalData=t,this.comp=e,this.data=data,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(t,e){var i,r=this.dynamicProperties.length;for(i=0;i<r;i+=1)(e||this._isParent&&"transform"===this.dynamicProperties[i].propType)&&(this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},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 t=getExpressionInterfaces();if(t){var e=t("footage");this.layerInterface=e(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else{var e=this.tm.v;this._currentTime=e}this._volume=this.lv.v[0];var r=this._volume*this._volumeMultiplier;this._previousVolume!==r&&(this._previousVolume=r,this.audio.volume(r))},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(t){this.audio.rate(t)},AudioElement.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*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(t){var i,data,e=this.layers.length;for(this.completeLayers=!0,i=e-1;i>=0;i-=1)this.elements[i]||(data=this.layers[i]).ip-data.st<=t-this.layers[i].st&&data.op-data.st>t-this.layers[i].st&&this.buildItem(i),this.completeLayers=!!this.elements[i]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:default:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t)}
vendor: 7,278 bytes, line 2
2},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(data){return new AudioElement(data,this.globalData,this)},BaseRenderer.prototype.createFootage=function(data){return new FootageElement(data,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var i,t=this.layers.length;for(i=0;i<t;i+=1)this.buildItem(i);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(t){var i;this.completeLayers=!1;var e,r=t.length,n=this.layers.length;for(i=0;i<r;i+=1)for(e=0;e<n;){if(this.layers[e].id===t[i].id){this.layers[e]=t[i];break}e+=1}},BaseRenderer.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(element,t,e){for(var r=this.elements,n=this.layers,i=0,o=n.length;i<o;)n[i].ind==t&&(r[i]&&!0!==r[i]?(e.push(r[i]),r[i].setAsParent(),void 0!==n[i].parent?this.buildElementParenting(element,n[i].parent,e):element.setHierarchy(e)):(this.buildItem(i),this.addPendingElement(element))),i+=1},BaseRenderer.prototype.addPendingElement=function(element){this.pendingElements.push(element)},BaseRenderer.prototype.searchExtraCompositions=function(t){var i,e=t.length;for(i=0;i<e;i+=1)if(t[i].xt){var r=this.createComp(t[i]);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}},BaseRenderer.prototype.getElementByPath=function(path){var element,t=path.shift();if("number"==typeof t)element=this.elements[t];else{var i,e=this.elements.length;for(i=0;i<e;i+=1)if(this.elements[i].data.nm===t){element=this.elements[i];break}}return 0===path.length?element:element.getElementByPath(path)},BaseRenderer.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new FontManager,this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),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=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}},TransformElement.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Matrix},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 t,e=this.finalTransform.mat,i=0,r=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;i<r;){if(this.hierarchy[i].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}i+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),i=0;i<r;i+=1)t=this.hierarchy[i].finalTransform.mProp.v.props,e.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])}},globalToLocal:function(t){var e=[];e.push(this.finalTransform);for(var i,r=!0,n=this.comp;r;)n.finalTransform?(n.data.hasMask&&e.splice(0,0,n.finalTransform),n=n.comp):r=!1;var o,l=e.length;for(i=0;i<l;i+=1)o=e[i].mat.applyToPointArray(0,0,0),t=[t[0]-o[0],t[1]-o[1],0];return t},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var i,e=this.element.finalTransform.mat,r=this.masksProperties.length;for(i=0;i<r;i+=1)if((this.viewData[i].prop._mdf||t)&&this.drawPath(this.masksProperties[i],this.viewData[i].prop.v,this.viewData[i]),(this.viewData[i].op._mdf||t)&&this.viewData[i].elem.setAttribute("fill-opacity",this.viewData[i].op.v),"n"!==this.masksProperties[i].mode&&(this.viewData[i].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[i].invRect.setAttribute("transform",e.getInverseMatrix().to2dCSS()),this.storedData[i].x&&(this.storedData[i].x._mdf||t))){var n=this.storedData[i].expan;this.storedData[i].x.v<0?("erode"!==this.storedData[i].lastOperator&&(this.storedData[i].lastOperator="erode",this.storedData[i].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[i].filterId+")")),n.setAttribute("radius",-this.storedData[i].x.v)):("dilate"!==this.storedData[i].lastOperator&&(this.storedData[i].lastOperator="dilate",this.storedData[i].elem.setAttribute("filter",null)),this.storedData[i].elem.setAttribute("stroke-width",2*this.storedData[i].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var path="M0,0 ";return path+=" h"+this.globalData.compSize.w,path+=" v"+this.globalData.compSize.h,path+=" h-"+this.globalData.compSize.w,path+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(t,e,r){var i,n,o=" M"+e.v[0][0]+","+e.v[0][1];for(n=e._length,i=1;i<n;i+=1)o+=" C"+e.o[i-1][0]+","+e.o[i-1][1]+" "+e.i[i][0]+","+e.i[i][1]+" "+e.v[i][0]+","+e.v[i][1];if(e.c&&n>1&&(o+=" C"+e.o[i-1][0]+","+e.o[i-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),r.lastPath!==o){var l="";r.elem&&(e.c&&(l=t.inv?this.solidPath+o:o),r.elem.setAttribute("d",l)),r.lastPath=o}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var t={createFilter:function(t,e){var r=createNS("filter");return r.setAttribute("id",t),!0!==e&&(r.setAttribute("filterUnits","objectBoundingBox"),r.setAttribute("x","0%"),r.setAttribute("y","0%"),r.setAttribute("width","100%"),r.setAttribute("height","100%")),r},createAlphaToLuminanceFilter:function(){var t=createNS("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1"),t}};return t}(),featureSupport=function(){var t={maskType:!0};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))&&(t.maskType=!1),t}(),registeredEffects={},idPrefix="filter_result_";function SVGEffects(t){var i,e,source="SourceGraphic",r=t.data.ef?t.data.ef.length:0,n=createElementID(),o=filtersFactory.createFilter(n,!0),l=0;for(this.filters=[],i=0;i<r;i+=1){e=null;var c=t.data.ef[i].ty;registeredEffects[c]&&(e=new(0,registeredEffects[c].effect)(o,t.effectsManager.effectElements[i],t,idPrefix+l,source),source=idPrefix+l,registeredEffects[c].countsAsEffect&&(l+=1)),e&&this.filters.push(e)}l&&(t.globalData.defs.appendChild(o),t.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+n+")")),this.filters.length&&t.addRenderableComponent(this)}function registerEffect(t,e,r){registeredEffects[t]={effect:e,countsAsEffect:r}}function SVGBaseElement(){}function HierarchyElement(){}
vendor: 12,256 bytes, line 2
2function RenderableDOMElement(){}function IImageElement(data,t,e){this.assetData=t.getAssetData(data.refId),this.initElement(data,t,e),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(element,t){this.elem=element,this.pos=t}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(t){var i,e=this.filters.length;for(i=0;i<e;i+=1)this.filters[i].renderFrame(t)},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 t=null;if(this.data.td){this.matteMasks={};var e=createNS("g");e.setAttribute("id",this.layerId),e.appendChild(this.layerElement),t=e,this.globalData.defs.appendChild(e)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=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 r=createNS("clipPath"),n=createNS("path");n.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var o=createElementID();if(r.setAttribute("id",o),r.appendChild(n),this.globalData.defs.appendChild(r),this.checkMasks()){var l=createNS("g");l.setAttribute("clip-path","url("+getLocationHref()+"#"+o+")"),l.appendChild(this.layerElement),this.transformedElement=l,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+o+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},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)},getMatte:function(t){if(!this.matteMasks[t]){var e,r,n,o,l=this.layerId+"_"+t;if(1===t||3===t){var c=createNS("mask");c.setAttribute("id",l),c.setAttribute("mask-type",3===t?"luminance":"alpha"),(n=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),c.appendChild(n),this.globalData.defs.appendChild(c),featureSupport.maskType||1!==t||(c.setAttribute("mask-type","luminance"),e=createElementID(),r=filtersFactory.createFilter(e),this.globalData.defs.appendChild(r),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(o=createNS("g")).appendChild(n),c.appendChild(o),o.setAttribute("filter","url("+getLocationHref()+"#"+e+")"))}else if(2===t){var h=createNS("mask");h.setAttribute("id",l),h.setAttribute("mask-type","alpha");var d=createNS("g");h.appendChild(d),e=createElementID(),r=filtersFactory.createFilter(e);var f=createNS("feComponentTransfer");f.setAttribute("in","SourceGraphic"),r.appendChild(f);var m=createNS("feFuncA");m.setAttribute("type","table"),m.setAttribute("tableValues","1.0 0.0"),f.appendChild(m),this.globalData.defs.appendChild(r);var y=createNS("rect");y.setAttribute("width",this.comp.data.w),y.setAttribute("height",this.comp.data.h),y.setAttribute("x","0"),y.setAttribute("y","0"),y.setAttribute("fill","#ffffff"),y.setAttribute("opacity","0"),d.setAttribute("filter","url("+getLocationHref()+"#"+e+")"),d.appendChild(y),(n=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),d.appendChild(n),featureSupport.maskType||(h.setAttribute("mask-type","luminance"),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),o=createNS("g"),d.appendChild(y),o.appendChild(this.layerElement),d.appendChild(o)),this.globalData.defs.appendChild(h)}this.matteMasks[t]=l}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(data,t,e){this.initFrame(),this.initBaseData(data,t,e),this.initTransform(data,t,e),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.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,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 t=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",t),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(data){var i,t=this.shapeModifiers.length;for(i=0;i<t;i+=1)this.shapeModifiers[i].addShape(data)},isShapeInAnimatedModifiers:function(data){for(var t=this.shapeModifiers.length;0<t;)if(this.shapeModifiers[0].isAnimatedWithShape(data))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var i,t=this.shapes.length;for(i=0;i<t;i+=1)this.shapes[i].sh.reset();for(i=(t=this.shapeModifiers.length)-1;i>=0&&!this.shapeModifiers[i].processShapes(this._isFirstFrame);i-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,i=0,r=e.length;i<r;){if(e[i].elem===t)return e[i].pos;i+=1}return 0},addProcessedElement:function(t,e){for(var r=this.processedElements,i=r.length;i;)if(r[i-=1].elem===t)return void(r[i].pos=e);r.push(new ProcessedElement(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(t,e,r){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=r,this.lvl=e,this._isAnimated=!!r.k;for(var i=0,n=t.length;i<n;){if(t[i].mProps.dynamicProperties.length){this._isAnimated=!0;break}i+=1}}function SVGStyleData(data,t){this.data=data,this.type=data.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=!0===data.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(t,data,e,r){var i;this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(data.length),this.renderer=e,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",data.length?data.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(r);var n,o=data.length||0;for(i=0;i<o;i+=1)n=PropertyFactory.getProp(t,data[i].v,0,0,this),this.k=n.k||this.k,this.dataProps[i]={n:data[i].n,p:n};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(t,data,e){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,data.o,0,.01,this),this.w=PropertyFactory.getProp(t,data.w,0,null,this),this.d=new DashProperty(t,data.d||{},"svg",this),this.c=PropertyFactory.getProp(t,data.c,1,255,this),this.style=e,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(t,data,e){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,data.o,0,.01,this),this.c=PropertyFactory.getProp(t,data.c,1,255,this),this.style=e}function SVGNoStyleData(t,data,e){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=e}function GradientProperty(t,data,e){this.data=data,this.c=createTypedArray("uint8c",4*data.p);var r=data.k.k[0].s?data.k.k[0].s.length-4*data.p:data.k.k.length-4*data.p;this.o=createTypedArray("float32",r),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=r,this.initDynamicPropertyContainer(e),this.prop=PropertyFactory.getProp(t,data.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(t,data,e){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,data,e)}function SVGGradientStrokeStyleData(t,data,e){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(t,data.w,0,null,this),this.d=new DashProperty(t,data.d||{},"svg",this),this.initGradientData(t,data,e),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(t,e,r){this.transform={mProps:t,op:e,container:r},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(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var i=0,e=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),i=0;i<e;i+=1)"o"!==this.dataProps[i].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[i].p.v:this.dashArray[i]=this.dataProps[i].p.v:this.dashoffset[0]=this.dataProps[i].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(t,e){for(var i=0,r=this.o.length/2;i<r;){if(Math.abs(t[4*i]-t[4*e+2*i])>.01)return!1;i+=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 i=0,t=this.data.k.k.length;i<t;){if(!this.comparePoints(this.data.k.k[i].s,this.data.p))return!1;i+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var i,e,r,n=4*this.data.p;for(i=0;i<n;i+=1)e=i%4==0?100:255,r=Math.round(this.prop.v[i]*e),this.c[i]!==r&&(this.c[i]=r,this._cmdf=!t);if(this.o.length)for(n=this.prop.v.length,i=4*this.data.p;i<n;i+=1)e=i%2==0?100:1,r=i%2==0?Math.round(100*this.prop.v[i]):this.prop.v[i],this.o[i-4*this.data.p]!==r&&(this.o[i-4*this.data.p]=r,this._omdf=!t);this._mdf=!t}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(t,data,e){this.o=PropertyFactory.getProp(t,data.o,0,.01,this),this.s=PropertyFactory.getProp(t,data.s,1,null,this),this.e=Pro
vendor: 8,716 bytes, line 2
2pertyFactory.getProp(t,data.e,1,null,this),this.h=PropertyFactory.getProp(t,data.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(t,data.a||{k:0},0,degToRads,this),this.g=new GradientProperty(t,data.g,this),this.style=e,this.stops=[],this.setGradientData(e.pElem,data),this.setGradientOpacity(data,e),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(t,data){var e=createElementID(),r=createNS(1===data.t?"linearGradient":"radialGradient");r.setAttribute("id",e),r.setAttribute("spreadMethod","pad"),r.setAttribute("gradientUnits","userSpaceOnUse");var n,o,l,c=[];for(l=4*data.g.p,o=0;o<l;o+=4)n=createNS("stop"),r.appendChild(n),c.push(n);t.setAttribute("gf"===data.ty?"fill":"stroke","url("+getLocationHref()+"#"+e+")"),this.gf=r,this.cst=c},SVGGradientFillStyleData.prototype.setGradientOpacity=function(data,t){if(this.g._hasOpacity&&!this.g._collapsable){var e,r,n,mask=createNS("mask"),o=createNS("path");mask.appendChild(o);var l=createElementID(),c=createElementID();mask.setAttribute("id",c);var h=createNS(1===data.t?"linearGradient":"radialGradient");h.setAttribute("id",l),h.setAttribute("spreadMethod","pad"),h.setAttribute("gradientUnits","userSpaceOnUse"),n=data.g.k.k[0].s?data.g.k.k[0].s.length:data.g.k.k.length;var d=this.stops;for(r=4*data.g.p;r<n;r+=2)(e=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),h.appendChild(e),d.push(e);o.setAttribute("gf"===data.ty?"fill":"stroke","url("+getLocationHref()+"#"+l+")"),"gs"===data.ty&&(o.setAttribute("stroke-linecap",lineCapEnum[data.lc||2]),o.setAttribute("stroke-linejoin",lineJoinEnum[data.lj||2]),1===data.lj&&o.setAttribute("stroke-miterlimit",data.ml)),this.of=h,this.ms=mask,this.ost=d,this.maskId=c,t.msElem=o}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(t,e,r,n){if(0===e)return"";var i,o=t.o,l=t.i,c=t.v,h=" M"+n.applyToPointStringified(c[0][0],c[0][1]);for(i=1;i<e;i+=1)h+=" C"+n.applyToPointStringified(o[i-1][0],o[i-1][1])+" "+n.applyToPointStringified(l[i][0],l[i][1])+" "+n.applyToPointStringified(c[i][0],c[i][1]);return r&&e&&(h+=" C"+n.applyToPointStringified(o[i-1][0],o[i-1][1])+" "+n.applyToPointStringified(l[0][0],l[0][1])+" "+n.applyToPointStringified(c[0][0],c[0][1]),h+="z"),h},SVGElementsRenderer=function(){var t=new Matrix,e=new Matrix;function r(t,e,r){(r||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",e.transform.op.v),(r||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function n(){}function o(r,n,o){var l,c,h,d,f,m,y,v,w,E,_,T=n.styles.length,S=n.lvl;for(m=0;m<T;m+=1){if(d=n.sh._mdf||o,n.styles[m].lvl<S){for(v=e.reset(),E=S-n.styles[m].lvl,_=n.transformers.length-1;!d&&E>0;)d=n.transformers[_].mProps._mdf||d,E-=1,_-=1;if(d)for(E=S-n.styles[m].lvl,_=n.transformers.length-1;E>0;)w=n.transformers[_].mProps.v.props,v.transform(w[0],w[1],w[2],w[3],w[4],w[5],w[6],w[7],w[8],w[9],w[10],w[11],w[12],w[13],w[14],w[15]),E-=1,_-=1}else v=t;if(c=(y=n.sh.paths)._length,d){for(h="",l=0;l<c;l+=1)(f=y.shapes[l])&&f._length&&(h+=buildShapeString(f,f._length,f.c,v));n.caches[m]=h}else h=n.caches[m];n.styles[m].d+=!0===r.hd?"":h,n.styles[m]._mdf=d||n.styles[m]._mdf}}function l(t,e,r){var n=e.style;(e.c._mdf||r)&&n.pElem.setAttribute("fill","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||r)&&n.pElem.setAttribute("fill-opacity",e.o.v)}function c(t,e,r){h(t,e,r),d(0,e,r)}function h(t,e,r){var n,i,o,l,c,h=e.gf,d=e.g._hasOpacity,f=e.s.v,m=e.e.v;if(e.o._mdf||r){var y="gf"===t.ty?"fill-opacity":"stroke-opacity";e.style.pElem.setAttribute(y,e.o.v)}if(e.s._mdf||r){var v=1===t.t?"x1":"cx",w="x1"===v?"y1":"cy";h.setAttribute(v,f[0]),h.setAttribute(w,f[1]),d&&!e.g._collapsable&&(e.of.setAttribute(v,f[0]),e.of.setAttribute(w,f[1]))}if(e.g._cmdf||r){n=e.cst;var E=e.g.c;for(o=n.length,i=0;i<o;i+=1)(l=n[i]).setAttribute("offset",E[4*i]+"%"),l.setAttribute("stop-color","rgb("+E[4*i+1]+","+E[4*i+2]+","+E[4*i+3]+")")}if(d&&(e.g._omdf||r)){var _=e.g.o;for(o=(n=e.g._collapsable?e.cst:e.ost).length,i=0;i<o;i+=1)l=n[i],e.g._collapsable||l.setAttribute("offset",_[2*i]+"%"),l.setAttribute("stop-opacity",_[2*i+1])}if(1===t.t)(e.e._mdf||r)&&(h.setAttribute("x2",m[0]),h.setAttribute("y2",m[1]),d&&!e.g._collapsable&&(e.of.setAttribute("x2",m[0]),e.of.setAttribute("y2",m[1])));else if((e.s._mdf||e.e._mdf||r)&&(c=Math.sqrt(Math.pow(f[0]-m[0],2)+Math.pow(f[1]-m[1],2)),h.setAttribute("r",c),d&&!e.g._collapsable&&e.of.setAttribute("r",c)),e.e._mdf||e.h._mdf||e.a._mdf||r){c||(c=Math.sqrt(Math.pow(f[0]-m[0],2)+Math.pow(f[1]-m[1],2)));var T=Math.atan2(m[1]-f[1],m[0]-f[0]),S=e.h.v;S>=1?S=.99:S<=-1&&(S=-.99);var x=c*S,I=Math.cos(T+e.a.v)*x+f[0],P=Math.sin(T+e.a.v)*x+f[1];h.setAttribute("fx",I),h.setAttribute("fy",P),d&&!e.g._collapsable&&(e.of.setAttribute("fx",I),e.of.setAttribute("fy",P))}}function d(t,e,r){var n=e.style,o=e.d;o&&(o._mdf||r)&&o.dashStr&&(n.pElem.setAttribute("stroke-dasharray",o.dashStr),n.pElem.setAttribute("stroke-dashoffset",o.dashoffset[0])),e.c&&(e.c._mdf||r)&&n.pElem.setAttribute("stroke","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||r)&&n.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||r)&&(n.pElem.setAttribute("stroke-width",e.w.v),n.msElem&&n.msElem.setAttribute("stroke-width",e.w.v))}return{createRenderFunction:function(data){switch(data.ty){case"fl":return l;case"gf":return h;case"gs":return c;case"st":return d;case"sh":case"el":case"rc":case"sr":return o;case"tr":return r;case"no":return n;default:return null}}}}();function SVGShapeElement(data,t,e){this.shapes=[],this.shapesData=data.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(data,t,e),this.prevViewData=[]}function LetterProps(t,e,r,n,o,p){this.o=t,this.sw=e,this.sc=r,this.fc=n,this.m=o,this.p=p,this._mdf={o:!0,sw:!!e,sc:!!r,fc:!!n,m:!0,p:!0}}function TextProperty(t,data){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=data,this.elem=t,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 i,t,e,style,r=this.shapes.length,n=this.stylesList.length,o=[],l=!1;for(e=0;e<n;e+=1){for(style=this.stylesList[e],l=!1,o.length=0,i=0;i<r;i+=1)-1!==(t=this.shapes[i]).styles.indexOf(style)&&(o.push(t),l=t._isAnimated||l);o.length>1&&l&&this.setShapesAsAnimated(o)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var i,e=t.length;for(i=0;i<e;i+=1)t[i].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(data,t){var e,r=new SVGStyleData(data,t),n=r.pElem;return"st"===data.ty?e=new SVGStrokeStyleData(this,data,r):"fl"===data.ty?e=new SVGFillStyleData(this,data,r):"gf"===data.ty||"gs"===data.ty?(e=new("gf"===data.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,data,r),this.globalData.defs.appendChild(e.gf),e.maskId&&(this.globalData.defs.appendChild(e.ms),this.globalData.defs.appendChild(e.of),n.setAttribute("mask","url("+getLocationHref()+"#"+e.maskId+")"))):"no"===data.ty&&(e=new SVGNoStyleData(this,data,r)),"st"!==data.ty&&"gs"!==data.ty||(n.setAttribute("stroke-linecap",lineCapEnum[data.lc||2]),n.setAttribute("stroke-linejoin",lineJoinEnum[data.lj||2]),n.setAttribute("fill-opacity","0"),1===data.lj&&n.setAttribute("stroke-miterlimit",data.ml)),2===data.r&&n.setAttribute("fill-rule","evenodd"),data.ln&&n.setAttribute("id",data.ln),data.cl&&n.setAttribute("class",data.cl),data.bm&&(n.style["mix-blend-mode"]=getBlendM
vendor: 7,190 bytes, line 2
2ode(data.bm)),this.stylesList.push(r),this.addToAnimatedContents(data,e),e},SVGShapeElement.prototype.createGroupElement=function(data){var t=new ShapeGroupData;return data.ln&&t.gr.setAttribute("id",data.ln),data.cl&&t.gr.setAttribute("class",data.cl),data.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(data.bm)),t},SVGShapeElement.prototype.createTransformElement=function(data,t){var e=TransformPropertyFactory.getTransformProperty(this,data,this),r=new SVGTransformData(e,e.o,t);return this.addToAnimatedContents(data,r),r},SVGShapeElement.prototype.createShapeElement=function(data,t,e){var r=4;"rc"===data.ty?r=5:"el"===data.ty?r=6:"sr"===data.ty&&(r=7);var n=new SVGShapeData(t,e,ShapePropertyFactory.getShapeProp(this,data,r,this));return this.shapes.push(n),this.addShapeToModifiers(n),this.addToAnimatedContents(data,n),n},SVGShapeElement.prototype.addToAnimatedContents=function(data,element){for(var i=0,t=this.animatedContents.length;i<t;){if(this.animatedContents[i].element===element)return;i+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(data),element:element,data:data})},SVGShapeElement.prototype.setElementStyles=function(t){var e,r=t.styles,n=this.stylesList.length;for(e=0;e<n;e+=1)this.stylesList[e].closed||r.push(this.stylesList[e])},SVGShapeElement.prototype.reloadShapes=function(){var i;this._isFirstFrame=!0;var t=this.itemsData.length;for(i=0;i<t;i+=1)this.prevViewData[i]=this.itemsData[i];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,i=0;i<t;i+=1)this.dynamicProperties[i].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(t,e,r,n,o,l,c){var i,h,d,f,m,y,v=[].concat(l),w=t.length-1,E=[],_=[];for(i=w;i>=0;i-=1){if((y=this.searchProcessedElement(t[i]))?e[i]=r[y-1]:t[i]._render=c,"fl"===t[i].ty||"st"===t[i].ty||"gf"===t[i].ty||"gs"===t[i].ty||"no"===t[i].ty)y?e[i].style.closed=!1:e[i]=this.createStyleElement(t[i],o),t[i]._render&&e[i].style.pElem.parentNode!==n&&n.appendChild(e[i].style.pElem),E.push(e[i].style);else if("gr"===t[i].ty){if(y)for(d=e[i].it.length,h=0;h<d;h+=1)e[i].prevViewData[h]=e[i].it[h];else e[i]=this.createGroupElement(t[i]);this.searchShapes(t[i].it,e[i].it,e[i].prevViewData,e[i].gr,o+1,v,c),t[i]._render&&e[i].gr.parentNode!==n&&n.appendChild(e[i].gr)}else"tr"===t[i].ty?(y||(e[i]=this.createTransformElement(t[i],n)),f=e[i].transform,v.push(f)):"sh"===t[i].ty||"rc"===t[i].ty||"el"===t[i].ty||"sr"===t[i].ty?(y||(e[i]=this.createShapeElement(t[i],v,o)),this.setElementStyles(e[i])):"tm"===t[i].ty||"rd"===t[i].ty||"ms"===t[i].ty||"pb"===t[i].ty||"zz"===t[i].ty||"op"===t[i].ty?(y?(m=e[i]).closed=!1:((m=ShapeModifiers.getModifier(t[i].ty)).init(this,t[i]),e[i]=m,this.shapeModifiers.push(m)),_.push(m)):"rp"===t[i].ty&&(y?(m=e[i]).closed=!0:(m=ShapeModifiers.getModifier(t[i].ty),e[i]=m,m.init(this,t,i,e),this.shapeModifiers.push(m),c=!1),_.push(m));this.addProcessedElement(t[i],i+1)}for(w=E.length,i=0;i<w;i+=1)E[i].closed=!0;for(w=_.length,i=0;i<w;i+=1)_[i].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var i;this.renderModifiers();var t=this.stylesList.length;for(i=0;i<t;i+=1)this.stylesList[i].reset();for(this.renderShape(),i=0;i<t;i+=1)(this.stylesList[i]._mdf||this._isFirstFrame)&&(this.stylesList[i].msElem&&(this.stylesList[i].msElem.setAttribute("d",this.stylesList[i].d),this.stylesList[i].d="M0 0"+this.stylesList[i].d),this.stylesList[i].pElem.setAttribute("d",this.stylesList[i].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var i,t,e=this.animatedContents.length;for(i=0;i<e;i+=1)t=this.animatedContents[i],(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(t,e,r,n,o,p){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 l=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,l=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,l=!0),this.sc!==r&&(this.sc=r,this._mdf.sc=!0,l=!0),this.fc!==n&&(this.fc=n,this._mdf.fc=!0,l=!0),this.m!==o&&(this.m=o,this._mdf.m=!0,l=!0),!p.length||this.p[0]===p[0]&&this.p[1]===p[1]&&this.p[4]===p[4]&&this.p[5]===p[5]&&this.p[12]===p[12]&&this.p[13]===p[13]||(this.p=p,this._mdf.p=!0,l=!0),l},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(t,data){for(var s in data)Object.prototype.hasOwnProperty.call(data,s)&&(t[s]=data[s]);return t},TextProperty.prototype.setCurrentData=function(data){data.__complete||this.completeTextData(data),this.currentData=data,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(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,r=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var i;this.lock=!0,this._mdf=!1;var n=this.effectsSequence.length,o=t||this.data.d.k[this.keysIndex].s;for(i=0;i<n;i+=1)o=r!==this.keysIndex?this.effectsSequence[i](o,o.t):this.effectsSequence[i](this.currentData,o.t);e!==o&&this.setCurrentData(o),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,i=0,r=t.length;i<=r-1&&!(i===r-1||t[i+1].t>e);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(text){for(var t,e,r=[],i=0,n=text.length,o=!1;i<n;)t=text.charCodeAt(i),FontManager.isCombinedCharacter(t)?r[r.length-1]+=text.charAt(i):t>=55296&&t<=56319?(e=text.charCodeAt(i+1))>=56320&&e<=57343?(o||FontManager.isModifier(t,e)?(r[r.length-1]+=text.substr(i,2),o=!1):r.push(text.substr(i,2)),i+=1):r.push(text.charAt(i)):t>56319?(e=text.charCodeAt(i+1),FontManager.isZeroWidthJoiner(t,e)?(o=!0,r[r.length-1]+=text.substr(i,2),i+=1):r.push(text.charAt(i))):FontManager.isZeroWidthJoiner(t)?(r[r.length-1]+=text.charAt(i),o=!0):r.push(text.charAt(i)),i+=1;return r},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var i,e,r,n,o,l,c,h=this.elem.globalData.fontManager,data=this.data,d=[],f=0,m=data.m.g,y=0,v=0,w=0,E=[],_=0,T=0,S=h.getFontByName(t.f),x=0,I=getFontProperties(S);t.fWeight=I.weight,t.fStyle=I.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),e=t.finalText.length,t.finalLineHeight=t.lh;var P,O=t.tr/1e3*t.finalSize;if(t.sz)for(var A,k,C=!0,D=t.sz[0],M=t.sz[1];C;){A=0,_=0,e=(k=this.buildFinalText(t.t)).length,O=t.tr/1e3*t.finalSize;var N=-1;for(i=0;i<e;
vendor: 15,362 bytes, line 2
2i+=1)P=k[i].charCodeAt(0),r=!1," "===k[i]?N=i:13!==P&&3!==P||(_=0,r=!0,A+=t.finalLineHeight||1.2*t.finalSize),h.chars?(c=h.getCharData(k[i],S.fStyle,S.fFamily),x=r?0:c.w*t.finalSize/100):x=h.measureText(k[i],t.f,t.finalSize),_+x>D&&" "!==k[i]?(-1===N?e+=1:i=N,A+=t.finalLineHeight||1.2*t.finalSize,k.splice(i,N===i?1:0,"\r"),N=-1,_=0):(_+=x,_+=O);A+=S.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&M<A?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=k,e=t.finalText.length,C=!1)}_=-O,x=0;var R,F=0;for(i=0;i<e;i+=1)if(r=!1,13===(P=(R=t.finalText[i]).charCodeAt(0))||3===P?(F=0,E.push(_),T=_>T?_:T,_=-2*O,n="",r=!0,w+=1):n=R,h.chars?(c=h.getCharData(R,S.fStyle,h.getFontByName(t.f).fFamily),x=r?0:c.w*t.finalSize/100):x=h.measureText(n,t.f,t.finalSize)," "===R?F+=x+O:(_+=x+O+F,F=0),d.push({l:x,an:x,add:y,n:r,anIndexes:[],val:n,line:w,animatorJustifyOffset:0}),2==m){if(y+=x,""===n||" "===n||i===e-1){for(""!==n&&" "!==n||(y-=x);v<=i;)d[v].an=y,d[v].ind=f,d[v].extra=x,v+=1;f+=1,y=0}}else if(3==m){if(y+=x,""===n||i===e-1){for(""===n&&(y-=x);v<=i;)d[v].an=y,d[v].ind=f,d[v].extra=x,v+=1;y=0,f+=1}}else d[f].ind=f,d[f].extra=0,f+=1;if(t.l=d,T=_>T?_:T,E.push(_),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=T,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=E;var j,L,B,V,z=data.a;l=z.length;var G=[];for(o=0;o<l;o+=1){for((j=z[o]).a.sc&&(t.strokeColorAnim=!0),j.a.sw&&(t.strokeWidthAnim=!0),(j.a.fc||j.a.fh||j.a.fs||j.a.fb)&&(t.fillColorAnim=!0),V=0,B=j.s.b,i=0;i<e;i+=1)(L=d[i]).anIndexes[o]=V,(1==B&&""!==L.val||2==B&&""!==L.val&&" "!==L.val||3==B&&(L.n||" "==L.val||i==e-1)||4==B&&(L.n||i==e-1))&&(1===j.s.rn&&G.push(V),V+=1);data.a[o].s.totalChars=V;var U,$=-1;if(1===j.s.rn)for(i=0;i<e;i+=1)$!=(L=d[i]).anIndexes[o]&&($=L.anIndexes[o],U=G.splice(Math.floor(Math.random()*G.length),1)[0]),L.anIndexes[o]=U}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=S.ascent*t.finalSize/100},TextProperty.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var r=this.copyData({},this.data.d.k[e].s);r=this.copyData(r,t),this.data.d.k[e].s=r,this.recalculate(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},TextProperty.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var t=Math.max,e=Math.min,r=Math.floor;function n(t,data){this._currentTextLength=-1,this.k=!1,this.data=data,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=PropertyFactory.getProp(t,data.s||{k:0},0,0,this),this.e="e"in data?PropertyFactory.getProp(t,data.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(t,data.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(t,data.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(t,data.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(t,data.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(t,data.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return n.prototype={getMult:function(n){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var o=0,l=0,c=1,h=1;this.ne.v>0?o=this.ne.v/100:l=-this.ne.v/100,this.xe.v>0?c=1-this.xe.v/100:h=1+this.xe.v/100;var d=BezierFactory.getBezierEasing(o,l,c,h).get,f=0,s=this.finalS,m=this.finalE,y=this.data.sh;if(2===y)f=d(f=m===s?n>=m?1:0:t(0,e(.5/(m-s)+(n-s)/(m-s),1)));else if(3===y)f=d(f=m===s?n>=m?0:1:1-t(0,e(.5/(m-s)+(n-s)/(m-s),1)));else if(4===y)m===s?f=0:(f=t(0,e(.5/(m-s)+(n-s)/(m-s),1)))<.5?f*=2:f=1-2*(f-.5),f=d(f);else if(5===y){if(m===s)f=0;else{var v=m-s,w=-v/2+(n=e(t(0,n+.5-s),m-s)),a=v/2;f=Math.sqrt(1-w*w/(a*a))}f=d(f)}else 6===y?(m===s?f=0:(n=e(t(0,n+.5-s),m-s),f=(1+Math.cos(Math.PI+2*Math.PI*n/(m-s)))/2),f=d(f)):(n>=r(s)&&(f=t(0,e(n-s<0?e(m,1)-(s-n):m-n,1))),f=d(f));if(100!==this.sm.v){var E=.01*this.sm.v;0===E&&(E=1e-8);var _=.5-.5*E;f<_?f=0:(f=(f-_)/E)>1&&(f=1)}return f*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,r=this.o.v/e,s=this.s.v/e+r,n=this.e.v/e+r;if(s>n){var o=s;s=n,n=o}this.finalS=s,this.finalE=n}},extendPrototype([DynamicPropertyContainer],n),{getTextSelectorProp:function(t,data,e){return new n(t,data,e)}}}();function TextAnimatorDataProperty(t,e,r){var n={propType:!1},o=PropertyFactory.getProp,l=e.a;this.a={r:l.r?o(t,l.r,0,degToRads,r):n,rx:l.rx?o(t,l.rx,0,degToRads,r):n,ry:l.ry?o(t,l.ry,0,degToRads,r):n,sk:l.sk?o(t,l.sk,0,degToRads,r):n,sa:l.sa?o(t,l.sa,0,degToRads,r):n,s:l.s?o(t,l.s,1,.01,r):n,a:l.a?o(t,l.a,1,0,r):n,o:l.o?o(t,l.o,0,.01,r):n,p:l.p?o(t,l.p,1,0,r):n,sw:l.sw?o(t,l.sw,0,0,r):n,sc:l.sc?o(t,l.sc,1,0,r):n,fc:l.fc?o(t,l.fc,1,0,r):n,fh:l.fh?o(t,l.fh,0,0,r):n,fs:l.fs?o(t,l.fs,0,.01,r):n,fb:l.fb?o(t,l.fb,0,.01,r):n,t:l.t?o(t,l.t,0,0,r):n},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,r),this.s.t=e.s.t}function TextAnimatorProperty(t,e,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var i,t,e=this._textData.a.length,r=PropertyFactory.getProp;for(i=0;i<e;i+=1)t=this._textData.a[i],this._animatorsData[i]=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(t,e){if(this.lettersChangedFlag=e,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var r,n,i,o,l,c,h,d,f,m,y,v,w,E,_,T,S,x,mask,I=this._moreOptions.alignment.v,P=this._animatorsData,O=this._textData,A=this.mHelper,k=this._renderType,C=this.renderedLetters.length,D=t.l;if(this._hasMaskedPath){if(mask=this._pathData.m,!this._pathData.n||this._pathData._mdf){var M,N=mask.v;for(this._pathData.r.v&&(N=N.reverse()),l={tLength:0,segments:[]},o=N._length-1,T=0,i=0;i<o;i+=1)M=bez.buildBezierData(N.v[i],N.v[i+1],[N.o[i][0]-N.v[i][0],N.o[i][1]-N.v[i][1]],[N.i[i+1][0]-N.v[i+1][0],N.i[i+1][1]-N.v[i+1][1]]),l.tLength+=M.segmentLength,l.segments.push(M),T+=M.segmentLength;i=o,mask.v.c&&(M=bez.buildBezierData(N.v[i],N.v[0],[N.o[i][0]-N.v[i][0],N.o[i][1]-N.v[i][1]],[N.i[0][0]-N.v[0][0],N.i[0][1]-N.v[0][1]]),l.tLength+=M.segmentLength,l.segments.push(M),T+=M.segmentLength),this._pathData.pi=l}if(l=this._pathData.pi,c=this._pathData.f.v,y=0,m=1,d=0,f=!0,E=l.segments,c<0&&mask.v.c)for(l.tLength<Math.abs(c)&&(c=-Math.abs(c)%l.tLength),m=(w=E[y=E.length-1].points).length-1;c<0;)c+=w[m].partialLength,(m-=1)<0&&(m=(w=E[y-=1].points).length-1);v=(w=E[y].points)[m-1],_=(h=w[m]).partialLength}o=D.length,r=0,n=0;var R,F,j,L,B,V=1.2*t.finalSize*.714,z=!0;j=P.length;var G,U,$,H,Y,W,K,Q,J,X,Z,tt,et=-1,nt=c,it=y,at=m,st=-1,ot="",lt=this.defaultPropsArray;if(2===t.j||1===t.j){var ct=0,ht=0,ut=2===t.j?-.5:-1,pt=0,ft=!0;for(i=0;i<o;i+=1)if(D[i].n){for(ct&&(ct+=ht);pt<i;)D[pt].animatorJustifyOffset=ct,pt+=1;ct=0,ft=!0}else{for(F=0;F<j;F+=1)(R=P[F].a).t.propType&&(ft&&2===t.j&&(ht+=R.t.v*ut),(B=P[F].s.getMult(D[i].anIndexes[F],O.a[F].s.totalChars)).length?ct+=R.t.v*B[0]*ut:ct+=R.t.v*B*ut);ft=!1}for(ct&&(ct+=ht);pt<i;)D[pt].animatorJustifyOffset=ct,pt+=1}for(i=0;i<o;i+=1){if(A.reset(),H=1,D[i].n)r=0,n+=t.yOffset,n+=z?1:0,c=nt,z=!1,this._hasMaskedPath&&(m=at,v=(w=E[y=it].points)[m-1],_=(h=w[m]).partialLength,d=0),ot="",Z="",J="",tt="",lt=this.defaultPropsArray;else{if(this._hasMaskedPath){if(st!==D[i].line){switch(t.j){case 1:c+=T-t.lineWidths[D[i].line];break;case 2:c+=(T-t.lineWidths[D[i].line])/2}st=D[i].line}et!==D[i].ind&&(D[et]&&(c+=D[et].extra),c+=D[i].an/2,et=D[i].ind),c+=I[0]*D[i].an*.005;var mt=0;for(F=0;F<j;F+=1)(R=P[F].a).p.propType&&((B=P[F].s.getMult(D[i].anIndexes[F],O.a[F].s.totalChars)).length?mt+=R.p.v[0]*B[0]:mt+=R.p.v[0]*B),R.a.propType&&((B=P[F].s.getMult(D[i].anIndexes[F],O.a[F].s.totalChars)).length?mt+=R.a.v[0]*B[0]:mt+=R.a.v[0]*B);for(f=!0,this._pathData.a.v&&(c=.5*D[0].an+(T-this._pathData.f.v-.5*D[0].an-.5*D[D.length-1].an)*et/(o-1),c+=this._pathData.f.v);f;)d+_>=c+mt||!w?(S=(c+mt-d)/h.partialLength,U=v.point[0]+(h.point[0]-v.point[0])*S,$=v.point[1]+(h.point[1]-v.point[1])*S,A.translate(-I[0]*D[i].an*.005,-I[1]*V*.01),f=!1):w&&(d+=h.partialLength,(m+=1)>=w.length&&(m=0,E[y+=1]?w=E[y].points:mask.v.c?(m=0,w=E[y=0].points):(d-=h.partialLength,w=null)),w&&(v=h,_=(h=w[m]).partialLength));G=D[i].an/2-D[i].add,A.translate(-G,0,0)}else G=D[i].an/2-D[i].add,A.translate(-G,0,0),A.translate(-I[0]*D[i].an*.005,-I[1]*V*.01,0);for(F=0;F<j;F+=1)(R=P[F].a).t.propType&&(B=P[F].s.getMult(D[i].anIndexes[F],O.a[F].s.totalChars),0===r&&0===t.j||(this._hasMaskedPath?B.length?c+=R.t.v*B[0]:c+=R.t.v*B:B.length?r+=R.t.v*B[0]:r+=R.t.v*B));for(t.strokeWidthAnim&&(W=t.sw||0),t.strokeColorAnim&&(Y=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(K=[t.fc[0],t.fc[1],t.fc[2]]),F=0;F<j;F+=1)(R=P[F].a).a.propType&&((B=P[F].s.getMult(D[i].anIndexes[F],O.a[F].s.totalChars)).length?A.translate(-R.a.v[0]*B[0],-R.a.v[1]*B[1],R.a.v[2]*B[2]):A.translate(-R.a.v[0]*B,-R.a.v[1]*B,R.a.v[2]*B));for(F=0;F<j;F+=1)(R=P[F].a).s.propType&&((B=P[F].s.getMult(D[i].anIndexes[F],O.a[F].s.totalChars)).length?A.scale(1+(R.s.v[0]-1)*B[0],1+(R.s.v[1]-1)*B[1],1):A.scale(1+(R.s.v[0]-1)*B,1+(R.s.v[1]-1)*B,1));for(F=0;F<j;F+=1){if(R=P[F].a,B=P[F].s.getMult(D[i].anIndexes[F],O.a[F].s.totalChars),R.sk.propType&&(B.length?A.skewFromAxis(-R.sk.v*B[0],R.sa.v*B[1]):A.skewFromAxis(-R.sk.v*B,R.sa.v*B)),R.r.propType&&(B.length?A.rotateZ(-R.r.v*B[2]):A.rotateZ(-R.r.v*B)),R.ry.propType&&(B.length?A.rotateY(R.ry.v*B[1]):A.rotateY(R.ry.v*B)),R.rx.propType&&(B.length?A.rotateX(R.rx.v*B[0]):A.rotateX(R.rx.v*B)),R.o.propType&&(B.length?H+=(R.o.v*B[0]-H)*B[0]:H+=(R.o.v*B-H)*B),t.strokeWidthAnim&&R.sw.propType&&(B.length?W+=R.sw.v*B[0]:W+=R.sw.v*B),t.strokeColorAnim&&R.sc.propType)for(Q=0;Q<3;Q+=1)B.length?Y[Q]+=(R.sc.v[Q]-Y[Q])*B[0]:Y[Q]+=(R.sc.v[Q]-Y[Q])*B;if(t.fillColorAnim&&t.fc){if(R.fc.propType)for(Q=0;Q<3;Q+=1)B.length?K[Q]+=(R.fc.v[Q]-K[Q])*B[0]:K[Q]+=(R.fc.v[Q]-K[Q])*B;R.fh.propType&&(K=B.length?addHueToRGB(K,R.fh.v*B[0]):addHueToRGB(K,R.fh.v*B)),R.fs.propType&&(K=B.length?addSaturationToRGB(K,R.fs.v*B[0]):addSaturationToRGB(K,R.fs.v*B)),R.fb.propType&&(K=B.length?addBrightnessToRGB(K,R.fb.v*B[0]):addBrightnessToRGB(K,R.fb.v*B))}}for(F=0;F<j;F+=1)(R=P[F].a).p.propType&&(B=P[F].s.getMult(D[i].anIndexes[F],O.a[F].s.totalChars),this._hasMaskedPath?B.length?A.translate(0,R.p.v[1]*B[0],-R.p.v[2]*B[1]):A.translate(0,R.p.v[1]*B,-R.p.v[2]*B):B.length?A.translate(R.p.v[0]*B[0],R.p.v[1]*B[1],-R.p.v[2]*B[2]):A.translate(R.p.v[0]*B,R.p.v[1]*B,-R.p.v[2]*B));if(t.strokeWidthAnim&&(J=W<0?0:W),t.strokeColorAnim&&(X="rgb("+Math.round(255*Y[0])+","+Math.round(255*Y[1])+","+Math.round(255*Y[2])+")"),t.fillColorAnim&&t.fc&&(Z="rgb("+Math.round(255*K[0])+","+Math.round(255*K[1])+","+Math.round(255*K[2])+")"),this._hasMaskedPath){if(A.translate(0,-t.ls),A.translate(0,I[1]*V*.01+n,0),this._pathData.p.v){x=(h.point[1]-v.point[1])/(h.point[0]-v.point[0]);var gt=180*Math.atan(x)/Math.PI;h.point[0]<v.point[0]&&(gt+=180),A.rotate(-gt*Math.PI/180)}A.translate(U,$,0),c-=I[0]*D[i].an*.005,D[i+1]&&et!==D[i+1].ind&&(c+=D[i].an/2,c+=.001*t.tr*t.finalSize)}else{switch(A.translate(r,n,0),t.ps&&A.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:A.translate(D[i].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[D[i].line]),0,0);break;case 2:A.translate(D[i].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[D[i].line])/2,0,0)}A.translate(0,-t.ls),A.translate(G,0,0),A.translate(I[0]*D[i].an*.005,I[1]*V*.01,0),r+=D[i].l+.001*t.tr*t.finalSize}"html"===k?ot=A.toCSS():"svg"===k?ot=A.to2dCSS():lt=[A.props[0],A.props[1],A.props[2],A.props[3],A.props[4],A.props[5],A.props[6],A.props[7],A.props[8],A.props[9],A.props[10],A.props[11],A.props[12],A.props[13],A.props[14],A.props[15]],tt=H}C<=i?(L=new LetterProps(tt,J,X,Z,ot,lt),this.renderedLetters.push(L),C+=1,this.lettersChangedFlag=!0):(L=this.renderedLetters[i],this.lettersChangedFlag=L.update(tt,J,X,Z,ot,lt)||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(data,t,e){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(data,t,e),this.textProperty=new TextProperty(this,data.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(data.t,this.renderType,this),this.initTransform(data,t,e),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},ITextElement.prototype.createPathShape=function(t,e){var r,n,o=e.length,l="";for(r=0;r<o;r+=1)"sh"===e[r].ty&&(n=e[r].ks.k,l+=buildShapeString(n,n.i.length,!0,t));return l},ITextElement.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},ITextElement.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},ITextElement.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},ITextElement.prototype.applyTextPropertiesToMatrix=function(t,e,r,n,o){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[r]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[r])/2,0,0)}e.translate(n,o,0)},ITextElement.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){};
vendor: 4,947 bytes, line 2
2var emptyShapeData={shapes:[]};function SVGTextLottieElement(data,t,e){this.textSpans=[],this.renderType="svg",this.initElement(data,t,e)}function ISolidElement(data,t,e){this.initElement(data,t,e)}function NullElement(data,t,e){this.initFrame(),this.initBaseData(data,t,e),this.initFrame(),this.initTransform(data,t,e),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(data,t,e){this.layers=data.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(data,t,e),this.tm=data.tm?PropertyFactory.getProp(this,data.tm,0,t.frameRate,this):{_placeholder:!0}}function SVGRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var r="";if(e&&e.title){var n=createNS("title"),o=createElementID();n.setAttribute("id",o),n.textContent=e.title,this.svgElement.appendChild(n),r+=o}if(e&&e.description){var l=createNS("desc"),c=createElementID();l.setAttribute("id",c),l.textContent=e.description,this.svgElement.appendChild(l),r+=" "+c}r&&this.svgElement.setAttribute("aria-labelledby",r);var defs=createNS("defs");this.svgElement.appendChild(defs);var h=createNS("g");this.svgElement.appendChild(h),this.layerElement=h,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!(e&&!1===e.hideOnTransparent),viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"},width:e&&e.width,height:e&&e.height,runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:defs,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function CVContextData(){var i;for(this.saved=[],this.cArrPos=0,this.cTr=new Matrix,this.cO=1,this.savedOp=createTypedArray("float32",15),i=0;i<15;i+=1)this.saved[i]=createTypedArray("float32",16);this._length=15}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}function CVEffects(){}function CVMaskElement(data,element){var i;this.data=data,this.element=element,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var t=this.masksProperties.length,e=!1;for(i=0;i<t;i+=1)"n"!==this.masksProperties[i].mode&&(e=!0),this.viewData[i]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[i],3);this.hasMasks=e,e&&this.element.addRenderableComponent(this)}function CVBaseElement(){}function CVShapeData(element,data,t,e){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var i,r=4;"rc"===data.ty?r=5:"el"===data.ty?r=6:"sr"===data.ty&&(r=7),this.sh=ShapePropertyFactory.getShapeProp(element,data,r,element);var n,o=t.length;for(i=0;i<o;i+=1)t[i].closed||(n={transforms:e.addTransformSequence(t[i].transforms),trNodes:[]},this.styledShapes.push(n),t[i].elements.push(n))}function CVShapeElement(data,t,e){this.shapes=[],this.shapesData=data.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(data,t,e)}function CVTextElement(data,t,e){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(data,t,e)}function CVImageElement(data,t,e){this.assetData=t.getAssetData(data.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(data,t,e)}function CVSolidElement(data,t,e){this.initElement(data,t,e)}function CanvasRendererBase(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||void 0===e.clearCanvas||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||""},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.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: 1,150 bytes, line 2
2w Matrix,this.completeLayers=!1,this.rendererType="canvas"}function CVCompElement(data,t,e){this.completeLayers=!1,this.layers=data.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(data,t,e),this.tm=data.tm?PropertyFactory.getProp(this,data.tm,0,t.frameRate,this):{_placeholder:!0}}function CanvasRenderer(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||void 0===e.clearCanvas||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||"",runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.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: 5,828 bytes, line 2
2w Matrix,this.completeLayers=!1,this.rendererType="canvas"}function HBaseElement(){}function HSolidElement(data,t,e){this.initElement(data,t,e)}function HShapeElement(data,t,e){this.shapes=[],this.shapesData=data.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(data,t,e),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(data,t,e){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(data,t,e)}function HCameraElement(data,t,e){this.initFrame(),this.initBaseData(data,t,e),this.initHierarchy();var r=PropertyFactory.getProp;if(this.pe=r(this,data.pe,0,0,this),data.ks.p.s?(this.px=r(this,data.ks.p.x,1,0,this),this.py=r(this,data.ks.p.y,1,0,this),this.pz=r(this,data.ks.p.z,1,0,this)):this.p=r(this,data.ks.p,1,0,this),data.ks.a&&(this.a=r(this,data.ks.a,1,0,this)),data.ks.or.k.length&&data.ks.or.k[0].to){var i,n=data.ks.or.k.length;for(i=0;i<n;i+=1)data.ks.or.k[i].to=null,data.ks.or.k[i].ti=null}this.or=r(this,data.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=r(this,data.ks.rx,0,degToRads,this),this.ry=r(this,data.ks.ry,0,degToRads,this),this.rz=r(this,data.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(data,t,e){this.assetData=t.getAssetData(data.refId),this.initElement(data,t,e)}function HybridRendererBase(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.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(data,t,e){this.layers=data.layers,this.supports3d=!data.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(data,t,e),this.tm=data.tm?PropertyFactory.getProp(this,data.tm,0,t.frameRate,this):{_placeholder:!0}}function HybridRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"},runExpressions:!e||void 0===e.runExpressions||e.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"}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(t){for(var i=0,e=t.length,r=[],n="";i<e;)t[i]===String.fromCharCode(13)||t[i]===String.fromCharCode(3)?(r.push(n),n=""):n+=t[i],i+=1;return r.push(n),r},SVGTextLottieElement.prototype.buildShapeData=function(data,t){if(data.shapes&&data.shapes.length){var e=data.shapes[0];if(e.it){var r=e.it[e.it.length-1];r.s&&(r.s.k[0]=t,r.s.k[1]=t)}}return data},SVGTextLottieElement.prototype.buildNewText=function(){var i,t;this.addDynamicProperty(this);var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e?e.l.length:0),e.fc?this.layerElement.setAttribute("fill",this.buildColor(e.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),e.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(e.sc)),this.layerElement.setAttribute("stroke-width",e.sw)),this.layerElement.setAttribute("font-size",e.finalSize);var r=this.globalData.fontManager.getFontByName(e.f);if(r.fClass)this.layerElement.setAttribute("class",r.fClass);else{this.layerElement.setAttribute("font-family",r.fFamily);var n=e.fWeight,o=e.fStyle;this.layerElement.setAttribute("font-style",o),this.layerElement.setAttribute("font-weight",n)}this.layerElement.setAttribute("aria-label",e.t);var l,c=e.l||[],h=!!this.globalData.fontManager.chars;t=c.length;var d=this.mHelper,f=this.data.singleShape,m=0,y=0,v=!0,w=.001*e.tr*e.finalSize;if(!f||h||e.sz){var E,_=this.textSpans.length;for(i=0;i<t;i+=1){if(this.textSpans[i]||(this.textSpans[i]={span:null,childSpan:null,glyph:null}),!h||!f||0===i){if(l=_>i?this.textSpans[i].span:createNS(h?"g":"text"),_<=i){if(l.setAttribute("stroke-linecap","butt"),l.setAttribute("stroke-linejoin","round"),l.setAttribute("stroke-miterlimit","4"),this.textSpans[i].span=l,h){var T=createNS("g");l.appendChild(T),this.textSpans[i].childSpan=T}this.textSpans[i].span=l,this.layerElement.appendChild(l)}l.style.display="inherit"}if(d.reset(),f&&(c[i].n&&(m=-w,y+=e.yOffset,y+=v?1:0,v=!1),this.applyTextPropertiesToMatrix(e,d,c[i].line,m,y),m+=c[i].l||0,m+=w),h){var S;if(1===(E=this.globalData.fontManager.getCharData(e.finalText[i],r.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily)).t)S=new SVGCompElement(E.data,this.globalData,this);else{var data=emptyShapeData;
vendor: 4,474 bytes, line 2
2E.data&&E.data.shapes&&(data=this.buildShapeData(E.data,e.finalSize)),S=new SVGShapeElement(data,this.globalData,this)}if(this.textSpans[i].glyph){var glyph=this.textSpans[i].glyph;this.textSpans[i].childSpan.removeChild(glyph.layerElement),glyph.destroy()}this.textSpans[i].glyph=S,S._debug=!0,S.prepareFrame(0),S.renderFrame(),this.textSpans[i].childSpan.appendChild(S.layerElement),1===E.t&&this.textSpans[i].childSpan.setAttribute("transform","scale("+e.finalSize/100+","+e.finalSize/100+")")}else f&&l.setAttribute("transform","translate("+d.props[12]+","+d.props[13]+")"),l.textContent=c[i].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}f&&l&&l.setAttribute("d","")}else{var x=this.textContainer,I="start";switch(e.j){case 1:I="end";break;case 2:I="middle";break;default:I="start"}x.setAttribute("text-anchor",I),x.setAttribute("letter-spacing",w);var P=this.buildTextContents(e.finalText);for(t=P.length,y=e.ps?e.ps[1]+e.ascent:0,i=0;i<t;i+=1)(l=this.textSpans[i].span||createNS("tspan")).textContent=P[i],l.setAttribute("x",0),l.setAttribute("y",y),l.style.display="inherit",x.appendChild(l),this.textSpans[i]||(this.textSpans[i]={span:null,glyph:null}),this.textSpans[i].span=l,y+=e.finalLineHeight;this.layerElement.appendChild(x)}for(;i<this.textSpans.length;)this.textSpans[i].span.style.display="none",i+=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 t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var i,t,e=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,i=0;i<e;i+=1)(t=this.textSpans[i].glyph)&&(t.prepareFrame(this.comp.renderedFrame-this.data.st),t._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if((!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var i,t;this._sizeChanged=!0;var e,r,n,o=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;for(t=l.length,i=0;i<t;i+=1)l[i].n||(e=o[i],r=this.textSpans[i].span,(n=this.textSpans[i].glyph)&&n.renderFrame(),e._mdf.m&&r.setAttribute("transform",e.m),e._mdf.o&&r.setAttribute("opacity",e.o),e._mdf.sw&&r.setAttribute("stroke-width",e.sw),e._mdf.sc&&r.setAttribute("stroke",e.sc),e._mdf.fc&&r.setAttribute("fill",e.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var rect=createNS("rect");rect.setAttribute("width",this.data.sw),rect.setAttribute("height",this.data.sh),rect.setAttribute("fill",this.data.sc),this.layerElement.appendChild(rect)},NullElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!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(data){return new NullElement(data,this.globalData,this)},SVGRendererBase.prototype.createShape=function(data){return new SVGShapeElement(data,this.globalData,this)},SVGRendererBase.prototype.createText=function(data){return new SVGTextLottieElement(data,this.globalData,this)},SVGRendererBase.prototype.createImage=function(data){return new IImageElement(data,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(data){return new ISolidElement(data,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(t){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 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,
20,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 defs=this.globalData.defs;this.setupGlobalData(t,defs),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var e=createNS("clipPath"),rect=createNS("rect");rect.setAttribute("width",t.w),rect.setAttribute("height",t.h),rect.setAttribute("x",0),rect.setAttribute("y",0);var r=createElementID();e.setAttribute("id",r),e.appendChild(rect),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+r+")"),defs.appendChild(e),this.layers=t.layers,this.elements=createSizedArray(t.layers.length)},SVGRendererBase.prototype.destroy=function(){var i;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(i=0;i<t;i+=1)this.elements[i]&&this.elements[i].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(t){var i=0,e=this.layers.length;for(i=0;i<e;i+=1)if(this.layers[i].ind===t)return i;return-1},SVGRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){e[t]=!0;var element=this.createItem(this.layers[t]);if(e[t]=element,getExpressionsPlugin()&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(element),element.initExpressions()),this.appendElementInPos(element,t),this.layers[t].tt){var r="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(-1===r)return;if(this.elements[r]&&!0!==this.elements[r]){var n=e[r].getMatte(this.layers[t].tt);element.setMatte(n)}else this.buildItem(r),this.addPendingElement(element)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var element=this.pendingElements.pop();if(element.checkParenting(),element.data.tt)for(var i=0,t=this.elements.length;i<t;){if(this.elements[i]===element){var e="tp"in element.data?this.findIndexByInd(element.data.tp):i-1,r=this.elements[e].getMatte(this.layers[i].tt);element.setMatte(r);break}i+=1}}},SVGRendererBase.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){var i;null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var e=this.layers.length;for(this.completeLayers||this.checkLayers(t),i=e-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(t-this.layers[i].st);if(this.globalData._mdf)for(i=0;i<e;i+=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(element,t){var e=element.getBaseElement();if(e){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(e,r):this.layerElement.appendChild(e)}},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(data,t,e){this.initFrame(),this.initBaseData(data,t,e),this.initTransform(data,t,e),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&t.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e}var i,r=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),i=r-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&(this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st),this.elements[i]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var i,t=this.layers.length;for(i=0;i<t;i+=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame()},ICompElement.prototype.setElements=function(t){this.elements=t},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var i,t=this.layers.length;for(i=0;i<t;i+=1)this.elements[i]&&this.elements[i].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(data){return new SVGCompElement(data,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(data){return new SVGCompElement(data,this.globalData,this)},CVContextData.prototype.duplicate=function(){var t=2*this._length,e=this.savedOp;this.savedOp=createTypedArray("float32",t),this.savedOp.set(e);var i=0;for(i=this._length;i<t;i+=1)this.saved[i]=createTypedArray("float32",16);this._length=t},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.cO=1},ShapeTransformManager.prototype={addTransformSequence:function(t){var i,e=t.length,r="_";for(i=0;i<e;i+=1)r+=t[i].transform.key+"_";var n=this.sequences[r];return n||(n={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[r]=n,this.sequenceList.push(n)),n},processSequence:function(t,e){for(var r,i=0,n=t.transforms.length,o=e;i<n&&!e;){if(t.transforms[i].transform.mProps._mdf){o=!0;break}i+=1}if(o)for(t.finalTransform.reset(),i=n-1;i>=0;i-=1)r=t.transforms[i].transform.mProps.v.props,t.finalTransform.transform(r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15]);t._mdf=o},processSequences:function(t){var i,e=this.sequenceList.length;for(i=0;i<e;i+=1)this.processSequence(this.sequenceList[i],t)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}},CVEffects.prototype.renderFrame=function(){},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var i,t,e,data,r=this.element.finalTransform.mat,n=this.element.canvasContext,o=this.masksProperties.length;for(n.beginPath(),i=0;i<o;i+=1)if("n"!==this.masksProperties[i].mode){var l;this.masksProperties[i].inv&&(n.moveTo(0,0),n.lineTo(this.element.globalData.compSize.w,0),n.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),n.lineTo(0,this.element.globalData.compSize.h),n.lineTo(0,0)),data=this.viewData[i].v,t=r.applyToPointArray(data.v[0][0],data.v[0][1],0),n.moveTo(t[0],t[1]);var c=data._length;for(l=1;l<c;l+=1)e=r.applyToTriplePoints(data.o[l-1],data.i[l],data.v[l]),n.bezierCurveTo(e[0],e[1],e[2],e[3],e[4],e[5]);e=r.applyToTriplePoints(data.o[l-1],data.i[0],data.v[0]),n.bezierCurveTo(e[0],e[1],e[2],e[3],e[4],e[5])}this.element.globalData.renderer.save(!0),n.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null},CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){this.canvasContext=this.globalData.canvasContext,this.renderableEffe
vendor: 5,324 bytes, line 2
2ctsManager=new CVEffects(this)},createContent:function(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var e=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=e}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this)},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)},renderFrame:function(){if(!this.hidden&&!this.data.hd){this.renderTransform(),this.renderRenderable(),this.setBlendMode();var t=0===this.data.ty;this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.mat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.mProp.o.v),this.renderInnerContent(),this.globalData.renderer.restore(t),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(data,t){var e={data:data,type:data.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:!0===data.hd},r={};if("fl"===data.ty||"st"===data.ty?(r.c=PropertyFactory.getProp(this,data.c,1,255,this),r.c.k||(e.co="rgb("+bmFloor(r.c.v[0])+","+bmFloor(r.c.v[1])+","+bmFloor(r.c.v[2])+")")):"gf"!==data.ty&&"gs"!==data.ty||(r.s=PropertyFactory.getProp(this,data.s,1,null,this),r.e=PropertyFactory.getProp(this,data.e,1,null,this),r.h=PropertyFactory.getProp(this,data.h||{k:0},0,.01,this),r.a=PropertyFactory.getProp(this,data.a||{k:0},0,degToRads,this),r.g=new GradientProperty(this,data.g,this)),r.o=PropertyFactory.getProp(this,data.o,0,.01,this),"st"===data.ty||"gs"===data.ty){if(e.lc=lineCapEnum[data.lc||2],e.lj=lineJoinEnum[data.lj||2],1==data.lj&&(e.ml=data.ml),r.w=PropertyFactory.getProp(this,data.w,0,null,this),r.w.k||(e.wi=r.w.v),data.d){var n=new DashProperty(this,data.d,"canvas",this);r.d=n,r.d.k||(e.da=r.d.dashArray,e.do=r.d.dashoffset[0])}}else e.r=2===data.r?"evenodd":"nonzero";return this.stylesList.push(e),r.style=e,r},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(data){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,data.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,data,this)}}},CVShapeElement.prototype.createShapeElement=function(data){var t=new CVShapeData(this,data,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){var i;this._isFirstFrame=!0;var t=this.itemsData.length;for(i=0;i<t;i+=1)this.prevViewData[i]=this.itemsData[i];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,i=0;i<t;i+=1)this.dynamicProperties[i].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(t){var i,e=this.stylesList.length;for(i=0;i<e;i+=1)this.stylesList[i].closed||this.stylesList[i].transforms.push(t)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var i,t=this.stylesList.length;for(i=0;i<t;i+=1)this.stylesList[i].closed||this.stylesList[i].transforms.pop()},CVShapeElement.prototype.closeStyles=function(t){var i,e=t.length;for(i=0;i<e;i+=1)t[i].closed=!0},CVShapeElement.prototype.searchShapes=function(t,e,r,n,o){var i,l,c,h,d,f,m=t.length-1,y=[],v=[],w=[].concat(o);for(i=m;i>=0;i-=1){if((h=this.searchProcessedElement(t[i]))?e[i]=r[h-1]:t[i]._shouldRender=n,"fl"===t[i].ty||"st"===t[i].ty||"gf"===t[i].ty||"gs"===t[i].ty)h?e[i].style.closed=!1:e[i]=this.createStyleElement(t[i],w),y.push(e[i].style);else if("gr"===t[i].ty){if(h)for(c=e[i].it.length,l=0;l<c;l+=1)e[i].prevViewData[l]=e[i].it[l];else e[i]=this.createGroupElement(t[i]);this.searchShapes(t[i].it,e[i].it,e[i].prevViewData,n,w)}else"tr"===t[i].ty?(h||(f=this.createTransformElement(t[i]),e[i]=f),w.push(e[i]),this.addTransformToStyleList(e[i])):"sh"===t[i].ty||"rc"===t[i].ty||"el"===t[i].ty||"sr"===t[i].ty?h||(e[i]=this.createShapeElement(t[i])):"tm"===t[i].ty||"rd"===t[i].ty||"pb"===t[i].ty||"zz"===t[i].ty||"op"===t[i].ty?(h?(d=e[i]).closed=!1:((d=ShapeModifiers.getModifier(t[i].ty)).init(this,t[i]),e[i]=d,this.shapeModifiers.push(d)),v.push(d)):"rp"===t[i].ty&&
vendor: 8,040 bytes, line 2
2(h?(d=e[i]).closed=!0:(d=ShapeModifiers.getModifier(t[i].ty),e[i]=d,d.init(this,t,i,e),this.shapeModifiers.push(d),n=!1),v.push(d));this.addProcessedElement(t[i],i+1)}for(this.removeTransformFromStyleList(),this.closeStyles(y),m=v.length,i=0;i<m;i+=1)v[i].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(t,e){(t._opMdf||e.op._mdf||this._isFirstFrame)&&(e.opacity=t.opacity,e.opacity*=e.op.v,e._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var i,t,e,r,n,o,l,c,h,d=this.stylesList.length,f=this.globalData.renderer,m=this.globalData.canvasContext;for(i=0;i<d;i+=1)if(("st"!==(c=(h=this.stylesList[i]).type)&&"gs"!==c||0!==h.wi)&&h.data._shouldRender&&0!==h.coOp&&0!==this.globalData.currentGlobalAlpha){for(f.save(),o=h.elements,"st"===c||"gs"===c?(m.strokeStyle="st"===c?h.co:h.grd,m.lineWidth=h.wi,m.lineCap=h.lc,m.lineJoin=h.lj,m.miterLimit=h.ml||0):m.fillStyle="fl"===c?h.co:h.grd,f.ctxOpacity(h.coOp),"st"!==c&&"gs"!==c&&m.beginPath(),f.ctxTransform(h.preTransforms.finalTransform.props),e=o.length,t=0;t<e;t+=1){for("st"!==c&&"gs"!==c||(m.beginPath(),h.da&&(m.setLineDash(h.da),m.lineDashOffset=h.do)),n=(l=o[t].trNodes).length,r=0;r<n;r+=1)"m"===l[r].t?m.moveTo(l[r].p[0],l[r].p[1]):"c"===l[r].t?m.bezierCurveTo(l[r].pts[0],l[r].pts[1],l[r].pts[2],l[r].pts[3],l[r].pts[4],l[r].pts[5]):m.closePath();"st"!==c&&"gs"!==c||(m.stroke(),h.da&&m.setLineDash(this.dashResetter))}"st"!==c&&"gs"!==c&&m.fill(h.r),f.restore()}},CVShapeElement.prototype.renderShape=function(t,e,data,r){var i,n;for(n=t,i=e.length-1;i>=0;i-=1)"tr"===e[i].ty?(n=data[i].transform,this.renderShapeTransform(t,n)):"sh"===e[i].ty||"el"===e[i].ty||"rc"===e[i].ty||"sr"===e[i].ty?this.renderPath(e[i],data[i]):"fl"===e[i].ty?this.renderFill(e[i],data[i],n):"st"===e[i].ty?this.renderStroke(e[i],data[i],n):"gf"===e[i].ty||"gs"===e[i].ty?this.renderGradientFill(e[i],data[i],n):"gr"===e[i].ty?this.renderShape(n,e[i].it,data[i].it):e[i].ty;r&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var i,r,n,o=t.trNodes,l=e.paths,c=l._length;o.length=0;var h=t.transforms.finalTransform;for(n=0;n<c;n+=1){var d=l.shapes[n];if(d&&d.v){for(r=d._length,i=1;i<r;i+=1)1===i&&o.push({t:"m",p:h.applyToPointArray(d.v[0][0],d.v[0][1],0)}),o.push({t:"c",pts:h.applyToTriplePoints(d.o[i-1],d.i[i],d.v[i])});1===r&&o.push({t:"m",p:h.applyToPointArray(d.v[0][0],d.v[0][1],0)}),d.c&&r&&(o.push({t:"c",pts:h.applyToTriplePoints(d.o[i-1],d.i[0],d.v[0])}),o.push({t:"z"}))}}t.trNodes=o}},CVShapeElement.prototype.renderPath=function(t,e){if(!0!==t.hd&&t._shouldRender){var i,r=e.styledShapes.length;for(i=0;i<r;i+=1)this.renderStyledShape(e.styledShapes[i],e.sh)}},CVShapeElement.prototype.renderFill=function(t,e,r){var n=e.style;(e.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||r._opMdf||this._isFirstFrame)&&(n.coOp=e.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(t,e,r){var n,o=e.style;if(!o.grd||e.g._mdf||e.s._mdf||e.e._mdf||1!==t.t&&(e.h._mdf||e.a._mdf)){var i,l=this.globalData.canvasContext,c=e.s.v,h=e.e.v;if(1===t.t)n=l.createLinearGradient(c[0],c[1],h[0],h[1]);else{var d=Math.sqrt(Math.pow(c[0]-h[0],2)+Math.pow(c[1]-h[1],2)),f=Math.atan2(h[1]-c[1],h[0]-c[0]),m=e.h.v;m>=1?m=.99:m<=-1&&(m=-.99);var y=d*m,v=Math.cos(f+e.a.v)*y+c[0],w=Math.sin(f+e.a.v)*y+c[1];n=l.createRadialGradient(v,w,0,c[0],c[1],d)}var E=t.g.p,_=e.g.c,T=1;for(i=0;i<E;i+=1)e.g._hasOpacity&&e.g._collapsable&&(T=e.g.o[2*i+1]),n.addColorStop(_[4*i]/100,"rgba("+_[4*i+1]+","+_[4*i+2]+","+_[4*i+3]+","+T+")");o.grd=n}o.coOp=e.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(t,e,r){var n=e.style,o=e.d;o&&(o._mdf||this._isFirstFrame)&&(n.da=o.dashArray,n.do=o.dashoffset[0]),(e.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||r._opMdf||this._isFirstFrame)&&(n.coOp=e.o.v*r.opacity),(e.w._mdf||this._isFirstFrame)&&(n.wi=e.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 t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=!1;t.fc?(e=!0,this.values.fill=this.buildColor(t.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=e;var r=!1;t.sc&&(r=!0,this.values.stroke=this.buildColor(t.sc),this.values.sWidth=t.sw);var i,n,o,l,c,h,d,f,m,y,v,w,E=this.globalData.fontManager.getFontByName(t.f),_=t.l,T=this.mHelper;this.stroke=r,this.values.fValue=t.finalSize+"px "+this.globalData.fontManager.getFontByName(t.f).fFamily,n=t.finalText.length;var S=this.data.singleShape,x=.001*t.tr*t.finalSize,I=0,P=0,O=!0,A=0;for(i=0;i<n;i+=1){l=(o=this.globalData.fontManager.getCharData(t.finalText[i],E.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily))&&o.data||{},T.reset(),S&&_[i].n&&(I=-x,P+=t.yOffset,P+=O?1:0,O=!1),m=(d=l.shapes?l.shapes[0].it:[]).length,T.scale(t.finalSize/100,t.finalSize/100),S&&this.applyTextPropertiesToMatrix(t,T,_[i].line,I,P),v=createSizedArray(m-1);var k=0;for(f=0;f<m;f+=1)if("sh"===d[f].ty){for(h=d[f].ks.k.i.length,y=d[f].ks.k,w=[],c=1;c<h;c+=1)1===c&&w.push(T.applyToX(y.v[0][0],y.v[0][1],0),T.applyToY(y.v[0][0],y.v[0][1],0)),w.push(T.applyToX(y.o[c-1][0],y.o[c-1][1],0),T.applyToY(y.o[c-1][0],y.o[c-1][1],0),T.applyToX(y.i[c][0],y.i[c][1],0),T.applyToY(y.i[c][0],y.i[c][1],0),T.applyToX(y.v[c][0],y.v[c][1],0),T.applyToY(y.v[c][0],y.v[c][1],0));w.push(T.applyToX(y.o[c-1][0],y.o[c-1][1],0),T.applyToY(y.o[c-1][0],y.o[c-1][1],0),T.applyToX(y.i[0][0],y.i[0][1],0),T.applyToY(y.i[0][0],y.i[0][1],0),T.applyToX(y.v[0][0],y.v[0][1],0),T.applyToY(y.v[0][0],y.v[0][1],0)),v[k]=w,k+=1}S&&(I+=_[i].l,I+=x),this.textSpans[A]?this.textSpans[A].elem=v:this.textSpans[A]={elem:v},A+=1}},CVTextElement.prototype.renderInnerContent=function(){var i,t,e,r,n,o,l=this.canvasContext;l.font=this.values.fValue,l.lineCap="butt",l.lineJoin="miter",l.miterLimit=4,this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var c,h=this.textAnimator.renderedLetters,d=this.textProperty.currentData.l;t=d.length;var f,m,y=null,v=null,w=null;for(i=0;i<t;i+=1)if(!d[i].n){if((c=h[i])&&(this.globalData.renderer.save(),this.globalData.renderer.ctxTransform(c.p),this.globalData.renderer.ctxOpacity(c.o)),this.fill){for(c&&c.fc?y!==c.fc&&(y=c.fc,l.fillStyle=c.fc):y!==this.values.fill&&(y=this.values.fill,l.fillStyle=this.values.fill),r=(f=this.textSpans[i].elem).length,this.globalData.canvasContext.beginPath(),e=0;e<r;e+=1)for(o=(m=f[e]).length,this.globalData.canvasContext.moveTo(m[0],m[1]),n=2;n<o;n+=6)this.globalData.canvasContext.bezierCurveTo(m[n],m[n+1],m[n+2],m[n+3],m[n+4],m[n+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.fill()}if(this.stroke){for(c&&c.sw?w!==c.sw&&(w=c.sw,l.lineWidth=c.sw):w!==this.values.sWidth&&(w=this.values.sWidth,l.lineWidth=this.values.sWidth),c&&c.sc?v!==c.sc&&(v=c.sc,l.strokeStyle=c.sc):v!==this.values.stroke&&(v=this.values.stroke,l.strokeStyle=this.values.stroke),r=(f=this.textSpans[i].elem).length,this.globalData.canvasContext.beginPath(),e=0;e<r;e+=1)for(o=(m=f[e]).length,this.globalData.canvasContext.moveTo(m[0],m[1]),n=2;n<o;n+=6)this.globalData.canvasContext.bezierCurveTo(m[n],m[n+1],m[n+2],m[n+3],m[n+4],m[n+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.stroke()}
2c&&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 canvas=createTag("canvas");canvas.width=this.assetData.w,canvas.height=this.assetData.h;var t,e,r=canvas.getContext("2d"),n=this.img.width,o=this.img.height,l=n/o,c=this.assetData.w/this.assetData.h,h=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;l>c&&"xMidYMid slice"===h||l<c&&"xMidYMid slice"!==h?t=(e=o)*c:e=(t=n)/c,r.drawImage(this.img,(n-t)/2,(o-e)/2,t,e,0,0,this.assetData.w,this.assetData.h),this.img=canvas}},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(){var t=this.canvasContext;t.fillStyle=this.data.sc,t.fillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(data){return new CVShapeElement(data,this.globalData,this)},CanvasRendererBase.prototype.createText=function(data){return new CVTextElement(data,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(data){return new CVImageElement(data,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(data){return new CVSolidElement(data,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(t){if(1!==t[0]||0!==t[1]||0!==t[4]||1!==t[5]||0!==t[12]||0!==t[13])if(this.renderConfig.clearCanvas){this.transformMat.cloneFromProps(t);var e=this.contextData.cTr.props;this.transformMat.transform(e[0],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]),this.contextData.cTr.cloneFromProps(this.transformMat.props);var r=this.contextData.cTr.props;this.canvasContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])}else this.canvasContext.transform(t[0],t[1],t[4],t[5],t[12],t[13])},CanvasRendererBase.prototype.ctxOpacity=function(t){if(!this.renderConfig.clearCanvas)return this.canvasContext.globalAlpha*=t<0?0:t,void(this.globalData.currentGlobalAlpha=this.contextData.cO);this.contextData.cO*=t<0?0:t,this.globalData.currentGlobalAlpha!==this.contextData.cO&&(this.canvasContext.globalAlpha=this.contextData.cO,this.globalData.currentGlobalAlpha=this.contextData.cO)},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(t){if(this.renderConfig.clearCanvas){t&&this.canvasContext.save();var i,e=this.contextData.cTr.props;this.contextData._length<=this.contextData.cArrPos&&this.contextData.duplicate();var r=this.contextData.saved[this.contextData.cArrPos];for(i=0;i<16;i+=1)r[i]=e[i];this.contextData.savedOp[this.contextData.cArrPos]=this.contextData.cO,this.contextData.cArrPos+=1}else this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(t){if(this.renderConfig.clearCanvas){t&&(this.canvasContext.restore(),this.globalData.blendMode="source-over"),this.contextData.cArrPos-=1;var i,e=this.contextData.saved[this.contextData.cArrPos],r=this.contextData.cTr.props;for(i=0;i<16;i+=1)r[i]=e[i];this.canvasContext.setTransform(e[0],e[1],e[4],e[5],e[12],e[13]),e=this.contextData.savedOp[this.contextData.cArrPos],this.contextData.cO=e,this.globalData.currentGlobalAlpha!==e&&(this.canvasContext.globalAlpha=e,this.globalData.currentGlobalAlpha=e)}
vendor: 4,845 bytes, line 2
2else this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(t){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var e=this.animationItem.container.style;e.width="100%",e.height="100%";var r="0px 0px 0px";e.transformOrigin=r,e.mozTransformOrigin=r,e.webkitTransformOrigin=r,e["-webkit-transform"]=r,e.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.data=t,this.layers=t.layers,this.transformCanvas={w:t.w,h:t.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(t,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(t.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(t,e){var r,n,o,l;if(this.reset(),t?(r=t,n=e,this.canvasContext.canvas.width=r,this.canvasContext.canvas.height=n):(this.animationItem.wrapper&&this.animationItem.container?(r=this.animationItem.wrapper.offsetWidth,n=this.animationItem.wrapper.offsetHeight):(r=this.canvasContext.canvas.width,n=this.canvasContext.canvas.height),this.canvasContext.canvas.width=r*this.renderConfig.dpr,this.canvasContext.canvas.height=n*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var c=this.renderConfig.preserveAspectRatio.split(" "),h=c[1]||"meet",d=c[0]||"xMidYMid",f=d.substr(0,4),m=d.substr(4);o=r/n,(l=this.transformCanvas.w/this.transformCanvas.h)>o&&"meet"===h||l<o&&"slice"===h?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=n/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===f&&(l<o&&"meet"===h||l>o&&"slice"===h)?(r-this.transformCanvas.w*(n/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===f&&(l<o&&"meet"===h||l>o&&"slice"===h)?(r-this.transformCanvas.w*(n/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===m&&(l>o&&"meet"===h||l<o&&"slice"===h)?(n-this.transformCanvas.h*(r/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===m&&(l>o&&"meet"===h||l<o&&"slice"===h)?(n-this.transformCanvas.h*(r/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=n/(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 i;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),i=(this.layers?this.layers.length:0)-1;i>=0;i-=1)this.elements[i]&&this.elements[i].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(t,e){if((this.renderedFrame!==t||!0!==this.renderConfig.clearCanvas||e)&&!this.destroyed&&-1!==t){var i;this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var r=this.layers.length;for(this.completeLayers||this.checkLayers(t),i=0;i<r;i+=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(t-this.layers[i].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),i=r-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame();
vendor: 31,565 bytes, line 2
2!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){var element=this.createItem(this.layers[t],this,this.globalData);e[t]=element,element.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"},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var i,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(),i=this.layers.length-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame()},CVCompElement.prototype.destroy=function(){var i;for(i=this.layers.length-1;i>=0;i-=1)this.elements[i]&&this.elements[i].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(data){return new CVCompElement(data,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(data){return new CVCompElement(data,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 t=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var e=this.finalTransform.mat.toCSS();t.transform=e,t.webkitTransform=e}this.finalTransform._opMdf&&(t.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 rect;this.data.hasMask?((rect=createNS("rect")).setAttribute("width",this.data.sw),rect.setAttribute("height",this.data.sh),rect.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((rect=createTag("div")).style.width=this.data.sw+"px",rect.style.height=this.data.sh+"px",rect.style.backgroundColor=this.data.sc),this.layerElement.appendChild(rect)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var t;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),t=this.svgElement;else{t=createNS("svg");var e=this.comp.data?this.comp.data:this.globalData.compSize;t.setAttribute("width",e.w),t.setAttribute("height",e.h),t.appendChild(this.shapesContainer),this.layerElement.appendChild(t)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=t},HShapeElement.prototype.getTransformedPoint=function(t,e){var i,r=t.length;for(i=0;i<r;i+=1)e=t[i].mProps.v.applyToPointArray(e[0],e[1],0);return e},HShapeElement.prototype.calculateShapeBoundingBox=function(t,e){var i,r,n,o,l,c=t.sh.v,h=t.transformers,d=c._length;if(!(d<=1)){for(i=0;i<d-1;i+=1)r=this.getTransformedPoint(h,c.v[i]),n=this.getTransformedPoint(h,c.o[i]),o=this.getTransformedPoint(h,c.i[i+1]),l=this.getTransformedPoint(h,c.v[i+1]),this.checkBounds(r,n,o,l,e);c.c&&(r=this.getTransformedPoint(h,c.v[i]),n=this.getTransformedPoint(h,c.o[i]),o=this.getTransformedPoint(h,c.i[0]),l=this.getTransformedPoint(h,c.v[0]),this.checkBounds(r,n,o,l,e))}},HShapeElement.prototype.checkBounds=function(t,e,r,n,o){this.getBoundsOfCurve(t,e,r,n);var l=this.shapeBoundingBox;o.x=bmMin(l.left,o.x),o.xMax=bmMax(l.right,o.xMax),o.y=bmMin(l.top,o.y),o.yMax=bmMax(l.bottom,o.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(t,e,r,n){for(var a,b,o,l,c,h,d,f=[[t[0],n[0]],[t[1],n[1]]],i=0;i<2;++i)b=6*t[i]-12*e[i]+6*r[i],a=-3*t[i]+9*e[i]-9*r[i]+3*n[i],o=3*e[i]-3*t[i],b|=0,o|=0,0==(a|=0)&&0===b||(0===a?(l=-o/b)>0&&l<1&&f[i].push(this.calculateF(l,t,e,r,n,i)):(c=b*b-4*o*a)>=0&&((h=(-b+bmSqrt(c))/(2*a))>0&&h<1&&f[i].push(this.calculateF(h,t,e,r,n,i)),(d=(-b-bmSqrt(c))/(2*a))>0&&d<1&&f[i].push(this.calculateF(d,t,e,r,n,i))));this.shapeBoundingBox.left=bmMin.apply(null,f[0]),this.shapeBoundingBox.top=bmMin.apply(null,f[1]),this.shapeBoundingBox.right=bmMax.apply(null,f[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,f[1])},HShapeElement.prototype.calculateF=function(t,e,r,n,o,i){return bmPow(1-t,3)*e[i]+3*bmPow(1-t,2)*t*r[i]+3*(1-t)*bmPow(t,2)*n[i]+bmPow(t,3)*o[i]},HShapeElement.prototype.calculateBoundingBox=function(t,e){var i,r=t.length;for(i=0;i<r;i+=1)t[i]&&t[i].sh?this.calculateShapeBoundingBox(t[i],e):t[i]&&t[i].it?this.calculateBoundingBox(t[i].it,e):t[i]&&t[i].style&&t[i].w&&this.expandStrokeBoundingBox(t[i].w,e)},HShapeElement.prototype.expandStrokeBoundingBox=function(t,e){var r=0;if(t.keyframes){for(var i=0;i<t.keyframes.length;i+=1){var n=t.keyframes[i].s;n>r&&(r=n)}r*=t.mult}else r=t.v*t.mult;e.x-=r,e.xMax+=r,e.y-=r,e.yMax+=r},HShapeElement.prototype.currentBoxContains=function(t){return this.currentBBox.x<=t.x&&this.currentBBox.y<=t.y&&this.currentBBox.width+this.currentBBox.x>=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox,e=999999;if(t.x=e,t.xMax=-e,t.y=e,t.yMax=-e,this.calculateBoundingBox(this.itemsData,t),t.width=t.xMax<t.x?0:t.xMax-t.x,t.height=t.yMax<t.y?0:t.yMax-t.y,this.currentBoxContains(t))return;var r=!1;if(this.currentBBox.w!==t.width&&(this.currentBBox.w=t.width,this.shapeCont.setAttribute("width",t.width),r=!0),this.currentBBox.h!==t.height&&(this.currentBBox.h=t.height,this.shapeCont.setAttribute("height",t.height),r=!0),r||this.currentBBox.x!==t.x||this.currentBBox.y!==t.y){this.currentBBox.w=t.width,this.currentBBox.h=t.height,this.currentBBox.x=t.x,this.currentBBox.y=t.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var n=this.shapeCont.style,o="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";n.transform=o,n.webkitTransform=o}}},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 g=createNS("g");this.maskedElement.appendChild(g),this.innerElem=g}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=this.innerElem.style,r=t.fc?this.buildColor(t.fc):"rgba(0,0,0,0)";e.fill=r,e.color=r,t.sc&&(e.stroke=this.buildColor(t.sc),e.strokeWidth=t.sw+"px");var i,n,o=this.globalData.fontManager.getFontByName(t.f);if(!this.globalData.fontManager.chars)if(e.fontSize=t.finalSize+"px",e.lineHeight=t.finalSize+"px",o.fClass)this.innerElem.className=o.fClass;else{e.fontFamily=o.fFamily;var l=t.fWeight,c=t.fStyle;e.fontStyle=c,e.fontWeight=l}var h,d,f,m=t.l;n=m.length;var y,v=this.mHelper,w="",E=0;for(i=0;i<n;i+=1){if(this.globalData.fontManager.chars?(this.textPaths[E]?h=this.textPaths[E]:((h=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),h.setAttribute("stroke-linejoin",lineJoinEnum[2]),h.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[E]?f=(d=this.textSpans[E]).children[0]:((d=createTag("div")).style.lineHeight=0,(f=createNS("svg")).appendChild(h),styleDiv(d)))):this.isMasked?h=this.textPaths[E]?this.textPaths[E]:createNS("text"):this.textSpans[E]?(d=this.textSpans[E],h=this.textPaths[E]):(styleDiv(d=createTag("span")),styleDiv(h=createTag("span")),d.appendChild(h)),this.globalData.fontManager.chars){var _,T=this.globalData.fontManager.getCharData(t.finalText[i],o.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily);if(_=T?T.data:null,v.reset(),_&&_.shapes&&_.shapes.length&&(y=_.shapes[0].it,v.scale(t.finalSize/100,t.finalSize/100),w=this.createPathShape(v,y),h.setAttribute("d",w)),this.isMasked)this.innerElem.appendChild(h);else{if(this.innerElem.appendChild(d),_&&_.shapes){document.body.appendChild(f);var S=f.getBBox();f.setAttribute("width",S.width+2),f.setAttribute("height",S.height+2),f.setAttribute("viewBox",S.x-1+" "+(S.y-1)+" "+(S.width+2)+" "+(S.height+2));var x=f.style,I="translate("+(S.x-1)+"px,"+(S.y-1)+"px)";x.transform=I,x.webkitTransform=I,m[i].yOffset=S.y-1}else f.setAttribute("width",1),f.setAttribute("height",1);d.appendChild(f)}}else if(h.textContent=m[i].val,h.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(h);else{this.innerElem.appendChild(d);var P=h.style,O="translate3d(0,"+-t.finalSize/1.2+"px,0)";P.transform=O,P.webkitTransform=O}this.isMasked?this.textSpans[E]=h:this.textSpans[E]=d,this.textSpans[E].style.display="block",this.textPaths[E]=h,E+=1}for(;E<this.textSpans.length;)this.textSpans[E].style.display="none",E+=1},HTextElement.prototype.renderInnerContent=function(){var t;if(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),t=this.svgElement.style;var e="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";t.transform=e,t.webkitTransform=e}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var i,r,n,o,l,c=0,h=this.textAnimator.renderedLetters,d=this.textProperty.currentData.l;for(r=d.length,i=0;i<r;i+=1)d[i].n?c+=1:(o=this.textSpans[i],l=this.textPaths[i],n=h[c],c+=1,n._mdf.m&&(this.isMasked?o.setAttribute("transform",n.m):(o.style.webkitTransform=n.m,o.style.transform=n.m)),o.style.opacity=n.o,n.sw&&n._mdf.sw&&l.setAttribute("stroke-width",n.sw),n.sc&&n._mdf.sc&&l.setAttribute("stroke",n.sc),n.fc&&n._mdf.fc&&(l.setAttribute("fill",n.fc),l.style.color=n.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var f=this.innerElem.getBBox();if(this.currentBBox.w!==f.width&&(this.currentBBox.w=f.width,this.svgElement.setAttribute("width",f.width)),this.currentBBox.h!==f.height&&(this.currentBBox.h=f.height,this.svgElement.setAttribute("height",f.height)),this.currentBBox.w!==f.width+2||this.currentBBox.h!==f.height+2||this.currentBBox.x!==f.x-1||this.currentBBox.y!==f.y-1){this.currentBBox.w=f.width+2,this.currentBBox.h=f.height+2,this.currentBBox.x=f.x-1,this.currentBBox.y=f.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),t=this.svgElement.style;var m="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";t.transform=m,t.webkitTransform=m}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var i,t,e,r,n=this.comp.threeDElements.length;for(i=0;i<n;i+=1)if("3d"===(t=this.comp.threeDElements[i]).type){e=t.perspectiveElem.style,r=t.container.style;var o=this.pe.v+"px",l="0px 0px 0px",c="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";e.perspective=o,e.webkitPerspective=o,r.transformOrigin=l,r.mozTransformOrigin=l,r.webkitTransformOrigin=l,e.transform=c,e.webkitTransform=c}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var i,t,e=this._isFirstFrame;if(this.hierarchy)for(t=this.hierarchy.length,i=0;i<t;i+=1)e=this.hierarchy[i].finalTransform.mProp._mdf||e;if(e||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(i=t=this.hierarchy.length-1;i>=0;i-=1){var r=this.hierarchy[i].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 n;n=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 o=Math.sqrt(Math.pow(n[0],2)+Math.pow(n[1],2)+Math.pow(n[2],2)),l=[n[0]/o,n[1]/o,n[2]/o],c=Math.sqrt(l[2]*l[2]+l[0]*l[0]),h=Math.atan2(l[1],c),d=Math.atan2(l[0],-l[2]);this.mat.rotateY(d).rotateX(-h)}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 f=!this._prevMat.equals(this.mat);if((f||this.pe._mdf)&&this.comp.threeDElements){var m,y,v;for(t=this.comp.threeDElements.length,i=0;i<t;i+=1)if("3d"===(m=this.comp.threeDElements[i]).type){if(f){var w=this.mat.toCSS();(v=m.container.style).transform=w,v.webkitTransform=w}this.pe._mdf&&((y=m.perspectiveElem.style).perspective=this.pe.v+"px",y.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!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 t=this.globalData.getAssetsPath(this.assetData),img=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",t),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(img),img.crossOrigin="anonymous",img.src=t,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(element,t){var e=element.getBaseElement();if(e){var r=this.layers[t];if(r.ddd&&this.supports3d)this.addTo3dContainer(e,t);else if(this.threeDElements)this.addTo3dContainer(e,t);else{for(var n,o,i=0;i<t;)this.elements[i]&&!0!==this.elements[i]&&this.elements[i].getBaseElement&&(o=this.elements[i],n=(this.layers[i].ddd?this.getThreeDContainerByPos(i):o.getBaseElement())||n),i+=1;n?r.ddd&&this.supports3d||this.layerElement.insertBefore(e,n):r.ddd&&this.supports3d||this.layerElement.appendChild(e)}}},HybridRendererBase.prototype.createShape=function(data){return this.supports3d?new HShapeElement(data,this.globalData,this):new SVGShapeElement(data,this.globalData,this)},HybridRendererBase.prototype.createText=function(data){return this.supports3d?new HTextElement(data,this.globalData,this):new SVGTextLottieElement(data,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(data){return this.camera=new HCameraElement(data,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(data){return this.supports3d?new HImageElement(data,this.globalData,this):new IImageElement(data,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(data){return this.supports3d?new HSolidElement(data,this.globalData,this):new ISolidElement(data,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(t){for(var i=0,e=this.threeDElements.length;i<e;){if(this.threeDElements[i].startPos<=t&&this.threeDElements[i].endPos>=t)return this.threeDElements[i].perspectiveElem;i+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(t,e){var style,r,n=createTag("div");styleDiv(n);var o=createTag("div");if(styleDiv(o),"3d"===e){(style=n.style).width=this.globalData.compSize.w+"px",style.height=this.globalData.compSize.h+"px";var l="50% 50%";style.webkitTransformOrigin=l,style.mozTransformOrigin=l,style.transformOrigin=l;var c="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(r=o.style).transform=c,r.webkitTransform=c}n.appendChild(o);var h={container:o,perspectiveElem:n,startPos:t,endPos:t,type:e};return this.threeDElements.push(h),h},HybridRendererBase.prototype.build3dContainers=function(){var i,t,e=this.layers.length,r="";for(i=0;i<e;i+=1)this.layers[i].ddd&&3!==this.layers[i].ty?("3d"!==r&&(r="3d",t=this.createThreeDContainer(i,"3d")),t.endPos=Math.max(t.endPos,i)):("2d"!==r&&(r="2d",t=this.createThreeDContainer(i,"2d")),t.endPos=Math.max(t.endPos,i));for(i=(e=this.threeDElements.length)-1;i>=0;i-=1)this.resizerElem.appendChild(this.threeDElements[i].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(t,e){for(var i=0,r=this.threeDElements.length;i<r;){if(e<=this.threeDElements[i].endPos){for(var n,o=this.threeDElements[i].startPos;o<e;)this.elements[o]&&this.elements[o].getBaseElement&&(n=this.elements[o].getBaseElement()),o+=1;n?this.threeDElements[i].container.insertBefore(t,n):this.threeDElements[i].container.appendChild(t);break}i+=1}},HybridRendererBase.prototype.configAnimation=function(t){var e=createTag("div"),r=this.animationItem.wrapper,style=e.style;style.width=t.w+"px",style.height=t.h+"px",this.resizerElem=e,styleDiv(e),style.transformStyle="flat",style.mozTransformStyle="flat",style.webkitTransformStyle="flat",this.renderConfig.className&&e.setAttribute("class",this.renderConfig.className),r.appendChild(e),style.overflow="hidden";var svg=createNS("svg");svg.setAttribute("width","1"),svg.setAttribute("height","1"),styleDiv(svg),this.resizerElem.appendChild(svg);var defs=createNS("defs");svg.appendChild(defs),this.data=t,this.setupGlobalData(t,svg),this.globalData.defs=defs,this.layers=t.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var i;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(i=0;i<t;i+=1)this.elements[i].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var t,e,r,n,o=this.animationItem.wrapper.offsetWidth,l=this.animationItem.wrapper.offsetHeight,c=o/l;this.globalData.compSize.w/this.globalData.compSize.h>c?(t=o/this.globalData.compSize.w,e=o/this.globalData.compSize.w,r=0,n=(l-this.globalData.compSize.h*(o/this.globalData.compSize.w))/2):(t=l/this.globalData.compSize.h,e=l/this.globalData.compSize.h,r=(o-this.globalData.compSize.w*(l/this.globalData.compSize.h))/2,n=0);var style=this.resizerElem.style;style.webkitTransform="matrix3d("+t+",0,0,0,0,"+e+",0,0,0,0,1,0,"+r+","+n+",0,1)",style.transform=style.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 i,t=this.globalData.compSize.w,e=this.globalData.compSize.h,r=this.threeDElements.length;for(i=0;i<r;i+=1){var style=this.threeDElements[i].perspectiveElem.style;style.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(e,2))+"px",style.perspective=style.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(t){var i,e=t.length,r=createTag("div");for(i=0;i<e;i+=1)if(t[i].xt){var n=this.createComp(t[i],r,this.globalData.comp,null);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}},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(t,e){for(var r,n=0;n<e;)this.elements[n]&&this.elements[n].getBaseElement&&(r=this.elements[n].getBaseElement()),n+=1;r?this.layerElement.insertBefore(t,r):this.layerElement.appendChild(t)},HCompElement.prototype.createComp=function(data){return this.supports3d?new HCompElement(data,this.globalData,this):new SVGCompElement(data,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(data){return this.supports3d?new HCompElement(data,this.globalData,this):new SVGCompElement(data,this.globalData,this)};var CompExpressionInterface=function(t){function e(e){for(var i=0,r=t.layers.length;i<r;){if(t.layers[i].nm===e||t.layers[i].ind===e)return t.elements[i].layerInterface;i+=1}return null}return Object.defineProperty(e,"_name",{value:t.data.nm}),e.layer=e,e.pixelAspect=1,e.height=t.data.h||t.globalData.compSize.h,e.width=t.data.w||t.globalData.compSize.w,e.pixelAspect=1,e.frameDuration=1/t.globalData.frameRate,e.displayStartTime=0,e.numLayers=t.layers.length,e},Expressions=function(){var t={initExpressions:function(t){var e=0,r=[];t.renderer.compInterface=CompExpressionInterface(t.renderer),t.renderer.globalData.projectInterface.registerComposition(t.renderer),t.renderer.globalData.pushExpression=function(){e+=1},t.renderer.globalData.popExpression=function(){0==(e-=1)&&function(){var i,t=r.length;for(i=0;i<t;i+=1)r[i].release();r.length=0}()},t.renderer.globalData.registerExpressionProperty=function(t){-1===r.indexOf(t)&&r.push(t)}}};return t}(),MaskManagerInterface=function(){function t(mask,data){this._mask=mask,this._data=data}return Object.defineProperty(t.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(t.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(e){var i,r=createSizedArray(e.viewData.length),n=e.viewData.length;for(i=0;i<n;i+=1)r[i]=new t(e.viewData[i],e.masksProperties[i]);return function(t){for(i=0;i<n;){if(e.masksProperties[i].nm===t)return r[i];i+=1}return null}}}(),ExpressionPropertyInterface=function(){var t={pv:0,v:0,mult:1},e={pv:[0,0,0],v:[0,0,0],mult:1};function r(t,e,r){Object.defineProperty(t,"velocity",{get:function(){return e.getVelocityAtTime(e.comp.currentFrame)}}),t.numKeys=e.keyframes?e.keyframes.length:0,t.key=function(n){if(!t.numKeys)return 0;var o="";o="s"in e.keyframes[n-1]?e.keyframes[n-1].s:"e"in e.keyframes[n-2]?e.keyframes[n-2].e:e.keyframes[n-2].s;var l="unidimensional"===r?new Number(o):Object.assign({},o);return l.time=e.keyframes[n-1].t/e.elem.comp.globalData.frameRate,l.value="unidimensional"===r?o[0]:o,l},t.valueAtTime=e.getValueAtTime,t.speedAtTime=e.getSpeedAtTime,t.velocityAtTime=e.getVelocityAtTime,t.propertyGroup=e.propertyGroup}function n(){return t}return function(o){return o?"unidimensional"===o.propType?function(e){e&&"pv"in e||(e=t);var n=1/e.mult,o=e.pv*n,l=new Number(o);return l.value=o,r(l,e,"unidimensional"),function(){return e.k&&e.getValue(),o=e.v*n,l.value!==o&&((l=new Number(o)).value=o,r(l,e,"unidimensional")),l}}(o):function(t){t&&"pv"in t||(t=e);var n=1/t.mult,o=t.data&&t.data.l||t.pv.length,l=createTypedArray("float32",o),c=createTypedArray("float32",o);return l.value=c,r(l,t,"multidimensional"),function(){t.k&&t.getValue();for(var i=0;i<o;i+=1)c[i]=t.v[i]*n,l[i]=c[i];return l}}(o):n}}(),TransformExpressionInterface=function(t){function e(t){switch(t){case"scale":case"Scale":case"ADBE Scale":case 6:return e.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return e.rotation;case"ADBE Rotate X":return e.xRotation;case"ADBE Rotate Y":return e.yRotation;case"position":case"Position":case"ADBE Position":case 2:return e.position;case"ADBE Position_0":return e.xPosition;case"ADBE Position_1":return e.yPosition;case"ADBE Position_2":return e.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return e.anchorPoint;case"opacity":case"Opacity":case 11:return e.opacity;default:return null}}var r,n,o,l;return Object.defineProperty(e,"rotation",{get:ExpressionPropertyInterface(t.r||t.rz)}),Object.defineProperty(e,"zRotation",{get:ExpressionPropertyInterface(t.rz||t.r)}),Object.defineProperty(e,"xRotation",{get:ExpressionPropertyInterface(t.rx)}),Object.defineProperty(e,"yRotation",{get:ExpressionPropertyInterface(t.ry)}),Object.defineProperty(e,"scale",{get:ExpressionPropertyInterface(t.s)}),t.p?l=ExpressionPropertyInterface(t.p):(r=ExpressionPropertyInterface(t.px),n=ExpressionPropertyInterface(t.py),t.pz&&(o=ExpressionPropertyInterface(t.pz))),Object.defineProperty(e,"position",{get:function(){return t.p?l():[r(),n(),o?o():0]}}),Object.defineProperty(e,"xPosition",{get:ExpressionPropertyInterface(t.px)}),Object.defineProperty(e,"yPosition",{get:ExpressionPropertyInterface(t.py)}),Object.defineProperty(e,"zPosition",{get:ExpressionPropertyInterface(t.pz)}),Object.defineProperty(e,"anchorPoint",{get:ExpressionPropertyInterface(t.a)}),Object.defineProperty(e,"opacity",{get:ExpressionPropertyInterface(t.o)}),Object.defineProperty(e,"skew",{get:ExpressionPropertyInterface(t.sk)}),Object.defineProperty(e,"skewAxis",{get:ExpressionPropertyInterface(t.sa)}),Object.defineProperty(e,"orientation",{get:ExpressionPropertyInterface(t.or)}),e},LayerExpressionInterface=function(){function t(time){var t=new Matrix;return void 0!==time?this._elem.finalTransform.mProp.getValueAtTime(time).clone(t):this._elem.finalTransform.mProp.applyToMatrix(t),t}function e(t,time){var e=this.getMatrix(time);return e.props[12]=0,e.props[13]=0,e.props[14]=0,this.applyPoint(e,t)}function r(t,time){var e=this.getMatrix(time);return this.applyPoint(e,t)}function n(t,time){var e=this.getMatrix(time);return e.props[12]=0,e.props[13]=0,e.props[14]=0,this.invertPoint(e,t)}function o(t,time){var e=this.getMatrix(time);return this.invertPoint(e,t)}function l(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var i,r=this._elem.hierarchy.length;for(i=0;i<r;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(t)}return t.applyToPointArray(e[0],e[1],e[2]||0)}function c(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var i,r=this._elem.hierarchy.length;for(i=0;i<r;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(t)}return t.inversePoint(e)}function h(t){var e=new Matrix;if(e.reset(),this._elem.finalTransform.mProp.applyToMatrix(e),this._elem.hierarchy&&this._elem.hierarchy.length){var i,r=this._elem.hierarchy.length;for(i=0;i<r;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(e);return e.inversePoint(t)}return e.inversePoint(t)}function d(){return[1,1,1,1]}return function(f){var m;function y(t){switch(t){case"ADBE Root Vectors Group":case"Contents":case 2:return y.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return m;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return y.effect;case"ADBE Text Properties":return y.textInterface;default:return null}}y.getMatrix=t,y.invertPoint=c,y.applyPoint=l,y.toWorld=r,y.toWorldVec=e,y.fromWorld=o,y.fromWorldVec=n,y.toComp=r,y.fromComp=h,y.sampleImage=d,y.sourceRectAtTime=f.sourceRectAtTime.bind(f),y._elem=f;var v=getDescriptor(m=TransformExpressionInterface(f.finalTransform.mProp),"anchorPoint");return Object.defineProperties(y,{hasParent:{get:function(){return f.hierarchy.length}},parent:{get:function(){return f.hierarchy[0].layerInterface}},rotation:getDescriptor(m,"rotation"),scale:getDescriptor(m,"scale"),position:getDescriptor(m,"position"),opacity:getDescriptor(m,"opacity"),anchorPoint:v,anchor_point:v,transform:{get:function(){return m}},active:{get:function(){return f.isInRange}}}),y.startTime=f.data.st,y.index=f.data.ind,y.source=f.data.refId,y.height=0===f.data.ty?f.data.h:100,y.width=0===f.data.ty?f.data.w:100,y.inPoint=f.data.ip/f.comp.globalData.frameRate,y.outPoint=f.data.op/f.comp.globalData.frameRate,y._name=f.data.nm,y.registerMaskInterface=function(t){y.mask=new MaskManagerInterface(t,f)},y.registerEffectsInterface=function(t){y.effect=t},y}}(),propertyGroupFactory=function(t,e){return function(r){return(r=void 0===r?1:r)<=0?t:e(r-1)}},PropertyInterface=function(t,e){var r={_name:t};return function(t){return(t=void 0===t?1:t)<=0?r:e(t-1)}}
vendor: 16,384 bytes, line 2
2,EffectsExpressionInterface=function(){function t(data,r,n,o){function l(t){for(var e=data.ef,i=0,r=e.length;i<r;){if(t===e[i].nm||t===e[i].mn||t===e[i].ix)return 5===e[i].ty?h[i]:h[i]();i+=1}throw new Error}var i,c=propertyGroupFactory(l,n),h=[],d=data.ef.length;for(i=0;i<d;i+=1)5===data.ef[i].ty?h.push(t(data.ef[i],r.effectElements[i],r.effectElements[i].propertyGroup,o)):h.push(e(r.effectElements[i],data.ef[i].ty,o,c));return"ADBE Color Control"===data.mn&&Object.defineProperty(l,"color",{get:function(){return h[0]()}}),Object.defineProperties(l,{numProperties:{get:function(){return data.np}},_name:{value:data.nm},propertyGroup:{value:c}}),l.enabled=0!==data.en,l.active=l.enabled,l}function e(element,t,e,r){var n=ExpressionPropertyInterface(element.p);return element.p.setGroupProperty&&element.p.setGroupProperty(PropertyInterface("",r)),function(){return 10===t?e.comp.compInterface(element.p.v):n()}}return{createEffectsInterface:function(e,r){if(e.effectsManager){var i,n=[],o=e.data.ef,l=e.effectsManager.effectElements.length;for(i=0;i<l;i+=1)n.push(t(o[i],e.effectsManager.effectElements[i],r,e));var c=e.data.ef||[],h=function(t){for(i=0,l=c.length;i<l;){if(t===c[i].nm||t===c[i].mn||t===c[i].ix)return n[i];i+=1}return null};return Object.defineProperty(h,"numProperties",{get:function(){return c.length}}),h}return null}}}(),ShapePathInterface=function(t,view,e){var r=view.sh;function n(t){return"Shape"===t||"shape"===t||"Path"===t||"path"===t||"ADBE Vector Shape"===t||2===t?n.path:null}var o=propertyGroupFactory(n,e);return r.setGroupProperty(PropertyInterface("Path",o)),Object.defineProperties(n,{path:{get:function(){return r.k&&r.getValue(),r}},shape:{get:function(){return r.k&&r.getValue(),r}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:e}}),n},ShapeExpressionInterface=function(){function t(t,view,c){var i,v=[],w=t?t.length:0;for(i=0;i<w;i+=1)"gr"===t[i].ty?v.push(e(t[i],view[i],c)):"fl"===t[i].ty?v.push(r(t[i],view[i],c)):"st"===t[i].ty?v.push(o(t[i],view[i],c)):"tm"===t[i].ty?v.push(l(t[i],view[i],c)):"tr"===t[i].ty||("el"===t[i].ty?v.push(h(t[i],view[i],c)):"sr"===t[i].ty?v.push(d(t[i],view[i],c)):"sh"===t[i].ty?v.push(ShapePathInterface(t[i],view[i],c)):"rc"===t[i].ty?v.push(f(t[i],view[i],c)):"rd"===t[i].ty?v.push(m(t[i],view[i],c)):"rp"===t[i].ty?v.push(y(t[i],view[i],c)):"gf"===t[i].ty?v.push(n(t[i],view[i],c)):v.push((t[i],view[i],function(){return null})));return v}function e(e,view,r){var n=function(t){switch(t){case"ADBE Vectors Group":case"Contents":case 2:return n.content;default:return n.transform}};n.propertyGroup=propertyGroupFactory(n,r);var content=function(e,view,r){var n,o=function(t){for(var i=0,e=n.length;i<e;){if(n[i]._name===t||n[i].mn===t||n[i].propertyIndex===t||n[i].ix===t||n[i].ind===t)return n[i];i+=1}return"number"==typeof t?n[t-1]:null};o.propertyGroup=propertyGroupFactory(o,r),n=t(e.it,view.it,o.propertyGroup),o.numProperties=n.length;var l=c(e.it[e.it.length-1],view.it[view.it.length-1],o.propertyGroup);return o.transform=l,o.propertyIndex=e.cix,o._name=e.nm,o}(e,view,n.propertyGroup),o=c(e.it[e.it.length-1],view.it[view.it.length-1],n.propertyGroup);return n.content=content,n.transform=o,Object.defineProperty(n,"_name",{get:function(){return e.nm}}),n.numProperties=e.np,n.propertyIndex=e.ix,n.nm=e.nm,n.mn=e.mn,n}function r(t,view,e){function r(t){return"Color"===t||"color"===t?r.color:"Opacity"===t||"opacity"===t?r.opacity:null}return Object.defineProperties(r,{color:{get:ExpressionPropertyInterface(view.c)},opacity:{get:ExpressionPropertyInterface(view.o)},_name:{value:t.nm},mn:{value:t.mn}}),view.c.setGroupProperty(PropertyInterface("Color",e)),view.o.setGroupProperty(PropertyInterface("Opacity",e)),r}function n(t,view,e){function r(t){return"Start Point"===t||"start point"===t?r.startPoint:"End Point"===t||"end point"===t?r.endPoint:"Opacity"===t||"opacity"===t?r.opacity:null}return Object.defineProperties(r,{startPoint:{get:ExpressionPropertyInterface(view.s)},endPoint:{get:ExpressionPropertyInterface(view.e)},opacity:{get:ExpressionPropertyInterface(view.o)},type:{get:function(){return"a"}},_name:{value:t.nm},mn:{value:t.mn}}),view.s.setGroupProperty(PropertyInterface("Start Point",e)),view.e.setGroupProperty(PropertyInterface("End Point",e)),view.o.setGroupProperty(PropertyInterface("Opacity",e)),r}function o(t,view,e){var i,r=propertyGroupFactory(h,e),n=propertyGroupFactory(c,r);function o(i){Object.defineProperty(c,t.d[i].nm,{get:ExpressionPropertyInterface(view.d.dataProps[i].p)})}var l=t.d?t.d.length:0,c={};for(i=0;i<l;i+=1)o(i),view.d.dataProps[i].p.setGroupProperty(n);function h(t){return"Color"===t||"color"===t?h.color:"Opacity"===t||"opacity"===t?h.opacity:"Stroke Width"===t||"stroke width"===t?h.strokeWidth:null}return Object.defineProperties(h,{color:{get:ExpressionPropertyInterface(view.c)},opacity:{get:ExpressionPropertyInterface(view.o)},strokeWidth:{get:ExpressionPropertyInterface(view.w)},dash:{get:function(){return c}},_name:{value:t.nm},mn:{value:t.mn}}),view.c.setGroupProperty(PropertyInterface("Color",r)),view.o.setGroupProperty(PropertyInterface("Opacity",r)),view.w.setGroupProperty(PropertyInterface("Stroke Width",r)),h}function l(t,view,e){function r(e){return e===t.e.ix||"End"===e||"end"===e?r.end:e===t.s.ix?r.start:e===t.o.ix?r.offset:null}var n=propertyGroupFactory(r,e);return r.propertyIndex=t.ix,view.s.setGroupProperty(PropertyInterface("Start",n)),view.e.setGroupProperty(PropertyInterface("End",n)),view.o.setGroupProperty(PropertyInterface("Offset",n)),r.propertyIndex=t.ix,r.propertyGroup=e,Object.defineProperties(r,{start:{get:ExpressionPropertyInterface(view.s)},end:{get:ExpressionPropertyInterface(view.e)},offset:{get:ExpressionPropertyInterface(view.o)},_name:{value:t.nm}}),r.mn=t.mn,r}function c(t,view,e){function r(e){return t.a.ix===e||"Anchor Point"===e?r.anchorPoint:t.o.ix===e||"Opacity"===e?r.opacity:t.p.ix===e||"Position"===e?r.position:t.r.ix===e||"Rotation"===e||"ADBE Vector Rotation"===e?r.rotation:t.s.ix===e||"Scale"===e?r.scale:t.sk&&t.sk.ix===e||"Skew"===e?r.skew:t.sa&&t.sa.ix===e||"Skew Axis"===e?r.skewAxis:null}var n=propertyGroupFactory(r,e);return view.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",n)),view.transform.mProps.p.setGroupProperty(PropertyInterface("Position",n)),view.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",n)),view.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",n)),view.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",n)),view.transform.mProps.sk&&(view.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",n)),view.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",n))),view.transform.op.setGroupProperty(PropertyInterface("Opacity",n)),Object.defineProperties(r,{opacity:{get:ExpressionPropertyInterface(view.transform.mProps.o)},position:{get:ExpressionPropertyInterface(view.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(view.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(view.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(view.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(view.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(view.transform.mProps.sa)},_name:{value:t.nm}}),r.ty="tr",r.mn=t.mn,r.propertyGroup=e,r}function h(t,view,e){function r(e){return t.p.ix===e?r.position:t.s.ix===e?r.size:null}var n=propertyGroupFactory(r,e);r.propertyIndex=t.ix;var o="tm"===view.sh.ty?view.sh.prop:view.sh;return o.s.setGroupProperty(PropertyInterface("Size",n)),o.p.setGroupProperty(PropertyInterface("Position",n)),Object.defineProperties(r,{size:{get:ExpressionPropertyInterface(o.s)},position:{get:ExpressionPropertyInterface(o.p)},_name:{value:t.nm}}),r.mn=t.mn,r}function d(t,view,e){function r(e){return t.p.ix===e?r.position:t.r.ix===e?r.rotation:t.pt.ix===e?r.points:t.or.ix===e||"ADBE Vector Star Outer Radius"===e?r.outerRadius:t.os.ix===e?r.outerRoundness:!t.ir||t.ir.ix!==e&&"ADBE Vector Star Inner Radius"!==e?t.is&&t.is.ix===e?r.innerRoundness:null:r.innerRadius}var n=propertyGroupFactory(r,e),o="tm"===view.sh.ty?view.sh.prop:view.sh;return r.propertyIndex=t.ix,o.or.setGroupProperty(PropertyInterface("Outer Radius",n)),o.os.setGroupProperty(PropertyInterface("Outer Roundness",n)),o.pt.setGroupProperty(PropertyInterface("Points",n)),o.p.setGroupProperty(PropertyInterface("Position",n)),o.r.setGroupProperty(PropertyInterface("Rotation",n)),t.ir&&(o.ir.setGroupProperty(PropertyInterface("Inner Radius",n)),o.is.setGroupProperty(PropertyInterface("Inner Roundness",n))),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(o.p)},rotation:{get:ExpressionPropertyInterface(o.r)},points:{get:ExpressionPropertyInterface(o.pt)},outerRadius:{get:ExpressionPropertyInterface(o.or)},outerRoundness:{get:ExpressionPropertyInterface(o.os)},innerRadius:{get:ExpressionPropertyInterface(o.ir)},innerRoundness:{get:ExpressionPropertyInterface(o.is)},_name:{value:t.nm}}),r.mn=t.mn,r}function f(t,view,e){function r(e){return t.p.ix===e?r.position:t.r.ix===e?r.roundness:t.s.ix===e||"Size"===e||"ADBE Vector Rect Size"===e?r.size:null}var n=propertyGroupFactory(r,e),o="tm"===view.sh.ty?view.sh.prop:view.sh;return r.propertyIndex=t.ix,o.p.setGroupProperty(PropertyInterface("Position",n)),o.s.setGroupProperty(PropertyInterface("Size",n)),o.r.setGroupProperty(PropertyInterface("Rotation",n)),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(o.p)},roundness:{get:ExpressionPropertyInterface(o.r)},size:{get:ExpressionPropertyInterface(o.s)},_name:{value:t.nm}}),r.mn=t.mn,r}function m(t,view,e){function r(e){return t.r.ix===e||"Round Corners 1"===e?r.radius:null}var n=propertyGroupFactory(r,e),o=view;return r.propertyIndex=t.ix,o.rd.setGroupProperty(PropertyInterface("Radius",n)),Object.defineProperties(r,{radius:{get:ExpressionPropertyInterface(o.rd)},_name:{value:t.nm}}),r.mn=t.mn,r}function y(t,view,e){function r(e){return t.c.ix===e||"Copies"===e?r.copies:t.o.ix===e||"Offset"===e?r.offset:null}var n=propertyGroupFactory(r,e),o=view;return r.propertyIndex=t.ix,o.c.setGroupProperty(PropertyInterface("Copies",n)),o.o.setGroupProperty(PropertyInterface("Offset",n)),Object.defineProperties(r,{copies:{get:ExpressionPropertyInterface(o.c)},offset:{get:ExpressionPropertyInterface(o.o)},_name:{value:t.nm}}),r.mn=t.mn,r}return function(e,view,r){var n;function o(t){if("number"==typeof t)return 0===(t=void 0===t?1:t)?r:n[t-1];for(var i=0,e=n.length;i<e;){if(n[i]._name===t)return n[i];i+=1}return null}return o.propertyGroup=propertyGroupFactory(o,(function(){return r})),n=t(e,view,o.propertyGroup),o.numProperties=n.length,o._name="Contents",o}}(),TextExpressionInterface=function(t){var e,r;function n(t){return"ADBE Text Document"===t?n.sourceText:null}return Object.defineProperty(n,"sourceText",{get:function(){t.textProperty.getValue();var n=t.textProperty.currentData.t;return n!==e&&(t.textProperty.currentData.t=e,(r=new String(n)).value=n||new String(n)),r}}),n};function _typeof$2(t){return _typeof$2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$2(t)}var FootageInterface=(dataInterfaceFactory=function(t){function e(t){return"Outline"===t?e.outlineInterface():null}return e._name="Outline",e.outlineInterface=function(t){var e="",r=t.getFootageData();function n(t){if(r[t])return e=t,"object"===_typeof$2(r=r[t])?n:r;var o=t.indexOf(e);if(-1!==o){var l=parseInt(t.substr(o+e.length),10);return"object"===_typeof$2(r=r[l])?n:r}return""}return function(){return e="",r=t.getFootageData(),n}}(t),e},function(t){function e(t){return"Data"===t?e.dataInterface:null}return e._name="Data",e.dataInterface=dataInterfaceFactory(t),e}),dataInterfaceFactory,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(t){return interfaces[t]||null}function _typeof$1(t){return _typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$1(t)}function seedRandom(t,e){var r=this,n=256,o="random",l=e.pow(n,6),c=e.pow(2,52),h=2*c,mask=255;function d(t){var e,r=t.length,o=this,i=0,l=o.i=o.j=0,s=o.S=[];for(r||(t=[r++]);i<n;)s[i]=i++;for(i=0;i<n;i++)s[i]=s[l=mask&l+t[i%r]+(e=s[i])],s[l]=e;o.g=function(t){for(var e,r=0,i=o.i,l=o.j,s=o.S;t--;)e=s[i=mask&i+1],r=r*n+s[mask&(s[i]=s[l=mask&l+e])+(s[l]=e)];return o.i=i,o.j=l,r}}function f(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function m(t,e){var r,n=[],o=_typeof$1(t);if(e&&"object"==o)for(r in t)try{n.push(m(t[r],e-1))}catch(t){}return n.length?n:"string"==o?t:t+"\0"}function y(t,e){for(var r,n=t+"",o=0;o<n.length;)e[mask&o]=mask&(r^=19*e[mask&o])+n.charCodeAt(o++);return v(e)}function v(a){return String.fromCharCode.apply(0,a)}e["seed"+o]=function(w,E,_){var T=[],S=y(m((E=!0===E?{entropy:!0}:E||{}).entropy?[w,v(t)]:null===w?function(){try{var e=new Uint8Array(n);return(r.crypto||r.msCrypto).getRandomValues(e),v(e)}catch(e){var o=r.navigator,l=o&&o.plugins;return[+new Date,r,l,r.screen,v(t)]}}():w,3),T),x=new d(T),I=function(){for(var t=x.g(6),e=l,r=0;t<c;)t=(t+r)*n,e*=n,r=x.g(1);for(;t>=h;)t/=2,e/=2,r>>>=1;return(t+r)/e};return I.int32=function(){return 0|x.g(4)},I.quick=function(){return x.g(4)/4294967296},I.double=I,y(v(x.S),t),(E.pass||_||function(t,r,n,l){return l&&(l.S&&f(l,x),t.state=function(){return f(x,{})}),n?(e[o]=t,r):t})(I,S,"global"in E?E.global:this==e,E.state)},y(e.random(),t)}function initialize$2(t){seedRandom([],t)}var propTypes={SHAPE:"shape"};function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null;function $bm_isInstanceOfArray(t){return t.constructor===Array||t.constructor===Float32Array}function isNumerable(t,e){return"number"===t||"boolean"===t||"string"===t||e instanceof Number}function $bm_neg(a){var t=_typeof(a);if("number"===t||"boolean"===t||a instanceof Number)return-a;if($bm_isInstanceOfArray(a)){var i,e=a.length,r=[];for(i=0;i<e;i+=1)r[i]=-a[i];return r}return a.propType?a.v:-a}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(a,b){var t=_typeof(a),e=_typeof(b);if("string"===t||"string"===e)return a+b;if(isNumerable(t,a)&&isNumerable(e,b))return a+b;if($bm_isInstanceOfArray(a)&&isNumerable(e,b))return(a=a.slice(0))[0]+=b,a;if(isNumerable(t,a)&&$bm_isInstanceOfArray(b))return(b=b.slice(0))[0]=a+b[0],b;if($bm_isInstanceOfArray(a)&&$bm_isInstanceOfArray(b)){for(var i=0,r=a.length,n=b.length,o=[];i<r||i<n;)("number"==typeof a[i]||a[i]instanceof Number)&&("number"==typeof b[i]||b[i]instanceof Number)?o[i]=a[i]+b[i]:o[i]=void 0===b[i]?a[i]:a[i]||b[i],i+=1;return o}return 0}var add=sum;function sub(a,b){var t=_typeof(a),e=_typeof(b);if(isNumerable(t,a)&&isNumerable(e,b))return"string"===t&&(a=parseInt(a,10)),"string"===e&&(b=parseInt(b,10)),a-b;if($bm_isInstanceOfArray(a)&&isNumerable(e,b))return(a=a.slice(0))[0]-=b,a;if(isNumerable(t,a)&&$bm_isInstanceOfArray(b))return(b=b.slice(0))[0]=a-b[0],b;if($bm_isInstanceOfArray(a)&&$bm_isInstanceOfArray(b)){for(var i=0,r=a.length,n=b.length,o=[];i<r||i<n;)("number"==typeof a[i]||a[i]instanceof Number)&&("number"==typeof b[i]||b[i]instanceof Number)?o[i]=a[i]-b[i]:o[i]=void 0===b[i]?a[i]:a[i]||b[i],i+=1;return o}return 0}function mul(a,b){var t,i,e,r=_typeof(a),n=_typeof(b);if(isNumerable(r,a)&&isNumerable(n,b))return a*b;if($bm_isInstanceOfArray(a)&&isNumerable(n,b)){for(e=a.length,t=createTypedArray("float32",e),i=0;i<e;i+=1)t[i]=a[i]*b;return t}if(isNumerable(r,a)&&$bm_isInstanceOfA
vendor: 4,565 bytes, line 2
2rray(b)){for(e=b.length,t=createTypedArray("float32",e),i=0;i<e;i+=1)t[i]=a*b[i];return t}return 0}function div(a,b){var t,i,e,r=_typeof(a),n=_typeof(b);if(isNumerable(r,a)&&isNumerable(n,b))return a/b;if($bm_isInstanceOfArray(a)&&isNumerable(n,b)){for(e=a.length,t=createTypedArray("float32",e),i=0;i<e;i+=1)t[i]=a[i]/b;return t}if(isNumerable(r,a)&&$bm_isInstanceOfArray(b)){for(e=b.length,t=createTypedArray("float32",e),i=0;i<e;i+=1)t[i]=a/b[i];return t}return 0}function mod(a,b){return"string"==typeof a&&(a=parseInt(a,10)),"string"==typeof b&&(b=parseInt(b,10)),a%b}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(t,e,r){if(e>r){var n=r;r=e,e=n}return Math.min(Math.max(t,e),r)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if("number"==typeof t||t instanceof Number)return e=e||0,Math.abs(t-e);var i;e||(e=helperLengthArray);var r=Math.min(t.length,e.length),n=0;for(i=0;i<r;i+=1)n+=Math.pow(e[i]-t[i],2);return Math.sqrt(n)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var e,s,r=t[0],g=t[1],b=t[2],n=Math.max(r,g,b),o=Math.min(r,g,b),l=(n+o)/2;if(n===o)e=0,s=0;else{var c=n-o;switch(s=l>.5?c/(2-n-o):c/(n+o),n){case r:e=(g-b)/c+(g<b?6:0);break;case g:e=(b-r)/c+2;break;case b:e=(r-g)/c+4}e/=6}return[e,s,l,t[3]]}function hue2rgb(p,q,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?p+6*(q-p)*t:t<.5?q:t<2/3?p+(q-p)*(2/3-t)*6:p}function hslToRgb(t){var e,g,b,r=t[0],s=t[1],n=t[2];if(0===s)e=n,b=n,g=n;else{var q=n<.5?n*(1+s):n+s-n*s,p=2*n-q;e=hue2rgb(p,q,r+1/3),g=hue2rgb(p,q,r),b=hue2rgb(p,q,r-1/3)}return[e,g,b,t[3]]}function linear(t,e,r,n,o){if(void 0!==n&&void 0!==o||(n=e,o=r,e=0,r=1),r<e){var l=r;r=e,e=l}if(t<=e)return n;if(t>=r)return o;var i,c=r===e?0:(t-e)/(r-e);if(!n.length)return n+(o-n)*c;var h=n.length,d=createTypedArray("float32",h);for(i=0;i<h;i+=1)d[i]=n[i]+(o[i]-n[i])*c;return d}function random(t,e){if(void 0===e&&(void 0===t?(t=0,e=1):(e=t,t=void 0)),e.length){var i,r=e.length;t||(t=createTypedArray("float32",r));var n=createTypedArray("float32",r),o=BMMath.random();for(i=0;i<r;i+=1)n[i]=t[i]+o*(e[i]-t[i]);return n}return void 0===t&&(t=0),t+BMMath.random()*(e-t)}function createPath(t,e,r,n){var i,o=t.length,path=shapePool.newElement();path.setPathData(!!n,o);var l,c,h=[0,0];for(i=0;i<o;i+=1)l=e&&e[i]?e[i]:h,c=r&&r[i]?r[i]:h,path.setTripleAt(t[i][0],t[i][1],c[0]+t[i][0],c[1]+t[i][1],l[0]+t[i][0],l[1]+t[i][1],i,!0);return path}function initiateExpression(elem,data,property){function noOp(t){return t}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.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(t,e){var r,n,o=this.pv.length?this.pv.length:1,l=createTypedArray("float32",o),c=Math.floor(5*time);for(r=0,n=0;r<c;){for(n=0;n<o;n+=1)l[n]+=-e+2*e*BMMath.random();r+=1}var h=5*time,d=h-Math.floor(h),f=createTypedArray("float32",o);if(o>1){for(n=0;n<o;n+=1)f[n]=this.pv[n]+l[n]+(-e+2*e*BMMath.random())*d;return f}return this.pv+l[0]+(-e+2*e*BMMath.random())*d}.bind(this);function loopInDuration(t,e){return loopIn(t,e,!0)}function loopOutDuration(t,e){return loopOut(t,e,!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));
vendor: 14,930 bytes, line 2
2var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(t,e){var r=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],n=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads;return[-Math.atan2(r[1],r[2])/degToRads,n,0]}function easeOut(t,e,r,n,o){return applyEase(easeOutBez,t,e,r,n,o)}function easeIn(t,e,r,n,o){return applyEase(easeInBez,t,e,r,n,o)}function ease(t,e,r,n,o){return applyEase(easeInOutBez,t,e,r,n,o)}function applyEase(t,e,r,n,o,l){void 0===o?(o=r,l=n):e=(e-r)/(n-r),e>1?e=1:e<0&&(e=0);var c=t(e);if($bm_isInstanceOfArray(o)){var h,d=o.length,f=createTypedArray("float32",d);for(h=0;h<d;h+=1)f[h]=(l[h]-o[h])*c+o[h];return f}return(l-o)*c+o}function nearestKey(time){var t,e,r,n=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(e=-1,(time*=elem.comp.globalData.frameRate)<data.k[0].t)e=1,r=data.k[0].t;else{for(t=0;t<n-1;t+=1){if(time===data.k[t].t){e=t+1,r=data.k[t].t;break}if(time>data.k[t].t&&time<data.k[t+1].t){time-data.k[t].t>data.k[t+1].t-time?(e=t+2,r=data.k[t+1].t):(e=t+1,r=data.k[t].t);break}}-1===e&&(e=t+1,r=data.k[t].t)}else e=0,r=0;var o={};return o.index=e,o.time=r/elem.comp.globalData.frameRate,o}function key(t){var e,r,n;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var o=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;for(n=o.length,r=0;r<n;r+=1)e[r]=o[r],e.value[r]=o[r];return e}function framesToTime(t,e){return e||(e=elem.comp.globalData.frameRate),t/e}function timeToFrames(t,e){return t||0===t||(t=time),e||(e=elem.comp.globalData.frameRate),t*e}function seedRandom(t){BMMath.seedrandom(randSeed+t)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(t,e){return"string"==typeof value?void 0===e?value.substring(t):value.substring(t,e):""}function substr(t,e){return"string"==typeof value?void 0===e?value.substr(t):value.substr(t,e):""}function posterizeTime(t){time=0===t?0:Math.floor(time*t)/t,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(t){return value=t,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],ob}(),expressionHelpers={searchExpressions:function(t,data,e){data.x&&(e.k=!0,e.x=!0,e.initiateExpression=ExpressionManager.initiateExpression,e.effectsSequence.push(e.initiateExpression(t,data,e).bind(e)))},getSpeedAtTime:function(t){var e=this.getValueAtTime(t),r=this.getValueAtTime(t+-.01),n=0;if(e.length){var i;for(i=0;i<e.length;i+=1)n+=Math.pow(r[i]-e[i],2);n=100*Math.sqrt(n)}else n=0;return n},getVelocityAtTime:function(t){if(void 0!==this.vel)return this.vel;var e,i,r=-.001,n=this.getValueAtTime(t),o=this.getValueAtTime(t+r);if(n.length)for(e=createTypedArray("float32",n.length),i=0;i<n.length;i+=1)e[i]=(o[i]-n[i])/r;else e=(o-n)/r;return e},getValueAtTime:function(t){return t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<t?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(t,this._cachingAtTime),this._cachingAtTime.lastFrame=t),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(t){this.propertyGroup=t}};function addPropertyDecorator(){function t(t,e,r){if(!this.k||!this.keyframes)return this.pv;t=t?t.toLowerCase():"";var n,o,i,l,c,h=this.comp.renderedFrame,d=this.keyframes,f=d[d.length-1].t;if(h<=f)return this.pv;if(r?o=f-(n=e?Math.abs(f-this.elem.comp.globalData.frameRate*e):Math.max(0,f-this.elem.data.ip)):((!e||e>d.length-1)&&(e=d.length-1),n=f-(o=d[d.length-1-e].t)),"pingpong"===t){if(Math.floor((h-o)/n)%2!=0)return this.getValueAtTime((n-(h-o)%n+o)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var m=this.getValueAtTime(o/this.comp.globalData.frameRate,0),y=this.getValueAtTime(f/this.comp.globalData.frameRate,0),v=this.getValueAtTime(((h-o)%n+o)/this.comp.globalData.frameRate,0),w=Math.floor((h-o)/n);if(this.pv.length){for(l=(c=new Array(m.length)).length,i=0;i<l;i+=1)c[i]=(y[i]-m[i])*w+v[i];return c}return(y-m)*w+v}if("continue"===t){var E=this.getValueAtTime(f/this.comp.globalData.frameRate,0),_=this.getValueAtTime((f-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(l=(c=new Array(E.length)).length,i=0;i<l;i+=1)c[i]=E[i]+(E[i]-_[i])*((h-f)/this.comp.globalData.frameRate)/5e-4;return c}return E+(h-f)/.001*(E-_)}}return this.getValueAtTime(((h-o)%n+o)/this.comp.globalData.frameRate,0)}function e(t,e,r){if(!this.k)return this.pv;t=t?t.toLowerCase():"";var n,o,i,l,c,h=this.comp.renderedFrame,d=this.keyframes,f=d[0].t;if(h>=f)return this.pv;if(r?o=f+(n=e?Math.abs(this.elem.comp.globalData.frameRate*e):Math.max(0,this.elem.data.op-f)):((!e||e>d.length-1)&&(e=d.length-1),n=(o=d[e].t)-f),"pingpong"===t){if(Math.floor((f-h)/n)%2==0)return this.getValueAtTime(((f-h)%n+f)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var m=this.getValueAtTime(f/this.comp.globalData.frameRate,0),y=this.getValueAtTime(o/this.comp.globalData.frameRate,0),v=this.getValueAtTime((n-(f-h)%n+f)/this.comp.globalData.frameRate,0),w=Math.floor((f-h)/n)+1;if(this.pv.length){for(l=(c=new Array(m.length)).length,i=0;i<l;i+=1)c[i]=v[i]-(y[i]-m[i])*w;return c}return v-(y-m)*w}if("continue"===t){var E=this.getValueAtTime(f/this.comp.globalData.frameRate,0),_=this.getValueAtTime((f+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(l=(c=new Array(E.length)).length,i=0;i<l;i+=1)c[i]=E[i]+(E[i]-_[i])*(f-h)/.001;return c}return E+(E-_)*(f-h)/.001}}return this.getValueAtTime((n-((f-h)%n+f))/this.comp.globalData.frameRate,0)}function r(t,e){if(!this.k)return this.pv;if(t=.5*(t||.4),(e=Math.floor(e||5))<=1)return this.pv;var r,n,o=this.comp.renderedFrame/this.comp.globalData.frameRate,l=o-t,c=e>1?(o+t-l)/(e-1):1,i=0,h=0;for(r=this.pv.length?createTypedArray("float32",this.pv.length):0;i<e;){if(n=this.getValueAtTime(l+i*c),this.pv.length)for(h=0;h<this.pv.length;h+=1)r[h]+=n[h];else r+=n;i+=1}if(this.pv.length)for(h=0;h<this.pv.length;h+=1)r[h]/=e;else r/=e;return r}function n(time){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var t=this._transformCachingAtTime.v;if(t.cloneFromProps(this.pre.props),this.appliedTransformations<1){var e=this.a.getValueAtTime(time);t.translate(-e[0]*this.a.mult,-e[1]*this.a.mult,e[2]*this.a.mult)}if(this.appliedTransformations<2){var r=this.s.getValueAtTime(time);t.scale(r[0]*this.s.mult,r[1]*this.s.mult,r[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var n=this.sk.getValueAtTime(time),o=this.sa.getValueAtTime(time);t.skewFromAxis(-n*this.sk.mult,o*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var l=this.r.getValueAtTime(time);t.rotate(-l*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var c=this.rz.getValueAtTime(time),h=this.ry.getValueAtTime(time),d=this.rx.getValueAtTime(time),f=this.or.getValueAtTime(time);t.rotateZ(-c*this.rz.mult).rotateY(h*this.ry.mult).rotateX(d*this.rx.mult).rotateZ(-f[2]*this.or.mult).rotateY(f[1]*this.or.mult).rotateX(f[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var m=this.px.getValueAtTime(time),y=this.py.getValueAtTime(time);if(this.data.p.z){var v=this.pz.getValueAtTime(time);t.translate(m*this.px.mult,y*this.py.mult,-v*this.pz.mult)}else t.translate(m*this.px.mult,y*this.py.mult,0)}else{var w=this.p.getValueAtTime(time);t.translate(w[0]*this.p.mult,w[1]*this.p.mult,-w[2]*this.p.mult)}return t}function o(){return this.v.clone(new Matrix)}var l=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(t,data,e){var r=l(t,data,e);return r.dynamicProperties.length?r.getValueAtTime=n.bind(r):r.getValueAtTime=o.bind(r),r.setGroupProperty=expressionHelpers.setGroupProperty,r};var c=PropertyFactory.getProp;PropertyFactory.getProp=function(n,data,o,l,h){var d=c(n,data,o,l,h);d.kf?d.getValueAtTime=expressionHelpers.getValueAtTime.bind(d):d.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(d),d.setGroupProperty=expressionHelpers.setGroupProperty,d.loopOut=t,d.loopIn=e,d.smooth=r,d.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(d),d.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(d),d.numKeys=1===data.a?data.k.length:0,d.propertyIndex=data.ix;var f=0;return 0!==o&&(f=createTypedArray("float32",1===data.a?data.k[0].s.length:data.k.length)),d._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:f},expressionHelpers.searchExpressions(n,data,d),d.k&&h.addDynamicProperty(d),d};var h=ShapePropertyFactory.getConstructorFunction(),d=ShapePropertyFactory.getKeyframedConstructorFunction();function f(){}f.prototype={vertices:function(t,time){this.k&&this.getValue();var i,e=this.v;void 0!==time&&(e=this.getValueAtTime(time,0));var r=e._length,n=e[t],o=e.v,l=createSizedArray(r);for(i=0;i<r;i+=1)l[i]="i"===t||"o"===t?[n[i][0]-o[i][0],n[i][1]-o[i][1]]:[n[i][0],n[i][1]];return l},points:function(time){return this.vertices("v",time)},inTangents:function(time){return this.vertices("i",time)},outTangents:function(time){return this.vertices("o",time)},isClosed:function(){return this.v.c},pointOnPath:function(t,time){var e=this.v;void 0!==time&&(e=this.getValueAtTime(time,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(e));for(var r,n=this._segmentsLength,o=n.lengths,l=n.totalLength*t,i=0,c=o.length,h=0;i<c;){if(h+o[i].addedLength>l){var d=i,f=e.c&&i===c-1?0:i+1,m=(l-h)/o[i].addedLength;r=bez.getPointInSegment(e.v[d],e.v[f],e.o[d],e.i[f],m,o[i]);break}h+=o[i].addedLength,i+=1}return r||(r=e.c?[e.v[0][0],e.v[0][1]]:[e.v[e._length-1][0],e.v[e._length-1][1]]),r},vectorOnPath:function(t,time,e){1==t?t=this.v.c:0==t&&(t=.999);var r=this.pointOnPath(t,time),n=this.pointOnPath(t+.001,time),o=n[0]-r[0],l=n[1]-r[1],c=Math.sqrt(Math.pow(o,2)+Math.pow(l,2));return 0===c?[0,0]:"tangent"===e?[o/c,l/c]:[-l/c,o/c]},tangentOnPath:function(t,time){return this.vectorOnPath(t,time,"tangent")},normalOnPath:function(t,time){return this.vectorOnPath(t,time,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([f],h),extendPrototype([f],d),d.prototype.getValueAtTime=function(t){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<t?this._caching.lastIndex:0,this._cachingAtTime.lastTime=t,this.interpolateShape(t,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},d.prototype.initiateExpression=ExpressionManager.initiateExpression;var m=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(t,data,e,r,n){var o=m(t,data,e,r,n);return o.propertyIndex=data.ix,o.lock=!1,3===e?expressionHelpers.searchExpressions(t,data.pt,o):4===e&&expressionHelpers.searchExpressions(t,data.ks,o),o.k&&t.addDynamicProperty(o),o}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(t,text){var e=this.calculateExpression(text);if(t.t!==e){var r={};return this.copyData(r,t),r.t=e.toString(),r.__complete=!1,r}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=t||e,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(){}function SVGTintFilter(filter,t,e,r,source){this.filterManager=t;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","linearRGB"),n.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"),n.setAttribute("result",r+"_tint_1"),filter.appendChild(n),(n=createNS("feColorMatrix")).setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),n.setAttribute("result",r+"_tint_2"),filter.appendChild(n),this.matrixFilter=n;var o=this.createMergeNode(r,[source,r+"_tint_1",r+"_tint_2"]);filter.appendChild(o)}function SVGFillFilter(filter,t,e,r){this.filterManager=t;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),n.setAttribute("result",r),filter.appendChild(n),this.matrixFilter=n}
vendor: 5,828 bytes, line 2
2function SVGStrokeEffect(t,e,r){this.initialized=!1,this.filterManager=e,this.elem=r,this.paths=[]}function SVGTritoneFilter(filter,t,e,r){this.filterManager=t;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","linearRGB"),n.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"),filter.appendChild(n);var o=createNS("feComponentTransfer");o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("result",r),this.matrixFilter=o;var l=createNS("feFuncR");l.setAttribute("type","table"),o.appendChild(l),this.feFuncR=l;var c=createNS("feFuncG");c.setAttribute("type","table"),o.appendChild(c),this.feFuncG=c;var h=createNS("feFuncB");h.setAttribute("type","table"),o.appendChild(h),this.feFuncB=h,filter.appendChild(o)}function SVGProLevelsFilter(filter,t,e,r){this.filterManager=t;var n=this.filterManager.effectElements,o=createNS("feComponentTransfer");(n[10].p.k||0!==n[10].p.v||n[11].p.k||1!==n[11].p.v||n[12].p.k||1!==n[12].p.v||n[13].p.k||0!==n[13].p.v||n[14].p.k||1!==n[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",o)),(n[17].p.k||0!==n[17].p.v||n[18].p.k||1!==n[18].p.v||n[19].p.k||1!==n[19].p.v||n[20].p.k||0!==n[20].p.v||n[21].p.k||1!==n[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",o)),(n[24].p.k||0!==n[24].p.v||n[25].p.k||1!==n[25].p.v||n[26].p.k||1!==n[26].p.v||n[27].p.k||0!==n[27].p.v||n[28].p.k||1!==n[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",o)),(n[31].p.k||0!==n[31].p.v||n[32].p.k||1!==n[32].p.v||n[33].p.k||1!==n[33].p.v||n[34].p.k||0!==n[34].p.v||n[35].p.k||1!==n[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",o)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(o.setAttribute("color-interpolation-filters","sRGB"),filter.appendChild(o)),(n[3].p.k||0!==n[3].p.v||n[4].p.k||1!==n[4].p.v||n[5].p.k||1!==n[5].p.v||n[6].p.k||0!==n[6].p.v||n[7].p.k||1!==n[7].p.v)&&((o=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("result",r),filter.appendChild(o),this.feFuncRComposed=this.createFeFunc("feFuncR",o),this.feFuncGComposed=this.createFeFunc("feFuncG",o),this.feFuncBComposed=this.createFeFunc("feFuncB",o))}function SVGDropShadowEffect(filter,t,e,r,source){var n=t.container.globalData.renderConfig.filterSize,o=t.data.fs||n;filter.setAttribute("x",o.x||n.x),filter.setAttribute("y",o.y||n.y),filter.setAttribute("width",o.width||n.width),filter.setAttribute("height",o.height||n.height),this.filterManager=t;var l=createNS("feGaussianBlur");l.setAttribute("in","SourceAlpha"),l.setAttribute("result",r+"_drop_shadow_1"),l.setAttribute("stdDeviation","0"),this.feGaussianBlur=l,filter.appendChild(l);var c=createNS("feOffset");c.setAttribute("dx","25"),c.setAttribute("dy","0"),c.setAttribute("in",r+"_drop_shadow_1"),c.setAttribute("result",r+"_drop_shadow_2"),this.feOffset=c,filter.appendChild(c);var h=createNS("feFlood");h.setAttribute("flood-color","#00ff00"),h.setAttribute("flood-opacity","1"),h.setAttribute("result",r+"_drop_shadow_3"),this.feFlood=h,filter.appendChild(h);var d=createNS("feComposite");d.setAttribute("in",r+"_drop_shadow_3"),d.setAttribute("in2",r+"_drop_shadow_2"),d.setAttribute("operator","in"),d.setAttribute("result",r+"_drop_shadow_4"),filter.appendChild(d);var f=this.createMergeNode(r,[r+"_drop_shadow_4",source]);filter.appendChild(f)}SVGComposableEffect.prototype={createMergeNode:function(t,ins){var e,i,r=createNS("feMerge");for(r.setAttribute("result",t),i=0;i<ins.length;i+=1)(e=createNS("feMergeNode")).setAttribute("in",ins[i]),r.appendChild(e),r.appendChild(e);return r}},extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v/100;this.matrixFilter.setAttribute("values",r[0]-e[0]+" 0 0 0 "+e[0]+" "+(r[1]-e[1])+" 0 0 0 "+e[1]+" "+(r[2]-e[2])+" 0 0 0 "+e[2]+" 0 0 0 "+n+" 0")}},SVGFillFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[2].p.v,r=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+e[0]+" 0 0 0 0 "+e[1]+" 0 0 0 0 "+e[2]+" 0 0 0 "+r+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var path,t,i,e,r=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(e=this.elem.maskManager.masksProperties.length,i=0):e=1+(i=this.filterManager.effectElements[0].p.v-1),(t=createNS("g")).setAttribute("fill","none"),t.setAttribute("stroke-linecap","round"),t.setAttribute("stroke-dashoffset",1);i<e;i+=1)path=createNS("path"),t.appendChild(path),this.paths.push({p:path,m:i});if(3===this.filterManager.effectElements[10].p.v){var mask=createNS("mask"),n=createElementID();mask.setAttribute("id",n),mask.setAttribute("mask-type","alpha"),mask.appendChild(t),this.elem.globalData.defs.appendChild(mask);var g=createNS("g");for(g.setAttribute("mask","url("+getLocationHref()+"#"+n+")");r[0];)g.appendChild(r[0]);this.elem.layerElement.appendChild(g),this.masker=mask,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(r=this.elem.layerElement.children||this.elem.layerElement.childNodes;r.length;)this.elem.layerElement.removeChild(r[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(t){var i;this.initialized||this.initialize();var mask,path,e=this.paths.length;for(i=0;i<e;
vendor: 4,696 bytes, line 2
2i+=1)if(-1!==this.paths[i].m&&(mask=this.elem.maskManager.viewData[this.paths[i].m],path=this.paths[i].p,(t||this.filterManager._mdf||mask.prop._mdf)&&path.setAttribute("d",mask.lastPath),t||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||mask.prop._mdf)){var r;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),n=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),o=path.getTotalLength();r="0 0 0 "+o*s+" ";var l,c=o*(n-s),h=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,d=Math.floor(c/h);for(l=0;l<d;l+=1)r+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";r+="0 "+10*o+" 0 0"}else r="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;path.setAttribute("stroke-dasharray",r)}if((t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(t||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)&&(t||this.filterManager.effectElements[3].p._mdf)){var f=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*f[0])+","+bmFloor(255*f[1])+","+bmFloor(255*f[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v,o=n[0]+" "+r[0]+" "+e[0],l=n[1]+" "+r[1]+" "+e[1],c=n[2]+" "+r[2]+" "+e[2];this.feFuncR.setAttribute("tableValues",o),this.feFuncG.setAttribute("tableValues",l),this.feFuncB.setAttribute("tableValues",c)}},SVGProLevelsFilter.prototype.createFeFunc=function(t,e){var r=createNS(t);return r.setAttribute("type","table"),e.appendChild(r),r},SVGProLevelsFilter.prototype.getTableValue=function(t,e,r,n,o){for(var l,c,h=0,d=Math.min(t,e),f=Math.max(t,e),table=Array.call(null,{length:256}),m=0,y=o-n,v=e-t;h<=256;)c=(l=h/256)<=d?v<0?o:n:l>=f?v<0?n:o:n+y*Math.pow((l-t)/v,1/r),table[m]=c,m+=1,h+=256/255;return table.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,r=this.filterManager.effectElements;this.feFuncRComposed&&(t||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(e=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(e=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(e=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(e=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(e=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v),this.feFuncA.setAttribute("tableValues",e))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var col=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*col[0]),Math.round(255*col[1]),Math.round(255*col[2])))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var e=this.filterManager.effectElements[3].p.v,r=(this.filterManager.effectElements[2].p.v-90)*degToRads,n=e*Math.cos(r),o=e*Math.sin(r);
2this.feOffset.setAttribute("dx",n),this.feOffset.setAttribute("dy",o)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,r){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}function SVGGaussianBlurEffect(filter,t,e,r){filter.setAttribute("x","-100%"),filter.setAttribute("y","-100%"),filter.setAttribute("width","300%"),filter.setAttribute("height","300%"),this.filterManager=t;var n=createNS("feGaussianBlur");n.setAttribute("result",r),filter.appendChild(n),this.feGaussianBlur=n}return SVGMatte3Effect.prototype.findSymbol=function(mask){for(var i=0,t=_svgMatteSymbols.length;i<t;){if(_svgMatteSymbols[i]===mask)return _svgMatteSymbols[i];i+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(mask,t){var e=mask.layerElement.parentNode;if(e){for(var r,n=e.children,i=0,o=n.length;i<o&&n[i]!==mask.layerElement;)i+=1;i<=o-2&&(r=n[i+1]);var l=createNS("use");l.setAttribute("href","#"+t),r?e.insertBefore(l,r):e.appendChild(l)}},SVGMatte3Effect.prototype.setElementAsMask=function(t,mask){if(!this.findSymbol(mask)){var e=createElementID(),r=createNS("mask");r.setAttribute("id",mask.layerId),r.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(mask);var defs=t.globalData.defs;defs.appendChild(r);var symbol=createNS("symbol");symbol.setAttribute("id",e),this.replaceInParent(mask,e),symbol.appendChild(mask.layerElement),defs.appendChild(symbol);var n=createNS("use");n.setAttribute("href","#"+e),r.appendChild(n),mask.data.hd=!1,mask.show()}t.setMatte(mask.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,e=this.elem.comp.elements,i=0,r=e.length;i<r;)e[i]&&e[i].data.ind===t&&this.setElementAsMask(this.elem,e[i]),i+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=.3*this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=3==r?0:e,o=2==r?0:e;this.feGaussianBlur.setAttribute("stdDeviation",n+" "+o);var l=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",l)}},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(20,SVGTintFilter,!0),registerEffect(21,SVGFillFilter,!0),registerEffect(22,SVGStrokeEffect,!1),registerEffect(23,SVGTritoneFilter,!0),registerEffect(24,SVGProLevelsFilter,!0),registerEffect(25,SVGDropShadowEffect,!0),registerEffect(28,SVGMatte3Effect,!1),registerEffect(29,SVGGaussianBlurEffect,!0),lottie},module.exports=factory())},279:function(t,e,r){t.exports=y,y.Minimatch=v;var path=function(){try{return r(422)}catch(t){}}()||{sep:"/"};y.sep=path.sep;var n=y.GLOBSTAR=v.GLOBSTAR={},o=r(423),l={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},c="[^/]",h=c+"*?",d="().*{}+?[]^$\\!".split("").reduce((function(t,e){return t[e]=!0,t}),{});var f=/\/+/;function m(a,b){b=b||{};var t={};return Object.keys(a).forEach((function(e){t[e]=a[e]})),Object.keys(b).forEach((function(e){t[e]=b[e]})),t}function y(p,pattern,t){return E(pattern),t||(t={}),!(!t.nocomment&&"#"===pattern.charAt(0))&&new v(pattern,t).match(p)}function v(pattern,t){if(!(this instanceof v))return new v(pattern,t);E(pattern),t||(t={}),pattern=pattern.trim(),t.allowWindowsEscape||"/"===path.sep||(pattern=pattern.split(path.sep).join("/")),this.options=t,this.set=[],this.pattern=pattern,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}function w(pattern,t){return t||(t=this instanceof v?this.options:{}),pattern=void 0===pattern?this.pattern:pattern,E(pattern),t.nobrace||!/\{(?:(?!\{).)*\}/.test(pattern)?[pattern]:o(pattern)}y.filter=function(pattern,t){return t=t||{},function(p,i,e){return y(p,pattern,t)}},y.defaults=function(t){if(!t||"object"!=typeof t||!Object.keys(t).length)return y;var e=y,r=function(p,pattern,r){return e(p,pattern,m(t,r))};return(r.Minimatch=function(pattern,r){return new e.Minimatch(pattern,m(t,r))}).defaults=function(r){return e.defaults(m(t,r)).Minimatch},r.filter=function(pattern,r){return e.filter(pattern,m(t,r))},r.defaults=function(r){return e.defaults(m(t,r))},r.makeRe=function(pattern,r){return e.makeRe(pattern,m(t,r))},r.braceExpand=function(pattern,r){return e.braceExpand(pattern,m(t,r))},r.match=function(r,pattern,n){return e.match(r,pattern,m(t,n))},r},v.defaults=function(t){return y.defaults(t).Minimatch},v.prototype.debug=function(){},v.prototype.make=function(){var pattern=this.pattern,t=this.options;if(!t.nocomment&&"#"===pattern.charAt(0))return void(this.comment=!0);if(!pattern)return void(this.empty=!0);this.parseNegate();var e=this.globSet=this.braceExpand();t.debug&&(this.debug=function(){console.error.apply(console,arguments)});this.debug(this.pattern,e),e=this.globParts=e.map((function(s){return s.split(f)})),this.debug(this.pattern,e),e=e.map((function(s,t,e){return s.map(this.parse,this)}),this),this.debug(this.pattern,e),e=e.filter((function(s){return-1===s.indexOf(!1)})),this.debug(this.pattern,e),this.set=e},v.prototype.parseNegate=function(){var pattern=this.pattern,t=!1,e=this.options,r=0;if(e.nonegate)return;for(var i=0,n=pattern.length;i<n&&"!"===pattern.charAt(i);i++)t=!t,r++;r&&(this.pattern=pattern.substr(r));this.negate=t},y.braceExpand=function(pattern,t){return w(pattern,t)},v.prototype.braceExpand=w;var E=function(pattern){if("string"!=typeof pattern)throw new TypeError("invalid pattern");if(pattern.length>65536)throw new TypeError("pattern is too long")};v.prototype.parse=function(pattern,t){E(pattern);var e=this.options;if("**"===pattern){if(!e.noglobstar)return n;pattern="*"}if(""===pattern)return"";var r,o="",f=!!e.nocase,m=!1,y=[],v=[],w=!1,T=-1,S=-1,x="."===pattern.charAt(0)?"":e.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",I=this;function P(){if(r){switch(r){case"*":o+=h,f=!0;break;case"?":o+=c,f=!0;break;default:o+="\\"+r}I.debug("clearStateChar %j %j",r,o),r=!1}}for(var O,i=0,A=pattern.length;i<A&&(O=pattern.charAt(i));i++)if(this.debug("%s\t%s %s %j",pattern,i,o,O),m&&d[O])o+="\\"+O,m=!1;else switch(O){case"/":return!1;case"\\":P(),m=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",pattern,i,o,O),w){this.debug("  in class"),"!"===O&&i===S+1&&(O="^"),o+=O;continue}I.debug("call clearStateChar %j",r),P(),r=O,e.noext&&P();continue;case"(":if(w){o+="(";continue}if(!r){o+="\\(";continue}y.push({type:r,start:i-1,reStart:o.length,open:l[r].open,close:l[r].close}),o+="!"===r?"(?:(?!(?:":"(?:",this.debug("plType %j %j",r,o),r=!1;continue;case")":if(w||!y.length){o+="\\)";continue}P(),f=!0;var k=y.pop();o+=k.close,"!"===k.type&&v.push(k),k.reEnd=o.length;continue;case"|":if(w||!y.length||m){o+="\\|",m=!1;continue}P(),o+="|";continue;case"[":if(P(),w){o+="\\"+O;continue}w=!0,S=i,T=o.length,o+=O;continue;case"]":if(i===S+1||!w){o+="\\"+O,m=!1;continue}var C=pattern.substring(S+1,i);try{RegExp("["+C+"]")}catch(t){var D=this.parse(C,_);o=o.substr(0,T)+"\\["+D[0]+"\\]",f=f||D[1],w=!1;continue}f=!0,w=!1,o+=O;continue;default:P(),m?m=!1:!d[O]||"^"===O&&w||(o+="\\"),o+=O}w&&(C=pattern.substr(S+1),D=this.parse(C,_),o=o.substr(0,T)+"\\["+D[0],f=f||D[1]);for(k=y.pop();k;k=y.pop()){var M=o.slice(k.reStart+k.open.length);this.debug("setting tail",o,k),M=M.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(t,e,r){return r||(r="\\"),e+e+r+"|"})),this.debug("tail=%j\n   %s",M,M,k,o);var N="*"===k.type?h:"?"===k.type?c:"\\"+k.type;f=!0,o=o.slice(0,k.reStart)+N+"\\("+M}P(),m&&(o+="\\\\");var R=!1;switch(o.charAt(0)){case"[":case".":case"(":R=!0}for(var F=v.length-1;F>-1;F--){var j=v[F],L=o.slice(0,j.reStart),B=o.slice(j.reStart,j.reEnd-8),V=o.slice(j.reEnd-8,j.reEnd),z=o.slice(j.reEnd);V+=z;var G=L.split("(").length-1,U=z;for(i=0;i<G;i++)U=U.replace(/\)[+*?]?/,"");var $="";""===(z=U)&&t!==_&&($="$"),o=L+B+z+$+V}""!==o&&f&&(o="(?=.)"+o);R&&(o=x+o);if(t===_)return[o,f];if(!f)return function(s){return s.replace(/\\(.)/g,"$1")}(pattern);var H=e.nocase?"i":"";try{var Y=new RegExp("^"+o+"$",H)}catch(t){return new RegExp("$.")}return Y._glob=pattern,Y._src=o,Y};var _={};y.makeRe=function(pattern,t){return new v(pattern,t||{}).makeRe()},v.prototype.makeRe=function(){if(this.regexp||!1===this.regexp)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?h:e.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",o=e.nocase?"i":"",l=t.map((function(pattern){return pattern.map((function(p){return p===n?r:"string"==typeof p?function(s){return s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}(p):p._src})).join("\\/")})).join("|");l="^(?:"+l+")$",this.negate&&(l="^(?!"+l+").*$");try{this.regexp=new RegExp(l,o)}catch(t){this.regexp=!1}return this.regexp},y.match=function(t,pattern,e){var r=new v(pattern,e=e||{});return t=t.filter((function(t){return r.match(t)})),r.options.nonull&&!t.length&&t.push(pattern),t},v.prototype.match=function(t,e){if(void 0===e&&(e=this.partial),this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return""===t;if("/"===t&&e)return!0;var r=this.options;
2"/"!==path.sep&&(t=t.split(path.sep).join("/")),t=t.split(f),this.debug(this.pattern,"split",t);var n,i,o=this.set;for(this.debug(this.pattern,"set",o),i=t.length-1;i>=0&&!(n=t[i]);i--);for(i=0;i<o.length;i++){var pattern=o[i],l=t;if(r.matchBase&&1===pattern.length&&(l=[n]),this.matchOne(l,pattern,e))return!!r.flipNegate||!this.negate}return!r.flipNegate&&this.negate},v.prototype.matchOne=function(t,pattern,e){var r=this.options;this.debug("matchOne",{this:this,file:t,pattern:pattern}),this.debug("matchOne",t.length,pattern.length);for(var o=0,l=0,c=t.length,h=pattern.length;o<c&&l<h;o++,l++){this.debug("matchOne loop");var d,p=pattern[l],f=t[o];if(this.debug(pattern,p,f),!1===p)return!1;if(p===n){this.debug("GLOBSTAR",[pattern,p,f]);var m=o,y=l+1;if(y===h){for(this.debug("** at the end");o<c;o++)if("."===t[o]||".."===t[o]||!r.dot&&"."===t[o].charAt(0))return!1;return!0}for(;m<c;){var v=t[m];if(this.debug("\nglobstar while",t,m,pattern,y,v),this.matchOne(t.slice(m),pattern.slice(y),e))return this.debug("globstar found match!",m,c,v),!0;if("."===v||".."===v||!r.dot&&"."===v.charAt(0)){this.debug("dot detected!",t,m,pattern,y);break}this.debug("globstar swallow a segment, and continue"),m++}return!(!e||(this.debug("\n>>> no match, partial?",t,m,pattern,y),m!==c))}if("string"==typeof p?(d=f===p,this.debug("string match",p,f,d)):(d=f.match(p),this.debug("pattern match",p,f,d)),!d)return!1}if(o===c&&l===h)return!0;if(o===c)return e;if(l===h)return o===c-1&&""===t[o];throw new Error("wtf?")}},280:function(t,e){t.exports=function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var r={};return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=0)}([function(t,e,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=r(1);t.exports=function(e,r){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a="object"===("undefined"==typeof document?"undefined":n(document))&&"string"==typeof document.cookie,s="object"===(void 0===e?"undefined":n(e))&&"object"===(void 0===r?"undefined":n(r))&&void 0!==t,u=!a&&!s||a&&s,l=function(t){if(s){var n=e.headers.cookie||"";return t&&(n=(n=r.getHeaders())["set-cookie"]?n["set-cookie"].map((function(t){return t.split(";")[0]})).join(";"):""),n}if(a)return document.cookie||""},c=function(){var t=r.getHeader("Set-Cookie");return(t="string"==typeof t?[t]:t)||[]},p=function(t){return r.setHeader("Set-Cookie",t)},h=function(t,e){if(!e)return t;try{return JSON.parse(t)}catch(e){return t}},d={parseJSON:i,set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{path:"/"};if(!u)if(e="object"===(void 0===e?"undefined":n(e))?JSON.stringify(e):e,s){var i=c();i.push(o.serialize(t,e,r)),p(i)}else document.cookie=o.serialize(t,e,r)},setAll:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];u||Array.isArray(t)&&t.forEach((function(t){var e=t.name,r=void 0===e?"":e,n=t.value,o=void 0===n?"":n,i=t.opts,a=void 0===i?{path:"/"}:i;d.set(r,o,a)}))},get:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{fromRes:!1,parseJSON:d.parseJSON};if(u)return"";var r=o.parse(l(e.fromRes)),n=r[t];return h(n,e.parseJSON)},getAll:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{fromRes:!1,parseJSON:d.parseJSON};if(u)return{};var e=o.parse(l(t.fromRes));for(var r in e)e[r]=h(e[r],t.parseJSON);return e},remove:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{path:"/"};u||(e.expires=new Date(0),d.set(t,"",e))},removeAll:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{path:"/"};if(!u){var e=o.parse(l());for(var r in e)d.remove(r,t)}},nodeCookie:o};return d}},function(t,e,r){"use strict";function i(t,e){try{return e(t)}catch(e){return t}}e.parse=function(t,e){if("string"!=typeof t)throw new TypeError("argument str must be a string");for(var r={},n=e||{},o=t.split(u),s=n.decode||a,l=0;l<o.length;l++){var c=o[l],p=c.indexOf("=");if(!(p<0)){var h=c.substr(0,p).trim(),d=c.substr(++p,c.length).trim();'"'==d[0]&&(d=d.slice(1,-1)),null==r[h]&&(r[h]=i(d,s))}}return r},e.serialize=function(t,e,r){var o=r||{},l=o.encode||s;if("function"!=typeof l)throw new TypeError("option encode is invali
2d");if(!n.test(t))throw new TypeError("argument name is invalid");var i=l(e);if(i&&!n.test(i))throw new TypeError("argument val is invalid");var a=t+"="+i;if(null!=o.maxAge){var u=o.maxAge-0;if(isNaN(u))throw new Error("maxAge should be a Number");a+="; Max-Age="+Math.floor(u)}if(o.domain){if(!n.test(o.domain))throw new TypeError("option domain is invalid");a+="; Domain="+o.domain}if(o.path){if(!n.test(o.path))throw new TypeError("option path is invalid");a+="; Path="+o.path}if(o.expires){if("function"!=typeof o.expires.toUTCString)throw new TypeError("option expires is invalid");a+="; Expires="+o.expires.toUTCString()}if(o.httpOnly&&(a+="; HttpOnly"),o.secure&&(a+="; Secure"),o.sameSite)switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return a};var a=decodeURIComponent,s=encodeURIComponent,u=/; */,n=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/}])},281:function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return w}));var n=r(158),o=function(){function t(){this.ua=new n.UAParser("undefined"!=typeof navigator?navigator.userAgent:null).getResult()}return t.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:h(),platform:"Web",os:l(this.ua),deviceModel:c(this.ua)}},t}(),l=function(t){var e,r;return[null===(e=t.browser)||void 0===e?void 0:e.name,null===(r=t.browser)||void 0===r?void 0:r.major].filter((function(t){return null!=t})).join(" ")},c=function(t){var e;return null===(e=t.os)||void 0===e?void 0:e.name},h=function(){return"undefined"!=typeof navigator&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},d=function(){function t(){this.queue=[]}return t.prototype.logEvent=function(t){this.receiver?this.receiver(t):this.queue.length<512&&this.queue.push(t)},t.prototype.setEventReceiver=function(t){this.receiver=t,this.queue.length>0&&(this.queue.forEach((function(e){t(e)})),this.queue=[])},t}(),f=function(){return f=Object.assign||function(t){for(var s,i=1,e=arguments.length;i<e;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t},f.apply(this,arguments)},m=function(t,e){var r=typeof t;if(r!==typeof e)return!1;for(var n=0,o=["string","number","boolean","undefined"];n<o.length;n++){if(o[n]===r)return t===e}if(null==t&&null==e)return!0;if(null==t||null==e)return!1;if(t.length!==e.length)return!1;var l=Array.isArray(t),c=Array.isArray(e);if(l!==c)return!1;if(!l||!c){var h=Object.keys(t).sort(),d=Object.keys(e).sort();if(!m(h,d))return!1;var f=!0;return Object.keys(t).forEach((function(r){m(t[r],e[r])||(f=!1)})),f}for(var i=0;i<t.length;i++)if(!m(t[i],e[i]))return!1;return!0};Object.entries||(Object.entries=function(t){for(var e=Object.keys(t),i=e.length,r=new Array(i);i--;)r[i]=[e[i],t[e[i]]];return r});var y=function(){function t(){this.identity={userProperties:{}},this.listeners=new Set}return t.prototype.editIdentity=function(){var t=this,e=f({},this.identity.userProperties),r=f(f({},this.identity),{userProperties:e});return{setUserId:function(t){return r.userId=t,this},setDeviceId:function(t){return r.deviceId=t,this},setUserProperties:function(t){return r.userProperties=t,this},updateUserProperties:function(t){for(var e=r.userProperties||{},n=0,o=Object.entries(t);n<o.length;n++){var l=o[n],c=l[0],h=l[1];switch(c){case"$set":for(var d=0,f=Object.entries(h);d<f.length;d++){var m=f[d],y=m[0],v=m[1];e[y]=v}break;case"$unset":for(var w=0,E=Object.keys(h);w<E.length;w++){delete e[y=E[w]]}break;case"$clearAll":e={}}}return r.userProperties=e,this},commit:function(){return t.setIdentity(r),this}}},t.prototype.getIdentity=function(){return f({},this.identity)},t.prototype.setIdentity=function(t){var e=f({},this.identity);this.identity=f({},t),m(e,this.identity)||this.listeners.forEach((function(e){e(t)}))},t.prototype.addIdentityListener=function(t){this.listeners.add(t)},t.prototype.removeIdentityListener=function(t){this.listeners.delete(t)},t}(),v="undefined"!=typeof globalThis?globalThis:void 0!==t?t:self,w=function(){function t(){this.identityStore=new y,this.eventBridge=new d,this.applicationContextProvider=new o}return t.getInstance=function(e){return v.analyticsConnectorInstances||(v.analyticsConnectorInstances={}),v.analyticsConnectorInstances[e]||(v.analyticsConnectorInstances[e]=new t),v.analyticsConnectorInstances[e]},t}()}).call(this,r(49))},291:function(module,exports,__webpack_require__){var e;e=function(){return function(t){var e={};function i(r){if(e[r])return e[r].exports;var s=e[r]={i:r,l:!1,exports:{}};return t[r].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=t,i.c=e,i.d=function(t,e,r){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}
vendor: 4,451 bytes, line 2
2),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)i.d(r,s,function(e){return t[e]}.bind(null,s));return r},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=12)}([function(t,e,i){var r=i(9);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals),(0,i(3).default)("4a617e1d",r,!0,{})},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i=function(t,e){var r,i=t[1]||"",n=t[3];if(!n)return i;if(e&&"function"==typeof btoa){var s=(r=n,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),a=n.sources.map((function(t){return"/*# sourceURL="+n.sourceRoot+t+" */"}));return[i].concat(a).concat([s]).join("\n")}return[i].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+i+"}":i})).join("")},e.i=function(t,i){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},s=0;s<this.length;s++){var a=this[s][0];"number"==typeof a&&(r[a]=!0)}for(s=0;s<t.length;s++){var n=t[s];"number"==typeof n[0]&&r[n[0]]||(i&&!n[2]?n[2]=i:i&&(n[2]="("+n[2]+") and ("+i+")"),e.push(n))}},e}},function(t,e,i){var r=i(11);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals),(0,i(3).default)("3567d972",r,!0,{})},function(t,e,i){"use strict";function r(t,e){for(var i=[],r={},s=0;s<e.length;s++){var a=e[s],n=a[0],o={id:t+":"+s,css:a[1],media:a[2],sourceMap:a[3]};r[n]?r[n].parts.push(o):i.push(r[n]={id:n,parts:[o]})}return i}i.r(e),i.d(e,"default",(function(){return f}));var s="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!s)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var a={},n=s&&(document.head||document.getElementsByTagName("head")[0]),o=null,l=0,c=!1,p=function(){},h=null,d="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function f(t,e,i,s){c=i,h=s||{};var n=r(t,e);return m(n),function(e){for(var i=[],s=0;s<n.length;s++){var o=n[s];(l=a[o.id]).refs--,i.push(l)}for(e?m(n=r(t,e)):n=[],s=0;s<i.length;s++){var l;if(0===(l=i[s]).refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete a[l.id]}}}}function m(t){for(var e=0;e<t.length;e++){var i=t[e],r=a[i.id];if(r){r.refs++;for(var s=0;s<r.parts.length;s++)r.parts[s](i.parts[s]);for(;s<i.parts.length;s++)r.parts.push(y(i.parts[s]));r.parts.length>i.parts.length&&(r.parts.length=i.parts.length)}else{var n=[];for(s=0;s<i.parts.length;s++)n.push(y(i.parts[s]));a[i.id]={id:i.id,refs:1,parts:n}}}}function u(){var t=document.createElement("style");return t.type="text/css",n.appendChild(t),t}function y(t){var e,i,r=document.querySelector('style[data-vue-ssr-id~="'+t.id+'"]');if(r){if(c)return p;r.parentNode.removeChild(r)}if(d){var s=l++;r=o||(o=u()),e=b.bind(null,r,s,!1),i=b.bind(null,r,s,!0)}else r=u(),e=w.bind(null,r),i=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else i()}}var g,v=(g=[],function(t,e){return g[t]=e,g.filter(Boolean).join("\n")});function b(t,e,i,r){var s=i?"":r.css;if(t.styleSheet)t.styleSheet.cssText=v(e,s);else{var a=document.createTextNode(s),n=t.childNodes;n[e]&&t.removeChild(n[e]),n.length?t.insertBefore(a,n[e]):t.appendChild(a)}}function w(t,e){var i=e.css,r=e.media,s=e.sourceMap;if(r&&t.setAttribute("media",r),h.ssrId&&t.setAttribute("data-vue-ssr-id",e.id),s&&(i+="\n/*# sourceURL="+s.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */"),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}},function(t,e){function i(e){return t.exports=i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}
vendor: 5,156 bytes, line 2
2,t.exports.__esModule=!0,t.exports.default=t.exports,i(e)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},function(module,exports,__webpack_require__){var e;"undefined"!=typeof navigator&&(e=function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t},getLocationHref=function(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,e){var i,r,s=t.length;for(i=0;i<s;i+=1)for(var a in r=t[i].prototype)Object.prototype.hasOwnProperty.call(r,a)&&(e.prototype[a]=r[a])}function getDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)}function createProxyFunction(t){function e(){}return e.prototype=t,e}var audioControllerFactory=function(){function t(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(t){this.audios.push(t)},pause:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].pause()},resume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].resume()},setRate:function(t){var e,i=this.audios.length;for(e=0;e<i;e+=1)this.audios[e].setRate(t)},createAudio:function(t){return this.audioFactory?this.audioFactory(t):window.Howl?new window.Howl({src:[t]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(t){this.audioFactory=t},setVolume:function(t){this._volume=t,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),createTypedArray=function(){function t(t,e){var i,r=0,s=[];switch(t){case"int16":case"uint8c":i=1;break;default:i=1.1}for(r=0;r<e;r+=1)s.push(i);return s}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(e,i){return"float32"===e?new Float32Array(i):"int16"===e?new Int16Array(i):"uint8c"===e?new Uint8ClampedArray(i):t(e,i)}:t}();function createSizedArray(t){return Array.apply(null,{length:t})}function _typeof$6(t){return(_typeof$6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}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 t,e=["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"],i=e.length;for(t=0;t<i;t+=1)BMMath[e[t]]=Math[e[t]]}(),BMMath.random=Math.random,BMMath.abs=function(t){if("object"===_typeof$6(t)&&t.length){var e,i=createSizedArray(t.length),r=t.length;for(e=0;e<r;e+=1)i[e]=Math.abs(t[e]);return i}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(t){_shouldRoundValues=!!t}function bmRnd(t){return _shouldRoundValues?Math.round(t):t}function styleDiv(t){t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.display="block",t.style.transformOrigin="0 0",t.style.webkitTransformOrigin="0 0",t.style.backfaceVisibility="visible",t.style.webkitBackfaceVisibility="visible",t.style.transformStyle="preserve-3d",t.style.webkitTransformStyle="preserve-3d",t.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(t,e,i,r){this.type=t,this.currentTime=e,this.totalTime=i,this.direction=r<0?-1:1}function BMCompleteEvent(t,e){this.type=t,this.direction=e<0?-1:1}function BMCompleteLoopEvent(t,e,i,r){this.type=t,this.currentLoop=i,this.totalLoops=e,this.direction=r<0?-1:1}function BMSegmentStartEvent(t,e,i){this.type=t,this.firstFrame=e,this.totalFrames=i}function BMDestroyEvent(t,e){this.type=t,this.target=e}function BMRenderFrameErrorEvent(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function BMConfigErrorEvent(t){this.type="configError",this.nativeError=t}function BMAnimationConfigErrorEvent(t,e){this.type=t,this.nativeError=e}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(t,e,i){var r,s,a,n,o,l,c,p;switch(l=i*(1-e),c=i*(1-(o=6*t-(n=Math.floor(6*t)))*e),p=i*(1-(1-o)*e),n%6){case 0:r=i,s=p,a=l;break;case 1:r=c,s=i,a=l;break;case 2:r=l,s=i,a=p;break;case 3:r=l,s=c,a=i;break;case 4:r=p,s=l,a=i;break;case 5:r=i,s=l,a=c}return[r,s,a]}
vendor: 26,140 bytes, line 2
2function RGBtoHSV(t,e,i){var r,s=Math.max(t,e,i),a=Math.min(t,e,i),n=s-a,o=0===s?0:n/s,l=s/255;switch(s){case a:r=0;break;case t:r=e-i+n*(e<i?6:0),r/=6*n;break;case e:r=i-t+2*n,r/=6*n;break;case i:r=t-e+4*n,r/=6*n}return[r,o,l]}function addSaturationToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[1]+=e,i[1]>1?i[1]=1:i[1]<=0&&(i[1]=0),HSVtoRGB(i[0],i[1],i[2])}function addBrightnessToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[2]+=e,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),HSVtoRGB(i[0],i[1],i[2])}function addHueToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[0]+=e/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),HSVtoRGB(i[0],i[1],i[2])}var rgbToHex=function(){var t,e,i=[];for(t=0;t<256;t+=1)e=t.toString(16),i[t]=1===e.length?"0"+e:e;return function(t,e,r){return t<0&&(t=0),e<0&&(e=0),r<0&&(r=0),"#"+i[t]+i[e]+i[r]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t},getIdPrefix=function(){return idPrefix$1};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){return(_typeof$5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var dataManager=function(){var t,e,i=1,r=[],s={onmessage:function(){},postMessage:function(e){t({data:e})}},a={postMessage:function(t){s.onmessage({data:t})}};function n(){e||((e=function(e){if(window.Worker&&window.Blob&&getWebWorker()){var i=new Blob(["var _workerSelf = self; self.onmessage = ",e.toString()],{type:"text/javascript"}),r=URL.createObjectURL(i);return new Worker(r)}return t=e,s}((function(t){if(a.dataManager||(a.dataManager=function(){function t(s,a){var n,o,l,c,p,d,f=s.length;for(o=0;o<f;o+=1)if("ks"in(n=s[o])&&!n.completed){if(n.completed=!0,n.hasMask){var m=n.masksProperties;for(c=m.length,l=0;l<c;l+=1)if(m[l].pt.k.i)r(m[l].pt.k);else for(d=m[l].pt.k.length,p=0;p<d;p+=1)m[l].pt.k[p].s&&r(m[l].pt.k[p].s[0]),m[l].pt.k[p].e&&r(m[l].pt.k[p].e[0])}0===n.ty?(n.layers=e(n.refId,a),t(n.layers,a)):4===n.ty?i(n.shapes):5===n.ty&&h(n)}}function e(t,e){var i=function(t,e){for(var i=0,r=e.length;i<r;){if(e[i].id===t)return e[i];i+=1}return null}(t,e);return i?i.layers.__used?JSON.parse(JSON.stringify(i.layers)):(i.layers.__used=!0,i.layers):null}function i(t){var e,s,a;for(e=t.length-1;e>=0;e-=1)if("sh"===t[e].ty)if(t[e].ks.k.i)r(t[e].ks.k);else for(a=t[e].ks.k.length,s=0;s<a;s+=1)t[e].ks.k[s].s&&r(t[e].ks.k[s].s[0]),t[e].ks.k[s].e&&r(t[e].ks.k[s].e[0]);else"gr"===t[e].ty&&i(t[e].it)}function r(t){var e,i=t.i.length;for(e=0;e<i;e+=1)t.i[e][0]+=t.v[e][0],t.i[e][1]+=t.v[e][1],t.o[e][0]+=t.v[e][0],t.o[e][1]+=t.v[e][1]}function s(t,e){var i=e?e.split("."):[100,100,100];return t[0]>i[0]||!(i[0]>t[0])&&(t[1]>i[1]||!(i[1]>t[1])&&(t[2]>i[2]||!(i[2]>t[2])&&null))}var a,n=function(){var t=[4,4,14];function e(t){var e,i,r,s=t.length;for(e=0;e<s;e+=1)5===t[e].ty&&(r=(i=t[e]).t.d,i.t.d={k:[{s:r,t:0}]})}return function(i){if(s(t,i.v)&&(e(i.layers),i.assets)){var r,a=i.assets.length;for(r=0;r<a;r+=1)i.assets[r].layers&&e(i.assets[r].layers)}}}(),o=(a=[4,7,99],function(t){if(t.chars&&!s(a,t.v)){var e,r=t.chars.length;for(e=0;e<r;e+=1){var n=t.chars[e];n.data&&n.data.shapes&&(i(n.data.shapes),n.data.ip=0,n.data.op=99999,n.data.st=0,n.data.sr=1,n.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[e].t||(n.data.shapes.push({ty:"no"}),n.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"})))}}}),l=function(){var t=[5,7,15];function e(t){var e,r,s=t.length;for(e=0;e<s;e+=1)5===t[e].ty&&(r=void 0,"number"==typeof(r=t[e].t.p).a&&(r.a={a:0,k:r.a}),"number"==typeof r.p&&(r.p={a:0,k:r.p}),"number"==typeof r.r&&(r.r={a:0,k:r.r}))}return function(i){if(s(t,i.v)&&(e(i.layers),i.assets)){var r,a=i.assets.length;for(r=0;r<a;r+=1)i.assets[r].layers&&e(i.assets[r].layers)}}}(),c=function(){var t=[4,1,9];function e(t){var i,r,s,a=t.length;for(i=0;i<a;i+=1)if("gr"===t[i].ty)e(t[i].it);else if("fl"===t[i].ty||"st"===t[i].ty)if(t[i].c.k&&t[i].c.k[0].i)for(s=t[i].c.k.length,r=0;r<s;r+=1)t[i].c.k[r].s&&(t[i].c.k[r].s[0]/=255,t[i].c.k[r].s[1]/=255,t[i].c.k[r].s[2]/=255,t[i].c.k[r].s[3]/=255),t[i].c.k[r].e&&(t[i].c.k[r].e[0]/=255,t[i].c.k[r].e[1]/=255,t[i].c.k[r].e[2]/=255,t[i].c.k[r].e[3]/=255);else t[i].c.k[0]/=255,t[i].c.k[1]/=255,t[i].c.k[2]/=255,t[i].c.k[3]/=255}function i(t){var i,r=t.length;for(i=0;i<r;i+=1)4===t[i].ty&&e(t[i].shapes)}return function(e){if(s(t,e.v)&&(i(e.layers),e.assets)){var r,a=e.assets.length;for(r=0;r<a;r+=1)e.assets[r].layers&&i(e.assets[r].layers)}}}(),p=function(){var t=[4,4,18];function e(t){var i,r,s;for(i=t.length-1;i>=0;i-=1)if("sh"===t[i].ty)if(t[i].ks.k.i)t[i].ks.k.c=t[i].closed;else for(s=t[i].ks.k.length,r=0;r<s;r+=1)t[i].ks.k[r].s&&(t[i].ks.k[r].s[0].c=t[i].closed),t[i].ks.k[r].e&&(t[i].ks.k[r].e[0].c=t[i].closed);else"gr"===t[i].ty&&e(t[i].it)}function i(t){var i,r,s,a,n,o,l=t.length;for(r=0;r<l;r+=1){if((i=t[r]).hasMask){var c=i.masksProperties;for(a=c.length,s=0;s<a;s+=1)if(c[s].pt.k.i)c[s].pt.k.c=c[s].cl;else for(o=c[s].pt.k.length,n=0;n<o;n+=1)c[s].pt.k[n].s&&(c[s].pt.k[n].s[0].c=c[s].cl),c[s].pt.k[n].e&&(c[s].pt.k[n].e[0].c=c[s].cl)}4===i.ty&&e(i.shapes)}}return function(e){if(s(t,e.v)&&(i(e.layers),e.assets)){var r,a=e.assets.length;for(r=0;r<a;r+=1)e.assets[r].layers&&i(e.assets[r].layers)}}}();function h(t){0===t.t.a.length&&t.t.p}var d={completeData:function(i){i.__complete||(c(i),n(i),o(i),l(i),p(i),t(i.layers,i.assets),function(i,r){if(i){var s=0,a=i.length;for(s=0;s<a;s+=1)1===i[s].t&&(i[s].data.layers=e(i[s].data.refId,r),t(i[s].data.layers,r))}}(i.chars,i.assets),i.__complete=!0)}};return d.checkColors=c,d.checkChars=o,d.checkPathProperties=l,d.checkShapes=p,d.completeLayers=t,d}()),a.assetLoader||(a.assetLoader=function(){function t(t){var e=t.getResponseHeader("content-type");return e&&"json"===t.responseType&&-1!==e.indexOf("json")||t.response&&"object"===_typeof$5(t.response)?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):null}return{load:function(e,i,r,s){var a,n=new XMLHttpRequest;try{n.responseType="json"}catch(t){}n.onreadystatechange=function(){if(4===n.readyState)if(200===n.status)a=t(n),r(a);else try{a=t(n),r(a)}catch(t){s&&s(t)}};try{n.open(["G","E","T"].join(""),e,!0)}catch(t){n.open(["G","E","T"].join(""),i+"/"+e,!0)}n.send()}}}()),"loadAnimation"===t.data.type)a.assetLoader.load(t.data.path,t.data.fullPath,(function(e){a.dataManager.completeData(e),a.postMessage({id:t.data.id,payload:e,status:"success"})}),(function(){a.postMessage({id:t.data.id,status:"error"})}));else if("complete"===t.data.type){var e=t.data.animation;a.dataManager.completeData(e),a.postMessage({id:t.data.id,payload:e,status:"success"})}else"loadData"===t.data.type&&a.assetLoader.load(t.data.path,t.data.fullPath,(function(e){a.postMessage({id:t.data.id,payload:e,status:"success"})}),(function(){a.postMessage({id:t.data.id,status:"error"})}))}))).onmessage=function(t){var e=t.data,i=e.id,s=r[i];r[i]=null,"success"===e.status?s.onComplete(e.payload):s.onError&&s.onError()})}function o(t,e){var s="processId_"+(i+=1);return r[s]={onComplete:t,onError:e},s}return{loadAnimation:function(t,i,r){n();var s=o(i,r);e.postMessage({type:"loadAnimation",path:t,fullPath:window.location.origin+window.location.pathname,id:s})},loadData:function(t,i,r){n();var s=o(i,r);e.postMessage({type:"loadData",path:t,fullPath:window.location.origin+window.location.pathname,id:s})},completeAnimation:function(t,i,r){n();var s=o(i,r);e.postMessage({type:"complete",animation:t,id:s})}}}(),ImagePreloader=function(){var t=function(){var t=createTag("canvas");t.width=1,t.height=1;var e=t.getContext("2d");return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),t}();function e(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(t,e,i){var r="";if(t.e)r=t.p;else if(e){var s=t.p;-1!==s.indexOf("images/")&&(s=s.split("/")[1]),r=e+s}else r=i,r+=t.u?t.u:"",r+=t.p;return r}function s(t){var e=0,i=setInterval(function(){(t.getBBox().width||e>500)&&(this._imageLoaded(),clearInterval(i)),e+=1}.bind(this),50)}function a(t){var e={assetData:t},i=r(t,this.assetsPath,this.path);return dataManager.loadData(i,function(t){e.img=t,this._footageLoaded()}.bind(this),function(){e.img={},this._footageLoaded()}.bind(this)),e}function n(){this._imageLoaded=e.bind(this),this._footageLoaded=i.bind(this),this.testImageLoaded=s.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 n.prototype={loadAssets:function(t,e){var i;this.imagesLoadedCb=e;var r=t.length;for(i=0;i<r;i+=1)t[i].layers||(t[i].t&&"seq"!==t[i].t?3===t[i].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(t[i]))):(this.totalImages+=1,this.images.push(this._createImageData(t[i]))))},setAssetsPath:function(t){this.assetsPath=t||""},setPath:function(t){this.path=t||""},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(t){for(var e=0,i=this.images.length;e<i;){if(this.images[e].assetData===t)return this.images[e].img;e+=1}return null},createImgData:function(e){var i=r(e,this.assetsPath,this.path),s=createTag("img");s.crossOrigin="anonymous",s.addEventListener("load",this._imageLoaded,!1),s.addEventListener("error",function(){a.img=t,this._imageLoaded()}.bind(this),!1),s.src=i;var a={img:s,assetData:e};return a},createImageData:function(e){var i=r(e,this.assetsPath,this.path),s=createNS("image");isSafari?this.testImageLoaded(s):s.addEventListener("load",this._imageLoaded,!1),s.addEventListener("error",function(){a.img=t,this._imageLoaded()}.bind(this),!1),s.setAttributeNS("http://www.w3.org/1999/xlink","href",i),this._elementHelper.append?this._elementHelper.append(s):this._elementHelper.appendChild(s);var a={img:s,assetData:e};return a},imageLoaded:e,footageLoaded:i,setCacheType:function(t,e){"svg"===t?(this._elementHelper=e,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},n}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var i=this._cbs[t],r=0;r<i.length;r+=1)i[r](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var i=0,r=this._cbs[t].length;i<r;)this._cbs[t][i]===e&&(this._cbs[t].splice(i,1),i-=1,r-=1),i+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var markerParser=function(){function t(t){for(var e,i=t.split("\r\n"),r={},s=0,a=0;a<i.length;a+=1)2===(e=i[a].split(":")).length&&(r[e[0]]=e[1].trim(),s+=1);if(0===s)throw new Error;return r}return function(e){for(var i=[],r=0;r<e.length;r+=1){var s=e[r],a={time:s.tm,duration:s.dr};try{a.payload=JSON.parse(e[r].cm)}catch(i){try{a.payload=t(e[r].cm)}catch(t){a.payload={name:e[r].cm}}}i.push(a)}return i}}(),ProjectInterface=function(){function t(t){this.compositions.push(t)}return function(){function e(t){for(var e=0,i=this.compositions.length;e<i;){if(this.compositions[e].data&&this.compositions[e].data.nm===t)return this.compositions[e].prepareFrame&&this.compositions[e].data.xt&&this.compositions[e].prepareFrame(this.currentFrame),this.compositions[e].compInterface;e+=1}return null}return e.compositions=[],e.currentFrame=0,e.registerComposition=t,e}}(),renderers={},registerRenderer=function(t,e){renderers[t]=e};function getRenderer(t){return renderers[t]}function _typeof$4(t){return(_typeof$4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}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)};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e="svg";t.animType?e=t.animType:t.renderer&&(e=t.renderer);var i=getRenderer(e);this.renderer=new i(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,""===t.loop||null===t.loop||void 0===t.loop||!0===t.loop?this.loop=!0:!1===t.loop?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name?t.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(t,"autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(-1!==t.path.lastIndexOf("\\")?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(t.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(t){dataManager.completeAnimation(t,this.configAnimation)},AnimationItem.prototype.setData=function(t,e){e&&"object"!==_typeof$4(e)&&(e=JSON.parse(e));var i={wrapper:t,animationData:e},r=t.attributes;i.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:"",i.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:"canvas";var s=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"===s?i.loop=!1:"true"===s?i.loop=!0:""!==s&&(i.loop=parseInt(s,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;i.autoplay="false"!==a,i.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:"")&&(i.prerender=!1),this.setParams(i)},AnimationItem.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,i,r=this.animationData.layers,s=r.length,a=t.layers,n=a.length;for(i=0;i<n;i+=1)for(e=0;e<s;){if(r[e].id===a[i].id){r[e]=a[i];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(s=t.assets.length,e=0;e<s;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(t){this.animationData=t;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var e=t.shift();this.timeCompleted=e.time*this.frameRate;var i=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(i,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(t){if(this.renderer)try{this.animationData=t,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(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=markerParser(t.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 t=getExpressionsPlugin();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(t,e){var i="number"==typeof t?t:void 0,r="number"==typeof e?e:void 0;this.renderer.updateContainerSize(i,r)},AnimationItem.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},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.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!==t||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!==t||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(t){for(var e,i=0;i<this.markers.length;i+=1)if((e=this.markers[i]).payload&&e.payload.name===t)return e;return null},AnimationItem.prototype.goToAndStop=function(t,e,i){if(!i||this.name===i){var r=Number(t);if(isNaN(r)){var s=this.getMarkerData(t);s&&this.goToAndStop(s.time,!0)}else e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(t,e,i){if(!i||this.name===i){var r=Number(t);if(isNaN(r)){var s=this.getMarkerData(t);s&&(s.duration?this.playSegments([s.time,s.time+s.duration],!0):this.goToAndStop(s.time,!0))}else this.goToAndStop(r,e,i);this.play()}},AnimationItem.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,i=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(i=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(i=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),i&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,e){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?i=t:this.currentRawFrame+this.firstFrame>e&&(i=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==i&&this.goToAndStop(i,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===_typeof$4(t[0])){var i,r=t.length;for(i=0;i<r;i+=1)this.segments.push(t[i])}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},AnimationItem.prototype.destroy=function(t){t&&this.name!==t||!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.renderer=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},AnimationItem.prototype.unmute=function(t){t&&this.name!==t||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(t){var e="";if(t.e)e=t.p;else if(this.assetsPath){var i=t.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),e=this.assetsPath+i}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e},AnimationItem.prototype.getAssetData=function(t){for(var e=0,i=this.assets.length;e<i;
vendor: 5,768 bytes, line 2
2){if(t===this.assets[e].id)return this.assets[e];e+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(t,e,i){try{this.renderer.getElementByPath(t).updateDocumentData(e,i)}catch(t){}},AnimationItem.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new BMEnterFrameEvent(t,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(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new BMCompleteEvent(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new BMDestroyEvent(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},AnimationItem.prototype.triggerRenderFrameError=function(t){var e=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)},AnimationItem.prototype.triggerConfigError=function(t){var e=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)};var animationManager=function(){var t={},e=[],i=0,r=0,s=0,a=!0,n=!1;function o(t){for(var i=0,s=t.target;i<r;)e[i].animation===s&&(e.splice(i,1),i-=1,r-=1,s.isPaused||p()),i+=1}function l(t,i){if(!t)return null;for(var s=0;s<r;){if(e[s].elem===t&&null!==e[s].elem)return e[s].animation;s+=1}var a=new AnimationItem;return h(a,t),a.setData(t,i),a}function c(){s+=1,m()}function p(){s-=1}function h(t,i){t.addEventListener("destroy",o),t.addEventListener("_active",c),t.addEventListener("_idle",p),e.push({elem:i,animation:t}),r+=1}function d(t){var o,l=t-i;for(o=0;o<r;o+=1)e[o].animation.advanceTime(l);i=t,s&&!n?window.requestAnimationFrame(d):a=!0}function f(t){i=t,window.requestAnimationFrame(d)}function m(){!n&&s&&a&&(window.requestAnimationFrame(f),a=!1)}return t.registerAnimation=l,t.loadAnimation=function(t){var e=new AnimationItem;return h(e,null),e.setParams(t),e},t.setSpeed=function(t,i){var s;for(s=0;s<r;s+=1)e[s].animation.setSpeed(t,i)},t.setDirection=function(t,i){var s;for(s=0;s<r;s+=1)e[s].animation.setDirection(t,i)},t.play=function(t){var i;for(i=0;i<r;i+=1)e[i].animation.play(t)},t.pause=function(t){var i;for(i=0;i<r;i+=1)e[i].animation.pause(t)},t.stop=function(t){var i;for(i=0;i<r;i+=1)e[i].animation.stop(t)},t.togglePause=function(t){var i;for(i=0;i<r;i+=1)e[i].animation.togglePause(t)},t.searchAnimations=function(t,e,i){var r,s=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),a=s.length;for(r=0;r<a;r+=1)i&&s[r].setAttribute("data-bm-type",i),l(s[r],t);if(e&&0===a){i||(i="svg");var n=document.getElementsByTagName("body")[0];n.innerText="";var o=createTag("div");o.style.width="100%",o.style.height="100%",o.setAttribute("data-bm-type",i),n.appendChild(o),l(o,t)}},t.resize=function(){var t;for(t=0;t<r;t+=1)e[t].animation.resize()},t.goToAndStop=function(t,i,s){var a;for(a=0;a<r;a+=1)e[a].animation.goToAndStop(t,i,s)},t.destroy=function(t){var i;for(i=r-1;i>=0;i-=1)e[i].animation.destroy(t)},t.freeze=function(){n=!0},t.unfreeze=function(){n=!1,m()},t.setVolume=function(t,i){var s;for(s=0;s<r;s+=1)e[s].animation.setVolume(t,i)},t.mute=function(t){var i;for(i=0;i<r;i+=1)e[i].animation.mute(t)},t.unmute=function(t){var i;for(i=0;i<r;i+=1)e[i].animation.unmute(t)},t.getRegisteredAnimations=function(){var t,i=e.length,r=[];for(t=0;t<i;t+=1)r.push(e[t].animation);return r},t}(),BezierFactory=function(){var t={getBezierEasing:function(t,i,r,s,a){var n=a||("bez_"+t+"_"+i+"_"+r+"_"+s).replace(/\./g,"p");if(e[n])return e[n];var o=new l([t,i,r,s]);return e[n]=o,o}},e={},i="function"==typeof Float32Array;function r(t,e){return 1-3*e+3*t}function s(t,e){return 3*e-6*t}function a(t){return 3*t}function n(t,e,i){return((r(e,i)*t+s(e,i))*t+a(e))*t}function o(t,e,i){return 3*r(e,i)*t*t+2*s(e,i)*t+a(e)}function l(t){this._p=t,this._mSampleValues=i?new Float32Array(11):new Array(11),this._precomputed=!1,this.get=this.get.bind(this)}return l.prototype={get:function(t){var e=this._p[0],i=this._p[1],r=this._p[2],s=this._p[3];return this._precomputed||this._precompute(),e===i&&r===s?t:0===t?0:1===t?1:n(this._getTForX(t),i,s)},_precompute:function(){var t=this._p[0],e=this._p[1],i=this._p[2],r=this._p[3];this._precomputed=!0,t===e&&i===r||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],i=0;i<11;++i)this._mSampleValues[i]=n(.1*i,t,e)},_getTForX:function(t){for(var e=this._p[0],i=this._p[2],r=this._mSampleValues,s=0,a=1;10!==a&&r[a]<=t;++a)s+=.1;var l=s+(t-r[--a])/(r[a+1]-r[a])*.1,c=o(l,e,i);return c>
vendor: 4,814 bytes, line 2
2=.001?function(t,e,i,r){for(var s=0;s<4;++s){var a=o(e,i,r);if(0===a)return e;e-=(n(e,i,r)-t)/a}return e}(t,l,e,i):0===c?l:function(t,e,i,r,s){var a,o,l=0;do{(a=n(o=e+(i-e)/2,r,s)-t)>0?i=o:e=o}while(Math.abs(a)>1e-7&&++l<10);return o}(t,s,s+.1,e,i)}},t}(),pooling={double:function(t){return t.concat(createSizedArray(t.length))}},poolFactory=function(t,e,i){var r=0,s=t,a=createSizedArray(s);return{newElement:function(){return r?a[r-=1]:e()},release:function(t){r===s&&(a=pooling.double(a),s*=2),i&&i(t),a[r]=t,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(t){var e,i=t.lengths.length;for(e=0;e<i;e+=1)bezierLengthPool.release(t.lengths[e]);t.lengths.length=0}));function bezFunction(){var t=Math;function e(t,e,i,r,s,a){var n=t*r+e*s+i*a-s*r-a*t-i*e;return n>-.001&&n<.001}var i=function(t,e,i,r){var s,a,n,o,l,c,p=getDefaultCurveSegments(),h=0,d=[],f=[],m=bezierLengthPool.newElement();for(n=i.length,s=0;s<p;s+=1){for(l=s/(p-1),c=0,a=0;a<n;a+=1)o=bmPow(1-l,3)*t[a]+3*bmPow(1-l,2)*l*i[a]+3*(1-l)*bmPow(l,2)*r[a]+bmPow(l,3)*e[a],d[a]=o,null!==f[a]&&(c+=bmPow(d[a]-f[a],2)),f[a]=d[a];c&&(h+=c=bmSqrt(c)),m.percents[s]=l,m.lengths[s]=h}return m.addedLength=h,m};function r(t){this.segmentLength=0,this.points=new Array(t)}function s(t,e){this.partialLength=t,this.point=e}var a,n=(a={},function(t,i,n,o){var l=(t[0]+"_"+t[1]+"_"+i[0]+"_"+i[1]+"_"+n[0]+"_"+n[1]+"_"+o[0]+"_"+o[1]).replace(/\./g,"p");if(!a[l]){var c,p,h,d,f,m,u,y=getDefaultCurveSegments(),g=0,v=null;2===t.length&&(t[0]!==i[0]||t[1]!==i[1])&&e(t[0],t[1],i[0],i[1],t[0]+n[0],t[1]+n[1])&&e(t[0],t[1],i[0],i[1],i[0]+o[0],i[1]+o[1])&&(y=2);var b=new r(y);for(h=n.length,c=0;c<y;c+=1){for(u=createSizedArray(h),f=c/(y-1),m=0,p=0;p<h;p+=1)d=bmPow(1-f,3)*t[p]+3*bmPow(1-f,2)*f*(t[p]+n[p])+3*(1-f)*bmPow(f,2)*(i[p]+o[p])+bmPow(f,3)*i[p],u[p]=d,null!==v&&(m+=bmPow(u[p]-v[p],2));g+=m=bmSqrt(m),b.points[c]=new s(m,u),v=u}b.segmentLength=g,a[l]=b}return a[l]});function o(t,e){var i=e.percents,r=e.lengths,s=i.length,a=bmFloor((s-1)*t),n=t*e.addedLength,o=0;if(a===s-1||0===a||n===r[a])return i[a];for(var l=r[a]>n?-1:1,c=!0;c;)if(r[a]<=n&&r[a+1]>n?(o=(n-r[a])/(r[a+1]-r[a]),c=!1):a+=l,a<0||a>=s-1){if(a===s-1)return i[a];c=!1}return i[a]+(i[a+1]-i[a])*o}var l=createTypedArray("float32",8);return{getSegmentsLength:function(t){var e,r=segmentsLengthPool.newElement(),s=t.c,a=t.v,n=t.o,o=t.i,l=t._length,c=r.lengths,p=0;for(e=0;e<l-1;e+=1)c[e]=i(a[e],a[e+1],n[e],o[e+1]),p+=c[e].addedLength;return s&&l&&(c[e]=i(a[e],a[0],n[e],o[0]),p+=c[e].addedLength),r.totalLength=p,r},getNewSegment:function(e,i,r,s,a,n,c){a<0?a=0:a>1&&(a=1);var p,h=o(a,c),d=o(n=n>1?1:n,c),f=e.length,m=1-h,u=1-d,y=m*m*m,g=h*m*m*3,v=h*h*m*3,b=h*h*h,w=m*m*u,E=h*m*u+m*h*u+m*m*d,_=h*h*u+m*h*d+h*m*d,T=h*h*d,S=m*u*u,x=h*u*u+m*d*u+m*u*d,I=h*d*u+m*d*d+h*u*d,P=h*d*d,O=u*u*u,A=d*u*u+u*d*u+u*u*d,k=d*d*u+u*d*d+d*u*d,C=d*d*d;for(p=0;p<f;p+=1)l[4*p]=t.round(1e3*(y*e[p]+g*r[p]+v*s[p]+b*i[p]))/1e3,l[4*p+1]=t.round(1e3*(w*e[p]+E*r[p]+_*s[p]+T*i[p]))/1e3,l[4*p+2]=t.round(1e3*(S*e[p]+x*r[p]+I*s[p]+P*i[p]))/1e3,l[4*p+3]=t.round(1e3*(O*e[p]+A*r[p]+k*s[p]+C*i[p]))/1e3;return l},getPointInSegment:function(e,i,r,s,a,n){var l=o(a,n),c=1-l;return[t.round(1e3*(c*c*c*e[0]+(l*c*c+c*l*c+c*c*l)*r[0]+(l*l*c+c*l*l+l*c*l)*s[0]+l*l*l*i[0]))/1e3,t.round(1e3*(c*c*c*e[1]+(l*c*c+c*l*c+c*c*l)*r[1]+(l*l*c+c*l*l+l*c*l)*s[1]+l*l*l*i[1]))/1e3]},buildBezierData:n,pointOnLine2D:e,pointOnLine3D:function(i,r,s,a,n,o,l,c,p){if(0===s&&0===o&&0===p)return e(i,r,a,n,l,c);var h,d=t.sqrt(t.pow(a-i,2)+t.pow(n-r,2)+t.pow(o-s,2)),f=t.sqrt(t.pow(l-i,2)+t.pow(c-r,2)+t.pow(p-s,2)),m=t.sqrt(t.pow(l-a,2)+t.pow(c-n,2)+t.pow(p-o,2));return(h=d>f?d>m?d-f-m:m-f-d:m>f?m-f-d:f-d-m)>-1e-4&&h<1e-4}}}var bez=bezFunction(),PropertyFactory=function(){var t=initialDefaultFrame,e=Math.abs;function i(t,e){var i,s=this.offsetTime;"multidimensional"===this.propType&&(i=createTypedArray("float32",this.pv.length));for(var a,n,o,l,c,p,h,d,f,m=e.lastIndex,u=m,y=this.keyframes.length-1,g=!0;g;){if(a=this.keyframes[u],n=this.keyframes[u+1],u===y-1&&t>=n.t-s){a.h&&(a=n),m=0;break}if(n.t-s>t){m=u;break}u<y-1?u+=1:(m=0,g=!1)}o=this.keyframesMetadata[u]||{};var v,b=n.t-s,w=a.t-s;if(a.to){o.bezierData||(o.bezierData=bez.buildBezierData(a.s,n.s||a.e,a.to,a.ti));var E=o.bezierData;if(t>=b||t<w){var _=t>=b?E.points.length-1:0;for(c=E.points[_].point.length,l=0;l<c;l+=1)i[l]=E.points[_].point[l]}else{o.__fnct?f=o.__fnct:(f=BezierFactory.getBezierEasing(a.o.x,a.o.y,a.i.x,a.i.y,a.n).get,o.__fnct=f),p=f((t-w)/(b-w));var T,S=E.segmentLength*p,x=e.lastFrame<t&&e._lastKeyframeIndex===u?e._lastAddedLe
vendor: 5,700 bytes, line 2
2ngth:0;for(d=e.lastFrame<t&&e._lastKeyframeIndex===u?e._lastPoint:0,g=!0,h=E.points.length;g;){if(x+=E.points[d].partialLength,0===S||0===p||d===E.points.length-1){for(c=E.points[d].point.length,l=0;l<c;l+=1)i[l]=E.points[d].point[l];break}if(S>=x&&S<x+E.points[d+1].partialLength){for(T=(S-x)/E.points[d+1].partialLength,c=E.points[d].point.length,l=0;l<c;l+=1)i[l]=E.points[d].point[l]+(E.points[d+1].point[l]-E.points[d].point[l])*T;break}d<h-1?d+=1:g=!1}e._lastPoint=d,e._lastAddedLength=x-E.points[d].partialLength,e._lastKeyframeIndex=u}}else{var I,P,O,A,k;if(y=a.s.length,v=n.s||a.e,this.sh&&1!==a.h)t>=b?(i[0]=v[0],i[1]=v[1],i[2]=v[2]):t<=w?(i[0]=a.s[0],i[1]=a.s[1],i[2]=a.s[2]):function(t,e){var i=e[0],r=e[1],s=e[2],a=e[3],n=Math.atan2(2*r*a-2*i*s,1-2*r*r-2*s*s),o=Math.asin(2*i*r+2*s*a),l=Math.atan2(2*i*a-2*r*s,1-2*i*i-2*s*s);t[0]=n/degToRads,t[1]=o/degToRads,t[2]=l/degToRads}(i,function(t,e,i){var r,s,a,n,o,l=[],c=t[0],p=t[1],h=t[2],d=t[3],f=e[0],m=e[1],u=e[2],y=e[3];return(s=c*f+p*m+h*u+d*y)<0&&(s=-s,f=-f,m=-m,u=-u,y=-y),1-s>1e-6?(r=Math.acos(s),a=Math.sin(r),n=Math.sin((1-i)*r)/a,o=Math.sin(i*r)/a):(n=1-i,o=i),l[0]=n*c+o*f,l[1]=n*p+o*m,l[2]=n*h+o*u,l[3]=n*d+o*y,l}(r(a.s),r(v),(t-w)/(b-w)));else for(u=0;u<y;u+=1)1!==a.h&&(t>=b?p=1:t<w?p=0:(a.o.x.constructor===Array?(o.__fnct||(o.__fnct=[]),o.__fnct[u]?f=o.__fnct[u]:(I=void 0===a.o.x[u]?a.o.x[0]:a.o.x[u],P=void 0===a.o.y[u]?a.o.y[0]:a.o.y[u],O=void 0===a.i.x[u]?a.i.x[0]:a.i.x[u],A=void 0===a.i.y[u]?a.i.y[0]:a.i.y[u],f=BezierFactory.getBezierEasing(I,P,O,A).get,o.__fnct[u]=f)):o.__fnct?f=o.__fnct:(I=a.o.x,P=a.o.y,O=a.i.x,A=a.i.y,f=BezierFactory.getBezierEasing(I,P,O,A).get,a.keyframeMetadata=f),p=f((t-w)/(b-w)))),v=n.s||a.e,k=1===a.h?a.s[u]:a.s[u]+(v[u]-a.s[u])*p,"multidimensional"===this.propType?i[u]=k:i=k}return e.lastIndex=m,i}function r(t){var e=t[0]*degToRads,i=t[1]*degToRads,r=t[2]*degToRads,s=Math.cos(e/2),a=Math.cos(i/2),n=Math.cos(r/2),o=Math.sin(e/2),l=Math.sin(i/2),c=Math.sin(r/2);return[o*l*n+s*a*c,o*a*n+s*l*c,s*l*n-o*a*c,s*a*n-o*l*c]}function s(){var e=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==t&&(this._caching.lastFrame>=r&&e>=r||this._caching.lastFrame<i&&e<i))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var s=this.interpolateValue(e,this._caching);this.pv=s}return this._caching.lastFrame=e,this.pv}function a(t){var i;if("unidimensional"===this.propType)i=t*this.mult,e(this.v-i)>1e-5&&(this.v=i,this._mdf=!0);else for(var r=0,s=this.v.length;r<s;)i=t[r]*this.mult,e(this.v[r]-i)>1e-5&&(this.v[r]=i,this._mdf=!0),r+=1}function n(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t;this.lock=!0,this._mdf=this._isFirstFrame;var e=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(t=0;t<e;t+=1)i=this.effectsSequence[t](i);this.setVValue(i),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function o(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function l(t,e,i,r){this.propType="unidimensional",this.mult=i||1,this.data=e,this.v=i?e.k*i:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=r,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=n,this.setVValue=a,this.addEffect=o}function c(t,e,i,r){var s;this.propType="multidimensional",this.mult=i||1,this.data=e,this._mdf=!1,this.elem=t,this.container=r,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var l=e.k.length;for(this.v=createTypedArray("float32",l),this.pv=createTypedArray("float32",l),this.vel=createTypedArray("float32",l),s=0;s<l;s+=1)this.v[s]=e.k[s]*this.mult,this.pv[s]=e.k[s];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=n,this.setVValue=a,this.addEffect=o}function p(e,r,l,c){this.propType="unidimensional",this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:t,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=r,this.mult=l||1,this.elem=e,this.container=c,this.comp=e.comp,this.v=t,this.pv=t,this._isFirstFrame=!0,this.getValue=n,this.setVValue=a,this.interpolateValue=i,this.effectsSequence=[s.bind(this)],this.addEffect=o}function h(e,r,l,c){var p;this.propType="multidimensional";var h,d,f,m,u=r.k.length;for(p=0;p<u-1;p+=1)r.k[p].to&&r.k[p].s&&r.k[p+1]&&r.k[p+1].s&&(h=r.k[p].s,d=r.k[p+1].s,f=r.k[p].to,m=r.k[p].ti,(2===h.length&&(h[0]!==d[0]||h[1]!==d[1])&&bez.pointOnLine2D(h[0],h[1],d[0],d[1],h[0]+f[0],h[1]+f[1])&&bez.pointOnLine2D(h[0],h[1],d[0],d[1],d[0]+m[0],d[1]+m[1])||3===h.length&&(h[0]!==d[0]||h[1]!==d[1]||h[2]!==d[2])&&bez.pointOnLine3D(h[0],h[1],h[2],d[0],d[1],d[2],h[0]+f[0],h[1]+f[1],h[2]+f[2])&&bez.pointOnLine3D(h[0],h[1],h[2],d[0],d[1],d[2],d[0]+m[0],d[1]+m[1],d[2]+m[2]))&&(r.k[p].to=null,r.k[p].ti=null),h[0]===d[0]&&h[1]===d[1]&&0===f[0]&&0===f[1]&&0===m[0]&&0===m[1]&&(2===h.length||h[2]===d[2]&&0===f[2]&&0===m[2])&&(r.k[p].to=null,r.k[p].ti=null));this.effectsSequence=[s.bind(this)],this.data=r,this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=l||1,this.elem=e,this.container=c,this.comp=e.comp,this.getValue=n,this.setVValue=a,this.interpolateValue=i,this.frameId=-1;var y=r.k[0].s.length;for(this.v=createTypedArray("float32",y),this.pv=createTypedArray("float32",y),p=0;p<y;p+=1)this.v[p]=t,this.pv[p]=t;this._caching={lastFrame:t,lastIndex:0,value:createTypedArray("float32",y)},this.addEffect=o}
vendor: 11,486 bytes, line 2
2return{getProp:function(t,e,i,r,s){var a;if(e.k.length)if("number"==typeof e.k[0])a=new c(t,e,r,s);else switch(i){case 0:a=new p(t,e,r,s);break;case 1:a=new h(t,e,r,s)}else a=new l(t,e,r,s);return a.effectsSequence.length&&s.addDynamicProperty(a),a}}}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var t;this._mdf=!1;var e=this.dynamicProperties.length;for(t=0;t<e;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,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(t,e){this.c=t,this.setLength(e);for(var i=0;i<e;)this.v[i]=pointPool.newElement(),this.o[i]=pointPool.newElement(),this.i[i]=pointPool.newElement(),i+=1},ShapePath.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},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(t,e,i,r,s){var a;switch(this._length=Math.max(this._length,r+1),this._length>=this._maxLength&&this.doubleArrayLength(),i){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[]}(!a[r]||a[r]&&!s)&&(a[r]=pointPool.newElement()),a[r][0]=t,a[r][1]=e},ShapePath.prototype.setTripleAt=function(t,e,i,r,s,a,n,o){this.setXYAt(t,e,"v",n,o),this.setXYAt(i,r,"o",n,o),this.setXYAt(s,a,"i",n,o)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,i=this.o,r=this.i,s=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],r[0][0],r[0][1],i[0][0],i[0][1],0,!1),s=1);var a,n=this._length-1,o=this._length;for(a=s;a<o;a+=1)t.setTripleAt(e[n][0],e[n][1],r[n][0],r[n][1],i[n][0],i[n][1],a,!1),n-=1;return t},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,(function(){return new ShapePath}),(function(t){var e,i=t._length;for(e=0;e<i;e+=1)pointPool.release(t.v[e]),pointPool.release(t.i[e]),pointPool.release(t.o[e]),t.v[e]=null,t.i[e]=null,t.o[e]=null;t._length=0,t.c=!1})),factory.clone=function(t){var e,i=factory.newElement(),r=void 0===t._length?t.v.length:t._length;for(i.setLength(r),i.c=t.c,e=0;e<r;e+=1)i.setTripleAt(t.v[e][0],t.v[e][1],t.o[e][0],t.o[e][1],t.i[e][0],t.i[e][1],e);return i},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)shapePool.release(this.shapes[t]);this._length=0};var shapeCollectionPool=(ob={newShapeCollection:function(){return _length?pool[_length-=1]:new ShapeCollection},release:function(t){var e,i=t._length;for(e=0;e<i;e+=1)shapePool.release(t.shapes[e]);t._length=0,_length===_maxLength&&(pool=pooling.double(pool),_maxLength*=2),pool[_length]=t,_length+=1}},_length=0,_maxLength=4,pool=createSizedArray(_maxLength),ob),ob,_length,_maxLength,pool,ShapePropertyFactory=function(){function t(t,e,i){var r,s,a,n,o,l,c,p,h,d=i.lastIndex,f=this.keyframes;if(t<f[0].t-this.offsetTime)r=f[0].s[0],a=!0,d=0;else if(t>=f[f.length-1].t-this.offsetTime)r=f[f.length-1].s?f[f.length-1].s[0]:f[f.length-2].e[0],a=!0;else{for(var m,u,y,g=d,v=f.length-1,b=!0;b&&(m=f[g],!((u=f[g+1]).t-this.offsetTime>t));)g<v-1?g+=1:b=!1;if(y=this.keyframesMetadata[g]||{},d=g,!(a=1===m.h)){if(t>=u.t-this.offsetTime)p=1;else if(t<m.t-this.offsetTime)p=0;else{var w;y.__fnct?w=y.__fnct:(w=BezierFactory.getBezierEasing(m.o.x,m.o.y,m.i.x,m.i.y).get,y.__fnct=w),p=w((t-(m.t-this.offsetTime))/(u.t-this.offsetTime-(m.t-this.offsetTime)))}s=u.s?u.s[0]:m.e[0]}r=m.s[0]}for(l=e._length,c=r.i[0].length,i.lastIndex=d,n=0;n<l;n+=1)for(o=0;o<c;o+=1)h=a?r.i[n][o]:r.i[n][o]+(s.i[n][o]-r.i[n][o])*p,e.i[n][o]=h,h=a?r.o[n][o]:r.o[n][o]+(s.o[n][o]-r.o[n][o])*p,e.o[n][o]=h,h=a?r.v[n][o]:r.v[n][o]+(s.v[n][o]-r.v[n][o])*p,e.v[n][o]=h}function e(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime,r=this._caching.lastFrame;return-999999!==r&&(r<e&&t<e||r>i&&t>i)||(this._caching.lastIndex=r<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}function i(){this.paths=this.localShapeCollection}function r(t){(function(t,e){if(t._length!==e._length||t.c!==e.c)return!1;var i,r=t._length;for(i=0;i<r;i+=1)if(t.v[i][0]!==e.v[i][0]||t.v[i][1]!==e.v[i][1]||t.o[i][0]!==e.o[i][0]||t.o[i][1]!==e.o[i][1]||t.i[i][0]!==e.i[i][0]||t.i[i][1]!==e.i[i][1])return!1;return!0})(this.v,t)||(this.v=shapePool.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function s(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t,e;this.lock=!0,this._mdf=!1,t=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var i=this.effectsSequence.length;for(e=0;e<i;e+=1)t=this.effectsSequence[e](t);this.setVValue(t),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function a(t,e,r){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;var s=3===r?e.pt.k:e.ks.k;this.v=shapePool.clone(s),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=i,this.effectsSequence=[]}function n(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function o(t,r,s){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=3===s?r.pt.k:r.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var a=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,a),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=-999999,this.reset=i,this._caching={lastFrame:-999999,lastIndex:0},this.effectsSequence=[e.bind(this)]}a.prototype.interpolateShape=t,a.prototype.getValue=s,a.prototype.setVValue=r,a.prototype.addEffect=n,o.prototype.getValue=s,o.prototype.interpolateShape=t,o.prototype.setVValue=r,o.prototype.addEffect=n;var l=function(){var t=roundCorner;function e(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return e.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var e=this.p.v[0],i=this.p.v[1],r=this.s.v[0]/2,s=this.s.v[1]/2,a=3!==this.d,n=this.v;n.v[0][0]=e,n.v[0][1]=i-s,n.v[1][0]=a?e+r:e-r,n.v[1][1]=i,n.v[2][0]=e,n.v[2][1]=i+s,n.v[3][0]=a?e-r:e+r,n.v[3][1]=i,n.i[0][0]=a?e-r*t:e+r*t,n.i[0][1]=i-s,n.i[1][0]=a?e+r:e-r,n.i[1][1]=i-s*t,n.i[2][0]=a?e+r*t:e-r*t,n.i[2][1]=i+s,n.i[3][0]=a?e-r:e+r,n.i[3][1]=i+s*t,n.o[0][0]=a?e+r*t:e-r*t,n.o[0][1]=i-s,n.o[1][0]=a?e+r:e-r,n.o[1][1]=i+s*t,n.o[2][0]=a?e-r*t:e+r*t,n.o[2][1]=i+s,n.o[3][0]=a?e-r:e+r,n.o[3][1]=i-s*t}},extendPrototype([DynamicPropertyContainer],e),e}(),c=function(){function t(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=PropertyFactory.getProp(t,e.ir,0,0,this),this.is=PropertyFactory.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(t,e.pt,0,0,this),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,degToRads,this),this.or=PropertyFactory.getProp(t,e.or,0,0,this),this.os=PropertyFactory.getProp(t,e.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 t.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var t,e,i,r,s=2*Math.floor(this.pt.v),a=2*Math.PI/s,n=!0,o=this.or.v,l=this.ir.v,c=this.os.v,p=this.is.v,h=2*Math.PI*o/(2*s),d=2*Math.PI*l/(2*s),f=-Math.PI/2;f+=this.r.v;var m=3===this.data.d?-1:1;for(this.v._length=0,t=0;t<s;t+=1){i=n?c:p,r=n?h:d;var u=(e=n?o:l)*Math.cos(f),y=e*Math.sin(f),g=0===u&&0===y?0:y/Math.sqrt(u*u+y*y),v=0===u&&0===y?0:-u/Math.sqrt(u*u+y*y);u+=+this.p.v[0],y+=+this.p.v[1],this.v.setTripleAt(u,y,u-g*r*i*m,y-v*r*i*m,u+g*r*i*m,y+v*r*i*m,t,!0),n=!n,f+=a*m}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),i=2*Math.PI/e,r=this.or.v,s=this.os.v,a=2*Math.PI*r/(4*e),n=.5*-Math.PI,o=3===this.data.d?-1:1;for(n+=this.r.v,this.v._length=0,t=0;t<e;t+=1){var l=r*Math.cos(n),c=r*Math.sin(n),p=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-p*a*s*o,c-h*a*s*o,l+p*a*s*o,c+h*a*s*o,t,!0),n+=i*o}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],t),t}(),p=function(){function t(t,e){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return t.prototype={convertRectToPath:function(){var t=this.p.v[0],e=this.p.v[1],i=this.s.v[0]/2,r=this.s.v[1]/2,s=bmMin(i,r,this.r.v),a=s*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+i,e-r+s,t+i,e-r+s,t+i,e-r+a,0,!0),this.v.setTripleAt(t+i,e+r-s,t+i,e+r-a,t+i,e+r-s,
vendor: 4,137 bytes, line 2
21,!0),0!==s?(this.v.setTripleAt(t+i-s,e+r,t+i-s,e+r,t+i-a,e+r,2,!0),this.v.setTripleAt(t-i+s,e+r,t-i+a,e+r,t-i+s,e+r,3,!0),this.v.setTripleAt(t-i,e+r-s,t-i,e+r-s,t-i,e+r-a,4,!0),this.v.setTripleAt(t-i,e-r+s,t-i,e-r+a,t-i,e-r+s,5,!0),this.v.setTripleAt(t-i+s,e-r,t-i+s,e-r,t-i+a,e-r,6,!0),this.v.setTripleAt(t+i-s,e-r,t+i-a,e-r,t+i-s,e-r,7,!0)):(this.v.setTripleAt(t-i,e+r,t-i+a,e+r,t-i,e+r,2),this.v.setTripleAt(t-i,e-r,t-i,e-r+a,t-i,e-r,3))):(this.v.setTripleAt(t+i,e-r+s,t+i,e-r+a,t+i,e-r+s,0,!0),0!==s?(this.v.setTripleAt(t+i-s,e-r,t+i-s,e-r,t+i-a,e-r,1,!0),this.v.setTripleAt(t-i+s,e-r,t-i+a,e-r,t-i+s,e-r,2,!0),this.v.setTripleAt(t-i,e-r+s,t-i,e-r+s,t-i,e-r+a,3,!0),this.v.setTripleAt(t-i,e+r-s,t-i,e+r-a,t-i,e+r-s,4,!0),this.v.setTripleAt(t-i+s,e+r,t-i+s,e+r,t-i+a,e+r,5,!0),this.v.setTripleAt(t+i-s,e+r,t+i-a,e+r,t+i-s,e+r,6,!0),this.v.setTripleAt(t+i,e+r-s,t+i,e+r-s,t+i,e+r-a,7,!0)):(this.v.setTripleAt(t-i,e-r,t-i+a,e-r,t-i,e-r,1,!0),this.v.setTripleAt(t-i,e+r,t-i,e+r-a,t-i,e+r,2,!0),this.v.setTripleAt(t+i,e+r,t+i-a,e+r,t+i,e+r,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:i},extendPrototype([DynamicPropertyContainer],t),t}(),h={getShapeProp:function(t,e,i){var r;return 3===i||4===i?r=(3===i?e.pt:e.ks).k.length?new o(t,e,i):new a(t,e,i):5===i?r=new p(t,e):6===i?r=new l(t,e):7===i&&(r=new c(t,e)),r.k&&t.addDynamicProperty(r),r},getConstructorFunction:function(){return a},getKeyframedConstructorFunction:function(){return o}};return h}(),Matrix=function(){var t=Math.cos,e=Math.sin,i=Math.tan,r=Math.round;function s(){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(i){if(0===i)return this;var r=t(i),s=e(i);return this._t(r,-s,0,0,s,r,0,0,0,0,1,0,0,0,0,1)}function n(i){if(0===i)return this;var r=t(i),s=e(i);return this._t(1,0,0,0,0,r,-s,0,0,s,r,0,0,0,0,1)}function o(i){if(0===i)return this;var r=t(i),s=e(i);return this._t(r,0,s,0,0,1,0,0,-s,0,r,0,0,0,0,1)}function l(i){if(0===i)return this;var r=t(i),s=e(i);return this._t(r,-s,0,0,s,r,0,0,0,0,1,0,0,0,0,1)}function c(t,e){return this._t(1,e,t,1,0,0)}function p(t,e){return this.shear(i(t),i(e))}function h(r,s){var a=t(s),n=e(s);return this._t(a,n,0,0,-n,a,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,i(r),1,0,0,0,0,1,0,0,0,0,1)._t(a,-n,0,0,n,a,0,0,0,0,1,0,0,0,0,1)}function d(t,e,i){return i||0===i||(i=1),1===t&&1===e&&1===i?this:this._t(t,0,0,0,0,e,0,0,0,0,i,0,0,0,0,1)}function f(t,e,i,r,s,a,n,o,l,c,p,h,d,f,m,u){return this.props[0]=t,this.props[1]=e,this.props[2]=i,this.props[3]=r,this.props[4]=s,this.props[5]=a,this.props[6]=n,this.props[7]=o,this.props[8]=l,this.props[9]=c,this.props[10]=p,this.props[11]=h,this.props[12]=d,this.props[13]=f,this.props[14]=m,this.props[15]=u,this}function m(t,e,i){return i=i||0,0!==t||0!==e||0!==i?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,i,1):this}function u(t,e,i,r,s,a,n,o,l,c,p,h,d,f,m,u){var y=this.props;if(1===t&&0===e&&0===i&&0===r&&0===s&&1===a&&0===n&&0===o&&0===l&&0===c&&1===p&&0===h)return y[12]=y[12]*t+y[15]*d,y[13]=y[13]*a+y[15]*f,y[14]=y[14]*p+y[15]*m,y[15]*=u,this._identityCalculated=!1,this;var g=y[0],v=y[1],b=y[2],w=y[3],E=y[4],_=y[5],T=y[6],S=y[7],x=y[8],I=y[9],P=y[10],O=y[11],A=y[12],k=y[13],C=y[14],D=y[15];return y[0]=g*t+v*s+b*l+w*d,y[1]=g*e+v*a+b*c+w*f,y[2]=g*i+v*n+b*p+w*m,y[3]=g*r+v*o+b*h+w*u,y[4]=E*t+_*s+T*l+S*d,y[5]=E*e+_*a+T*c+S*f,y[6]=E*i+_*n+T*p+S*m,y[7]=E*r+_*o+T*h+S*u,y[8]=x*t+I*s+P*l+O*d,y[9]=x*e+I*a+P*c+O*f,y[10]=x*i+I*n+P*p+O*m,y[11]=x*r+I*o+P*h+O*u,y[12]=A*t+k*s+C*l+D*d,y[13]=A*e+k*a+C*c+D*f,y[14]=A*i+k*n+C*p+D*m,y[15]=A*r+k*o+C*h+D*u,this._identityCalculated=!1,this}function y(){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]||
vendor: 6,239 bytes, line 2
20!==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 g(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function v(t){var e;for(e=0;e<16;e+=1)t.props[e]=this.props[e];return t}function b(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function w(t,e,i){return{x:t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}}function E(t,e,i){return t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12]}function _(t,e,i){return t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13]}function T(t,e,i){return t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}function S(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],e=this.props[5]/t,i=-this.props[1]/t,r=-this.props[4]/t,s=this.props[0]/t,a=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,n=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,o=new Matrix;return o.props[0]=e,o.props[1]=i,o.props[4]=r,o.props[5]=s,o.props[12]=a,o.props[13]=n,o}function x(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function I(t){var e,i=t.length,r=[];for(e=0;e<i;e+=1)r[e]=x(t[e]);return r}function P(t,e,i){var r=createTypedArray("float32",6);if(this.isIdentity())r[0]=t[0],r[1]=t[1],r[2]=e[0],r[3]=e[1],r[4]=i[0],r[5]=i[1];else{var s=this.props[0],a=this.props[1],n=this.props[4],o=this.props[5],l=this.props[12],c=this.props[13];r[0]=t[0]*s+t[1]*n+l,r[1]=t[0]*a+t[1]*o+c,r[2]=e[0]*s+e[1]*n+l,r[3]=e[0]*a+e[1]*o+c,r[4]=i[0]*s+i[1]*n+l,r[5]=i[0]*a+i[1]*o+c}return r}function O(t,e,i){return this.isIdentity()?[t,e,i]:[t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]]}function A(t,e){if(this.isIdentity())return t+","+e;var i=this.props;return Math.round(100*(t*i[0]+e*i[4]+i[12]))/100+","+Math.round(100*(t*i[1]+e*i[5]+i[13]))/100}function k(){for(var t=0,e=this.props,i="matrix3d(";t<16;)i+=r(1e4*e[t])/1e4,i+=15===t?")":",",t+=1;return i}function C(t){return t<1e-6&&t>0||t>-1e-6&&t<0?r(1e4*t)/1e4:t}function D(){var t=this.props;return"matrix("+C(t[0])+","+C(t[1])+","+C(t[4])+","+C(t[5])+","+C(t[12])+","+C(t[13])+")"}return function(){this.reset=s,this.rotate=a,this.rotateX=n,this.rotateY=o,this.rotateZ=l,this.skew=p,this.skewFromAxis=h,this.shear=c,this.scale=d,this.setTransform=f,this.translate=m,this.transform=u,this.applyToPoint=w,this.applyToX=E,this.applyToY=_,this.applyToZ=T,this.applyToPointArray=O,this.applyToTriplePoints=P,this.applyToPointStringified=A,this.toCSS=k,this.to2dCSS=D,this.clone=v,this.cloneFromProps=b,this.equals=g,this.inversePoints=I,this.inversePoint=x,this.getInverseMatrix=S,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(t){return(_typeof$3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(t){setLocationHref(t)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(t){setSubframeEnabled(t)}function setPrefix(t){setIdPrefix(t)}function loadAnimation(t){return!0===standalone&&(t.animationData=JSON.parse(animationData)),animationManager.loadAnimation(t)}function setQuality(t){if("string"==typeof t)switch(t){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(t)&&t>1&&setDefaultCurveSegments(t);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(t,e){"expressions"===t&&setExpressionsPlugin(e)}function getFactory(t){switch(t){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(t){for(var e=queryString.split("&"),i=0;i<e.length;i+=1){var r=e[i].split("=");if(decodeURIComponent(r[0])==t)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.10.1";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)&&void 0!==module||__webpack_require__(7)||
vendor: 4,115 bytes, line 2
2(window.bodymovin=lottie)}catch(t){}var ShapeModifiers=(t={},e={},t.registerModifier=function(t,i){e[t]||(e[t]=i)},t.getModifier=function(t,i,r){return new e[t](i,r)},t),t,e;function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},ShapeModifier.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),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(t,e){this.s=PropertyFactory.getProp(t,e.s,0,.01,this),this.e=PropertyFactory.getProp(t,e.e,0,.01,this),this.o=PropertyFactory.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(t,e,i,r,s){var a=[];e<=1?a.push({s:t,e:e}):t>=1?a.push({s:t-1,e:e-1}):(a.push({s:t,e:1}),a.push({s:0,e:e-1}));var n,o,l=[],c=a.length;for(n=0;n<c;n+=1){var p,h;(o=a[n]).e*s<r||o.s*s>r+i||(p=o.s*s<=r?0:(o.s*s-r)/i,h=o.e*s>=r+i?1:(o.e*s-r)/i,l.push([p,h]))}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(t){var e,i=t.length;for(e=0;e<i;e+=1)segmentsLengthPool.release(t[e]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){var e,i,r,s;if(this._mdf||t){var a=this.o.v%360/360;if(a<0&&(a+=1),(e=this.s.v>1?1+a:this.s.v<0?0+a:this.s.v+a)>(i=this.e.v>1?1+a:this.e.v<0?0+a:this.e.v+a)){var n=e;e=i,i=n}e=1e-4*Math.round(1e4*e),i=1e-4*Math.round(1e4*i),this.sValue=e,this.eValue=i}else e=this.sValue,i=this.eValue;var o,l,c,p,h,d=this.shapes.length,f=0;if(i===e)for(s=0;s<d;s+=1)this.shapes[s].localShapeCollection.releaseShapes(),this.shapes[s].shape._mdf=!0,this.shapes[s].shape.paths=this.shapes[s].localShapeCollection,this._mdf&&(this.shapes[s].pathsData.length=0);else if(1===i&&0===e||0===i&&1===e){if(this._mdf)for(s=0;s<d;s+=1)this.shapes[s].pathsData.length=0,this.shapes[s].shape._mdf=!0}else{var m,u,y=[];for(s=0;s<d;s+=1)if((m=this.shapes[s]).shape._mdf||this._mdf||t||2===this.m){if(l=(r=m.shape.paths)._length,h=0,!m.shape._mdf&&m.pathsData.length)h=m.totalShapeLength;else{for(c=this.releasePathsData(m.pathsData),o=0;o<l;o+=1)p=bez.getSegmentsLength(r.shapes[o]),c.push(p),h+=p.totalLength;m.totalShapeLength=h,m.pathsData=c}f+=h,m.shape._mdf=!0}else m.shape.paths=m.localShapeCollection;var g,v=e,b=i,w=0;for(s=d-1;s>=0;s-=1)if((m=this.shapes[s]).shape._mdf){for((u=m.localShapeCollection).releaseShapes(),2===this.m&&d>1?(g=this.calculateShapeEdges(e,i,m.totalShapeLength,w,f),w+=m.totalShapeLength):g=[[v,b]],l=g.length,o=0;o<l;o+=1){v=g[o][0],b=g[o][1],y.length=0,b<=1?y.push({s:m.totalShapeLength*v,e:m.totalShapeLength*b}):v>=1?y.push({s:m.totalShapeLength*(v-1),e:m.totalShapeLength*(b-1)}):(y.push({s:m.totalShapeLength*v,e:m.totalShapeLength}),y.push({s:0,e:m.totalShapeLength*(b-1)}));var E=this.addShapes(m,y[0]);if(y[0].s!==y[0].e){if(y.length>1)if(m.shape.paths.shapes[m.shape.paths._length-1].c){var _=E.pop();this.addPaths(E,u),E=this.addShapes(m,y[1],_)}else this.addPaths(E,u),E=this.addShapes(m,y[1]);this.addPaths(E,u)}}m.shape.paths=u}}},TrimModifier.prototype.addPaths=function(t,e){var i,r=t.length;for(i=0;i<r;i+=1)e.addShape(t[i])}
vendor: 21,986 bytes, line 2
2,TrimModifier.prototype.addSegment=function(t,e,i,r,s,a,n){s.setXYAt(e[0],e[1],"o",a),s.setXYAt(i[0],i[1],"i",a+1),n&&s.setXYAt(t[0],t[1],"v",a),s.setXYAt(r[0],r[1],"v",a+1)},TrimModifier.prototype.addSegmentFromArray=function(t,e,i,r){e.setXYAt(t[1],t[5],"o",i),e.setXYAt(t[2],t[6],"i",i+1),r&&e.setXYAt(t[0],t[4],"v",i),e.setXYAt(t[3],t[7],"v",i+1)},TrimModifier.prototype.addShapes=function(t,e,i){var r,s,a,n,o,l,c,p,h=t.pathsData,d=t.shape.paths.shapes,f=t.shape.paths._length,m=0,u=[],y=!0;for(i?(o=i._length,p=i._length):(i=shapePool.newElement(),o=0,p=0),u.push(i),r=0;r<f;r+=1){for(l=h[r].lengths,i.c=d[r].c,a=d[r].c?l.length:l.length+1,s=1;s<a;s+=1)if(m+(n=l[s-1]).addedLength<e.s)m+=n.addedLength,i.c=!1;else{if(m>e.e){i.c=!1;break}e.s<=m&&e.e>=m+n.addedLength?(this.addSegment(d[r].v[s-1],d[r].o[s-1],d[r].i[s],d[r].v[s],i,o,y),y=!1):(c=bez.getNewSegment(d[r].v[s-1],d[r].v[s],d[r].o[s-1],d[r].i[s],(e.s-m)/n.addedLength,(e.e-m)/n.addedLength,l[s-1]),this.addSegmentFromArray(c,i,o,y),y=!1,i.c=!1),m+=n.addedLength,o+=1}if(d[r].c&&l.length){if(n=l[s-1],m<=e.e){var g=l[s-1].addedLength;e.s<=m&&e.e>=m+g?(this.addSegment(d[r].v[s-1],d[r].o[s-1],d[r].i[0],d[r].v[0],i,o,y),y=!1):(c=bez.getNewSegment(d[r].v[s-1],d[r].v[0],d[r].o[s-1],d[r].i[0],(e.s-m)/g,(e.e-m)/g,l[s-1]),this.addSegmentFromArray(c,i,o,y),y=!1,i.c=!1)}else i.c=!1;m+=n.addedLength,o+=1}if(i._length&&(i.setXYAt(i.v[p][0],i.v[p][1],"i",p),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),m>e.e)break;r<f-1&&(i=shapePool.newElement(),y=!0,u.push(i),o=0)}return u},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(t,e){var i=e/100,r=[0,0],s=t._length,a=0;for(a=0;a<s;a+=1)r[0]+=t.v[a][0],r[1]+=t.v[a][1];r[0]/=s,r[1]/=s;var n,o,l,c,p,h,d=shapePool.newElement();for(d.c=t.c,a=0;a<s;a+=1)n=t.v[a][0]+(r[0]-t.v[a][0])*i,o=t.v[a][1]+(r[1]-t.v[a][1])*i,l=t.o[a][0]+(r[0]-t.o[a][0])*-i,c=t.o[a][1]+(r[1]-t.o[a][1])*-i,p=t.i[a][0]+(r[0]-t.i[a][0])*-i,h=t.i[a][1]+(r[1]-t.i[a][1])*-i,d.setTripleAt(n,o,l,c,p,h,a);return d},PuckerAndBloatModifier.prototype.processShapes=function(t){var e,i,r,s,a,n,o=this.shapes.length,l=this.amount.v;if(0!==l)for(i=0;i<o;i+=1){if(n=(a=this.shapes[i]).localShapeCollection,a.shape._mdf||this._mdf||t)for(n.releaseShapes(),a.shape._mdf=!0,e=a.shape.paths.shapes,s=a.shape.paths._length,r=0;r<s;r+=1)n.addShape(this.processPath(e[r],l));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var t=[0,0];function e(t,e,i){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(i||t),e.p&&e.p.s?(this.px=PropertyFactory.getProp(t,e.p.x,0,0,this),this.py=PropertyFactory.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=PropertyFactory.getProp(t,e.p.z,0,0,this))):this.p=PropertyFactory.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=PropertyFactory.getProp(t,e.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(t,e.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(t,e.rz,0,degToRads,this),e.or.k[0].ti){var r,s=e.or.k.length;for(r=0;r<s;r+=1)e.or.k[r].to=null,e.or.k[r].ti=null}this.or=PropertyFactory.getProp(t,e.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(t,e.r||{k:0},0,degToRads,this);e.sk&&(this.sk=PropertyFactory.getProp(t,e.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(t,e.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(t,e.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(t,e.s||{k:[100,100,100]},1,.01,this),e.o?this.o=PropertyFactory.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return e.prototype={applyToMatrix:function(t){var e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||e,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),this.r?t.rotate(-this.r.v):t.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?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(e){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||e){var i;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,s;if(i=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)/i,0),s=this.p.getValueAtTime(this.p.keyframes[0].t/i,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/i,0),s=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/i,0)):(r=this.p.pv,s=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/i,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){r=[],s=[];var a=this.px,n=this.py;a._caching.lastFrame+a.offsetTime<=a.keyframes[0].t?(r[0]=a.getValueAtTime((a.keyframes[0].t+.01)/i,0),r[1]=n.getValueAtTime((n.keyframes[0].t+.01)/i,0),s[0]=a.getValueAtTime(a.keyframes[0].t/i,0),s[1]=n.getValueAtTime(n.keyframes[0].t/i,0)):a._caching.lastFrame+a.offsetTime>=a.keyframes[a.keyframes.length-1].t?(r[0]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/i,0),r[1]=n.getValueAtTime(n.keyframes[n.keyframes.length-1].t/i,0),s[0]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/i,0),s[1]=n.getValueAtTime((n.keyframes[n.keyframes.length-1].t-.01)/i,0)):(r=[a.pv,n.pv],s[0]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/i,a.offsetTime),s[1]=n.getValueAtTime((n._caching.lastFrame+n.offsetTime-.01)/i,n.offsetTime))}else r=s=t;this.v.rotate(-Math.atan2(r[1]-s[1],r[0]-s[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.a.k&&(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],e),e.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},e.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(t,i,r){return new e(t,i,r)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(t,e){return 1e5*Math.abs(t-e)<=Math.min(Math.abs(t),Math.abs(e))}function floatZero(t){return Math.abs(t)<=1e-5}function lerp(t,e,i){return t*(1-i)+e*i}function lerpPoint(t,e,i){return[lerp(t[0],e[0],i),lerp(t[1],e[1],i)]}function quadRoots(t,e,i){if(0===t)return[];var r=e*e-4*t*i;if(r<0)return[];var s=-e/(2*t);if(0===r)return[s];var a=Math.sqrt(r)/(2*t);return[s-a,s+a]}function polynomialCoefficients(t,e,i,r){return[3*e-t-3*i+r,3*t-6*e+3*i,-3*t+3*e,t]}function singlePoint(t){return new PolynomialBezier(t,t,t,t,!1)}function PolynomialBezier(t,e,i,r,s){s&&pointEqual(t,e)&&(e=lerpPoint(t,r,1/3)),s&&pointEqual(i,r)&&(i=lerpPoint(t,r,2/3));var a=polynomialCoefficients(t[0],e[0],i[0],r[0]),n=polynomialCoefficients(t[1],e[1],i[1],r[1]);this.a=[a[0],n[0]],this.b=[a[1],n[1]],this.c=[a[2],n[2]],this.d=[a[3],n[3]],this.points=[t,e,i,r]}function extrema(t,e){var i=t.points[0][e],r=t.points[t.points.length-1][e];if(i>r){var s=r;r=i,i=s}for(var a=quadRoots(3*t.a[e],2*t.b[e],t.c[e]),n=0;n<a.length;n+=1)if(a[n]>0&&a[n]<1){var o=t.point(a[n])[e];o<i?i=o:o>r&&(r=o)}return{min:i,max:r}}function intersectData(t,e,i){var r=t.boundingBox();return{cx:r.cx,cy:r.cy,width:r.width,height:r.height,bez:t,t:(e+i)/2,t1:e,t2:i}}function splitData(t){var e=t.bez.split(.5);return[intersectData(e[0],t.t1,t.t),intersectData(e[1],t.t,t.t2)]}function boxIntersect(t,e){return 2*Math.abs(t.cx-e.cx)<t.width+e.width&&2*Math.abs(t.cy-e.cy)<t.height+e.height}function intersectsImpl(t,e,i,r,s,a){if(boxIntersect(t,e))if(i>=a||t.width<=r&&t.height<=r&&e.width<=r&&e.height<=r)s.push([t.t,e.t]);else{var n=splitData(t),o=splitData(e);intersectsImpl(n[0],o[0],i+1,r,s,a),intersectsImpl(n[0],o[1],i+1,r,s,a),intersectsImpl(n[1],o[0],i+1,r,s,a),intersectsImpl(n[1],o[1],i+1,r,s,a)}}function crossProduct(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function lineIntersection(t,e,i,r){var s=[t[0],t[1],1],a=[e[0],e[1],1],n=[i[0],i[1],1],o=[r[0],r[1],1],l=crossProduct(crossProduct(s,a),crossProduct(n,o));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(t,e,i){return[t[0]+Math.cos(e)*i,t[1]-Math.sin(e)*i]}function pointDistance(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function pointEqual(t,e){return floatEqual(t[0],e[0])&&floatEqual(t[1],e[1])}function ZigZagModifier(){}function setPoint(t,e,i,r,s,a,n){var o=i-Math.PI/2,l=i+Math.PI/2,c=e[0]+Math.cos(i)*r*s,p=e[1]-Math.sin(i)*r*s;t.setTripleAt(c,p,c+Math.cos(o)*a,p-Math.sin(o)*a,c+Math.cos(l)*n,p-Math.sin(l)*n,t.length())}function getPerpendicularVector(t,e){var i=[e[0]-t[0],e[1]-t[1]],r=.5*-Math.PI;return[Math.cos(r)*i[0]-Math.sin(r)*i[1],Math.sin(r)*i[0]+Math.cos(r)*i[1]]}function getProjectingAngle(t,e){var i=0===e?t.length()-1:e-1,r=(e+1)%t.length(),s=getPerpendicularVector(t.v[i],t.v[r]);return Math.atan2(0,1)-Math.atan2(s[1],s[0])}function zigZagCorner(t,e,i,r,s,a,n){var o=getProjectingAngle(e,i),l=e.v[i%e._length],c=e.v[0===i?e._length-1:i-1],p=e.v[(i+1)%e._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]-p[0],2)+Math.pow(l[1]-p[1],2)):0;setPoint(t,e.v[i%e._length],o,n,r,d/(2*(s+1)),h/(2*(s+1)),a)}function zigZagSegment(t,e,i,r,s,a){for(var n=0;n<r;n+=1){var o=(n+1)/(r+1),l=2===s?Math.sqrt(Math.pow(e.points[3][0]-e.points[0][0],2)+Math.pow(e.points[3][1]-e.points[0][1],2)):0,c=e.normalAngle(o);setPoint(t,e.point(o),c,a,i,l/(2*(r+1)),l/(2*(r+1)),s),a=-a}return a}function linearOffset(t,e,i){var r=Math.atan2(e[0]-t[0],e[1]-t[1]);return[polarOffset(t,r,i),polarOffset(e,r,i)]}function offsetSegment(t,e){var i,r,s,a,n,o,l;i=(l=linearOffset(t.points[0],t.points[1],e))[0],r=l[1],s=(l=linearOffset(t.points[1],t.points[2],e))[0],a=l[1],n=(l=linearOffset(t.points[2],t.points[3],e))[0],o=l[1];var c=lineIntersection(i,r,s,a);null===c&&(c=r);var p=lineIntersection(n,o,s,a);return null===p&&(p=n),new PolynomialBezier(i,c,p,o)}function joinLines(t,e,i,r,s){var a=e.points[3],n=i.points[0];if(3===r)return a;if(pointEqual(a,n))return a;if(2===r){var o=-e.tangentAngle(1),l=-i.tangentAngle(0)+Math.PI,c=lineIntersection(a,polarOffset(a,o+Math.PI/2,100),n,polarOffset(n,o+Math.PI/2,100)),p=c?pointDistance(c,a):pointDistance(a,n)/2,h=polarOffset(a,o,2*p*roundCorner);return t.setXYAt(h[0],h[1],"o",t.length()-1),h=polarOffset(n,l,2*p*roundCorner),t.setTripleAt(n[0],n[1],n[0],n[1],h[0],h[1],t.length()),n}var d=lineIntersection(pointEqual(a,e.points[2])?e.points[0]:e.points[2],a,n,pointEqual(n,i.points[1])?i.points[3]:i.points[1]);return d&&pointDistance(d,a)<s?(t.setTripleAt(d[0],d[1],d[0],d[1],d[0],d[1],t.length()),d):a}function getIntersection(t,e){var i=t.intersections(e);return i.length&&floatEqual(i[0][0],1)&&i.shift(),i.length?i[0]:null}function pruneSegmentIntersection(t,e){var i=t.slice(),r=e.slice(),s=getIntersection(t[t.length-1],e[0]);return s&&(i[t.length-1]=t[t.length-1].split(s[0])[0],r[0]=e[0].split(s[1])[1]),t.length>1&&e.length>1&&(s=getIntersection(t[0],e[e.length-1]))?[[t[0].split(s[0])[0]],[e[e.length-1].split(s[1])[1]]]:[i,r]}function pruneIntersections(t){for(var e,i=1;i<t.length;i+=1)e=pruneSegmentIntersection(t[i-1],t[i]),t[i-1]=e[0],t[i]=e[1];return t.length>1&&(e=pruneSegmentIntersection(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}function offsetSegmentSplit(t,e){var i,r,s,a,n=t.inflectionPoints();if(0===n.length)return[offsetSegment(t,e)];if(1===n.length||floatEqual(n[1],1))return i=(s=t.split(n[0]))[0],r=s[1],[offsetSegment(i,e),offsetSegment(r,e)];i=(s=t.split(n[0]))[0];var o=(n[1]-n[0])/(1-n[0]);return a=(s=s[1].split(o))[0],r=s[1],[offsetSegment(i,e),offsetSegment(a,e),offsetSegment(r,e)]}function OffsetPathModifier(){}function getFontProperties(t){for(var e=t.fStyle?t.fStyle.split(" "):[],i="normal",r="normal",s=e.length,a=0;a<s;a+=1)switch(e[a].toLowerCase()){case"italic":r="italic";break;case"bold":i="700";break;case"black":i="900";break;case"medium":i="500";break;case"regular":case"normal":i="400";break;case"light":case"thin":i="200"}return{style:r,weight:t.fWeight||i}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(t,e.c,0,null,this),this.o=PropertyFactory.getProp(t,e.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(t,e.tr,this),this.so=PropertyFactory.getProp(t,e.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(t,e.tr.eo,0,.01,this),this.data=e,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(t,e,i,r,s,a){var n=a?-1:1,o=r.s.v[0]+(1-r.s.v[0])*(1-s),l=r.s.v[1]+(1-r.s.v[1])*(1-s);t.translate(r.p.v[0]*n*s,r.p.v[1]*n*s,r.p.v[2]),e.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),e.rotate(-r.r.v*n*s),e.translate(r.a.v[0],r.a.v[1],r.a.v[2]),i.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),i.scale(a?1/o:o,a?1/l:l),i.translate(r.a.v[0],r.a.v[1],r.a.v[2])},RepeaterModifier.prototype.init=function(t,e,i,r){for(this.elem=t,this.arr=e,this.pos=i,this.elemsData=r,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[i]);i>0;)i-=1,this._elements.unshift(e[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e]._processed=!1,"gr"===t[e].ty&&this.resetElements(t[e].it)},RepeaterModifier.prototype.cloneElements=function(t){var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},RepeaterModifier.prototype.changeGroupRender=function(t,e){var i,r=t.length;for(i=0;i<r;i+=1)t[i]._render=e,"gr"===t[i].ty&&this.changeGroupRender(t[i].it,e)},RepeaterModifier.prototype.processShapes=function(t){var e,i,r,s,a,n=!1;if(this._mdf||t){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(),n=!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 p=this.elemsData[r].it,h=p[p.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,f=d%1,m=d>0?Math.floor(d):Math.ceil(d),u=this.pMatrix.props,y=this.rMatrix.props,g=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var v,b,w=0;if(d>0){for(;w<m;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),w+=1;f&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,f,!1),w+=f)}else if(d<0){for(;w>m;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),w-=1;f&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-f,!0),w-=f)}for(r=1===this.data.m?0:this._currentCopies-1,s=1===this.data.m?1:-1,a=this._currentCopies;a;){if(b=(i=(e=this.elemsData[r].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.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!==w){for((0!==r&&1===s||r!==this._currentCopies-1&&-1===s)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),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(u[0],u[1],u[2],u[3],u[4],u[5],u[6],u[7],u[8],u[9],u[10],u[11],u[12],u[13],u[14],u[15]),v=0;v<b;v+=1)i[v]=this.matrix.props[v];this.matrix.reset()}else for(this.matrix.reset(),v=0;v<b;v+=1)i[v]=this.matrix.props[v];w+=1,a-=1,r+=s}}else for(a=this._currentCopies,r=0,s=1;a;)i=(e=this.elemsData[r].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,a-=1,r+=s;return n},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(t,e){var i,r=shapePool.newElement();r.c=t.c;var s,a,n,o,l,c,p,h,d,f,m,u,y=t._length,g=0;for(i=0;i<y;i+=1)s=t.v[i],n=t.o[i],a=t.i[i],s[0]===n[0]&&s[1]===n[1]&&s[0]===a[0]&&s[1]===a[1]?0!==i&&i!==y-1||t.c?(o=0===i?t.v[y-1]:t.v[i-1],c=(l=Math.sqrt(Math.pow(s[0]-o[0],2)+Math.pow(s[1]-o[1],2)))?Math.min(l/2,e)/l:0,p=m=s[0]+(o[0]-s[0])*c,h=u=s[1]-(s[1]-o[1])*c,d=p-(p-s[0])*roundCorner,f=h-(h-s[1])*roundCorner,r.setTripleAt(p,h,d,f,m,u,g),g+=1,o=i===y-1?t.v[0]:t.v[i+1],c=(l=Math.sqrt(Math.pow(s[0]-o[0],2)+Math.pow(s[1]-o[1],2)))?Math.min(l/2,e)/l:0,p=d=s[0]+(o[0]-s[0])*c,h=f=s[1]+(o[1]-s[1])*c,m=p-(p-s[0])*roundCorner,u=h-(h-s[1])*roundCorner,r.setTripleAt(p,h,d,f,m,u,g),g+=1):(r.setTripleAt(s[0],s[1],n[0],n[1],a[0],a[1],g),g+=1):(r.setTripleAt(t.v[i][0],t.v[i][1],t.o[i][0],t.o[i][1],t.i[i][0],t.i[i][1],g),g+=1);return r},RoundCornersModifier.prototype.processShapes=function(t){var e,i,r,s,a,n,o=this.shapes.length,l=this.rd.v;if(0!==l)for(i=0;i<o;i+=1){if(n=(a=this.shapes[i]).localShapeCollection,a.shape._mdf||this._mdf||t)for(n.releaseShapes(),a.shape._mdf=!0,e=a.shape.paths.shapes,s=a.shape.paths._length,r=0;r<s;r+=1)n.addShape(this.processPath(e[r],l));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(t){return[((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]},PolynomialBezier.prototype.derivative=function(t){return[(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(t){var e=this.derivative(t);return Math.atan2(e[1],e[0])},PolynomialBezier.prototype.normalAngle=function(t){var e=this.derivative(t);return Math.atan2(e[0],e[1])},PolynomialBezier.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(t))return[];var e=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,i=e*e-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(i<0)return[];var r=Math.sqrt(i);return floatZero(r)?r>0&&r<1?[e]:[]:[e-r,e+r].filter((function(t){return t>0&&t<1}))},PolynomialBezier.prototype.split=function(t){if(t<=0)return[singlePoint(this.points[0]),this];if(t>=1)return[this,singlePoint(this.points[this.points.length-1])];var e=lerpPoint(this.points[0],this.points[1],t),i=lerpPoint(this.points[1],this.points[2],t),r=lerpPoint(this.points[2],this.points[3],t),s=lerpPoint(e,i,t),a=lerpPoint(i,r,t),n=lerpPoint(s,a,t);return[new PolynomialBezier(this.points[0],e,s,n,!0),new PolynomialBezier(n,a,r,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}}
vendor: 6,647 bytes, line 2
2,PolynomialBezier.prototype.intersections=function(t,e,i){void 0===e&&(e=2),void 0===i&&(i=7);var r=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,e,r,i),r},PolynomialBezier.shapeSegment=function(t,e){var i=(e+1)%t.length();return new PolynomialBezier(t.v[e],t.o[e],t.i[i],t.v[i],!0)},PolynomialBezier.shapeSegmentInverted=function(t,e){var i=(e+1)%t.length();return new PolynomialBezier(t.v[i],t.i[i],t.o[e],t.v[e],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(t,e.s,0,null,this),this.frequency=PropertyFactory.getProp(t,e.r,0,null,this),this.pointsType=PropertyFactory.getProp(t,e.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(t,e,i,r){var s=t._length,a=shapePool.newElement();if(a.c=t.c,t.c||(s-=1),0===s)return a;var n=-1,o=PolynomialBezier.shapeSegment(t,0);zigZagCorner(a,t,0,e,i,r,n);for(var l=0;l<s;l+=1)n=zigZagSegment(a,o,e,i,r,-n),o=l!==s-1||t.c?PolynomialBezier.shapeSegment(t,(l+1)%s):null,zigZagCorner(a,t,l+1,e,i,r,n);return a},ZigZagModifier.prototype.processShapes=function(t){var e,i,r,s,a,n,o=this.shapes.length,l=this.amplitude.v,c=Math.max(0,Math.round(this.frequency.v)),p=this.pointsType.v;if(0!==l)for(i=0;i<o;i+=1){if(n=(a=this.shapes[i]).localShapeCollection,a.shape._mdf||this._mdf||t)for(n.releaseShapes(),a.shape._mdf=!0,e=a.shape.paths.shapes,s=a.shape.paths._length,r=0;r<s;r+=1)n.addShape(this.processPath(e[r],l,c,p));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this.miterLimit=PropertyFactory.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(t,e,i,r){var s=shapePool.newElement();s.c=t.c;var a,n,o,l=t.length();t.c||(l-=1);var c=[];for(a=0;a<l;a+=1)o=PolynomialBezier.shapeSegment(t,a),c.push(offsetSegmentSplit(o,e));if(!t.c)for(a=l-1;a>=0;a-=1)o=PolynomialBezier.shapeSegmentInverted(t,a),c.push(offsetSegmentSplit(o,e));c=pruneIntersections(c);var p=null,h=null;for(a=0;a<c.length;a+=1){var d=c[a];for(h&&(p=joinLines(s,h,d[0],i,r)),h=d[d.length-1],n=0;n<d.length;n+=1)o=d[n],p&&pointEqual(o.points[0],p)?s.setXYAt(o.points[1][0],o.points[1][1],"o",s.length()-1):s.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],s.length()),s.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],s.length()),p=o.points[3]}return c.length&&joinLines(s,h,c[0][0],i,r),s},OffsetPathModifier.prototype.processShapes=function(t){var e,i,r,s,a,n,o=this.shapes.length,l=this.amount.v,c=this.miterLimit.v,p=this.lineJoin;if(0!==l)for(i=0;i<o;i+=1){if(n=(a=this.shapes[i]).localShapeCollection,a.shape._mdf||this._mdf||t)for(n.releaseShapes(),a.shape._mdf=!0,e=a.shape.paths.shapes,s=a.shape.paths._length,r=0;r<s;r+=1)n.addShape(this.processPath(e[r],l,p,c));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var t={w:0,size:0,shapes:[],data:{shapes:[]}},e=[];e=e.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 i=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],r=[65039,8205];function s(t,e){var i=createTag("span");i.setAttribute("aria-hidden",!0),i.style.fontFamily=e;var r=createTag("span");r.innerText="giItT1WQy@!-/#",i.style.position="absolute",i.style.left="-10000px",i.style.top="-10000px",i.style.fontSize="300px",i.style.fontVariant="normal",i.style.fontStyle="normal",i.style.fontWeight="normal",i.style.letterSpacing="0",i.appendChild(r),document.body.appendChild(i);var s=r.offsetWidth;return r.style.fontFamily=function(t){var e,i=t.split(","),r=i.length,s=[];for(e=0;e<r;e+=1)"sans-serif"!==i[e]&&"monospace"!==i[e]&&s.push(i[e]);return s.join(",")}(t)+", "+e,{node:r,w:s,parent:i}}function a(t,e){var i,r=document.body&&e?"svg":"canvas",s=getFontProperties(t);if("svg"===r){var a=createNS("text");a.style.fontSize="100px",a.setAttribute("font-family",t.fFamily),a.setAttribute("font-style",s.style),a.setAttribute("font-weight",s.weight),a.textContent="1",t.fClass?(a.style.fontFamily="inherit",a.setAttribute("class",t.fClass)):a.style.fontFamily=t.fFamily,e.appendChild(a),i=a}else{var n=new OffscreenCanvas(500,500).getContext("2d");n.font=s.style+" "+s.weight+" 100px "+t.fFamily,i=n}return{measureText:function(t){return"svg"===r?(i.textContent=t,i.getComputedTextLength()):i.measureText(t).width}}}var n=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)};return n.isModifier=function(t,e){var r=t.toString(16)+e.toString(16);return-1!==i.indexOf(r)},n.isZeroWidthJoiner=function(t,e){return e?t===r[0]&&e===r[1]:t===r[1]},n.isCombinedCharacter=function(t){return-1!==e.indexOf(t)},n.prototype={addChars:function(t){if(t){var e;this.chars||(this.chars=[]);var i,r,s=t.length,a=this.chars.length;for(e=0;e<s;e+=1){for(i=0,r=!1;i<a;)this.chars[i].style===t[e].style&&this.chars[i].fFamily===t[e].fFamily&&this.chars[i].ch===t[e].ch&&(r=!0),i+=1;r||(this.chars.push(t[e]),a+=1)}}},addFonts:function(t,e){if(t){if(this.chars)return this.isLoaded=!0,void(this.fonts=t.list);if(!document.body)return this.isLoaded=!0,t.list.forEach((function(t){t.helper=a(t),t.cache={}})),void(this.fonts=t.list);var i,r=t.list,n=r.length,o=n;for(i=0;i<n;i+=1){var l,c,p=!0;if(r[i].loaded=!1,r[i].monoCase=s(r[i].fFamily,"monospace"),r[i].sansCase=s(r[i].fFamily,"sans-serif"),r[i].fPath){if("p"===r[i].fOrigin||3===r[i].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+r[i].fFamily+'"], style[f-origin="3"][f-family="'+r[i].fFamily+'"]')).length>0&&(p=!1),p){var h=createTag("style");h.setAttribute("f-forigin",r[i].fOrigin),h.setAttribute("f-origin",r[i].origin),h.setAttribute("f-family",r[i].fFamily),h.type="text/css",h.innerText="@font-face {font-family: "+r[i].fFamily+"; font-style: normal; src: url('"+r[i].fPath+"');}",e.appendChild(h)}}
vendor: 5,075 bytes, line 2
2else if("g"===r[i].fOrigin||1===r[i].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[i].fPath)&&(p=!1);if(p){var d=createTag("link");d.setAttribute("f-forigin",r[i].fOrigin),d.setAttribute("f-origin",r[i].origin),d.type="text/css",d.rel="stylesheet",d.href=r[i].fPath,document.body.appendChild(d)}}else if("t"===r[i].fOrigin||2===r[i].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),c=0;c<l.length;c+=1)r[i].fPath===l[c].src&&(p=!1);if(p){var f=createTag("link");f.setAttribute("f-forigin",r[i].fOrigin),f.setAttribute("f-origin",r[i].origin),f.setAttribute("rel","stylesheet"),f.setAttribute("href",r[i].fPath),e.appendChild(f)}}}else r[i].loaded=!0,o-=1;r[i].helper=a(r[i],e),r[i].cache={},this.fonts.push(r[i])}0===o?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(e,i,r){for(var s=0,a=this.chars.length;s<a;){if(this.chars[s].ch===e&&this.chars[s].style===i&&this.chars[s].fFamily===r)return this.chars[s];s+=1}return("string"==typeof e&&13!==e.charCodeAt(0)||!e)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",e,i,r)),t},getFontByName:function(t){for(var e=0,i=this.fonts.length;e<i;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]},measureText:function(t,e,i){var r=this.getFontByName(e),s=t.charCodeAt(0);if(!r.cache[s+1]){var a=r.helper;if(" "===t){var n=a.measureText("|"+t+"|"),o=a.measureText("||");r.cache[s+1]=(n-o)/100}else r.cache[s+1]=a.measureText(t)/100}return r.cache[s+1]*i},checkLoadedFonts:function(){var t,e,i,r=this.fonts.length,s=r;for(t=0;t<r;t+=1)this.fonts[t].loaded?s-=1:"n"===this.fonts[t].fOrigin||0===this.fonts[t].origin?this.fonts[t].loaded=!0:(e=this.fonts[t].monoCase.node,i=this.fonts[t].monoCase.w,e.offsetWidth!==i?(s-=1,this.fonts[t].loaded=!0):(e=this.fonts[t].sansCase.node,i=this.fonts[t].sansCase.w,e.offsetWidth!==i&&(s-=1,this.fonts[t].loaded=!0)),this.fonts[t].loaded&&(this.fonts[t].sansCase.parent.parentNode.removeChild(this.fonts[t].sansCase.parent),this.fonts[t].monoCase.parent.parentNode.removeChild(this.fonts[t].monoCase.parent)));0!==s&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}},n}();function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},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(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!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 t,e=this.renderableComponents.length;for(t=0;t<e;t+=1)this.renderableComponents[t].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=(blendModeEnums={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"},function(t){return blendModeEnums[t]||""}),blendModeEnums;function SliderEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function AngleEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function ColorEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,1,0,i)}function PointEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,1,0,i)}function LayerIndexEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function MaskIndexEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function CheckboxEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function NoValueEffect(){this.p={}}function EffectsManager(t,e){var i,r=t.ef||[];this.effectElements=[];var s,a=r.length;for(i=0;i<a;i+=1)s=new GroupEffect(r[i],e),this.effectElements.push(s)}function GroupEffect(t,e){this.init(t,e)}function BaseElement(){}function FrameElement(){}function FootageElement(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,
vendor: 8,434 bytes, line 2
2i)}function AudioElement(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,i),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=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}function TransformElement(){}function MaskElement(t,e,i){this.data=t,this.element=e,this.globalData=i,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var r,s,a=this.globalData.defs,n=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(n),this.solidPath="";var o,l,c,p,h,d,f=this.masksProperties,m=0,u=[],y=createElementID(),g="clipPath",v="clip-path";for(r=0;r<n;r+=1)if(("a"!==f[r].mode&&"n"!==f[r].mode||f[r].inv||100!==f[r].o.k||f[r].o.x)&&(g="mask",v="mask"),"s"!==f[r].mode&&"i"!==f[r].mode||0!==m?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),u.push(c)),s=createNS("path"),"n"===f[r].mode)this.viewData[r]={op:PropertyFactory.getProp(this.element,f[r].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,f[r],3),elem:s,lastPath:""},a.appendChild(s);else{var b;if(m+=1,s.setAttribute("fill","s"===f[r].mode?"#000000":"#ffffff"),s.setAttribute("clip-rule","nonzero"),0!==f[r].x.k?(g="mask",v="mask",d=PropertyFactory.getProp(this.element,f[r].x,0,null,this.element),b=createElementID(),(p=createNS("filter")).setAttribute("id",b),(h=createNS("feMorphology")).setAttribute("operator","erode"),h.setAttribute("in","SourceGraphic"),h.setAttribute("radius","0"),p.appendChild(h),a.appendChild(p),s.setAttribute("stroke","s"===f[r].mode?"#000000":"#ffffff")):(h=null,d=null),this.storedData[r]={elem:s,x:d,expan:h,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},"i"===f[r].mode){l=u.length;var w=createNS("g");for(o=0;o<l;o+=1)w.appendChild(u[o]);var E=createNS("mask");E.setAttribute("mask-type","alpha"),E.setAttribute("id",y+"_"+m),E.appendChild(s),a.appendChild(E),w.setAttribute("mask","url("+getLocationHref()+"#"+y+"_"+m+")"),u.length=0,u.push(w)}else u.push(s);f[r].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[r]={elem:s,lastPath:"",op:PropertyFactory.getProp(this.element,f[r].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,f[r],3),invRect:c},this.viewData[r].prop.k||this.drawPath(f[r],this.viewData[r].prop.v,this.viewData[r])}for(this.maskElement=createNS(g),n=u.length,r=0;r<n;r+=1)this.maskElement.appendChild(u[r]);m>0&&(this.maskElement.setAttribute("id",y),this.element.maskedElement.setAttribute(v,"url("+getLocationHref()+"#"+y+")"),a.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(t,e){var i;this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var r,s=this.data.ef.length,a=this.data.ef;for(i=0;i<s;i+=1){switch(r=null,a[i].ty){case 0:r=new SliderEffect(a[i],e,this);break;case 1:r=new AngleEffect(a[i],e,this);break;case 2:r=new ColorEffect(a[i],e,this);break;case 3:r=new PointEffect(a[i],e,this);break;case 4:case 7:r=new CheckboxEffect(a[i],e,this);break;case 10:r=new LayerIndexEffect(a[i],e,this);break;case 11:r=new MaskIndexEffect(a[i],e,this);break;case 5:r=new EffectsManager(a[i],e,this);break;default:r=new NoValueEffect(a[i],e,this)}r&&this.effectElements.push(r)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t<e;){if("n"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},initExpressions:function(){var t=getExpressionInterfaces();if(t){var e=t("layer"),i=t("effects"),r=t("shape"),s=t("text"),a=t("comp");this.layerInterface=e(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var n=i.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(n),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=s(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var t=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(t,e,i){this.globalData=e,this.comp=i,this.data=t,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(t,e){var i,r=this.dynamicProperties.length;for(i=0;i<r;i+=1)(e||this._isParent&&"transform"===this.dynamicProperties[i].propType)&&(this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},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 t=getExpressionInterfaces();if(t){var e=t("footage");this.layerInterface=e(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else{var e=this.tm.v;this._currentTime=e}this._volume=this.lv.v[0];var i=this._volume*this._volumeMultiplier;this._previousVolume!==i&&(this._previousVolume=i,this.audio.volume(i))},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(t){this.audio.rate(t)},AudioElement.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*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(t){var e,i,r=this.layers.length;for(this.completeLayers=!0,e=r-1;e>=0;e-=1)this.elements[e]||(i=this.layers[e]).ip-i.st<=t-this.layers[e].st&&i.op-i.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:default:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t)}
vendor: 5,070 bytes, line 2
2},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(t){var e;this.completeLayers=!1;var i,r=t.length,s=this.layers.length;for(e=0;e<r;e+=1)for(i=0;i<s;){if(this.layers[i].id===t[e].id){this.layers[i]=t[e];break}i+=1}},BaseRenderer.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(t,e,i){for(var r=this.elements,s=this.layers,a=0,n=s.length;a<n;)s[a].ind==e&&(r[a]&&!0!==r[a]?(i.push(r[a]),r[a].setAsParent(),void 0!==s[a].parent?this.buildElementParenting(t,s[a].parent,i):t.setHierarchy(i)):(this.buildItem(a),this.addPendingElement(t))),a+=1},BaseRenderer.prototype.addPendingElement=function(t){this.pendingElements.push(t)},BaseRenderer.prototype.searchExtraCompositions=function(t){var e,i=t.length;for(e=0;e<i;e+=1)if(t[e].xt){var r=this.createComp(t[e]);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}},BaseRenderer.prototype.getElementByPath=function(t){var e,i=t.shift();if("number"==typeof i)e=this.elements[i];else{var r,s=this.elements.length;for(r=0;r<s;r+=1)if(this.elements[r].data.nm===i){e=this.elements[r];break}}return 0===t.length?e:e.getElementByPath(t)},BaseRenderer.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new FontManager,this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),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=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}},TransformElement.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Matrix},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 t,e=this.finalTransform.mat,i=0,r=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;i<r;){if(this.hierarchy[i].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}i+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),i=0;i<r;i+=1)t=this.hierarchy[i].finalTransform.mProp.v.props,e.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])}},globalToLocal:function(t){var e=[];e.push(this.finalTransform);for(var i,r=!0,s=this.comp;r;)s.finalTransform?(s.data.hasMask&&e.splice(0,0,s.finalTransform),s=s.comp):r=!1;var a,n=e.length;for(i=0;i<n;i+=1)a=e[i].mat.applyToPointArray(0,0,0),t=[t[0]-a[0],t[1]-a[1],0];return t},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var e,i=this.element.finalTransform.mat,r=this.masksProperties.length;for(e=0;e<r;e+=1)if((this.viewData[e].prop._mdf||t)&&this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e]),(this.viewData[e].op._mdf||t)&&this.viewData[e].elem.setAttribute("fill-opacity",this.viewData[e].op.v),"n"!==this.masksProperties[e].mode&&(this.viewData[e].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[e].invRect.setAttribute("transform",i.getInverseMatrix().to2dCSS()),this.storedData[e].x&&(this.storedData[e].x._mdf||t))){var s=this.storedData[e].expan;this.storedData[e].x.v<0?("erode"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="erode",this.storedData[e].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[e].filterId+")")),s.setAttribute("radius",-this.storedData[e].x.v)):("dilate"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="dilate",this.storedData[e].elem.setAttribute("filter",null)),this.storedData[e].elem.setAttribute("stroke-width",2*this.storedData[e].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,(t+=" h-"+this.globalData.compSize.w)+" v-"+this.globalData.compSize.h+" "}
vendor: 4,404 bytes, line 2
2,MaskElement.prototype.drawPath=function(t,e,i){var r,s,a=" M"+e.v[0][0]+","+e.v[0][1];for(s=e._length,r=1;r<s;r+=1)a+=" C"+e.o[r-1][0]+","+e.o[r-1][1]+" "+e.i[r][0]+","+e.i[r][1]+" "+e.v[r][0]+","+e.v[r][1];if(e.c&&s>1&&(a+=" C"+e.o[r-1][0]+","+e.o[r-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),i.lastPath!==a){var n="";i.elem&&(e.c&&(n=t.inv?this.solidPath+a:a),i.elem.setAttribute("d",n)),i.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 t={createFilter:function(t,e){var i=createNS("filter");return i.setAttribute("id",t),!0!==e&&(i.setAttribute("filterUnits","objectBoundingBox"),i.setAttribute("x","0%"),i.setAttribute("y","0%"),i.setAttribute("width","100%"),i.setAttribute("height","100%")),i},createAlphaToLuminanceFilter:function(){var t=createNS("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1"),t}};return t}(),featureSupport=function(){var t={maskType:!0};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))&&(t.maskType=!1),t}(),registeredEffects={},idPrefix="filter_result_";function SVGEffects(t){var e,i,r="SourceGraphic",s=t.data.ef?t.data.ef.length:0,a=createElementID(),n=filtersFactory.createFilter(a,!0),o=0;for(this.filters=[],e=0;e<s;e+=1){i=null;var l=t.data.ef[e].ty;registeredEffects[l]&&(i=new(0,registeredEffects[l].effect)(n,t.effectsManager.effectElements[e],t,idPrefix+o,r),r=idPrefix+o,registeredEffects[l].countsAsEffect&&(o+=1)),i&&this.filters.push(i)}o&&(t.globalData.defs.appendChild(n),t.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+a+")")),this.filters.length&&t.addRenderableComponent(this)}function registerEffect(t,e,i){registeredEffects[t]={effect:e,countsAsEffect:i}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,i),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(t,e){this.elem=t,this.pos=e}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(t){var e,i=this.filters.length;for(e=0;e<i;e+=1)this.filters[e].renderFrame(t)},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 t=null;if(this.data.td){this.matteMasks={};var e=createNS("g");e.setAttribute("id",this.layerId),e.appendChild(this.layerElement),t=e,this.globalData.defs.appendChild(e)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=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 i=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 s=createElementID();if(i.setAttribute("id",s),i.appendChild(r),this.globalData.defs.appendChild(i),this.checkMasks()){var a=createNS("g");a.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")"),a.appendChild(this.layerElement),this.transformedElement=a,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},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.renderableEffe
vendor: 9,671 bytes, line 2
2ctsManager=new SVGEffects(this)},getMatte:function(t){if(!this.matteMasks[t]){var e,i,r,s,a=this.layerId+"_"+t;if(1===t||3===t){var n=createNS("mask");n.setAttribute("id",a),n.setAttribute("mask-type",3===t?"luminance":"alpha"),(r=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),n.appendChild(r),this.globalData.defs.appendChild(n),featureSupport.maskType||1!==t||(n.setAttribute("mask-type","luminance"),e=createElementID(),i=filtersFactory.createFilter(e),this.globalData.defs.appendChild(i),i.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(s=createNS("g")).appendChild(r),n.appendChild(s),s.setAttribute("filter","url("+getLocationHref()+"#"+e+")"))}else if(2===t){var o=createNS("mask");o.setAttribute("id",a),o.setAttribute("mask-type","alpha");var l=createNS("g");o.appendChild(l),e=createElementID(),i=filtersFactory.createFilter(e);var c=createNS("feComponentTransfer");c.setAttribute("in","SourceGraphic"),i.appendChild(c);var p=createNS("feFuncA");p.setAttribute("type","table"),p.setAttribute("tableValues","1.0 0.0"),c.appendChild(p),this.globalData.defs.appendChild(i);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("opacity","0"),l.setAttribute("filter","url("+getLocationHref()+"#"+e+")"),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"),i.appendChild(filtersFactory.createAlphaToLuminanceFilter()),s=createNS("g"),l.appendChild(h),s.appendChild(this.layerElement),l.appendChild(s)),this.globalData.defs.appendChild(o)}this.matteMasks[t]=a}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),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.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,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 t=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",t),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(t){var e,i=this.shapeModifiers.length;for(e=0;e<i;e+=1)this.shapeModifiers[e].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var e=this.shapeModifiers.length;0<e;)if(this.shapeModifiers[0].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,e=this.shapes.length;for(t=0;t<e;t+=1)this.shapes[t].sh.reset();for(t=(e=this.shapeModifiers.length)-1;t>=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,i=0,r=e.length;i<r;){if(e[i].elem===t)return e[i].pos;i+=1}return 0},addProcessedElement:function(t,e){for(var i=this.processedElements,r=i.length;r;)if(i[r-=1].elem===t)return void(i[r].pos=e);i.push(new ProcessedElement(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(t,e,i){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=i,this.lvl=e,this._isAnimated=!!i.k;for(var r=0,s=t.length;r<s;){if(t[r].mProps.dynamicProperties.length){this._isAnimated=!0;break}r+=1}}function SVGStyleData(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(t,e,i,r){var s;this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(e.length),this.renderer=i,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",e.length?e.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(r);var a,n=e.length||0;for(s=0;s<n;s+=1)a=PropertyFactory.getProp(t,e[s].v,0,0,this),this.k=a.k||this.k,this.dataProps[s]={n:e[s].n,p:a};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=i,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=i}function SVGNoStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=i}function GradientProperty(t,e,i){this.data=e,this.c=createTypedArray("uint8c",4*e.p);var r=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=createTypedArray("float32",r),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=r,this.initDynamicPropertyContainer(i),this.prop=PropertyFactory.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,i)}function SVGGradientStrokeStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.initGradientData(t,e,i),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(t,e,i){this.transform={mProps:t,op:e,container:i},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(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,i=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),e=0;e<i;e+=1)"o"!==this.dataProps[e].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(t,e){for(var i=0,r=this.o.length/2;i<r;){if(Math.abs(t[4*i]-t[4*e+2*i])>.01)return!1;i+=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 t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,i,r,s=4*this.data.p;for(e=0;e<s;e+=1)i=e%4==0?100:255,r=Math.round(this.prop.v[e]*i),this.c[e]!==r&&(this.c[e]=r,this._cmdf=!t);if(this.o.length)for(s=this.prop.v.length,e=4*this.data.p;e<s;e+=1)i=e%2==0?100:1,r=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==r&&(this.o[e-4*this.data.p]=r,this._omdf=!t);this._mdf=!t}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(t,e,
vendor: 10,243 bytes, line 2
2i){this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.s=PropertyFactory.getProp(t,e.s,1,null,this),this.e=PropertyFactory.getProp(t,e.e,1,null,this),this.h=PropertyFactory.getProp(t,e.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(t,e.a||{k:0},0,degToRads,this),this.g=new GradientProperty(t,e.g,this),this.style=i,this.stops=[],this.setGradientData(i.pElem,e),this.setGradientOpacity(e,i),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(t,e){var i=createElementID(),r=createNS(1===e.t?"linearGradient":"radialGradient");r.setAttribute("id",i),r.setAttribute("spreadMethod","pad"),r.setAttribute("gradientUnits","userSpaceOnUse");var s,a,n,o=[];for(n=4*e.g.p,a=0;a<n;a+=4)s=createNS("stop"),r.appendChild(s),o.push(s);t.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+i+")"),this.gf=r,this.cst=o},SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var i,r,s,a=createNS("mask"),n=createNS("path");a.appendChild(n);var o=createElementID(),l=createElementID();a.setAttribute("id",l);var c=createNS(1===t.t?"linearGradient":"radialGradient");c.setAttribute("id",o),c.setAttribute("spreadMethod","pad"),c.setAttribute("gradientUnits","userSpaceOnUse"),s=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var p=this.stops;for(r=4*t.g.p;r<s;r+=2)(i=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),c.appendChild(i),p.push(i);n.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+o+")"),"gs"===t.ty&&(n.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),n.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),1===t.lj&&n.setAttribute("stroke-miterlimit",t.ml)),this.of=c,this.ms=a,this.ost=p,this.maskId=l,e.msElem=n}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(t,e,i,r){if(0===e)return"";var s,a=t.o,n=t.i,o=t.v,l=" M"+r.applyToPointStringified(o[0][0],o[0][1]);for(s=1;s<e;s+=1)l+=" C"+r.applyToPointStringified(a[s-1][0],a[s-1][1])+" "+r.applyToPointStringified(n[s][0],n[s][1])+" "+r.applyToPointStringified(o[s][0],o[s][1]);return i&&e&&(l+=" C"+r.applyToPointStringified(a[s-1][0],a[s-1][1])+" "+r.applyToPointStringified(n[0][0],n[0][1])+" "+r.applyToPointStringified(o[0][0],o[0][1]),l+="z"),l},SVGElementsRenderer=function(){var t=new Matrix,e=new Matrix;function i(t,e,i){(i||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",e.transform.op.v),(i||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function r(){}function s(i,r,s){var a,n,o,l,c,p,h,d,f,m,u,y=r.styles.length,g=r.lvl;for(p=0;p<y;p+=1){if(l=r.sh._mdf||s,r.styles[p].lvl<g){for(d=e.reset(),m=g-r.styles[p].lvl,u=r.transformers.length-1;!l&&m>0;)l=r.transformers[u].mProps._mdf||l,m-=1,u-=1;if(l)for(m=g-r.styles[p].lvl,u=r.transformers.length-1;m>0;)f=r.transformers[u].mProps.v.props,d.transform(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8],f[9],f[10],f[11],f[12],f[13],f[14],f[15]),m-=1,u-=1}else d=t;if(n=(h=r.sh.paths)._length,l){for(o="",a=0;a<n;a+=1)(c=h.shapes[a])&&c._length&&(o+=buildShapeString(c,c._length,c.c,d));r.caches[p]=o}else o=r.caches[p];r.styles[p].d+=!0===i.hd?"":o,r.styles[p]._mdf=l||r.styles[p]._mdf}}function a(t,e,i){var r=e.style;(e.c._mdf||i)&&r.pElem.setAttribute("fill","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i)&&r.pElem.setAttribute("fill-opacity",e.o.v)}function n(t,e,i){o(t,e,i),l(0,e,i)}function o(t,e,i){var r,s,a,n,o,l=e.gf,c=e.g._hasOpacity,p=e.s.v,h=e.e.v;if(e.o._mdf||i){var d="gf"===t.ty?"fill-opacity":"stroke-opacity";e.style.pElem.setAttribute(d,e.o.v)}if(e.s._mdf||i){var f=1===t.t?"x1":"cx",m="x1"===f?"y1":"cy";l.setAttribute(f,p[0]),l.setAttribute(m,p[1]),c&&!e.g._collapsable&&(e.of.setAttribute(f,p[0]),e.of.setAttribute(m,p[1]))}if(e.g._cmdf||i){r=e.cst;var u=e.g.c;for(a=r.length,s=0;s<a;s+=1)(n=r[s]).setAttribute("offset",u[4*s]+"%"),n.setAttribute("stop-color","rgb("+u[4*s+1]+","+u[4*s+2]+","+u[4*s+3]+")")}if(c&&(e.g._omdf||i)){var y=e.g.o;for(a=(r=e.g._collapsable?e.cst:e.ost).length,s=0;s<a;s+=1)n=r[s],e.g._collapsable||n.setAttribute("offset",y[2*s]+"%"),n.setAttribute("stop-opacity",y[2*s+1])}if(1===t.t)(e.e._mdf||i)&&(l.setAttribute("x2",h[0]),l.setAttribute("y2",h[1]),c&&!e.g._collapsable&&(e.of.setAttribute("x2",h[0]),e.of.setAttribute("y2",h[1])));else if((e.s._mdf||e.e._mdf||i)&&(o=Math.sqrt(Math.pow(p[0]-h[0],2)+Math.pow(p[1]-h[1],2)),l.setAttribute("r",o),c&&!e.g._collapsable&&e.of.setAttribute("r",o)),e.e._mdf||e.h._mdf||e.a._mdf||i){o||(o=Math.sqrt(Math.pow(p[0]-h[0],2)+Math.pow(p[1]-h[1],2)));var g=Math.atan2(h[1]-p[1],h[0]-p[0]),v=e.h.v;v>=1?v=.99:v<=-1&&(v=-.99);var b=o*v,w=Math.cos(g+e.a.v)*b+p[0],E=Math.sin(g+e.a.v)*b+p[1];l.setAttribute("fx",w),l.setAttribute("fy",E),c&&!e.g._collapsable&&(e.of.setAttribute("fx",w),e.of.setAttribute("fy",E))}}function l(t,e,i){var r=e.style,s=e.d;s&&(s._mdf||i)&&s.dashStr&&(r.pElem.setAttribute("stroke-dasharray",s.dashStr),r.pElem.setAttribute("stroke-dashoffset",s.dashoffset[0])),e.c&&(e.c._mdf||i)&&r.pElem.setAttribute("stroke","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i)&&r.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||i)&&(r.pElem.setAttribute("stroke-width",e.w.v),r.msElem&&r.msElem.setAttribute("stroke-width",e.w.v))}return{createRenderFunction:function(t){switch(t.ty){case"fl":return a;case"gf":return o;case"gs":return n;case"st":return l;case"sh":case"el":case"rc":case"sr":return s;case"tr":return i;case"no":return r;default:return null}}}}();function SVGShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,i),this.prevViewData=[]}function LetterProps(t,e,i,r,s,a){this.o=t,this.sw=e,this.sc=i,this.fc=r,this.m=s,this.p=a,this._mdf={o:!0,sw:!!e,sc:!!i,fc:!!r,m:!0,p:!0}}function TextProperty(t,e){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=e,this.elem=t,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 t,e,i,r,s=this.shapes.length,a=this.stylesList.length,n=[],o=!1;for(i=0;i<a;i+=1){for(r=this.stylesList[i],o=!1,n.length=0,t=0;t<s;t+=1)-1!==(e=this.shapes[t]).styles.indexOf(r)&&(n.push(e),o=e._isAnimated||o);n.length>1&&o&&this.setShapesAsAnimated(n)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(t,e){var i,r=new SVGStyleData(t,e),s=r.pElem;return"st"===t.ty?i=new SVGStrokeStyleData(this,t,r):"fl"===t.ty?i=new SVGFillStyleData(this,t,r):"gf"===t.ty||"gs"===t.ty?(i=new("gf"===t.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,t,r),this.globalData.defs.appendChild(i.gf),i.maskId&&(this.globalData.defs.appendChild(i.ms),this.globalData.defs.appendChild(i.of),s.setAttribute("mask","url("+getLocationHref()+"#"+i.maskId+")"))):"no"===t.ty&&(i=new SVGNoStyleData(this,t,r)),"st"!==t.ty&&"gs"!==t.ty||(s.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),s.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),s.setAttribute("fill-opacity","0"),1===t.lj&&s.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&s.setAttribute("fill-rule","evenodd"),t.ln&&s.setAttribute("id",t.ln),t.cl&&s.setAttribute("class",t.cl),t.bm&&(s.style["mix-blend-mode"]=getBlendMode(t.bm)),this.stylesList.push(r),this.addToAnimatedContents(t,i),i},SVGShapeElement.prototype.createGroupElement=function(t){var e=new ShapeGroupData;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=getBlendMode(t.bm)),e},SVGShapeElement.prototype.createTransformElement=function(t,e){var i=TransformPropertyFactory.getTransformProperty(this,t,this),r=new SVGTransformData(i,i.o,e);return this.addToAnimatedContents(t,r),r},SVGShapeElement.prototype.createShapeElement=function(t,e,i){var r=4;"rc"===t.ty?r=5:"el"===t.ty?r=6:"sr"===t.ty&&(r=7);var s=new SVGShapeData(e,i,ShapePropertyFactory.getShapeProp(this,t,r,this));return this.shapes.push(s),this.addShapeToModifiers(s),this.addToAnimatedContents(t,s),s},SVGShapeElement.prototype.addToAnimatedContents=function(t,e){for(var i=0,r=this.animatedContents.length;i<r;){if(this.animatedContents[i].element===e)return;i+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:e,data:t})},SVGShapeElement.prototype.setElementStyles=function(t){var e,i=t.styles,r=this.stylesList.length;for(e=0;e<r;e+=1)this.stylesList[e].closed||i.push(this.stylesList[e])},SVGShapeElement.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()}
vendor: 5,978 bytes, line 2
2,SVGShapeElement.prototype.searchShapes=function(t,e,i,r,s,a,n){var o,l,c,p,h,d,f=[].concat(a),m=t.length-1,u=[],y=[];for(o=m;o>=0;o-=1){if((d=this.searchProcessedElement(t[o]))?e[o]=i[d-1]:t[o]._render=n,"fl"===t[o].ty||"st"===t[o].ty||"gf"===t[o].ty||"gs"===t[o].ty||"no"===t[o].ty)d?e[o].style.closed=!1:e[o]=this.createStyleElement(t[o],s),t[o]._render&&e[o].style.pElem.parentNode!==r&&r.appendChild(e[o].style.pElem),u.push(e[o].style);else if("gr"===t[o].ty){if(d)for(c=e[o].it.length,l=0;l<c;l+=1)e[o].prevViewData[l]=e[o].it[l];else e[o]=this.createGroupElement(t[o]);this.searchShapes(t[o].it,e[o].it,e[o].prevViewData,e[o].gr,s+1,f,n),t[o]._render&&e[o].gr.parentNode!==r&&r.appendChild(e[o].gr)}else"tr"===t[o].ty?(d||(e[o]=this.createTransformElement(t[o],r)),p=e[o].transform,f.push(p)):"sh"===t[o].ty||"rc"===t[o].ty||"el"===t[o].ty||"sr"===t[o].ty?(d||(e[o]=this.createShapeElement(t[o],f,s)),this.setElementStyles(e[o])):"tm"===t[o].ty||"rd"===t[o].ty||"ms"===t[o].ty||"pb"===t[o].ty||"zz"===t[o].ty||"op"===t[o].ty?(d?(h=e[o]).closed=!1:((h=ShapeModifiers.getModifier(t[o].ty)).init(this,t[o]),e[o]=h,this.shapeModifiers.push(h)),y.push(h)):"rp"===t[o].ty&&(d?(h=e[o]).closed=!0:(h=ShapeModifiers.getModifier(t[o].ty),e[o]=h,h.init(this,t,o,e),this.shapeModifiers.push(h),n=!1),y.push(h));this.addProcessedElement(t[o],o+1)}for(m=u.length,o=0;o<m;o+=1)u[o].closed=!0;for(m=y.length,o=0;o<m;o+=1)y[o].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var t;this.renderModifiers();var e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<e;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var t,e,i=this.animatedContents.length;for(t=0;t<i;t+=1)e=this.animatedContents[t],(this._isFirstFrame||e.element._isAnimated)&&!0!==e.data&&e.fn(e.data,e.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(t,e,i,r,s,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 n=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,n=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,n=!0),this.sc!==i&&(this.sc=i,this._mdf.sc=!0,n=!0),this.fc!==r&&(this.fc=r,this._mdf.fc=!0,n=!0),this.m!==s&&(this.m=s,this._mdf.m=!0,n=!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,n=!0),n},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},TextProperty.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,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(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,i=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var r;this.lock=!0,this._mdf=!1;var s=this.effectsSequence.length,a=t||this.data.d.k[this.keysIndex].s;for(r=0;r<s;r+=1)a=i!==this.keysIndex?this.effectsSequence[r](a,a.t):this.effectsSequence[r](this.currentData,a.t);e!==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 t=this.data.d.k,e=this.elem.comp.renderedFrame,i=0,r=t.length;i<=r-1&&!(i===r-1||t[i+1].t>e);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e,i,r=[],s=0,a=t.length,n=!1;s<a;)e=t.charCodeAt(s),FontManager.isCombinedCharacter(e)?r[r.length-1]+=t.charAt(s):e>=55296&&e<=56319?(i=t.charCodeAt(s+1))>=56320&&i<=57343?(n||FontManager.isModifier(e,i)?(r[r.length-1]+=t.substr(s,2),n=!1):r.push(t.substr(s,2)),s+=1):r.push(t.charAt(s)):e>56319?(i=t.charCodeAt(s+1),FontManager.isZeroWidthJoiner(e,i)?(n=!0,r[r.length-1]+=t.substr(s,2),s+=1):r.push(t.charAt(s))):FontManager.isZeroWidthJoiner(e)?(r[r.length-1]+=t.charAt(s),n=!0):r.push(t.charAt(s)),s+=1;return r},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e,i,r,s,a,n,o,l=this.elem.globalData.fontManager,c=this.data,p=[],h=0,d=c.m.g,f=0,m=0,u=0,y=[],g=0,v=0,b=l.getFontByName(t.f),w=0,E=getFontProperties(b);t.fWeight=E.weight,t.fStyle=E.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),i=t.finalText.length,t.finalLineHeight=t.lh;var _,T=t.tr/1e3*t.finalSize;if(t.sz)for(var S,x,I=!0,P=t.sz[0],O=t.sz[1];I;){S=0,g=0,i=(x=this.buildFinalText(t.t)).length,T=t.tr/1e3*t.finalSize;var A=-1;for(e=0;e<i;e+=1)_=x[e].charCodeAt(0),r=!1," "===x[e]?A=e:13!==_&&3!==_||(g=0,r=!0,S+=t.finalLineHeight||1.2*t.finalSize),l.chars?(o=l.getCharData(x[e],b.fStyle,b.fFamily),w=r?0:o.w*t.finalSize/100):w=l.measureText(x[e],t.f,t.finalSize),g+w>P&&" "!==x[e]?(-1===A?i+=1:e=A,S+=t.finalLineHeight||1.2*t.finalSize,x.splice(e,A===e?1:0,"\r"),A=-1,g=0):(g+=w,g+=T);S+=b.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&O<S?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=x,i=t.finalText.length,I=!1)}g=-T,w=0;
vendor: 11,465 bytes, line 2
2var k,C=0;for(e=0;e<i;e+=1)if(r=!1,13===(_=(k=t.finalText[e]).charCodeAt(0))||3===_?(C=0,y.push(g),v=g>v?g:v,g=-2*T,s="",r=!0,u+=1):s=k,l.chars?(o=l.getCharData(k,b.fStyle,l.getFontByName(t.f).fFamily),w=r?0:o.w*t.finalSize/100):w=l.measureText(s,t.f,t.finalSize)," "===k?C+=w+T:(g+=w+T+C,C=0),p.push({l:w,an:w,add:f,n:r,anIndexes:[],val:s,line:u,animatorJustifyOffset:0}),2==d){if(f+=w,""===s||" "===s||e===i-1){for(""!==s&&" "!==s||(f-=w);m<=e;)p[m].an=f,p[m].ind=h,p[m].extra=w,m+=1;h+=1,f=0}}else if(3==d){if(f+=w,""===s||e===i-1){for(""===s&&(f-=w);m<=e;)p[m].an=f,p[m].ind=h,p[m].extra=w,m+=1;f=0,h+=1}}else p[h].ind=h,p[h].extra=0,h+=1;if(t.l=p,v=g>v?g:v,y.push(g),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=v,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=y;var D,M,N,R,F=c.a;n=F.length;var j=[];for(a=0;a<n;a+=1){for((D=F[a]).a.sc&&(t.strokeColorAnim=!0),D.a.sw&&(t.strokeWidthAnim=!0),(D.a.fc||D.a.fh||D.a.fs||D.a.fb)&&(t.fillColorAnim=!0),R=0,N=D.s.b,e=0;e<i;e+=1)(M=p[e]).anIndexes[a]=R,(1==N&&""!==M.val||2==N&&""!==M.val&&" "!==M.val||3==N&&(M.n||" "==M.val||e==i-1)||4==N&&(M.n||e==i-1))&&(1===D.s.rn&&j.push(R),R+=1);c.a[a].s.totalChars=R;var L,B=-1;if(1===D.s.rn)for(e=0;e<i;e+=1)B!=(M=p[e]).anIndexes[a]&&(B=M.anIndexes[a],L=j.splice(Math.floor(Math.random()*j.length),1)[0]),M.anIndexes[a]=L}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=b.ascent*t.finalSize/100},TextProperty.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var i=this.copyData({},this.data.d.k[e].s);i=this.copyData(i,t),this.data.d.k[e].s=i,this.recalculate(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},TextProperty.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var t=Math.max,e=Math.min,i=Math.floor;function r(t,e){this._currentTextLength=-1,this.k=!1,this.data=e,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=PropertyFactory.getProp(t,e.s||{k:0},0,0,this),this.e="e"in e?PropertyFactory.getProp(t,e.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(t,e.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(t,e.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(t,e.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(t,e.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(t,e.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 s=0,a=0,n=1,o=1;this.ne.v>0?s=this.ne.v/100:a=-this.ne.v/100,this.xe.v>0?n=1-this.xe.v/100:o=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(s,a,n,o).get,c=0,p=this.finalS,h=this.finalE,d=this.data.sh;if(2===d)c=l(c=h===p?r>=h?1:0:t(0,e(.5/(h-p)+(r-p)/(h-p),1)));else if(3===d)c=l(c=h===p?r>=h?0:1:1-t(0,e(.5/(h-p)+(r-p)/(h-p),1)));else if(4===d)h===p?c=0:(c=t(0,e(.5/(h-p)+(r-p)/(h-p),1)))<.5?c*=2:c=1-2*(c-.5),c=l(c);else if(5===d){if(h===p)c=0;else{var f=h-p,m=-f/2+(r=e(t(0,r+.5-p),h-p)),u=f/2;c=Math.sqrt(1-m*m/(u*u))}c=l(c)}else 6===d?(h===p?c=0:(r=e(t(0,r+.5-p),h-p),c=(1+Math.cos(Math.PI+2*Math.PI*r/(h-p)))/2),c=l(c)):(r>=i(p)&&(c=t(0,e(r-p<0?e(h,1)-(p-r):h-r,1))),c=l(c));if(100!==this.sm.v){var y=.01*this.sm.v;0===y&&(y=1e-8);var g=.5-.5*y;c<g?c=0:(c=(c-g)/y)>1&&(c=1)}return c*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,i=this.o.v/e,r=this.s.v/e+i,s=this.e.v/e+i;if(r>s){var a=r;r=s,s=a}this.finalS=r,this.finalE=s}},extendPrototype([DynamicPropertyContainer],r),{getTextSelectorProp:function(t,e,i){return new r(t,e,i)}}}();function TextAnimatorDataProperty(t,e,i){var r={propType:!1},s=PropertyFactory.getProp,a=e.a;this.a={r:a.r?s(t,a.r,0,degToRads,i):r,rx:a.rx?s(t,a.rx,0,degToRads,i):r,ry:a.ry?s(t,a.ry,0,degToRads,i):r,sk:a.sk?s(t,a.sk,0,degToRads,i):r,sa:a.sa?s(t,a.sa,0,degToRads,i):r,s:a.s?s(t,a.s,1,.01,i):r,a:a.a?s(t,a.a,1,0,i):r,o:a.o?s(t,a.o,0,.01,i):r,p:a.p?s(t,a.p,1,0,i):r,sw:a.sw?s(t,a.sw,0,0,i):r,sc:a.sc?s(t,a.sc,1,0,i):r,fc:a.fc?s(t,a.fc,1,0,i):r,fh:a.fh?s(t,a.fh,0,0,i):r,fs:a.fs?s(t,a.fs,0,.01,i):r,fb:a.fb?s(t,a.fb,0,.01,i):r,t:a.t?s(t,a.t,0,0,i):r},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,i),this.s.t=e.s.t}function TextAnimatorProperty(t,e,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=i,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var t,e,i=this._textData.a.length,r=PropertyFactory.getProp;for(t=0;t<i;t+=1)e=this._textData.a[t],this._animatorsData[t]=new TextAnimatorDataProperty(this._elem,e,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(t,e){if(this.lettersChangedFlag=e,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var i,r,s,a,n,o,l,c,p,h,d,f,m,u,y,g,v,b,w,E=this._moreOptions.alignment.v,_=this._animatorsData,T=this._textData,S=this.mHelper,x=this._renderType,I=this.renderedLetters.length,P=t.l;if(this._hasMaskedPath){if(w=this._pathData.m,!this._pathData.n||this._pathData._mdf){var O,A=w.v;for(this._pathData.r.v&&(A=A.reverse()),n={tLength:0,segments:[]},a=A._length-1,g=0,s=0;s<a;s+=1)O=bez.buildBezierData(A.v[s],A.v[s+1],[A.o[s][0]-A.v[s][0],A.o[s][1]-A.v[s][1]],[A.i[s+1][0]-A.v[s+1][0],A.i[s+1][1]-A.v[s+1][1]]),n.tLength+=O.segmentLength,n.segments.push(O),g+=O.segmentLength;s=a,w.v.c&&(O=bez.buildBezierData(A.v[s],A.v[0],[A.o[s][0]-A.v[s][0],A.o[s][1]-A.v[s][1]],[A.i[0][0]-A.v[0][0],A.i[0][1]-A.v[0][1]]),n.tLength+=O.segmentLength,n.segments.push(O),g+=O.segmentLength),this._pathData.pi=n}if(n=this._pathData.pi,o=this._pathData.f.v,d=0,h=1,c=0,p=!0,u=n.segments,o<0&&w.v.c)for(n.tLength<Math.abs(o)&&(o=-Math.abs(o)%n.tLength),h=(m=u[d=u.length-1].points).length-1;o<0;)o+=m[h].partialLength,(h-=1)<0&&(h=(m=u[d-=1].points).length-1);f=(m=u[d].points)[h-1],y=(l=m[h]).partialLength}a=P.length,i=0,r=0;var k,C,D,M,N,R=1.2*t.finalSize*.714,F=!0;D=_.length;var j,L,B,V,z,G,U,q,$,H,Y,W,K=-1,Q=o,J=d,X=h,Z=-1,tt="",et=this.defaultPropsArray;if(2===t.j||1===t.j){var nt=0,rt=0,it=2===t.j?-.5:-1,at=0,st=!0;for(s=0;s<a;s+=1)if(P[s].n){for(nt&&(nt+=rt);at<s;)P[at].animatorJustifyOffset=nt,at+=1;nt=0,st=!0}else{for(C=0;C<D;C+=1)(k=_[C].a).t.propType&&(st&&2===t.j&&(rt+=k.t.v*it),(N=_[C].s.getMult(P[s].anIndexes[C],T.a[C].s.totalChars)).length?nt+=k.t.v*N[0]*it:nt+=k.t.v*N*it);st=!1}for(nt&&(nt+=rt);at<s;)P[at].animatorJustifyOffset=nt,at+=1}for(s=0;s<a;s+=1){if(S.reset(),V=1,P[s].n)i=0,r+=t.yOffset,r+=F?1:0,o=Q,F=!1,this._hasMaskedPath&&(h=X,f=(m=u[d=J].points)[h-1],y=(l=m[h]).partialLength,c=0),tt="",Y="",$="",W="",et=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Z!==P[s].line){switch(t.j){case 1:o+=g-t.lineWidths[P[s].line];break;case 2:o+=(g-t.lineWidths[P[s].line])/2}Z=P[s].line}K!==P[s].ind&&(P[K]&&(o+=P[K].extra),o+=P[s].an/2,K=P[s].ind),o+=E[0]*P[s].an*.005;var ot=0;for(C=0;C<D;C+=1)(k=_[C].a).p.propType&&((N=_[C].s.getMult(P[s].anIndexes[C],T.a[C].s.totalChars)).length?ot+=k.p.v[0]*N[0]:ot+=k.p.v[0]*N),k.a.propType&&((N=_[C].s.getMult(P[s].anIndexes[C],T.a[C].s.totalChars)).length?ot+=k.a.v[0]*N[0]:ot+=k.a.v[0]*N);for(p=!0,this._pathData.a.v&&(o=.5*P[0].an+(g-this._pathData.f.v-.5*P[0].an-.5*P[P.length-1].an)*K/(a-1),o+=this._pathData.f.v);p;)c+y>=o+ot||!m?(v=(o+ot-c)/l.partialLength,L=f.point[0]+(l.point[0]-f.point[0])*v,B=f.point[1]+(l.point[1]-f.point[1])*v,S.translate(-E[0]*P[s].an*.005,-E[1]*R*.01),p=!1):m&&(c+=l.partialLength,(h+=1)>=m.length&&(h=0,u[d+=1]?m=u[d].points:w.v.c?(h=0,m=u[d=0].points):(c-=l.partialLength,m=null)),m&&(f=l,y=(l=m[h]).partialLength));j=P[s].an/2-P[s].add,S.translate(-j,0,0)}else j=P[s].an/2-P[s].add,S.translate(-j,0,0),S.translate(-E[0]*P[s].an*.005,-E[1]*R*.01,0);for(C=0;C<D;C+=1)(k=_[C].a).t.propType&&(N=_[C].s.getMult(P[s].anIndexes[C],T.a[C].s.totalChars),0===i&&0===t.j||(this._hasMaskedPath?N.length?o+=k.t.v*N[0]:o+=k.t.v*N:N.length?i+=k.t.v*N[0]:i+=k.t.v*N));for(t.strokeWidthAnim&&(G=t.sw||0),t.strokeColorAnim&&(z=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(U=[t.fc[0],t.fc[1],t.fc[2]]),C=0;C<D;C+=1)(k=_[C].a).a.propType&&((N=_[C].s.getMult(P[s].anIndexes[C],T.a[C].s.totalChars)).length?S.translate(-k.a.v[0]*N[0],-k.a.v[1]*N[1],k.a.v[2]*N[2]):S.translate(-k.a.v[0]*N,-k.a.v[1]*N,k.a.v[2]*N));for(C=0;C<D;C+=1)(k=_[C].a).s.propType&&((N=_[C].s.getMult(P[s].anIndexes[C],T.a[C].s.totalChars)).length?S.scale(1+(k.s.v[0]-1)*N[0],1+(k.s.v[1]-1)*N[1],1):S.scale(1+(k.s.v[0]-1)*N,1+(k.s.v[1]-1)*N,1));for(C=0;C<D;C+=1){if(k=_[C].a,N=_[C].s.getMult(P[s].anIndexes[C],T.a[C].s.totalChars),k.sk.propType&&(N.length?S.skewFromAxis(-k.sk.v*N[0],k.sa.v*N[1]):S.skewFromAxis(-k.sk.v*N,k.sa.v*N)),k.r.propType&&(N.length?S.rotateZ(-k.r.v*N[2]):S.rotateZ(-k.r.v*N)),k.ry.propType&&(N.length?S.rotateY(k.ry.v*N[1]):S.rotateY(k.ry.v*N)),k.rx.propType&&(N.length?S.rotateX(k.rx.v*N[0]):S.rotateX(k.rx.v*N)),k.o.propType&&(N.length?V+=(k.o.v*N[0]-V)*N[0]:V+=(k.o.v*N-V)*N),t.strokeWidthAnim&&k.sw.propType&&(N.length?G+=k.sw.v*N[0]:G+=k.sw.v*N),t.strokeColorAnim&&k.sc.propType)for(q=0;q<3;q+=1)N.length?z[q]+=(k.sc.v[q]-z[q])*N[0]:z[q]+=(k.sc.v[q]-z[q])*N;if(t.fillColorAnim&&t.fc){if(k.fc.propType)for(q=0;q<3;q+=1)N.length?U[q]+=(k.fc.v[q]-U[q])*N[0]:U[q]+=(k.fc.v[q]-U[q])*N;k.fh.propType&&(U=N.length?addHueToRGB(U,k.fh.v*N[0]):addHueToRGB(U,k.fh.v*N)),k.fs.propType&&(U=N.length?addSaturationToRGB(U,k.fs.v*N[0]):addSaturationToRGB(U,k.fs.v*N)),k.fb.propType&&(U=N.length?addBrightnessToRGB(U,k.fb.v*N[0]):addBrightnessToRGB(U,k.fb.v*N))}}for(C=0;C<D;C+=1)(k=_[C].a).p.propType&&(N=_[C].s.getMult(P[s].anIndexes[C],T.a[C].s.totalChars),this._hasMaskedPath?N.length?S.translate(0,k.p.v[1]*N[0],-k.p.v[2]*N[1]):S.translate(0,k.p.v[1]*N,-k.p.v[2]*N):N.length?S.translate(k.p.v[0]*N[0],k.p.v[1]*N[1],-k.p.v[2]*N[2]):S.translate(k.p.v[0]*N,k.p.v[1]*N,-k.p.v[2]*N));if(t.strokeWidthAnim&&($=G<0?0:G),t.strokeColorAnim&&(H="rgb("+Math.round(255*z[0])+","+Math.round(255*z[1])+","+Math.round(255*z[2])+")"),t.fillColorAnim&&t.fc&&(Y="rgb("+Math.round(255*U[0])+","+Math.round(255*U[1])+","+Math.round(255*U[2])+")"),this._hasMaskedPath){if(S.translate(0,-t.ls),S.translate(0,E[1]
vendor: 6,199 bytes, line 2
2*R*.01+r,0),this._pathData.p.v){b=(l.point[1]-f.point[1])/(l.point[0]-f.point[0]);var lt=180*Math.atan(b)/Math.PI;l.point[0]<f.point[0]&&(lt+=180),S.rotate(-lt*Math.PI/180)}S.translate(L,B,0),o-=E[0]*P[s].an*.005,P[s+1]&&K!==P[s+1].ind&&(o+=P[s].an/2,o+=.001*t.tr*t.finalSize)}else{switch(S.translate(i,r,0),t.ps&&S.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:S.translate(P[s].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[P[s].line]),0,0);break;case 2:S.translate(P[s].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[P[s].line])/2,0,0)}S.translate(0,-t.ls),S.translate(j,0,0),S.translate(E[0]*P[s].an*.005,E[1]*R*.01,0),i+=P[s].l+.001*t.tr*t.finalSize}"html"===x?tt=S.toCSS():"svg"===x?tt=S.to2dCSS():et=[S.props[0],S.props[1],S.props[2],S.props[3],S.props[4],S.props[5],S.props[6],S.props[7],S.props[8],S.props[9],S.props[10],S.props[11],S.props[12],S.props[13],S.props[14],S.props[15]],W=V}I<=s?(M=new LetterProps(W,$,H,Y,tt,et),this.renderedLetters.push(M),I+=1,this.lettersChangedFlag=!0):(M=this.renderedLetters[s],this.lettersChangedFlag=M.update(W,$,H,Y,tt,et)||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(t,e,i){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,i),this.textProperty=new TextProperty(this,t.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(t.t,this.renderType,this),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},ITextElement.prototype.createPathShape=function(t,e){var i,r,s=e.length,a="";for(i=0;i<s;i+=1)"sh"===e[i].ty&&(r=e[i].ks.k,a+=buildShapeString(r,r.i.length,!0,t));return a},ITextElement.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},ITextElement.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},ITextElement.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},ITextElement.prototype.applyTextPropertiesToMatrix=function(t,e,i,r,s){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i])/2,0,0)}e.translate(r,s,0)},ITextElement.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){};var emptyShapeData={shapes:[]};function SVGTextLottieElement(t,e,i){this.textSpans=[],this.renderType="svg",this.initElement(t,e,i)}function ISolidElement(t,e,i){this.initElement(t,e,i)}function NullElement(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initFrame(),this.initTransform(t,e,i),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(t,e,i){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function SVGRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var i="";if(e&&e.title){var r=createNS("title"),s=createElementID();r.setAttribute("id",s),r.textContent=e.title,this.svgElement.appendChild(r),i+=s}if(e&&e.description){var a=createNS("desc"),n=createElementID();a.setAttribute("id",n),a.textContent=e.description,this.svgElement.appendChild(a),i+=" "+n}i&&this.svgElement.setAttribute("aria-labelledby",i);var o=createNS("defs");this.svgElement.appendChild(o);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!(e&&!1===e.hideOnTransparent),viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"},width:e&&e.width,height:e&&e.height,runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:o,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function CVContextData(){var t;for(this.saved=[],this.cArrPos=0,this.cTr=new Matrix,this.cO=1,this.savedOp=createTypedArray("float32",15),t=0;t<15;t+=1)this.saved[t]=createTypedArray("float32",16);this._length=15}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}function CVEffects(){}function CVMaskElement(t,e){var i;this.data=t,this.element=e,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var r=this.masksProperties.length,s=!1;for(i=0;i<r;i+=1)"n"!==this.masksProperties[i].mode&&(s=!0),this.viewData[i]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[i],3);this.hasMasks=s,s&&this.element.addRenderableComponent(this)}function CVBaseElement(){}
vendor: 3,022 bytes, line 2
2function CVShapeData(t,e,i,r){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var s,a=4;"rc"===e.ty?a=5:"el"===e.ty?a=6:"sr"===e.ty&&(a=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,a,t);var n,o=i.length;for(s=0;s<o;s+=1)i[s].closed||(n={transforms:r.addTransformSequence(i[s].transforms),trNodes:[]},this.styledShapes.push(n),i[s].elements.push(n))}function CVShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(t,e,i)}function CVTextElement(t,e,i){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(t,e,i)}function CVImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.img=e.imageLoader.getAsset(this.assetData),this.initElement(t,e,i)}function CVSolidElement(t,e,i){this.initElement(t,e,i)}function CanvasRendererBase(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||void 0===e.clearCanvas||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||""},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.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=new Matrix,this.completeLayers=!1,this.rendererType="canvas"}function CVCompElement(t,e,i){this.completeLayers=!1,this.layers=t.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function CanvasRenderer(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||void 0===e.clearCanvas||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||"",runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.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,395 bytes, line 2
2w Matrix,this.completeLayers=!1,this.rendererType="canvas"}function HBaseElement(){}function HSolidElement(t,e,i){this.initElement(t,e,i)}function HShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(t,e,i),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(t,e,i){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(t,e,i)}function HCameraElement(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initHierarchy();var r=PropertyFactory.getProp;if(this.pe=r(this,t.pe,0,0,this),t.ks.p.s?(this.px=r(this,t.ks.p.x,1,0,this),this.py=r(this,t.ks.p.y,1,0,this),this.pz=r(this,t.ks.p.z,1,0,this)):this.p=r(this,t.ks.p,1,0,this),t.ks.a&&(this.a=r(this,t.ks.a,1,0,this)),t.ks.or.k.length&&t.ks.or.k[0].to){var s,a=t.ks.or.k.length;for(s=0;s<a;s+=1)t.ks.or.k[s].to=null,t.ks.or.k[s].ti=null}this.or=r(this,t.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=r(this,t.ks.rx,0,degToRads,this),this.ry=r(this,t.ks.ry,0,degToRads,this),this.rz=r(this,t.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,i)}function HybridRendererBase(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.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(t,e,i){this.layers=t.layers,this.supports3d=!t.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function HybridRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"},runExpressions:!e||void 0===e.runExpressions||e.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"}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(t){for(var e=0,i=t.length,r=[],s="";e<i;)t[e]===String.fromCharCode(13)||t[e]===String.fromCharCode(3)?(r.push(s),s=""):s+=t[e],e+=1;return r.push(s),r},SVGTextLottieElement.prototype.buildShapeData=function(t,e){if(t.shapes&&t.shapes.length){var i=t.shapes[0];if(i.it){var r=i.it[i.it.length-1];r.s&&(r.s.k[0]=e,r.s.k[1]=e)}}return t},SVGTextLottieElement.prototype.buildNewText=function(){var t,e;this.addDynamicProperty(this);var i=this.textProperty.currentData;this.renderedLetters=createSizedArray(i?i.l.length:0),i.fc?this.layerElement.setAttribute("fill",this.buildColor(i.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),i.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(i.sc)),this.layerElement.setAttribute("stroke-width",i.sw)),this.layerElement.setAttribute("font-size",i.finalSize);var r=this.globalData.fontManager.getFontByName(i.f);
vendor: 5,721 bytes, line 2
2if(r.fClass)this.layerElement.setAttribute("class",r.fClass);else{this.layerElement.setAttribute("font-family",r.fFamily);var s=i.fWeight,a=i.fStyle;this.layerElement.setAttribute("font-style",a),this.layerElement.setAttribute("font-weight",s)}this.layerElement.setAttribute("aria-label",i.t);var n,o=i.l||[],l=!!this.globalData.fontManager.chars;e=o.length;var c=this.mHelper,p=this.data.singleShape,h=0,d=0,f=!0,m=.001*i.tr*i.finalSize;if(!p||l||i.sz){var u,y=this.textSpans.length;for(t=0;t<e;t+=1){if(this.textSpans[t]||(this.textSpans[t]={span:null,childSpan:null,glyph:null}),!l||!p||0===t){if(n=y>t?this.textSpans[t].span:createNS(l?"g":"text"),y<=t){if(n.setAttribute("stroke-linecap","butt"),n.setAttribute("stroke-linejoin","round"),n.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=n,l){var g=createNS("g");n.appendChild(g),this.textSpans[t].childSpan=g}this.textSpans[t].span=n,this.layerElement.appendChild(n)}n.style.display="inherit"}if(c.reset(),p&&(o[t].n&&(h=-m,d+=i.yOffset,d+=f?1:0,f=!1),this.applyTextPropertiesToMatrix(i,c,o[t].line,h,d),h+=o[t].l||0,h+=m),l){var v;if(1===(u=this.globalData.fontManager.getCharData(i.finalText[t],r.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily)).t)v=new SVGCompElement(u.data,this.globalData,this);else{var b=emptyShapeData;u.data&&u.data.shapes&&(b=this.buildShapeData(u.data,i.finalSize)),v=new SVGShapeElement(b,this.globalData,this)}if(this.textSpans[t].glyph){var w=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(w.layerElement),w.destroy()}this.textSpans[t].glyph=v,v._debug=!0,v.prepareFrame(0),v.renderFrame(),this.textSpans[t].childSpan.appendChild(v.layerElement),1===u.t&&this.textSpans[t].childSpan.setAttribute("transform","scale("+i.finalSize/100+","+i.finalSize/100+")")}else p&&n.setAttribute("transform","translate("+c.props[12]+","+c.props[13]+")"),n.textContent=o[t].val,n.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}p&&n&&n.setAttribute("d","")}else{var E=this.textContainer,_="start";switch(i.j){case 1:_="end";break;case 2:_="middle";break;default:_="start"}E.setAttribute("text-anchor",_),E.setAttribute("letter-spacing",m);var T=this.buildTextContents(i.finalText);for(e=T.length,d=i.ps?i.ps[1]+i.ascent:0,t=0;t<e;t+=1)(n=this.textSpans[t].span||createNS("tspan")).textContent=T[t],n.setAttribute("x",0),n.setAttribute("y",d),n.style.display="inherit",E.appendChild(n),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=n,d+=i.finalLineHeight;this.layerElement.appendChild(E)}for(;t<this.textSpans.length;)this.textSpans[t].span.style.display="none",t+=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 t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var t,e,i=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<i;t+=1)(e=this.textSpans[t].glyph)&&(e.prepareFrame(this.comp.renderedFrame-this.data.st),e._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if((!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var t,e;this._sizeChanged=!0;var i,r,s,a=this.textAnimator.renderedLetters,n=this.textProperty.currentData.l;for(e=n.length,t=0;t<e;t+=1)n[t].n||(i=a[t],r=this.textSpans[t].span,(s=this.textSpans[t].glyph)&&s.renderFrame(),i._mdf.m&&r.setAttribute("transform",i.m),i._mdf.o&&r.setAttribute("opacity",i.o),i._mdf.sw&&r.setAttribute("stroke-width",i.sw),i._mdf.sc&&r.setAttribute("stroke",i.sc),i._mdf.fc&&r.setAttribute("fill",i.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var t=createNS("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)},NullElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!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(t){return new NullElement(t,this.globalData,this)},SVGRendererBase.prototype.createShape=function(t){return new SVGShapeElement(t,this.globalData,this)},SVGRendererBase.prototype.createText=function(t){return new SVGTextLottieElement(t,this.globalData,this)},SVGRendererBase.prototype.createImage=function(t){return new IImageElement(t,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(t){return new ISolidElement(t,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(t){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 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,
20,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 e=this.globalData.defs;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var i=createNS("clipPath"),r=createNS("rect");r.setAttribute("width",t.w),r.setAttribute("height",t.h),r.setAttribute("x",0),r.setAttribute("y",0);var s=createElementID();i.setAttribute("id",s),i.appendChild(r),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")"),e.appendChild(i),this.layers=t.layers,this.elements=createSizedArray(t.layers.length)},SVGRendererBase.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(t){var e=0,i=this.layers.length;for(e=0;e<i;e+=1)if(this.layers[e].ind===t)return e;return-1},SVGRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){e[t]=!0;var i=this.createItem(this.layers[t]);if(e[t]=i,getExpressionsPlugin()&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(i),i.initExpressions()),this.appendElementInPos(i,t),this.layers[t].tt){var r="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(-1===r)return;if(this.elements[r]&&!0!==this.elements[r]){var s=e[r].getMatte(this.layers[t].tt);i.setMatte(s)}else this.buildItem(r),this.addPendingElement(i)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,i=this.elements.length;e<i;){if(this.elements[e]===t){var r="tp"in t.data?this.findIndexByInd(t.data.tp):e-1,s=this.elements[r].getMatte(this.layers[e].tt);t.setMatte(s);break}e+=1}}},SVGRendererBase.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){var e;null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var i=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=i-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<i;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(t,e){var i=t.getBaseElement();if(i){for(var r,s=0;s<e;)this.elements[s]&&!0!==this.elements[s]&&this.elements[s].getBaseElement()&&(r=this.elements[s].getBaseElement()),s+=1;r?this.layerElement.insertBefore(i,r):this.layerElement.appendChild(i)}},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(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&e.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e}var i,r=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),i=r-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&(this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st),this.elements[i]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},ICompElement.prototype.setElements=function(t){this.elements=t},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},CVContextData.prototype.duplicate=function(){var t=2*this._length,e=this.savedOp;this.savedOp=createTypedArray("float32",t),this.savedOp.set(e);var i=0;for(i=this._length;i<t;i+=1)this.saved[i]=createTypedArray("float32",16);this._length=t},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.cO=1},ShapeTransformManager.prototype={addTransformSequence:function(t){var e,i=t.length,r="_";for(e=0;e<i;e+=1)r+=t[e].transform.key+"_";var s=this.sequences[r];return s||(s={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[r]=s,this.sequenceList.push(s)),s},processSequence:function(t,e){for(var i,r=0,s=t.transforms.length,a=e;r<s&&!e;){if(t.transforms[r].transform.mProps._mdf){a=!0;break}r+=1}if(a)for(t.finalTransform.reset(),r=s-1;r>=0;r-=1)i=t.transforms[r].transform.mProps.v.props,t.finalTransform.transform(i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7],i[8],i[9],i[10],i[11],i[12],i[13],i[14],i[15]);t._mdf=a},processSequences:function(t){var e,i=this.sequenceList.length;for(e=0;e<i;e+=1)this.processSequence(this.sequenceList[e],t)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}},CVEffects.prototype.renderFrame=function(){},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var t,e,i,r,s=this.element.finalTransform.mat,a=this.element.canvasContext,n=this.masksProperties.length;for(a.beginPath(),t=0;t<n;t+=1)if("n"!==this.masksProperties[t].mode){var o;this.masksProperties[t].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[t].v,e=s.applyToPointArray(r.v[0][0],r.v[0][1],0),a.moveTo(e[0],e[1]);var l=r._length;for(o=1;o<l;o+=1)i=s.applyToTriplePoints(r.o[o-1],r.i[o],r.v[o]),a.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5]);i=s.applyToTriplePoints(r.o[o-1],r.i[0],r.v[0]),a.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5])}this.element.globalData.renderer.save(!0),a.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null},CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){this.canvasContext=this.globalData.canvasContext,this.renderableEffe
vendor: 4,233 bytes, line 2
2ctsManager=new CVEffects(this)},createContent:function(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var e=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=e}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this)},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)},renderFrame:function(){if(!this.hidden&&!this.data.hd){this.renderTransform(),this.renderRenderable(),this.setBlendMode();var t=0===this.data.ty;this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.mat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.mProp.o.v),this.renderInnerContent(),this.globalData.renderer.restore(t),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(t,e){var i={data:t,type:t.ty,preTransforms:this.transformsManager.addTransformSequence(e),transforms:[],elements:[],closed:!0===t.hd},r={};if("fl"===t.ty||"st"===t.ty?(r.c=PropertyFactory.getProp(this,t.c,1,255,this),r.c.k||(i.co="rgb("+bmFloor(r.c.v[0])+","+bmFloor(r.c.v[1])+","+bmFloor(r.c.v[2])+")")):"gf"!==t.ty&&"gs"!==t.ty||(r.s=PropertyFactory.getProp(this,t.s,1,null,this),r.e=PropertyFactory.getProp(this,t.e,1,null,this),r.h=PropertyFactory.getProp(this,t.h||{k:0},0,.01,this),r.a=PropertyFactory.getProp(this,t.a||{k:0},0,degToRads,this),r.g=new GradientProperty(this,t.g,this)),r.o=PropertyFactory.getProp(this,t.o,0,.01,this),"st"===t.ty||"gs"===t.ty){if(i.lc=lineCapEnum[t.lc||2],i.lj=lineJoinEnum[t.lj||2],1==t.lj&&(i.ml=t.ml),r.w=PropertyFactory.getProp(this,t.w,0,null,this),r.w.k||(i.wi=r.w.v),t.d){var s=new DashProperty(this,t.d,"canvas",this);r.d=s,r.d.k||(i.da=r.d.dashArray,i.do=r.d.dashoffset[0])}}else i.r=2===t.r?"evenodd":"nonzero";return this.stylesList.push(i),r.style=i,r},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(t){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,t.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,t,this)}}},CVShapeElement.prototype.createShapeElement=function(t){var e=new CVShapeData(this,t,this.stylesList,this.transformsManager);return this.shapes.push(e),this.addShapeToModifiers(e),e},CVShapeElement.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(t){var e,i=this.stylesList.length;for(e=0;e<i;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.push(t)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var t,e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.pop()},CVShapeElement.prototype.closeStyles=function(t){var e,i=t.length;for(e=0;e<i;
vendor: 9,020 bytes, line 2
2e+=1)t[e].closed=!0},CVShapeElement.prototype.searchShapes=function(t,e,i,r,s){var a,n,o,l,c,p,h=t.length-1,d=[],f=[],m=[].concat(s);for(a=h;a>=0;a-=1){if((l=this.searchProcessedElement(t[a]))?e[a]=i[l-1]:t[a]._shouldRender=r,"fl"===t[a].ty||"st"===t[a].ty||"gf"===t[a].ty||"gs"===t[a].ty)l?e[a].style.closed=!1:e[a]=this.createStyleElement(t[a],m),d.push(e[a].style);else if("gr"===t[a].ty){if(l)for(o=e[a].it.length,n=0;n<o;n+=1)e[a].prevViewData[n]=e[a].it[n];else e[a]=this.createGroupElement(t[a]);this.searchShapes(t[a].it,e[a].it,e[a].prevViewData,r,m)}else"tr"===t[a].ty?(l||(p=this.createTransformElement(t[a]),e[a]=p),m.push(e[a]),this.addTransformToStyleList(e[a])):"sh"===t[a].ty||"rc"===t[a].ty||"el"===t[a].ty||"sr"===t[a].ty?l||(e[a]=this.createShapeElement(t[a])):"tm"===t[a].ty||"rd"===t[a].ty||"pb"===t[a].ty||"zz"===t[a].ty||"op"===t[a].ty?(l?(c=e[a]).closed=!1:((c=ShapeModifiers.getModifier(t[a].ty)).init(this,t[a]),e[a]=c,this.shapeModifiers.push(c)),f.push(c)):"rp"===t[a].ty&&(l?(c=e[a]).closed=!0:(c=ShapeModifiers.getModifier(t[a].ty),e[a]=c,c.init(this,t,a,e),this.shapeModifiers.push(c),r=!1),f.push(c));this.addProcessedElement(t[a],a+1)}for(this.removeTransformFromStyleList(),this.closeStyles(d),h=f.length,a=0;a<h;a+=1)f[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(t,e){(t._opMdf||e.op._mdf||this._isFirstFrame)&&(e.opacity=t.opacity,e.opacity*=e.op.v,e._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var t,e,i,r,s,a,n,o,l,c=this.stylesList.length,p=this.globalData.renderer,h=this.globalData.canvasContext;for(t=0;t<c;t+=1)if(("st"!==(o=(l=this.stylesList[t]).type)&&"gs"!==o||0!==l.wi)&&l.data._shouldRender&&0!==l.coOp&&0!==this.globalData.currentGlobalAlpha){for(p.save(),a=l.elements,"st"===o||"gs"===o?(h.strokeStyle="st"===o?l.co:l.grd,h.lineWidth=l.wi,h.lineCap=l.lc,h.lineJoin=l.lj,h.miterLimit=l.ml||0):h.fillStyle="fl"===o?l.co:l.grd,p.ctxOpacity(l.coOp),"st"!==o&&"gs"!==o&&h.beginPath(),p.ctxTransform(l.preTransforms.finalTransform.props),i=a.length,e=0;e<i;e+=1){for("st"!==o&&"gs"!==o||(h.beginPath(),l.da&&(h.setLineDash(l.da),h.lineDashOffset=l.do)),s=(n=a[e].trNodes).length,r=0;r<s;r+=1)"m"===n[r].t?h.moveTo(n[r].p[0],n[r].p[1]):"c"===n[r].t?h.bezierCurveTo(n[r].pts[0],n[r].pts[1],n[r].pts[2],n[r].pts[3],n[r].pts[4],n[r].pts[5]):h.closePath();"st"!==o&&"gs"!==o||(h.stroke(),l.da&&h.setLineDash(this.dashResetter))}"st"!==o&&"gs"!==o&&h.fill(l.r),p.restore()}},CVShapeElement.prototype.renderShape=function(t,e,i,r){var s,a;for(a=t,s=e.length-1;s>=0;s-=1)"tr"===e[s].ty?(a=i[s].transform,this.renderShapeTransform(t,a)):"sh"===e[s].ty||"el"===e[s].ty||"rc"===e[s].ty||"sr"===e[s].ty?this.renderPath(e[s],i[s]):"fl"===e[s].ty?this.renderFill(e[s],i[s],a):"st"===e[s].ty?this.renderStroke(e[s],i[s],a):"gf"===e[s].ty||"gs"===e[s].ty?this.renderGradientFill(e[s],i[s],a):"gr"===e[s].ty?this.renderShape(a,e[s].it,i[s].it):e[s].ty;r&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var i,r,s,a=t.trNodes,n=e.paths,o=n._length;a.length=0;var l=t.transforms.finalTransform;for(s=0;s<o;s+=1){var c=n.shapes[s];if(c&&c.v){for(r=c._length,i=1;i<r;i+=1)1===i&&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[i-1],c.i[i],c.v[i])});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[i-1],c.i[0],c.v[0])}),a.push({t:"z"}))}}t.trNodes=a}},CVShapeElement.prototype.renderPath=function(t,e){if(!0!==t.hd&&t._shouldRender){var i,r=e.styledShapes.length;for(i=0;i<r;i+=1)this.renderStyledShape(e.styledShapes[i],e.sh)}},CVShapeElement.prototype.renderFill=function(t,e,i){var r=e.style;(e.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i._opMdf||this._isFirstFrame)&&(r.coOp=e.o.v*i.opacity)},CVShapeElement.prototype.renderGradientFill=function(t,e,i){var r,s=e.style;if(!s.grd||e.g._mdf||e.s._mdf||e.e._mdf||1!==t.t&&(e.h._mdf||e.a._mdf)){var a,n=this.globalData.canvasContext,o=e.s.v,l=e.e.v;if(1===t.t)r=n.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)),p=Math.atan2(l[1]-o[1],l[0]-o[0]),h=e.h.v;h>=1?h=.99:h<=-1&&(h=-.99);var d=c*h,f=Math.cos(p+e.a.v)*d+o[0],m=Math.sin(p+e.a.v)*d+o[1];r=n.createRadialGradient(f,m,0,o[0],o[1],c)}var u=t.g.p,y=e.g.c,g=1;for(a=0;a<u;a+=1)e.g._hasOpacity&&e.g._collapsable&&(g=e.g.o[2*a+1]),r.addColorStop(y[4*a]/100,"rgba("+y[4*a+1]+","+y[4*a+2]+","+y[4*a+3]+","+g+")");s.grd=r}s.coOp=e.o.v*i.opacity},CVShapeElement.prototype.renderStroke=function(t,e,i){var r=e.style,s=e.d;s&&(s._mdf||this._isFirstFrame)&&(r.da=s.dashArray,r.do=s.dashoffset[0]),(e.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i._opMdf||this._isFirstFrame)&&(r.coOp=e.o.v*i.opacity),(e.w._mdf||this._isFirstFrame)&&(r.wi=e.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 t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=!1;t.fc?(e=!0,this.values.fill=this.buildColor(t.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=e;var i=!1;t.sc&&(i=!0,this.values.stroke=this.buildColor(t.sc),this.values.sWidth=t.sw);var r,s,a,n,o,l,c,p,h,d,f,m,u=this.globalData.fontManager.getFontByName(t.f),y=t.l,g=this.mHelper;this.stroke=i,this.values.fValue=t.finalSize+"px "+this.globalData.fontManager.getFontByName(t.f).fFamily,s=t.finalText.length;var v=this.data.singleShape,b=.001*t.tr*t.finalSize,w=0,E=0,_=!0,T=0;for(r=0;r<s;r+=1){n=(a=this.globalData.fontManager.getCharData(t.finalText[r],u.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily))&&a.data||{},g.reset(),v&&y[r].n&&(w=-b,E+=t.yOffset,E+=_?1:0,_=!1),h=(c=n.shapes?n.shapes[0].it:[]).length,g.scale(t.finalSize/100,t.finalSize/100),v&&this.applyTextPropertiesToMatrix(t,g,y[r].line,w,E),f=createSizedArray(h-1);var S=0;for(p=0;p<h;p+=1)if("sh"===c[p].ty){for(l=c[p].ks.k.i.length,d=c[p].ks.k,m=[],o=1;o<l;o+=1)1===o&&m.push(g.applyToX(d.v[0][0],d.v[0][1],0),g.applyToY(d.v[0][0],d.v[0][1],0)),m.push(g.applyToX(d.o[o-1][0],d.o[o-1][1],0),g.applyToY(d.o[o-1][0],d.o[o-1][1],0),g.applyToX(d.i[o][0],d.i[o][1],0),g.applyToY(d.i[o][0],d.i[o][1],0),g.applyToX(d.v[o][0],d.v[o][1],0),g.applyToY(d.v[o][0],d.v[o][1],0));m.push(g.applyToX(d.o[o-1][0],d.o[o-1][1],0),g.applyToY(d.o[o-1][0],d.o[o-1][1],0),g.applyToX(d.i[0][0],d.i[0][1],0),g.applyToY(d.i[0][0],d.i[0][1],0),g.applyToX(d.v[0][0],d.v[0][1],0),g.applyToY(d.v[0][0],d.v[0][1],0)),f[S]=m,S+=1}v&&(w+=y[r].l,w+=b),this.textSpans[T]?this.textSpans[T].elem=f:this.textSpans[T]={elem:f},T+=1}},CVTextElement.prototype.renderInnerContent=function(){var t,e,i,r,s,a,n=this.canvasContext;n.font=this.values.fValue,n.lineCap="butt",n.lineJoin="miter",n.miterLimit=4,this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var o,l=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;e=c.length;var p,h,d=null,f=null,m=null;for(t=0;t<e;t+=1)if(!c[t].n){if((o=l[t])&&(this.globalData.renderer.save(),this.globalData.renderer.ctxTransform(o.p),this.globalData.renderer.ctxOpacity(o.o)),this.fill){for(o&&o.fc?d!==o.fc&&(d=o.fc,n.fillStyle=o.fc):d!==this.values.fill&&(d=this.values.fill,n.fillStyle=this.values.fill),r=(p=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),i=0;i<r;i+=1)for(a=(h=p[i]).length,this.globalData.canvasContext.moveTo(h[0],h[1]),s=2;s<a;s+=6)this.globalData.canvasContext.bezierCurveTo(h[s],h[s+1],h[s+2],h[s+3],h[s+4],h[s+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.fill()}if(this.stroke){for(o&&o.sw?m!==o.sw&&(m=o.sw,n.lineWidth=o.sw):m!==this.values.sWidth&&(m=this.values.sWidth,n.lineWidth=this.values.sWidth),o&&o.sc?f!==o.sc&&(f=o.sc,n.strokeStyle=o.sc):f!==this.values.stroke&&(f=this.values.stroke,n.strokeStyle=this.values.stroke),r=(p=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),i=0;i<r;i+=1)for(a=(h=p[i]).length,this.globalData.canvasContext.moveTo(h[0],h[1]),s=2;s<a;s+=6)this.globalData.canvasContext.bezierCurveTo(h[s],h[s+1],h[s+2],h[s+3],h[s+4],h[s+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.stroke()}
2o&&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 t=createTag("canvas");t.width=this.assetData.w,t.height=this.assetData.h;var e,i,r=t.getContext("2d"),s=this.img.width,a=this.img.height,n=s/a,o=this.assetData.w/this.assetData.h,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;n>o&&"xMidYMid slice"===l||n<o&&"xMidYMid slice"!==l?e=(i=a)*o:i=(e=s)/o,r.drawImage(this.img,(s-e)/2,(a-i)/2,e,i,0,0,this.assetData.w,this.assetData.h),this.img=t}},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(){var t=this.canvasContext;t.fillStyle=this.data.sc,t.fillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(t){return new CVShapeElement(t,this.globalData,this)},CanvasRendererBase.prototype.createText=function(t){return new CVTextElement(t,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(t){return new CVImageElement(t,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(t){return new CVSolidElement(t,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(t){if(1!==t[0]||0!==t[1]||0!==t[4]||1!==t[5]||0!==t[12]||0!==t[13])if(this.renderConfig.clearCanvas){this.transformMat.cloneFromProps(t);var e=this.contextData.cTr.props;this.transformMat.transform(e[0],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]),this.contextData.cTr.cloneFromProps(this.transformMat.props);var i=this.contextData.cTr.props;this.canvasContext.setTransform(i[0],i[1],i[4],i[5],i[12],i[13])}else this.canvasContext.transform(t[0],t[1],t[4],t[5],t[12],t[13])},CanvasRendererBase.prototype.ctxOpacity=function(t){if(!this.renderConfig.clearCanvas)return this.canvasContext.globalAlpha*=t<0?0:t,void(this.globalData.currentGlobalAlpha=this.contextData.cO);this.contextData.cO*=t<0?0:t,this.globalData.currentGlobalAlpha!==this.contextData.cO&&(this.canvasContext.globalAlpha=this.contextData.cO,this.globalData.currentGlobalAlpha=this.contextData.cO)},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(t){if(this.renderConfig.clearCanvas){t&&this.canvasContext.save();var e,i=this.contextData.cTr.props;this.contextData._length<=this.contextData.cArrPos&&this.contextData.duplicate();var r=this.contextData.saved[this.contextData.cArrPos];for(e=0;e<16;e+=1)r[e]=i[e];this.contextData.savedOp[this.contextData.cArrPos]=this.contextData.cO,this.contextData.cArrPos+=1}else this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(t){if(this.renderConfig.clearCanvas){t&&(this.canvasContext.restore(),this.globalData.blendMode="source-over"),this.contextData.cArrPos-=1;var e,i=this.contextData.saved[this.contextData.cArrPos],r=this.contextData.cTr.props;for(e=0;e<16;e+=1)r[e]=i[e];this.canvasContext.setTransform(i[0],i[1],i[4],i[5],i[12],i[13]),i=this.contextData.savedOp[this.contextData.cArrPos],this.contextData.cO=i,this.globalData.currentGlobalAlpha!==i&&(this.canvasContext.globalAlpha=i,this.globalData.currentGlobalAlpha=i)}
vendor: 4,845 bytes, line 2
2else this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(t){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var e=this.animationItem.container.style;e.width="100%",e.height="100%";var i="0px 0px 0px";e.transformOrigin=i,e.mozTransformOrigin=i,e.webkitTransformOrigin=i,e["-webkit-transform"]=i,e.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.data=t,this.layers=t.layers,this.transformCanvas={w:t.w,h:t.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(t,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(t.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(t,e){var i,r,s,a;if(this.reset(),t?(i=t,r=e,this.canvasContext.canvas.width=i,this.canvasContext.canvas.height=r):(this.animationItem.wrapper&&this.animationItem.container?(i=this.animationItem.wrapper.offsetWidth,r=this.animationItem.wrapper.offsetHeight):(i=this.canvasContext.canvas.width,r=this.canvasContext.canvas.height),this.canvasContext.canvas.width=i*this.renderConfig.dpr,this.canvasContext.canvas.height=r*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var n=this.renderConfig.preserveAspectRatio.split(" "),o=n[1]||"meet",l=n[0]||"xMidYMid",c=l.substr(0,4),p=l.substr(4);s=i/r,(a=this.transformCanvas.w/this.transformCanvas.h)>s&&"meet"===o||a<s&&"slice"===o?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(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<s&&"meet"===o||a>s&&"slice"===o)?(i-this.transformCanvas.w*(r/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===c&&(a<s&&"meet"===o||a>s&&"slice"===o)?(i-this.transformCanvas.w*(r/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===p&&(a>s&&"meet"===o||a<s&&"slice"===o)?(r-this.transformCanvas.h*(i/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===p&&(a>s&&"meet"===o||a<s&&"slice"===o)?(r-this.transformCanvas.h*(i/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=i/(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 t;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),t=(this.layers?this.layers.length:0)-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(t,e){if((this.renderedFrame!==t||!0!==this.renderConfig.clearCanvas||e)&&!this.destroyed&&-1!==t){var i;this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var r=this.layers.length;for(this.completeLayers||this.checkLayers(t),i=0;i<r;i+=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(t-this.layers[i].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),i=r-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame();
vendor: 21,206 bytes, line 2
2!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){var i=this.createItem(this.layers[t],this,this.globalData);e[t]=i,i.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"},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var t,e=this.canvasContext;for(e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip(),t=this.layers.length-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},CVCompElement.prototype.destroy=function(){var t;for(t=this.layers.length-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(t){return new CVCompElement(t,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 t=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var e=this.finalTransform.mat.toCSS();t.transform=e,t.webkitTransform=e}this.finalTransform._opMdf&&(t.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 t;this.data.hasMask?((t=createNS("rect")).setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((t=createTag("div")).style.width=this.data.sw+"px",t.style.height=this.data.sh+"px",t.style.backgroundColor=this.data.sc),this.layerElement.appendChild(t)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var t;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),t=this.svgElement;else{t=createNS("svg");var e=this.comp.data?this.comp.data:this.globalData.compSize;t.setAttribute("width",e.w),t.setAttribute("height",e.h),t.appendChild(this.shapesContainer),this.layerElement.appendChild(t)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=t},HShapeElement.prototype.getTransformedPoint=function(t,e){var i,r=t.length;for(i=0;i<r;i+=1)e=t[i].mProps.v.applyToPointArray(e[0],e[1],0);return e},HShapeElement.prototype.calculateShapeBoundingBox=function(t,e){var i,r,s,a,n,o=t.sh.v,l=t.transformers,c=o._length;if(!(c<=1)){for(i=0;i<c-1;i+=1)r=this.getTransformedPoint(l,o.v[i]),s=this.getTransformedPoint(l,o.o[i]),a=this.getTransformedPoint(l,o.i[i+1]),n=this.getTransformedPoint(l,o.v[i+1]),this.checkBounds(r,s,a,n,e);o.c&&(r=this.getTransformedPoint(l,o.v[i]),s=this.getTransformedPoint(l,o.o[i]),a=this.getTransformedPoint(l,o.i[0]),n=this.getTransformedPoint(l,o.v[0]),this.checkBounds(r,s,a,n,e))}},HShapeElement.prototype.checkBounds=function(t,e,i,r,s){this.getBoundsOfCurve(t,e,i,r);var a=this.shapeBoundingBox;s.x=bmMin(a.left,s.x),s.xMax=bmMax(a.right,s.xMax),s.y=bmMin(a.top,s.y),s.yMax=bmMax(a.bottom,s.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(t,e,i,r){for(var s,a,n,o,l,c,p,h=[[t[0],r[0]],[t[1],r[1]]],d=0;d<2;++d)a=6*t[d]-12*e[d]+6*i[d],s=-3*t[d]+9*e[d]-9*i[d]+3*r[d],n=3*e[d]-3*t[d],a|=0,n|=0,0==(s|=0)&&0===a||(0===s?(o=-n/a)>0&&o<1&&h[d].push(this.calculateF(o,t,e,i,r,d)):(l=a*a-4*n*s)>=0&&((c=(-a+bmSqrt(l))/(2*s))>0&&c<1&&h[d].push(this.calculateF(c,t,e,i,r,d)),(p=(-a-bmSqrt(l))/(2*s))>0&&p<1&&h[d].push(this.calculateF(p,t,e,i,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(t,e,i,r,s,a){return bmPow(1-t,3)*e[a]+3*bmPow(1-t,2)*t*i[a]+3*(1-t)*bmPow(t,2)*r[a]+bmPow(t,3)*s[a]},HShapeElement.prototype.calculateBoundingBox=function(t,e){var i,r=t.length;for(i=0;i<r;i+=1)t[i]&&t[i].sh?this.calculateShapeBoundingBox(t[i],e):t[i]&&t[i].it?this.calculateBoundingBox(t[i].it,e):t[i]&&t[i].style&&t[i].w&&this.expandStrokeBoundingBox(t[i].w,e)},HShapeElement.prototype.expandStrokeBoundingBox=function(t,e){var i=0;if(t.keyframes){for(var r=0;r<t.keyframes.length;r+=1){var s=t.keyframes[r].s;s>i&&(i=s)}i*=t.mult}else i=t.v*t.mult;e.x-=i,e.xMax+=i,e.y-=i,e.yMax+=i},HShapeElement.prototype.currentBoxContains=function(t){return this.currentBBox.x<=t.x&&this.currentBBox.y<=t.y&&this.currentBBox.width+this.currentBBox.x>=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox,e=999999;if(t.x=e,t.xMax=-e,t.y=e,t.yMax=-e,this.calculateBoundingBox(this.itemsData,t),t.width=t.xMax<t.x?0:t.xMax-t.x,t.height=t.yMax<t.y?0:t.yMax-t.y,this.currentBoxContains(t))return;var i=!1;if(this.currentBBox.w!==t.width&&(this.currentBBox.w=t.width,this.shapeCont.setAttribute("width",t.width),i=!0),this.currentBBox.h!==t.height&&(this.currentBBox.h=t.height,this.shapeCont.setAttribute("height",t.height),i=!0),i||this.currentBBox.x!==t.x||this.currentBBox.y!==t.y){this.currentBBox.w=t.width,this.currentBBox.h=t.height,this.currentBBox.x=t.x,this.currentBBox.y=t.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var r=this.shapeCont.style,s="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";r.transform=s,r.webkitTransform=s}}},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 t=createNS("g");this.maskedElement.appendChild(t),this.innerElem=t}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=this.innerElem.style,i=t.fc?this.buildColor(t.fc):"rgba(0,0,0,0)";e.fill=i,e.color=i,t.sc&&(e.stroke=this.buildColor(t.sc),e.strokeWidth=t.sw+"px");var r,s,a=this.globalData.fontManager.getFontByName(t.f);if(!this.globalData.fontManager.chars)if(e.fontSize=t.finalSize+"px",e.lineHeight=t.finalSize+"px",a.fClass)this.innerElem.className=a.fClass;else{e.fontFamily=a.fFamily;var n=t.fWeight,o=t.fStyle;e.fontStyle=o,e.fontWeight=n}var l,c,p,h=t.l;s=h.length;var d,f=this.mHelper,m="",u=0;for(r=0;r<s;r+=1){if(this.globalData.fontManager.chars?(this.textPaths[u]?l=this.textPaths[u]:((l=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),l.setAttribute("stroke-linejoin",lineJoinEnum[2]),l.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[u]?p=(c=this.textSpans[u]).children[0]:((c=createTag("div")).style.lineHeight=0,(p=createNS("svg")).appendChild(l),styleDiv(c)))):this.isMasked?l=this.textPaths[u]?this.textPaths[u]:createNS("text"):this.textSpans[u]?(c=this.textSpans[u],l=this.textPaths[u]):(styleDiv(c=createTag("span")),styleDiv(l=createTag("span")),c.appendChild(l)),this.globalData.fontManager.chars){var y,g=this.globalData.fontManager.getCharData(t.finalText[r],a.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily);if(y=g?g.data:null,f.reset(),y&&y.shapes&&y.shapes.length&&(d=y.shapes[0].it,f.scale(t.finalSize/100,t.finalSize/100),m=this.createPathShape(f,d),l.setAttribute("d",m)),this.isMasked)this.innerElem.appendChild(l);else{if(this.innerElem.appendChild(c),y&&y.shapes){document.body.appendChild(p);var v=p.getBBox();p.setAttribute("width",v.width+2),p.setAttribute("height",v.height+2),p.setAttribute("viewBox",v.x-1+" "+(v.y-1)+" "+(v.width+2)+" "+(v.height+2));var b=p.style,w="translate("+(v.x-1)+"px,"+(v.y-1)+"px)";b.transform=w,b.webkitTransform=w,h[r].yOffset=v.y-1}else p.setAttribute("width",1),p.setAttribute("height",1);c.appendChild(p)}}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 E=l.style,_="translate3d(0,"+-t.finalSize/1.2+"px,0)";E.transform=_,E.webkitTransform=_}this.isMasked?this.textSpans[u]=l:this.textSpans[u]=c,this.textSpans[u].style.display="block",this.textPaths[u]=l,u+=1}for(;u<this.textSpans.length;)this.textSpans[u].style.display="none",u+=1},HTextElement.prototype.renderInnerContent=function(){var t;if(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),t=this.svgElement.style;var e="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";t.transform=e,t.webkitTransform=e}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var i,r,s,a,n,o=0,l=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;for(r=c.length,i=0;i<r;i+=1)c[i].n?o+=1:(a=this.textSpans[i],n=this.textPaths[i],s=l[o],o+=1,s._mdf.m&&(this.isMasked?a.setAttribute("transform",s.m):(a.style.webkitTransform=s.m,a.style.transform=s.m)),a.style.opacity=s.o,s.sw&&s._mdf.sw&&n.setAttribute("stroke-width",s.sw),s.sc&&s._mdf.sc&&n.setAttribute("stroke",s.sc),s.fc&&s._mdf.fc&&(n.setAttribute("fill",s.fc),n.style.color=s.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var p=this.innerElem.getBBox();if(this.currentBBox.w!==p.width&&(this.currentBBox.w=p.width,this.svgElement.setAttribute("width",p.width)),this.currentBBox.h!==p.height&&(this.currentBBox.h=p.height,this.svgElement.setAttribute("height",p.height)),this.currentBBox.w!==p.width+2||this.currentBBox.h!==p.height+2||this.currentBBox.x!==p.x-1||this.currentBBox.y!==p.y-1){this.currentBBox.w=p.width+2,this.currentBBox.h=p.height+2,this.currentBBox.x=p.x-1,this.currentBBox.y=p.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),t=this.svgElement.style;var h="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";t.transform=h,t.webkitTransform=h}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var t,e,i,r,s=this.comp.threeDElements.length;for(t=0;t<s;t+=1)if("3d"===(e=this.comp.threeDElements[t]).type){i=e.perspectiveElem.style,r=e.container.style;var a=this.pe.v+"px",n="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";i.perspective=a,i.webkitPerspective=a,r.transformOrigin="0px 0px 0px",r.mozTransformOrigin="0px 0px 0px",r.webkitTransformOrigin="0px 0px 0px",i.transform=n,i.webkitTransform=n}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var t,e,i=this._isFirstFrame;if(this.hierarchy)for(e=this.hierarchy.length,t=0;t<e;t+=1)i=this.hierarchy[t].finalTransform.mProp._mdf||i;if(i||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(t=e=this.hierarchy.length-1;t>=0;t-=1){var r=this.hierarchy[t].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 s;s=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(s[0],2)+Math.pow(s[1],2)+Math.pow(s[2],2)),n=[s[0]/a,s[1]/a,s[2]/a],o=Math.sqrt(n[2]*n[2]+n[0]*n[0]),l=Math.atan2(n[1],o),c=Math.atan2(n[0],-n[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 p=!this._prevMat.equals(this.mat);if((p||this.pe._mdf)&&this.comp.threeDElements){var h,d,f;for(e=this.comp.threeDElements.length,t=0;t<e;t+=1)if("3d"===(h=this.comp.threeDElements[t]).type){if(p){var m=this.mat.toCSS();(f=h.container.style).transform=m,f.webkitTransform=m}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(t){this.prepareProperties(t,!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 t=this.globalData.getAssetsPath(this.assetData),e=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",t),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(e),e.crossOrigin="anonymous",e.src=t,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(t,e){var i=t.getBaseElement();if(i){var r=this.layers[e];if(r.ddd&&this.supports3d)this.addTo3dContainer(i,e);else if(this.threeDElements)this.addTo3dContainer(i,e);else{for(var s,a,n=0;n<e;)this.elements[n]&&!0!==this.elements[n]&&this.elements[n].getBaseElement&&(a=this.elements[n],s=(this.layers[n].ddd?this.getThreeDContainerByPos(n):a.getBaseElement())||s),n+=1;s?r.ddd&&this.supports3d||this.layerElement.insertBefore(i,s):r.ddd&&this.supports3d||this.layerElement.appendChild(i)}}},HybridRendererBase.prototype.createShape=function(t){return this.supports3d?new HShapeElement(t,this.globalData,this):new SVGShapeElement(t,this.globalData,this)},HybridRendererBase.prototype.createText=function(t){return this.supports3d?new HTextElement(t,this.globalData,this):new SVGTextLottieElement(t,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(t){return this.camera=new HCameraElement(t,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(t){return this.supports3d?new HImageElement(t,this.globalData,this):new IImageElement(t,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(t){return this.supports3d?new HSolidElement(t,this.globalData,this):new ISolidElement(t,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(t){for(var e=0,i=this.threeDElements.length;e<i;){if(this.threeDElements[e].startPos<=t&&this.threeDElements[e].endPos>=t)return this.threeDElements[e].perspectiveElem;e+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(t,e){var i,r,s=createTag("div");styleDiv(s);var a=createTag("div");if(styleDiv(a),"3d"===e){(i=s.style).width=this.globalData.compSize.w+"px",i.height=this.globalData.compSize.h+"px",i.webkitTransformOrigin="50% 50%",i.mozTransformOrigin="50% 50%",i.transformOrigin="50% 50%";var n="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(r=a.style).transform=n,r.webkitTransform=n}s.appendChild(a);var o={container:a,perspectiveElem:s,startPos:t,endPos:t,type:e};return this.threeDElements.push(o),o},HybridRendererBase.prototype.build3dContainers=function(){var t,e,i=this.layers.length,r="";for(t=0;t<i;t+=1)this.layers[t].ddd&&3!==this.layers[t].ty?("3d"!==r&&(r="3d",e=this.createThreeDContainer(t,"3d")),e.endPos=Math.max(e.endPos,t)):("2d"!==r&&(r="2d",e=this.createThreeDContainer(t,"2d")),e.endPos=Math.max(e.endPos,t));for(t=(i=this.threeDElements.length)-1;t>=0;t-=1)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(t,e){for(var i=0,r=this.threeDElements.length;i<r;){if(e<=this.threeDElements[i].endPos){for(var s,a=this.threeDElements[i].startPos;a<e;)this.elements[a]&&this.elements[a].getBaseElement&&(s=this.elements[a].getBaseElement()),a+=1;s?this.threeDElements[i].container.insertBefore(t,s):this.threeDElements[i].container.appendChild(t);break}i+=1}},HybridRendererBase.prototype.configAnimation=function(t){var e=createTag("div"),i=this.animationItem.wrapper,r=e.style;r.width=t.w+"px",r.height=t.h+"px",this.resizerElem=e,styleDiv(e),r.transformStyle="flat",r.mozTransformStyle="flat",r.webkitTransformStyle="flat",this.renderConfig.className&&e.setAttribute("class",this.renderConfig.className),i.appendChild(e),r.overflow="hidden";var s=createNS("svg");s.setAttribute("width","1"),s.setAttribute("height","1"),styleDiv(s),this.resizerElem.appendChild(s);var a=createNS("defs");s.appendChild(a),this.data=t,this.setupGlobalData(t,s),this.globalData.defs=a,this.layers=t.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var t,e,i,r,s=this.animationItem.wrapper.offsetWidth,a=this.animationItem.wrapper.offsetHeight,n=s/a;this.globalData.compSize.w/this.globalData.compSize.h>n?(t=s/thi
vendor: 15,253 bytes, line 2
2s.globalData.compSize.w,e=s/this.globalData.compSize.w,i=0,r=(a-this.globalData.compSize.h*(s/this.globalData.compSize.w))/2):(t=a/this.globalData.compSize.h,e=a/this.globalData.compSize.h,i=(s-this.globalData.compSize.w*(a/this.globalData.compSize.h))/2,r=0);var o=this.resizerElem.style;o.webkitTransform="matrix3d("+t+",0,0,0,0,"+e+",0,0,0,0,1,0,"+i+","+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 t,e=this.globalData.compSize.w,i=this.globalData.compSize.h,r=this.threeDElements.length;for(t=0;t<r;t+=1){var s=this.threeDElements[t].perspectiveElem.style;s.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(i,2))+"px",s.perspective=s.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(t){var e,i=t.length,r=createTag("div");for(e=0;e<i;e+=1)if(t[e].xt){var s=this.createComp(t[e],r,this.globalData.comp,null);s.initExpressions(),this.globalData.projectInterface.registerComposition(s)}},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(t,e){for(var i,r=0;r<e;)this.elements[r]&&this.elements[r].getBaseElement&&(i=this.elements[r].getBaseElement()),r+=1;i?this.layerElement.insertBefore(t,i):this.layerElement.appendChild(t)},HCompElement.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)};var CompExpressionInterface=function(t){function e(e){for(var i=0,r=t.layers.length;i<r;){if(t.layers[i].nm===e||t.layers[i].ind===e)return t.elements[i].layerInterface;i+=1}return null}return Object.defineProperty(e,"_name",{value:t.data.nm}),e.layer=e,e.pixelAspect=1,e.height=t.data.h||t.globalData.compSize.h,e.width=t.data.w||t.globalData.compSize.w,e.pixelAspect=1,e.frameDuration=1/t.globalData.frameRate,e.displayStartTime=0,e.numLayers=t.layers.length,e},Expressions=function(){var t={initExpressions:function(t){var e=0,i=[];t.renderer.compInterface=CompExpressionInterface(t.renderer),t.renderer.globalData.projectInterface.registerComposition(t.renderer),t.renderer.globalData.pushExpression=function(){e+=1},t.renderer.globalData.popExpression=function(){0==(e-=1)&&function(){var t,e=i.length;for(t=0;t<e;t+=1)i[t].release();i.length=0}()},t.renderer.globalData.registerExpressionProperty=function(t){-1===i.indexOf(t)&&i.push(t)}}};return t}(),MaskManagerInterface=function(){function t(t,e){this._mask=t,this._data=e}return Object.defineProperty(t.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(t.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(e){var i,r=createSizedArray(e.viewData.length),s=e.viewData.length;for(i=0;i<s;i+=1)r[i]=new t(e.viewData[i],e.masksProperties[i]);return function(t){for(i=0;i<s;){if(e.masksProperties[i].nm===t)return r[i];i+=1}return null}}}(),ExpressionPropertyInterface=function(){var t={pv:0,v:0,mult:1},e={pv:[0,0,0],v:[0,0,0],mult:1};function i(t,e,i){Object.defineProperty(t,"velocity",{get:function(){return e.getVelocityAtTime(e.comp.currentFrame)}}),t.numKeys=e.keyframes?e.keyframes.length:0,t.key=function(r){if(!t.numKeys)return 0;var s;s="s"in e.keyframes[r-1]?e.keyframes[r-1].s:"e"in e.keyframes[r-2]?e.keyframes[r-2].e:e.keyframes[r-2].s;var a="unidimensional"===i?new Number(s):Object.assign({},s);return a.time=e.keyframes[r-1].t/e.elem.comp.globalData.frameRate,a.value="unidimensional"===i?s[0]:s,a},t.valueAtTime=e.getValueAtTime,t.speedAtTime=e.getSpeedAtTime,t.velocityAtTime=e.getVelocityAtTime,t.propertyGroup=e.propertyGroup}function r(){return t}return function(s){return s?"unidimensional"===s.propType?function(e){e&&"pv"in e||(e=t);var r=1/e.mult,s=e.pv*r,a=new Number(s);return a.value=s,i(a,e,"unidimensional"),function(){return e.k&&e.getValue(),s=e.v*r,a.value!==s&&((a=new Number(s)).value=s,i(a,e,"unidimensional")),a}}(s):function(t){t&&"pv"in t||(t=e);var r=1/t.mult,s=t.data&&t.data.l||t.pv.length,a=createTypedArray("float32",s),n=createTypedArray("float32",s);return a.value=n,i(a,t,"multidimensional"),function(){t.k&&t.getValue();for(var e=0;e<s;e+=1)n[e]=t.v[e]*r,a[e]=n[e];return a}}(s):r}}(),TransformExpressionInterface=function(t){function e(t){switch(t){case"scale":case"Scale":case"ADBE Scale":case 6:return e.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return e.rotation;case"ADBE Rotate X":return e.xRotation;case"ADBE Rotate Y":return e.yRotation;case"position":case"Position":case"ADBE Position":case 2:return e.position;case"ADBE Position_0":return e.xPosition;case"ADBE Position_1":return e.yPosition;case"ADBE Position_2":return e.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return e.anchorPoint;case"opacity":case"Opacity":case 11:return e.opacity;default:return null}}var i,r,s,a;return Object.defineProperty(e,"rotation",{get:ExpressionPropertyInterface(t.r||t.rz)}),Object.defineProperty(e,"zRotation",{get:ExpressionPropertyInterface(t.rz||t.r)}),Object.defineProperty(e,"xRotation",{get:ExpressionPropertyInterface(t.rx)}),Object.defineProperty(e,"yRotation",{get:ExpressionPropertyInterface(t.ry)}),Object.defineProperty(e,"scale",{get:ExpressionPropertyInterface(t.s)}),t.p?a=ExpressionPropertyInterface(t.p):(i=ExpressionPropertyInterface(t.px),r=ExpressionPropertyInterface(t.py),t.pz&&(s=ExpressionPropertyInterface(t.pz))),Object.defineProperty(e,"position",{get:function(){return t.p?a():[i(),r(),s?s():0]}}),Object.defineProperty(e,"xPosition",{get:ExpressionPropertyInterface(t.px)}),Object.defineProperty(e,"yPosition",{get:ExpressionPropertyInterface(t.py)}),Object.defineProperty(e,"zPosition",{get:ExpressionPropertyInterface(t.pz)}),Object.defineProperty(e,"anchorPoint",{get:ExpressionPropertyInterface(t.a)}),Object.defineProperty(e,"opacity",{get:ExpressionPropertyInterface(t.o)}),Object.defineProperty(e,"skew",{get:ExpressionPropertyInterface(t.sk)}),Object.defineProperty(e,"skewAxis",{get:ExpressionPropertyInterface(t.sa)}),Object.defineProperty(e,"orientation",{get:ExpressionPropertyInterface(t.or)}),e},LayerExpressionInterface=function(){function t(t){var e=new Matrix;return void 0!==t?this._elem.finalTransform.mProp.getValueAtTime(t).clone(e):this._elem.finalTransform.mProp.applyToMatrix(e),e}function e(t,e){var i=this.getMatrix(e);return i.props[12]=0,i.props[13]=0,i.props[14]=0,this.applyPoint(i,t)}function i(t,e){var i=this.getMatrix(e);return this.applyPoint(i,t)}function r(t,e){var i=this.getMatrix(e);return i.props[12]=0,i.props[13]=0,i.props[14]=0,this.invertPoint(i,t)}function s(t,e){var i=this.getMatrix(e);return this.invertPoint(i,t)}function a(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var i,r=this._elem.hierarchy.length;for(i=0;i<r;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(t)}return t.applyToPointArray(e[0],e[1],e[2]||0)}function n(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var i,r=this._elem.hierarchy.length;for(i=0;i<r;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(t)}return t.inversePoint(e)}function o(t){var e=new Matrix;if(e.reset(),this._elem.finalTransform.mProp.applyToMatrix(e),this._elem.hierarchy&&this._elem.hierarchy.length){var i,r=this._elem.hierarchy.length;for(i=0;i<r;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(e);return e.inversePoint(t)}return e.inversePoint(t)}function l(){return[1,1,1,1]}return function(c){var p;function h(t){switch(t){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 p;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=t,h.invertPoint=n,h.applyPoint=a,h.toWorld=i,h.toWorldVec=e,h.fromWorld=s,h.fromWorldVec=r,h.toComp=i,h.fromComp=o,h.sampleImage=l,h.sourceRectAtTime=c.sourceRectAtTime.bind(c),h._elem=c;var d=getDescriptor(p=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(p,"rotation"),scale:getDescriptor(p,"scale"),position:getDescriptor(p,"position"),opacity:getDescriptor(p,"opacity"),anchorPoint:d,anchor_point:d,transform:{get:function(){return p}},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(t){h.mask=new MaskManagerInterface(t,c)},h.registerEffectsInterface=function(t){h.effect=t},h}}(),propertyGroupFactory=function(t,e){return function(i){return(i=void 0===i?1:i)<=0?t:e(i-1)}},PropertyInterface=function(t,e){var i={_name:t};return function(t){return(t=void 0===t?1:t)<=0?i:e(t-1)}},EffectsExpressionInterface=function(){function t(i,r,s,a){function n(t){for(var e=i.ef,r=0,s=e.length;r<s;){if(t===e[r].nm||t===e[r].mn||t===e[r].ix)return 5===e[r].ty?c[r]:c[r]();r+=1}throw new Error}var o,l=propertyGroupFactory(n,s),c=[],p=i.ef.length;for(o=0;o<p;o+=1)5===i.ef[o].ty?c.push(t(i.ef[o],r.effectElements[o],r.effectElements[o].propertyGroup,a)):c.push(e(r.effectElements[o],i.ef[o].ty,a,l));return"ADBE Color Control"===i.mn&&Object.defineProperty(n,"color",{get:function(){return c[0]()}}),Object.defineProperties(n,{numProperties:{get:function(){return i.np}},_name:{value:i.nm},propertyGroup:{value:l}}),n.enabled=0!==i.en,n.active=n.enabled,n}function e(t,e,i,r){var s=ExpressionPropertyInterface(t.p);return t.p.setGroupProperty&&t.p.setGroupProperty(PropertyInterface("",r)),function(){return 10===e?i.comp.compInterface(t.p.v):s()}}return{createEffectsInterface:function(e,i){if(e.effectsManager){var r,s=[],a=e.data.ef,n=e.effectsManager.effectElements.length;for(r=0;r<n;r+=1)s.push(t(a[r],e.effectsManager.effectElements[r],i,e));var o=e.data.ef||[],l=function(t){for(r=0,n=o.length;r<n;){if(t===o[r].nm||t===o[r].mn||t===o[r].ix)return s[r];r+=1}return null};return Object.defineProperty(l,"numProperties",{get:function(){return o.length}}),l}return null}}}(),ShapePathInterface=function(t,e,i){var r=e.sh;function s(t){return"Shape"===t||"shape"===t||"Path"===t||"path"===t||"ADBE Vector Shape"===t||2===t?s.path:null}var a=propertyGroupFactory(s,i);return r.setGroupProperty(PropertyInterface("Path",a)),Object.defineProperties(s,{path:{get:function(){return r.k&&r.getValue(),r}},shape:{get:function(){return r.k&&r.getValue(),r}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:i}}),s},ShapeExpressionInterface=function(){function t(t,o,f){var m,u=[],y=t?t.length:0;for(m=0;m<y;m+=1)"gr"===t[m].ty?u.push(e(t[m],o[m],f)):"fl"===t[m].ty?u.push(i(t[m],o[m],f)):"st"===t[m].ty?u.push(a(t[m],o[m],f)):"tm"===t[m].ty?u.push(n(t[m],o[m],f)):"tr"===t[m].ty||("el"===t[m].ty?u.push(l(t[m],o[m],f)):"sr"===t[m].ty?u.push(c(t[m],o[m],f)):"sh"===t[m].ty?u.push(ShapePathInterface(t[m],o[m],f)):"rc"===t[m].ty?u.push(p(t[m],o[m],f)):"rd"===t[m].ty?u.push(h(t[m],o[m],f)):"rp"===t[m].ty?u.push(d(t[m],o[m],f)):"gf"===t[m].ty?u.push(r(t[m],o[m],f)):u.push((t[m],o[m],function(){return null})));return u}function e(e,i,r){var s=function(t){switch(t){case"ADBE Vectors Group":case"Contents":case 2:return s.content;default:return s.transform}};s.propertyGroup=propertyGroupFactory(s,r);var a=function(e,i,r){var s,a=function(t){for(var e=0,i=s.length;e<i;){if(s[e]._name===t||s[e].mn===t||s[e].propertyIndex===t||s[e].ix===t||s[e].ind===t)return s[e];e+=1}return"number"==typeof t?s[t-1]:null};a.propertyGroup=propertyGroupFactory(a,r),s=t(e.it,i.it,a.propertyGroup),a.numProperties=s.length;var n=o(e.it[e.it.length-1],i.it[i.it.length-1],a.propertyGroup);return a.transform=n,a.propertyIndex=e.cix,a._name=e.nm,a}(e,i,s.propertyGroup),n=o(e.it[e.it.length-1],i.it[i.it.length-1],s.propertyGroup);return s.content=a,s.transform=n,Object.defineProperty(s,"_name",{get:function(){return e.nm}}),s.numProperties=e.np,s.propertyIndex=e.ix,s.nm=e.nm,s.mn=e.mn,s}function i(t,e,i){function r(t){return"Color"===t||"color"===t?r.color:"Opacity"===t||"opacity"===t?r.opacity:null}return Object.defineProperties(r,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface("Color",i)),e.o.setGroupProperty(PropertyInterface("Opacity",i)),r}function r(t,e,i){function r(t){return"Start Point"===t||"start point"===t?r.startPoint:"End Point"===t||"end point"===t?r.endPoint:"Opacity"===t||"opacity"===t?r.opacity:null}return Object.defineProperties(r,{startPoint:{get:ExpressionPropertyInterface(e.s)},endPoint:{get:ExpressionPropertyInterface(e.e)},opacity:{get:ExpressionPropertyInterface(e.o)},type:{get:function(){return"a"}},_name:{value:t.nm},mn:{value:t.mn}}),e.s.setGroupProperty(PropertyInterface("Start Point",i)),e.e.setGroupProperty(PropertyInterface("End Point",i)),e.o.setGroupProperty(PropertyInterface("Opacity",i)),r}function a(t,e,i){var r,s=propertyGroupFactory(c,i),a=propertyGroupFactory(l,s);function n(i){Object.defineProperty(l,t.d[i].nm,{get:ExpressionPropertyInterface(e.d.dataProps[i].p)})}var o=t.d?t.d.length:0,l={};for(r=0;r<o;r+=1)n(r),e.d.dataProps[r].p.setGroupProperty(a);function c(t){return"Color"===t||"color"===t?c.color:"Opacity"===t||"opacity"===t?c.opacity:"Stroke Width"===t||"stroke width"===t?c.strokeWidth:null}return Object.defineProperties(c,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},strokeWidth:{get:ExpressionPropertyInterface(e.w)},dash:{get:function(){return l}},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface("Color",s)),e.o.setGroupProperty(PropertyInterface("Opacity",s)),e.w.setGroupProperty(PropertyInterface("Stroke Width",s)),c}function n(t,e,i){function r(e){return e===t.e.ix||"End"===e||"end"===e?r.end:e===t.s.ix?r.start:e===t.o.ix?r.offset:null}
vendor: 4,215 bytes, line 2
2var s=propertyGroupFactory(r,i);return r.propertyIndex=t.ix,e.s.setGroupProperty(PropertyInterface("Start",s)),e.e.setGroupProperty(PropertyInterface("End",s)),e.o.setGroupProperty(PropertyInterface("Offset",s)),r.propertyIndex=t.ix,r.propertyGroup=i,Object.defineProperties(r,{start:{get:ExpressionPropertyInterface(e.s)},end:{get:ExpressionPropertyInterface(e.e)},offset:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm}}),r.mn=t.mn,r}function o(t,e,i){function r(e){return t.a.ix===e||"Anchor Point"===e?r.anchorPoint:t.o.ix===e||"Opacity"===e?r.opacity:t.p.ix===e||"Position"===e?r.position:t.r.ix===e||"Rotation"===e||"ADBE Vector Rotation"===e?r.rotation:t.s.ix===e||"Scale"===e?r.scale:t.sk&&t.sk.ix===e||"Skew"===e?r.skew:t.sa&&t.sa.ix===e||"Skew Axis"===e?r.skewAxis:null}var s=propertyGroupFactory(r,i);return e.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",s)),e.transform.mProps.p.setGroupProperty(PropertyInterface("Position",s)),e.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",s)),e.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",s)),e.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",s)),e.transform.mProps.sk&&(e.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",s)),e.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",s))),e.transform.op.setGroupProperty(PropertyInterface("Opacity",s)),Object.defineProperties(r,{opacity:{get:ExpressionPropertyInterface(e.transform.mProps.o)},position:{get:ExpressionPropertyInterface(e.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(e.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(e.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(e.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(e.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(e.transform.mProps.sa)},_name:{value:t.nm}}),r.ty="tr",r.mn=t.mn,r.propertyGroup=i,r}function l(t,e,i){function r(e){return t.p.ix===e?r.position:t.s.ix===e?r.size:null}var s=propertyGroupFactory(r,i);r.propertyIndex=t.ix;var a="tm"===e.sh.ty?e.sh.prop:e.sh;return a.s.setGroupProperty(PropertyInterface("Size",s)),a.p.setGroupProperty(PropertyInterface("Position",s)),Object.defineProperties(r,{size:{get:ExpressionPropertyInterface(a.s)},position:{get:ExpressionPropertyInterface(a.p)},_name:{value:t.nm}}),r.mn=t.mn,r}function c(t,e,i){function r(e){return t.p.ix===e?r.position:t.r.ix===e?r.rotation:t.pt.ix===e?r.points:t.or.ix===e||"ADBE Vector Star Outer Radius"===e?r.outerRadius:t.os.ix===e?r.outerRoundness:!t.ir||t.ir.ix!==e&&"ADBE Vector Star Inner Radius"!==e?t.is&&t.is.ix===e?r.innerRoundness:null:r.innerRadius}var s=propertyGroupFactory(r,i),a="tm"===e.sh.ty?e.sh.prop:e.sh;return r.propertyIndex=t.ix,a.or.setGroupProperty(PropertyInterface("Outer Radius",s)),a.os.setGroupProperty(PropertyInterface("Outer Roundness",s)),a.pt.setGroupProperty(PropertyInterface("Points",s)),a.p.setGroupProperty(PropertyInterface("Position",s)),a.r.setGroupProperty(PropertyInterface("Rotation",s)),t.ir&&(a.ir.setGroupProperty(PropertyInterface("Inner Radius",s)),a.is.setGroupProperty(PropertyInterface("Inner Roundness",s))),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:t.nm}}),r.mn=t.mn,r}function p(t,e,i){function r(e){return t.p.ix===e?r.position:t.r.ix===e?r.roundness:t.s.ix===e||"Size"===e||"ADBE Vector Rect Size"===e?r.size:null}var s=propertyGroupFactory(r,i),a="tm"===e.sh.ty?e.sh.prop:e.sh;return r.propertyIndex=t.ix,a.p.setGroupProperty(PropertyInterface("Position",s)),a.s.setGroupProperty(PropertyInterface("Size",s)),a.r.setGroupProperty(PropertyInterface("Rotation",s)),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(a.p)},roundness:{get:ExpressionPropertyInterface(a.r)},size:{get:ExpressionPropertyInterface(a.s)},_name:{value:t.nm}}),r.mn=t.mn,r}
vendor: 14,983 bytes, line 2
2function h(t,e,i){function r(e){return t.r.ix===e||"Round Corners 1"===e?r.radius:null}var s=propertyGroupFactory(r,i),a=e;return r.propertyIndex=t.ix,a.rd.setGroupProperty(PropertyInterface("Radius",s)),Object.defineProperties(r,{radius:{get:ExpressionPropertyInterface(a.rd)},_name:{value:t.nm}}),r.mn=t.mn,r}function d(t,e,i){function r(e){return t.c.ix===e||"Copies"===e?r.copies:t.o.ix===e||"Offset"===e?r.offset:null}var s=propertyGroupFactory(r,i),a=e;return r.propertyIndex=t.ix,a.c.setGroupProperty(PropertyInterface("Copies",s)),a.o.setGroupProperty(PropertyInterface("Offset",s)),Object.defineProperties(r,{copies:{get:ExpressionPropertyInterface(a.c)},offset:{get:ExpressionPropertyInterface(a.o)},_name:{value:t.nm}}),r.mn=t.mn,r}return function(e,i,r){var s;function a(t){if("number"==typeof t)return 0===(t=void 0===t?1:t)?r:s[t-1];for(var e=0,i=s.length;e<i;){if(s[e]._name===t)return s[e];e+=1}return null}return a.propertyGroup=propertyGroupFactory(a,(function(){return r})),s=t(e,i,a.propertyGroup),a.numProperties=s.length,a._name="Contents",a}}(),TextExpressionInterface=function(t){var e;function i(t){return"ADBE Text Document"===t?i.sourceText:null}return Object.defineProperty(i,"sourceText",{get:function(){t.textProperty.getValue();var i=t.textProperty.currentData.t;return void 0!==i&&(t.textProperty.currentData.t=void 0,(e=new String(i)).value=i||new String(i)),e}}),i};function _typeof$2(t){return(_typeof$2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var FootageInterface=(dataInterfaceFactory=function(t){function e(t){return"Outline"===t?e.outlineInterface():null}return e._name="Outline",e.outlineInterface=function(t){var e="",i=t.getFootageData();function r(t){if(i[t])return e=t,"object"===_typeof$2(i=i[t])?r:i;var s=t.indexOf(e);if(-1!==s){var a=parseInt(t.substr(s+e.length),10);return"object"===_typeof$2(i=i[a])?r:i}return""}return function(){return e="",i=t.getFootageData(),r}}(t),e},function(t){function e(t){return"Data"===t?e.dataInterface:null}return e._name="Data",e.dataInterface=dataInterfaceFactory(t),e}),dataInterfaceFactory,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(t){return interfaces[t]||null}function _typeof$1(t){return(_typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function seedRandom(t,e){var i=this,r=e.pow(256,6),s=e.pow(2,52),a=2*s;function n(t){var e,i=t.length,r=this,s=0,a=r.i=r.j=0,n=r.S=[];for(i||(t=[i++]);s<256;)n[s]=s++;for(s=0;s<256;s++)n[s]=n[a=255&a+t[s%i]+(e=n[s])],n[a]=e;r.g=function(t){for(var e,i=0,s=r.i,a=r.j,n=r.S;t--;)e=n[s=255&s+1],i=256*i+n[255&(n[s]=n[a=255&a+e])+(n[a]=e)];return r.i=s,r.j=a,i}}function o(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function l(t,e){for(var i,r=t+"",s=0;s<r.length;)e[255&s]=255&(i^=19*e[255&s])+r.charCodeAt(s++);return c(e)}function c(t){return String.fromCharCode.apply(0,t)}e.seedrandom=function(p,h,d){var f=[],m=l(function t(e,i){var r,s=[],a=_typeof$1(e);if(i&&"object"==a)for(r in e)try{s.push(t(e[r],i-1))}catch(t){}return s.length?s:"string"==a?e:e+"\0"}((h=!0===h?{entropy:!0}:h||{}).entropy?[p,c(t)]:null===p?function(){try{var e=new Uint8Array(256);return(i.crypto||i.msCrypto).getRandomValues(e),c(e)}catch(e){var r=i.navigator,s=r&&r.plugins;return[+new Date,i,s,i.screen,c(t)]}}():p,3),f),u=new n(f),y=function(){for(var t=u.g(6),e=r,i=0;t<s;)t=256*(t+i),e*=256,i=u.g(1);for(;t>=a;)t/=2,e/=2,i>>>=1;return(t+i)/e};return y.int32=function(){return 0|u.g(4)},y.quick=function(){return u.g(4)/4294967296},y.double=y,l(c(u.S),t),(h.pass||d||function(t,i,r,s){return s&&(s.S&&o(s,u),t.state=function(){return o(u,{})}),r?(e.random=t,i):t})(y,m,"global"in h?h.global:this==e,h.state)},l(e.random(),t)}function initialize$2(t){seedRandom([],t)}var propTypes={SHAPE:"shape"};function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null;function $bm_isInstanceOfArray(t){return t.constructor===Array||t.constructor===Float32Array}function isNumerable(t,e){return"number"===t||"boolean"===t||"string"===t||e instanceof Number}function $bm_neg(t){var e=_typeof(t);if("number"===e||"boolean"===e||t instanceof Number)return-t;if($bm_isInstanceOfArray(t)){var i,r=t.length,s=[];for(i=0;i<r;i+=1)s[i]=-t[i];return s}return t.propType?t.v:-t}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(t,e){var i=_typeof(t),r=_typeof(e);if("string"===i||"string"===r)return t+e;if(isNumerable(i,t)&&isNumerable(r,e))return t+e;if($bm_isInstanceOfArray(t)&&isNumerable(r,e))return(t=t.slice(0))[0]+=e,t;if(isNumerable(i,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t+e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var s=0,a=t.length,n=e.length,o=[];s<a||s<n;)("number"==typeof t[s]||t[s]instanceof Number)&&("number"==typeof e[s]||e[s]instanceof Number)?o[s]=t[s]+e[s]:o[s]=void 0===e[s]?t[s]:t[s]||e[s],s+=1;return o}return 0}var add=sum;function sub(t,e){var i=_typeof(t),r=_typeof(e);if(isNumerable(i,t)&&isNumerable(r,e))return"string"===i&&(t=parseInt(t,10)),"string"===r&&(e=parseInt(e,10)),t-e;if($bm_isInstanceOfArray(t)&&isNumerable(r,e))return(t=t.slice(0))[0]-=e,t;if(isNumerable(i,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t-e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var s=0,a=t.length,n=e.length,o=[];s<a||s<n;)("number"==typeof t[s]||t[s]instanceof Number)&&("number"==typeof e[s]||e[s]instanceof Number)?o[s]=t[s]-e[s]:o[s]=void 0===e[s]?t[s]:t[s]||e[s],s+=1;return o}return 0}function mul(t,e){var i,r,s,a=_typeof(t),n=_typeof(e);if(isNumerable(a,t)&&isNumerable(n,e))return t*e;if($bm_isInstanceOfArray(t)&&isNumerable(n,e)){for(s=t.length,i=createTypedArray("float32",s),r=0;r<s;r+=1)i[r]=t[r]*e;return i}if(isNumerable(a,t)&&$bm_isInstanceOfArray(e)){for(s=e.length,i=createTypedArray("float32",s),r=0;r<s;r+=1)i[r]=t*e[r];return i}return 0}function div(t,e){var i,r,s,a=_typeof(t),n=_typeof(e);if(isNumerable(a,t)&&isNumerable(n,e))return t/e;if($bm_isInstanceOfArray(t)&&isNumerable(n,e)){for(s=t.length,i=createTypedArray("float32",s),r=0;r<s;r+=1)i[r]=t[r]/e;return i}if(isNumerable(a,t)&&$bm_isInstanceOfArray(e)){for(s=e.length,i=createTypedArray("float32",s),r=0;r<s;r+=1)i[r]=t/e[r];return i}return 0}function mod(t,e){return"string"==typeof t&&(t=parseInt(t,10)),"string"==typeof e&&(e=parseInt(e,10)),t%e}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(t,e,i){if(e>i){var r=i;i=e,e=r}return Math.min(Math.max(t,e),i)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if("number"==typeof t||t instanceof Number)return e=e||0,Math.abs(t-e);var i;e||(e=helperLengthArray);var r=Math.min(t.length,e.length),s=0;for(i=0;i<r;i+=1)s+=Math.pow(e[i]-t[i],2);return Math.sqrt(s)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var e,i,r=t[0],s=t[1],a=t[2],n=Math.max(r,s,a),o=Math.min(r,s,a),l=(n+o)/2;if(n===o)e=0,i=0;else{var c=n-o;switch(i=l>.5?c/(2-n-o):c/(n+o),n){case r:e=(s-a)/c+(s<a?6:0);break;case s:e=(a-r)/c+2;break;case a:e=(r-s)/c+4}e/=6}return[e,i,l,t[3]]}function hue2rgb(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function hslToRgb(t){var e,i,r,s=t[0],a=t[1],n=t[2];if(0===a)e=n,r=n,i=n;else{var o=n<.5?n*(1+a):n+a-n*a,l=2*n-o;e=hue2rgb(l,o,s+1/3),i=hue2rgb(l,o,s),r=hue2rgb(l,o,s-1/3)}return[e,i,r,t[3]]}function linear(t,e,i,r,s){if(void 0!==r&&void 0!==s||(r=e,s=i,e=0,i=1),i<e){var a=i;i=e,e=a}if(t<=e)return r;if(t>=i)return s;var n,o=i===e?0:(t-e)/(i-e);if(!r.length)return r+(s-r)*o;var l=r.length,c=createTypedArray("float32",l);for(n=0;n<l;n+=1)c[n]=r[n]+(s[n]-r[n])*o;return c}function random(t,e){if(void 0===e&&(void 0===t?(t=0,e=1):(e=t,t=void 0)),e.length){var i,r=e.length;t||(t=createTypedArray("float32",r));var s=createTypedArray("float32",r),a=BMMath.random();for(i=0;i<r;i+=1)s[i]=t[i]+a*(e[i]-t[i]);return s}return void 0===t&&(t=0),t+BMMath.random()*(e-t)}function createPath(t,e,i,r){var s,a=t.length,n=shapePool.newElement();n.setPathData(!!r,a);var o,l,c=[0,0];for(s=0;s<a;s+=1)o=e&&e[s]?e[s]:c,l=i&&i[s]?i[s]:c,n.setTripleAt(t[s][0],t[s][1],l[0]+t[s][0],l[1]+t[s][1],o[0]+t[s][0],o[1]+t[s][1],s,!0);return n}function initiateExpression(elem,data,property){function noOp(t){return t}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.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(t,e){var i,r,s=this.pv.length?this.pv.length:1,a=createTypedArray("float32",s),n=Math.floor(5*time);for(i=0,r=0;i<n;){for(r=0;r<s;r+=1)a[r]+=-e+2*e*BMMath.random();i+=1}var o=5*time,l=o-Math.floor(o),c=createTypedArray("float32",s);if(s>1){for(r=0;r<s;r+=1)c[r]=this.pv[r]+a[r]+(-e+2*e*BMMath.random())*l;return c}return this.pv+a[0]+(-e+2*e*BMMath.random())*l}.bind(this);function loopInDuration(t,e){return loopIn(t,e,!0)}function loopOutDuration(t,e){return loopOut(t,e,!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(t,e){var i=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],r=Math.atan2(i[0],Math.sqrt(i[1]*i[1]+i[2]*i[2]))/degToRads;return[-Math.atan2(i[1],i[2])/degToRads,r,0]}function easeOut(t,e,i,r,s){return applyEase(easeOutBez,t,e,i,r,s)}function easeIn(t,e,i,r,s){return applyEase(easeInBez,t,e,i,r,s)}function ease(t,e,i,r,s){return applyEase(easeInOutBez,t,e,i,r,s)}function applyEase(t,e,i,r,s,a){void 0===s?(s=i,a=r):e=(e-i)/(r-i),e>1?e=1:e<0&&(e=0);var n=t(e);if($bm_isInstanceOfArray(s)){var o,l=s.length,c=createTypedArray("float32",l);for(o=0;o<l;o+=1)c[o]=(a[o]-s[o])*n+s[o];return c}return(a-s)*n+s}function nearestKey(t){var e,i,r,s=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(i=-1,(t*=elem.comp.globalData.frameRate)<data.k[0].t)i=1,r=data.k[0].t;else{for(e=0;e<s-1;e+=1){if(t===data.k[e].t){i=e+1,r=data.k[e].t;break}if(t>data.k[e].t&&t<data.k[e+1].t){t-data.k[e].t>data.k[e+1].t-t?(i=e+2,r=data.k[e+1].t):(i=e+1,r=data.k[e].t);break}}-1===i&&(i=e+1,r=data.k[e].t)}else i=0,r=0;var a={};return a.index=i,a.time=r/elem.comp.globalData.frameRate,a}function key(t){var e,i,r;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var s=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;for(r=s.length,i=0;i<r;i+=1)e[i]=s[i],e.value[i]=s[i];return e}function framesToTime(t,e){return e||(e=elem.comp.globalData.frameRate),t/e}function timeToFrames(t,e){return t||0===t||(t=time),e||(e=elem.comp.globalData.frameRate),t*e}function seedRandom(t){BMMath.seedrandom(randSeed+t)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(t,e){return"string"==typeof value?void 0===e?value.substring(t):value.substring(t,e):""}function substr(t,e){return"string"==typeof value?void 0===e?value.substr(t):value.substr(t,e):""}function posterizeTime(t){time=0===t?0:Math.floor(time*t)/t,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(t){return value=t,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,numKe
vendor: 13,776 bytes, line 2
2ys,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],ob}(),expressionHelpers={searchExpressions:function(t,e,i){e.x&&(i.k=!0,i.x=!0,i.initiateExpression=ExpressionManager.initiateExpression,i.effectsSequence.push(i.initiateExpression(t,e,i).bind(i)))},getSpeedAtTime:function(t){var e=this.getValueAtTime(t),i=this.getValueAtTime(t+-.01),r=0;if(e.length){var s;for(s=0;s<e.length;s+=1)r+=Math.pow(i[s]-e[s],2);r=100*Math.sqrt(r)}else r=0;return r},getVelocityAtTime:function(t){if(void 0!==this.vel)return this.vel;var e,i,r=this.getValueAtTime(t),s=this.getValueAtTime(t+-.001);if(r.length)for(e=createTypedArray("float32",r.length),i=0;i<r.length;i+=1)e[i]=(s[i]-r[i])/-.001;else e=(s-r)/-.001;return e},getValueAtTime:function(t){return t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<t?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(t,this._cachingAtTime),this._cachingAtTime.lastFrame=t),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(t){this.propertyGroup=t}};function addPropertyDecorator(){function t(t,e,i){if(!this.k||!this.keyframes)return this.pv;t=t?t.toLowerCase():"";var r,s,a,n,o,l=this.comp.renderedFrame,c=this.keyframes,p=c[c.length-1].t;if(l<=p)return this.pv;if(i?s=p-(r=e?Math.abs(p-this.elem.comp.globalData.frameRate*e):Math.max(0,p-this.elem.data.ip)):((!e||e>c.length-1)&&(e=c.length-1),r=p-(s=c[c.length-1-e].t)),"pingpong"===t){if(Math.floor((l-s)/r)%2!=0)return this.getValueAtTime((r-(l-s)%r+s)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var h=this.getValueAtTime(s/this.comp.globalData.frameRate,0),d=this.getValueAtTime(p/this.comp.globalData.frameRate,0),f=this.getValueAtTime(((l-s)%r+s)/this.comp.globalData.frameRate,0),m=Math.floor((l-s)/r);if(this.pv.length){for(n=(o=new Array(h.length)).length,a=0;a<n;a+=1)o[a]=(d[a]-h[a])*m+f[a];return o}return(d-h)*m+f}if("continue"===t){var u=this.getValueAtTime(p/this.comp.globalData.frameRate,0),y=this.getValueAtTime((p-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(n=(o=new Array(u.length)).length,a=0;a<n;a+=1)o[a]=u[a]+(u[a]-y[a])*((l-p)/this.comp.globalData.frameRate)/5e-4;return o}return u+(l-p)/.001*(u-y)}}return this.getValueAtTime(((l-s)%r+s)/this.comp.globalData.frameRate,0)}function e(t,e,i){if(!this.k)return this.pv;t=t?t.toLowerCase():"";var r,s,a,n,o,l=this.comp.renderedFrame,c=this.keyframes,p=c[0].t;if(l>=p)return this.pv;if(i?s=p+(r=e?Math.abs(this.elem.comp.globalData.frameRate*e):Math.max(0,this.elem.data.op-p)):((!e||e>c.length-1)&&(e=c.length-1),r=(s=c[e].t)-p),"pingpong"===t){if(Math.floor((p-l)/r)%2==0)return this.getValueAtTime(((p-l)%r+p)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var h=this.getValueAtTime(p/this.comp.globalData.frameRate,0),d=this.getValueAtTime(s/this.comp.globalData.frameRate,0),f=this.getValueAtTime((r-(p-l)%r+p)/this.comp.globalData.frameRate,0),m=Math.floor((p-l)/r)+1;if(this.pv.length){for(n=(o=new Array(h.length)).length,a=0;a<n;a+=1)o[a]=f[a]-(d[a]-h[a])*m;return o}return f-(d-h)*m}if("continue"===t){var u=this.getValueAtTime(p/this.comp.globalData.frameRate,0),y=this.getValueAtTime((p+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(n=(o=new Array(u.length)).length,a=0;a<n;a+=1)o[a]=u[a]+(u[a]-y[a])*(p-l)/.001;return o}return u+(u-y)*(p-l)/.001}}return this.getValueAtTime((r-((p-l)%r+p))/this.comp.globalData.frameRate,0)}function i(t,e){if(!this.k)return this.pv;if(t=.5*(t||.4),(e=Math.floor(e||5))<=1)return this.pv;var i,r,s=this.comp.renderedFrame/this.comp.globalData.frameRate,a=s-t,n=e>1?(s+t-a)/(e-1):1,o=0,l=0;for(i=this.pv.length?createTypedArray("float32",this.pv.length):0;o<e;){if(r=this.getValueAtTime(a+o*n),this.pv.length)for(l=0;l<this.pv.length;l+=1)i[l]+=r[l];else i+=r;o+=1}if(this.pv.length)for(l=0;l<this.pv.length;l+=1)i[l]/=e;else i/=e;return i}function r(t){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var e=this._transformCachingAtTime.v;if(e.cloneFromProps(this.pre.props),this.appliedTransformations<1){var i=this.a.getValueAtTime(t);e.translate(-i[0]*this.a.mult,-i[1]*this.a.mult,i[2]*this.a.mult)}if(this.appliedTransformations<2){var r=this.s.getValueAtTime(t);e.scale(r[0]*this.s.mult,r[1]*this.s.mult,r[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var s=this.sk.getValueAtTime(t),a=this.sa.getValueAtTime(t);e.skewFromAxis(-s*this.sk.mult,a*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var n=this.r.getValueAtTime(t);e.rotate(-n*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var o=this.rz.getValueAtTime(t),l=this.ry.getValueAtTime(t),c=this.rx.getValueAtTime(t),p=this.or.getValueAtTime(t);e.rotateZ(-o*this.rz.mult).rotateY(l*this.ry.mult).rotateX(c*this.rx.mult).rotateZ(-p[2]*this.or.mult).rotateY(p[1]*this.or.mult).rotateX(p[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var h=this.px.getValueAtTime(t),d=this.py.getValueAtTime(t);if(this.data.p.z){var f=this.pz.getValueAtTime(t);e.translate(h*this.px.mult,d*this.py.mult,-f*this.pz.mult)}else e.translate(h*this.px.mult,d*this.py.mult,0)}else{var m=this.p.getValueAtTime(t);e.translate(m[0]*this.p.mult,m[1]*this.p.mult,-m[2]*this.p.mult)}return e}function s(){return this.v.clone(new Matrix)}var a=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(t,e,i){var n=a(t,e,i);return n.dynamicProperties.length?n.getValueAtTime=r.bind(n):n.getValueAtTime=s.bind(n),n.setGroupProperty=expressionHelpers.setGroupProperty,n};var n=PropertyFactory.getProp;PropertyFactory.getProp=function(r,s,a,o,l){var c=n(r,s,a,o,l);c.kf?c.getValueAtTime=expressionHelpers.getValueAtTime.bind(c):c.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(c),c.setGroupProperty=expressionHelpers.setGroupProperty,c.loopOut=t,c.loopIn=e,c.smooth=i,c.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(c),c.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(c),c.numKeys=1===s.a?s.k.length:0,c.propertyIndex=s.ix;var p=0;return 0!==a&&(p=createTypedArray("float32",1===s.a?s.k[0].s.length:s.k.length)),c._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:p},expressionHelpers.searchExpressions(r,s,c),c.k&&l.addDynamicProperty(c),c};var o=ShapePropertyFactory.getConstructorFunction(),l=ShapePropertyFactory.getKeyframedConstructorFunction();function c(){}c.prototype={vertices:function(t,e){this.k&&this.getValue();var i,r=this.v;void 0!==e&&(r=this.getValueAtTime(e,0));var s=r._length,a=r[t],n=r.v,o=createSizedArray(s);for(i=0;i<s;i+=1)o[i]="i"===t||"o"===t?[a[i][0]-n[i][0],a[i][1]-n[i][1]]:[a[i][0],a[i][1]];return o},points:function(t){return this.vertices("v",t)},inTangents:function(t){return this.vertices("i",t)},outTangents:function(t){return this.vertices("o",t)},isClosed:function(){return this.v.c},pointOnPath:function(t,e){var i=this.v;void 0!==e&&(i=this.getValueAtTime(e,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(i));for(var r,s=this._segmentsLength,a=s.lengths,n=s.totalLength*t,o=0,l=a.length,c=0;o<l;){if(c+a[o].addedLength>n){var p=o,h=i.c&&o===l-1?0:o+1,d=(n-c)/a[o].addedLength;r=bez.getPointInSegment(i.v[p],i.v[h],i.o[p],i.i[h],d,a[o]);break}c+=a[o].addedLength,o+=1}return r||(r=i.c?[i.v[0][0],i.v[0][1]]:[i.v[i._length-1][0],i.v[i._length-1][1]]),r},vectorOnPath:function(t,e,i){1==t?t=this.v.c:0==t&&(t=.999);var r=this.pointOnPath(t,e),s=this.pointOnPath(t+.001,e),a=s[0]-r[0],n=s[1]-r[1],o=Math.sqrt(Math.pow(a,2)+Math.pow(n,2));return 0===o?[0,0]:"tangent"===i?[a/o,n/o]:[-n/o,a/o]},tangentOnPath:function(t,e){return this.vectorOnPath(t,e,"tangent")},normalOnPath:function(t,e){return this.vectorOnPath(t,e,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([c],o),extendPrototype([c],l),l.prototype.getValueAtTime=function(t){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<t?this._caching.lastIndex:0,this._cachingAtTime.lastTime=t,this.interpolateShape(t,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},l.prototype.initiateExpression=ExpressionManager.initiateExpression;var p=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(t,e,i,r,s){var a=p(t,e,i,r,s);return a.propertyIndex=e.ix,a.lock=!1,3===i?expressionHelpers.searchExpressions(t,e.pt,a):4===i&&expressionHelpers.searchExpressions(t,e.ks,a),a.k&&t.addDynamicProperty(a),a}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(t,e){var i=this.calculateExpression(e);if(t.t!==i){var r={};return this.copyData(r,t),r.t=i.toString(),r.__complete=!1,r}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=t||e,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(){}function SVGTintFilter(t,e,i,r,s){this.filterManager=e;var a=createNS("feColorMatrix");a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","linearRGB"),a.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"),a.setAttribute("result",r+"_tint_1"),t.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"),t.appendChild(a),this.matrixFilter=a;var n=this.createMergeNode(r,[s,r+"_tint_1",r+"_tint_2"]);t.appendChild(n)}function SVGFillFilter(t,e,i,r){this.filterManager=e;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),s.setAttribute("result",r),t.appendChild(s),this.matrixFilter=s}function SVGStrokeEffect(t,e,i){this.initialized=!1,this.filterManager=e,this.elem=i,this.paths=[]}function SVGTritoneFilter(t,e,i,r){this.filterManager=e;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","linearRGB"),s.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"),t.appendChild(s);var a=createNS("feComponentTransfer");a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",r),this.matrixFilter=a;var n=createNS("feFuncR");n.setAttribute("type","table"),a.appendChild(n),this.feFuncR=n;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,t.appendChild(a)}function SVGProLevelsFilter(t,e,i,r){this.filterManager=e;var s=this.filterManager.effectElements,a=createNS("feComponentTransfer");(s[10].p.k||0!==s[10].p.v||s[11].p.k||1!==s[11].p.v||s[12].p.k||1!==s[12].p.v||s[13].p.k||0!==s[13].p.v||s[14].p.k||1!==s[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",a)),(s[17].p.k||0!==s[17].p.v||s[18].p.k||1!==s[18].p.v||s[19].p.k||1!==s[19].p.v||s[20].p.k||0!==s[20].p.v||s[21].p.k||1!==s[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",a)),(s[24].p.k||0!==s[24].p.v||s[25].p.k||1!==s[25].p.v||s[26].p.k||1!==s[26].p.v||s[27].p.k||0!==s[27].p.v||s[28].p.k||1!==s[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",a)),(s[31].p.k||0!==s[31].p.v||s[32].p.k||1!==s[32].p.v||s[33].p.k||1!==s[33].p.v||s[34].p.k||0!==s[34].p.v||s[35].p.k||1!==s[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",a)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(a.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(a)),(s[3].p.k||0!==s[3].p.v||s[4].p.k||1!==s[4].p.v||s[5].p.k||1!==s[5].p.v||s[6].p.k||0!==s[6].p.v||s[7].p.k||1!==s[7].p.v)&&((a=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",r),t.appendChild(a),this.feFuncRComposed=this.createFeFunc("feFuncR",a),this.feFuncGComposed=this.createFeFunc("feFuncG",a),this.feFuncBComposed=this.createFeFunc("feFuncB",a))}function SVGDropShadowEffect(t,e,i,r,s){var a=e.container.globalData.renderConfig.filterSize,n=e.data.fs||a;t.setAttribute("x",n.x||a.x),t.setAttribute("y",n.y||a.y),t.setAttribute("width",n.width||a.width),t.setAttribute("height",n.height||a.height),this.filterManager=e;var o=createNS("feGaussianBlur");o.setAttribute("in","SourceAlpha"),o.setAttribute("result",r+"_drop_shadow_1"),o.setAttribute("stdDeviation","0"),this.feGaussianBlur=o,t.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.feOff
vendor: 4,189 bytes, line 2
2set=l,t.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,t.appendChild(c);var p=createNS("feComposite");p.setAttribute("in",r+"_drop_shadow_3"),p.setAttribute("in2",r+"_drop_shadow_2"),p.setAttribute("operator","in"),p.setAttribute("result",r+"_drop_shadow_4"),t.appendChild(p);var h=this.createMergeNode(r,[r+"_drop_shadow_4",s]);t.appendChild(h)}SVGComposableEffect.prototype={createMergeNode:function(t,e){var i,r,s=createNS("feMerge");for(s.setAttribute("result",t),r=0;r<e.length;r+=1)(i=createNS("feMergeNode")).setAttribute("in",e[r]),s.appendChild(i),s.appendChild(i);return s}},extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v/100;this.matrixFilter.setAttribute("values",i[0]-e[0]+" 0 0 0 "+e[0]+" "+(i[1]-e[1])+" 0 0 0 "+e[1]+" "+(i[2]-e[2])+" 0 0 0 "+e[2]+" 0 0 0 "+r+" 0")}},SVGFillFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[2].p.v,i=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+e[0]+" 0 0 0 0 "+e[1]+" 0 0 0 0 "+e[2]+" 0 0 0 "+i+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var t,e,i,r,s=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(r=this.elem.maskManager.masksProperties.length,i=0):r=1+(i=this.filterManager.effectElements[0].p.v-1),(e=createNS("g")).setAttribute("fill","none"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-dashoffset",1);i<r;i+=1)t=createNS("path"),e.appendChild(t),this.paths.push({p:t,m:i});if(3===this.filterManager.effectElements[10].p.v){var a=createNS("mask"),n=createElementID();a.setAttribute("id",n),a.setAttribute("mask-type","alpha"),a.appendChild(e),this.elem.globalData.defs.appendChild(a);var o=createNS("g");for(o.setAttribute("mask","url("+getLocationHref()+"#"+n+")");s[0];)o.appendChild(s[0]);this.elem.layerElement.appendChild(o),this.masker=a,e.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(s=this.elem.layerElement.children||this.elem.layerElement.childNodes;s.length;)this.elem.layerElement.removeChild(s[0]);this.elem.layerElement.appendChild(e),this.elem.layerElement.removeAttribute("mask"),e.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=e},SVGStrokeEffect.prototype.renderFrame=function(t){var e;this.initialized||this.initialize();var i,r,s=this.paths.length;for(e=0;e<s;e+=1)if(-1!==this.paths[e].m&&(i=this.elem.maskManager.viewData[this.paths[e].m],r=this.paths[e].p,(t||this.filterManager._mdf||i.prop._mdf)&&r.setAttribute("d",i.lastPath),t||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||i.prop._mdf)){var a;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var n=.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*n+" ";var c,p=l*(o-n),h=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,d=Math.floor(p/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((t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(t||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("op
2acity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(t||this.filterManager.effectElements[3].p._mdf)){var f=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*f[0])+","+bmFloor(255*f[1])+","+bmFloor(255*f[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v,s=r[0]+" "+i[0]+" "+e[0],a=r[1]+" "+i[1]+" "+e[1],n=r[2]+" "+i[2]+" "+e[2];this.feFuncR.setAttribute("tableValues",s),this.feFuncG.setAttribute("tableValues",a),this.feFuncB.setAttribute("tableValues",n)}},SVGProLevelsFilter.prototype.createFeFunc=function(t,e){var i=createNS(t);return i.setAttribute("type","table"),e.appendChild(i),i},SVGProLevelsFilter.prototype.getTableValue=function(t,e,i,r,s){for(var a,n,o=0,l=Math.min(t,e),c=Math.max(t,e),p=Array.call(null,{length:256}),h=0,d=s-r,f=e-t;o<=256;)n=(a=o/256)<=l?f<0?s:r:a>=c?f<0?r:s:r+d*Math.pow((a-t)/f,1/i),p[h]=n,h+=1,o+=256/255;return p.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,i=this.filterManager.effectElements;this.feFuncRComposed&&(t||i[3].p._mdf||i[4].p._mdf||i[5].p._mdf||i[6].p._mdf||i[7].p._mdf)&&(e=this.getTableValue(i[3].p.v,i[4].p.v,i[5].p.v,i[6].p.v,i[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||i[10].p._mdf||i[11].p._mdf||i[12].p._mdf||i[13].p._mdf||i[14].p._mdf)&&(e=this.getTableValue(i[10].p.v,i[11].p.v,i[12].p.v,i[13].p.v,i[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||i[17].p._mdf||i[18].p._mdf||i[19].p._mdf||i[20].p._mdf||i[21].p._mdf)&&(e=this.getTableValue(i[17].p.v,i[18].p.v,i[19].p.v,i[20].p.v,i[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||i[24].p._mdf||i[25].p._mdf||i[26].p._mdf||i[27].p._mdf||i[28].p._mdf)&&(e=this.getTableValue(i[24].p.v,i[25].p.v,i[26].p.v,i[27].p.v,i[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||i[31].p._mdf||i[32].p._mdf||i[33].p._mdf||i[34].p._mdf||i[35].p._mdf)&&(e=this.getTableValue(i[31].p.v,i[32].p.v,i[33].p.v,i[34].p.v,i[35].p.v),this.feFuncA.setAttribute("tableValues",e))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*e[0]),Math.round(255*e[1]),Math.round(255*e[2])))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var i=this.filterManager.effectElements[3].p.v,r=(this.filterManager.effectElements[2].p.v-90)*degToRads,s=i*Math.cos(r),a=i*Math.sin(r);this.feOffset.setAttribute("dx",s),this.feOffset.setAttribute("dy",a)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,i){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=i,i.matteElement=createNS("g"),i.matteElement.appendChild(i.layerElement),i.matteElement.appendChild(i.transformedElement),i.baseElement=i.matteElement}function SVGGaussianBlurEffect(t,e,i,r){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","300%"),t.setAttribute("height","300%"),this.filterManager=e;var s=createNS("feGaussianBlur");s.setAttribute("result",r),t.appendChild(s),this.feGaussianBlur=s}return SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,i=_svgMatteSymbols.length;e<i;){if(_svgMatteSymbols[e]===t)return _svgMatteSymbols[e];e+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(t,e){var i=t.layerElement.parentNode;if(i){for(var r,s=i.children,a=0,n=s.length;a<n&&s[a]!==t.layerElement;)a+=1;a<=n-2&&(r=s[a+1]);var o=createNS("use");o.setAttribute("href","#"+e),r?i.insertBefore(o,r):i.appendChild(o)}},SVGMatte3Effect.prototype.setElementAsMask=function(t,e){if(!this.findSymbol(e)){var i=createElementID(),r=createNS("mask");r.setAttribute("id",e.layerId),r.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(e);var s=t.globalData.defs;s.appendChild(r);var a=createNS("symbol");a.setAttribute("id",i),this.replaceInParent(e,i),a.appendChild(e.layerElement),s.appendChild(a);var n=createNS("use");n.setAttribute("href","#"+i),r.appendChild(n),e.data.hd=!1,e.show()}t.setMatte(e.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,e=this.elem.comp.elements,i=0,r=e.length;i<r;)e[i]&&e[i].data.ind===t&&this.setElementAsMask(this.elem,e[i]),i+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=.3*this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,r=3==i?0:e,s=2==i?0:e;this.feGaussianBlur.setAttribute("stdDeviation",r+" "+s);var a=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",a)}},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(20,SVGTintFilter,!0),registerEffect(21,SVGFillFilter,!0),registerEffect(22,SVGStrokeEffect,!1),registerEffect(23,SVGTritoneFilter,!0),registerEffect(24,SVGProLevelsFilter,!0),registerEffect(25,SVGDropShadowEffect,!0),registerEffect(28,SVGMatte3Effect,!1),registerEffect(29,SVGGaussianBlurEffect,!0),lottie},module.exports=e())},function(t){t.exports=JSON.parse('{"v":"5.7.6","fr":30,"ip":0,"op":39,"w":40,"h":40,"nm":"Loader L Loop OUT","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":3,"nm":"Center","sr":1,"ks":{"o":{"a":0,"k":0,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[20,20,0],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"ef":[{"ty":5,"nm":"Time","np":3,"mn":"ADBE Slider Control","ix":1,"en":1,"ef":[{"ty":0,"nm":"Slider","mn":"ADBE Slider Control-0001","ix":1,"v":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[0]},{"t":39,"s":[1]}],"ix":1}}]}],"ip":0,"op":40,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Block3","parent":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":10,"s":[6.495,0,0],"to":[-0.021,0,0],"ti":[0.07,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":11,"s":[6.369,0,0],"to":[-0.07,0,0],"ti":[0.123,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":12,"s":[6.078,0,0],"to":[-0.123,0,0],"ti":[0.174,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":13,"s":[5.629,0,0],"to":[-0.174,0,0],"ti":[0.22,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":14,"s":[5.035,0,0],"to":[-0.22,0,0],"ti":[0.26,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":15,"s":[4.31,0,0],"to":[-0.26,0,0],"ti":[0.294,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":16,"s":[3.474,0,0],"to":[-0.294,0,0],"ti":[0.32,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":17,"s":[2.548,0,0],"to":[-0.32,0,0],"ti":[0.337,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":18,"s":[1.556,0,0],"to":[-0.337,0,0],"ti":[0.346,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":19,"s":[0.523,0,0],"to":[-0.346,0,0],"ti":[0.346,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":20,"s":[-0.523,0,0],"to":[-0.346,0,0],"ti":[0.337,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":21,"s":[-1.556,0,0],"to":[-0.337,0,0],"ti":[0.32,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":22,"s":[-2.548,0,0],"to":[-0.32,0,0],"ti":[0.294,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":23,"s":[-3.474,0,0],"to":[-0.294,0,0],"ti":[0.26,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":24,"s":[-4.31,0,0],"to":[-0.26,0,0],"ti":[0.22,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":25,"s":[-5.035,0,0],"to":[-0.22,0,0],"ti":[0.174,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":26,"s":[-5.629,0,0],"to":[-0.174,0,0],"ti":[0.123,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":27,"s":[-6.078,0,0],"to":[-0.123,0,0],"ti":[0.07,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":28,"s":[-6.369,0,0],"to":[-0.07,0,0],"ti":[0.021,0,0]},{"t":29,"s":[-6.495,0,0]}],"ix":2,"l":2},"a":{"a":0,"k":[-0.5,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"ef":[{"ty":5,"nm":"Pos","np":3,"mn":"ADBE Slider Control","ix":1,"en":1,"ef":[{"ty":0,"nm":"Slider","mn":"ADBE Slider Control-0001","ix":1,"v":{"a":0,"k":1,"ix":1,"x":"var $bm_rt;\\n$bm_rt = Math.sin($bm_mul($bm_mul(thisComp.layer(\'Center\').effect(\'Time\')(\'Slider\'), Math.PI), 2));"}}]}],"shapes":[{"ty":"rc","d":1,"s":{"a":0,"k":[7,24],"ix":2},"p":{"a":0,"k":[-3.5,0],"ix":3},"r":{"a":0,"k":0,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"rc","d":1,"s":{"a":0,"k":[6,14],"ix":2},"p":{"a":0,"k":[3,0],"ix":3},"r":{"a":0,"k":0,"ix":4},"nm":"Rectangle Path 2","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0.988220214844,0.419616699219,0.733337402344,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false}],"ip":10,"op":30,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Block1","parent":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":0,"s":[0,0,0],"to":[-0.174,0,0],"ti":[0.343,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":1,"s":[-1.043,0,0],"to":[-0.343,0,0],"ti":[0.33,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":2,"s":[-2.058,0,0],"to":[-0.33,0,0],"ti":[0.308,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":3,"s":[-3.021,0,0],"to":[-0.308,0,0],"ti":[0.278,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":4,"s":[-3.905,0,0],"to":[-0.278,0,0],"ti":[0.241,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167}
vendor: 10,260 bytes, line 2
2,"t":5,"s":[-4.688,0,0],"to":[-0.241,0,0],"ti":[0.197,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":6,"s":[-5.349,0,0],"to":[-0.197,0,0],"ti":[0.149,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":7,"s":[-5.872,0,0],"to":[-0.149,0,0],"ti":[0.097,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":8,"s":[-6.243,0,0],"to":[-0.097,0,0],"ti":[0.042,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":9,"s":[-6.453,0,0],"to":[-0.042,0,0],"ti":[-0.014,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":10,"s":[-6.495,0,0],"to":[0.014,0,0],"ti":[-0.07,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":11,"s":[-6.369,0,0],"to":[0.07,0,0],"ti":[-0.123,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":12,"s":[-6.078,0,0],"to":[0.123,0,0],"ti":[-0.174,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":13,"s":[-5.629,0,0],"to":[0.174,0,0],"ti":[-0.22,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":14,"s":[-5.035,0,0],"to":[0.22,0,0],"ti":[-0.26,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":15,"s":[-4.31,0,0],"to":[0.26,0,0],"ti":[-0.294,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":16,"s":[-3.474,0,0],"to":[0.294,0,0],"ti":[-0.32,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":17,"s":[-2.548,0,0],"to":[0.32,0,0],"ti":[-0.337,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":18,"s":[-1.556,0,0],"to":[0.337,0,0],"ti":[-0.346,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":19,"s":[-0.523,0,0],"to":[0.346,0,0],"ti":[-0.346,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":20,"s":[0.523,0,0],"to":[0.346,0,0],"ti":[-0.337,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":21,"s":[1.556,0,0],"to":[0.337,0,0],"ti":[-0.32,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":22,"s":[2.548,0,0],"to":[0.32,0,0],"ti":[-0.294,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":23,"s":[3.474,0,0],"to":[0.294,0,0],"ti":[-0.26,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":24,"s":[4.31,0,0],"to":[0.26,0,0],"ti":[-0.22,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":25,"s":[5.035,0,0],"to":[0.22,0,0],"ti":[-0.174,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":26,"s":[5.629,0,0],"to":[0.174,0,0],"ti":[-0.123,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":27,"s":[6.078,0,0],"to":[0.123,0,0],"ti":[-0.07,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":28,"s":[6.369,0,0],"to":[0.07,0,0],"ti":[-0.014,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":29,"s":[6.495,0,0],"to":[0.014,0,0],"ti":[0.042,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":30,"s":[6.453,0,0],"to":[-0.042,0,0],"ti":[0.097,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":31,"s":[6.243,0,0],"to":[-0.097,0,0],"ti":[0.149,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":32,"s":[5.872,0,0],"to":[-0.149,0,0],"ti":[0.197,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":33,"s":[5.349,0,0],"to":[-0.197,0,0],"ti":[0.241,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":34,"s":[4.688,0,0],"to":[-0.241,0,0],"ti":[0.278,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":35,"s":[3.905,0,0],"to":[-0.278,0,0],"ti":[0.308,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":36,"s":[3.021,0,0],"to":[-0.308,0,0],"ti":[0.33,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":37,"s":[2.058,0,0],"to":[-0.33,0,0],"ti":[0.343,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":38,"s":[1.043,0,0],"to":[-0.343,0,0],"ti":[0.174,0,0]},{"t":39,"s":[0,0,0]}],"ix":2,"l":2},"a":{"a":0,"k":[-0.5,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"ef":[{"ty":5,"nm":"Pos","np":3,"mn":"ADBE Slider Control","ix":1,"en":1,"ef":[{"ty":0,"nm":"Slider","mn":"ADBE Slider Control-0001","ix":1,"v":{"a":0,"k":-1,"ix":1,"x":"var $bm_rt;\\n$bm_rt = $bm_neg(Math.sin($bm_mul($bm_mul(thisComp.layer(\'Center\').effect(\'Time\')(\'Slider\'), Math.PI), 2)));"}}]}],"shapes":[{"ty":"rc","d":1,"s":{"a":0,"k":[7,24],"ix":2},"p":{"a":0,"k":[-3.5,0],"ix":3},"r":{"a":0,"k":0,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"rc","d":1,"s":{"a":0,"k":[6,14],"ix":2},"p":{"a":0,"k":[3,0],"ix":3},"r":{"a":0,"k":0,"ix":4},"nm":"Rectangle Path 2","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.341186523438,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false}],"ip":0,"op":40,"st":0,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"Block2","parent":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":0,"s":[0,0,0],"to":[0.174,0,0],"ti":[-0.343,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":1,"s":[1.043,0,0],"to":[0.343,0,0],"ti":[-0.33,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":2,"s":[2.058,0,0],"to":[0.33,0,0],"ti":[-0.308,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":3,"s":[3.021,0,0],"to":[0.308,0,0],"ti":[-0.278,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":4,"s":[3.905,0,0],"to":[0.278,0,0],"ti":[-0.241,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":5,"s":[4.688,0,0],"to":[0.241,0,0],"ti":[-0.197,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":6,"s":[5.349,0,0],"to":[0.197,0,0],"ti":[-0.149,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":7,"s":[5.872,0,0],"to":[0.149,0,0],"ti":[-0.097,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":8,"s":[6.243,0,0],"to":[0.097,0,0],"ti":[-0.042,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":9,"s":[6.453,0,0],"to":[0.042,0,0],"ti":[0.014,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":10,"s":[6.495,0,0],"to":[-0.014,0,0],"ti":[0.07,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":11,"s":[6.369,0,0],"to":[-0.07,0,0],"ti":[0.123,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":12,"s":[6.078,0,0],"to":[-0.123,0,0],"ti":[0.174,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":13,"s":[5.629,0,0],"to":[-0.174,0,0],"ti":[0.22,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":14,"s":[5.035,0,0],"to":[-0.22,0,0],"ti":[0.26,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":15,"s":[4.31,0,0],"to":[-0.26,0,0],"ti":[0.294,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":16,"s":[3.474,0,0],"to":[-0.294,0,0],"ti":[0.32,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":17,"s":[2.548,0,0],"to":[-0.32,0,0],"ti":[0.337,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":18,"s":[1.556,0,0],"to":[-0.337,0,0],"ti":[0.346,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":19,"s":[0.523,0,0],"to":[-0.346,0,0],"ti":[0.346,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":20,"s":[-0.523,0,0],"to":[-0.346,0,0],"ti":[0.337,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":21,"s":[-1.556,0,0],"to":[-0.337,0,0],"ti":[0.32,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":22,"s":[-2.548,0,0],"to":[-0.32,0,0],"ti":[0.294,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":23,"s":[-3.474,0,0],"to":[-0.294,0,0],"ti":[0.26,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":24,"s":[-4.31,0,0],"to":[-0.26,0,0],"ti":[0.22,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":25,"s":[-5.035,0,0],"to":[-0.22,0,0],"ti":[0.174,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":26,"s":[-5.629,0,0],"to":[-0.174,0,0],"ti":[0.123,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":27,"s":[-6.078,0,0],"to":[-0.123,0,0],"ti":[0.07,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":28,"s":[-6.369,0,0],"to":[-0.07,0,0],"ti":[0.014,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":29,"s":[-6.495,0,0],"to":[-0.014,0,0],"ti":[-0.042,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":30,"s":[-6.453,0,0],"to":[0.042,0,0],"ti":[-0.097,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":31,"s":[-6.243,0,0],"to":[0.097,0,0],"ti":[-0.149,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":32,"s":[-5.872,0,0],"to":[0.149,0,0],"ti":[-0.197,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":33,"s":[-5.349,0,0],"to":[0.197,0,0],"ti":[-0.241,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":34,"s":[-4.688,0,0],"to":[0.241,0,0],"ti":[-0.278,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":35,"s":[-3.905,0,0],"to":[0.278,0,0],"ti":[-0.308,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":36,"s":[-3.021,0,0],"to":[0.308,0,0],"ti":[-0.33,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":37,"s":[-2.058,0,0],"to":[0.33,0,0],"ti":[-0.343,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":38,"s":[-1.043,0,0],"to":[0.343,0,0],"ti":[-0.174,0,0]},{"t":39,"s":[0,0,0]}],"ix":2,"l":2},"a":{"a":0,"k":[-0.5,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"ef":[{"ty":5,"nm":"Pos","np":3,"mn":"ADBE Slider Control","ix":1,"en":1,"ef":[{"ty":0,"nm":"Slider","mn":"ADBE Slider Control-0001","ix":1,"v":{"a":0,"k":1,"ix":1,"x":"var $bm_rt;\\n$bm_rt = Math.sin($bm_mul($bm_mul(thisComp.layer(\'Center\').effect(\'Time\')(\'Slider\'), Math.PI), 2));"}}]}],"shapes":[{"ty":"rc","d":1,"s":{"a":0,"k":[7,24],"ix":2},"p":{"a":0,"k":[-3.5,0],"ix":3},"r":{"a":0,"k":0,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"rc","d":1,"s":{"a":0,"k":[6,14],"ix":2},"p":{"a":0,"k":[3,0],"ix":3},"r":{"a":0,"k":0,"ix":4},"nm":"Rectangle Path 2","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0.988220214844,0.419616699219,0.733337402344,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false}],"ip":0,"op":40,"st":0,"bm":0}],"markers":[]}')},function(t,e){(function(e){t.exports=e}).call(this,{})}
2,function(t,e,i){"use strict";i.r(e);var r=i(0);for(var s in r)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return r[t]}))}(s)},function(t,e,i){(t.exports=i(1)(!1)).push([t.i,'.loading-wave-dots[data-v-104b1ac0]{position:relative}.loading-wave-dots[data-v-104b1ac0] .wave-item{position:absolute;top:50%;left:50%;display:inline-block;margin-top:-4px;width:8px;height:8px;border-radius:50%;-webkit-animation:loading-wave-dots-104b1ac0 linear 2.8s infinite;animation:loading-wave-dots-104b1ac0 linear 2.8s infinite}.loading-wave-dots[data-v-104b1ac0] .wave-item:first-child{margin-left:-36px}.loading-wave-dots[data-v-104b1ac0] .wave-item:nth-child(2){margin-left:-20px;-webkit-animation-delay:.14s;animation-delay:.14s}.loading-wave-dots[data-v-104b1ac0] .wave-item:nth-child(3){margin-left:-4px;-webkit-animation-delay:.28s;animation-delay:.28s}.loading-wave-dots[data-v-104b1ac0] .wave-item:nth-child(4){margin-left:12px;-webkit-animation-delay:.42s;animation-delay:.42s}.loading-wave-dots[data-v-104b1ac0] .wave-item:last-child{margin-left:28px;-webkit-animation-delay:.56s;animation-delay:.56s}@-webkit-keyframes loading-wave-dots-104b1ac0{0%{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}10%{-webkit-transform:translateY(-6px);transform:translateY(-6px);background:#999}20%{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}to{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}}@keyframes loading-wave-dots-104b1ac0{0%{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}10%{-webkit-transform:translateY(-6px);transform:translateY(-6px);background:#999}20%{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}to{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}}.loading-circles[data-v-104b1ac0] .circle-item{width:5px;height:5px;-webkit-animation:loading-circles-104b1ac0 linear .75s infinite;animation:loading-circles-104b1ac0 linear .75s infinite}.loading-circles[data-v-104b1ac0] .circle-item:first-child{margin-top:-14.5px;margin-left:-2.5px}.loading-circles[data-v-104b1ac0] .circle-item:nth-child(2){margin-top:-11.26px;margin-left:6.26px}.loading-circles[data-v-104b1ac0] .circle-item:nth-child(3){margin-top:-2.5px;margin-left:9.5px}.loading-circles[data-v-104b1ac0] .circle-item:nth-child(4){margin-top:6.26px;margin-left:6.26px}.loading-circles[data-v-104b1ac0] .circle-item:nth-child(5){margin-top:9.5px;margin-left:-2.5px}.loading-circles[data-v-104b1ac0] .circle-item:nth-child(6){margin-top:6.26px;margin-left:-11.26px}.loading-circles[data-v-104b1ac0] .circle-item:nth-child(7){margin-top:-2.5px;margin-left:-14.5px}.loading-circles[data-v-104b1ac0] .circle-item:last-child{margin-top:-11.26px;margin-left:-11.26px}@-webkit-keyframes loading-circles-104b1ac0{0%{background:#dfdfdf}90%{background:#505050}to{background:#dfdfdf}}@keyframes loading-circles-104b1ac0{0%{background:#dfdfdf}90%{background:#505050}to{background:#dfdfdf}}.loading-bubbles[data-v-104b1ac0] .bubble-item{background:#666;-webkit-animation:loading-bubbles-104b1ac0 linear .75s infinite;animation:loading-bubbles-104b1ac0 linear .75s infinite}.loading-bubbles[data-v-104b1ac0] .bubble-item:first-child{margin-top:-12.5px;margin-left:-.5px}.loading-bubbles[data-v-104b1ac0] .bubble-item:nth-child(2){margin-top:-9.26px;margin-left:8.26px}.loading-bubbles[data-v-104b1ac0] .bubble-item:nth-child(3){margin-top:-.5px;margin-left:11.5px}.loading-bubbles[data-v-104b1ac0] .bubble-item:nth-child(4){margin-top:8.26px;margin-left:8.26px}.loading-bubbles[data-v-104b1ac0] .bubble-item:nth-child(5){margin-top:11.5px;margin-left:-.5px}.loading-bubbles[data-v-104b1ac0] .bubble-item:nth-child(6){margin-top:8.26px;margin-left:-9.26px}.loading-bubbles[data-v-104b1ac0] .bubble-item:nth-child(7){margin-top:-.5px;margin-left:-12.5px}.loading-bubbles[data-v-104b1ac0] .bubble-item:last-child{margin-top:-9.26px;margin-left:-9.26px}@-webkit-keyframes loading-bubbles-104b1ac0{0%{width:1px;height:1px;box-shadow:0 0 0 3px #666}90%{width:1px;height:1px;box-shadow:0 0 0 0 #666}to{width:1px;height:1px;box-shadow:0 0 0 3px #666}}@keyframes loading-bubbles-104b1ac0{0%{width:1px;height:1px;box-shadow:0 0 0 3px #666}90%{width:1px;height:1px;box-shadow:0 0 0 0 #666}to{width:1px;height:1px;box-shadow:0 0 0 3px #666}}.loading-default[data-v-104b1ac0]{position:relative;border:1px solid #999;-webkit-animation:loading-rotating-104b1ac0 ease 1.5s infinite;animation:loading-rotating-104b1ac0 ease 1.5s infinite}.loading-default[data-v-104b1ac0]:before{content:"";position:absolute;display:block;top:0;left:50%;margin-top:-3px;margin-left:-3px;width:6px;height:6px;background-color:#999;border-radius:50%}.loading-spiral[data-v-104b1ac0]{border:2px solid #777;border-right-color:transparent;-webkit-animation:loading-rotating-104b1ac0 linear .85s infinite;animation:loading-rotating-104b1ac0 linear .85s infinite}@-webkit-keyframes loading-rotating-104b1ac0{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes loading-rotating-104b1ac0{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.loading-bubbles[data-v-104b1ac0],.loading-circles[data-v-104b1ac0]{position:relative}.loading-bubbles[data-v-104b1ac0] .bubble-item,.loading-circles[data-v-104b1ac0] .cir
2cle-item{position:absolute;top:50%;left:50%;display:inline-block;border-radius:50%}.loading-bubbles[data-v-104b1ac0] .bubble-item:nth-child(2),.loading-circles[data-v-104b1ac0] .circle-item:nth-child(2){-webkit-animation-delay:93ms;animation-delay:93ms}.loading-bubbles[data-v-104b1ac0] .bubble-item:nth-child(3),.loading-circles[data-v-104b1ac0] .circle-item:nth-child(3){-webkit-animation-delay:.186s;animation-delay:.186s}.loading-bubbles[data-v-104b1ac0] .bubble-item:nth-child(4),.loading-circles[data-v-104b1ac0] .circle-item:nth-child(4){-webkit-animation-delay:.279s;animation-delay:.279s}.loading-bubbles[data-v-104b1ac0] .bubble-item:nth-child(5),.loading-circles[data-v-104b1ac0] .circle-item:nth-child(5){-webkit-animation-delay:.372s;animation-delay:.372s}.loading-bubbles[data-v-104b1ac0] .bubble-item:nth-child(6),.loading-circles[data-v-104b1ac0] .circle-item:nth-child(6){-webkit-animation-delay:.465s;animation-delay:.465s}.loading-bubbles[data-v-104b1ac0] .bubble-item:nth-child(7),.loading-circles[data-v-104b1ac0] .circle-item:nth-child(7){-webkit-animation-delay:.558s;animation-delay:.558s}.loading-bubbles[data-v-104b1ac0] .bubble-item:last-child,.loading-circles[data-v-104b1ac0] .circle-item:last-child{-webkit-animation-delay:.651s;animation-delay:.651s}',""])},function(t,e,i){"use strict";i.r(e);var r=i(2);for(var s in r)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return r[t]}))}(s)},function(t,e,i){(t.exports=i(1)(!1)).push([t.i,".infinite-loading-container[data-v-5f0cdda0]{clear:both;text-align:center}.infinite-loading-container[data-v-5f0cdda0] [class^=loading-]{display:inline-block;margin:5px 0;width:28px;height:28px;font-size:28px;line-height:28px;border-radius:50%}.btn-try-infinite[data-v-5f0cdda0]{margin-top:5px;padding:5px 10px;color:#999;font-size:14px;line-height:1;background:transparent;border:1px solid #ccc;border-radius:3px;outline:none;cursor:pointer}.btn-try-infinite[data-v-5f0cdda0]:not(:active):hover{opacity:.8}",""])},function(t,e,i){"use strict";i.r(e);var r={throttleLimit:50,loopCheckTimeout:1e3,loopCheckMaxCalls:10},s=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){return t={passive:!0},!0}});window.addEventListener("testpassive",e,e),window.remove("testpassive",e,e)}catch(t){}return t}(),a={STATE_CHANGER:["emit `loaded` and `complete` event through component instance of `$refs` may cause error, so it will be deprecated soon, please use the `$state` argument instead (`$state` just the special `$event` variable):","\ntemplate:",'<infinite-loading @infinite="infiniteHandler"></infinite-loading>',"\nscript:\n...\ninfiniteHandler($state) {\n  ajax('https://www.example.com/api/news')\n    .then((res) => {\n      if (res.data.length) {\n        $state.loaded();\n      } else {\n        $state.complete();\n      }\n    });\n}\n...","","more details: https://github.com/PeachScript/vue-infinite-loading/issues/57#issuecomment-324370549"].join("\n"),INFINITE_EVENT:"`:on-infinite` property will be deprecated soon, please use `@infinite` event instead.",IDENTIFIER:"the `reset` event will be deprecated soon, please reset this component by change the `identifier` property."},n={INFINITE_LOOP:["executed the callback function more than ".concat(r.loopCheckMaxCalls," times for a short time, it looks like searched a wrong scroll wrapper that doest not has fixed height or maximum height, please check it. If you want to force to set a element as scroll wrapper ranther than automatic searching, you can do this:"),'\n\x3c!-- add a special attribute for the real scroll wrapper --\x3e\n<div infinite-wrapper>\n  ...\n  \x3c!-- set force-use-infinite-wrapper --\x3e\n  <infinite-loading force-use-infinite-wrapper></infinite-loading>\n</div>\nor\n<div class="infinite-wrapper">\n  ...\n  \x3c!-- set force-use-infinite-wrapper as css selector of the real scroll wrapper --\x3e\n  <infinite-loading force-use-infinite-wrapper=".infinite-wrapper"></infinite-loading>\n</div>\n    ',"more details: https://github.com/PeachScript/vue-infinite-loading/issues/55#issuecomment-316934169"].join("\n")},o={READY:0,LOADING:1,COMPLETE:2,ERROR:3},l={color:"#666",fontSize:"14px",padding:"40px 0 0 0"},c={mode:"development",props:{spinner:"default",distance:100,forceUseInfiniteWrapper:!1},system:r,slots:{noResults:"No results :(",noMore:"No more data :)",error:"Opps, something went wrong :(",errorBtnText:"Retry",spinner:""},WARNINGS:a,ERRORS:n,STATUS:o},p=i(4),h=i.n(p),d=i(5),f=i.n(d);function m(t,e,i,r,s,a,n,o){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=i,c._compiled=!0),r&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),n?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(n)}
vendor: 6,797 bytes, line 2
2,c._ssrRegister=l):s&&(l=o?function(){s.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:s),l)if(c.functional){c._injectStyles=l;var p=c.render;c.render=function(t,e){return l.call(e),p(t,e)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:c}}var u=m({props:{options:{type:Object,required:!0},height:Number,width:Number},data(){return{style:{width:this.width?this.width+"px":"100%",height:this.height?this.height+"px":"100%",overflow:"hidden",margin:"0 auto"}}},mounted(){this.anim=f.a.loadAnimation({container:this.$refs.lavContainer,renderer:"svg",loop:!1!==this.options.loop,autoplay:!1!==this.options.autoplay,animationData:this.options.animationData,rendererSettings:this.options.rendererSettings}),this.$emit("animCreated",this.anim)}},(function(){return(0,this._self._c)("div",{ref:"lavContainer",style:this.style})}),[],!1,null,null,null).exports,y=i(6),g={LOTTIE:{render:function(t){return t("span",{attrs:{class:"loading-lottie"}},Array.apply(Array,Array(8)).map((function(){return t("span",{attrs:{class:"lottie-item"}})})))}}},v=m({name:"Spinner",components:{lottie:u},computed:{spinnerView:function(){return g[(this.$attrs.spinner||"").toUpperCase()]||this.spinnerInConfig},spinnerInConfig:function(){return c.slots.spinner&&"string"==typeof c.slots.spinner?{render:function(){return this._v(c.slots.spinner)}}:"object"===h()(c.slots.spinner)?c.slots.spinner:g.LOTTIE}},data:function(){return{anim:null,lottieOptions:{animationData:y}}},methods:{handleAnimation:function(t){this.anim=t}}},(function(){return(0,this._self._c)("lottie",{attrs:{width:36,height:36,options:this.lottieOptions},on:{animCreated:this.handleAnimation}})}),[],!1,(function(t){var e=i(8);e.__inject__&&e.__inject__(t)}),"104b1ac0",null).exports;function b(t){"production"!==c.mode&&console.warn("[Vue-infinite-loading warn]: ".concat(t))}var w={timers:[],caches:[],throttle:function(t){var e=this;-1===this.caches.indexOf(t)&&(this.caches.push(t),this.timers.push(setTimeout((function(){t(),e.caches.splice(e.caches.indexOf(t),1),e.timers.shift()}),c.system.throttleLimit)))},reset:function(){this.timers.forEach((function(t){clearTimeout(t)})),this.timers.length=0,this.caches=[]}},E={isChecked:!1,timer:null,times:0,track:function(){var t=this;this.times+=1,clearTimeout(this.timer),this.timer=setTimeout((function(){t.isChecked=!0}),c.system.loopCheckTimeout),this.times>c.system.loopCheckMaxCalls&&(function(t){console.error("[Vue-infinite-loading error]: ".concat(t))}(n.INFINITE_LOOP),this.isChecked=!0)}},_={key:"_infiniteScrollHeight",getScrollElm:function(t){return t===window?document.documentElement:t},save:function(t){var e=this.getScrollElm(t);e[this.key]=e.scrollHeight},restore:function(t){var e=this.getScrollElm(t);"number"==typeof e[this.key]&&(e.scrollTop=e.scrollHeight-e[this.key]+e.scrollTop),this.remove(e)},remove:function(t){void 0!==t[this.key]&&delete t[this.key]}};function T(t){return t.offsetWidth+t.offsetHeight>0}var S=m({name:"InfiniteLoading",data:function(){return{scrollParent:null,scrollHandler:null,isFirstLoad:!0,status:o.READY,slots:c.slots}},components:{Spinner:v},computed:{isShowSpinner:function(){return this.status===o.LOADING},isShowError:function(){return this.status===o.ERROR},isShowNoResults:function(){return this.status===o.COMPLETE&&this.isFirstLoad},isShowNoMore:function(){return this.status===o.COMPLETE&&!this.isFirstLoad},slotStyles:function(){var t=this,e={};return Object.keys(c.slots).forEach((function(i){var r=function(t){return t.replace(/[A-Z]/g,(function(t){return"-".concat(t.toLowerCase())}))}(i);(!t.$slots[r]&&!c.slots[i].render||t.$slots[r]&&!t.$slots[r][0].tag)&&(e[i]=l)})),e}},props:{distance:{type:Number,default:c.props.distance},spinner:String,direction:{type:String,default:"bottom"},forceUseInfiniteWrapper:{type:[Boolean,String],default:c.props.forceUseInfiniteWrapper},identifier:{default:+new Date},onInfinite:Function},watch:{identifier:function(){this.stateChanger.reset()}},mounted:function(){var t=this;this.$watch("forceUseInfiniteWrapper",(function(){t.scrollParent=t.getScrollParent()}),{immediate:!0}),this.scrollHandler=function(e){t.status===o.READY&&(e&&e.constructor===Event&&T(t.$el)?w.throttle(t.attemptLoad):t.attemptLoad())},setTimeout((function(){t.scrollHandler(),t.scrollParent.addEventListener("scroll",t.scrollHandler,s)}),1),this.$on("$InfiniteLoading:loaded",(function(e){t.isFirstLoad=!1,"top"===t.direction&&t.$nextTick((function(){_.restore(t.scrollParent)})),t.status===o.LOADING&&t.$nextTick(t.attemptLoad.bind(null,!0)),e&&e.target===t||b(a.STATE_CHANGER)})),this.$on("$InfiniteLoading:complete",(function(e){t.status=o.COMPLETE,t.$nextTick((function(){t.$forceUpdate()})),t.scrollParent.removeEventListener("scroll",t.scrollHandler,s),e&&e.target===t||b(a.STATE_CHANGER)})),this.$on("$InfiniteLoading:reset",(function(e){t.status=o.READY,t.isFirstLoad=!0,_.remove(t.scrollParent),t.scrollParent.addEventListener("scroll",t.scrollHandler,s),setTimeout((function(){w.reset(),t.scrollHandler()}),1),e&&e.target===t||b(a.IDENTIFIER)})),this.stateChanger={loaded:function(){t.$emit("$InfiniteLoading:loaded",{target:t})},complete:function(){t.$emit("$InfiniteLoading:complete",{target:t})},reset:function(){t.$emit("$InfiniteLoading:reset",{target:t})},error:function(){t.status=o.ERROR,w.reset()}},this.onInfinite&&b(a.INFINITE_EVENT)},deactivated:function(){this.status===o.LOADING&&(this.status=o.READY),this.scrollParent.removeEventListener("scroll",this.scrollHandler,s)},activated:function(){this.scrollParent.addEventListener("scroll",this.scrollHandler,s)},methods:{attemptLoad:function(t){var e=this;this.status!==o.COMPLETE&&T(this.$el)&&this.getCurrentDistance()<=this.distance?(this.status=o.LOADING,"top"===this.direction&&this.$nextTick((function(){_.save(e.scrollParent)})),"function"==typeof this.onInfinite?this.onInfinite.call(null,this.stateChanger):this.$emit("infinite",this.stateChanger),!t||this.forceUseInfiniteWrapper||E.isChecked||E.track()):this.status===o.LOADING&&(this.status=o.READY)},getCurrentDistance:function(){return"top"===this.direction?"number"==typeof this.scrollParent.scrollTop?this.scrollParent.scrollTop:this.scrollParent.pageYOffset:this.$el.getBoundingClientRect().top-(this.scrollParent===window?window.innerHeight:this.scrollParent.getBoundingClientRect().bottom)},getScrollParent:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.$el;return"string"==typeof this.forceUseInfiniteWrapper&&(t=document.querySelector(this.forceUseInfiniteWrapper)),t||("BODY"===e.tagName?t=window:(!this.forceUseInfiniteWrapper&&["scroll","auto"].indexOf(getComputedStyle(e).overflowY)>-1||e.hasAttribute("infinite-wrapper")||e.hasAttribute("data-infinite-wrapper"))&&(t=e)),t||this.get
2ScrollParent(e.parentNode)}},destroyed:function(){!this.status!==o.COMPLETE&&(w.reset(),_.remove(this.scrollParent),this.scrollParent.removeEventListener("scroll",this.scrollHandler,s))}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"infinite-loading-container"},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowSpinner,expression:"isShowSpinner"}],staticClass:"infinite-status-prompt",style:t.slotStyles.spinner},[t._t("spinner",(function(){return[e("spinner",{attrs:{spinner:t.spinner}})]}),null,{isFirstLoad:t.isFirstLoad})],2),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowNoResults,expression:"isShowNoResults"}],staticClass:"infinite-status-prompt",style:t.slotStyles.noResults},[t._t("no-results",(function(){return[t.slots.noResults.render?e(t.slots.noResults,{tag:"component"}):[t._v(t._s(t.slots.noResults))]]}))],2),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowNoMore,expression:"isShowNoMore"}],staticClass:"infinite-status-prompt",style:t.slotStyles.noMore},[t._t("no-more",(function(){return[t.slots.noMore.render?e(t.slots.noMore,{tag:"component"}):[t._v(t._s(t.slots.noMore))]]}))],2),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowError,expression:"isShowError"}],staticClass:"infinite-status-prompt",style:t.slotStyles.error},[t._t("error",(function(){return[t.slots.error.render?e(t.slots.error,{tag:"component",attrs:{trigger:t.attemptLoad}}):[t._v("\n        "+t._s(t.slots.error)+"\n        "),e("br"),t._v(" "),e("button",{staticClass:"btn-try-infinite",domProps:{textContent:t._s(t.slots.errorBtnText)},on:{click:t.attemptLoad}})]]}),{trigger:t.attemptLoad})],2)])}),[],!1,(function(t){var e=i(10);e.__inject__&&e.__inject__(t)}),"5f0cdda0",null).exports;function x(t){c.mode=t.config.productionTip?"development":"production"}Object.defineProperty(S,"install",{configurable:!1,enumerable:!1,value:function(t,e){Object.assign(c.props,e&&e.props),Object.assign(c.slots,e&&e.slots),Object.assign(c.system,e&&e.system),t.component("infinite-loading",S),x(t)}}),"undefined"!=typeof window&&window.Vue&&(window.Vue.component("infinite-loading",S),x(window.Vue)),e.default=S}])},module.exports=e()},292:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Vuelidate=N,e.validationMixin=e.default=void 0,Object.defineProperty(e,"withParams",{enumerable:!0,get:function(){return o.withParams}});var n=r(435),o=r(310);function l(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,r=new Array(e);i<e;i++)r[i]=t[i];return r}function h(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}function d(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?h(Object(source),!0).forEach((function(e){f(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):h(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}function f(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}
vendor: 4,255 bytes, line 2
2var y=function(){return null},v=function(t,e,r){return t.reduce((function(t,n){return t[r?r(n):n]=e(n),t}),{})};function w(t){return"function"==typeof t}function E(t){return null!==t&&("object"===m(t)||w(t))}var _=function(t,e,path,r){if("function"==typeof path)return path.call(t,e,r);path=Array.isArray(path)?path:path.split(".");for(var i=0;i<path.length;i++){if(!e||"object"!==m(e))return r;e=e[path[i]]}return void 0===e?r:e},T="__isVuelidateAsyncVm";var S={$invalid:function(){var t=this,e=this.proxy;return this.nestedKeys.some((function(e){return t.refProxy(e).$invalid}))||this.ruleKeys.some((function(t){return!e[t]}))},$dirty:function(){var t=this;return!!this.dirty||0!==this.nestedKeys.length&&this.nestedKeys.every((function(e){return t.refProxy(e).$dirty}))},$anyDirty:function(){var t=this;return!!this.dirty||0!==this.nestedKeys.length&&this.nestedKeys.some((function(e){return t.refProxy(e).$anyDirty}))},$error:function(){return this.$dirty&&!this.$pending&&this.$invalid},$anyError:function(){var t=this;return!!this.$error||this.nestedKeys.some((function(e){return t.refProxy(e).$anyError}))},$pending:function(){var t=this;return this.ruleKeys.some((function(e){return t.getRef(e).$pending}))||this.nestedKeys.some((function(e){return t.refProxy(e).$pending}))},$params:function(){var t=this,e=this.validations;return d(d({},v(this.nestedKeys,(function(t){return e[t]&&e[t].$params||null}))),v(this.ruleKeys,(function(e){return t.getRef(e).$params})))}};function x(t){this.dirty=t;var e=this.proxy,r=t?"$touch":"$reset";this.nestedKeys.forEach((function(t){e[t][r]()}))}var I={$touch:function(){x.call(this,!0)},$reset:function(){x.call(this,!1)},$flattenParams:function(){var t=this.proxy,e=[];for(var r in this.$params)if(this.isNested(r)){for(var n=t[r].$flattenParams(),o=0;o<n.length;o++)n[o].path.unshift(r);e=e.concat(n)}else e.push({path:[],name:r,params:this.$params[r]});return e}},P=Object.keys(S),O=Object.keys(I),A=null,k=function(t){if(A)return A;var e=t.extend({computed:{refs:function(){var t=this._vval;this._vval=this.children,(0,n.patchChildren)(t,this._vval);var e={};return this._vval.forEach((function(t){e[t.key]=t.vm})),e}},beforeCreate:function(){this._vval=null},beforeDestroy:function(){this._vval&&((0,n.patchChildren)(this._vval),this._vval=null)},methods:{getModel:function(){return this.lazyModel?this.lazyModel(this.prop):this.model},getModelKey:function(t){var e=this.getModel();if(e)return e[t]},hasIter:function(){return!1}}}),r=e.extend({data:function(){return{rule:null,lazyModel:null,model:null,lazyParentModel:null,rootModel:null}},methods:{runRule:function(e){var r=this.getModel();(0,o.pushParams)();var object,n=this.rule.call(this.rootModel,r,e),output=E(object=n)&&w(object.then)?function(t,e){var r=new t({data:{p:!0,v:!1}});return e.then((function(t){r.p=!1,r.v=t}),(function(t){throw r.p=!1,r.v=!1,t})),r[T]=!0,r}(t,n):n,l=(0,o.popParams)();return{output:output,params:l&&l.$sub?l.$sub.length>1?l:l.$sub[0]:null}}},computed:{run:function(){var t=this,e=this.lazyParentModel();if(Array.isArray(e)&&e.__ob__){var r=e.__ob__.dep;r.depend();var n=r.constructor.target;if(!this._indirectWatcher){var o=n.constructor;this._indirectWatcher=new o(this,(function(){return t.runRule(e)}),null,{lazy:!0})}var l=this.getModel();if(!this._indirectWatcher.dirty&&this._lastModel===l)return this._indirectWatcher.depend(),n.value;this._lastModel=l,this._indirectWatcher.evaluate(),this._indirectWatcher.depend()}else this._indirectWatcher&&(this._indirectWatcher.teardown(),this._indirectWatcher=null);return this._indirectWatcher?this._indirectWatcher.value:this.runRule(e)},$params:function(){return this.run.params},proxy:function(){var output=this.run.output;return output[T]?!!output.v:!!output},$pending:function(){var output=this.run.output;return!!output[T]&&output.p}},destroyed:function(){this._indirectWatcher&&(this._indirectWatcher.teardown(),this._indirectWatcher=null)}}),c=e.extend({data:function(){return{dirty:!1,validations:null,lazyModel:null,model:null,prop:null,lazyParentModel:null,rootModel:null}},methods:d(d({},I),{},{refProxy:function(t){return this.getRef(t).proxy},getRef:function(t){return this.refs[t]},isNested:function(t){return"function"!=typeof this.validations[t]}}
2),computed:d(d({},S),{},{nestedKeys:function(){return this.keys.filter(this.isNested)},ruleKeys:function(){var t=this;return this.keys.filter((function(e){return!t.isNested(e)}))},keys:function(){return Object.keys(this.validations).filter((function(t){return"$params"!==t}))},proxy:function(){var t=this,e=v(this.keys,(function(e){return{enumerable:!0,configurable:!0,get:function(){return t.refProxy(e)}}})),r=v(P,(function(e){return{enumerable:!0,configurable:!0,get:function(){return t[e]}}})),n=v(O,(function(e){return{enumerable:!1,configurable:!0,get:function(){return t[e]}}})),o=this.hasIter()?{$iter:{enumerable:!0,value:Object.defineProperties({},d({},e))}}:{};return Object.defineProperties({},d(d(d(d({},e),o),{},{$model:{enumerable:!0,get:function(){var e=t.lazyParentModel();return null!=e?e[t.prop]:null},set:function(e){var r=t.lazyParentModel();null!=r&&(r[t.prop]=e,t.$touch())}}},r),n))},children:function(){var t=this;return[].concat(l(this.nestedKeys.map((function(e){return m(t,e)}))),l(this.ruleKeys.map((function(e){return x(t,e)})))).filter(Boolean)}})}),h=c.extend({methods:{isNested:function(t){return void 0!==this.validations[t]()},getRef:function(t){var e=this;return{get proxy(){return e.validations[t]()||!1}}}}}),f=c.extend({computed:{keys:function(){var t=this.getModel();return E(t)?Object.keys(t):[]},tracker:function(){var t=this,e=this.validations.$trackBy;return e?function(r){return"".concat(_(t.rootModel,t.getModelKey(r),e))}:function(t){return"".concat(t)}},getModelLazy:function(){var t=this;return function(){return t.getModel()}},children:function(){var t=this,e=this.validations,r=this.getModel(),o=d({},e);delete o.$trackBy;var l={};return this.keys.map((function(e){var track=t.tracker(e);return l.hasOwnProperty(track)?null:(l[track]=!0,(0,n.h)(c,track,{validations:o,prop:e,lazyParentModel:t.getModelLazy,model:r[e],rootModel:t.rootModel}))})).filter(Boolean)}},methods:{isNested:function(){return!0},getRef:function(t){return this.refs[this.tracker(t)]},hasIter:function(){return!0}}}),m=function(t,e){if("$each"===e)return(0,n.h)(f,e,{validations:t.validations[e],lazyParentModel:t.lazyParentModel,prop:e,lazyModel:t.getModel,rootModel:t.rootModel});var r=t.validations[e];if(Array.isArray(r)){var o=t.rootModel,l=v(r,(function(path){return function(){return _(o,o.$v,path)}}),(function(t){return Array.isArray(t)?t.join("."):t}));return(0,n.h)(h,e,{validations:l,lazyParentModel:y,prop:e,lazyModel:y,rootModel:o})}return(0,n.h)(c,e,{validations:r,lazyParentModel:t.getModel,prop:e,lazyModel:t.getModelKey,rootModel:t.rootModel})},x=function(t,e){return(0,n.h)(r,e,{rule:t.validations[e],lazyParentModel:t.lazyParentModel,lazyModel:t.getModel,rootModel:t.rootModel})};return A={VBase:e,Validation:c}},C=null;var D=function(t,e){var r=function(t){if(C)return C;for(var e=t.constructor;e.super;)e=e.super;return C=e,e}(t),o=k(r),l=o.Validation;return new(0,o.VBase)({computed:{children:function(){var r="function"==typeof e?e.call(t):e;return[(0,n.h)(l,"$v",{validations:r,lazyParentModel:y,prop:"$v",model:t,rootModel:t})]}}})},M={data:function(){var t=this.$options.validations;return t&&(this._vuelidate=D(this,t)),{}},beforeCreate:function(){var t=this.$options;t.validations&&(t.computed||(t.computed={}),t.computed.$v||(t.computed.$v=function(){return this._vuelidate?this._vuelidate.refs.$v.proxy:null}))},beforeDestroy:function(){this._vuelidate&&(this._vuelidate.$destroy(),this._vuelidate=null)}};function N(t){t.mixin(M)}e.validationMixin=M;var R=N;e.default=R},293:function(t,e,r){(function(e){var r;r=()=>(()=>{var t={873:(t,e)=>{var i,r,n=function(){var t=function(t,e){var i=t,r=s[e],n=null,o=0,l=null,p=[],y={},w=function(t,e){n=function(t){for(var e=new Array(t),i=0;i<t;i+=1){e[i]=new Array(t);for(var r=0;r<t;r+=1)e[i][r]=null}return e}(o=4*i+17),b(0,0),b(o-7,0),b(0,o-7),_(),E(),S(t,e),i>=7&&T(t),null==l&&(l=I(i,r,p)),x(l,e)},b=function(t,e){for(var i=-1;i<=7;i+=1)if(!(t+i<=-1||o<=t+i))for(var r=-1;r<=7;r+=1)e+r<=-1||o<=e+r||(n[t+i][e+r]=0<=i&&i<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==i||6==i)||2<=i&&i<=4&&2<=r&&r<=4)},E=function(){for(var t=8;t<o-8;t+=1)null==n[t][6]&&(n[t][6]=t%2==0);for(var e=8;e<o-8;e+=1)null==n[6][e]&&(n[6][e]=e%2==0)},_=function(){for(var t=a.getPatternPosition(i),e=0;e<t.length;e+=1)for(var r=0;r<t.length;r+=1){var o=t[e],s=t[r];
vendor: 15,688 bytes, line 2
2if(null==n[o][s])for(var l=-2;l<=2;l+=1)for(var c=-2;c<=2;c+=1)n[o+l][s+c]=-2==l||2==l||-2==c||2==c||0==l&&0==c}},T=function(t){for(var e=a.getBCHTypeNumber(i),r=0;r<18;r+=1){var s=!t&&1==(e>>r&1);n[Math.floor(r/3)][r%3+o-8-3]=s}for(r=0;r<18;r+=1)s=!t&&1==(e>>r&1),n[r%3+o-8-3][Math.floor(r/3)]=s},S=function(t,e){for(var i=r<<3|e,s=a.getBCHTypeInfo(i),l=0;l<15;l+=1){var c=!t&&1==(s>>l&1);l<6?n[l][8]=c:l<8?n[l+1][8]=c:n[o-15+l][8]=c}for(l=0;l<15;l+=1)c=!t&&1==(s>>l&1),l<8?n[8][o-l-1]=c:l<9?n[8][15-l-1+1]=c:n[8][15-l-1]=c;n[o-8][8]=!t},x=function(t,e){for(var i=-1,r=o-1,s=7,l=0,c=a.getMaskFunction(e),u=o-1;u>0;u-=2)for(6==u&&(u-=1);;){for(var h=0;h<2;h+=1)if(null==n[r][u-h]){var d=!1;l<t.length&&(d=1==(t[l]>>>s&1)),c(r,u-h)&&(d=!d),n[r][u-h]=d,-1==(s-=1)&&(l+=1,s=7)}if((r+=i)<0||o<=r){r-=i,i=-i;break}}},I=function(t,e,i){for(var r=u.getRSBlocks(t,e),n=h(),o=0;o<i.length;o+=1){var s=i[o];n.put(s.getMode(),4),n.put(s.getLength(),a.getLengthInBits(s.getMode(),t)),s.write(n)}var l=0;for(o=0;o<r.length;o+=1)l+=r[o].dataCount;if(n.getLengthInBits()>8*l)throw"code length overflow. ("+n.getLengthInBits()+">"+8*l+")";for(n.getLengthInBits()+4<=8*l&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(!1);for(;!(n.getLengthInBits()>=8*l||(n.put(236,8),n.getLengthInBits()>=8*l));)n.put(17,8);return function(t,e){for(var i=0,r=0,n=0,o=new Array(e.length),s=new Array(e.length),l=0;l<e.length;l+=1){var u=e[l].dataCount,h=e[l].totalCount-u;r=Math.max(r,u),n=Math.max(n,h),o[l]=new Array(u);for(var d=0;d<o[l].length;d+=1)o[l][d]=255&t.getBuffer()[d+i];i+=u;var g=a.getErrorCorrectPolynomial(h),f=c(o[l],g.getLength()-1).mod(g);for(s[l]=new Array(g.getLength()-1),d=0;d<s[l].length;d+=1){var m=d+f.getLength()-s[l].length;s[l][d]=m>=0?f.getAt(m):0}}var p=0;for(d=0;d<e.length;d+=1)p+=e[d].totalCount;var y=new Array(p),v=0;for(d=0;d<r;d+=1)for(l=0;l<e.length;l+=1)d<o[l].length&&(y[v]=o[l][d],v+=1);for(d=0;d<n;d+=1)for(l=0;l<e.length;l+=1)d<s[l].length&&(y[v]=s[l][d],v+=1);return y}(n,r)};y.addData=function(t,e){var i=null;switch(e=e||"Byte"){case"Numeric":i=d(t);break;case"Alphanumeric":i=g(t);break;case"Byte":i=f(t);break;case"Kanji":i=m(t);break;default:throw"mode:"+e}p.push(i),l=null},y.isDark=function(t,e){if(t<0||o<=t||e<0||o<=e)throw t+","+e;return n[t][e]},y.getModuleCount=function(){return o},y.make=function(){if(i<1){for(var t=1;t<40;t++){for(var e=u.getRSBlocks(t,r),n=h(),o=0;o<p.length;o++){var s=p[o];n.put(s.getMode(),4),n.put(s.getLength(),a.getLengthInBits(s.getMode(),t)),s.write(n)}var l=0;for(o=0;o<e.length;o++)l+=e[o].dataCount;if(n.getLengthInBits()<=8*l)break}i=t}w(!1,function(){for(var t=0,e=0,i=0;i<8;i+=1){w(!0,i);var r=a.getLostPoint(y);(0==i||t>r)&&(t=r,e=i)}return e}())},y.createTableTag=function(t,e){t=t||2;var i="";i+='<table style="',i+=" border-width: 0px; border-style: none;",i+=" border-collapse: collapse;",i+=" padding: 0px; margin: "+(e=void 0===e?4*t:e)+"px;",i+='">',i+="<tbody>";for(var r=0;r<y.getModuleCount();r+=1){i+="<tr>";for(var n=0;n<y.getModuleCount();n+=1)i+='<td style="',i+=" border-width: 0px; border-style: none;",i+=" border-collapse: collapse;",i+=" padding: 0px; margin: 0px;",i+=" width: "+t+"px;",i+=" height: "+t+"px;",i+=" background-color: ",i+=y.isDark(r,n)?"#000000":"#ffffff",i+=";",i+='"/>';i+="</tr>"}return(i+="</tbody>")+"</table>"},y.createSvgTag=function(t,e,i,r){var n={};"object"==typeof arguments[0]&&(t=(n=arguments[0]).cellSize,e=n.margin,i=n.alt,r=n.title),t=t||2,e=void 0===e?4*t:e,(i="string"==typeof i?{text:i}:i||{}).text=i.text||null,i.id=i.text?i.id||"qrcode-description":null,(r="string"==typeof r?{text:r}:r||{}).text=r.text||null,r.id=r.text?r.id||"qrcode-title":null;var o,s,a,l,c=y.getModuleCount()*t+2*e,u="";for(l="l"+t+",0 0,"+t+" -"+t+",0 0,-"+t+"z ",u+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',u+=n.scalable?"":' width="'+c+'px" height="'+c+'px"',u+=' viewBox="0 0 '+c+" "+c+'" ',u+=' preserveAspectRatio="xMinYMin meet"',u+=r.text||i.text?' role="img" aria-labelledby="'+P([r.id,i.id].join(" ").trim())+'"':"",u+=">",u+=r.text?'<title id="'+P(r.id)+'">'+P(r.text)+"</title>":"",u+=i.text?'<description id="'+P(i.id)+'">'+P(i.text)+"</description>":"",u+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',u+='<path d="',s=0;s<y.getModuleCount();s+=1)for(a=s*t+e,o=0;o<y.getModuleCount();o+=1)y.isDark(s,o)&&(u+="M"+(o*t+e)+","+a+l);return(u+='" stroke="transparent" fill="black"/>')+"</svg>"},y.createDataURL=function(t,e){t=t||2,e=void 0===e?4*t:e;var i=y.getModuleCount()*t+2*e,r=e,n=i-e;return v(i,i,(function(e,i){if(r<=e&&e<n&&r<=i&&i<n){var o=Math.floor((e-r)/t),s=Math.floor((i-r)/t);return y.isDark(s,o)?0:1}return 1}))},y.createImgTag=function(t,e,i){t=t||2,e=void 0===e?4*t:e;var r=y.getModuleCount()*t+2*e,n="";return n+="<img",n+=' src="',n+=y.createDataURL(t,e),n+='"',n+=' width="',n+=r,n+='"',n+=' height="',n+=r,n+='"',i&&(n+=' alt="',n+=P(i),n+='"'),n+"/>"};var P=function(t){for(var e="",i=0;i<t.length;i+=1){var r=t.charAt(i);switch(r){case"<":e+="&lt;";break;case">":e+="&gt;";break;case"&":e+="&amp;";break;case'"':e+="&quot;";break;default:e+=r}}return e};return y.createASCII=function(t,e){if((t=t||1)<2)return function(t){t=void 0===t?2:t;var e,i,r,n,o,s=1*y.getModuleCount()+2*t,a=t,l=s-t,c={"██":"█","█ ":"▀"," █":"▄","  ":" "},u={"██":"▀","█ ":"▀"," █":" ","  ":" "},h="";for(e=0;e<s;e+=2){for(r=Math.floor((e-a)/1),n=Math.floor((e+1-a)/1),i=0;i<s;i+=1)o="█",a<=i&&i<l&&a<=e&&e<l&&y.isDark(r,Math.floor((i-a)/1))&&(o=" "),a<=i&&i<l&&a<=e+1&&e+1<l&&y.isDark(n,Math.floor((i-a)/1))?o+=" ":o+="█",h+=t<1&&e+1>=l?u[o]:c[o];h+="\n"}return s%2&&t>0?h.substring(0,h.length-s-1)+Array(s+1).join("▀"):h.substring(0,h.length-1)}(e);t-=1,e=void 0===e?2*t:e;var i,r,n,o,s=y.getModuleCount()*t+2*e,a=e,l=s-e,c=Array(t+1).join("██"),u=Array(t+1).join("  "),h="",d="";for(i=0;i<s;i+=1){for(n=Math.floor((i-a)/t),d="",r=0;r<s;r+=1)o=1,a<=r&&r<l&&a<=i&&i<l&&y.isDark(n,Math.floor((r-a)/t))&&(o=0),d+=o?c:u;for(n=0;n<t;n+=1)h+=d+"\n"}return h.substring(0,h.length-1)},y.renderTo2dContext=function(t,e){e=e||2;for(var i=y.getModuleCount(),r=0;r<i;r++)for(var n=0;n<i;n++)t.fillStyle=y.isDark(r,n)?"black":"white",t.fillRect(r*e,n*e,e,e)},y};t.stringToBytes=(t.stringToBytesFuncs={default:function(t){for(var e=[],i=0;i<t.length;i+=1){var r=t.charCodeAt(i);e.push(255&r)}return e}}).default,t.createStringToBytes=function(t,e){var i=function(){for(var i=y(t),r=function(){var t=i.read();if(-1==t)throw"eof";return t},n=0,o={};;){var s=i.read();if(-1==s)break;var a=r(),l=r()<<8|r();o[String.fromCharCode(s<<8|a)]=l,n+=1}if(n!=e)throw n+" != "+e;return o}(),r="?".charCodeAt(0);return function(t){for(var e=[],n=0;n<t.length;n+=1){var o=t.charCodeAt(n);if(o<128)e.push(o);else{var s=i[t.charAt(n)];"number"==typeof s?(255&s)==s?e.push(s):(e.push(s>>>8),e.push(255&s)):e.push(r)}}return e}};var e,i,r,n,o,s={L:1,M:0,Q:3,H:2},a=(e=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],i=1335,r=7973,o=function(t){for(var e=0;0!=t;)e+=1,t>>>=1;return e},(n={}).getBCHTypeInfo=function(t){for(var e=t<<10;o(e)-o(i)>=0;)e^=i<<o(e)-o(i);return 21522^(t<<10|e)},n.getBCHTypeNumber=function(t){for(var e=t<<12;o(e)-o(r)>=0;)e^=r<<o(e)-o(r);return t<<12|e},n.getPatternPosition=function(t){return e[t-1]},n.getMaskFunction=function(t){switch(t){case 0:return function(t,e){return(t+e)%2==0};case 1:return function(t,e){return t%2==0};case 2:return function(t,e){return e%3==0};case 3:return function(t,e){return(t+e)%3==0};case 4:return function(t,e){return(Math.floor(t/2)+Math.floor(e/3))%2==0};case 5:return function(t,e){return t*e%2+t*e%3==0};case 6:return function(t,e){return(t*e%2+t*e%3)%2==0};case 7:return function(t,e){return(t*e%3+(t+e)%2)%2==0};default:throw"bad maskPattern:"+t}},n.getErrorCorrectPolynomial=function(t){for(var e=c([1],0),i=0;i<t;i+=1)e=e.multiply(c([1,l.gexp(i)],0));return e},n.getLengthInBits=function(t,e){if(1<=e&&e<10)switch(t){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+t}else if(e<27)switch(t){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+t}else{if(!(e<41))throw"type:"+e;switch(t){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+t}}},n.getLostPoint=function(t){for(var e=t.getModuleCount(),i=0,r=0;r<e;r+=1)for(var n=0;n<e;n+=1){for(var o=0,s=t.isDark(r,n),a=-1;a<=1;a+=1)if(!(r+a<0||e<=r+a))for(var l=-1;l<=1;l+=1)n+l<0||e<=n+l||0==a&&0==l||s==t.isDark(r+a,n+l)&&(o+=1);o>5&&(i+=3+o-5)}for(r=0;r<e-1;r+=1)for(n=0;n<e-1;n+=1){var c=0;t.isDark(r,n)&&(c+=1),t.isDark(r+1,n)&&(c+=1),t.isDark(r,n+1)&&(c+=1),t.isDark(r+1,n+1)&&(c+=1),0!=c&&4!=c||(i+=3)}for(r=0;r<e;r+=1)for(n=0;n<e-6;n+=1)t.isDark(r,n)&&!t.isDark(r,n+1)&&t.isDark(r,n+2)&&t.isDark(r,n+3)&&t.isDark(r,n+4)&&!t.isDark(r,n+5)&&t.isDark(r,n+6)&&(i+=40);for(n=0;n<e;n+=1)for(r=0;r<e-6;r+=1)t.isDark(r,n)&&!t.isDark(r+1,n)&&t.isDark(r+2,n)&&t.isDark(r+3,n)&&t.isDark(r+4,n)&&!t.isDark(r+5,n)&&t.isDark(r+6,n)&&(i+=40);var u=0;for(n=0;n<e;n+=1)for(r=0;r<e;r+=1)t.isDark(r,n)&&(u+=1);return i+Math.abs(100*u/e/e-50)/5*10},n),l=function(){for(var t=new Array(256),e=new Array(256),i=0;i<8;i+=1)t[i]=1<<i;for(i=8;i<256;i+=1)t[i]=t[i-4]^t[i-5]^t[i-6]^t[i-8];for(i=0;i<255;i+=1)e[t[i]]=i;return{glog:function(t){if(t<1)throw"glog("+t+")";return e[t]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return t[e]}}}();function c(t,e){if(void 0===t.length)throw t.length+"/"+e;var i=function(){for(var i=0;i<t.length&&0==t[i];)i+=1;for(var r=new Array(t.length-i+e),n=0;n<t.length-i;n+=1)r[n]=t[n+i];return r}(),r={getAt:function(t){return i[t]},getLength:function(){return i.length},multiply:function(t){for(var e=new Array(r.getLength()+t.getLength()-1),i=0;i<r.getLength();i+=1)for(var n=0;n<t.getLength();n+=1)e[i+n]^=l.gexp(l.glog(r.getAt(i))+l.glog(t.getAt(n)));return c(e,0)},mod:function(t){if(r.getLength()-t.getLength()<0)return r;for(var e=l.glog(r.getAt(0))-l.glog(t.getAt(0)),i=new Array(r.getLength()),n=0;n<r.getLength();n+=1)i[n]=r.getAt(n);for(n=0;n<t.getLength();n+=1)i[n]^=l.gexp(l.glog(t.getAt(n))+e);return c(i,0).mod(t)}};return r}var u=function(){var t=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],e=function(t,e){var i={};return i.totalCount=t,i.dataCount=e,i},i={getRSBlocks:function(i,r){var n=function(e,i){switch(i){case s.L:return t[4*(e-1)+0];case s.M:return t[4*(e-1)+1];case s.Q:return t[4*(e-1)+2];case s.H:return t[4*(e-1)+3];default:return}}(i,r);if(void 0===n)throw"bad rs block @ typeNumber:"+i+"/errorCorrectionLevel:"+r;for(var o=n.length/3,a=[],l=0;l<o;l+=1)for(var c=n[3*l+0],u=n[3*l+1],h=n[3*l+2],d=0;d<c;d+=1)a.push(e(u,h));return a}};return i}(),h=function(){var t=[],e=0,i={getBuffer:function(){return t},getAt:function(e){var i=Math.floor(e/8);return 1==(t[i]>>>7-e%8&1)},put:function(t,e){for(var r=0;r<e;r+=1)i.putBit(1==(t>>>e-r-1&1))},getLengthInBits:function(){return e},putBit:function(i){var r=Math.floor(e/8);t.length<=r&&t.push(0),i&&(t[r]|=128>>>e%8),e+=1}};return i},d=function(t){var e=t,i={getMode:function(){return 1},getLength:function(t){return e.length},write:function(t){for(var i=e,n=0;n+2<i.length;)t.put(r(i.substring(n,n+3)),10),n+=3;n<i.length&&(i.length-n==1?t.put(r(i.substring(n,n+1)),4):i.length-n==2&&t.put(r(i.substring(n,n+2)),7))}},r=function(t){for(var e=0,i=0;i<t.length;i+=1)e=10*e+n(t.charAt(i));return e},n=function(t){if("0"<=t&&t<="9")return t.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+t};return i},g=function(t){var e=t,i={getMode:function(){return 2},getLength:function(t){return e.length},write:function(t){for(var i=e,n=0;n+1<i.length;)t.put(45*r(i.charAt(n))+r(i.charAt(n+1)),11),n+=2;n<i.length&&t.put(r(i.charAt(n)),6)}},r=function(t){if("0"<=t&&t<="9")return t.charCodeAt(0)-"0".charCodeAt(0);if("A"<=t&&t<="Z")return t.charCodeAt(0)-"A".charCodeAt(0)+10;switch(t){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+t}};return i},f=function(e){var i=t.stringToBytes(e);return{getMode:function(){return 4},getLength:function(t){return i.length},write:function(t){for(var e=0;e<i.length;e+=1)t.put(i[e],8)}}},m=function(e){var i=t.stringToBytesFuncs.SJIS;if(!i)throw"sjis not supported.";
vendor: 31,197 bytes, line 2
2!function(){var t=i("友");if(2!=t.length||38726!=(t[0]<<8|t[1]))throw"sjis not supported."}();var r=i(e),n={getMode:function(){return 8},getLength:function(t){return~~(r.length/2)},write:function(t){for(var e=r,i=0;i+1<e.length;){var n=(255&e[i])<<8|255&e[i+1];if(33088<=n&&n<=40956)n-=33088;else{if(!(57408<=n&&n<=60351))throw"illegal char at "+(i+1)+"/"+n;n-=49472}n=192*(n>>>8&255)+(255&n),t.put(n,13),i+=2}if(i<e.length)throw"illegal char at "+(i+1)}};return n},p=function(){var t=[],e={writeByte:function(e){t.push(255&e)},writeShort:function(t){e.writeByte(t),e.writeByte(t>>>8)},writeBytes:function(t,i,r){i=i||0,r=r||t.length;for(var n=0;n<r;n+=1)e.writeByte(t[n+i])},writeString:function(t){for(var i=0;i<t.length;i+=1)e.writeByte(t.charCodeAt(i))},toByteArray:function(){return t},toString:function(){var e="";e+="[";for(var i=0;i<t.length;i+=1)i>0&&(e+=","),e+=t[i];return e+"]"}};return e},y=function(t){var e=t,i=0,r=0,n=0,o={read:function(){for(;n<8;){if(i>=e.length){if(0==n)return-1;throw"unexpected end of file./"+n}var t=e.charAt(i);if(i+=1,"="==t)return n=0,-1;t.match(/^\s$/)||(r=r<<6|s(t.charCodeAt(0)),n+=6)}var o=r>>>n-8&255;return n-=8,o}},s=function(t){if(65<=t&&t<=90)return t-65;if(97<=t&&t<=122)return t-97+26;if(48<=t&&t<=57)return t-48+52;if(43==t)return 62;if(47==t)return 63;throw"c:"+t};return o},v=function(t,e,i){for(var r=function(t,e){var i=t,r=e,n=new Array(t*e),o={setPixel:function(t,e,r){n[e*i+t]=r},write:function(t){t.writeString("GIF87a"),t.writeShort(i),t.writeShort(r),t.writeByte(128),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(255),t.writeByte(255),t.writeByte(255),t.writeString(","),t.writeShort(0),t.writeShort(0),t.writeShort(i),t.writeShort(r),t.writeByte(0);var e=s(2);t.writeByte(2);for(var n=0;e.length-n>255;)t.writeByte(255),t.writeBytes(e,n,255),n+=255;t.writeByte(e.length-n),t.writeBytes(e,n,e.length-n),t.writeByte(0),t.writeString(";")}},s=function(t){for(var e=1<<t,i=1+(1<<t),r=t+1,o=a(),s=0;s<e;s+=1)o.add(String.fromCharCode(s));o.add(String.fromCharCode(e)),o.add(String.fromCharCode(i));var l,c,u,h=p(),d=(l=h,c=0,u=0,{write:function(t,e){if(t>>>e!=0)throw"length over";for(;c+e>=8;)l.writeByte(255&(t<<c|u)),e-=8-c,t>>>=8-c,u=0,c=0;u|=t<<c,c+=e},flush:function(){c>0&&l.writeByte(u)}});d.write(e,r);var g=0,f=String.fromCharCode(n[g]);for(g+=1;g<n.length;){var m=String.fromCharCode(n[g]);g+=1,o.contains(f+m)?f+=m:(d.write(o.indexOf(f),r),o.size()<4095&&(o.size()==1<<r&&(r+=1),o.add(f+m)),f=m)}return d.write(o.indexOf(f),r),d.write(i,r),d.flush(),h.toByteArray()},a=function(){var t={},e=0,i={add:function(r){if(i.contains(r))throw"dup key:"+r;t[r]=e,e+=1},size:function(){return e},indexOf:function(e){return t[e]},contains:function(e){return void 0!==t[e]}};return i};return o}(t,e),n=0;n<e;n+=1)for(var o=0;o<t;o+=1)r.setPixel(o,n,i(o,n));var s=p();r.write(s);for(var a=function(){var t=0,e=0,i=0,r="",n={},o=function(t){r+=String.fromCharCode(s(63&t))},s=function(t){if(t<0);else{if(t<26)return 65+t;if(t<52)return t-26+97;if(t<62)return t-52+48;if(62==t)return 43;if(63==t)return 47}throw"n:"+t};return n.writeByte=function(r){for(t=t<<8|255&r,e+=8,i+=1;e>=6;)o(t>>>e-6),e-=6},n.flush=function(){if(e>0&&(o(t<<6-e),t=0,e=0),i%3!=0)for(var n=3-i%3,s=0;s<n;s+=1)r+="="},n.toString=function(){return r},n}(),l=s.toByteArray(),c=0;c<l.length;c+=1)a.writeByte(l[c]);return a.flush(),"data:image/gif;base64,"+a};return t}();n.stringToBytesFuncs["UTF-8"]=function(t){return function(t){for(var e=[],i=0;i<t.length;i++){var r=t.charCodeAt(i);r<128?e.push(r):r<2048?e.push(192|r>>6,128|63&r):r<55296||r>=57344?e.push(224|r>>12,128|r>>6&63,128|63&r):(i++,r=65536+((1023&r)<<10|1023&t.charCodeAt(i)),e.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r))}return e}(t)},void 0===(r="function"==typeof(i=function(){return n})?i.apply(e,[]):i)||(t.exports=r)}},r={};function i(e){var n=r[e];if(void 0!==n)return n.exports;var o=r[e]={exports:{}};return t[e](o,o.exports,i),o.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var r in e)i.o(e,r)&&!i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var n={};return(()=>{"use strict";i.d(n,{default:()=>O});const t=t=>!!t&&"object"==typeof t&&!Array.isArray(t);function r(i,...e){if(!e.length)return i;const n=e.shift();return void 0!==n&&t(i)&&t(n)?(i=Object.assign({},i),Object.keys(n).forEach((e=>{const o=i[e],s=n[e];Array.isArray(o)&&Array.isArray(s)?i[e]=s:t(o)&&t(s)?i[e]=r(Object.assign({},o),s):i[e]=s})),r(i,...e)):i}function o(t,e){const i=document.createElement("a");i.download=e,i.href=t,document.body.appendChild(i),i.click(),document.body.removeChild(i)}const l={L:.07,M:.15,Q:.25,H:.3};class s{constructor({svg:t,type:e,window:i}){this._svg=t,this._type=e,this._window=i}draw(t,e,i,r){let n;switch(this._type){case"dots":n=this._drawDot;break;case"classy":n=this._drawClassy;break;case"classy-rounded":n=this._drawClassyRounded;break;case"rounded":n=this._drawRounded;break;case"extra-rounded":n=this._drawExtraRounded;break;default:n=this._drawSquare}n.call(this,{x:t,y:e,size:i,getNeighbor:r})}_rotateFigure({x:t,y:e,size:i,rotation:r=0,draw:n}){var o;const s=t+i/2,a=e+i/2;n(),null===(o=this._element)||void 0===o||o.setAttribute("transform",`rotate(${180*r/Math.PI},${s},${a})`)}_basicDot(t){const{size:e,x:i,y:r}=t;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(i+e/2)),this._element.setAttribute("cy",String(r+e/2)),this._element.setAttribute("r",String(e/2))}}))}_basicSquare(t){const{size:e,x:i,y:r}=t;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(i)),this._element.setAttribute("y",String(r)),this._element.setAttribute("width",String(e)),this._element.setAttribute("height",String(e))}}))}_basicSideRounded(t){const{size:e,x:i,y:r}=t;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${i} ${r}v ${e}h `+e/2+`a ${e/2} ${e/2}, 0, 0, 0, 0 ${-e}`)}}))}_basicCornerRounded(t){const{size:e,x:i,y:r}=t;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${i} ${r}v ${e}h ${e}v `+-e/2+`a ${e/2} ${e/2}, 0, 0, 0, ${-e/2} ${-e/2}`)}}))}_basicCornerExtraRounded(t){const{size:e,x:i,y:r}=t;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${i} ${r}v ${e}h ${e}a ${e} ${e}, 0, 0, 0, ${-e} ${-e}`)}}))}_basicCornersRounded(t){const{size:e,x:i,y:r}=t;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${i} ${r}v `+e/2+`a ${e/2} ${e/2}, 0, 0, 0, ${e/2} ${e/2}h `+e/2+"v "+-e/2+`a ${e/2} ${e/2}, 0, 0, 0, ${-e/2} ${-e/2}`)}}))}_drawDot({x:t,y:e,size:i}){this._basicDot({x:t,y:e,size:i,rotation:0})}_drawSquare({x:t,y:e,size:i}){this._basicSquare({x:t,y:e,size:i,rotation:0})}_drawRounded({x:t,y:e,size:i,getNeighbor:r}){const n=r?+r(-1,0):0,o=r?+r(1,0):0,s=r?+r(0,-1):0,a=r?+r(0,1):0,l=n+o+s+a;if(0!==l)if(l>2||n&&o||s&&a)this._basicSquare({x:t,y:e,size:i,rotation:0});else{if(2===l){let r=0;return n&&s?r=Math.PI/2:s&&o?r=Math.PI:o&&a&&(r=-Math.PI/2),void this._basicCornerRounded({x:t,y:e,size:i,rotation:r})}if(1===l){let r=0;return s?r=Math.PI/2:o?r=Math.PI:a&&(r=-Math.PI/2),void this._basicSideRounded({x:t,y:e,size:i,rotation:r})}}else this._basicDot({x:t,y:e,size:i,rotation:0})}_drawExtraRounded({x:t,y:e,size:i,getNeighbor:r}){const n=r?+r(-1,0):0,o=r?+r(1,0):0,s=r?+r(0,-1):0,a=r?+r(0,1):0,l=n+o+s+a;if(0!==l)if(l>2||n&&o||s&&a)this._basicSquare({x:t,y:e,size:i,rotation:0});else{if(2===l){let r=0;return n&&s?r=Math.PI/2:s&&o?r=Math.PI:o&&a&&(r=-Math.PI/2),void this._basicCornerExtraRounded({x:t,y:e,size:i,rotation:r})}if(1===l){let r=0;return s?r=Math.PI/2:o?r=Math.PI:a&&(r=-Math.PI/2),void this._basicSideRounded({x:t,y:e,size:i,rotation:r})}}else this._basicDot({x:t,y:e,size:i,rotation:0})}_drawClassy({x:t,y:e,size:i,getNeighbor:r}){const n=r?+r(-1,0):0,o=r?+r(1,0):0,s=r?+r(0,-1):0,a=r?+r(0,1):0;0!==n+o+s+a?n||s?o||a?this._basicSquare({x:t,y:e,size:i,rotation:0}):this._basicCornerRounded({x:t,y:e,size:i,rotation:Math.PI/2}):this._basicCornerRounded({x:t,y:e,size:i,rotation:-Math.PI/2}):this._basicCornersRounded({x:t,y:e,size:i,rotation:Math.PI/2})}_drawClassyRounded({x:t,y:e,size:i,getNeighbor:r}){const n=r?+r(-1,0):0,o=r?+r(1,0):0,s=r?+r(0,-1):0,a=r?+r(0,1):0;0!==n+o+s+a?n||s?o||a?this._basicSquare({x:t,y:e,size:i,rotation:0}):this._basicCornerExtraRounded({x:t,y:e,size:i,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:t,y:e,size:i,rotation:-Math.PI/2}):this._basicCornersRounded({x:t,y:e,size:i,rotation:Math.PI/2})}}const a={dot:"dot",square:"square",extraRounded:"extra-rounded"},c=Object.values(a);class h{constructor({svg:t,type:e,window:i}){this._svg=t,this._type=e,this._window=i}draw(t,e,i,r){let n;switch(this._type){case a.square:n=this._drawSquare;break;case a.extraRounded:n=this._drawExtraRounded;break;default:n=this._drawDot}n.call(this,{x:t,y:e,size:i,rotation:r})}_rotateFigure({x:t,y:e,size:i,rotation:r=0,draw:n}){var o;const s=t+i/2,a=e+i/2;n(),null===(o=this._element)||void 0===o||o.setAttribute("transform",`rotate(${180*r/Math.PI},${s},${a})`)}_basicDot(t){const{size:e,x:i,y:r}=t,n=e/7;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${i+e/2} ${r}a ${e/2} ${e/2} 0 1 0 0.1 0zm 0 ${n}a ${e/2-n} ${e/2-n} 0 1 1 -0.1 0Z`)}}))}_basicSquare(t){const{size:e,x:i,y:r}=t,n=e/7;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${i} ${r}v ${e}h ${e}v `+-e+"z"+`M ${i+n} ${r+n}h `+(e-2*n)+"v "+(e-2*n)+"h "+(2*n-e)+"z")}}))}_basicExtraRounded(t){const{size:e,x:i,y:r}=t,n=e/7;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${i} ${r+2.5*n}v `+2*n+`a ${2.5*n} ${2.5*n}, 0, 0, 0, ${2.5*n} ${2.5*n}h `+2*n+`a ${2.5*n} ${2.5*n}, 0, 0, 0, ${2.5*n} ${2.5*-n}v `+-2*n+`a ${2.5*n} ${2.5*n}, 0, 0, 0, ${2.5*-n} ${2.5*-n}h `+-2*n+`a ${2.5*n} ${2.5*n}, 0, 0, 0, ${2.5*-n} ${2.5*n}`+`M ${i+2.5*n} ${r+n}h `+2*n+`a ${1.5*n} ${1.5*n}, 0, 0, 1, ${1.5*n} ${1.5*n}v `+2*n+`a ${1.5*n} ${1.5*n}, 0, 0, 1, ${1.5*-n} ${1.5*n}h `+-2*n+`a ${1.5*n} ${1.5*n}, 0, 0, 1, ${1.5*-n} ${1.5*-n}v `+-2*n+`a ${1.5*n} ${1.5*n}, 0, 0, 1, ${1.5*n} ${1.5*-n}`)}}))}_drawDot({x:t,y:e,size:i,rotation:r}){this._basicDot({x:t,y:e,size:i,rotation:r})}_drawSquare({x:t,y:e,size:i,rotation:r}){this._basicSquare({x:t,y:e,size:i,rotation:r})}_drawExtraRounded({x:t,y:e,size:i,rotation:r}){this._basicExtraRounded({x:t,y:e,size:i,rotation:r})}}const u={dot:"dot",square:"square"},d=Object.values(u);class f{constructor({svg:t,type:e,window:i}){this._svg=t,this._type=e,this._window=i}draw(t,e,i,r){let n;n=this._type===u.square?this._drawSquare:this._drawDot,n.call(this,{x:t,y:e,size:i,rotation:r})}_rotateFigure({x:t,y:e,size:i,rotation:r=0,draw:n}){var o;const s=t+i/2,a=e+i/2;n(),null===(o=this._element)||void 0===o||o.setAttribute("transform",`rotate(${180*r/Math.PI},${s},${a})`)}_basicDot(t){const{size:e,x:i,y:r}=t;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(i+e/2)),this._element.setAttribute("cy",String(r+e/2)),this._element.setAttribute("r",String(e/2))}}))}_basicSquare(t){const{size:e,x:i,y:r}=t;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(i)),this._element.setAttribute("y",String(r)),this._element.setAttribute("width",String(e)),this._element.setAttribute("height",String(e))}}))}_drawDot({x:t,y:e,size:i,rotation:r}){this._basicDot({x:t,y:e,size:i,rotation:r})}_drawSquare({x:t,y:e,size:i,rotation:r}){this._basicSquare({x:t,y:e,size:i,rotation:r})}}const g="circle",m=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],y=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];class p{constructor(t,e){this._roundSize=t=>this._options.dotsOptions.roundSize?Math.floor(t):t,this._window=e,this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(t.width)),this._element.setAttribute("height",String(t.height)),this._element.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),t.dotsOptions.roundSize||this._element.setAttribute("shape-rendering","crispEdges"),this._element.setAttribute("viewBox",`0 0 ${t.width} ${t.height}`),this._defs=this._window.document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._imageUri=t.image,this._instanceId=p.instanceCount++,this._options=t}get width(){return this._options.width}get height(){return this._options.height}getElement(){return this._element}async drawQR(t){const e=t.getModuleCount(),i=Math.min(this._options.width,this._options.height)-2*this._options.margin,r=this._options.shape===g?i/Math.sqrt(2):i,n=this._roundSize(r/e);let s={hideXDots:0,hideYDots:0,width:0,height:0};if(this._qr=t,this._options.image){if(await this.loadImage(),!this._image)return;const{imageOptions:t,qrOptions:i}=this._options,r=t.imageSize*l[i.errorCorrectionLevel],a=Math.floor(r*e*e);s=function({originalHeight:t,originalWidth:e,maxHiddenDots:i,maxHiddenAxisDots:r,dotSize:n}){const o={x:0,y:0},s={x:0,y:0};if(t<=0||e<=0||i<=0||n<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};const a=t/e;return o.x=Math.floor(Math.sqrt(i/a)),o.x<=0&&(o.x=1),r&&r<o.x&&(o.x=r),o.x%2==0&&o.x--,s.x=o.x*n,o.y=1+2*Math.ceil((o.x*a-1)/2),s.y=Math.round(s.x*a),(o.y*o.x>i||r&&r<o.y)&&(r&&r<o.y?(o.y=r,o.y%2==0&&o.x--):o.y-=2,s.y=o.y*n,o.x=1+2*Math.ceil((o.y/a-1)/2),s.x=Math.round(s.y/a)),{height:s.y,width:s.x,hideYDots:o.y,hideXDots:o.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:a,maxHiddenAxisDots:e-14,dotSize:n})}this.drawBackground(),this.drawDots(((t,i)=>{var r,n,o,a,l,c;return!(this._options.imageOptions.hideBackgroundDots&&t>=(e-s.hideYDots)/2&&t<(e+s.hideYDots)/2&&i>=(e-s.hideXDots)/2&&i<(e+s.hideXDots)/2||(null===(r=m[t])||void 0===r?void 0:r[i])||(null===(n=m[t-e+7])||void 0===n?void 0:n[i])||(null===(o=m[t])||void 0===o?void 0:o[i-e+7])||(null===(a=y[t])||void 0===a?void 0:a[i])||(null===(l=y[t-e+7])||void 0===l?void 0:l[i])||(null===(c=y[t])||void 0===c?void 0:c[i-e+7]))})),this.drawCorners(),this._options.image&&await this.drawImage({width:s.width,height:s.height,count:e,dotSize:n})}drawBackground(){var t,e,i;const r=this._element,n=this._options;if(r){const r=null===(t=n.backgroundOptions)||void 0===t?void 0:t.gradient,o=null===(e=n.backgroundOptions)||void 0===e?void 0:e.color;let s=n.height,a=n.width;if(r||o){const t=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id",`clip-path-background-color-${this._instanceId}`),this._defs.appendChild(this._backgroundClipPath),(null===(i=n.backgroundOptions)||void 0===i?void 0:i.round)&&(s=a=Math.min(n.width,n.height),t.setAttribute("rx",String(s/2*n.backgroundOptions.round))),t.setAttribute("x",String(this._roundSize((n.width-a)/2))),t.setAttribute("y",String(this._roundSize((n.height-s)/2))),t.setAttribute("width",String(a)),t.setAttribute("height",String(s)),this._backgroundClipPath.appendChild(t),this._createColor({options:r,color:o,additionalRotation:0,x:0,y:0,height:n.height,width:n.width,name:`background-color-${this._instanceId}`})}}}drawDots(t){var e,i;if(!this._qr)throw"QR code is not defined";const r=this._options,n=this._qr.getModuleCount();if(n>r.width||n>r.height)throw"The canvas is too small.";const o=Math.min(r.width,r.height)-2*r.margin,a=r.shape===g?o/Math.sqrt(2):o,l=this._roundSize(a/n),c=this._roundSize((r.width-n*l)/2),u=this._roundSize((r.height-n*l)/2),h=new s({svg:this._element,type:r.dotsOptions.type,window:this._window});this._dotsClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id",`clip-path-dot-color-${this._instanceId}`),this._defs.appendChild(this._dotsClipPath),this._createColor({options:null===(e=r.dotsOptions)||void 0===e?void 0:e.gradient,color:r.dotsOptions.color,additionalRotation:0,x:0,y:0,height:r.height,width:r.width,name:`dot-color-${this._instanceId}`});for(let e=0;e<n;e++)for(let r=0;r<n;r++)t&&!t(e,r)||(null===(i=this._qr)||void 0===i?void 0:i.isDark(e,r))&&(h.draw(c+r*l,u+e*l,l,((i,o)=>!(r+i<0||e+o<0||r+i>=n||e+o>=n)&&!(t&&!t(e+o,r+i))&&!!this._qr&&this._qr.isDark(e+o,r+i))),h._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(h._element));if(r.shape===g){const t=this._roundSize((o/l-n)/2),e=n+2*t,i=c-t*l,r=u-t*l,s=[],a=this._roundSize(e/2);for(let i=0;i<e;i++){s[i]=[];for(let r=0;r<e;r++)i>=t-1&&i<=e-t&&r>=t-1&&r<=e-t||Math.sqrt((i-a)*(i-a)+(r-a)*(r-a))>a?s[i][r]=0:s[i][r]=this._qr.isDark(r-2*t<0?r:r>=n?r-2*t:r-t,i-2*t<0?i:i>=n?i-2*t:i-t)?1:0}for(let t=0;t<e;t++)for(let n=0;n<e;n++)s[t][n]&&(h.draw(i+n*l,r+t*l,l,((e,i)=>{var r;return!!(null===(r=s[t+i])||void 0===r?void 0:r[n+e])})),h._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(h._element))}}drawCorners(){if(!this._qr)throw"QR code is not defined";const t=this._element,e=this._options;if(!t)throw"Element code is not defined";const i=this._qr.getModuleCount(),r=Math.min(e.width,e.height)-2*e.margin,n=e.shape===g?r/Math.sqrt(2):r,o=this._roundSize(n/i),a=7*o,u=3*o,p=this._roundSize((e.width-i*o)/2),l=this._roundSize((e.height-i*o)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach((([t,r,n])=>{var g,v,w,b,E,_,T,S,x,I,P,O,A,k;const C=p+t*o*(i-7),D=l+r*o*(i-7);let M=this._dotsClipPath,N=this._dotsClipPath;if(((null===(g=e.cornersSquareOptions)||void 0===g?void 0:g.gradient)||(null===(v=e.cornersSquareOptions)||void 0===v?void 0:v.color))&&(M=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),M.setAttribute("id",`clip-path-corners-square-color-${t}-${r}-${this._instanceId}`),this._defs.appendChild(M),this._cornersSquareClipPath=this._cornersDotClipPath=N=M,this._createColor({options:null===(w=e.cornersSquareOptions)||void 0===w?void 0:w.gradient,color:null===(b=e.cornersSquareOptions)||void 0===b?void 0:b.color,additionalRotation:n,x:C,y:D,height:a,width:a,name:`corners-square-color-${t}-${r}-${this._instanceId}`})),(null===(E=e.cornersSquareOptions)||void 0===E?void 0:E.type)&&c.includes(e.cornersSquareOptions.type)){const t=new h({svg:this._element,type:e.cornersSquareOptions.type,window:this._window});t.draw(C,D,a,n),t._element&&M&&M.appendChild(t._element)}else{const t=new s({svg:this._element,type:(null===(_=e.cornersSquareOptions)||void 0===_?void 0:_.type)||e.dotsOptions.type,window:this._window});for(let e=0;e<m.length;e++)for(let i=0;i<m[e].length;i++)(null===(T=m[e])||void 0===T?void 0:T[i])&&(t.draw(C+i*o,D+e*o,o,((t,r)=>{var n;return!!(null===(n=m[e+r])||void 0===n?void 0:n[i+t])})),t._element&&M&&M.appendChild(t._element))}if(((null===(S=e.cornersDotOptions)||void 0===S?void 0:S.gradient)||(null===(x=e.cornersDotOptions)||void 0===x?void 0:x.color))&&(N=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),N.setAttribute("id",`clip-path-corners-dot-color-${t}-${r}-${this._instanceId}`),this._defs.appendChild(N),this._cornersDotClipPath=N,this._createColor({options:null===(I=e.cornersDotOptions)||void 0===I?void 0:I.gradient,color:null===(P=e.cornersDotOptions)||void 0===P?void 0:P.color,additionalRotation:n,x:C+2*o,y:D+2*o,height:u,width:u,name:`corners-dot-color-${t}-${r}-${this._instanceId}`})),(null===(O=e.cornersDotOptions)||void 0===O?void 0:O.type)&&d.includes(e.cornersDotOptions.type)){const t=new f({svg:this._element,type:e.cornersDotOptions.type,window:this._window});t.draw(C+2*o,D+2*o,u,n),t._element&&N&&N.appendChild(t._element)}else{const t=new s({svg:this._element,type:(null===(A=e.cornersDotOptions)||void 0===A?void 0:A.type)||e.dotsOptions.type,window:this._window});for(let e=0;e<y.length;e++)for(let i=0;i<y[e].length;i++)(null===(k=y[e])||void 0===k?void 0:k[i])&&(t.draw(C+i*o,D+e*o,o,((t,r)=>{var n;return!!(null===(n=y[e+r])||void 0===n?void 0:n[i+t])})),t._element&&N&&N.appendChild(t._element))}}))}loadImage(){return new Promise(((t,e)=>{var i;const r=this._options;if(!r.image)return e("Image is not defined");if(null===(i=r.nodeCanvas)||void 0===i?void 0:i.loadImage)r.nodeCanvas.loadImage(r.image).then((e=>{var i,n;if(this._image=e,this._options.imageOptions.saveAsBlob){const t=null===(i=r.nodeCanvas)||void 0===i?void 0:i.createCanvas(this._image.width,this._image.height);null===(n=null==t?void 0:t.getContext("2d"))||void 0===n||n.drawImage(e,0,0),this._imageUri=null==t?void 0:t.toDataURL()}t()})).catch(e);else{const e=new this._window.Image;"string"==typeof r.imageOptions.crossOrigin&&(e.crossOrigin=r.imageOptions.crossOrigin),this._image=e,e.onload=async()=>{this._options.imageOptions.saveAsBlob&&(this._imageUri=await async function(t,e){return new Promise((i=>{const r=new e.XMLHttpRequest;r.onload=function(){const t=new e.FileReader;t.onloadend=function(){i(t.result)},t.readAsDataURL(r.response)},r.open("GET",t),r.responseType="blob",r.send()}))}(r.image||"",this._window)),t()},e.src=r.image}}))}async drawImage({width:t,height:e,count:i,dotSize:r}){const n=this._options,o=this._roundSize((n.width-i*r)/2),s=this._roundSize((n.height-i*r)/2),a=o+this._roundSize(n.imageOptions.margin+(i*r-t)/2),l=s+this._roundSize(n.imageOptions.margin+(i*r-e)/2),c=t-2*n.imageOptions.margin,u=e-2*n.imageOptions.margin,h=this._window.document.createElementNS("http://www.w3.org/2000/svg","image");h.setAttribute("href",this._imageUri||""),h.setAttribute("xlink:href",this._imageUri||""),h.setAttribute("x",String(a)),h.setAttribute("y",String(l)),h.setAttribute("width",`${c}px`),h.setAttribute("height",`${u}px`),this._element.appendChild(h)}_createColor({options:t,color:e,additionalRotation:i,x:r,y:n,height:o,width:s,name:a}){const l=s>o?s:o,c=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");if(c.setAttribute("x",String(r)),c.setAttribute("y",String(n)),c.setAttribute("height",String(o)),c.setAttribute("width",String(s)),c.setAttribute("clip-path",`url('#clip-path-${a}')`),t){let e;if("radial"===t.type)e=this._window.document.createElementNS("http://www.w3.org/2000/svg","radialGradient"),e.setAttribute("id",a),e.setAttribute("gradientUnits","userSpaceOnUse"),e.setAttribute("fx",String(r+s/2)),e.setAttribute("fy",String(n+o/2)),e.setAttribute("cx",String(r+s/2)),e.setAttribute("cy",String(n+o/2)),e.setAttribute("r",String(l/2));else{const l=((t.rotation||0)+i)%(2*Math.PI),c=(l+2*Math.PI)%(2*Math.PI);let u=r+s/2,h=n+o/2,d=r+s/2,g=n+o/2;c>=0&&c<=.25*Math.PI||c>1.75*Math.PI&&c<=2*Math.PI?(u-=s/2,h-=o/2*Math.tan(l),d+=s/2,g+=o/2*Math.tan(l)):c>.25*Math.PI&&c<=.75*Math.PI?(h-=o/2,u-=s/2/Math.tan(l),g+=o/2,d+=s/2/Math.tan(l)):c>.75*Math.PI&&c<=1.25*Math.PI?(u+=s/2,h+=o/2*Math.tan(l),d-=s/2,g-=o/2*Math.tan(l)):c>1.25*Math.PI&&c<=1.75*Math.PI&&(h+=o/2,u+=s/2/Math.tan(l),g-=o/2,d-=s/2/Math.tan(l)),e=this._window.document.createElementNS("http://www.w3.org/2000/svg","linearGradient"),e.setAttribute("id",a),e.setAttribute("gradientUnits","userSpaceOnUse"),e.setAttribute("x1",String(Math.round(u))),e.setAttribute("y1",String(Math.round(h))),e.setAttribute("x2",String(Math.round(d))),e.setAttribute("y2",String(Math.round(g)))}t.colorStops.forEach((({offset:t,color:i})=>{const r=this._window.document.createElementNS("http://www.w3.org/2000/svg","stop");r.setAttribute("offset",100*t+"%"),r.setAttribute("stop-color",i),e.appendChild(r)})),c.setAttribute("fill",`url('#${a}')`),this._defs.appendChild(e)}else e&&c.setAttribute("fill",e);this._element.appendChild(c)}}p.instanceCount=0;const v=p,w="canvas",E={};for(let t=0;t<=40;t++)E[t]=t;const b={type:w,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:E[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{saveAsBlob:!0,hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000",roundSize:!0},backgroundOptions:{round:0,color:"#fff"}};function _(t){const e=Object.assign({},t);if(!e.colorStops||!e.colorStops.length)throw"Field 'colorStops' is required in gradient";return e.rotation?e.rotation=Number(e.rotation):e.rotation=0,e.colorStops=e.colorStops.map((t=>Object.assign(Object.assign({},t),{offset:Number(t.offset)}))),e}function T(t){const e=Object.assign({},t);return e.width=Number(e.width),e.height=Number(e.height),e.margin=Number(e.margin),e.imageOptions=Object.assign(Object.assign({},e.imageOptions),{hideBackgroundDots:Boolean(e.imageOptions.hideBackgroundDots),imageSize:Number(e.imageOptions.imageSize),margin:Number(e.imageOptions.margin)}),e.margin>Math.min(e.width,e.height)&&(e.margin=Math.min(e.width,e.height)),e.dotsOptions=Object.assign({},e.dotsOptions),e.dotsOptions.gradient&&(e.dotsOptions.gradient=_(e.dotsOptions.gradient)),e.cornersSquareOptions&&(e.cornersSquareOptions=Object.assign({},e.cornersSquareOptions),e.cornersSquareOptions.gradient&&(e.cornersSquareOptions.gradient=_(e.cornersSquareOptions.gradient))),e.cornersDotOptions&&(e.cornersDotOptions=Object.assign({},e.cornersDotOptions),e.cornersDotOptions.gradient&&(e.cornersDotOptions.gradient=_(e.cornersDotOptions.gradient))),e.backgroundOptions&&(e.backgroundOptions=Object.assign({},e.backgroundOptions),e.backgroundOptions.gradient&&(e.backgroundOptions.gradient=_(e.backgroundOptions.gradient))),e}var S=i(873),x=i.n(S);function I(t){if(!t)throw new Error("Extension must be defined");"."===t[0]&&(t=t.substring(1));const e={bmp:"image/bmp",gif:"image/gif",ico:"image/vnd.microsoft.icon",jpeg:"image/jpeg",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",tif:"image/tiff",tiff:"image/tiff",webp:"image/webp",pdf:"application/pdf"}[t.toLowerCase()];if(!e)throw new Error(`Extension "${t}" is not supported`);return e}class P{constructor(t){(null==t?void 0:t.jsdom)?this._window=new t.jsdom("",{resources:"usable"}).window:this._window=window,this._options=t?T(r(b,t)):b,this.update()}static _clearContainer(t){t&&(t.innerHTML="")}_setupSvg(){if(!this._qr)return;const t=new v(this._options,this._window);this._svg=t.getElement(),this._svgDrawingPromise=t.drawQR(this._qr).then((()=>{var e;this._svg&&(null===(e=this._extension)||void 0===e||e.call(this,t.getElement(),this._options))}))}_setupCanvas(){var t,e;this._qr&&((null===(t=this._options.nodeCanvas)||void 0===t?void 0:t.createCanvas)?(this._nodeCanvas=this._options.nodeCanvas.createCanvas(this._options.width,this._options.height),this._nodeCanvas.width=this._options.width,this._nodeCanvas.height=this._options.height):(this._domCanvas=document.createElement("canvas"),this._domCanvas.width=this._options.width,this._domCanvas.height=this._options.height),this._setupSvg(),this._canvasDrawingPromise=null===(e=this._svgDrawingPromise)||void 0===e?void 0:e.then((()=>{var t;if(!this._svg)return;const e=this._svg,i=(new this._window.XMLSerializer).serializeToString(e),r=btoa(i),n=`data:${I("svg")};base64,${r}`;if(null===(t=this._options.nodeCanvas)||void 0===t?void 0:t.loadImage)return this._options.nodeCanvas.loadImage(n).then((t=>{var e,i;t.width=this._options.width,t.height=this._options.height,null===(i=null===(e=this._nodeCanvas)||void 0===e?void 0:e.getContext("2d"))||void 0===i||i.drawImage(t,0,0)}));{const t=new this._window.Image;return new Promise((e=>{t.onload=()=>{var i,r;null===(r=null===(i=this._domCanvas)||void 0===i?void 0:i.getContext("2d"))||void 0===r||r.drawImage(t,0,0),e()},t.src=n}))}})))}async _getElement(t="png"){if(!this._qr)throw"QR code is empty";return"svg"===t.toLowerCase()?(this._svg&&this._svgDrawingPromise||this._setupSvg(),await this._svgDrawingPromise,this._svg):((this._domCanvas||this._nodeCanvas)&&this._canvasDrawingPromise||this._setupCanvas(),await this._canvasDrawingPromise,this._domCanvas||this._nodeCanvas)}update(t){P._clearContainer(this._container),this._options=t?T(r(this._options,t)):this._options,this._options.data&&(this._qr=x()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(t){switch(!0){case/^[0-9]*$/.test(t):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(t):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===w?this._setupCanvas():this._setupSvg(),this.append(this._container))}append(t){if(t){if("function"!=typeof t.appendChild)throw"Container should be a single DOM node";this._options.type===w?this._domCanvas&&t.appendChild(this._domCanvas):this._svg&&t.appendChild(this._svg),this._container=t}}applyExtension(t){if(!t)throw"Extension function should be defined.";this._extension=t,this.update()}deleteExtension(){this._extension=void 0,this.update()}async getRawData(t="png"){if(!this._qr)throw"QR code is empty";const r=await this._getElement(t),i=I(t);if(!r)return null;if("svg"===t.toLowerCase()){const t=`<?xml version="1.0" standalone="no"?>\r\n${(new this._window.XMLSerializer).serializeToString(r)}`;return"undefined"==typeof Blob||this._options.jsdom?e.from(t):new Blob([t],{type:i})}return new Promise((t=>{const e=r;if("toBuffer"in e)if("image/png"===i)t(e.toBuffer(i));else if("image/jpeg"===i)t(e.toBuffer(i));else{if("application/pdf"!==i)throw Error("Unsupported extension");t(e.toBuffer(i))}else"toBlob"in e&&e.toBlob(t,i,1)}))}async download(t){if(!this._qr)throw"QR code is empty";if("undefined"==typeof Blob)throw"Cannot download in Node.js, call getRawData instead.";let e="png",i="qr";"string"==typeof t?(e=t,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):"object"==typeof t&&null!==t&&(t.name&&(i=t.name),t.extension&&(e=t.extension));const r=await this._getElement(e);
2if(r)if("svg"===e.toLowerCase()){let t=(new XMLSerializer).serializeToString(r);t='<?xml version="1.0" standalone="no"?>\r\n'+t,o(`data:${I(e)};charset=utf-8,${encodeURIComponent(t)}`,`${i}.svg`)}else o(r.toDataURL(I(e)),`${i}.${e}`)}}const O=P})(),n.default})(),t.exports=r()}).call(this,r(436).Buffer)},295:function(t,e,r){"use strict";r.d(e,"a",(function(){return _}));function n(a){return null!=a&&"object"==typeof a&&!0===a["@@functional/placeholder"]}function o(t){return function e(a){return 0===arguments.length||n(a)?e:t.apply(this,arguments)}}Array.isArray;"undefined"!=typeof Symbol&&Symbol.iterator;function l(t,e){return Object.prototype.hasOwnProperty.call(e,t)}var c=Object.prototype.toString,h=function(){return"[object Arguments]"===c.call(arguments)?function(t){return"[object Arguments]"===c.call(t)}:function(t){return l("callee",t)}}(),d=h,f=!{toString:null}.propertyIsEnumerable("toString"),m=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],y=function(){return arguments.propertyIsEnumerable("length")}(),v=function(t,e){for(var r=0;r<t.length;){if(t[r]===e)return!0;r+=1}return!1};Object.keys,Number.isInteger;"function"==typeof Object.is&&Object.is;var w=function(t){return(t<10?"0":"")+t};Date.prototype.toISOString;var E="function"==typeof Object.assign?Object.assign:function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var output=Object(t),e=1,r=arguments.length;e<r;){var source=arguments[e];if(null!=source)for(var n in source)l(n,source)&&(output[n]=source[n]);e+=1}return output};var _=o((function(t){return E.apply(null,[{}].concat(t))}));var T="\t\n\v\f\r                 \u2028\u2029\ufeff";String.prototype.trim},297:function(t,e,r){"use strict";t.exports=function(t,e){return e||(e={}),"string"!=typeof(t=t&&t.__esModule?t.default:t)?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},298:function(t,e,r){"use strict";r.r(e);r(296);var n=r(277),o=r.n(n),l={props:{options:{type:Object,required:!0},height:Number,width:Number},data:function(){return{style:{width:this.width?"".concat(this.width,"px"):"100%",height:this.height?"".concat(this.height,"px"):"100%",overflow:"hidden",margin:"0 auto"}}},mounted:function(){this.anim=o.a.loadAnimation({container:this.$refs.lavContainer,renderer:"svg",loop:!1!==this.options.loop,autoplay:!1!==this.options.autoplay,animationData:this.options.animationData,rendererSettings:this.options.rendererSettings}),this.$emit("animCreated",this.anim)}},c=r(24),component=Object(c.a)(l,(function(){return(0,this._self._c)("div",{ref:"lavContainer",style:this.style})}),[],!1,null,null,null);e.default=component.exports},3:function(t,e,r){"use strict";function n(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}r.d(e,"a",(function(){return n}))},310:function(t,e,r){"use strict";function n(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}function o(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?n(Object(source),!0).forEach((function(e){l(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):n(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}function l(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}Object.defineProperty(e,"__esModule",{value:!0}),e._setTarget=void 0,e.popParams=m,e.pushParams=f,e.target=void 0,e.withParams=function(t,e){if("object"===c(t)&&void 0!==e)return r=t,n=e,v((function(t){return function(){t(r);for(var e=arguments.length,o=new Array(e),l=0;l<e;l++)o[l]=arguments[l];return n.apply(this,o)}}));var r,n;return v(t)};var h=[],d=null;e.target=d;function f(){null!==d&&h.push(d),e.target=d={}}function m(){var t=d,r=e.target=d=h.pop()||null;
2return r&&(Array.isArray(r.$sub)||(r.$sub=[]),r.$sub.push(t)),t}function y(t){if("object"!==c(t)||Array.isArray(t))throw new Error("params must be an object");e.target=d=o(o({},d),t)}function v(t){var e=t(y);return function(){f();try{for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.apply(this,r)}finally{m()}}}e._setTarget=function(t){e.target=d=t}},313:function(t,e,r){(function(t){t.installComponents=function(component,t){var r="function"==typeof component.exports?component.exports.extendOptions:component.options;for(var i in"function"==typeof component.exports&&(r.components=component.exports.options.components),r.components=r.components||{},t)r.components[i]=r.components[i]||t[i];r.functional&&function(component,t){if(component.exports[e])return;component.exports[e]=!0;var r=component.exports.render;component.exports.render=function(e,n){return r(e,Object.assign({},n,{_c:function(e,a,b){return n._c(t[e]||e,a,b)}}))}}(component,r.components)};var e="_functionalComponents"}).call(this,r(49))},33:function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var n=r(148),o=r(1),l=r(0);function c(t){if(Object(l.a)(1,arguments),!Object(n.a)(t)&&"number"!=typeof t)return!1;var e=Object(o.a)(t);return!isNaN(Number(e))}},4:function(t,e,r){"use strict";(function(t,n){r.d(e,"a",(function(){return _})),r.d(e,"b",(function(){return N})),r.d(e,"c",(function(){return M})),r.d(e,"d",(function(){return D})),r.d(e,"e",(function(){return d})),r.d(e,"f",(function(){return h})),r.d(e,"g",(function(){return Y})),r.d(e,"h",(function(){return F})),r.d(e,"i",(function(){return U})),r.d(e,"j",(function(){return L})),r.d(e,"k",(function(){return f})),r.d(e,"l",(function(){return G})),r.d(e,"m",(function(){return w})),r.d(e,"n",(function(){return v})),r.d(e,"o",(function(){return E})),r.d(e,"p",(function(){return W})),r.d(e,"q",(function(){return T})),r.d(e,"r",(function(){return I})),r.d(e,"s",(function(){return P})),r.d(e,"t",(function(){return j})),r.d(e,"u",(function(){return A})),r.d(e,"v",(function(){return k})),r.d(e,"w",(function(){return S})),r.d(e,"x",(function(){return x})),r.d(e,"y",(function(){return O})),r.d(e,"z",(function(){return V})),r.d(e,"A",(function(){return z})),r.d(e,"B",(function(){return C}));const o=function(t){const e=[];let p=0;for(let i=0;i<t.length;i++){let r=t.charCodeAt(i);r<128?e[p++]=r:r<2048?(e[p++]=r>>6|192,e[p++]=63&r|128):55296==(64512&r)&&i+1<t.length&&56320==(64512&t.charCodeAt(i+1))?(r=65536+((1023&r)<<10)+(1023&t.charCodeAt(++i)),e[p++]=r>>18|240,e[p++]=r>>12&63|128,e[p++]=r>>6&63|128,e[p++]=63&r|128):(e[p++]=r>>12|224,e[p++]=r>>6&63|128,e[p++]=63&r|128)}return e},l={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(input,t){if(!Array.isArray(input))throw Error("encodeByteArray takes an array as a parameter");this.init_();const e=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,output=[];for(let i=0;i<input.length;i+=3){const t=input[i],r=i+1<input.length,n=r?input[i+1]:0,o=i+2<input.length,l=o?input[i+2]:0,c=t>>2,h=(3&t)<<4|n>>4;let d=(15&n)<<2|l>>6,f=63&l;o||(f=64,r||(d=64)),output.push(e[c],e[h],e[d],e[f])}return output.join("")},encodeString(input,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(input):this.encodeByteArray(o(input),t)},decodeString(input,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(input):function(t){const e=[];let r=0,n=0;for(;r<t.length;){const o=t[r++];if(o<128)e[n++]=String.fromCharCode(o);else if(o>191&&o<224){const l=t[r++];e[n++]=String.fromCharCode((31&o)<<6|63&l)}else if(o>239&&o<365){const u=((7&o)<<18|(63&t[r++])<<12|(63&t[r++])<<6|63&t[r++])-65536;e[n++]=String.fromCharCode(55296+(u>>10)),e[n++]=String.fromCharCode(56320+(1023&u))}else{const l=t[r++],c=t[r++];e[n++]=String.fromCharCode((15&o)<<12|(63&l)<<6|63&c)}}return e.join("")}(this.decodeStringToByteArray(input,t))},decodeStringToByteArray(input,t){this.init_();const e=t?this.charToByteMapWebSafe_:this.charToByteMap_,output=[];for(let i=0;i<input.length;){const t=e[input.charAt(i++)],r=i<input.length?e[input.charAt(i)]:0;++i;const n=i<input.length?e[input.charAt(i)]:64;++i;const o=i<input.length?e[input.charAt(i)]:64;if(++i,null==t||null==r||null==n||null==o)throw new c;const l=t<<2|r>>4;if(output.push(l),64!==n){const t=r<<4&240|n>>2;if(output.push(t),64!==o){const t=n<<6&192|o;output.push(t)}}}return output},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let i=0;i<this.ENCODED_VALS.length;i++)this.byteToCharMap_[i]=this.ENCODED_VALS.charAt(i),this.charToByteMap_[this.byteToCharMap_[i]]=i,this.byteToCharMapWebSafe_[i]=this.ENCODED_VALS_WEBSAFE.charAt(i),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[i]]=i,i>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(i)]=i,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(i)]=i)}}};
2class c extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const h=function(t){return function(t){const e=o(t);return l.encodeByteArray(e,!0)}(t).replace(/\./g,"")},d=function(t){try{return l.decodeString(t,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};function f(t,source){if(!(source instanceof Object))return source;switch(source.constructor){case Date:return new Date(source.getTime());case Object:void 0===t&&(t={});break;case Array:t=[];break;default:return source}for(const e in source)source.hasOwnProperty(e)&&"__proto__"!==e&&(t[e]=f(t[e],source[e]));return t}const m=()=>function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==t)return t;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__,y=()=>{try{return m()||(()=>{if(void 0===n||void 0===n.env)return;const t=n.env.__FIREBASE_DEFAULTS__;return t?JSON.parse(t):void 0})()||(()=>{if("undefined"==typeof document)return;let t;try{t=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(t){return}const e=t&&d(t[1]);return e&&JSON.parse(e)})()}catch(t){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${t}`)}},v=t=>{var e,r;return null===(r=null===(e=y())||void 0===e?void 0:e.emulatorHosts)||void 0===r?void 0:r[t]},w=()=>{var t;return null===(t=y())||void 0===t?void 0:t.config},E=t=>{var e;return null===(e=y())||void 0===e?void 0:e[`_${t}`]};class _{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise(((t,e)=>{this.resolve=t,this.reject=e}))}wrapCallback(t){return(e,r)=>{e?this.reject(e):this.resolve(r),"function"==typeof t&&(this.promise.catch((()=>{})),1===t.length?t(e):t(e,r))}}}function T(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function S(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(T())}function x(){var e;const r=null===(e=y())||void 0===e?void 0:e.forceEnvironment;if("node"===r)return!0;if("browser"===r)return!1;try{return"[object process]"===Object.prototype.toString.call(t.process)}catch(t){return!1}}function I(){return"object"==typeof self&&self.self===self}function P(){const t="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof t&&void 0!==t.id}function O(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function A(){const t=T();return t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0}function k(){try{return"object"==typeof indexedDB}catch(t){return!1}}function C(){return new Promise(((t,e)=>{try{let r=!0;const n="validate-browser-context-for-indexeddb-analytics-module",o=self.indexedDB.open(n);o.onsuccess=()=>{o.result.close(),r||self.indexedDB.deleteDatabase(n),t(!0)},o.onupgradeneeded=()=>{r=!1},o.onerror=()=>{var t;e((null===(t=o.error)||void 0===t?void 0:t.message)||"")}}catch(t){e(t)}}))}function D(){return!("undefined"==typeof navigator||!navigator.cookieEnabled)}class M extends Error{constructor(code,t,e){super(t),this.code=code,this.customData=e,this.name="FirebaseError",Object.setPrototypeOf(this,M.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,N.prototype.create)}}class N{constructor(t,e,r){this.service=t,this.serviceName=e,this.errors=r}create(code,...data){const t=data[0]||{},e=`${this.service}/${code}`,template=this.errors[code],r=template?function(template,data){return template.replace(R,((t,e)=>{const r=data[e];return null!=r?String(r):`<${e}?>`}))}(template,t):"Error",n=`${this.serviceName}: ${r} (${e}).`;return new M(e,n,t)}}const R=/\{\$([^}]+)}/g;function F(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function j(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}function L(a,b){if(a===b)return!0;const t=Object.keys(a),e=Object.keys(b);for(const r of t){if(!e.includes(r))return!1;const t=a[r],n=b[r];if(B(t)&&B(n)){if(!L(t,n))return!1}else if(t!==n)return!1}for(const r of e)if(!t.includes(r))return!1;return!0}function B(t){return null!==t&&"object"==typeof t}function V(t){const e=[];
vendor: 1,848 bytes, line 2
2for(const[r,n]of Object.entries(t))Array.isArray(n)?n.forEach((t=>{e.push(encodeURIComponent(r)+"="+encodeURIComponent(t))})):e.push(encodeURIComponent(r)+"="+encodeURIComponent(n));return e.length?"&"+e.join("&"):""}function z(t){const e={};return t.replace(/^\?/,"").split("&").forEach((t=>{if(t){const[r,n]=t.split("=");e[decodeURIComponent(r)]=decodeURIComponent(n)}})),e}function G(t){const e=t.indexOf("?");if(!e)return"";const r=t.indexOf("#",e);return t.substring(e,r>0?r:void 0)}function U(t,e){const r=new $(t,e);return r.subscribe.bind(r)}class ${constructor(t,e){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=e,this.task.then((()=>{t(this)})).catch((t=>{this.error(t)}))}next(t){this.forEachObserver((e=>{e.next(t)}))}error(t){this.forEachObserver((e=>{e.error(t)})),this.close(t)}complete(){this.forEachObserver((t=>{t.complete()})),this.close()}subscribe(t,e,r){let n;if(void 0===t&&void 0===e&&void 0===r)throw new Error("Missing Observer.");n=function(t,e){if("object"!=typeof t||null===t)return!1;for(const r of e)if(r in t&&"function"==typeof t[r])return!0;return!1}(t,["next","error","complete"])?t:{next:t,error:e,complete:r},void 0===n.next&&(n.next=H),void 0===n.error&&(n.error=H),void 0===n.complete&&(n.complete=H);const o=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then((()=>{try{this.finalError?n.error(this.finalError):n.complete()}catch(t){}})),this.observers.push(n),o}unsubscribeOne(i){void 0!==this.observers&&void 0!==this.observers[i]&&(delete this.observers[i],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(t){if(!this.finalized)for(let i=0;i<this.observers.length;i++)this.sendOne(i,t)}sendOne(i,t){this.task.then((()=>
vendor: 5,439 bytes, line 2
2{if(void 0!==this.observers&&void 0!==this.observers[i])try{t(this.observers[i])}catch(t){"undefined"!=typeof console&&console.error&&console.error(t)}}))}close(t){this.finalized||(this.finalized=!0,void 0!==t&&(this.finalError=t),this.task.then((()=>{this.observers=void 0,this.onNoObservers=void 0})))}}function H(){}function Y(t,e=1e3,r=2){const n=e*Math.pow(r,t),o=Math.round(.5*n*(Math.random()-.5)*2);return Math.min(144e5,n+o)}function W(t){return t&&t._delegate?t._delegate:t}}).call(this,r(49),r(116))},40:function(t,e,r){"use strict";r.r(e),r.d(e,"FirebaseError",(function(){return l.c})),r.d(e,"SDK_VERSION",(function(){return Y})),r.d(e,"_DEFAULT_ENTRY_NAME",(function(){return M})),r.d(e,"_addComponent",(function(){return j})),r.d(e,"_addOrOverwriteComponent",(function(){return L})),r.d(e,"_apps",(function(){return R})),r.d(e,"_clearComponents",(function(){return G})),r.d(e,"_components",(function(){return F})),r.d(e,"_getProvider",(function(){return V})),r.d(e,"_registerComponent",(function(){return B})),r.d(e,"_removeServiceInstance",(function(){return z})),r.d(e,"deleteApp",(function(){return J})),r.d(e,"getApp",(function(){return K})),r.d(e,"getApps",(function(){return Q})),r.d(e,"initializeApp",(function(){return W})),r.d(e,"onLog",(function(){return Z})),r.d(e,"registerVersion",(function(){return X})),r.d(e,"setLogLevel",(function(){return tt}));var n=r(61),o=r(70),l=r(4);let c,h;const d=new WeakMap,f=new WeakMap,m=new WeakMap,y=new WeakMap,v=new WeakMap;let w={get(t,e,r){if(t instanceof IDBTransaction){if("done"===e)return f.get(t);if("objectStoreNames"===e)return t.objectStoreNames||m.get(t);if("store"===e)return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return T(t[e])},set:(t,e,r)=>(t[e]=r,!0),has:(t,e)=>t instanceof IDBTransaction&&("done"===e||"store"===e)||e in t};function E(t){return t!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(h||(h=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(S(this),e),T(d.get(this))}:function(...e){return T(t.apply(S(this),e))}:function(e,...r){const n=t.call(S(this),e,...r);return m.set(n,e.sort?e.sort():[e]),T(n)}}function _(t){return"function"==typeof t?E(t):(t instanceof IDBTransaction&&function(t){if(f.has(t))return;const e=new Promise(((e,r)=>{const n=()=>{t.removeEventListener("complete",o),t.removeEventListener("error",l),t.removeEventListener("abort",l)},o=()=>{e(),n()},l=()=>{r(t.error||new DOMException("AbortError","AbortError")),n()};t.addEventListener("complete",o),t.addEventListener("error",l),t.addEventListener("abort",l)}));f.set(t,e)}(t),object=t,(c||(c=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some((t=>object instanceof t))?new Proxy(t,w):t);var object}function T(t){if(t instanceof IDBRequest)return function(t){const e=new Promise(((e,r)=>{const n=()=>{t.removeEventListener("success",o),t.removeEventListener("error",l)},o=()=>{e(T(t.result)),n()},l=()=>{r(t.error),n()};t.addEventListener("success",o),t.addEventListener("error",l)}));return e.then((e=>{e instanceof IDBCursor&&d.set(e,t)})).catch((()=>{})),v.set(e,t),e}(t);if(y.has(t))return y.get(t);const e=_(t);return e!==t&&(y.set(t,e),v.set(e,t)),e}const S=t=>v.get(t);const x=["get","getKey","getAll","getAllKeys","count"],I=["put","add","delete","clear"],P=new Map;function O(t,e){if(!(t instanceof IDBDatabase)||e in t||"string"!=typeof e)return;if(P.get(e))return P.get(e);const r=e.replace(/FromIndex$/,""),n=e!==r,o=I.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!o&&!x.includes(r))return;const l=async function(t,...e){const l=this.transaction(t,o?"readwrite":"readonly");let c=l.store;return n&&(c=c.index(e.shift())),(await Promise.all([c[r](...e),o&&l.done]))[0]};return P.set(e,l),l}w=(t=>({...t,get:(e,r,n)=>O(e,r)||t.get(e,r,n),has:(e,r)=>!!O(e,r)||t.has(e,r)}))(w);class A{constructor(t){this.container=t}getPlatformInfoString(){return this.container.getProviders().map((t=>{if(function(t){const component=t.getComponent();return"VERSION"===(null==component?void 0:component.type)}(t)){const e=t.getImmediate();return`${e.library}/${e.version}`}return null})).filter((t=>t)).join(" ")}}const k="@firebase/app",C="0.9.10",D=new o.b("@firebase/app"),M="[DEFAULT]",N={[k]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","fire-js":"fire-js",firebase:"fire-js-all"},R=new Map,F=new Map;function j(t,component){try{t.container.addComponent(component)}
2catch(e){D.debug(`Component ${component.name} failed to register with FirebaseApp ${t.name}`,e)}}function L(t,component){t.container.addOrOverwriteComponent(component)}function B(component){const t=component.name;if(F.has(t))return D.debug(`There were multiple attempts to register component ${t}.`),!1;F.set(t,component);for(const t of R.values())j(t,component);return!0}function V(t,e){const r=t.container.getProvider("heartbeat").getImmediate({optional:!0});return r&&r.triggerHeartbeat(),t.container.getProvider(e)}function z(t,e,r=M){V(t,e).clearInstance(r)}function G(){F.clear()}const U={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
2d-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."},$=new l.b("app","Firebase",U);class H{constructor(t,e,r){this._isDeleted=!1,this._options=Object.assign({},t),this._config=Object.assign({},e),this._name=e.name,this._automaticDataCollectionEnabled=e.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new n.a("app",(()=>this),"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(t){this.checkDestroyed(),this._automaticDataCollectionEnabled=t}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(t){this._isDeleted=t}checkDestroyed(){if(this.isDeleted)throw $.create("app-deleted",{appName:this._name})}}const Y="9.22.0";function W(t,e={}){let r=t;if("object"!=typeof e){e={name:e}}const o=Object.assign({name:M,automaticDataCollectionEnabled:!1},e),c=o.name;if("string"!=typeof c||!c)throw $.create("bad-app-name",{appName:String(c)});if(r||(r=Object(l.m)()),!r)throw $.create("no-options");const h=R.get(c);if(h){if(Object(l.j)(r,h.options)&&Object(l.j)(o,h.config))return h;throw $.create("duplicate-app",{appName:c})}const d=new n.b(c);for(const component of F.values())d.addComponent(component);const f=new H(r,o,d);return R.set(c,f),f}function K(t=M){const e=R.get(t);if(!e&&t===M&&Object(l.m)())return W();if(!e)throw $.create("no-app",{appName:t});return e}function Q(){return Array.from(R.values())}async function J(t){const e=t.name;R.has(e)&&(R.delete(e),await Promise.all(t.container.getProviders().map((t=>t.delete()))),t.isDeleted=!0)}function X(t,e,r){var o;let l=null!==(o=N[t])&&void 0!==o?o:t;r&&(l+=`-${r}`);const c=l.match(/\s|\//),h=e.match(/\s|\//);if(c||h){const t=[`Unable to register library "${l}" with version "${e}":`];return c&&t.push(`library name "${l}" contains illegal characters (whitespace or "/")`),c&&h&&t.push("and"),h&&t.push(`version name "${e}" contains illegal characters (whitespace or "/")`),void D.warn(t.join(" "))}B(new n.a(`${l}-version`,(()=>({library:l,version:e})),"VERSION"))}function Z(t,e){if(null!==t&&"function"!=typeof t)throw $.create("invalid-log-argument");Object(o.d)(t,e)}function tt(t){Object(o.c)(t)}const et="firebase-heartbeat-store";let nt=null;function it(){return nt||(nt=function(t,e,{blocked:r,upgrade:n,blocking:o,terminated:l}={}){const c=indexedDB.open(t,e),h=T(c);return n&&c.addEventListener("upgradeneeded",(t=>{n(T(c.result),t.oldVersion,t.newVersion,T(c.transaction),t)})),r&&c.addEventListener("blocked",(t=>r(t.oldVersion,t.newVersion,t))),h.then((t=>{l&&t.addEventListener("close",(()=>l())),o&&t.addEventListener("versionchange",(t=>o(t.oldVersion,t.newVersion,t)))})).catch((()=>{})),h}("firebase-heartbeat-database",1,{upgrade:(t,e)=>{if(0===e)t.createObjectStore(et)}}).catch((t=>{throw $.create("idb-open",{originalErrorMessage:t.message})}))),nt}async function at(t,e){try{const r=(await it()).transaction(et,"readwrite"),n=r.objectStore(et);await n.put(e,st(t)),await r.done}catch(t){if(t instanceof l.c)D.warn(t.message);else{const e=$.create("idb-set",{originalErrorMessage:null==t?void 0:t.message});D.warn(e.message)}}}function st(t){return`${t.name}!${t.options.appId}`}class ot{constructor(t){this.container=t,this._heartbeatsCache=null;const e=this.container.getProvider("app").getImmediate();this._storage=new ct(e),this._heartbeatsCachePromise=this._storage.read().then((t=>(this._heartbeatsCache=t,t)))}async triggerHeartbeat(){const t=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),e=lt();if(null===this._heartbeatsCache&&(this._heartbeatsCache=await this._heartbeatsCachePromise),this._heartbeatsCache.lastSentHeartbeatDate!==e&&!this._heartbeatsCache.heartbeats.some((t=>t.date===e)))return this._heartbeatsCache.heartbeats.push({date:e,agent:t}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter((t=>{const e=new Date(t.date).valueOf();return Date.now()-e<=2592e6})),this._storage.overwrite(this._heartbeatsCache)}
2async getHeartbeatsHeader(){if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,null===this._heartbeatsCache||0===this._heartbeatsCache.heartbeats.length)return"";const t=lt(),{heartbeatsToSend:e,unsentEntries:r}=function(t,e=1024){const r=[];let n=t.slice();for(const o of t){const t=r.find((t=>t.agent===o.agent));if(t){if(t.dates.push(o.date),ht(r)>e){t.dates.pop();break}}else if(r.push({agent:o.agent,dates:[o.date]}),ht(r)>e){r.pop();break}n=n.slice(1)}return{heartbeatsToSend:r,unsentEntries:n}}(this._heartbeatsCache.heartbeats),n=Object(l.f)(JSON.stringify({version:2,heartbeats:e}));return this._heartbeatsCache.lastSentHeartbeatDate=t,r.length>0?(this._heartbeatsCache.heartbeats=r,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),n}}function lt(){return(new Date).toISOString().substring(0,10)}class ct{constructor(t){this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!Object(l.v)()&&Object(l.B)().then((()=>!0)).catch((()=>!1))}async read(){if(await this._canUseIndexedDBPromise){return await async function(t){try{const e=await it();return await e.transaction(et).objectStore(et).get(st(t))}catch(t){if(t instanceof l.c)D.warn(t.message);else{const e=$.create("idb-get",{originalErrorMessage:null==t?void 0:t.message});D.warn(e.message)}}}(this.app)||{heartbeats:[]}}return{heartbeats:[]}}async overwrite(t){var e;if(await this._canUseIndexedDBPromise){const r=await this.read();return at(this.app,{lastSentHeartbeatDate:null!==(e=t.lastSentHeartbeatDate)&&void 0!==e?e:r.lastSentHeartbeatDate,heartbeats:t.heartbeats})}}async add(t){var e;if(await this._canUseIndexedDBPromise){const r=await this.read();return at(this.app,{lastSentHeartbeatDate:null!==(e=t.lastSentHeartbeatDate)&&void 0!==e?e:r.lastSentHeartbeatDate,heartbeats:[...r.heartbeats,...t.heartbeats]})}}}function ht(t){return Object(l.f)(JSON.stringify({version:2,heartbeats:t})).length}var ut;ut="",B(new n.a("platform-logger",(t=>new A(t)),"PRIVATE")),B(new n.a("heartbeat",(t=>new ot(t)),"PRIVATE")),X(k,C,ut),X(k,C,"esm2017"),X("fire-js","")},422:function(t,e,r){(function(t){function r(t,e){for(var r=0,i=t.length-1;i>=0;i--){var n=t[i];"."===n?t.splice(i,1):".."===n?(t.splice(i,1),r++):r&&(t.splice(i,1),r--)}if(e)for(;r--;r)t.unshift("..");return t}function filter(t,e){if(t.filter)return t.filter(e);for(var r=[],i=0;i<t.length;i++)e(t[i],i,t)&&r.push(t[i]);return r}e.resolve=function(){for(var e="",n=!1,i=arguments.length-1;i>=-1&&!n;i--){var path=i>=0?arguments[i]:t.cwd();if("string"!=typeof path)throw new TypeError("Arguments to path.resolve must be strings");path&&(e=path+"/"+e,n="/"===path.charAt(0))}return(n?"/":"")+(e=r(filter(e.split("/"),(function(p){return!!p})),!n).join("/"))||"."},e.normalize=function(path){var t=e.isAbsolute(path),o="/"===n(path,-1);return(path=r(filter(path.split("/"),(function(p){return!!p})),!t).join("/"))||t||(path="."),path&&o&&(path+="/"),(t?"/":"")+path},e.isAbsolute=function(path){return"/"===path.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(filter(t,(function(p,t){if("string"!=typeof p)throw new TypeError("Arguments to path.join must be strings");return p})).join("/"))},e.relative=function(t,r){function n(t){for(var e=0;e<t.length&&""===t[e];e++);for(var r=t.length-1;r>=0&&""===t[r];r--);return e>r?[]:t.slice(e,r-e+1)}t=e.resolve(t).substr(1),r=e.resolve(r).substr(1);for(var o=n(t.split("/")),l=n(r.split("/")),c=Math.min(o.length,l.length),h=c,i=0;i<c;i++)if(o[i]!==l[i]){h=i;break}var d=[];for(i=h;i<o.length;i++)d.push("..");return(d=d.concat(l.slice(h))).join("/")},e.sep="/",e.delimiter=":",e.dirname=function(path){if("string"!=typeof path&&(path+=""),0===path.length)return".";for(var code=path.charCodeAt(0),t=47===code,e=-1,r=!0,i=path.length-1;i>=1;--i)if(47===(code=path.charCodeAt(i))){if(!r){e=i;break}}else r=!1;return-1===e?t?"/":".":t&&1===e?"/":path.slice(0,e)},e.basename=function(path,t){var e=function(path){"string"!=typeof path&&(path+="");var i,t=0,e=-1,r=!0;for(i=path.length-1;i>=0;--i)if(47===path.charCodeAt(i)){if(!r){t=i+1;break}}else-1===e&&(r=!1,e=i+1);return-1===e?"":path.slice(t,e)}(path);return t&&e.substr(-1*t.length)===t&&(e=e.substr(0,e.length-t.length)),e},e.extname=function(path){"string"!=typeof path&&(path+="");for(var t=-1,e=0,r=-1,n=!0,o=0,i=path.length-1;i>=0;--i){var code=path.charCodeAt(i);if(47!==code)-1===r&&(n=!1,r=i+1),46===code?-1===t?t=i:1!==o&&(o=1):-1!==t&&(o=-1);else if(!n){e=i+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===e+1?"":path.slice(t,r)};var n="b"==="ab".substr(-1)?function(t,e,r){return t.substr(e,r)}:function(t,e,r){return e<0&&(e=t.length+e),t.substr(e,r)}}).call(this,r(116))},423:function(t,e,r){var n=r(424),o=r(425);t.exports=function(t){if(!t)return[];"{}"===t.substr(0,2)&&(t="\\{\\}"+t.substr(2));return S(function(t){return t.split("\\\\").join(l).split("\\{").join(c).split("\\}").join(h).split("\\,").join(d).split("\\.").join(f)}(t),!0).map(y)};var l="\0SLASH"+Math.random()+"\0",c="\0OPEN"+Math.random()+"\0",h="\0CLOSE"+Math.random()+"\0",d="\0COMMA"+Math.random()+"\0",f="\0PERIOD"+Math.random()+"\0";function m(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function y(t){return t.split(l).join("\\").split(c).join("{").split(h).join("}").split(d).join(",").split(f).join(".")}function v(t){if(!t)return[""];var e=[],r=o("{","}",t);if(!r)return t.split(",");var pre=r.pre,body=r.body,n=r.post,p=pre.split(",");p[p.length-1]+="{"+body+"}";var l=v(n);
2return n.length&&(p[p.length-1]+=l.shift(),p.push.apply(p,l)),e.push.apply(e,p),e}function w(t){return"{"+t+"}"}function E(t){return/^-?0\d/.test(t)}function _(i,t){return i<=t}function T(i,t){return i>=t}function S(t,e){var r=[],l=o("{","}",t);if(!l||/\$$/.test(l.pre))return[t];var c,d=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(l.body),f=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(l.body),y=d||f,x=l.body.indexOf(",")>=0;if(!y&&!x)return l.post.match(/,.*\}/)?S(t=l.pre+"{"+l.body+h+l.post):[t];if(y)c=l.body.split(/\.\./);else if(1===(c=v(l.body)).length&&1===(c=S(c[0],!1).map(w)).length)return(P=l.post.length?S(l.post,!1):[""]).map((function(p){return l.pre+c[0]+p}));var I,pre=l.pre,P=l.post.length?S(l.post,!1):[""];if(y){var O=m(c[0]),A=m(c[1]),k=Math.max(c[0].length,c[1].length),C=3==c.length?Math.abs(m(c[2])):1,D=_;A<O&&(C*=-1,D=T);var M=c.some(E);I=[];for(var i=O;D(i,A);i+=C){var N;if(f)"\\"===(N=String.fromCharCode(i))&&(N="");else if(N=String(i),M){var R=k-N.length;if(R>0){var F=new Array(R+1).join("0");N=i<0?"-"+F+N.slice(1):F+N}}I.push(N)}}else I=n(c,(function(t){return S(t,!1)}));for(var j=0;j<I.length;j++)for(var L=0;L<P.length;L++){var B=pre+I[j]+P[L];(!e||y||B)&&r.push(B)}return r}},424:function(t,e){t.exports=function(t,e){for(var n=[],i=0;i<t.length;i++){var o=e(t[i],i);r(o)?n.push.apply(n,o):n.push(o)}return n};var r=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},425:function(t,e,r){"use strict";function n(a,b,t){a instanceof RegExp&&(a=o(a,t)),b instanceof RegExp&&(b=o(b,t));var e=l(a,b,t);return e&&{start:e[0],end:e[1],pre:t.slice(0,e[0]),body:t.slice(e[0]+a.length,e[1]),post:t.slice(e[1]+b.length)}}function o(t,e){var r=e.match(t);return r?r[0]:null}function l(a,b,t){var e,r,n,o,l,c=t.indexOf(a),h=t.indexOf(b,c+1),i=c;if(c>=0&&h>0){if(a===b)return[c,h];for(e=[],n=t.length;i>=0&&!l;)i==c?(e.push(i),c=t.indexOf(a,i+1)):1==e.length?l=[e.pop(),h]:((r=e.pop())<n&&(n=r,o=h),h=t.indexOf(b,i+1)),i=c<h&&c>=0?c:h;e.length&&(l=[n,o])}return l}t.exports=n,n.range=l},426:function(t,e){!function(){"use strict";if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=window.document,e=[];n.prototype.THROTTLE_TIMEOUT=100,n.prototype.POLL_INTERVAL=null,n.prototype.USE_MUTATION_OBSERVER=!0,n.prototype.observe=function(t){if(!this._observationTargets.some((function(e){return e.element==t}))){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},n.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t})),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},n.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},n.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},n.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter((function(t,i,a){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==a[i-1]}))},n.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},n.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(o(window,"resize",this._checkForIntersections,!0),o(t,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in window&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},n.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,l(window,"resize",this._checkForIntersections,!0),l(t,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},n.prototype._checkForIntersections=function(){var t=this._rootIsInDom(),e=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};
2this._observationTargets.forEach((function(n){var o=n.element,l=c(o),h=this._rootContainsTarget(o),d=n.entry,f=t&&h&&this._computeTargetAndRootIntersection(o,e),m=n.entry=new r({time:window.performance&&performance.now&&performance.now(),target:o,boundingClientRect:l,rootBounds:e,intersectionRect:f});d?t&&h?this._hasCrossedThreshold(d,m)&&this._queuedEntries.push(m):d&&d.isIntersecting&&this._queuedEntries.push(m):this._queuedEntries.push(m)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},n.prototype._computeTargetAndRootIntersection=function(e,r){if("none"!=window.getComputedStyle(e).display){for(var n,o,l,h,f,m,y,v,w=c(e),E=d(e),_=!1;!_;){var T=null,S=1==E.nodeType?window.getComputedStyle(E):{};if("none"==S.display)return;if(E==this.root||E==t?(_=!0,T=r):E!=t.body&&E!=t.documentElement&&"visible"!=S.overflow&&(T=c(E)),T&&(n=T,o=w,l=void 0,h=void 0,f=void 0,m=void 0,y=void 0,v=void 0,l=Math.max(n.top,o.top),h=Math.min(n.bottom,o.bottom),f=Math.max(n.left,o.left),m=Math.min(n.right,o.right),v=h-l,!(w=(y=m-f)>=0&&v>=0&&{top:l,bottom:h,left:f,right:m,width:y,height:v})))break;E=d(E)}return w}},n.prototype._getRootRect=function(){var e;if(this.root)e=c(this.root);else{var html=t.documentElement,body=t.body;e={top:0,left:0,right:html.clientWidth||body.clientWidth,width:html.clientWidth||body.clientWidth,bottom:html.clientHeight||body.clientHeight,height:html.clientHeight||body.clientHeight}}return this._expandRectByRootMargin(e)},n.prototype._expandRectByRootMargin=function(rect){var t=this._rootMarginValues.map((function(t,i){return"px"==t.unit?t.value:t.value*(i%2?rect.width:rect.height)/100})),e={top:rect.top-t[0],right:rect.right+t[1],bottom:rect.bottom+t[2],left:rect.left-t[3]};return e.width=e.right-e.left,e.height=e.bottom-e.top,e},n.prototype._hasCrossedThreshold=function(t,e){var r=t&&t.isIntersecting?t.intersectionRatio||0:-1,n=e.isIntersecting?e.intersectionRatio||0:-1;if(r!==n)for(var i=0;i<this.thresholds.length;i++){var o=this.thresholds[i];if(o==r||o==n||o<r!=o<n)return!0}},n.prototype._rootIsInDom=function(){return!this.root||h(t,this.root)},n.prototype._rootContainsTarget=function(e){return h(this.root||t,e)},n.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},n.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},window.IntersectionObserver=n,window.IntersectionObserverEntry=r}function r(t){this.time=t.time,this.target=t.target,this.rootBounds=t.rootBounds,this.boundingClientRect=t.boundingClientRect,this.intersectionRect=t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0},this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,r=e.width*e.height,n=this.intersectionRect,o=n.width*n.height;this.intersectionRatio=r?Number((o/r).toFixed(4)):this.isIntersecting?1:0}function n(t,e){var r,n,o,l=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(l.root&&1!=l.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=(r=this._checkForIntersections.bind(this),n=this.THROTTLE_TIMEOUT,o=null,function(){o||(o=setTimeout((function(){r(),o=null}),n))}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(l.rootMargin),this.thresholds=this._initThresholds(l.threshold),this.root=l.root||null,this.rootMargin=this._rootMarginValues.map((function(t){return t.value+t.unit})).join(" ")}function o(t,e,r,n){"function"==typeof t.addEventListener?t.addEventListener(e,r,n||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,r)}function l(t,e,r,n){"function"==typeof t.removeEventListener?t.removeEventListener(e,r,n||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,r)}function c(t){var rect;try{rect=t.getBoundingClientRect()}catch(t){}return rect?(rect.width&&rect.height||(rect={top:rect.top,right:rect.right,bottom:rect.bottom,left:rect.left,width:rect.right-rect.left,height:rect.bottom-rect.top}),rect):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function h(t,e){for(var r=e;r;){if(r==t)return!0;r=d(r)}return!1}function d(t){var e=t.parentNode;return e&&11==e.nodeType&&e.host?e.host:e&&e.assignedSlot?e.assignedSlot.parentNode:e}}()},428:function(t,e){var r="undefined"!=typeof self?self:this,n=function(){function t(){this.fetch=!1,this.DOMException=r.DOMException}return t.prototype=r,new t}();!function(t){!function(e){var r="URLSearchParams"in t,n="Symbol"in t&&"iterator"in Symbol,o="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),l="FormData"in t,c="ArrayBuffer"in t;if(c)var h=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array
2]"],d=ArrayBuffer.isView||function(t){return t&&h.indexOf(Object.prototype.toString.call(t))>-1};function f(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function m(t){return"string"!=typeof t&&(t=String(t)),t}function y(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return n&&(e[Symbol.iterator]=function(){return e}),e}function v(t){this.map={},t instanceof v?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(header){this.append(header[0],header[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function w(body){if(body.bodyUsed)return Promise.reject(new TypeError("Already read"));body.bodyUsed=!0}function E(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function _(t){var e=new FileReader,r=E(e);return e.readAsArrayBuffer(t),r}function T(t){if(t.slice)return t.slice(0);var view=new Uint8Array(t.byteLength);return view.set(new Uint8Array(t)),view.buffer}function S(){return this.bodyUsed=!1,this._initBody=function(body){var t;this._bodyInit=body,body?"string"==typeof body?this._bodyText=body:o&&Blob.prototype.isPrototypeOf(body)?this._bodyBlob=body:l&&FormData.prototype.isPrototypeOf(body)?this._bodyFormData=body:r&&URLSearchParams.prototype.isPrototypeOf(body)?this._bodyText=body.toString():c&&o&&((t=body)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=T(body.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c&&(ArrayBuffer.prototype.isPrototypeOf(body)||d(body))?this._bodyArrayBuffer=T(body):this._bodyText=body=Object.prototype.toString.call(body):this._bodyText="",this.headers.get("content-type")||("string"==typeof body?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(body)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var t=w(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?w(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(_)}),this.text=function(){var t,e,r,n=w(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=E(e),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var view=new Uint8Array(t),e=new Array(view.length),i=0;i<view.length;i++)e[i]=String.fromCharCode(view[i]);return e.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},l&&(this.formData=function(){return this.text().then(P)}),this.json=function(){return this.text().then(JSON.parse)},this}v.prototype.append=function(t,e){t=f(t),e=m(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},v.prototype.delete=function(t){delete this.map[f(t)]},v.prototype.get=function(t){return t=f(t),this.has(t)?this.map[t]:null},v.prototype.has=function(t){return this.map.hasOwnProperty(f(t))},v.prototype.set=function(t,e){this.map[f(t)]=m(e)},v.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},v.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),y(t)},v.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),y(t)},v.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),y(t)},n&&(v.prototype[Symbol.iterator]=v.prototype.entries);var x=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function I(input,t){var e,r,body=(t=t||{}).body;if(input instanceof I){if(input.bodyUsed)throw new TypeError("Already read");this.url=input.url,this.credentials=input.credentials,t.headers||(this.headers=new v(input.headers)),this.method=input.method,this.mode=input.mode,this.signal=input.signal,body||null==input._bodyInit||(body=input._bodyInit,input.bodyUsed=!0)}else this.url=String(input);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new v(t.headers)),this.method=(e=t.method||this.method||"GET",r=e.toUpperCase(),x.indexOf(r)>-1?r:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&body)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(body)}function P(body){var form=new FormData;return body.trim().split("&").forEach((function(t){if(t){var e=t.split("="),r=e.shift().replace(/\+/g," "),n=e.join("=").replace(/\+/g," ");form.append(decodeURIComponent(r),decodeURIComponent(n))}})),form}function O(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new v(e.headers),this.url=e.url||"",this._initBody(t)}I.prototype.clone=function(){return new I(this,{body:this._bodyInit})},S.call(I.prototype),S.call(O.prototype),O.prototype.clone=function(){return new O(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new v(this.headers),url:this.url})},O.error=function(){var t=new O(null,{status:0,statusText:""});return t.type="error",t};var A=[301,302,303,307,308];O.redirect=function(t,e){if(-1===A.indexOf(e))throw new RangeError("Invalid status code");return new O(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function k(input,t){return new Promise((function(r,n){var l=new I(input,t);if(l.signal&&l.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var c=new XMLHttpRequest;function h(){c.abort()}c.onload=function(){var t,e,n={status:c.status,statusText:c.statusText,headers:(t=c.getAllResponseHeaders()||"",e=new v,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEac
2h((function(line){var t=line.split(":"),r=t.shift().trim();if(r){var n=t.join(":").trim();e.append(r,n)}})),e)};n.url="responseURL"in c?c.responseURL:n.headers.get("X-Request-URL");var body="response"in c?c.response:c.responseText;r(new O(body,n))},c.onerror=function(){n(new TypeError("Network request failed"))},c.ontimeout=function(){n(new TypeError("Network request failed"))},c.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},c.open(l.method,l.url,!0),"include"===l.credentials?c.withCredentials=!0:"omit"===l.credentials&&(c.withCredentials=!1),"responseType"in c&&o&&(c.responseType="blob"),l.headers.forEach((function(t,e){c.setRequestHeader(e,t)})),l.signal&&(l.signal.addEventListener("abort",h),c.onreadystatechange=function(){4===c.readyState&&l.signal.removeEventListener("abort",h)}),c.send(void 0===l._bodyInit?null:l._bodyInit)}))}k.polyfill=!0,t.fetch||(t.fetch=k,t.Headers=v,t.Request=I,t.Response=O),e.Headers=v,e.Request=I,e.Response=O,e.fetch=k,Object.defineProperty(e,"__esModule",{value:!0})}({})}(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var o=n;(e=o.fetch).default=o.fetch,e.fetch=o.fetch,e.Headers=o.Headers,e.Request=o.Request,e.Response=o.Response,t.exports=e},429:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=r(430),l=n(r(431)),c=r(271),h=function(t){return(0,o.isExtractableFile)(t)||null!==t&&"object"==typeof t&&"function"==typeof t.pipe};e.default=function(t,e,r,n){void 0===n&&(n=c.defaultJsonSerializer);var d=(0,o.extractFiles)({query:t,variables:e,operationName:r},"",h),f=d.clone,m=d.files;if(0===m.size){if(!Array.isArray(t))return n.stringify(f);if(void 0!==e&&!Array.isArray(e))throw new Error("Cannot create request body with given variable type, array expected");var y=t.reduce((function(t,r,n){return t.push({query:r,variables:e?e[n]:void 0}),t}),[]);return n.stringify(y)}var form=new("undefined"==typeof FormData?l.default:FormData);form.append("operations",n.stringify(f));var map={},i=0;return m.forEach((function(t){map[++i]=t})),form.append("map",n.stringify(map)),i=0,m.forEach((function(t,e){form.append("".concat(++i),e)})),form}},430:function(t,e,r){"use strict";r.r(e);var n=r(185);r.d(e,"ReactNativeFile",(function(){return n}));var o=r(270);r.d(e,"extractFiles",(function(){return o}));var l=r(186);r.d(e,"isExtractableFile",(function(){return l}))},431:function(t,e){t.exports="object"==typeof self?self.FormData:window.FormData},432:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseBatchRequestsExtendedArgs=e.parseRawRequestExtendedArgs=e.parseRequestExtendedArgs=e.parseBatchRequestArgs=e.parseRawRequestArgs=e.parseRequestArgs=void 0,e.parseRequestArgs=function(t,e,r){return t.document?t:{document:t,variables:e,requestHeaders:r,signal:void 0}},e.parseRawRequestArgs=function(t,e,r){return t.query?t:{query:t,variables:e,requestHeaders:r,signal:void 0}},e.parseBatchRequestArgs=function(t,e){return t.documents?t:{documents:t,requestHeaders:e,signal:void 0}},e.parseRequestExtendedArgs=function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],l=r[1];return t.document?t:{url:t,document:e,variables:o,requestHeaders:l,signal:void 0}},e.parseRawRequestExtendedArgs=function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],l=r[1];return t.query?t:{url:t,query:e,variables:o,requestHeaders:l,signal:void 0}},e.parseBatchRequestsExtendedArgs=function(t,e,r){return t.documents?t:{url:t,documents:e,requestHeaders:r,signal:void 0}}},433:function(t,e,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var s,i=1,e=arguments.length;i<e;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t},n.apply(this,arguments)},o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,l){function c(t){try{d(n.next(t))}catch(t){l(t)}}function h(t){try{d(n.throw(t))}catch(t){l(t)}}function d(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(c,h)}d((n=n.apply(t,e||[])).next())}))},l=this&&this.__generator||function(t,body){var e,r,n,g,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return g={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function l(l){return function(c){return function(l){if(e)throw new TypeError("Generator is already executing.");for(;o;)try{if(e=1,r&&(n=2&l[0]?r.return:l[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,l[1])).done)return n;switch(r=0,n&&(l=[2&l[0],n.value]),l[0]){case 0:case 1:n=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!(n=o.trys,(n=n.length>0&&n[n.length-1])||6!==l[0]&&2!==l[0])){o=0;continue}if(3===l[0]&&(!n||l[1]>n[0]&&l[1]<n[3])){o.label=l[1];break}if(6===l[0]&&o.label<n[1]){o.label=n[1],n=l;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(l);break}n[2]&&o.ops.pop(),o.trys.pop();continue}l=body.call(t,o)}catch(t){l=[6,t],r=0}finally{e=n=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,c])}}};
2Object.defineProperty(e,"__esModule",{value:!0}),e.GraphQLWebSocketClient=void 0;var c=r(272),h=r(187),d="ping",f="pong",m="subscribe",y="complete",v=function(){function t(t,e,r){this._type=t,this._payload=e,this._id=r}return Object.defineProperty(t.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"payload",{get:function(){return this._payload},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){var t={type:this.type};return null!=this.id&&null!=this.id&&(t.id=this.id),null!=this.payload&&null!=this.payload&&(t.payload=this.payload),JSON.stringify(t)},enumerable:!1,configurable:!0}),t.parse=function(data,e){var r=JSON.parse(data),n=r.type,o=r.payload,l=r.id;return new t(n,e(o),l)},t}(),w=function(){function t(t,e){var r=e.onInit,h=e.onAcknowledged,m=e.onPing,w=e.onPong,T=this;this.socketState={acknowledged:!1,lastRequestId:0,subscriptions:{}},this.socket=t,t.onopen=function(e){return o(T,void 0,void 0,(function(){var e,n,o,c;return l(this,(function(l){switch(l.label){case 0:return this.socketState.acknowledged=!1,this.socketState.subscriptions={},n=(e=t).send,o=E,r?[4,r()]:[3,2];case 1:return c=l.sent(),[3,3];case 2:c=null,l.label=3;case 3:return n.apply(e,[o.apply(void 0,[c]).text]),[2]}}))}))},t.onclose=function(t){T.socketState.acknowledged=!1,T.socketState.subscriptions={}},t.onerror=function(t){console.error(t)},t.onmessage=function(e){try{var r=function(data,t){void 0===t&&(t=function(a){return a});return v.parse(data,t)}(e.data);switch(r.type){case"connection_ack":return void(T.socketState.acknowledged?console.warn("Duplicate CONNECTION_ACK message ignored"):(T.socketState.acknowledged=!0,h&&h(r.payload)));case d:return void(m?m(r.payload).then((function(e){return t.send(_(e).text)})):t.send(_(null).text));case f:return void(w&&w(r.payload))}if(!T.socketState.acknowledged)return;if(void 0===r.id||null===r.id||!T.socketState.subscriptions[r.id])return;var o=T.socketState.subscriptions[r.id],l=o.query,E=o.variables,S=o.subscriber;switch(r.type){case"next":return!r.payload.errors&&r.payload.data&&S.next&&S.next(r.payload.data),void(r.payload.errors&&S.error&&S.error(new c.ClientError(n(n({},r.payload),{status:200}),{query:l,variables:E})));case"error":return void(S.error&&S.error(new c.ClientError({errors:r.payload,status:200},{query:l,variables:E})));case y:return S.complete&&S.complete(),void delete T.socketState.subscriptions[r.id]}}catch(e){console.error(e),t.close(1006)}t.close(4400,"Unknown graphql-ws message.")}}return t.prototype.makeSubscribe=function(t,e,r,n){var o,l,c=this,h=(this.socketState.lastRequestId++).toString();return this.socketState.subscriptions[h]={query:t,variables:n,subscriber:r},this.socket.send((o=h,l={query:t,operationName:e,variables:n},new v(m,l,o)).text),function(){c.socket.send(function(t){return new v(y,void 0,t)}(h).text),delete c.socketState.subscriptions[h]}},t.prototype.rawRequest=function(t,e){var r=this;return new Promise((function(n,o){var l;r.rawSubscribe(t,{next:function(data,t){return l={data:data,extensions:t}},error:o,complete:function(){return n(l)}},e)}))},t.prototype.request=function(t,e){var r=this;return new Promise((function(n,o){var l;r.subscribe(t,{next:function(data){return l=data},error:o,complete:function(){return n(l)}},e)}))},t.prototype.subscribe=function(t,e,r){var n=(0,h.resolveRequestDocument)(t),o=n.query,l=n.operationName;return this.makeSubscribe(o,l,e,r)},t.prototype.rawSubscribe=function(t,e,r){return this.makeSubscribe(t,void 0,e,r)},t.prototype.ping=function(t){this.socket.send(function(t){return new v(d,t,void 0)}(t).text)},t.prototype.close=function(){this.socket.close(1e3)},t.PROTOCOL="graphql-transport-ws",t}();function E(t){return new v("connection_init",t)}function _(t){return new v(f,t,void 0)}e.GraphQLWebSocketClient=w},434:function(t,e){!function(t){!function(e){var r="URLSearchParams"in t,n="Symbol"in t&&"iterator"in Symbol,o="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),l="FormData"in t,c="ArrayBuffer"in t;if(c)var h=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array
2]"],d=ArrayBuffer.isView||function(t){return t&&h.indexOf(Object.prototype.toString.call(t))>-1};function f(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function m(t){return"string"!=typeof t&&(t=String(t)),t}function y(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return n&&(e[Symbol.iterator]=function(){return e}),e}function v(t){this.map={},t instanceof v?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(header){this.append(header[0],header[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function w(body){if(body.bodyUsed)return Promise.reject(new TypeError("Already read"));body.bodyUsed=!0}function E(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function _(t){var e=new FileReader,r=E(e);return e.readAsArrayBuffer(t),r}function T(t){if(t.slice)return t.slice(0);var view=new Uint8Array(t.byteLength);return view.set(new Uint8Array(t)),view.buffer}function S(){return this.bodyUsed=!1,this._initBody=function(body){var t;this._bodyInit=body,body?"string"==typeof body?this._bodyText=body:o&&Blob.prototype.isPrototypeOf(body)?this._bodyBlob=body:l&&FormData.prototype.isPrototypeOf(body)?this._bodyFormData=body:r&&URLSearchParams.prototype.isPrototypeOf(body)?this._bodyText=body.toString():c&&o&&((t=body)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=T(body.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c&&(ArrayBuffer.prototype.isPrototypeOf(body)||d(body))?this._bodyArrayBuffer=T(body):this._bodyText=body=Object.prototype.toString.call(body):this._bodyText="",this.headers.get("content-type")||("string"==typeof body?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(body)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var t=w(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?w(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(_)}),this.text=function(){var t,e,r,n=w(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=E(e),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var view=new Uint8Array(t),e=new Array(view.length),i=0;i<view.length;i++)e[i]=String.fromCharCode(view[i]);return e.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},l&&(this.formData=function(){return this.text().then(P)}),this.json=function(){return this.text().then(JSON.parse)},this}v.prototype.append=function(t,e){t=f(t),e=m(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},v.prototype.delete=function(t){delete this.map[f(t)]},v.prototype.get=function(t){return t=f(t),this.has(t)?this.map[t]:null},v.prototype.has=function(t){return this.map.hasOwnProperty(f(t))},v.prototype.set=function(t,e){this.map[f(t)]=m(e)},v.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},v.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),y(t)},v.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),y(t)},v.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),y(t)},n&&(v.prototype[Symbol.iterator]=v.prototype.entries);var x=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function I(input,t){var e,r,body=(t=t||{}).body;if(input instanceof I){if(input.bodyUsed)throw new TypeError("Already read");this.url=input.url,this.credentials=input.credentials,t.headers||(this.headers=new v(input.headers)),this.method=input.method,this.mode=input.mode,this.signal=input.signal,body||null==input._bodyInit||(body=input._bodyInit,input.bodyUsed=!0)}else this.url=String(input);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new v(t.headers)),this.method=(e=t.method||this.method||"GET",r=e.toUpperCase(),x.indexOf(r)>-1?r:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&body)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(body)}function P(body){var form=new FormData;return body.trim().split("&").forEach((function(t){if(t){var e=t.split("="),r=e.shift().replace(/\+/g," "),n=e.join("=").replace(/\+/g," ");form.append(decodeURIComponent(r),decodeURIComponent(n))}})),form}function O(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new v(e.headers),this.url=e.url||"",this._initBody(t)}I.prototype.clone=function(){return new I(this,{body:this._bodyInit})},S.call(I.prototype),S.call(O.prototype),O.prototype.clone=function(){return new O(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new v(this.headers),url:this.url})},O.error=function(){var t=new O(null,{status:0,statusText:""});return t.type="error",t};var A=[301,302,303,307,308];O.redirect=function(t,e){if(-1===A.indexOf(e))throw new RangeError("Invalid status code");return new O(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function k(input,t){return new Promise((function(r,n){var l=new I(input,t);if(l.signal&&l.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var c=new XMLHttpRequest;function h(){c.abort()}c.onload=function(){var t,e,n={status:c.status,statusText:c.statusText,headers:(t=c.getAllResponseHeaders()||"",e=new v,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEac
2h((function(line){var t=line.split(":"),r=t.shift().trim();if(r){var n=t.join(":").trim();e.append(r,n)}})),e)};n.url="responseURL"in c?c.responseURL:n.headers.get("X-Request-URL");var body="response"in c?c.response:c.responseText;r(new O(body,n))},c.onerror=function(){n(new TypeError("Network request failed"))},c.ontimeout=function(){n(new TypeError("Network request failed"))},c.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},c.open(l.method,l.url,!0),"include"===l.credentials?c.withCredentials=!0:"omit"===l.credentials&&(c.withCredentials=!1),"responseType"in c&&o&&(c.responseType="blob"),l.headers.forEach((function(t,e){c.setRequestHeader(e,t)})),l.signal&&(l.signal.addEventListener("abort",h),c.onreadystatechange=function(){4===c.readyState&&l.signal.removeEventListener("abort",h)}),c.send(void 0===l._bodyInit?null:l._bodyInit)}))}k.polyfill=!0,t.fetch||(t.fetch=k,t.Headers=v,t.Request=I,t.Response=O),e.Headers=v,e.Request=I,e.Response=O,e.fetch=k,Object.defineProperty(e,"__esModule",{value:!0})}({})}("undefined"!=typeof self?self:this)},435:function(t,e,r){"use strict";function n(t){return null==t}function o(t){return null!=t}function l(t,e){return e.tag===t.tag&&e.key===t.key}function c(t){var e=t.tag;t.vm=new e({data:t.args})}function h(t,e,r){var i,n,map={};for(i=e;i<=r;++i)o(n=t[i].key)&&(map[n]=i);return map}function d(t,e,r){for(;e<=r;++e)c(t[e])}function f(t,e,r){for(;e<=r;++e){var n=t[e];o(n)&&(n.vm.$destroy(),n.vm=null)}}function m(t,e){t!==e&&(e.vm=t.vm,function(t){for(var e=Object.keys(t.args),i=0;i<e.length;i++)e.forEach((function(e){t.vm[e]=t.args[e]}))}(e))}Object.defineProperty(e,"__esModule",{value:!0}),e.h=function(t,e,r){return{tag:t,key:e,args:r}},e.patchChildren=function(t,e){o(t)&&o(e)?t!==e&&function(t,e){var r,y,v,w=0,E=0,_=t.length-1,T=t[0],S=t[_],x=e.length-1,I=e[0],P=e[x];for(;w<=_&&E<=x;)n(T)?T=t[++w]:n(S)?S=t[--_]:l(T,I)?(m(T,I),T=t[++w],I=e[++E]):l(S,P)?(m(S,P),S=t[--_],P=e[--x]):l(T,P)?(m(T,P),T=t[++w],P=e[--x]):l(S,I)?(m(S,I),S=t[--_],I=e[++E]):(n(r)&&(r=h(t,w,_)),n(y=o(I.key)?r[I.key]:null)?(c(I),I=e[++E]):l(v=t[y],I)?(m(v,I),t[y]=void 0,I=e[++E]):(c(I),I=e[++E]));w>_?d(e,E,x):E>x&&f(t,w,_)}(t,e):o(e)?d(e,0,e.length-1):o(t)&&f(t,0,t.length-1)}},436:function(t,e,r){"use strict";(function(t){var n=r(437),o=r(438),l=r(439);function c(){return d.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function h(t,e){if(c()<e)throw new RangeError("Invalid typed array length");return d.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=d.prototype:(null===t&&(t=new d(e)),t.length=e),t}function d(t,e,r){if(!(d.TYPED_ARRAY_SUPPORT||this instanceof d))return new d(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return y(this,t)}return f(this,t,e,r)}function f(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n);d.TYPED_ARRAY_SUPPORT?(t=e).__proto__=d.prototype:t=v(t,e);return t}(t,e,r,n):"string"==typeof e?function(t,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!d.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|E(e,r);t=h(t,n);var o=t.write(e,r);o!==n&&(t=t.slice(0,o));return t}(t,e,r):function(t,e){if(d.isBuffer(e)){var r=0|w(e.length);return 0===(t=h(t,r)).length||e.copy(t,0,0,r),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(n=e.length)!=n?h(t,0):v(t,e);if("Buffer"===e.type&&l(e.data))return v(t,e.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function m(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function y(t,e){if(m(e),t=h(t,e<0?0:0|w(e)),!d.TYPED_ARRAY_SUPPORT)for(var i=0;i<e;++i)t[i]=0;return t}function v(t,e){var r=e.length<0?0:0|w(e.length);t=h(t,r);for(var i=0;i<r;i+=1)t[i]=255&e[i];return t}function w(t){if(t>=c())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c().toString(16)+" bytes");return 0|t}function E(t,e){if(d.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&
vendor: 10,080 bytes, line 2
2(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return K(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Q(t).length;default:if(n)return K(t).length;e=(""+e).toLowerCase(),n=!0}}function _(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return j(this,e,r);case"utf8":case"utf-8":return M(this,e,r);case"ascii":return R(this,e,r);case"latin1":case"binary":return F(this,e,r);case"base64":return D(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function T(b,t,e){var i=b[t];b[t]=b[e],b[e]=i}function S(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=d.from(e,n)),d.isBuffer(e))return 0===e.length?-1:x(t,e,r,n,o);if("number"==typeof e)return e&=255,d.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):x(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function x(t,e,r,n,o){var i,l=1,c=t.length,h=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;l=2,c/=2,h/=2,r/=2}function d(t,i){return 1===l?t[i]:t.readUInt16BE(i*l)}if(o){var f=-1;for(i=r;i<c;i++)if(d(t,i)===d(e,-1===f?0:i-f)){if(-1===f&&(f=i),i-f+1===h)return f*l}else-1!==f&&(i-=i-f),f=-1}else for(r+h>c&&(r=c-h),i=r;i>=0;i--){for(var m=!0,y=0;y<h;y++)if(d(t,i+y)!==d(e,y)){m=!1;break}if(m)return i}return-1}function I(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n))>o&&(n=o):n=o;var l=e.length;if(l%2!=0)throw new TypeError("Invalid hex string");n>l/2&&(n=l/2);for(var i=0;i<n;++i){var c=parseInt(e.substr(2*i,2),16);if(isNaN(c))return i;t[r+i]=c}return i}function P(t,e,r,n){return J(K(e,t.length-r),t,r,n)}function O(t,e,r,n){return J(function(t){for(var e=[],i=0;i<t.length;++i)e.push(255&t.charCodeAt(i));return e}(e),t,r,n)}function A(t,e,r,n){return O(t,e,r,n)}function k(t,e,r,n){return J(Q(e),t,r,n)}function C(t,e,r,n){return J(function(t,e){for(var r,n,o,l=[],i=0;i<t.length&&!((e-=2)<0);++i)n=(r=t.charCodeAt(i))>>8,o=r%256,l.push(o),l.push(n);return l}(e,t.length-r),t,r,n)}function D(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function M(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o,l,c,h,d=t[i],f=null,m=d>239?4:d>223?3:d>191?2:1;if(i+m<=r)switch(m){case 1:d<128&&(f=d);break;case 2:128==(192&(o=t[i+1]))&&(h=(31&d)<<6|63&o)>127&&(f=h);break;case 3:o=t[i+1],l=t[i+2],128==(192&o)&&128==(192&l)&&(h=(15&d)<<12|(63&o)<<6|63&l)>2047&&(h<55296||h>57343)&&(f=h);break;case 4:o=t[i+1],l=t[i+2],c=t[i+3],128==(192&o)&&128==(192&l)&&128==(192&c)&&(h=(15&d)<<18|(63&o)<<12|(63&l)<<6|63&c)>65535&&h<1114112&&(f=h)}null===f?(f=65533,m=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=m}return function(t){var e=t.length;if(e<=N)return String.fromCharCode.apply(String,t);var r="",i=0;for(;i<e;)r+=String.fromCharCode.apply(String,t.slice(i,i+=N));return r}(n)}e.Buffer=d,e.SlowBuffer=function(t){+t!=t&&(t=0);return d.alloc(+t)},e.INSPECT_MAX_BYTES=50,d.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=c(),d.poolSize=8192,d._augment=function(t){return t.__proto__=d.prototype,t},d.from=function(t,e,r){return f(null,t,e,r)},d.TYPED_ARRAY_SUPPORT&&(d.prototype.__proto__=Uint8Array.prototype,d.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&d[Symbol.species]===d&&Object.defineProperty(d,Symbol.species,{value:null,configurable:!0})),d.alloc=function(t,e,r){return function(t,e,r,n){return m(e),e<=0?h(t,e):void 0!==r?"string"==typeof n?h(t,e).fill(r,n):h(t,e).fill(r):h(t,e)}(null,t,e,r)},d.allocUnsafe=function(t){return y(null,t)},d.allocUnsafeSlow=function(t){return y(null,t)},d.isBuffer=function(b){return!(null==b||!b._isBuffer)},d.compare=function(a,b){if(!d.isBuffer(a)||!d.isBuffer(b))throw new TypeError("Arguments must be Buffers");if(a===b)return 0;for(var t=a.length,e=b.length,i=0,r=Math.min(t,e);i<r;++i)if(a[i]!==b[i]){t=a[i],e=b[i];break}return t<e?-1:e<t?1:0},d.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},d.concat=function(t,e){if(!l(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return d.alloc(0);var i;if(void 0===e)for(e=0,i=0;i<t.length;++i)e+=t[i].length;var r=d.allocUnsafe(e),n=0;for(i=0;i<t.length;++i){var o=t[i];if(!d.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,n),n+=o.length}return r},d.byteLength=E,d.prototype._isBuffer=!0,d.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var i=0;i<t;i+=2)T(this,i,i+1);return this},d.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var i=0;i<t;i+=4)T(this,i,i+3),T(this,i+1,i+2);return this},d.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var i=0;i<t;i+=8)T(this,i,i+7),T(this,i+1,i+6),T(this,i+2,i+5),T(this,i+3,i+4);return this},d.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?M(this,0,t):_.apply(this,arguments)},d.prototype.equals=function(b){if(!d.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b||0===d.compare(this,b)},d.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},d.prototype.compare=function(t,e,r,n,o){if(!d.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(this===t)return 0;for(var l=(o>>>=0)-(n>>>=0),c=(r>>>=0)-(e>>>=0),h=Math.min(l,c),f=this.slice(n,o),m=t.slice(e,r),i=0;i<h;++i)if(f[i]!==m[i]){l=f[i],c=m[i];break}return l<c?-1:c<l?1:0},d.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},d.prototype.indexOf=function(t,e,r){return S(this,t,e,r,!0)},d.prototype.lastIndexOf=function(t,e,r){return S(this,t,e,r,!1)},d.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-e;if((void 0===r||r>o)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var l=!1;;)switch(n){case"hex":return I(this,t,e,r);case"utf8":case"utf-8":return P(this,t,e,r);case"ascii":return O(this,t,e,r);case"latin1":case"binary":return A(this,t,e,r);case"base64":return k(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,e,r);default:if(l)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),l=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var N=4096;function R(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function F(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function j(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=e;i<r;++i)o+=W(t[i]);return o}function L(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function B(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function V(t,e,r,n,o,l){if(!d.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<l)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function z(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i<o;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function G(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-r,4);i<o;++i)t[r+i]=e>>>8*(n?i:3-i)&255}function U(t,e,r,n,o,l){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function $(t,e,r,n,l){return l||U(t,0,r,4),o.write(t,e,r,n,23,4),r+4}function H(t,e,r,n,l){return l||U(t,0,r,8),o.write(t,e,r,n,52,8),r+8}d.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),d.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=d.prototype;else{var o=e-t;r=new d(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+t]}return r},d.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||B(t,e,this.length);for(var n=this[t],o=1,i=0;
vendor: 4,089 bytes, line 2
2++i<e&&(o*=256);)n+=this[t+i]*o;return n},d.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||B(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},d.prototype.readUInt8=function(t,e){return e||B(t,1,this.length),this[t]},d.prototype.readUInt16LE=function(t,e){return e||B(t,2,this.length),this[t]|this[t+1]<<8},d.prototype.readUInt16BE=function(t,e){return e||B(t,2,this.length),this[t]<<8|this[t+1]},d.prototype.readUInt32LE=function(t,e){return e||B(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},d.prototype.readUInt32BE=function(t,e){return e||B(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},d.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||B(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*e)),n},d.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||B(t,e,this.length);for(var i=e,n=1,o=this[t+--i];i>0&&(n*=256);)o+=this[t+--i]*n;return o>=(n*=128)&&(o-=Math.pow(2,8*e)),o},d.prototype.readInt8=function(t,e){return e||B(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},d.prototype.readInt16LE=function(t,e){e||B(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},d.prototype.readInt16BE=function(t,e){e||B(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},d.prototype.readInt32LE=function(t,e){return e||B(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},d.prototype.readInt32BE=function(t,e){return e||B(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},d.prototype.readFloatLE=function(t,e){return e||B(t,4,this.length),o.read(this,t,!0,23,4)},d.prototype.readFloatBE=function(t,e){return e||B(t,4,this.length),o.read(this,t,!1,23,4)},d.prototype.readDoubleLE=function(t,e){return e||B(t,8,this.length),o.read(this,t,!0,52,8)},d.prototype.readDoubleBE=function(t,e){return e||B(t,8,this.length),o.read(this,t,!1,52,8)},d.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||V(this,t,e,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[e]=255&t;++i<r&&(o*=256);)this[e+i]=t/o&255;return e+r},d.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||V(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},d.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||V(this,t,e,1,255,0),d.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},d.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||V(this,t,e,2,65535,0),d.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):z(this,t,e,!0),e+2},d.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||V(this,t,e,2,65535,0),d.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):z(this,t,e,!1),e+2},d.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||V(this,t,e,4,4294967295,0),d.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):G(this,t,e,!0),e+4},d.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||V(this,t,e,4,4294967295,0),d.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):G(this,t,e,!1),e+4},d.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);V(this,t,e,r,o-1,-o)}var i=0,l=1,sub=0;for(this[e]=255&t;++i<r&&(l*=256);)t<0&&0===sub&&0!==this[e+i-1]&&(sub=1),this[e+i]=(t/l>>0)-sub&255;return e+r},d.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);V(this,t,e,r,o-1,-o)}var i=r-1,l=1,sub=0;for(this[e+i]=255&t;--i>=0&&(l*=256);)t<0&&0===sub&&0!==this[e+i+1]&&(sub=1),this[e+i]=(t/l>>0)-sub&255;return e+r},d.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||V(this,t,e,1,127,-128),d.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},d.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||V(this,t,e,2,32767,-32768),d.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):z(this,t,e,!0),e+2},d.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||V(this,t,e,2,32767,-32768),d.TYPED_ARRAY_SUPPORT?(this[e]=t>>>
vendor: 4,137 bytes, line 2
28,this[e+1]=255&t):z(this,t,e,!1),e+2},d.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||V(this,t,e,4,2147483647,-2147483648),d.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):G(this,t,e,!0),e+4},d.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||V(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),d.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):G(this,t,e,!1),e+4},d.prototype.writeFloatLE=function(t,e,r){return $(this,t,e,!0,r)},d.prototype.writeFloatBE=function(t,e,r){return $(this,t,e,!1,r)},d.prototype.writeDoubleLE=function(t,e,r){return H(this,t,e,!0,r)},d.prototype.writeDoubleBE=function(t,e,r){return H(this,t,e,!1,r)},d.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i,o=n-r;if(this===t&&r<e&&e<n)for(i=o-1;i>=0;--i)t[i+e]=this[i+r];else if(o<1e3||!d.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+o),e);return o},d.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var code=t.charCodeAt(0);code<256&&(t=code)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!d.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var i;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{var o=d.isBuffer(t)?t:K(new d(t,n).toString()),l=o.length;for(i=0;i<r-e;++i)this[i+e]=o[i%l]}return this};var Y=/[^+\/0-9A-Za-z-_]/g;function W(t){return t<16?"0"+t.toString(16):t.toString(16)}function K(t,e){var r;e=e||1/0;for(var n=t.length,o=null,l=[],i=0;i<n;++i){if((r=t.charCodeAt(i))>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&l.push(239,191,189);continue}if(i+1===n){(e-=3)>-1&&l.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&l.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&l.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;l.push(r)}else if(r<2048){if((e-=2)<0)break;l.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;l.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;l.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return l}function Q(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(Y,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function J(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}}).call(this,r(49))},437:function(t,e,r){"use strict";e.byteLength=function(t){var e=h(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,i,r=h(t),n=r[0],c=r[1],d=new l(function(t,e,r){return 3*(e+r)/4-r}(0,n,c)),f=0,m=c>0?n-4:n;for(i=0;i<m;i+=4)e=o[t.charCodeAt(i)]<<18|o[t.charCodeAt(i+1)]<<12|o[t.charCodeAt(i+2)]<<6|o[t.charCodeAt(i+3)],d[f++]=e>>16&255,d[f++]=e>>8&255,d[f++]=255&e;2===c&&(e=o[t.charCodeAt(i)]<<2|o[t.charCodeAt(i+1)]>>4,d[f++]=255&e);1===c&&(e=o[t.charCodeAt(i)]<<10|o[t.charCodeAt(i+1)]<<4|o[t.charCodeAt(i+2)]>>2,d[f++]=e>>8&255,d[f++]=255&e);return d},e.fromByteArray=function(t){for(var e,r=t.length,o=r%3,l=[],c=16383,i=0,h=r-o;i<h;i+=c)l.push(d(t,i,i+c>h?h:i+c));1===o?(e=t[r-1],l.push(n[e>>2]+n[e<<4&63]+"==")):2===o&&(e=(t[r-2]<<8)+t[r-1],l.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return l.join("")};for(var n=[],o=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
vendor: 6,254 bytes, line 2
2+/",i=0,c=code.length;i<c;++i)n[i]=code[i],o[code.charCodeAt(i)]=i;function h(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function d(t,e,r){for(var o,l,output=[],i=e;i<r;i+=3)o=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(255&t[i+2]),output.push(n[(l=o)>>18&63]+n[l>>12&63]+n[l>>6&63]+n[63&l]);return output.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},438:function(t,e){e.read=function(t,e,r,n,o){var l,c,h=8*o-n-1,d=(1<<h)-1,f=d>>1,m=-7,i=r?o-1:0,y=r?-1:1,s=t[e+i];for(i+=y,l=s&(1<<-m)-1,s>>=-m,m+=h;m>0;l=256*l+t[e+i],i+=y,m-=8);for(c=l&(1<<-m)-1,l>>=-m,m+=n;m>0;c=256*c+t[e+i],i+=y,m-=8);if(0===l)l=1-f;else{if(l===d)return c?NaN:1/0*(s?-1:1);c+=Math.pow(2,n),l-=f}return(s?-1:1)*c*Math.pow(2,l-n)},e.write=function(t,e,r,n,o,l){var c,h,d,f=8*l-o-1,m=(1<<f)-1,y=m>>1,rt=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,i=n?0:l-1,v=n?1:-1,s=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(h=isNaN(e)?1:0,c=m):(c=Math.floor(Math.log(e)/Math.LN2),e*(d=Math.pow(2,-c))<1&&(c--,d*=2),(e+=c+y>=1?rt/d:rt*Math.pow(2,1-y))*d>=2&&(c++,d/=2),c+y>=m?(h=0,c=m):c+y>=1?(h=(e*d-1)*Math.pow(2,o),c+=y):(h=e*Math.pow(2,y-1)*Math.pow(2,o),c=0));o>=8;t[r+i]=255&h,i+=v,h/=256,o-=8);for(c=c<<o|h,f+=o;f>0;t[r+i]=255&c,i+=v,c/=256,f-=8);t[r+i-v]|=128*s}},439:function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},440:function(t,e,r){"use strict";r.r(e),r.d(e,"version",(function(){return n})),r.d(e,"versionInfo",(function(){return o})),r.d(e,"graphql",(function(){return va})),r.d(e,"graphqlSync",(function(){return ba})),r.d(e,"resolveObjMapThunk",(function(){return Ve})),r.d(e,"resolveReadonlyArrayThunk",(function(){return Be})),r.d(e,"GraphQLSchema",(function(){return Kr})),r.d(e,"GraphQLDirective",(function(){return _r})),r.d(e,"GraphQLScalarType",(function(){return ze})),r.d(e,"GraphQLObjectType",(function(){return Ge})),r.d(e,"GraphQLInterfaceType",(function(){return Qe})),r.d(e,"GraphQLUnionType",(function(){return Je})),r.d(e,"GraphQLEnumType",(function(){return Ze})),r.d(e,"GraphQLInputObjectType",(function(){return rr})),r.d(e,"GraphQLList",(function(){return Ae})),r.d(e,"GraphQLNonNull",(function(){return ke})),r.d(e,"specifiedScalarTypes",(function(){return gr})),r.d(e,"GraphQLInt",(function(){return ur})),r.d(e,"GraphQLFloat",(function(){return pr})),r.d(e,"GraphQLString",(function(){return dr})),r.d(e,"GraphQLBoolean",(function(){return fr})),r.d(e,"GraphQLID",(function(){return mr})),r.d(e,"GRAPHQL_MAX_INT",(function(){return lr})),r.d(e,"GRAPHQL_MIN_INT",(function(){return cr})),r.d(e,"specifiedDirectives",(function(){return Or})),r.d(e,"GraphQLIncludeDirective",(function(){return Tr})),r.d(e,"GraphQLSkipDirective",(function(){return Sr})),r.d(e,"GraphQLDeprecatedDirective",(function(){return Ir})),r.d(e,"GraphQLSpecifiedByDirective",(function(){return Pr})),r.d(e,"TypeKind",(function(){return Vr})),r.d(e,"DEFAULT_DEPRECATION_REASON",(function(){return xr})),r.d(e,"introspectionTypes",(function(){return qr})),r.d(e,"__Schema",(function(){return Mr})),r.d(e,"__Directive",(function(){return Nr})),r.d(e,"__DirectiveLocation",(function(){return Rr})),r.d(e,"__Type",(function(){return Fr})),r.d(e,"__Field",(function(){return jr})),r.d(e,"__InputValue",(function(){return Lr})),r.d(e,"__EnumValue",(function(){return Br})),r.d(e,"__TypeKind",(function(){return zr})),r.d(e,"SchemaMetaFieldDef",(function(){return Gr})),r.d(e,"TypeMetaFieldDef",(function(){return Ur})),r.d(e,"TypeNameMetaFieldDef",(function(){return $r})),r.d(e,"isSchema",(function(){return Yr})),r.d(e,"isDirective",(function(){return wr})),r.d(e,"isType",(function(){return ee})),r.d(e,"isScalarType",(function(){return ne})),r.d(e,"isObjectType",(function(){return ae})),r.d(e,"isInterfaceType",(function(){return oe})),r.d(e,"isUnionType",(function(){return ce})),r.d(e,"isEnumType",(function(){return ue})),r.d(e,"isInputObjectType",(function(){return de})),r.d(e,"isListType",(function(){return me})),r.d(e,"isNonNullType",(function(){return ye})),r.d(e,"isInputType",(function(){return be})),r.d(e,"isOutputType",(function(){return Ee})),r.d(e,"isLeafType",(function(){return Te})),r.d(e,"isCompositeType",(function(){return xe})),r.d(e,"isAbstractType",(function(){return Pe})),r.d(e,"isWrappingType",(function(){return Ce})),r.d(e,"isNullableType",(function(){return Me})),r.d(e,"isNamedType",(function(){return Fe})),r.d(e,"isRequiredArgument",(function(){return Ke})),r.d(e,"isRequiredInputField",(function(){return ir})),r.d(e,"isSpecifiedScalarType",(function(){return yr})),r.d(e,"isIntrospectionType",(function(){return Hr})),r.d(e,"isSpecifiedDirective",(function(){return Ar})),r.d(e,"assertSchema",(function(){return Wr})),r.d(e,"assertDirective",(function(){return Er})),r.d(e,"assertType",(function(){return re})),r.d(e,"assertScalarType",(function(){return ie})),r.d(e,"assertObjectType",(function(){return se})),r.d(e,"assertInterfaceType",(function(){return le})),r.d(e,"assertUnionType",(function(){return he})),r.d(e,"assertEnumType",(function(){return pe})),r.d(e,"assertInputObjectType",(function(){return fe})),r.d(e,"assertListType",(function(){return ge})),r.d(e,"assertNonNullType",(function(){return ve})),r.d(e,"assertInputType",(function(){return we})),r.d(e,"assertOutputType",(function(){return _e})),r.d(e,"assertLeafType",(function(){return Se})),r.d(e,"assertCompositeType",(function(){return Ie})),r.d(e,"assertAbstractType",(function(){return Oe})),r.d(e,"assertWrappingType",(function(){return De})),r.d(e,"assertNullableType",(function(){return Ne})),r.d(e,"assertNamedType",(function(){return je})),r.d(e,"getNullableType",(function(){return Re})),r.d(e,"getNamedType",(function(){return Le})),r.d(e,"validateSchema",(function(){return Jr})),r.d(e,"assertValidSchema",(function(){return Xr})),r.d(e,"assertName",(function(){return Zt})),r.d(e,"assertEnumValueName",(function(){return te})),r.d(e,"Token",(function(){return P})),r.d(e,"Source",(function(){return gt})),r.d(e,"Location",(function(){return I})),r.d(e,"OperationTypeNode",(function(){return C})),r.d(e,"getLocation",(function(){return m})),r.d(e,"printLocation",(function(){return y}
2)),r.d(e,"printSourceLocation",(function(){return v})),r.d(e,"Lexer",(function(){return $})),r.d(e,"TokenKind",(function(){return N})),r.d(e,"parse",(function(){return vt})),r.d(e,"parseValue",(function(){return bt})),r.d(e,"parseConstValue",(function(){return wt})),r.d(e,"parseType",(function(){return Et})),r.d(e,"print",(function(){return qt})),r.d(e,"visit",(function(){return zt})),r.d(e,"visitInParallel",(function(){return Gt})),r.d(e,"getVisitFn",(function(){return $t})),r.d(e,"getEnterLeaveForKind",(function(){return Ut})),r.d(e,"BREAK",(function(){return Vt})),r.d(e,"Kind",(function(){return M})),r.d(e,"DirectiveLocation",(function(){return D})),r.d(e,"isDefinitionNode",(function(){return yn})),r.d(e,"isExecutableDefinitionNode",(function(){return vn})),r.d(e,"isSelectionNode",(function(){return bn})),r.d(e,"isValueNode",(function(){return wn})),r.d(e,"isConstValueNode",(function(){return En})),r.d(e,"isTypeNode",(function(){return _n})),r.d(e,"isTypeSystemDefinitionNode",(function(){return Tn})),r.d(e,"isTypeDefinitionNode",(function(){return Sn})),r.d(e,"isTypeSystemExtensionNode",(function(){return xn})),r.d(e,"isTypeExtensionNode",(function(){return In})),r.d(e,"execute",(function(){return ea})),r.d(e,"executeSync",(function(){return ra})),r.d(e,"defaultFieldResolver",(function(){return ga})),r.d(e,"defaultTypeResolver",(function(){return ma})),r.d(e,"responsePathAsArray",(function(){return ui})),r.d(e,"getArgumentValues",(function(){return vi})),r.d(e,"getVariableValues",(function(){return yi})),r.d(e,"getDirectiveValues",(function(){return bi})),r.d(e,"subscribe",(function(){return Ta})),r.d(e,"createSourceEventStream",(function(){return Sa})),r.d(e,"validate",(function(){return Qi})),r.d(e,"ValidationContext",(function(){return Ki})),r.d(e,"specifiedRules",(function(){return qi})),r.d(e,"ExecutableDefinitionsRule",(function(){return Pn})),r.d(e,"FieldsOnCorrectTypeRule",(function(){return On})),r.d(e,"FragmentsOnCompositeTypesRule",(function(){return An})),r.d(e,"KnownArgumentNamesRule",(function(){return kn})),r.d(e,"KnownDirectivesRule",(function(){return Dn})),r.d(e,"KnownFragmentNamesRule",(function(){return Mn})),r.d(e,"KnownTypeNamesRule",(function(){return Nn})),r.d(e,"LoneAnonymousOperationRule",(function(){return Fn})),r.d(e,"NoFragmentCyclesRule",(function(){return Ln})),r.d(e,"NoUndefinedVariablesRule",(function(){return Bn})),r.d(e,"NoUnusedFragmentsRule",(function(){return Vn})),r.d(e,"NoUnusedVariablesRule",(function(){return zn})),r.d(e,"OverlappingFieldsCanBeMergedRule",(function(){return $n})),r.d(e,"PossibleFragmentSpreadsRule",(function(){return ei})),r.d(e,"ProvidedRequiredArgumentsRule",(function(){return ii})),r.d(e,"ScalarLeafsRule",(function(){return oi})),r.d(e,"SingleFieldSubscriptionsRule",(function(){return xi})),r.d(e,"UniqueArgumentNamesRule",(function(){return Oi})),r.d(e,"UniqueDirectivesPerLocationRule",(function(){return ki})),r.d(e,"UniqueFragmentNamesRule",(function(){return Ni})),r.d(e,"UniqueInputFieldNamesRule",(function(){return Ri})),r.d(e,"UniqueOperationNamesRule",(function(){return Fi})),r.d(e,"UniqueVariableNamesRule",(function(){return Bi})),r.d(e,"ValuesOfCorrectTypeRule",(function(){return Vi})),r.d(e,"VariablesAreInputTypesRule",(function(){return Gi})),r.d(e,"VariablesInAllowedPositionRule",(function(){return Ui})),r.d(e,"LoneSchemaDefinitionRule",(function(){return jn})),r.d(e,"UniqueOperationTypesRule",(function(){return ji})),r.d(e,"UniqueTypeNamesRule",(function(){return Li})),r.d(e,"UniqueEnumValueNamesRule",(function(){return Ci})),r.d(e,"UniqueFieldDefinitionNamesRule",(function(){return Di})),r.d(e,"UniqueArgumentDefinitionNamesRule",(function(){return Pi})),r.d(e,"UniqueDirectiveNamesRule",(function(){return Ai})),r.d(e,"PossibleTypeExtensionsRule",(function(){return ri})),r.d(e,"NoDeprecatedCustomRule",(function(){return xa})),r.d(e,"NoSchemaIntrospectionCustomRule",(function(){return Ia})),r.d(e,"GraphQLError",(function(){return E})),r.d(e,"syntaxError",(function(){return x})),r.d(e,"locatedError",(function(){return Zi})),r.d(e,"printError",(function(){return T})),r.d(e,"formatError",(function(){return S})),r.d(e,"getIntrospectionQuery",(function(){return Pa})),r.d(e,"getOperationAST",(function(){return Oa})),r.d(e,"getOperationRootType",(function(){return Aa})),r.d(e,"introspectionFromSchema",(function(){return ka})),r.d(e,"buildClientSchema",(function(){return Ca})),r.d(e,"buildASTSchema",(function(){return ja})),r.d(e,"buildSchema",(function(){return La})),r.d(e,"extendSchema",(function(){return Da})),r.d(e,"lexicographicSortSchema",(function(){return Ba})),r.d(e,"printSchema",(function(){return Ua})),r.d(e,"printType",(function(){return Wa})),r.d(e,"printIntrospectionSchema",(function(){return $a})),r.d(e,"typeFromAST",(function(){return dn})),r.d(e,"valueFromAST",(function(){return mi})),r.d(e,"valueFromASTUntyped",(function(){return Xt})),r.d(e,"astFromValue",(function(){return Cr})),r.d(e,"TypeInfo",(function(){return fn}
vendor: 5,074 bytes, line 2
2)),r.d(e,"visitWithTypeInfo",(function(){return gn})),r.d(e,"coerceInputValue",(function(){return pi})),r.d(e,"concatAST",(function(){return rs})),r.d(e,"separateOperations",(function(){return ns})),r.d(e,"stripIgnoredCharacters",(function(){return ss})),r.d(e,"isEqualType",(function(){return ar})),r.d(e,"isTypeSubTypeOf",(function(){return sr})),r.d(e,"doTypesOverlap",(function(){return or})),r.d(e,"assertValidName",(function(){return os})),r.d(e,"isValidNameError",(function(){return ls})),r.d(e,"BreakingChangeType",(function(){return cs})),r.d(e,"DangerousChangeType",(function(){return hs})),r.d(e,"findBreakingChanges",(function(){return us})),r.d(e,"findDangerousChanges",(function(){return ps}));const n="16.6.0",o=Object.freeze({major:16,minor:6,patch:0,preReleaseTag:null});function l(t,e){if(!Boolean(t))throw new Error(e)}function c(t){return"function"==typeof(null==t?void 0:t.then)}function h(t){return"object"==typeof t&&null!==t}function d(t,e){if(!Boolean(t))throw new Error(null!=e?e:"Unexpected invariant triggered.")}const f=/\r\n|[\n\r]/g;function m(source,t){let e=0,line=1;for(const r of source.body.matchAll(f)){if("number"==typeof r.index||d(!1),r.index>=t)break;e=r.index+r[0].length,line+=1}return{line:line,column:t+1-e}}function y(t){return v(t.source,m(t.source,t.start))}function v(source,t){const e=source.locationOffset.column-1,body="".padStart(e)+source.body,r=t.line-1,n=source.locationOffset.line-1,o=t.line+n,l=1===t.line?e:0,c=t.column+l,h=`${source.name}:${o}:${c}\n`,d=body.split(/\r\n|[\n\r]/g),f=d[r];if(f.length>120){const t=Math.floor(c/80),e=c%80,r=[];for(let i=0;i<f.length;i+=80)r.push(f.slice(i,i+80));return h+w([[`${o} |`,r[0]],...r.slice(1,t+1).map((t=>["|",t])),["|","^".padStart(e)],["|",r[t+1]]])}return h+w([[o-1+" |",d[r-1]],[`${o} |`,f],["|","^".padStart(c)],[`${o+1} |`,d[r+1]]])}function w(t){const e=t.filter((([t,line])=>void 0!==line)),r=Math.max(...e.map((([t])=>t.length)));return e.map((([t,line])=>t.padStart(r)+(line?" "+line:""))).join("\n")}class E extends Error{constructor(t,...e){var r,n,o;const{nodes:l,source:source,positions:c,path:path,originalError:d,extensions:f}=function(t){const e=t[0];return null==e||"kind"in e||"length"in e?{nodes:e,source:t[1],positions:t[2],path:t[3],originalError:t[4],extensions:t[5]}:e}(e);super(t),this.name="GraphQLError",this.path=null!=path?path:void 0,this.originalError=null!=d?d:void 0,this.nodes=_(Array.isArray(l)?l:l?[l]:void 0);const y=_(null===(r=this.nodes)||void 0===r?void 0:r.map((t=>t.loc)).filter((t=>null!=t)));this.source=null!=source?source:null==y||null===(n=y[0])||void 0===n?void 0:n.source,this.positions=null!=c?c:null==y?void 0:y.map((t=>t.start)),this.locations=c&&source?c.map((t=>m(source,t))):null==y?void 0:y.map((t=>m(t.source,t.start)));const v=h(null==d?void 0:d.extensions)?null==d?void 0:d.extensions:void 0;this.extensions=null!==(o=null!=f?f:v)&&void 0!==o?o:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=d&&d.stack?Object.defineProperty(this,"stack",{value:d.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,E):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let output=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(output+="\n\n"+y(t.loc));else if(this.source&&this.locations)for(const t of this.locations)output+="\n\n"+v(this.source,t);return output}toJSON(){const t={message:this.message};return null!=this.locations&&(t.locations=this.locations),null!=this.path&&(t.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}function _(t){return void 0===t||0===t.length?void 0:t}function T(t){return t.toString()}function S(t){return t.toJSON()}function x(source,t,e){return new E(`Syntax Error: ${e}`,{source:source,positions:[t]})}class I{constructor(t,e,source){this.start=t.start,this.end=e.end,this.startToken=t,this.endToken=e,this.source=source}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class P{constructor(t,e,r,line,n,o){this.kind=t,this.start=e,this.end=r,this.line=line,this.column=n,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const O={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],Float
2Value:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},A=new Set(Object.keys(O));function k(t){const e=null==t?void 0:t.kind;return"string"==typeof e&&A.has(e)}var C,D,M,N;function R(code){return 9===code||32===code}function F(code){return code>=48&&code<=57}function j(code){return code>=97&&code<=122||code>=65&&code<=90}function L(code){return j(code)||95===code}function B(code){return j(code)||F(code)||95===code}function V(t){var e;let r=Number.MAX_SAFE_INTEGER,n=null,o=-1;for(let i=0;i<t.length;++i){var l;const line=t[i],e=z(line);e!==line.length&&(n=null!==(l=n)&&void 0!==l?l:i,o=i,0!==i&&e<r&&(r=e))}return t.map(((line,i)=>0===i?line:line.slice(r))).slice(null!==(e=n)&&void 0!==e?e:0,o+1)}function z(t){let i=0;for(;i<t.length&&R(t.charCodeAt(i));)++i;return i}function G(t){if(""===t)return!0;let e=!0,r=!1,n=!0,o=!1;for(let i=0;i<t.length;++i)switch(t.codePointAt(i)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:case 13:return!1;case 10:if(e&&!o)return!1;o=!0,e=!0,r=!1;break;case 9:case 32:r||(r=e);break;default:n&&(n=r),e=!1}return!e&&(!n||!o)}function U(t,e){const r=t.replace(/"""/g,'\\"""'),n=r.split(/\r\n|[\n\r]/g),o=1===n.length,l=n.length>1&&n.slice(1).every((line=>0===line.length||R(line.charCodeAt(0)))),c=r.endsWith('\\"""'),h=t.endsWith('"')&&!c,d=t.endsWith("\\"),f=h||d,m=!(null!=e&&e.minimize)&&(!o||t.length>70||f||l||c);let y="";const v=o&&R(t.charCodeAt(0));return(m&&!v||l)&&(y+="\n"),y+=r,(m||f)&&(y+="\n"),'"""'+y+'"""'}!function(t){t.QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription"}(C||(C={})),function(t){t.QUERY="QUERY",t.MUTATION="MUTATION",t.SUBSCRIPTION="SUBSCRIPTION",t.FIELD="FIELD",t.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",t.FRAGMENT_SPREAD="FRAGMENT_SPREAD",t.INLINE_FRAGMENT="INLINE_FRAGMENT",t.VARIABLE_DEFINITION="VARIABLE_DEFINITION",t.SCHEMA="SCHEMA",t.SCALAR="SCALAR",t.OBJECT="OBJECT",t.FIELD_DEFINITION="FIELD_DEFINITION",t.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",t.INTERFACE="INTERFACE",t.UNION="UNION",t.ENUM="ENUM",t.ENUM_VALUE="ENUM_VALUE",t.INPUT_OBJECT="INPUT_OBJECT",t.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(D||(D={})),function(t){t.NAME="Name",t.DOCUMENT="Document",t.OPERATION_DEFINITION="OperationDefinition",t.VARIABLE_DEFINITION="VariableDefinition",t.SELECTION_SET="SelectionSet",t.FIELD="Field",t.ARGUMENT="Argument",t.FRAGMENT_SPREAD="FragmentSpread",t.INLINE_FRAGMENT="InlineFragment",t.FRAGMENT_DEFINITION="FragmentDefinition",t.VARIABLE="Variable",t.INT="IntValue",t.FLOAT="FloatValue",t.STRING="StringValue",t.BOOLEAN="BooleanValue",t.NULL="NullValue",t.ENUM="EnumValue",t.LIST="ListValue",t.OBJECT="ObjectValue",t.OBJECT_FIELD="ObjectField",t.DIRECTIVE="Directive",t.NAMED_TYPE="NamedType",t.LIST_TYPE="ListType",t.NON_NULL_TYPE="NonNullType",t.SCHEMA_DEFINITION="SchemaDefinition",t.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",t.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",t.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",t.FIELD_DEFINITION="FieldDefinition",t.INPUT_VALUE_DEFINITION="InputValueDefinition",t.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",t.UNION_TYPE_DEFINITION="UnionTypeDefinition",t.ENUM_TYPE_DEFINITION="EnumTypeDefinition",t.ENUM_VALUE_DEFINITION="EnumValueDefinition",t.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",t.DIRECTIVE_DEFINITION="DirectiveDefinition",t.SCHEMA_EXTENSION="SchemaExtension",t.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",t.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",t.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",t.UNION_TYPE_EXTENSION="UnionTypeExtension",t.ENUM_TYPE_EXTENSION="EnumTypeExtension",t.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(M||(M={})),function(t){t.SOF="<SOF>",t.EOF="<EOF>",t.BANG="!",t.DOLLAR="$",t.AMP="&",t.PAREN_L="(",t.PAREN_R=")",t.SPREAD="...",t.COLON=":",t.EQUALS="=",t.AT="@",t.BRACKET_L="[",t.BRACKET_R="]",t.BRACE_L="{",t.PIPE="|",t.BRACE_R="}
vendor: 20,764 bytes, line 2
2",t.NAME="Name",t.INT="Int",t.FLOAT="Float",t.STRING="String",t.BLOCK_STRING="BlockString",t.COMMENT="Comment"}(N||(N={}));class ${constructor(source){const t=new P(N.SOF,0,0,0,0);this.source=source,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){this.lastToken=this.token;return this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==N.EOF)do{if(t.next)t=t.next;else{const e=Z(this,t.end);t.next=e,e.prev=t,t=e}}while(t.kind===N.COMMENT);return t}}function H(t){return t===N.BANG||t===N.DOLLAR||t===N.AMP||t===N.PAREN_L||t===N.PAREN_R||t===N.SPREAD||t===N.COLON||t===N.EQUALS||t===N.AT||t===N.BRACKET_L||t===N.BRACKET_R||t===N.BRACE_L||t===N.PIPE||t===N.BRACE_R}function Y(code){return code>=0&&code<=55295||code>=57344&&code<=1114111}function W(body,t){return K(body.charCodeAt(t))&&Q(body.charCodeAt(t+1))}function K(code){return code>=55296&&code<=56319}function Q(code){return code>=56320&&code<=57343}function J(t,e){const code=t.source.body.codePointAt(e);if(void 0===code)return N.EOF;if(code>=32&&code<=126){const t=String.fromCodePoint(code);return'"'===t?"'\"'":`"${t}"`}return"U+"+code.toString(16).toUpperCase().padStart(4,"0")}function X(t,e,r,n,o){const line=t.line,col=1+r-t.lineStart;return new P(e,r,n,line,col,o)}function Z(t,e){const body=t.source.body,r=body.length;let n=e;for(;n<r;){const code=body.charCodeAt(n);switch(code){case 65279:case 9:case 32:case 44:++n;continue;case 10:++n,++t.line,t.lineStart=n;continue;case 13:10===body.charCodeAt(n+1)?n+=2:++n,++t.line,t.lineStart=n;continue;case 35:return tt(t,n);case 33:return X(t,N.BANG,n,n+1);case 36:return X(t,N.DOLLAR,n,n+1);case 38:return X(t,N.AMP,n,n+1);case 40:return X(t,N.PAREN_L,n,n+1);case 41:return X(t,N.PAREN_R,n,n+1);case 46:if(46===body.charCodeAt(n+1)&&46===body.charCodeAt(n+2))return X(t,N.SPREAD,n,n+3);break;case 58:return X(t,N.COLON,n,n+1);case 61:return X(t,N.EQUALS,n,n+1);case 64:return X(t,N.AT,n,n+1);case 91:return X(t,N.BRACKET_L,n,n+1);case 93:return X(t,N.BRACKET_R,n,n+1);case 123:return X(t,N.BRACE_L,n,n+1);case 124:return X(t,N.PIPE,n,n+1);case 125:return X(t,N.BRACE_R,n,n+1);case 34:return 34===body.charCodeAt(n+1)&&34===body.charCodeAt(n+2)?ht(t,n):it(t,n)}if(F(code)||45===code)return et(t,n,code);if(L(code))return ut(t,n);throw x(t.source,n,39===code?"Unexpected single quote character ('), did you mean to use a double quote (\")?":Y(code)||W(body,n)?`Unexpected character: ${J(t,n)}.`:`Invalid character: ${J(t,n)}.`)}return X(t,N.EOF,r,r)}function tt(t,e){const body=t.source.body,r=body.length;let n=e+1;for(;n<r;){const code=body.charCodeAt(n);if(10===code||13===code)break;if(Y(code))++n;else{if(!W(body,n))break;n+=2}}return X(t,N.COMMENT,e,n,body.slice(e+1,n))}function et(t,e,r){const body=t.source.body;let n=e,code=r,o=!1;if(45===code&&(code=body.charCodeAt(++n)),48===code){if(code=body.charCodeAt(++n),F(code))throw x(t.source,n,`Invalid number, unexpected digit after 0: ${J(t,n)}.`)}else n=nt(t,n,code),code=body.charCodeAt(n);if(46===code&&(o=!0,code=body.charCodeAt(++n),n=nt(t,n,code),code=body.charCodeAt(n)),69!==code&&101!==code||(o=!0,code=body.charCodeAt(++n),43!==code&&45!==code||(code=body.charCodeAt(++n)),n=nt(t,n,code),code=body.charCodeAt(n)),46===code||L(code))throw x(t.source,n,`Invalid number, expected digit but got: ${J(t,n)}.`);return X(t,o?N.FLOAT:N.INT,e,n,body.slice(e,n))}function nt(t,e,r){if(!F(r))throw x(t.source,e,`Invalid number, expected digit but got: ${J(t,e)}.`);const body=t.source.body;let n=e+1;for(;F(body.charCodeAt(n));)++n;return n}function it(t,e){const body=t.source.body,r=body.length;let n=e+1,o=n,l="";for(;n<r;){const code=body.charCodeAt(n);if(34===code)return l+=body.slice(o,n),X(t,N.STRING,e,n+1,l);if(92!==code){if(10===code||13===code)break;if(Y(code))++n;else{if(!W(body,n))throw x(t.source,n,`Invalid character within String: ${J(t,n)}.`);n+=2}}else{l+=body.slice(o,n);const e=117===body.charCodeAt(n+1)?123===body.charCodeAt(n+2)?at(t,n):st(t,n):ct(t,n);l+=e.value,n+=e.size,o=n}}throw x(t.source,n,"Unterminated string.")}function at(t,e){const body=t.source.body;let r=0,n=3;for(;n<12;){const code=body.charCodeAt(e+n++);if(125===code){if(n<5||!Y(r))break;return{value:String.fromCodePoint(r),size:n}}if(r=r<<4|lt(code),r<0)break}throw x(t.source,e,`Invalid Unicode escape sequence: "${body.slice(e,e+n)}".`)}function st(t,e){const body=t.source.body,code=ot(body,e+2);if(Y(code))return{value:String.fromCodePoint(code),size:6};if(K(code)&&92===body.charCodeAt(e+6)&&117===body.charCodeAt(e+7)){const t=ot(body,e+8);if(Q(t))return{value:String.fromCodePoint(code,t),size:12}}throw x(t.source,e,`Invalid Unicode escape sequence: "${body.slice(e,e+6)}".`)}function ot(body,t){return lt(body.charCodeAt(t))<<12|lt(body.charCodeAt(t+1))<<8|lt(body.charCodeAt(t+2))<<4|lt(body.charCodeAt(t+3))}function lt(code){return code>=48&&code<=57?code-48:code>=65&&code<=70?code-55:code>=97&&code<=102?code-87:-1}function ct(t,e){const body=t.source.body;switch(body.charCodeAt(e+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw x(t.source,e,`Invalid character escape sequence: "${body.slice(e,e+2)}".`)}function ht(t,e){const body=t.source.body,r=body.length;let n=t.lineStart,o=e+3,l=o,c="";const h=[];for(;o<r;){const code=body.charCodeAt(o);if(34===code&&34===body.charCodeAt(o+1)&&34===body.charCodeAt(o+2)){c+=body.slice(l,o),h.push(c);const r=X(t,N.BLOCK_STRING,e,o+3,V(h).join("\n"));return t.line+=h.length-1,t.lineStart=n,r}if(92!==code||34!==body.charCodeAt(o+1)||34!==body.charCodeAt(o+2)||34!==body.charCodeAt(o+3))if(10!==code&&13!==code)if(Y(code))++o;else{if(!W(body,o))throw x(t.source,o,`Invalid character within String: ${J(t,o)}.`);o+=2}else c+=body.slice(l,o),h.push(c),13===code&&10===body.charCodeAt(o+1)?o+=2:++o,c="",l=o,n=o;else c+=body.slice(l,o),l=o+1,o+=4}throw x(t.source,o,"Unterminated string.")}function ut(t,e){const body=t.source.body,r=body.length;let n=e+1;for(;n<r;){if(!B(body.charCodeAt(n)))break;++n}return X(t,N.NAME,e,n,body.slice(e,n))}function pt(t){return ft(t,[])}function ft(t,e){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return function(t,e){if(null===t)return"null";if(e.includes(t))return"[Circular]";const r=[...e,t];if(function(t){return"function"==typeof t.toJSON}(t)){const e=t.toJSON();if(e!==t)return"string"==typeof e?e:ft(e,r)}else if(Array.isArray(t))return function(t,e){if(0===t.length)return"[]";if(e.length>2)return"[Array]";const r=Math.min(10,t.length),n=t.length-r,o=[];for(let i=0;i<r;++i)o.push(ft(t[i],e));1===n?o.push("... 1 more item"):n>1&&o.push(`... ${n} more items`);return"["+o.join(", ")+"]"}(t,r);return function(object,t){const e=Object.entries(object);if(0===e.length)return"{}";if(t.length>2)return"["+function(object){const t=Object.prototype.toString.call(object).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof object.constructor){const t=object.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(object)+"]";const r=e.map((([e,r])=>e+": "+ft(r,t)));return"{ "+r.join(", ")+" }"}(t,r)}(t,e);default:return String(t)}}const mt=function(t,e){return t instanceof e};class gt{constructor(body,t="GraphQL request",e={line:1,column:1}){"string"==typeof body||l(!1,`Body must be a string. Received: ${pt(body)}.`),this.body=body,this.name=t,this.locationOffset=e,this.locationOffset.line>0||l(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||l(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function yt(source){return mt(source,gt)}function vt(source,t){return new _t(source,t).parseDocument()}function bt(source,t){const e=new _t(source,t);e.expectToken(N.SOF);const r=e.parseValueLiteral(!1);return e.expectToken(N.EOF),r}function wt(source,t){const e=new _t(source,t);e.expectToken(N.SOF);const r=e.parseConstValueLiteral();return e.expectToken(N.EOF),r}function Et(source,t){const e=new _t(source,t);e.expectToken(N.SOF);const r=e.parseTypeReference();return e.expectToken(N.EOF),r}class _t{constructor(source,t={}){const e=yt(source)?source:new gt(source);this._lexer=new $(e),this._options=t,this._tokenCounter=0}parseName(){const t=this.expectToken(N.NAME);return this.node(t,{kind:M.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:M.DOCUMENT,definitions:this.many(N.SOF,this.parseDefinition,N.EOF)})}parseDefinition(){if(this.peek(N.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),e=t?this._lexer.lookahead():this._lexer.token;if(e.kind===N.NAME){switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(t)throw x(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(e.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(e)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(N.BRACE_L))return this.node(t,{kind:M.OPERATION_DEFINITION,operation:C.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const e=this.parseOperationType();let r;return this.peek(N.NAME)&&(r=this.parseName()),this.node(t,{kind:M.OPERATION_DEFINITION,operation:e,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(N.NAME);switch(t.value){case"query":return C.QUERY;case"mutation":return C.MUTATION;case"subscription":return C.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(N.PAREN_L,this.parseVariableDefinition,N.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:M.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(N.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(N.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(N.DOLLAR),this.node(t,{kind:M.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:M.SELECTION_SET,selections:this.many(N.BRACE_L,this.parseSelection,N.BRACE_R)})}parseSelection(){return this.peek(N.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,e=this.parseName();let r,n;return this.expectOptionalToken(N.COLON)?(r=e,n=this.parseName()):n=e,this.node(t,{kind:M.FIELD,alias:r,name:n,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(N.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const e=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(N.PAREN_L,e,N.PAREN_R)}parseArgument(t=!1){const e=this._lexer.token,r=this.parseName();return this.expectToken(N.COLON),this.node(e,{kind:M.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(N.SPREAD);const e=this.expectOptionalKeyword("on");return!e&&this.peek(N.NAME)?this.node(t,{kind:M.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:M.INLINE_FRAGMENT,typeCondition:e?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(t,{kind:M.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:M.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(t){const e=this._lexer.token;switch(e.kind){case N.BRACKET_L:return this.parseList(t);case N.BRACE_L:return this.parseObject(t);case N.INT:return this.advanceLexer(),this.node(e,{kind:M.INT,value:e.value});case N.FLOAT:return this.advanceLexer(),this.node(e,{kind:M.FLOAT,value:e.value});case N.STRING:case N.BLOCK_STRING:return this.parseStringLiteral();case N.NAME:switch(this.advanceLexer(),e.value){case"true":return this.node(e,{kind:M.BOOLEAN,value:!0});case"false":return this.node(e,{kind:M.BOOLEAN,value:!1});case"null":return this.node(e,{kind:M.NULL});default:return this.node(e,{kind:M.ENUM,value:e.value})}case N.DOLLAR:if(t){if(this.expectToken(N.DOLLAR),this._lexer.token.kind===N.NAME){const t=this._lexer.token.value;throw x(this._lexer.source,e.start,`Unexpected variable "$${t}" in constant value.`)}throw this.unexpected(e)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:M.STRING,value:t.value,block:t.kind===N.BLOCK_STRING})}parseList(t){return this.node(this._lexer.token,{kind:M.LIST,values:this.any(N.BRACKET_L,(()=>this.parseValueLiteral(t)),N.BRACKET_R)})}parseObject(t){return this.node(this._lexer.token,{kind:M.OBJECT,fields:this.any(N.BRACE_L,(()=>this.parseObjectField(t)),N.BRACE_R)})}parseObjectField(t){const e=this._lexer.token,r=this.parseName();return this.expectToken(N.COLON),this.node(e,{kind:M.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){const e=[];for(;this.peek(N.AT);)e.push(this.parseDirective(t));return e}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const e=this._lexer.token;return this.expectToken(N.AT),this.node(e,{kind:M.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let e;if(this.expectOptionalToken(N.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(N.BRACKET_R),e=this.node(t,{kind:M.LIST_TYPE,type:r})}else e=this.parseNamedType();return this.expectOptionalToken(N.BANG)?this.node(t,{kind:M.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:M.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(N.STRING)||this.peek(N.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives(),n=this.many(N.BRACE_L,this.parseOperationTypeDefinition,N.BRACE_R);return this.node(t,{kind:M.SCHEMA_DEFINITION,description:e,directives:r,operationTypes:n})}parseOperationTypeDefinition(){const t=this._lexer.token,e=this.parseOperationType();this.expectToken(N.COLON);const r=this.parseNamedType();return this.node(t,{kind:M.OPERATION_TYPE_DEFINITION,operation:e,type:r})}parseScalarTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName(),n=this.parseConstDirectives();return this.node(t,{kind:M.SCALAR_TYPE_DEFINITION,description:e,name:r,directives:n})}parseObjectTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("type");const r=this.parseName(),n=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),l=this.parseFieldsDefinition();return this.node(t,{kind:M.OBJECT_TYPE_DEFINITION,description:e,name:r,interfaces:n,directives:o,fields:l})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(N.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(N.BRACE_L,this.parseFieldDefinition,N.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,e=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(N.COLON);const o=this.parseTypeReference(),l=this.parseConstDirectives();return this.node(t,{kind:M.FIELD_DEFINITION,description:e,name:r,arguments:n,type:o,directives:l})}parseArgumentDefs(){return this.optionalMany(N.PAREN_L,this.parseInputValueDef,N.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,e=this.parseDescription(),r=this.parseName();this.expectToken(N.COLON);const n=this.parseTypeReference();let o;this.expectOptionalToken(N.EQUALS)&&(o=this.parseConstValueLiteral());const l=this.parseConstDirectives();return this.node(t,{kind:M.INPUT_VALUE_DEFINITION,description:e,name:r,type:n,defaultValue:o,directives:l})}parseInterfaceTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("interface");const r=this.parseName(),n=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),l=this.parseFieldsDefinition();return this.node(t,{kind:M.INTERFACE_TYPE_DEFINITION,description:e,name:r,interfaces:n,directives:o,fields:l})}parseUnionTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("union");const r=this.parseName(),n=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(t,{kind:M.UNION_TYPE_DEFINITION,description:e,name:r,directives:n,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(N.EQUALS)?this.delimitedMany(N.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("enum");const r=this.parseName(),n=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(t,{kind:M.ENUM_TYPE_DEFINITION,description:e,name:r,directives:n,values:o})}parseEnumValuesDefinition(){return this.optionalMany(N.BRACE_L,this.parseEnumValueDefinition,N.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,e=this.parseDescription(),r=this.parseEnumValueName(),n=this.parseConstDirectives();return this.node(t,{kind:M.ENUM_VALUE_DEFINITION,description:e,name:r,directives:n})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw x(this._lexer.source,this._lexer.token.start,`${Tt(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("input");const r=this.parseName(),n=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(t,{kind:M.INPUT_OBJECT_TYPE_DEFINITION,description:e,name:r,directives:n,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(N.BRACE_L,this.parseInputValueDef,N.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===N.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const e=this.parseConstDirectives(),r=this.optionalMany(N.BRACE_L,this.parseOperationTypeDefinition,N.BRACE_R);if(0===e.length&&0===r.length)throw this.unexpected();return this.node(t,{kind:M.SCHEMA_EXTENSION,directives:e,operationTypes:r})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const e=this.parseName(),r=this.parseConstDirectives();if(0===r.length)throw this.unexpected();return this.node(t,{kind:M.SCALAR_TYPE_EXTENSION,name:e,directives:r})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const e=thi
2s.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===o.length)throw this.unexpected();return this.node(t,{kind:M.OBJECT_TYPE_EXTENSION,name:e,interfaces:r,directives:n,fields:o})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const e=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===o.length)throw this.unexpected();return this.node(t,{kind:M.INTERFACE_TYPE_EXTENSION,name:e,interfaces:r,directives:n,fields:o})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const e=this.parseName(),r=this.parseConstDirectives(),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(t,{kind:M.UNION_TYPE_EXTENSION,name:e,directives:r,types:n})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const e=this.parseName(),r=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(t,{kind:M.ENUM_TYPE_EXTENSION,name:e,directives:r,values:n})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const e=this.parseName(),r=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(t,{kind:M.INPUT_OBJECT_TYPE_EXTENSION,name:e,directives:r,fields:n})}parseDirectiveDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("directive"),this.expectToken(N.AT);const r=this.parseName(),n=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const l=this.parseDirectiveLocations();return this.node(t,{kind:M.DIRECTIVE_DEFINITION,description:e,name:r,arguments:n,repeatable:o,locations:l})}parseDirectiveLocations(){return this.delimitedMany(N.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,e=this.parseName();if(Object.prototype.hasOwnProperty.call(D,e.value))return e;throw this.unexpected(t)}node(t,e){return!0!==this._options.noLocation&&(e.loc=new I(t,this._lexer.lastToken,this._lexer.source)),e}peek(t){return this._lexer.token.kind===t}expectToken(t){const e=this._lexer.token;if(e.kind===t)return this.advanceLexer(),e;throw x(this._lexer.source,e.start,`Expected ${St(t)}, found ${Tt(e)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t&&(this.advanceLexer(),!0)}expectKeyword(t){const e=this._lexer.token;if(e.kind!==N.NAME||e.value!==t)throw x(this._lexer.source,e.start,`Expected "${t}", found ${Tt(e)}.`);this.advanceLexer()}expectOptionalKeyword(t){const e=this._lexer.token;return e.kind===N.NAME&&e.value===t&&(this.advanceLexer(),!0)}unexpected(t){const e=null!=t?t:this._lexer.token;return x(this._lexer.source,e.start,`Unexpected ${Tt(e)}.`)}any(t,e,r){this.expectToken(t);const n=[];for(;!this.expectOptionalToken(r);)n.push(e.call(this));return n}optionalMany(t,e,r){if(this.expectOptionalToken(t)){const t=[];do{t.push(e.call(this))}while(!this.expectOptionalToken(r));return t}return[]}many(t,e,r){this.expectToken(t);const n=[];do{n.push(e.call(this))}while(!this.expectOptionalToken(r));return n}delimitedMany(t,e){this.expectOptionalToken(t);const r=[];do{r.push(e.call(this))}while(this.expectOptionalToken(t));return r}advanceLexer(){const{maxTokens:t}=this._options,e=this._lexer.advance();if(void 0!==t&&e.kind!==N.EOF&&(++this._tokenCounter,this._tokenCounter>t))throw x(this._lexer.source,e.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function Tt(t){const e=t.value;return St(t.kind)+(null!=e?` "${e}"`:"")}function St(t){return H(t)?`"${t}"`:t}function xt(t,e){const[r,n]=e?[t,e]:[void 0,t];let o=" Did you mean ";r&&(o+=r+" ");const l=n.map((t=>`"${t}"`));switch(l.length){case 0:return"";case 1:return o+l[0]+"?";case 2:return o+l[0]+" or "+l[1]+"?"}const c=l.slice(0,5),h=c.pop();return o+c.join(", ")+", or "+h+"?"}function It(t){return t}function Pt(t,e){const r=Object.create(null);for(const n of t)r[e(n)]=n;return r}function Ot(t,e,r){const n=Object.create(null);for(const o of t)n[e(o)]=r(o);return n}function At(map,t){const e=Object.create(null);for(const r of Object.keys(map))e[r]=t(map[r],r);return e}function kt(t,e){let r=0,n=0;for(;r<t.length&&n<e.length;){let o=t.charCodeAt(r),l=e.charCodeAt(n);if(Dt(o)&&Dt(l)){let c=0;do{++r,c=10*c+o-Ct,o=t.charCodeAt(r)}while(Dt(o)&&c>0);let h=0;do{++n,h=10*h+l-Ct,l=e.charCodeAt(n)}while(Dt(l)&&h>0);if(c<h)return-1;if(c>h)return 1}else{if(o<l)return-1;if(o>l)return 1;++r,++n}}return t.length-e.length}const Ct=48;function Dt(code){return!isNaN(code)&&Ct<=code&&code<=57}function Mt(input,t){const e=Object.create(null),r=new Nt(input),n=Math.floor(.4*input.length)+1;for(const option of t){const t=r.measure(option,n);void 0!==t&&(e[option]=t)}return Object.keys(e).sort(((a,b)=>{const t=e[a]-e[b];return 0!==t?t:kt(a,b)}))}class Nt{constructor(input){this._input=input,this._inputLowerCase=input.toLowerCase(),this._inputArray=Rt(this._inputLowerCase),this._rows=[new Array(input.length+1).fill(0),new Array(input.length+1).fill(0),new Array(input.length+1).fill(0)]}measure(option,t){if(this._input===option)return 0;const e=option.toLowerCase();if(this._inputLowerCase===e)return 1;let a=Rt(e),b=this._inputArray;
2if(a.length<b.length){const t=a;a=b,b=t}const r=a.length,n=b.length;if(r-n>t)return;const o=this._rows;for(let t=0;t<=n;t++)o[0][t]=t;for(let i=1;i<=r;i++){const e=o[(i-1)%3],r=o[i%3];let l=r[0]=i;for(let t=1;t<=n;t++){const n=a[i-1]===b[t-1]?0:1;let c=Math.min(e[t]+1,r[t-1]+1,e[t-1]+n);if(i>1&&t>1&&a[i-1]===b[t-2]&&a[i-2]===b[t-1]){const e=o[(i-2)%3][t-2];c=Math.min(c,e+1)}c<l&&(l=c),r[t]=c}if(l>t)return}const l=o[r%3][n];return l<=t?l:void 0}}function Rt(t){const e=t.length,r=new Array(e);for(let i=0;i<e;++i)r[i]=t.charCodeAt(i);return r}function Ft(t){if(null==t)return Object.create(null);if(null===Object.getPrototypeOf(t))return t;const map=Object.create(null);for(const[e,r]of Object.entries(t))map[e]=r;return map}const jt=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function Lt(t){return Bt[t.charCodeAt(0)]}const Bt=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],Vt=Object.freeze({});function zt(t,e,r=O){const n=new Map;for(const t of Object.values(M))n.set(t,Ut(e,t));let o,c,h,d=Array.isArray(t),f=[t],m=-1,y=[],v=t;const path=[],w=[];do{m++;const t=m===f.length,S=t&&0!==y.length;if(t){if(c=0===w.length?void 0:path[path.length-1],v=h,h=w.pop(),S)if(d){v=v.slice();let t=0;for(const[e,r]of y){const n=e-t;null===r?(v.splice(n,1),t++):v[n]=r}}else{v=Object.defineProperties({},Object.getOwnPropertyDescriptors(v));for(const[t,e]of y)v[t]=e}m=o.index,f=o.keys,y=o.edits,d=o.inArray,o=o.prev}else if(h){if(c=d?m:f[m],v=h[c],null==v)continue;path.push(c)}let x;if(!Array.isArray(v)){var E,_;k(v)||l(!1,`Invalid AST Node: ${pt(v)}.`);const r=t?null===(E=n.get(v.kind))||void 0===E?void 0:E.leave:null===(_=n.get(v.kind))||void 0===_?void 0:_.enter;if(x=null==r?void 0:r.call(e,v,c,h,path,w),x===Vt)break;if(!1===x){if(!t){path.pop();continue}}else if(void 0!==x&&(y.push([c,x]),!t)){if(!k(x)){path.pop();continue}v=x}}var T;if(void 0===x&&S&&y.push([c,v]),t)path.pop();else o={inArray:d,index:m,keys:f,edits:y,prev:o},d=Array.isArray(v),f=d?v:null!==(T=r[v.kind])&&void 0!==T?T:[],m=-1,y=[],h&&w.push(h),h=v}while(void 0!==o);return 0!==y.length?y[y.length-1][1]:t}function Gt(t){const e=new Array(t.length).fill(null),r=Object.create(null);for(const n of Object.values(M)){let o=!1;const l=new Array(t.length).fill(void 0),c=new Array(t.length).fill(void 0);for(let i=0;i<t.length;++i){const{enter:e,leave:r}=Ut(t[i],n);o||(o=null!=e||null!=r),l[i]=e,c[i]=r}if(!o)continue;const h={enter(...r){const n=r[0];for(let i=0;i<t.length;i++)if(null===e[i]){var o;const c=null===(o=l[i])||void 0===o?void 0:o.apply(t[i],r);if(!1===c)e[i]=n;else if(c===Vt)e[i]=Vt;else if(void 0!==c)return c}},leave(...r){const n=r[0];for(let i=0;i<t.length;i++)if(null===e[i]){var o;const n=null===(o=c[i])||void 0===o?void 0:o.apply(t[i],r);if(n===Vt)e[i]=Vt;else if(void 0!==n&&!1!==n)return n}else e[i]===n&&(e[i]=null)}};r[n]=h}return r}function Ut(t,e){const r=t[e];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:t.enter,leave:t.leave}}function $t(t,e,r){const{enter:n,leave:o}=Ut(t,e);return r?o:n}function qt(t){return zt(t,Ht)}const Ht={Name:{leave:t=>t.value},Variable:{leave:t=>"$"+t.name},Document:{leave:t=>Yt(t.definitions,"\n\n")},OperationDefinition:{leave(t){const e=Kt("(",Yt(t.variableDefinitions,", "),")"),r=Yt([t.operation,Yt([t.name,e]),Yt(t.directives," ")]," ");return("query"===r?"":r+" ")+t.selectionSet}},VariableDefinition:{leave:({variable:t,type:e,defaultValue:r,directives:n})=>t+": "+e+Kt(" = ",r)+Kt(" ",Yt(n," "))},SelectionSet:{leave:({selections:t})=>Wt(t)},Field:{leave({alias:t,name:e,arguments:r,directives:n,selectionSet:o}){const l=Kt("",t,": ")+e;let c=l+Kt("(",Yt(r,", "),")");return c.length>80&&(c=l+Kt("(\n",Qt(Yt(r,"\n")),"\n)")),Yt([c,Yt(n," "),o]," ")}},Argument:{leave:({name:t,value:e})=>t+": "+e},FragmentSpread:{leave:({name:t,directives:e})=>"..."+t+Kt(" ",Yt(e," "))},InlineFragment:{leave:({typeCondition:t,directives:e,selectionSet:r})=>Yt(["...",Kt("on ",t),Yt(e," "),r]," ")},FragmentDefinition:{leave:({name:t,typeCondition:e,variableDefinitions:r,directives:n,selectionSet:o})=>`fragment ${t}${Kt("(",Yt(r,", "),")")} on ${e} ${Kt("",Yt(n," ")," ")}`+o},IntValue:{leave:({value:t})=>t}
2,FloatValue:{leave:({value:t})=>t},StringValue:{leave:({value:t,block:e})=>e?U(t):`"${t.replace(jt,Lt)}"`},BooleanValue:{leave:({value:t})=>t?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:t})=>t},ListValue:{leave:({values:t})=>"["+Yt(t,", ")+"]"},ObjectValue:{leave:({fields:t})=>"{"+Yt(t,", ")+"}"},ObjectField:{leave:({name:t,value:e})=>t+": "+e},Directive:{leave:({name:t,arguments:e})=>"@"+t+Kt("(",Yt(e,", "),")")},NamedType:{leave:({name:t})=>t},ListType:{leave:({type:t})=>"["+t+"]"},NonNullType:{leave:({type:t})=>t+"!"},SchemaDefinition:{leave:({description:t,directives:e,operationTypes:r})=>Kt("",t,"\n")+Yt(["schema",Yt(e," "),Wt(r)]," ")},OperationTypeDefinition:{leave:({operation:t,type:e})=>t+": "+e},ScalarTypeDefinition:{leave:({description:t,name:e,directives:r})=>Kt("",t,"\n")+Yt(["scalar",e,Yt(r," ")]," ")},ObjectTypeDefinition:{leave:({description:t,name:e,interfaces:r,directives:n,fields:o})=>Kt("",t,"\n")+Yt(["type",e,Kt("implements ",Yt(r," & ")),Yt(n," "),Wt(o)]," ")},FieldDefinition:{leave:({description:t,name:e,arguments:r,type:n,directives:o})=>Kt("",t,"\n")+e+(Jt(r)?Kt("(\n",Qt(Yt(r,"\n")),"\n)"):Kt("(",Yt(r,", "),")"))+": "+n+Kt(" ",Yt(o," "))},InputValueDefinition:{leave:({description:t,name:e,type:r,defaultValue:n,directives:o})=>Kt("",t,"\n")+Yt([e+": "+r,Kt("= ",n),Yt(o," ")]," ")},InterfaceTypeDefinition:{leave:({description:t,name:e,interfaces:r,directives:n,fields:o})=>Kt("",t,"\n")+Yt(["interface",e,Kt("implements ",Yt(r," & ")),Yt(n," "),Wt(o)]," ")},UnionTypeDefinition:{leave:({description:t,name:e,directives:r,types:n})=>Kt("",t,"\n")+Yt(["union",e,Yt(r," "),Kt("= ",Yt(n," | "))]," ")},EnumTypeDefinition:{leave:({description:t,name:e,directives:r,values:n})=>Kt("",t,"\n")+Yt(["enum",e,Yt(r," "),Wt(n)]," ")},EnumValueDefinition:{leave:({description:t,name:e,directives:r})=>Kt("",t,"\n")+Yt([e,Yt(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:t,name:e,directives:r,fields:n})=>Kt("",t,"\n")+Yt(["input",e,Yt(r," "),Wt(n)]," ")},DirectiveDefinition:{leave:({description:t,name:e,arguments:r,repeatable:n,locations:o})=>Kt("",t,"\n")+"directive @"+e+(Jt(r)?Kt("(\n",Qt(Yt(r,"\n")),"\n)"):Kt("(",Yt(r,", "),")"))+(n?" repeatable":"")+" on "+Yt(o," | ")},SchemaExtension:{leave:({directives:t,operationTypes:e})=>Yt(["extend schema",Yt(t," "),Wt(e)]," ")},ScalarTypeExtension:{leave:({name:t,directives:e})=>Yt(["extend scalar",t,Yt(e," ")]," ")},ObjectTypeExtension:{leave:({name:t,interfaces:e,directives:r,fields:n})=>Yt(["extend type",t,Kt("implements ",Yt(e," & ")),Yt(r," "),Wt(n)]," ")},InterfaceTypeExtension:{leave:({name:t,interfaces:e,directives:r,fields:n})=>Yt(["extend interface",t,Kt("implements ",Yt(e," & ")),Yt(r," "),Wt(n)]," ")},UnionTypeExtension:{leave:({name:t,directives:e,types:r})=>Yt(["extend union",t,Yt(e," "),Kt("= ",Yt(r," | "))]," ")},EnumTypeExtension:{leave:({name:t,directives:e,values:r})=>Yt(["extend enum",t,Yt(e," "),Wt(r)]," ")},InputObjectTypeExtension:{leave:({name:t,directives:e,fields:r})=>Yt(["extend input",t,Yt(e," "),Wt(r)]," ")}};function Yt(t,e=""){var r;return null!==(r=null==t?void 0:t.filter((t=>t)).join(e))&&void 0!==r?r:""}function Wt(t){return Kt("{\n",Qt(Yt(t,"\n")),"\n}")}function Kt(t,e,r=""){return null!=e&&""!==e?t+e+r:""}function Qt(t){return Kt("  ",t.replace(/\n/g,"\n  "))}function Jt(t){var e;return null!==(e=null==t?void 0:t.some((t=>t.includes("\n"))))&&void 0!==e&&e}function Xt(t,e){switch(t.kind){case M.NULL:return null;case M.INT:return parseInt(t.value,10);case M.FLOAT:return parseFloat(t.value);case M.STRING:case M.ENUM:case M.BOOLEAN:return t.value;case M.LIST:return t.values.map((t=>Xt(t,e)));case M.OBJECT:return Ot(t.fields,(t=>t.name.value),(t=>Xt(t.value,e)));case M.VARIABLE:return null==e?void 0:e[t.name.value]}}function Zt(t){if(null!=t||l(!1,"Must provide name."),"string"==typeof t||l(!1,"Expected name to be a string."),0===t.length)throw new E("Expected name to be a non-empty string.");for(let i=1;i<t.length;++i)if(!B(t.charCodeAt(i)))throw new E(`Names must only contain [_a-zA-Z0-9] but "${t}" does not.`);if(!L(t.charCodeAt(0)))throw new E(`Names must start with [_a-zA-Z] but "${t}" does not.`);return t}function te(t){if("true"===t||"false"===t||"null"===t)throw new E(`Enum values cannot be named: ${t}`);return Zt(t)}
2function ee(t){return ne(t)||ae(t)||oe(t)||ce(t)||ue(t)||de(t)||me(t)||ye(t)}function re(t){if(!ee(t))throw new Error(`Expected ${pt(t)} to be a GraphQL type.`);return t}function ne(t){return mt(t,ze)}function ie(t){if(!ne(t))throw new Error(`Expected ${pt(t)} to be a GraphQL Scalar type.`);return t}function ae(t){return mt(t,Ge)}function se(t){if(!ae(t))throw new Error(`Expected ${pt(t)} to be a GraphQL Object type.`);return t}function oe(t){return mt(t,Qe)}function le(t){if(!oe(t))throw new Error(`Expected ${pt(t)} to be a GraphQL Interface type.`);return t}function ce(t){return mt(t,Je)}function he(t){if(!ce(t))throw new Error(`Expected ${pt(t)} to be a GraphQL Union type.`);return t}function ue(t){return mt(t,Ze)}function pe(t){if(!ue(t))throw new Error(`Expected ${pt(t)} to be a GraphQL Enum type.`);return t}function de(t){return mt(t,rr)}function fe(t){if(!de(t))throw new Error(`Expected ${pt(t)} to be a GraphQL Input Object type.`);return t}function me(t){return mt(t,Ae)}function ge(t){if(!me(t))throw new Error(`Expected ${pt(t)} to be a GraphQL List type.`);return t}function ye(t){return mt(t,ke)}function ve(t){if(!ye(t))throw new Error(`Expected ${pt(t)} to be a GraphQL Non-Null type.`);return t}function be(t){return ne(t)||ue(t)||de(t)||Ce(t)&&be(t.ofType)}function we(t){if(!be(t))throw new Error(`Expected ${pt(t)} to be a GraphQL input type.`);return t}function Ee(t){return ne(t)||ae(t)||oe(t)||ce(t)||ue(t)||Ce(t)&&Ee(t.ofType)}function _e(t){if(!Ee(t))throw new Error(`Expected ${pt(t)} to be a GraphQL output type.`);return t}function Te(t){return ne(t)||ue(t)}function Se(t){if(!Te(t))throw new Error(`Expected ${pt(t)} to be a GraphQL leaf type.`);return t}function xe(t){return ae(t)||oe(t)||ce(t)}function Ie(t){if(!xe(t))throw new Error(`Expected ${pt(t)} to be a GraphQL composite type.`);return t}function Pe(t){return oe(t)||ce(t)}function Oe(t){if(!Pe(t))throw new Error(`Expected ${pt(t)} to be a GraphQL abstract type.`);return t}class Ae{constructor(t){ee(t)||l(!1,`Expected ${pt(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}class ke{constructor(t){Me(t)||l(!1,`Expected ${pt(t)} to be a GraphQL nullable type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function Ce(t){return me(t)||ye(t)}function De(t){if(!Ce(t))throw new Error(`Expected ${pt(t)} to be a GraphQL wrapping type.`);return t}function Me(t){return ee(t)&&!ye(t)}function Ne(t){if(!Me(t))throw new Error(`Expected ${pt(t)} to be a GraphQL nullable type.`);return t}function Re(t){if(t)return ye(t)?t.ofType:t}function Fe(t){return ne(t)||ae(t)||oe(t)||ce(t)||ue(t)||de(t)}function je(t){if(!Fe(t))throw new Error(`Expected ${pt(t)} to be a GraphQL named type.`);return t}function Le(t){if(t){let e=t;for(;Ce(e);)e=e.ofType;return e}}function Be(t){return"function"==typeof t?t():t}function Ve(t){return"function"==typeof t?t():t}class ze{constructor(t){var e,r,n,o;const c=null!==(e=t.parseValue)&&void 0!==e?e:It;this.name=Zt(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=null!==(r=t.serialize)&&void 0!==r?r:It,this.parseValue=c,this.parseLiteral=null!==(n=t.parseLiteral)&&void 0!==n?n:(t,e)=>c(Xt(t,e)),this.extensions=Ft(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=null!==(o=t.extensionASTNodes)&&void 0!==o?o:[],null==t.specifiedByURL||"string"==typeof t.specifiedByURL||l(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${pt(t.specifiedByURL)}.`),null==t.serialize||"function"==typeof t.serialize||l(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),t.parseLiteral&&("function"==typeof t.parseValue&&"function"==typeof t.parseLiteral||l(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class Ge{constructor(t){var e;this.name=Zt(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=Ft(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=null!==(e=t.extensionASTNodes)&&void 0!==e?e:[],this._fields=()=>$e(t),this._interfaces=()=>Ue(t),null==t.isTypeOf||"function"==typeof t.isTypeOf||l(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${pt(t.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}
2getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Ye(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Ue(t){var e;const r=Be(null!==(e=t.interfaces)&&void 0!==e?e:[]);return Array.isArray(r)||l(!1,`${t.name} interfaces must be an Array or a function which returns an Array.`),r}function $e(t){const e=Ve(t.fields);return He(e)||l(!1,`${t.name} fields must be an object with field names as keys or a function which returns such an object.`),At(e,((e,r)=>{var n;He(e)||l(!1,`${t.name}.${r} field config must be an object.`),null==e.resolve||"function"==typeof e.resolve||l(!1,`${t.name}.${r} field resolver must be a function if provided, but got: ${pt(e.resolve)}.`);const o=null!==(n=e.args)&&void 0!==n?n:{};return He(o)||l(!1,`${t.name}.${r} args must be an object with argument names as keys.`),{name:Zt(r),description:e.description,type:e.type,args:qe(o),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:Ft(e.extensions),astNode:e.astNode}}))}function qe(t){return Object.entries(t).map((([t,e])=>({name:Zt(t),description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:Ft(e.extensions),astNode:e.astNode})))}function He(t){return h(t)&&!Array.isArray(t)}function Ye(t){return At(t,(t=>({description:t.description,type:t.type,args:We(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode})))}function We(t){return Ot(t,(t=>t.name),(t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode})))}function Ke(t){return ye(t.type)&&void 0===t.defaultValue}class Qe{constructor(t){var e;this.name=Zt(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=Ft(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=null!==(e=t.extensionASTNodes)&&void 0!==e?e:[],this._fields=$e.bind(void 0,t),this._interfaces=Ue.bind(void 0,t),null==t.resolveType||"function"==typeof t.resolveType||l(!1,`${this.name} must provide "resolveType" as a function, but got: ${pt(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Ye(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class Je{constructor(t){var e;this.name=Zt(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=Ft(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=null!==(e=t.extensionASTNodes)&&void 0!==e?e:[],this._types=Xe.bind(void 0,t),null==t.resolveType||"function"==typeof t.resolveType||l(!1,`${this.name} must provide "resolveType" as a function, but got: ${pt(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Xe(t){const e=Be(t.types);return Array.isArray(e)||l(!1,`Must provide Array of types or a function which returns such an array for Union ${t.name}.`),e}class Ze{constructor(t){var e,r,n;this.name=Zt(t.name),this.description=t.description,this.extensions=Ft(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=null!==(e=t.extensionASTNodes)&&void 0!==e?e:[],this._values=(r=this.name,He(n=t.values)||l(!1,`${r} values must be an object with value names as keys.`),Object.entries(n).map((([t,e])=>(He(e)||l(!1,`${r}.${t} must refer to an object with a "value" key representing an internal value but got: ${pt(e)}.`),{name:te(t),description:e.description,value:void 0!==e.value?e.value:t,deprecationReason:e.deprecationReason,extensions:Ft(e.extensions),astNode:e.astNode})))),this._valueLookup=new Map(this._values.map((t=>[t.value,t]))),this._nameLookup=Pt(this._values,(t=>t.name))}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return this._values}getValue(t){return this._nameLookup[t]}serialize(t){const e=this._valueLookup.get(t);if(void 0===e)throw new E(`Enum "${this.name}" cannot represent value: ${pt(t)}`);return e.name}parseValue(t){if("string"!=typeof t){const e=pt(t);throw new E(`Enum "${this.name}" cannot represent non-string value: ${e}.`+er(this,e))}const e=this.getValue(t);if(null==e)throw new E(`Value "${t}" does not exist in "${this.name}" enum.`+er(this,t));return e.value}parseLiteral(t,e){if(t.kind!==M.ENUM){const e=qt(t);throw new E(`Enum "${this.name}" cannot represent non-enum value: ${e}.`+er(this,e),{nodes:t})}const r=this.getValue(t.value);if(null==r){const e=qt(t);throw new E(`Value "${e}" does not exist in "${this.name}" enum.`+er(this,e),{nodes:t})}return r.value}toConfig(){const t=Ot(this.getValues(),(t=>t.name),(t=>({description:t.description,value:t.value,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode})));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function er(t,e){return xt("the enum value",Mt(e,t.getValues().map((t=>t.name))))}class rr{constructor(t){var e;this.name=Zt(t.name),this.description=t.description,this.extensions=Ft(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=null!==(e=t.extensionASTNodes)&&void 0!==e?e:[],this._fields=nr.bind(void 0,t)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){const t=At(this.getFields(),(t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode})));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function nr(t){const e=Ve(t.fields);return He(e)||l(!1,`${t.name} fields must be an object with field names as keys or a function which returns such an object.`),At(e,((e,r)=>(!("resolve"in e)||l(!1,`${t.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`),{name:Zt(r),description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:Ft(e.extensions),astNode:e.astNode})))}function ir(t){return ye(t.type)&&void 0===t.defaultValue}function ar(t,e){return t===e||(ye(t)&&ye(e)||!(!me(t)||!me(e)))&&ar(t.ofType,e.ofType)}function sr(t,e,r){return e===r||(ye(r)?!!ye(e)&&sr(t,e.ofType,r.ofType):ye(e)?sr(t,e.ofType,r):me(r)?!!me(e)&&sr(t,e.ofType,r.ofType):!me(e)&&(Pe(r)&&(oe(e)||ae(e))&&t.isSubType(r,e)))}function or(t,e,r){return e===r||(Pe(e)?Pe(r)?t.getPossibleTypes(e).some((e=>t.isSubType(r,e))):t.isSubType(e,r):!!Pe(r)&&t.isSubType(r,e))}const lr=2147483647,cr=-2147483648,ur=new ze({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(t){const e=vr(t);if("boolean"==typeof e)return e?1:0;let r=e;if("string"==typeof e&&""!==e&&(r=Number(e)),"number"!=typeof r||!Number.isInteger(r))throw new E(`Int cannot represent non-integer value: ${pt(e)}`);
2if(r>lr||r<cr)throw new E("Int cannot represent non 32-bit signed integer value: "+pt(e));return r},parseValue(t){if("number"!=typeof t||!Number.isInteger(t))throw new E(`Int cannot represent non-integer value: ${pt(t)}`);if(t>lr||t<cr)throw new E(`Int cannot represent non 32-bit signed integer value: ${t}`);return t},parseLiteral(t){if(t.kind!==M.INT)throw new E(`Int cannot represent non-integer value: ${qt(t)}`,{nodes:t});const e=parseInt(t.value,10);if(e>lr||e<cr)throw new E(`Int cannot represent non 32-bit signed integer value: ${t.value}`,{nodes:t});return e}}),pr=new ze({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize(t){const e=vr(t);if("boolean"==typeof e)return e?1:0;let r=e;if("string"==typeof e&&""!==e&&(r=Number(e)),"number"!=typeof r||!Number.isFinite(r))throw new E(`Float cannot represent non numeric value: ${pt(e)}`);return r},parseValue(t){if("number"!=typeof t||!Number.isFinite(t))throw new E(`Float cannot represent non numeric value: ${pt(t)}`);return t},parseLiteral(t){if(t.kind!==M.FLOAT&&t.kind!==M.INT)throw new E(`Float cannot represent non numeric value: ${qt(t)}`,t);return parseFloat(t.value)}}),dr=new ze({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(t){const e=vr(t);if("string"==typeof e)return e;if("boolean"==typeof e)return e?"true":"false";if("number"==typeof e&&Number.isFinite(e))return e.toString();throw new E(`String cannot represent value: ${pt(t)}`)},parseValue(t){if("string"!=typeof t)throw new E(`String cannot represent a non string value: ${pt(t)}`);return t},parseLiteral(t){if(t.kind!==M.STRING)throw new E(`String cannot represent a non string value: ${qt(t)}`,{nodes:t});return t.value}}),fr=new ze({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(t){const e=vr(t);if("boolean"==typeof e)return e;if(Number.isFinite(e))return 0!==e;throw new E(`Boolean cannot represent a non boolean value: ${pt(e)}`)},parseValue(t){if("boolean"!=typeof t)throw new E(`Boolean cannot represent a non boolean value: ${pt(t)}`);return t},parseLiteral(t){if(t.kind!==M.BOOLEAN)throw new E(`Boolean cannot represent a non boolean value: ${qt(t)}`,{nodes:t});return t.value}}),mr=new ze({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(t){const e=vr(t);if("string"==typeof e)return e;if(Number.isInteger(e))return String(e);throw new E(`ID cannot represent value: ${pt(t)}`)},parseValue(t){if("string"==typeof t)return t;if("number"==typeof t&&Number.isInteger(t))return t.toString();throw new E(`ID cannot represent value: ${pt(t)}`)},parseLiteral(t){if(t.kind!==M.STRING&&t.kind!==M.INT)throw new E("ID cannot represent a non-string and non-integer value: "+qt(t),{nodes:t});return t.value}}),gr=Object.freeze([dr,ur,pr,fr,mr]);function yr(t){return gr.some((({name:e})=>t.name===e))}function vr(t){if(h(t)){if("function"==typeof t.valueOf){const e=t.valueOf();if(!h(e))return e}if("function"==typeof t.toJSON)return t.toJSON()}return t}function wr(t){return mt(t,_r)}function Er(t){if(!wr(t))throw new Error(`Expected ${pt(t)} to be a GraphQL directive.`);return t}class _r{constructor(t){var e,r;this.name=Zt(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=null!==(e=t.isRepeatable)&&void 0!==e&&e,this.extensions=Ft(t.extensions),this.astNode=t.astNode,Array.isArray(t.locations)||l(!1,`@${t.name} locations must be an Array.`);const n=null!==(r=t.args)&&void 0!==r?r:{};h(n)&&!Array.isArray(n)||l(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=qe(n)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:We(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}const Tr=new _r({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[D.FIELD,D.FRAGMENT_SPREAD,D.INLINE_FRAGMENT],args:{if:{type:new ke(fr),description:"Included when true."}}}),Sr=new _r({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[D.FIELD,D.FRAGMENT_SPREAD,D.INLINE_FRAGMENT],args:{if:{type:new ke(fr),description:"Skipped when true."}}}),xr="No longer supported",Ir=new _r({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[D.FIELD_DEFINITION,D.ARGUMENT_DEFINITION,D.INPUT_FIELD_DEFINITION,D.ENUM_VALUE],args:{reason:{type:dr,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:xr}}}),Pr=new _r({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[D.SCALAR],args:{url:{type:new ke(dr),description:"The URL that specifies the behavior of this scalar."}}}),Or=Object.freeze([Tr,Sr,Ir,Pr]);function Ar(t){return Or.some((({name:e})=>e===t.name))}function kr(t){return"object"==typeof t&&"function"==typeof(null==t?void 0:t[Symbol.iterator])}function Cr(t,e){if(ye(e)){const r=Cr(t,e.ofType);return(null==r?void 0:r.kind)===M.NULL?null:r}if(null===t)return{kind:M.NULL};if(void 0===t)return null;if(me(e)){const r=e.ofType;if(kr(t)){const e=[];for(const n of t){const t=Cr(n,r);null!=t&&e.push(t)}return{kind:M.LIST,values:e}}return Cr(t,r)}
2if(de(e)){if(!h(t))return null;const r=[];for(const n of Object.values(e.getFields())){const e=Cr(t[n.name],n.type);e&&r.push({kind:M.OBJECT_FIELD,name:{kind:M.NAME,value:n.name},value:e})}return{kind:M.OBJECT,fields:r}}if(Te(e)){const r=e.serialize(t);if(null==r)return null;if("boolean"==typeof r)return{kind:M.BOOLEAN,value:r};if("number"==typeof r&&Number.isFinite(r)){const t=String(r);return Dr.test(t)?{kind:M.INT,value:t}:{kind:M.FLOAT,value:t}}if("string"==typeof r)return ue(e)?{kind:M.ENUM,value:r}:e===mr&&Dr.test(r)?{kind:M.INT,value:r}:{kind:M.STRING,value:r};throw new TypeError(`Cannot convert value to AST: ${pt(r)}.`)}d(!1,"Unexpected input type: "+pt(e))}const Dr=/^-?(?:0|[1-9][0-9]*)$/,Mr=new Ge({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:dr,resolve:t=>t.description},types:{description:"A list of all types supported by this server.",type:new ke(new Ae(new ke(Fr))),resolve:t=>Object.values(t.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new ke(Fr),resolve:t=>t.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Fr,resolve:t=>t.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Fr,resolve:t=>t.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new ke(new Ae(new ke(Nr))),resolve:t=>t.getDirectives()}})}
2),Nr=new Ge({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new ke(dr),resolve:t=>t.name},description:{type:dr,resolve:t=>t.description},isRepeatable:{type:new ke(fr),resolve:t=>t.isRepeatable},locations:{type:new ke(new Ae(new ke(Rr))),resolve:t=>t.locations},args:{type:new ke(new Ae(new ke(Lr))),args:{includeDeprecated:{type:fr,defaultValue:!1}},resolve:(t,{includeDeprecated:e})=>e?t.args:t.args.filter((t=>null==t.deprecationReason))}})}),Rr=new Ze({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:D.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:D.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:D.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:D.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:D.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:D.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:D.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:D.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:D.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:D.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:D.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:D.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:D.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:D.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:D.UNION,description:"Location adjacent to a union definition."},ENUM:{value:D.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:D.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:D.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:D.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),Fr=new Ge({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new ke(zr),resolve:t=>ne(t)?Vr.SCALAR:ae(t)?Vr.OBJECT:oe(t)?Vr.INTERFACE:ce(t)?Vr.UNION:ue(t)?Vr.ENUM:de(t)?Vr.INPUT_OBJECT:me(t)?Vr.LIST:ye(t)?Vr.NON_NULL:void d(!1,`Unexpected type: "${pt(t)}".`)},name:{type:dr,resolve:t=>"name"in t?t.name:void 0},description:{type:dr,resolve:t=>"description"in t?t.description:void 0},specifiedByURL:{type:dr,resolve:t=>"specifiedByURL"in t?t.specifiedByURL:void 0},fields:{type:new Ae(new ke(jr)),args:{includeDeprecated:{type:fr,defaultValue:!1}},resolve(t,{includeDeprecated:e}){if(ae(t)||oe(t)){const r=Object.values(t.getFields());return e?r:r.filter((t=>null==t.deprecationReason))}}},interfaces:{type:new Ae(new ke(Fr)),resolve(t){if(ae(t)||oe(t))return t.getInterfaces()}},possibleTypes:{type:new Ae(new ke(Fr)),resolve(t,e,r,{schema:n}){if(Pe(t))return n.getPossibleTypes(t)}},enumValues:{type:new Ae(new ke(Br)),args:{includeDeprecated:{type:fr,defaultValue:!1}},resolve(t,{includeDeprecated:e}){if(ue(t)){const r=t.getValues();return e?r:r.filter((t=>null==t.deprecationReason))}}},inputFields:{type:new Ae(new ke(Lr)),args:{includeDeprecated:{type:fr,defaultValue:!1}},resolve(t,{includeDeprecated:e}){if(de(t)){const r=Object.values(t.getFields());return e?r:r.filter((t=>null==t.deprecationReason))}}},ofType:{type:Fr,resolve:t=>
2"ofType"in t?t.ofType:void 0}})}),jr=new Ge({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new ke(dr),resolve:t=>t.name},description:{type:dr,resolve:t=>t.description},args:{type:new ke(new Ae(new ke(Lr))),args:{includeDeprecated:{type:fr,defaultValue:!1}},resolve:(t,{includeDeprecated:e})=>e?t.args:t.args.filter((t=>null==t.deprecationReason))},type:{type:new ke(Fr),resolve:t=>t.type},isDeprecated:{type:new ke(fr),resolve:t=>null!=t.deprecationReason},deprecationReason:{type:dr,resolve:t=>t.deprecationReason}})}),Lr=new Ge({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new ke(dr),resolve:t=>t.name},description:{type:dr,resolve:t=>t.description},type:{type:new ke(Fr),resolve:t=>t.type},defaultValue:{type:dr,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(t){const{type:e,defaultValue:r}=t,n=Cr(r,e);return n?qt(n):null}},isDeprecated:{type:new ke(fr),resolve:t=>null!=t.deprecationReason},deprecationReason:{type:dr,resolve:t=>t.deprecationReason}})}),Br=new Ge({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new ke(dr),resolve:t=>t.name},description:{type:dr,resolve:t=>t.description},isDeprecated:{type:new ke(fr),resolve:t=>null!=t.deprecationReason},deprecationReason:{type:dr,resolve:t=>t.deprecationReason}})});var Vr;!function(t){t.SCALAR="SCALAR",t.OBJECT="OBJECT",t.INTERFACE="INTERFACE",t.UNION="UNION",t.ENUM="ENUM",t.INPUT_OBJECT="INPUT_OBJECT",t.LIST="LIST",t.NON_NULL="NON_NULL"}(Vr||(Vr={}));const zr=new Ze({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:Vr.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:Vr.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:Vr.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:Vr.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:Vr.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:Vr.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:Vr.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:Vr.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),Gr={name:"__schema",type:new ke(Mr),description:"Access the current type schema of this server.",args:[],resolve:(t,e,r,{schema:n})=>n,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Ur={name:"__type",type:Fr,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new ke(dr),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(t,{name:e},r,{schema:n})=>n.getType(e),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},$r={name:"__typename",type:new ke(dr),description:"The name of the current Object type at runtime.",args:[],resolve:(t,e,r,{parentType:n})=>n.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},qr=Object.freeze([Mr,Nr,Rr,Fr,jr,Lr,Br,zr]);function Hr(t){return qr.some((({name:e})=>t.name===e))}function Yr(t){return mt(t,Kr)}function Wr(t){if(!Yr(t))throw new Error(`Expected ${pt(t)} to be a GraphQL schema.`);return t}class Kr{constructor(t){var e,r;this.__validationErrors=!0===t.assumeValid?[]:void 0,h(t)||l(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||l(!1,`"types" must be Array if provided but got: ${pt(t.types)}.`),!t.directives||Array.isArray(t.directives)||l(!1,`"directives" must be Array if provided but got: ${pt(t.directives)}.`),this.description=t.description,this.extensions=Ft(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=null!==(e=t.extensionASTNodes)&&void 0!==e?e:[],this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=null!==(r=t.directives)&&void 0!==r?r:Or;const n=new Set(t.types);if(null!=t.types)for(const e of t.types)n.delete(e),Qr(e,n);null!=this._queryType&&Qr(this._queryType,n),null!=this._mutationType&&Qr(this._mutationType,n),null!=this._subscriptionType&&Qr(this._subscriptionType,n);for(const t of this._directives)if(wr(t))for(const e of t.args)Qr(e.type,n);Qr(Mr,n),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const t of n){if(null==t)continue;const e=t.name;if(e||l(!1,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[e])throw new Error(`Schema must contain uniquely named types but contains multiple types named "${e}".`);if(this._typeMap[e]=t,oe(t)){for(const e of t.getInterfaces())if(oe(e)){let r=this._implementationsMap[e.name];void 0===r&&(r=this._implementationsMap[e.name]={objects:[],interfaces:[]}),r.interfaces.push(t)}}else if(ae(t))for(const e of t.getInterfaces())if(oe(e)){let r=this._implementationsMap[e.name];void 0===r&&(r=this._implementationsMap[e.name]={objects:[],interfaces:[]}),r.objects.push(t)}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(t){switch(t){case C.QUERY:return this.getQueryType();case C.MUTATION:return this.getMutationType();
2case C.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return ce(t)?t.getTypes():this.getImplementations(t).objects}getImplementations(t){const e=this._implementationsMap[t.name];return null!=e?e:{objects:[],interfaces:[]}}isSubType(t,e){let map=this._subTypeMap[t.name];if(void 0===map){if(map=Object.create(null),ce(t))for(const e of t.getTypes())map[e.name]=!0;else{const e=this.getImplementations(t);for(const t of e.objects)map[t.name]=!0;for(const t of e.interfaces)map[t.name]=!0}this._subTypeMap[t.name]=map}return void 0!==map[e.name]}getDirectives(){return this._directives}getDirective(t){return this.getDirectives().find((e=>e.name===t))}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:void 0!==this.__validationErrors}}}function Qr(t,e){const r=Le(t);if(!e.has(r))if(e.add(r),ce(r))for(const t of r.getTypes())Qr(t,e);else if(ae(r)||oe(r)){for(const t of r.getInterfaces())Qr(t,e);for(const t of Object.values(r.getFields())){Qr(t.type,e);for(const r of t.args)Qr(r.type,e)}}else if(de(r))for(const t of Object.values(r.getFields()))Qr(t.type,e);return e}function Jr(t){if(Wr(t),t.__validationErrors)return t.__validationErrors;const e=new Zr(t);!function(t){const e=t.schema,r=e.getQueryType();if(r){if(!ae(r)){var n;t.reportError(`Query root type must be Object type, it cannot be ${pt(r)}.`,null!==(n=tn(e,C.QUERY))&&void 0!==n?n:r.astNode)}}else t.reportError("Query root type must be provided.",e.astNode);const o=e.getMutationType();var l;o&&!ae(o)&&t.reportError(`Mutation root type must be Object type if provided, it cannot be ${pt(o)}.`,null!==(l=tn(e,C.MUTATION))&&void 0!==l?l:o.astNode);const c=e.getSubscriptionType();var h;c&&!ae(c)&&t.reportError(`Subscription root type must be Object type if provided, it cannot be ${pt(c)}.`,null!==(h=tn(e,C.SUBSCRIPTION))&&void 0!==h?h:c.astNode)}(e),function(t){for(const r of t.schema.getDirectives())if(wr(r)){en(t,r);for(const n of r.args){var e;if(en(t,n),be(n.type)||t.reportError(`The type of @${r.name}(${n.name}:) must be Input Type but got: ${pt(n.type)}.`,n.astNode),Ke(n)&&null!=n.deprecationReason)t.reportError(`Required argument @${r.name}(${n.name}:) cannot be deprecated.`,[pn(n.astNode),null===(e=n.astNode)||void 0===e?void 0:e.type])}}else t.reportError(`Expected directive but got: ${pt(r)}.`,null==r?void 0:r.astNode)}(e),function(t){const e=function(t){const e=Object.create(null),r=[],n=Object.create(null);return o;function o(l){if(e[l.name])return;e[l.name]=!0,n[l.name]=r.length;const c=Object.values(l.getFields());for(const e of c)if(ye(e.type)&&de(e.type.ofType)){const l=e.type.ofType,c=n[l.name];if(r.push(e),void 0===c)o(l);else{const e=r.slice(c),n=e.map((t=>t.name)).join(".");t.reportError(`Cannot reference Input Object "${l.name}" within itself through a series of non-null fields: "${n}".`,e.map((t=>t.astNode)))}r.pop()}n[l.name]=void 0}}(t),r=t.schema.getTypeMap();for(const n of Object.values(r))Fe(n)?(Hr(n)||en(t,n),ae(n)||oe(n)?(rn(t,n),nn(t,n)):ce(n)?on(t,n):ue(n)?ln(t,n):de(n)&&(cn(t,n),e(n))):t.reportError(`Expected GraphQL named type but got: ${pt(n)}.`,n.astNode)}(e);const r=e.getErrors();return t.__validationErrors=r,r}function Xr(t){const e=Jr(t);if(0!==e.length)throw new Error(e.map((t=>t.message)).join("\n\n"))}class Zr{constructor(t){this._errors=[],this.schema=t}reportError(t,e){const r=Array.isArray(e)?e.filter(Boolean):e;this._errors.push(new E(t,{nodes:r}))}getErrors(){return this._errors}}function tn(t,e){var r;return null===(r=[t.astNode,...t.extensionASTNodes].flatMap((t=>{var e;return null!==(e=null==t?void 0:t.operationTypes)&&void 0!==e?e:[]})).find((t=>t.operation===e)))||void 0===r?void 0:r.type}function en(t,e){e.name.startsWith("__")&&t.reportError(`Name "${e.name}" must not begin with "__", which is reserved by GraphQL introspection.`,e.astNode)}function rn(t,e){const r=Object.values(e.getFields());0===r.length&&t.reportError(`Type ${e.name} must define one or more fields.`,[e.astNode,...e.extensionASTNodes]);for(const c of r){var n;if(en(t,c),!Ee(c.type))t.reportError(`The type of ${e.name}.${c.name} must be Output Type but got: ${pt(c.type)}.`,null===(n=c.astNode)||void 0===n?void 0:n.type);for(const r of c.args){const n=r.name;var o,l;if(en(t,r),!be(r.type))t.reportError(`The type of ${e.name}.${c.name}(${n}:) must be Input Type but got: ${pt(r.type)}.`,null===(o=r.astNode)||void 0===o?void 0:o.type);if(Ke(r)&&null!=r.deprecationReason)t.reportError(`Required argument ${e.name}.${c.name}(${n}:) cannot be deprecated.`,[pn(r.astNode),null===(l=r.astNode)||void 0===l?void 0:l.type])}}}function nn(t,e){const r=Object.create(null);for(const n of e.getInterfaces())oe(n)?e!==n?r[n.name]?t.reportError(`Type ${e.name} can only implement ${n.name} once.`,hn(e,n)):(r[n.name]=!0,sn(t,e,n),an(t,e,n)):t.reportError(`Type ${e.name} cannot implement itself because it would create a circular reference.`,hn(e,n)):t.reportError(`Type ${pt(e)} must only implement Interface types, it cannot implement ${pt(n)}.`,hn(e,n))}function an(t,e,r){const n=e.getFields();for(const d of Object.values(r.getFields())){const f=d.name,m=n[f];if(m){var o,l;if(!sr(t.schema,m.type,d.type))t.reportError(`Interface field ${r.name}.${f} expects type ${pt(d.type)} but ${e.name}.${f} is type ${pt(m.type)}.`,[null===(o=d.astNode)||void 0===o?void 0:o.type,null===(l=m.astNode)||void 0===l?void 0:l.type]);for(const n of d.args){const o=n.name,l=m.args.find((t=>t.name===o));var c,h;if(l){if(!ar(n.type,l.type))t.reportError(`Interface field argument ${r.name}.${f}(${o}:) expects type ${pt(n.type)} but ${e.name}.${f}(${o}:) is type ${pt(l.type)}.`,[null===(c=n.astNode)||void 0===c?void 0:c.type,null===(h=l.astNode)||void 0===h?void 0:h.type])}else t.reportError(`Interface field argument ${r.name}.${f}(${o}:) expected but ${e.name}.${f} does not provide it.`,[n.astNode,m.astNode])}for(const n of m.args){const o=n.name;!d.args.find((t=>t.name===o))&&Ke(n)&&t.reportError(`Object field ${e.name}.${f} includes required argument ${o} that is missing from the Interface field ${r.name}.${f}.`,[n.astNode,d.astNode])}}else t.reportError(`Interface field ${r.name}.${f} expected but ${e.name} does not provide it.`,[d.astNode,e.astNode,...e.extensionASTNodes])}}function sn(t,e,r){const n=e.getInterfaces();for(const o of r.getInterfaces())n.includes(o)||t.reportError(o===e?`Type ${e.name} cannot implement ${r.name} because it would create a circular reference.`:`Type ${e.name} must implement ${o.name} because it is implemented by ${r.name}.`,[...hn(r,o),...hn(e,r)])}function on(t,e){const r=e.getTypes();0===r.length&&t.reportError(`Union type ${e.name} must define one or more member types.`,[e.astNode,...e.extensionASTNodes]);const n=Object.create(null);for(const o of r)n[o.name]?t.reportError(`Union type ${e.name} can only include type ${o.name} once.`,un(e,o.name)):(n[o.name]=!0,ae(o)||t.reportError(`Union type ${e.name} can only include Object types, it cannot include ${pt(o)}.`,un(e,String(o))))}function ln(t,e){const r=e.getValues();0===r.length&&t.reportError(`Enum type ${e.name} must define one or more values.`,[e.astNode,...e.extensionASTNodes]);for(const e of r)en(t,e)}function cn(t,e){const r=Object.values(e.getFields());0===r.length&&t.reportError(`Input Object type ${e.name} must define one or more fields.`,[e.astNode,...e.extensionASTNodes]);for(const l of r){var n,o;if(en(t,l),!be(l.type))t.reportError(`The type of ${e.name}.${l.name} must be Input Type but got: ${pt(l.type)}.`,null===(n=l.astNode)||void 0===n?void 0:n.type);if(ir(l)&&null!=l.deprecationReason)t.reportError(`Required input field ${e.name}.${l.name} cannot be deprecated.`,[pn(l.astNode),null===(o=l.astNode)||void 0===o?void 0:o.type])}}function hn(t,e){const{astNode:r,extensionASTNodes:n}=t;return(null!=r?[r,...n]:n).flatMap((t=>{var e;return null!==(e=t.interfaces)&&void 0!==e?e:[]})).filter((t=>t.name.value===e.name))}function un(t,e){const{astNode:r,extensionASTNodes:n}=t;return(null!=r?[r,...n]:n).flatMap((t=>{var e;return null!==(e=t.types)&&void 0!==e?e:[]})).filter((t=>t.name.value===e))}function pn(t){var e;return null==t||null===(e=t.directives)||void 0===e?void 0:e.find((t=>t.name.value===Ir.name))}function dn(t,e){switch(e.kind){case M.LIST_TYPE:{const r=dn(t,e.type);return r&&new Ae(r)}case M.NON_NULL_TYPE:{const r=dn(t,e.type);return r&&new ke(r)}case M.NAMED_TYPE:return t.getType(e.name.value)}}class fn{constructor(t,e,r){this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!=r?r:mn,e&&(be(e)&&this._inputTypeStack.push(e),xe(e)&&this._parentTypeStack.push(e),Ee(e)&&this._typeStack.push(e))}get[Symbol.toStringTag](){return"TypeInfo"}
2getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(t){const e=this._schema;switch(t.kind){case M.SELECTION_SET:{const t=Le(this.getType());this._parentTypeStack.push(xe(t)?t:void 0);break}case M.FIELD:{const r=this.getParentType();let n,o;r&&(n=this._getFieldDef(e,r,t),n&&(o=n.type)),this._fieldDefStack.push(n),this._typeStack.push(Ee(o)?o:void 0);break}case M.DIRECTIVE:this._directive=e.getDirective(t.name.value);break;case M.OPERATION_DEFINITION:{const r=e.getRootType(t.operation);this._typeStack.push(ae(r)?r:void 0);break}case M.INLINE_FRAGMENT:case M.FRAGMENT_DEFINITION:{const r=t.typeCondition,n=r?dn(e,r):Le(this.getType());this._typeStack.push(Ee(n)?n:void 0);break}case M.VARIABLE_DEFINITION:{const r=dn(e,t.type);this._inputTypeStack.push(be(r)?r:void 0);break}case M.ARGUMENT:{var r;let e,n;const o=null!==(r=this.getDirective())&&void 0!==r?r:this.getFieldDef();o&&(e=o.args.find((e=>e.name===t.name.value)),e&&(n=e.type)),this._argument=e,this._defaultValueStack.push(e?e.defaultValue:void 0),this._inputTypeStack.push(be(n)?n:void 0);break}case M.LIST:{const t=Re(this.getInputType()),e=me(t)?t.ofType:t;this._defaultValueStack.push(void 0),this._inputTypeStack.push(be(e)?e:void 0);break}case M.OBJECT_FIELD:{const e=Le(this.getInputType());let r,n;de(e)&&(n=e.getFields()[t.name.value],n&&(r=n.type)),this._defaultValueStack.push(n?n.defaultValue:void 0),this._inputTypeStack.push(be(r)?r:void 0);break}case M.ENUM:{const e=Le(this.getInputType());let r;ue(e)&&(r=e.getValue(t.value)),this._enumValue=r;break}}}leave(t){switch(t.kind){case M.SELECTION_SET:this._parentTypeStack.pop();break;case M.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case M.DIRECTIVE:this._directive=null;break;case M.OPERATION_DEFINITION:case M.INLINE_FRAGMENT:case M.FRAGMENT_DEFINITION:this._typeStack.pop();break;case M.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case M.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case M.LIST:case M.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case M.ENUM:this._enumValue=null}}}function mn(t,e,r){const n=r.name.value;return n===Gr.name&&t.getQueryType()===e?Gr:n===Ur.name&&t.getQueryType()===e?Ur:n===$r.name&&xe(e)?$r:ae(e)||oe(e)?e.getFields()[n]:void 0}function gn(t,e){return{enter(...r){const n=r[0];t.enter(n);const o=Ut(e,n.kind).enter;if(o){const l=o.apply(e,r);return void 0!==l&&(t.leave(n),k(l)&&t.enter(l)),l}},leave(...r){const n=r[0],o=Ut(e,n.kind).leave;let l;return o&&(l=o.apply(e,r)),t.leave(n),l}}}function yn(t){return vn(t)||Tn(t)||xn(t)}function vn(t){return t.kind===M.OPERATION_DEFINITION||t.kind===M.FRAGMENT_DEFINITION}function bn(t){return t.kind===M.FIELD||t.kind===M.FRAGMENT_SPREAD||t.kind===M.INLINE_FRAGMENT}function wn(t){return t.kind===M.VARIABLE||t.kind===M.INT||t.kind===M.FLOAT||t.kind===M.STRING||t.kind===M.BOOLEAN||t.kind===M.NULL||t.kind===M.ENUM||t.kind===M.LIST||t.kind===M.OBJECT}function En(t){return wn(t)&&(t.kind===M.LIST?t.values.some(En):t.kind===M.OBJECT?t.fields.some((t=>En(t.value))):t.kind!==M.VARIABLE)}function _n(t){return t.kind===M.NAMED_TYPE||t.kind===M.LIST_TYPE||t.kind===M.NON_NULL_TYPE}function Tn(t){return t.kind===M.SCHEMA_DEFINITION||Sn(t)||t.kind===M.DIRECTIVE_DEFINITION}function Sn(t){return t.kind===M.SCALAR_TYPE_DEFINITION||t.kind===M.OBJECT_TYPE_DEFINITION||t.kind===M.INTERFACE_TYPE_DEFINITION||t.kind===M.UNION_TYPE_DEFINITION||t.kind===M.ENUM_TYPE_DEFINITION||t.kind===M.INPUT_OBJECT_TYPE_DEFINITION}function xn(t){return t.kind===M.SCHEMA_EXTENSION||In(t)}function In(t){return t.kind===M.SCALAR_TYPE_EXTENSION||t.kind===M.OBJECT_TYPE_EXTENSION||t.kind===M.INTERFACE_TYPE_EXTENSION||t.kind===M.UNION_TYPE_EXTENSION||t.kind===M.ENUM_TYPE_EXTENSION||t.kind===M.INPUT_OBJECT_TYPE_EXTENSION}function Pn(t){return{Document(e){for(const r of e.definitions)if(!vn(r)){const e=r.kind===M.SCHEMA_DEFINITION||r.kind===M.SCHEMA_EXTENSION?"schema":'"'+r.name.value+'"';t.reportError(new E(`The ${e} definition is not executable.`,{nodes:r}))}return!1}}}function On(t){return{Field(e){const r=t.getParentType();if(r){if(!t.getFieldDef()){const n=t.getSchema(),o=e.name.value;let l=xt("to use an inline fragment on",function(t,e,r){if(!Pe(e))return[];const n=new Set,o=Object.create(null);for(const c of t.getPossibleTypes(e))if(c.getFields()[r]){n.add(c),o[c.name]=1;for(const t of c.getInterfaces()){var l;t.getFields()[r]&&(n.add(t),o[t.name]=(null!==(l=o[t.name])&&void 0!==l?l:0)+1)}}return[...n].sort(((e,r)=>{const n=o[r.name]-o[e.name];return 0!==n?n:oe(e)&&t.isSubType(e,r)?-1:oe(r)&&t.isSubType(r,e)?1:kt(e.name,r.name)}
2)).map((t=>t.name))}(n,r,o));""===l&&(l=xt(function(t,e){if(ae(t)||oe(t)){return Mt(e,Object.keys(t.getFields()))}return[]}(r,o))),t.reportError(new E(`Cannot query field "${o}" on type "${r.name}".`+l,{nodes:e}))}}}}}function An(t){return{InlineFragment(e){const r=e.typeCondition;if(r){const e=dn(t.getSchema(),r);if(e&&!xe(e)){const e=qt(r);t.reportError(new E(`Fragment cannot condition on non composite type "${e}".`,{nodes:r}))}}},FragmentDefinition(e){const r=dn(t.getSchema(),e.typeCondition);if(r&&!xe(r)){const r=qt(e.typeCondition);t.reportError(new E(`Fragment "${e.name.value}" cannot condition on non composite type "${r}".`,{nodes:e.typeCondition}))}}}}function kn(t){return{...Cn(t),Argument(e){const r=t.getArgument(),n=t.getFieldDef(),o=t.getParentType();if(!r&&n&&o){const r=e.name.value,l=Mt(r,n.args.map((t=>t.name)));t.reportError(new E(`Unknown argument "${r}" on field "${o.name}.${n.name}".`+xt(l),{nodes:e}))}}}}function Cn(t){const e=Object.create(null),r=t.getSchema(),n=r?r.getDirectives():Or;for(const t of n)e[t.name]=t.args.map((t=>t.name));const o=t.getDocument().definitions;for(const t of o)if(t.kind===M.DIRECTIVE_DEFINITION){var l;const r=null!==(l=t.arguments)&&void 0!==l?l:[];e[t.name.value]=r.map((t=>t.name.value))}return{Directive(r){const n=r.name.value,o=e[n];if(r.arguments&&o)for(const e of r.arguments){const r=e.name.value;if(!o.includes(r)){const l=Mt(r,o);t.reportError(new E(`Unknown argument "${r}" on directive "@${n}".`+xt(l),{nodes:e}))}}return!1}}}function Dn(t){const e=Object.create(null),r=t.getSchema(),n=r?r.getDirectives():Or;for(const t of n)e[t.name]=t.locations;const o=t.getDocument().definitions;for(const t of o)t.kind===M.DIRECTIVE_DEFINITION&&(e[t.name.value]=t.locations.map((t=>t.value)));return{Directive(r,n,o,l,c){const h=r.name.value,f=e[h];if(!f)return void t.reportError(new E(`Unknown directive "@${h}".`,{nodes:r}));const m=function(t){const e=t[t.length-1];switch("kind"in e||d(!1),e.kind){case M.OPERATION_DEFINITION:return function(t){switch(t){case C.QUERY:return D.QUERY;case C.MUTATION:return D.MUTATION;case C.SUBSCRIPTION:return D.SUBSCRIPTION}}(e.operation);case M.FIELD:return D.FIELD;case M.FRAGMENT_SPREAD:return D.FRAGMENT_SPREAD;case M.INLINE_FRAGMENT:return D.INLINE_FRAGMENT;case M.FRAGMENT_DEFINITION:return D.FRAGMENT_DEFINITION;case M.VARIABLE_DEFINITION:return D.VARIABLE_DEFINITION;case M.SCHEMA_DEFINITION:case M.SCHEMA_EXTENSION:return D.SCHEMA;case M.SCALAR_TYPE_DEFINITION:case M.SCALAR_TYPE_EXTENSION:return D.SCALAR;case M.OBJECT_TYPE_DEFINITION:case M.OBJECT_TYPE_EXTENSION:return D.OBJECT;case M.FIELD_DEFINITION:return D.FIELD_DEFINITION;case M.INTERFACE_TYPE_DEFINITION:case M.INTERFACE_TYPE_EXTENSION:return D.INTERFACE;case M.UNION_TYPE_DEFINITION:case M.UNION_TYPE_EXTENSION:return D.UNION;case M.ENUM_TYPE_DEFINITION:case M.ENUM_TYPE_EXTENSION:return D.ENUM;case M.ENUM_VALUE_DEFINITION:return D.ENUM_VALUE;case M.INPUT_OBJECT_TYPE_DEFINITION:case M.INPUT_OBJECT_TYPE_EXTENSION:return D.INPUT_OBJECT;case M.INPUT_VALUE_DEFINITION:{const e=t[t.length-3];return"kind"in e||d(!1),e.kind===M.INPUT_OBJECT_TYPE_DEFINITION?D.INPUT_FIELD_DEFINITION:D.ARGUMENT_DEFINITION}default:d(!1,"Unexpected kind: "+pt(e.kind))}}(c);m&&!f.includes(m)&&t.reportError(new E(`Directive "@${h}" may not be used on ${m}.`,{nodes:r}))}}}function Mn(t){return{FragmentSpread(e){const r=e.name.value;t.getFragment(r)||t.reportError(new E(`Unknown fragment "${r}".`,{nodes:e.name}))}}}function Nn(t){const e=t.getSchema(),r=e?e.getTypeMap():Object.create(null),n=Object.create(null);for(const e of t.getDocument().definitions)Sn(e)&&(n[e.name.value]=!0);const o=[...Object.keys(r),...Object.keys(n)];return{NamedType(e,l,c,h,d){const f=e.name.value;if(!r[f]&&!n[f]){var m;const r=null!==(m=d[2])&&void 0!==m?m:c,n=null!=r&&("kind"in(y=r)&&(Tn(y)||xn(y)));if(n&&Rn.includes(f))return;const l=Mt(f,n?Rn.concat(o):o);t.reportError(new E(`Unknown type "${f}".`+xt(l),{nodes:e}))}var y}}}const Rn=[...gr,...qr].map((t=>t.name));function Fn(t){let e=0;return{Document(t){e=t.definitions.filter((t=>t.kind===M.OPERATION_DEFINITION)).length},OperationDefinition(r){!r.name&&e>1&&t.reportError(new E("This anonymous operation must be the only defined operation.",{nodes:r}))}}}function jn(t){var e,r,n;const o=t.getSchema(),l=null!==(e=null!==(r=null!==(n=null==o?void 0:o.astNode)&&void 0!==n?n:null==o?void 0:o.getQueryType())&&void 0!==r?r:null==o?void 0:o.getMutationType())&&void 0!==e?e:null==o?void 0:o.getSubscriptionType();let c=0;return{SchemaDefinition(e){l?t.reportError(new E("Cannot define a new schema within a schema extension.",{nodes:e})):(c>0&&t.reportError(new E("Must provide only one schema definition.",{nodes:e})),++c)}}}function Ln(t){const e=Object.create(null),r=[],n=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:t=>(o(t),!1)};function o(l){if(e[l.name.value])return;const c=l.name.value;e[c]=!0;const h=t.getFragmentSpreads(l.selectionSet);if(0!==h.length){n[c]=r.length;for(const e of h){const l=e.name.value,c=n[l];if(r.push(e),void 0===c){const e=t.getFragment(l);e&&o(e)}else{const e=r.slice(c),n=e.slice(0,-1).map((s=>'"'+s.name.value+'"')).join(", ");t.reportError(new E(`Cannot spread fragment "${l}" within itself`+(""!==n?` via ${n}.`:"."),{nodes:e}))}r.pop()}n[c]=void 0}}}function Bn(t){let e=Object.create(null);return{OperationDefinition:{enter(){e=Object.create(null)},leave(r){const n=t.getRecursiveVariableUsages(r);for(const{node:o}of n){const n=o.name.value;!0!==e[n]&&t.reportError(new E(r.name?`Variable "$${n}" is not defined by operation "${r.name.value}".`:`Variable "$${n}" is not defined.`,{nodes:[o,r]}))}}},VariableDefinition(t){e[t.variable.name.value]=!0}}}function Vn(t){const e=[],r=[];return{OperationDefinition:t=>(e.push(t),!1),FragmentDefinition:t=>(r.push(t),!1),Document:{leave(){const n=Object.create(null);for(const r of e)for(const e of t.getRecursivelyReferencedFragments(r))n[e.name.value]=!0;for(const e of r){const r=e.name.value;!0!==n[r]&&t.reportError(new E(`Fragment "${r}" is never used.`,{nodes:e}))}}}}}function zn(t){let e=[];return{OperationDefinition:{enter(){e=[]},leave(r){const n=Object.create(null),o=t.getRecursiveVariableUsages(r);for(const{node:t}of o)n[t.name.value]=!0;for(const o of e){const e=o.variable.name.value;!0!==n[e]&&t.reportError(new E(r.name?`Variable "$${e}" is never used in operation "${r.name.value}".`:`Variable "$${e}" is never used.`,{nodes:o}))}}},VariableDefinition(t){e.push(t)}}}function Gn(t){switch(t.kind){case M.OBJECT:return{...t,fields:(e=t.fields,e.map((t=>({...t,value:Gn(t.value)}))).sort(((t,e)=>kt(t.name.value,e.name.value))))};case M.LIST:return{...t,values:t.values.map(Gn)};case M.INT:case M.FLOAT:case M.STRING:case M.BOOLEAN:case M.NULL:case M.ENUM:case M.VARIABLE:return t}var e}function Un(t){return Array.isArray(t)?t.map((([t,e])=>`subfields "${t}" conflict because `+Un(e))).join(" and "):t}function $n(t){const e=new ti,r=new Map;return{SelectionSet(n){const o=function(t,e,r,n,o){const l=[],[c,h]=Jn(t,e,n,o);if(function(t,e,r,n,o){for(const[l,c]of Object.entries(o))if(c.length>1)for(let i=0;i<c.length;i++)for(let o=i+1;o<c.length;o++){const h=Wn(t,r,n,!1,l,c[i],c[o]);h&&e.push(h)}}(t,l,e,r,c),0!==h.length)for(let i=0;i<h.length;i++){qn(t,l,e,r,!1,c,h[i]);for(let n=i+1;n<h.length;n++)Hn(t,l,e,r,!1,h[i],h[n])}return l}(t,r,e,t.getParentType(),n);for(const[[e,r],n,l]of o){const o=Un(r);t.reportError(new E(`Fields "${e}" conflict because ${o}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:n.concat(l)}))}}}}function qn(t,e,r,n,o,l,c){const h=t.getFragment(c);if(!h)return;const[d,f]=Xn(t,r,h);if(l!==d){Yn(t,e,r,n,o,l,d);for(const h of f)n.has(h,c,o)||(n.add(h,c,o),qn(t,e,r,n,o,l,h))}}function Hn(t,e,r,n,o,l,c){if(l===c)return;if(n.has(l,c,o))return;n.add(l,c,o);const h=t.getFragment(l),d=t.getFragment(c);if(!h||!d)return;const[f,m]=Xn(t,r,h),[y,v]=Xn(t,r,d);Yn(t,e,r,n,o,f,y);for(const c of v)Hn(t,e,r,n,o,l,c);for(const l of m)Hn(t,e,r,n,o,l,c)}function Yn(t,e,r,n,o,l,c){for(const[h,d]of Object.entries(l)){const l=c[h];if(l)for(const c of d)for(const d of l){const l=Wn(t,r,n,o,h,c,d);l&&e.push(l)}}}function Wn(t,e,r,n,o,l,c){const[h,d,f]=l,[m,y,v]=c,w=n||h!==m&&ae(h)&&ae(m);if(!w){const t=d.name.value,e=y.name.value;if(t!==e)return[[o,`"${t}" and "${e}" are different fields`],[d],[y]];if(Kn(d)!==Kn(y))return[[o,"they have differing arguments"],[d],[y]]}const E=null==f?void 0:f.type,_=null==v?void 0:v.type;if(E&&_&&Qn(E,_))return[[o,`they return conflicting types "${pt(E)}" and "${pt(_)}"`],[d],[y]];const T=d.selectionSet,S=y.selectionSet;if(T&&S){const n=function(t,e,r,n,o,l,c,h){const d=[],[f,m]=Jn(t,e,o,l),[y,v]=Jn(t,e,c,h);Yn(t,d,e,r,n,f,y);for(const o of v)qn(t,d,e,r,n,f,o);for(const o of m)qn(t,d,e,r,n,y,o);for(const o of m)for(const l of v)Hn(t,d,e,r,n,o,l);return d}(t,e,r,w,Le(E),T,Le(_),S);return function(t,e,r,n){if(t.length>0)return[[e,t.map((([t])=>t))],[r,...t.map((([,t])=>t)).flat()],[n,...t.map((([,,t])=>t)).flat()]]}(n,o,d,y)}}function Kn(t){var e;const r=null!==(e=t.arguments)&&void 0!==e?e:[];return qt(Gn({kind:M.OBJECT,fields:r.map((t=>({kind:M.OBJECT_FIELD,name:t.name,value:t.value})))}))}function Qn(t,e){return me(t)?!me(e)||Qn(t.ofType,e.ofType):!!me(e)||(ye(t)?!ye(e)||Qn(t.ofType,e.ofType):!!ye(e)||!(!Te(t)&&!Te(e))&&t!==e)}function Jn(t,e,r,n){const o=e.get(n);if(o)return o;const l=Object.create(null),c=Object.create(null);Zn(t,r,n,l,c);const h=[l,Object.keys(c)];return e.set(n,h),h}function Xn(t,e,r){const n=e.get(r.selectionSet);if(n)return n;const o=dn(t.getSchema(),r.typeCondition);return Jn(t,e,o,r.selectionSet)}function Zn(t,e,r,n,o){for(const l of r.selections)switch(l.kind){case M.FIELD:{const t=l.name.value;let r;(ae(e)||oe(e))&&(r=e.getFields()[t]);const o=l.alias?l.alias.value:t;n[o]||(n[o]=[]),n[o].push([e,l,r]);break}case M.FRAGMENT_SPREAD:o[l.name.value]=!0;break;case M.INLINE_FRAGMENT:{const r=l.typeCondition,c=r?dn(t.getSchema(),r):e;Zn(t,c,l.selectionSet,n,o);break}}}class ti{constructor(){this._data=new Map}has(a,b,t){var e;const[r,n]=a<b?[a,b]:[b,a],o=null===(e=this._data.get(r))||void 0===e?void 0:e.get(n);return void 0!==o&&(!!t||t===o)}add(a,b,t){const[e,r]=a<b?[a,b]:[b,a],map=this._data.get(e);void 0===map?this._data.set(e,new Map([[r,t]])):map.set(r,t)}}function ei(t){return{InlineFragment(e){const r=t.getType(),n=t.getParentType();if(xe(r)&&xe(n)&&!or(t.getSchema(),r,n)){const o=pt(n),l=pt(r);t.reportError(new E(`Fragment cannot be spread here as objects of type "${o}" can never be of type "${l}".`,{nodes:e}))}},FragmentSpread(e){const r=e.name.value,n=function(t,e){const r=t.getFragment(e);
2if(r){const e=dn(t.getSchema(),r.typeCondition);if(xe(e))return e}}(t,r),o=t.getParentType();if(n&&o&&!or(t.getSchema(),n,o)){const l=pt(o),c=pt(n);t.reportError(new E(`Fragment "${r}" cannot be spread here as objects of type "${l}" can never be of type "${c}".`,{nodes:e}))}}}}function ri(t){const e=t.getSchema(),r=Object.create(null);for(const e of t.getDocument().definitions)Sn(e)&&(r[e.name.value]=e);return{ScalarTypeExtension:n,ObjectTypeExtension:n,InterfaceTypeExtension:n,UnionTypeExtension:n,EnumTypeExtension:n,InputObjectTypeExtension:n};function n(n){const o=n.name.value,l=r[o],c=null==e?void 0:e.getType(o);let h;if(l?h=ni[l.kind]:c&&(h=function(t){if(ne(t))return M.SCALAR_TYPE_EXTENSION;if(ae(t))return M.OBJECT_TYPE_EXTENSION;if(oe(t))return M.INTERFACE_TYPE_EXTENSION;if(ce(t))return M.UNION_TYPE_EXTENSION;if(ue(t))return M.ENUM_TYPE_EXTENSION;if(de(t))return M.INPUT_OBJECT_TYPE_EXTENSION;d(!1,"Unexpected type: "+pt(t))}(c)),h){if(h!==n.kind){const e=function(t){switch(t){case M.SCALAR_TYPE_EXTENSION:return"scalar";case M.OBJECT_TYPE_EXTENSION:return"object";case M.INTERFACE_TYPE_EXTENSION:return"interface";case M.UNION_TYPE_EXTENSION:return"union";case M.ENUM_TYPE_EXTENSION:return"enum";case M.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:d(!1,"Unexpected kind: "+pt(t))}}(n.kind);t.reportError(new E(`Cannot extend non-${e} type "${o}".`,{nodes:l?[l,n]:n}))}}else{const l=Mt(o,Object.keys({...r,...null==e?void 0:e.getTypeMap()}));t.reportError(new E(`Cannot extend type "${o}" because it is not defined.`+xt(l),{nodes:n.name}))}}}const ni={[M.SCALAR_TYPE_DEFINITION]:M.SCALAR_TYPE_EXTENSION,[M.OBJECT_TYPE_DEFINITION]:M.OBJECT_TYPE_EXTENSION,[M.INTERFACE_TYPE_DEFINITION]:M.INTERFACE_TYPE_EXTENSION,[M.UNION_TYPE_DEFINITION]:M.UNION_TYPE_EXTENSION,[M.ENUM_TYPE_DEFINITION]:M.ENUM_TYPE_EXTENSION,[M.INPUT_OBJECT_TYPE_DEFINITION]:M.INPUT_OBJECT_TYPE_EXTENSION};function ii(t){return{...ai(t),Field:{leave(e){var r;const n=t.getFieldDef();if(!n)return!1;const o=new Set(null===(r=e.arguments)||void 0===r?void 0:r.map((t=>t.name.value)));for(const r of n.args)if(!o.has(r.name)&&Ke(r)){const o=pt(r.type);t.reportError(new E(`Field "${n.name}" argument "${r.name}" of type "${o}" is required, but it was not provided.`,{nodes:e}))}}}}}function ai(t){var e;const r=Object.create(null),n=t.getSchema(),o=null!==(e=null==n?void 0:n.getDirectives())&&void 0!==e?e:Or;for(const t of o)r[t.name]=Pt(t.args.filter(Ke),(t=>t.name));const l=t.getDocument().definitions;for(const t of l)if(t.kind===M.DIRECTIVE_DEFINITION){var c;const e=null!==(c=t.arguments)&&void 0!==c?c:[];r[t.name.value]=Pt(e.filter(si),(t=>t.name.value))}return{Directive:{leave(e){const n=e.name.value,o=r[n];if(o){var l;const r=null!==(l=e.arguments)&&void 0!==l?l:[],c=new Set(r.map((t=>t.name.value)));for(const[r,l]of Object.entries(o))if(!c.has(r)){const o=ee(l.type)?pt(l.type):qt(l.type);t.reportError(new E(`Directive "@${n}" argument "${r}" of type "${o}" is required, but it was not provided.`,{nodes:e}))}}}}}}function si(t){return t.type.kind===M.NON_NULL_TYPE&&null==t.defaultValue}function oi(t){return{Field(e){const r=t.getType(),n=e.selectionSet;if(r)if(Te(Le(r))){if(n){const o=e.name.value,l=pt(r);t.reportError(new E(`Field "${o}" must not have a selection since type "${l}" has no subfields.`,{nodes:n}))}}else if(!n){const n=e.name.value,o=pt(r);t.reportError(new E(`Field "${n}" of type "${o}" must have a selection of subfields. Did you mean "${n} { ... }"?`,{nodes:e}))}}}}function ci(path){return path.map((t=>"number"==typeof t?"["+t.toString()+"]":"."+t)).join("")}function hi(t,e,r){return{prev:t,key:e,typename:r}}function ui(path){const t=[];let e=path;for(;e;)t.push(e.key),e=e.prev;return t.reverse()}function pi(t,e,r=di){return fi(t,e,r,void 0)}function di(path,t,e){let r="Invalid value "+pt(t);throw path.length>0&&(r+=` at "value${ci(path)}"`),e.message=r+": "+e.message,e}function fi(t,e,r,path){if(ye(e))return null!=t?fi(t,e.ofType,r,path):void r(ui(path),t,new E(`Expected non-nullable type "${pt(e)}" not to be null.`));if(null==t)return null;if(me(e)){const n=e.ofType;return kr(t)?Array.from(t,((t,e)=>{const o=hi(path,e,void 0);return fi(t,n,r,o)})):[fi(t,n,r,path)]}
2if(de(e)){if(!h(t))return void r(ui(path),t,new E(`Expected type "${e.name}" to be an object.`));const n={},o=e.getFields();for(const l of Object.values(o)){const o=t[l.name];if(void 0!==o)n[l.name]=fi(o,l.type,r,hi(path,l.name,e.name));else if(void 0!==l.defaultValue)n[l.name]=l.defaultValue;else if(ye(l.type)){const e=pt(l.type);r(ui(path),t,new E(`Field "${l.name}" of required type "${e}" was not provided.`))}}for(const n of Object.keys(t))if(!o[n]){const o=Mt(n,Object.keys(e.getFields()));r(ui(path),t,new E(`Field "${n}" is not defined by type "${e.name}".`+xt(o)))}return n}if(Te(e)){let n;try{n=e.parseValue(t)}catch(n){return void r(ui(path),t,n instanceof E?n:new E(`Expected type "${e.name}". `+n.message,{originalError:n}))}return void 0===n&&r(ui(path),t,new E(`Expected type "${e.name}".`)),n}d(!1,"Unexpected input type: "+pt(e))}function mi(t,e,r){if(t){if(t.kind===M.VARIABLE){const n=t.name.value;if(null==r||void 0===r[n])return;const o=r[n];if(null===o&&ye(e))return;return o}if(ye(e)){if(t.kind===M.NULL)return;return mi(t,e.ofType,r)}if(t.kind===M.NULL)return null;if(me(e)){const n=e.ofType;if(t.kind===M.LIST){const e=[];for(const o of t.values)if(gi(o,r)){if(ye(n))return;e.push(null)}else{const t=mi(o,n,r);if(void 0===t)return;e.push(t)}return e}const o=mi(t,n,r);if(void 0===o)return;return[o]}if(de(e)){if(t.kind!==M.OBJECT)return;const n=Object.create(null),o=Pt(t.fields,(t=>t.name.value));for(const t of Object.values(e.getFields())){const e=o[t.name];if(!e||gi(e.value,r)){if(void 0!==t.defaultValue)n[t.name]=t.defaultValue;else if(ye(t.type))return;continue}const l=mi(e.value,t.type,r);if(void 0===l)return;n[t.name]=l}return n}if(Te(e)){let n;try{n=e.parseLiteral(t,r)}catch(t){return}if(void 0===n)return;return n}d(!1,"Unexpected input type: "+pt(e))}}function gi(t,e){return t.kind===M.VARIABLE&&(null==e||void 0===e[t.name.value])}function yi(t,e,r,n){const o=[],l=null==n?void 0:n.maxErrors;try{const n=function(t,e,r,n){const o={};for(const l of e){const e=l.variable.name.value,c=dn(t,l.type);if(!be(c)){const t=qt(l.type);n(new E(`Variable "$${e}" expected value of type "${t}" which cannot be used as an input type.`,{nodes:l.type}));continue}if(!wi(r,e)){if(l.defaultValue)o[e]=mi(l.defaultValue,c);else if(ye(c)){const t=pt(c);n(new E(`Variable "$${e}" of required type "${t}" was not provided.`,{nodes:l}))}continue}const h=r[e];if(null===h&&ye(c)){const t=pt(c);n(new E(`Variable "$${e}" of non-null type "${t}" must not be null.`,{nodes:l}))}else o[e]=pi(h,c,((path,t,r)=>{let o=`Variable "$${e}" got invalid value `+pt(t);path.length>0&&(o+=` at "${e}${ci(path)}"`),n(new E(o+"; "+r.message,{nodes:l,originalError:r.originalError}))}))}return o}(t,e,r,(t=>{if(null!=l&&o.length>=l)throw new E("Too many errors processing variables, error limit reached. Execution aborted.");o.push(t)}));if(0===o.length)return{coerced:n}}catch(t){o.push(t)}return{errors:o}}function vi(t,e,r){var n;const o={},l=Pt(null!==(n=e.arguments)&&void 0!==n?n:[],(t=>t.name.value));for(const n of t.args){const t=n.name,c=n.type,h=l[t];if(!h){if(void 0!==n.defaultValue)o[t]=n.defaultValue;else if(ye(c))throw new E(`Argument "${t}" of required type "${pt(c)}" was not provided.`,{nodes:e});continue}const d=h.value;let f=d.kind===M.NULL;if(d.kind===M.VARIABLE){const e=d.name.value;if(null==r||!wi(r,e)){if(void 0!==n.defaultValue)o[t]=n.defaultValue;else if(ye(c))throw new E(`Argument "${t}" of required type "${pt(c)}" was provided the variable "$${e}" which was not provided a runtime value.`,{nodes:d});continue}f=null==r[e]}if(f&&ye(c))throw new E(`Argument "${t}" of non-null type "${pt(c)}" must not be null.`,{nodes:d});const m=mi(d,c,r);if(void 0===m)throw new E(`Argument "${t}" has invalid value ${qt(d)}.`,{nodes:d});o[t]=m}return o}function bi(t,e,r){var n;const o=null===(n=e.directives)||void 0===n?void 0:n.find((e=>e.name.value===t.name));if(o)return vi(t,o,r)}function wi(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Ei(t,e,r,n,o){const l=new Map;return _i(t,e,r,n,o,l,new Set),l}function _i(t,e,r,n,o,l,c){for(const d of o.selections)switch(d.kind){case M.FIELD:{if(!Ti(r,d))continue;
2const t=(h=d).alias?h.alias.value:h.name.value,e=l.get(t);void 0!==e?e.push(d):l.set(t,[d]);break}case M.INLINE_FRAGMENT:if(!Ti(r,d)||!Si(t,d,n))continue;_i(t,e,r,n,d.selectionSet,l,c);break;case M.FRAGMENT_SPREAD:{const o=d.name.value;if(c.has(o)||!Ti(r,d))continue;c.add(o);const h=e[o];if(!h||!Si(t,h,n))continue;_i(t,e,r,n,h.selectionSet,l,c);break}}var h}function Ti(t,e){const r=bi(Sr,e,t);if(!0===(null==r?void 0:r.if))return!1;const n=bi(Tr,e,t);return!1!==(null==n?void 0:n.if)}function Si(t,e,r){const n=e.typeCondition;if(!n)return!0;const o=dn(t,n);return o===r||!!Pe(o)&&t.isSubType(o,r)}function xi(t){return{OperationDefinition(e){if("subscription"===e.operation){const r=t.getSchema(),n=r.getSubscriptionType();if(n){const o=e.name?e.name.value:null,l=Object.create(null),c=t.getDocument(),h=Object.create(null);for(const t of c.definitions)t.kind===M.FRAGMENT_DEFINITION&&(h[t.name.value]=t);const d=Ei(r,h,l,n,e.selectionSet);if(d.size>1){const e=[...d.values()].slice(1).flat();t.reportError(new E(null!=o?`Subscription "${o}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:e}))}for(const e of d.values()){e[0].name.value.startsWith("__")&&t.reportError(new E(null!=o?`Subscription "${o}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:e}))}}}}}}function Ii(t,e){const r=new Map;for(const n of t){const t=e(n),o=r.get(t);void 0===o?r.set(t,[n]):o.push(n)}return r}function Pi(t){return{DirectiveDefinition(t){var e;const n=null!==(e=t.arguments)&&void 0!==e?e:[];return r(`@${t.name.value}`,n)},InterfaceTypeDefinition:e,InterfaceTypeExtension:e,ObjectTypeDefinition:e,ObjectTypeExtension:e};function e(t){var e;const n=t.name.value,o=null!==(e=t.fields)&&void 0!==e?e:[];for(const t of o){var l;r(`${n}.${t.name.value}`,null!==(l=t.arguments)&&void 0!==l?l:[])}return!1}function r(e,r){const n=Ii(r,(t=>t.name.value));for(const[r,o]of n)o.length>1&&t.reportError(new E(`Argument "${e}(${r}:)" can only be defined once.`,{nodes:o.map((t=>t.name))}));return!1}}function Oi(t){return{Field:e,Directive:e};function e(e){var r;const n=Ii(null!==(r=e.arguments)&&void 0!==r?r:[],(t=>t.name.value));for(const[e,r]of n)r.length>1&&t.reportError(new E(`There can be only one argument named "${e}".`,{nodes:r.map((t=>t.name))}))}}function Ai(t){const e=Object.create(null),r=t.getSchema();return{DirectiveDefinition(n){const o=n.name.value;if(null==r||!r.getDirective(o))return e[o]?t.reportError(new E(`There can be only one directive named "@${o}".`,{nodes:[e[o],n.name]})):e[o]=n.name,!1;t.reportError(new E(`Directive "@${o}" already exists in the schema. It cannot be redefined.`,{nodes:n.name}))}}}function ki(t){const e=Object.create(null),r=t.getSchema(),n=r?r.getDirectives():Or;for(const t of n)e[t.name]=!t.isRepeatable;const o=t.getDocument().definitions;for(const t of o)t.kind===M.DIRECTIVE_DEFINITION&&(e[t.name.value]=!t.repeatable);const l=Object.create(null),c=Object.create(null);return{enter(r){if(!("directives"in r)||!r.directives)return;let n;if(r.kind===M.SCHEMA_DEFINITION||r.kind===M.SCHEMA_EXTENSION)n=l;else if(Sn(r)||In(r)){const t=r.name.value;n=c[t],void 0===n&&(c[t]=n=Object.create(null))}else n=Object.create(null);for(const o of r.directives){const r=o.name.value;e[r]&&(n[r]?t.reportError(new E(`The directive "@${r}" can only be used once at this location.`,{nodes:[n[r],o]})):n[r]=o)}}}}function Ci(t){const e=t.getSchema(),r=e?e.getTypeMap():Object.create(null),n=Object.create(null);return{EnumTypeDefinition:o,EnumTypeExtension:o};function o(e){var o;const l=e.name.value;n[l]||(n[l]=Object.create(null));const c=null!==(o=e.values)&&void 0!==o?o:[],h=n[l];for(const e of c){const n=e.name.value,o=r[l];ue(o)&&o.getValue(n)?t.reportError(new E(`Enum value "${l}.${n}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:e.name})):h[n]?t.reportError(new E(`Enum value "${l}.${n}" can only be defined once.`,{nodes:[h[n],e.name]})):h[n]=e.name}return!1}}function Di(t){const e=t.getSchema(),r=e?e.getTypeMap():Object.create(null),n=Object.create(null);return{InputObjectTypeDefinition:o,InputObjectTypeExtension:o,InterfaceTypeDefinition:o,InterfaceTypeExtension:o,ObjectTypeDefinition:o,ObjectTypeExtension:o};function o(e){var o;const l=e.name.value;n[l]||(n[l]=Object.create(null));const c=null!==(o=e.fields)&&void 0!==o?o:[],h=n[l];for(const e of c){const n=e.name.value;Mi(r[l],n)?t.reportError(new E(`Field "${l}.${n}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:e.name})):h[n]?t.reportError(new E(`Field "${l}.${n}" can only be defined once.`,{nodes:[h[n],e.name]})):h[n]=e.name}return!1}}function Mi(t,e){return!!(ae(t)||oe(t)||de(t))&&null!=t.getFields()[e]}function Ni(t){const e=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(r){const n=r.name.value;return e[n]?t.reportError(new E(`There can be only one fragment named "${n}".`,{nodes:[e[n],r.name]})):e[n]=r.name,!1}}}function Ri(t){const e=[];let r=Object.create(null);return{ObjectValue:{enter(){e.push(r),r=Object.create(null)},leave(){const t=e.pop();t||d(!1),r=t}},ObjectField(e){const n=e.name.value;r[n]?t.reportError(new E(`There can be only one input field named "${n}".`,{nodes:[r[n],e.name]})):r[n]=e.name}}}function Fi(t){const e=Object.create(null);return{OperationDefinition(r){const n=r.name;return n&&(e[n.value]?t.reportError(new E(`There can be only one operation named "${n.value}".`,{nodes:[e[n.value],n]})):e[n.value]=n),!1},FragmentDefinition:()=>!1}}function ji(t){const e=t.getSchema(),r=Object.create(null),n=e?{query:e.getQueryType(),mutation:e.getMutationType(),subscription:e.getSubscriptionType()}:{};return{SchemaDefinition:o,SchemaExtension:o};function o(e){var o;const l=null!==(o=e.operationTypes)&&void 0!==o?o:[];for(const e of l){const o=e.operation,l=r[o];n[o]?t.reportError(new E(`Type for ${o} already defined in the schema. It cannot be redefined.`,{nodes:e})):l?t.reportError(new E(`There can be only one ${o} type in schema.`,{nodes:[l,e]})):r[o]=e}return!1}}function Li(t){const e=Object.create(null),r=t.getSchema();return{ScalarTypeDefinition:n,ObjectTypeDefinition:n,InterfaceTypeDefinition:n,UnionTypeDefinition:n,EnumTypeDefinition:n,InputObjectTypeDefinition:n};function n(n){const o=n.name.value;if(null==r||!r.getType(o))return e[o]?t.reportError(new E(`There can be only one type named "${o}".`,{nodes:[e[o],n.name]})):e[o]=n.name,!1;t.reportError(new E(`Type "${o}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:n.name}))}}function Bi(t){return{OperationDefinition(e){var r;const n=Ii(null!==(r=e.variableDefinitions)&&void 0!==r?r:[],(t=>t.variable.name.value));for(const[e,r]of n)r.length>1&&t.reportError(new E(`There can be only one variable named "$${e}".`,{nodes:r.map((t=>t.variable.name))}))}}}function Vi(t){return{ListValue(e){if(!me(Re(t.getParentInputType())))return zi(t,e),!1}
2,ObjectValue(e){const r=Le(t.getInputType());if(!de(r))return zi(t,e),!1;const n=Pt(e.fields,(t=>t.name.value));for(const o of Object.values(r.getFields())){if(!n[o.name]&&ir(o)){const n=pt(o.type);t.reportError(new E(`Field "${r.name}.${o.name}" of required type "${n}" was not provided.`,{nodes:e}))}}},ObjectField(e){const r=Le(t.getParentInputType());if(!t.getInputType()&&de(r)){const n=Mt(e.name.value,Object.keys(r.getFields()));t.reportError(new E(`Field "${e.name.value}" is not defined by type "${r.name}".`+xt(n),{nodes:e}))}},NullValue(e){const r=t.getInputType();ye(r)&&t.reportError(new E(`Expected value of type "${pt(r)}", found ${qt(e)}.`,{nodes:e}))},EnumValue:e=>zi(t,e),IntValue:e=>zi(t,e),FloatValue:e=>zi(t,e),StringValue:e=>zi(t,e),BooleanValue:e=>zi(t,e)}}function zi(t,e){const r=t.getInputType();if(!r)return;const n=Le(r);if(Te(n))try{if(void 0===n.parseLiteral(e,void 0)){const n=pt(r);t.reportError(new E(`Expected value of type "${n}", found ${qt(e)}.`,{nodes:e}))}}catch(n){const o=pt(r);n instanceof E?t.reportError(n):t.reportError(new E(`Expected value of type "${o}", found ${qt(e)}; `+n.message,{nodes:e,originalError:n}))}else{const n=pt(r);t.reportError(new E(`Expected value of type "${n}", found ${qt(e)}.`,{nodes:e}))}}function Gi(t){return{VariableDefinition(e){const r=dn(t.getSchema(),e.type);if(void 0!==r&&!be(r)){const r=e.variable.name.value,n=qt(e.type);t.reportError(new E(`Variable "$${r}" cannot be non-input type "${n}".`,{nodes:e.type}))}}}}function Ui(t){let e=Object.create(null);return{OperationDefinition:{enter(){e=Object.create(null)},leave(r){const n=t.getRecursiveVariableUsages(r);for(const{node:r,type:o,defaultValue:l}of n){const n=r.name.value,c=e[n];if(c&&o){const e=t.getSchema(),h=dn(e,c.type);if(h&&!$i(e,h,c.defaultValue,o,l)){const e=pt(h),l=pt(o);t.reportError(new E(`Variable "$${n}" of type "${e}" used in position expecting type "${l}".`,{nodes:[c,r]}))}}}}},VariableDefinition(t){e[t.variable.name.value]=t}}}function $i(t,e,r,n,o){if(ye(n)&&!ye(e)){if(!(null!=r&&r.kind!==M.NULL)&&!(void 0!==o))return!1;return sr(t,e,n.ofType)}return sr(t,e,n)}const qi=Object.freeze([Pn,Fi,Fn,xi,Nn,An,Gi,oi,On,Ni,Mn,Vn,ei,Ln,Bi,Bn,zn,Dn,ki,kn,Oi,Vi,ii,Ui,$n,Ri]),Hi=Object.freeze([jn,ji,Li,Ci,Di,Pi,Ai,Nn,Dn,ki,ri,Cn,Oi,Ri,ai]);class Yi{constructor(t,e){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=e}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(t){this._onError(t)}getDocument(){return this._ast}getFragment(t){let e;if(this._fragments)e=this._fragments;else{e=Object.create(null);for(const t of this.getDocument().definitions)t.kind===M.FRAGMENT_DEFINITION&&(e[t.name.value]=t);this._fragments=e}return e[t]}getFragmentSpreads(t){let e=this._fragmentSpreads.get(t);if(!e){e=[];const r=[t];let n;for(;n=r.pop();)for(const t of n.selections)t.kind===M.FRAGMENT_SPREAD?e.push(t):t.selectionSet&&r.push(t.selectionSet);this._fragmentSpreads.set(t,e)}return e}getRecursivelyReferencedFragments(t){let e=this._recursivelyReferencedFragments.get(t);if(!e){e=[];const r=Object.create(null),n=[t.selectionSet];let o;for(;o=n.pop();)for(const t of this.getFragmentSpreads(o)){const o=t.name.value;if(!0!==r[o]){r[o]=!0;const t=this.getFragment(o);t&&(e.push(t),n.push(t.selectionSet))}}this._recursivelyReferencedFragments.set(t,e)}return e}}class Wi extends Yi{constructor(t,e,r){super(t,r),this._schema=e}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}class Ki extends Yi{constructor(t,e,r,n){super(e,n),this._schema=t,this._typeInfo=r,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(t){let e=this._variableUsages.get(t);if(!e){const r=[],n=new fn(this._schema);zt(t,gn(n,{VariableDefinition:()=>!1,Variable(t){r.push({node:t,type:n.getInputType(),defaultValue:n.getDefaultValue()})}})),e=r,this._variableUsages.set(t,e)}return e}getRecursiveVariableUsages(t){let e=this._recursiveVariableUsages.get(t);if(!e){e=this.getVariableUsages(t);for(const r of this.getRecursivelyReferencedFragments(t))e=e.concat(this.getVariableUsages(r));this._recursiveVariableUsages.set(t,e)}return e}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}function Qi(t,e,r=qi,n,o=new fn(t)){var c;const h=null!==(c=null==n?void 0:n.maxErrors)&&void 0!==c?c:100;e||l(!1,"Must provide document."),Xr(t);const d=Object.freeze({}),f=[],m=new Ki(t,e,o,(t=>{if(f.length>=h)throw f.push(new E("Too many validation errors, error limit reached. Validation aborted.")),d;f.push(t)})),y=Gt(r.map((t=>t(m))));try{zt(e,gn(o,y))}catch(t){if(t!==d)throw t}return f}function Ji(t,e,r=Hi){const n=[],o=new Wi(t,e,(t=>{n.push(t)}));return zt(t,Gt(r.map((t=>t(o))))),n}
2class Xi extends Error{constructor(t){super("Unexpected error value: "+pt(t)),this.name="NonErrorThrown",this.thrownValue=t}}function Zi(t,e,path){var r;const n=(o=t)instanceof Error?o:new Xi(o);var o,l;return l=n,Array.isArray(l.path)?n:new E(n.message,{nodes:null!==(r=n.nodes)&&void 0!==r?r:e,source:n.source,positions:n.positions,path:path,originalError:n})}const ta=function(t){let e;return function(r,n,o){void 0===e&&(e=new WeakMap);let l=e.get(r);void 0===l&&(l=new WeakMap,e.set(r,l));let c=l.get(n);void 0===c&&(c=new WeakMap,l.set(n,c));let h=c.get(o);return void 0===h&&(h=t(r,n,o),c.set(o,h)),h}}(((t,e,r)=>function(t,e,r,n,o){const l=new Map,c=new Set;for(const h of o)h.selectionSet&&_i(t,e,r,n,h.selectionSet,l,c);return l}(t.schema,t.fragments,t.variableValues,e,r)));function ea(t){arguments.length<2||l(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:e,document:r,variableValues:n,rootValue:o}=t;ia(e,r,n);const h=aa(t);if(!("schema"in h))return{errors:h};try{const{operation:t}=h,e=sa(h,t,o);return c(e)?e.then((data=>na(data,h.errors)),(t=>(h.errors.push(t),na(null,h.errors)))):na(e,h.errors)}catch(t){return h.errors.push(t),na(null,h.errors)}}function ra(t){const e=ea(t);if(c(e))throw new Error("GraphQL execution failed to complete synchronously.");return e}function na(data,t){return 0===t.length?{data:data}:{errors:t,data:data}}function ia(t,e,r){e||l(!1,"Must provide document."),Xr(t),null==r||h(r)||l(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function aa(t){var e,r;const{schema:n,document:o,rootValue:l,contextValue:c,variableValues:h,operationName:d,fieldResolver:f,typeResolver:m,subscribeFieldResolver:y}=t;let v;const w=Object.create(null);for(const t of o.definitions)switch(t.kind){case M.OPERATION_DEFINITION:if(null==d){if(void 0!==v)return[new E("Must provide operation name if query contains multiple operations.")];v=t}else(null===(e=t.name)||void 0===e?void 0:e.value)===d&&(v=t);break;case M.FRAGMENT_DEFINITION:w[t.name.value]=t}if(!v)return null!=d?[new E(`Unknown operation named "${d}".`)]:[new E("Must provide an operation.")];const _=yi(n,null!==(r=v.variableDefinitions)&&void 0!==r?r:[],null!=h?h:{},{maxErrors:50});return _.errors?_.errors:{schema:n,fragments:w,rootValue:l,contextValue:c,operation:v,variableValues:_.coerced,fieldResolver:null!=f?f:ga,typeResolver:null!=m?m:ma,subscribeFieldResolver:null!=y?y:ga,errors:[]}}function sa(t,e,r){const n=t.schema.getRootType(e.operation);if(null==n)throw new E(`Schema is not configured to execute ${e.operation} operation.`,{nodes:e});const o=Ei(t.schema,t.fragments,t.variableValues,n,e.selectionSet),path=void 0;switch(e.operation){case C.QUERY:return oa(t,n,r,path,o);case C.MUTATION:return function(t,e,r,path,n){return function(t,e,r){let n=r;for(const r of t)n=c(n)?n.then((t=>e(t,r))):e(n,r);return n}(n.entries(),((n,[o,l])=>{const h=hi(path,o,e.name),d=la(t,e,r,l,h);return void 0===d?n:c(d)?d.then((t=>(n[o]=t,n))):(n[o]=d,n)}),Object.create(null))}(t,n,r,path,o);case C.SUBSCRIPTION:return oa(t,n,r,path,o)}}function oa(t,e,r,path,n){const o=Object.create(null);let l=!1;for(const[h,d]of n.entries()){const n=la(t,e,r,d,hi(path,h,e.name));void 0!==n&&(o[h]=n,c(n)&&(l=!0))}return l?(object=o,Promise.all(Object.values(object)).then((t=>{const e=Object.create(null);for(const[i,r]of Object.keys(object).entries())e[r]=t[i];return e}))):o;var object}function la(t,e,source,r,path){var n;const o=ya(t.schema,e,r[0]);if(!o)return;const l=o.type,h=null!==(n=o.resolve)&&void 0!==n?n:t.fieldResolver,d=ca(t,o,r,e,path);try{const e=vi(o,r[0],t.variableValues),n=h(source,e,t.contextValue,d);let f;return f=c(n)?n.then((e=>ua(t,l,r,d,path,e))):ua(t,l,r,d,path,n),c(f)?f.then(void 0,(e=>ha(Zi(e,r,ui(path)),l,t))):f}catch(e){return ha(Zi(e,r,ui(path)),l,t)}}function ca(t,e,r,n,path){return{fieldName:e.name,fieldNodes:r,returnType:e.type,parentType:n,path:path,schema:t.schema,fragments:t.fragments,rootValue:t.rootValue,operation:t.operation,variableValues:t.variableValues}}function ha(t,e,r){if(ye(e))throw t;return r.errors.push(t),null}function ua(t,e,r,n,path,o){if(o instanceof Error)throw o;if(ye(e)){const l=ua(t,e.ofType,r,n,path,o);if(null===l)throw new Error(`Cannot return null for non-nullable field ${n.parentType.name}.${n.fieldName}.`);return l}return null==o?null:me(e)?function(t,e,r,n,path,o){if(!kr(o))throw new E(`Expected Iterable, but did not find one for field "${n.parentType.name}.${n.fieldName}".`);const l=e.ofType;let h=!1;const d=Array.from(o,((e,o)=>{const d=hi(path,o,void 0);try{let o;return o=c(e)?e.then((e=>ua(t,l,r,n,d,e))):ua(t,l,r,n,d,e),c(o)?(h=!0,o.then(void 0,(e=>ha(Zi(e,r,ui(d)),l,t)))):o}catch(e){return ha(Zi(e,r,ui(d)),l,t)}}));return h?Promise.all(d):d}(t,e,r,n,path,o):Te(e)?function(t,e){const r=t.serialize(e);if(null==r)throw new Error(`Expected \`${pt(t)}.serialize(${pt(e)})\` to return non-nullable value, returned: ${pt(r)}`);return r}(e,o):Pe(e)?function(t,e,r,n,path,o){var l;const h=null!==(l=e.resolveType)&&void 0!==l?l:t.typeResolver,d=t.contextValue,f=h(o,d,n,e);if(c(f))return f.then((l=>da(t,pa(l,t,e,r,n,o),r,n,path,o)));return da(t,pa(f,t,e,r,n,o),r,n,path,o)}(t,e,r,n,path,o):ae(e)?da(t,e,r,n,path,o):void d(!1,"Cannot complete value of unexpected output type: "+pt(e))}function pa(t,e,r,n,o,l){if(null==t)throw new E(`Abstract type "${r.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}". Either the "${r.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,n);if(ae(t))throw new E("Support for returning GraphQLObjectType from resolveType was removed in [email protected] please return type name instead.");if("string"!=typeof t)throw new E(`Abstract type "${r.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}" with value ${pt(l)}, received "${pt(t)}".`);const c=e.schema.getType(t);if(null==c)throw new E(`Abstract type "${r.name}" was resolved to a type "${t}" that does not exist inside the schema.`,{nodes:n});if(!ae(c))throw new E(`Abstract type "${r.name}" was resolved to a non-object type "${t}".`,{nodes:n});if(!e.schema.isSubType(r,c))throw new E(`Runtime Object type "${c.name}" is not a possible type for "${r.name}".`,{nodes:n});return c}function da(t,e,r,n,path,o){const l=ta(t,e,r);
2if(e.isTypeOf){const h=e.isTypeOf(o,t.contextValue,n);if(c(h))return h.then((n=>{if(!n)throw fa(e,o,r);return oa(t,e,o,path,l)}));if(!h)throw fa(e,o,r)}return oa(t,e,o,path,l)}function fa(t,e,r){return new E(`Expected value of type "${t.name}" but got: ${pt(e)}.`,{nodes:r})}const ma=function(t,e,r,n){if(h(t)&&"string"==typeof t.__typename)return t.__typename;const o=r.schema.getPossibleTypes(n),l=[];for(let i=0;i<o.length;i++){const n=o[i];if(n.isTypeOf){const o=n.isTypeOf(t,e,r);if(c(o))l[i]=o;else if(o)return n.name}}return l.length?Promise.all(l).then((t=>{for(let i=0;i<t.length;i++)if(t[i])return o[i].name})):void 0},ga=function(source,t,e,r){if(h(source)||"function"==typeof source){const n=source[r.fieldName];return"function"==typeof n?source[r.fieldName](t,e,r):n}};function ya(t,e,r){const n=r.name.value;return n===Gr.name&&t.getQueryType()===e?Gr:n===Ur.name&&t.getQueryType()===e?Ur:n===$r.name?$r:e.getFields()[n]}function va(t){return new Promise((e=>e(wa(t))))}function ba(t){const e=wa(t);if(c(e))throw new Error("GraphQL execution failed to complete synchronously.");return e}function wa(t){arguments.length<2||l(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:e,source:source,rootValue:r,contextValue:n,variableValues:o,operationName:c,fieldResolver:h,typeResolver:d}=t,f=Jr(e);if(f.length>0)return{errors:f};let m;try{m=vt(source)}catch(t){return{errors:[t]}}const y=Qi(e,m);return y.length>0?{errors:y}:ea({schema:e,document:m,rootValue:r,contextValue:n,variableValues:o,operationName:c,fieldResolver:h,typeResolver:d})}function Ea(t){return"function"==typeof(null==t?void 0:t[Symbol.asyncIterator])}function _a(t,e){const r=t[Symbol.asyncIterator]();async function n(t){if(t.done)return t;try{return{value:await e(t.value),done:!1}}catch(t){if("function"==typeof r.return)try{await r.return()}catch(t){}throw t}}return{next:async()=>n(await r.next()),return:async()=>"function"==typeof r.return?n(await r.return()):{value:void 0,done:!0},async throw(t){if("function"==typeof r.throw)return n(await r.throw(t));throw t},[Symbol.asyncIterator](){return this}}}async function Ta(t){arguments.length<2||l(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const e=await Sa(t);if(!Ea(e))return e;const r=e=>ea({...t,rootValue:e});return _a(e,r)}async function Sa(...t){const e=function(t){const e=t[0];return e&&"document"in e?e:{schema:e,document:t[1],rootValue:t[2],contextValue:t[3],variableValues:t[4],operationName:t[5],subscribeFieldResolver:t[6]}}(t),{schema:r,document:n,variableValues:o}=e;ia(r,n,o);const l=aa(e);if(!("schema"in l))return{errors:l};try{const t=await async function(t){const{schema:e,fragments:r,operation:n,variableValues:o,rootValue:l}=t,c=e.getSubscriptionType();if(null==c)throw new E("Schema is not configured to execute subscription operation.",{nodes:n});const h=Ei(e,r,o,c,n.selectionSet),[d,f]=[...h.entries()][0],m=ya(e,c,f[0]);if(!m){const t=f[0].name.value;throw new E(`The subscription field "${t}" is not defined.`,{nodes:f})}const path=hi(void 0,d,c.name),y=ca(t,m,f,c,path);try{var v;const e=vi(m,f[0],o),r=t.contextValue,n=null!==(v=m.subscribe)&&void 0!==v?v:t.subscribeFieldResolver,c=await n(l,e,r,y);if(c instanceof Error)throw c;return c}catch(t){throw Zi(t,f,ui(path))}}(l);if(!Ea(t))throw new Error(`Subscription field must return Async Iterable. Received: ${pt(t)}.`);return t}catch(t){if(t instanceof E)return{errors:[t]};throw t}}function xa(t){return{Field(e){const r=t.getFieldDef(),n=null==r?void 0:r.deprecationReason;if(r&&null!=n){const o=t.getParentType();null!=o||d(!1),t.reportError(new E(`The field ${o.name}.${r.name} is deprecated. ${n}`,{nodes:e}))}},Argument(e){const r=t.getArgument(),n=null==r?void 0:r.deprecationReason;if(r&&null!=n){const o=t.getDirective();if(null!=o)t.reportError(new E(`Directive "@${o.name}" argument "${r.name}" is deprecated. ${n}`,{nodes:e}));else{const o=t.getParentType(),l=t.getFieldDef();null!=o&&null!=l||d(!1),t.reportError(new E(`Field "${o.name}.${l.name}" argument "${r.name}" is deprecated. ${n}`,{nodes:e}))}}},ObjectField(e){const r=Le(t.getParentInputType());if(de(r)){const n=r.getFields()[e.name.value],o=null==n?void 0:n.deprecationReason;null!=o&&t.reportError(new E(`The input field ${r.name}.${n.name} is deprecated. ${o}`,{nodes:e}))}},EnumValue(e){const r=t.getEnumValue(),n=null==r?void 0:r.deprecationReason;
2if(r&&null!=n){const o=Le(t.getInputType());null!=o||d(!1),t.reportError(new E(`The enum value "${o.name}.${r.name}" is deprecated. ${n}`,{nodes:e}))}}}}function Ia(t){return{Field(e){const r=Le(t.getType());r&&Hr(r)&&t.reportError(new E(`GraphQL introspection has been disabled, but the requested query contained the field "${e.name.value}".`,{nodes:e}))}}}function Pa(t){const e={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,...t},r=e.descriptions?"description":"",n=e.specifiedByUrl?"specifiedByURL":"",o=e.directiveIsRepeatable?"isRepeatable":"";function l(t){return e.inputValueDeprecation?t:""}return`\n    query IntrospectionQuery {\n      __schema {\n        ${e.schemaDescription?r:""}\n        queryType { name }\n        mutationType { name }\n        subscriptionType { name }\n        types {\n          ...FullType\n        }\n        directives {\n          name\n          ${r}\n          ${o}\n          locations\n          args${l("(includeDeprecated: true)")} {\n            ...InputValue\n          }\n        }\n      }\n    }\n\n    fragment FullType on __Type {\n      kind\n      name\n      ${r}\n      ${n}\n      fields(includeDeprecated: true) {\n        name\n        ${r}\n        args${l("(includeDeprecated: true)")} {\n          ...InputValue\n        }\n        type {\n          ...TypeRef\n        }\n        isDeprecated\n        deprecationReason\n      }\n      inputFields${l("(includeDeprecated: true)")} {\n        ...InputValue\n      }\n      interfaces {\n        ...TypeRef\n      }\n      enumValues(includeDeprecated: true) {\n        name\n        ${r}\n        isDeprecated\n        deprecationReason\n      }\n      possibleTypes {\n        ...TypeRef\n      }\n    }\n\n    fragment InputValue on __InputValue {\n      name\n      ${r}\n      type { ...TypeRef }\n      defaultValue\n      ${l("isDeprecated")}\n      ${l("deprecationReason")}\n    }\n\n    fragment TypeRef on __Type {\n      kind\n      name\n      ofType {\n        kind\n        name\n        ofType {\n          kind\n          name\n          ofType {\n            kind\n            name\n            ofType {\n              kind\n              name\n              ofType {\n                kind\n                name\n                ofType {\n                  kind\n                  name\n                  ofType {\n                    kind\n                    name\n                  }\n                }\n              }\n            }\n          }\n        }\n      }\n    }\n  `}function Oa(t,e){let r=null;for(const o of t.definitions){var n;if(o.kind===M.OPERATION_DEFINITION)if(null==e){if(r)return null;r=o}else if((null===(n=o.name)||void 0===n?void 0:n.value)===e)return o}return r}function Aa(t,e){if("query"===e.operation){const r=t.getQueryType();if(!r)throw new E("Schema does not define the required query root type.",{nodes:e});return r}if("mutation"===e.operation){const r=t.getMutationType();if(!r)throw new E("Schema is not configured for mutations.",{nodes:e});return r}if("subscription"===e.operation){const r=t.getSubscriptionType();if(!r)throw new E("Schema is not configured for subscriptions.",{nodes:e});return r}throw new E("Can only have query, mutation and subscription operations.",{nodes:e})}function ka(t,e){const r=ra({schema:t,document:vt(Pa({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,...e}))});return!r.errors&&r.data||d(!1),r.data}function Ca(t,e){h(t)&&h(t.__schema)||l(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${pt(t)}.`);const r=t.__schema,n=Ot(r.types,(t=>t.name),(t=>function(t){if(null!=t&&null!=t.name&&null!=t.kind)switch(t.kind){case Vr.SCALAR:return new ze({name:(n=t).name,description:n.description,specifiedByURL:n.specifiedByURL});case Vr.OBJECT:return new Ge({name:(r=t).name,description:r.description,interfaces:()=>E(r),fields:()=>_(r)});case Vr.INTERFACE:return new Qe({name:(e=t).name,description:e.description,interfaces:()=>E(e),fields:()=>_(e)});case Vr.UNION:return function(t){if(!t.possibleTypes){const e=pt(t);throw new Error(`Introspection result missing possibleTypes: ${e}.`)}return new Je({name:t.name,description:t.description,types:()=>t.possibleTypes.map(v)})}(t);case Vr.ENUM:return function(t){if(!t.enumValues){const e=pt(t);throw new Error(`Introspection result missing enumValues: ${e}.`)}return new Ze({name:t.name,description:t.description,values:Ot(t.enumValues,(t=>t.name),(t=>({description:t.description,deprecationReason:t.deprecationReason})))})}(t);case Vr.INPUT_OBJECT:return function(t){if(!t.inputFields){const e=pt(t);throw new Error(`Introspection result missing inputFields: ${e}.`)}return new rr({name:t.name,description:t.description,fields:()=>S(t.inputFields)})}(t)}var e;var r;var n;const o=pt(t);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${o}.`)}(t)));for(const t of[...gr,...qr])n[t.name]&&(n[t.name]=t);const o=r.queryType?v(r.queryType):null,c=r.mutationType?v(r.mutationType):null,d=r.subscriptionType?v(r.subscriptionType):null,f=r.directives?r.directives.map((function(t){if(!t.args){const e=pt(t);throw new Error(`Introspection result missing directive args: ${e}.`)}if(!t.locations){const e=pt(t);throw new Error(`Introspection result missing directive locations: ${e}.`)}return new _r({name:t.name,description:t.description,isRepeatable:t.isRepeatable,locations:t.locations.slice(),args:S(t.args)})})):[];return new Kr({description:r.description,query:o,mutation:c,subscription:d,types:Object.values(n),directives:f,assumeValid:null==e?void 0:e.assumeValid});function m(t){if(t.kind===Vr.LIST){const e=t.ofType;
2if(!e)throw new Error("Decorated type deeper than introspection query.");return new Ae(m(e))}if(t.kind===Vr.NON_NULL){const e=t.ofType;if(!e)throw new Error("Decorated type deeper than introspection query.");const r=m(e);return new ke(Ne(r))}return y(t)}function y(t){const e=t.name;if(!e)throw new Error(`Unknown type reference: ${pt(t)}.`);const r=n[e];if(!r)throw new Error(`Invalid or incomplete schema, unknown type: ${e}. Ensure that a full introspection query is used in order to build a client schema.`);return r}function v(t){return se(y(t))}function w(t){return le(y(t))}function E(t){if(null===t.interfaces&&t.kind===Vr.INTERFACE)return[];if(!t.interfaces){const e=pt(t);throw new Error(`Introspection result missing interfaces: ${e}.`)}return t.interfaces.map(w)}function _(t){if(!t.fields)throw new Error(`Introspection result missing fields: ${pt(t)}.`);return Ot(t.fields,(t=>t.name),T)}function T(t){const e=m(t.type);if(!Ee(e)){const t=pt(e);throw new Error(`Introspection must provide output type for fields, but received: ${t}.`)}if(!t.args){const e=pt(t);throw new Error(`Introspection result missing field args: ${e}.`)}return{description:t.description,deprecationReason:t.deprecationReason,type:e,args:S(t.args)}}function S(t){return Ot(t,(t=>t.name),x)}function x(t){const e=m(t.type);if(!be(e)){const t=pt(e);throw new Error(`Introspection must provide input type for arguments, but received: ${t}.`)}const r=null!=t.defaultValue?mi(bt(t.defaultValue),e):void 0;return{description:t.description,type:e,defaultValue:r,deprecationReason:t.deprecationReason}}}function Da(t,e,r){Wr(t),null!=e&&e.kind===M.DOCUMENT||l(!1,"Must provide valid Document AST."),!0!==(null==r?void 0:r.assumeValid)&&!0!==(null==r?void 0:r.assumeValidSDL)&&function(t,e){const r=Ji(t,e);if(0!==r.length)throw new Error(r.map((t=>t.message)).join("\n\n"))}(e,t);const n=t.toConfig(),o=Ma(n,e,r);return n===o?t:new Kr(o)}function Ma(t,e,r){var n,o,l,c;const h=[],f=Object.create(null),m=[];let y;const v=[];for(const t of e.definitions)if(t.kind===M.SCHEMA_DEFINITION)y=t;else if(t.kind===M.SCHEMA_EXTENSION)v.push(t);else if(Sn(t))h.push(t);else if(In(t)){const e=t.name.value,r=f[e];f[e]=r?r.concat([t]):[t]}else t.kind===M.DIRECTIVE_DEFINITION&&m.push(t);if(0===Object.keys(f).length&&0===h.length&&0===m.length&&0===v.length&&null==y)return t;const w=Object.create(null);for(const e of t.types)w[e.name]=x(e);for(const t of h){var E;const e=t.name.value;w[e]=null!==(E=Na[e])&&void 0!==E?E:L(t)}const _={query:t.query&&S(t.query),mutation:t.mutation&&S(t.mutation),subscription:t.subscription&&S(t.subscription),...y&&O([y]),...O(v)};return{description:null===(n=y)||void 0===n||null===(o=n.description)||void 0===o?void 0:o.value,..._,types:Object.values(w),directives:[...t.directives.map((function(t){const e=t.toConfig();return new _r({...e,args:At(e.args,P)})})),...m.map((function(t){var e;return new _r({name:t.name.value,description:null===(e=t.description)||void 0===e?void 0:e.value,locations:t.locations.map((({value:t})=>t)),isRepeatable:t.repeatable,args:D(t.arguments),astNode:t})}))],extensions:Object.create(null),astNode:null!==(l=y)&&void 0!==l?l:t.astNode,extensionASTNodes:t.extensionASTNodes.concat(v),assumeValid:null!==(c=null==r?void 0:r.assumeValid)&&void 0!==c&&c};function T(t){return me(t)?new Ae(T(t.ofType)):ye(t)?new ke(T(t.ofType)):S(t)}function S(t){return w[t.name]}function x(t){return Hr(t)||yr(t)?t:ne(t)?function(t){var e;
2const r=t.toConfig(),n=null!==(e=f[r.name])&&void 0!==e?e:[];let o=r.specifiedByURL;for(const t of n){var l;o=null!==(l=Fa(t))&&void 0!==l?l:o}return new ze({...r,specifiedByURL:o,extensionASTNodes:r.extensionASTNodes.concat(n)})}(t):ae(t)?function(t){var e;const r=t.toConfig(),n=null!==(e=f[r.name])&&void 0!==e?e:[];return new Ge({...r,interfaces:()=>[...t.getInterfaces().map(S),...F(n)],fields:()=>({...At(r.fields,I),...C(n)}),extensionASTNodes:r.extensionASTNodes.concat(n)})}(t):oe(t)?function(t){var e;const r=t.toConfig(),n=null!==(e=f[r.name])&&void 0!==e?e:[];return new Qe({...r,interfaces:()=>[...t.getInterfaces().map(S),...F(n)],fields:()=>({...At(r.fields,I),...C(n)}),extensionASTNodes:r.extensionASTNodes.concat(n)})}(t):ce(t)?function(t){var e;const r=t.toConfig(),n=null!==(e=f[r.name])&&void 0!==e?e:[];return new Je({...r,types:()=>[...t.getTypes().map(S),...j(n)],extensionASTNodes:r.extensionASTNodes.concat(n)})}(t):ue(t)?function(t){var e;const r=t.toConfig(),n=null!==(e=f[t.name])&&void 0!==e?e:[];return new Ze({...r,values:{...r.values,...R(n)},extensionASTNodes:r.extensionASTNodes.concat(n)})}(t):de(t)?function(t){var e;
2const r=t.toConfig(),n=null!==(e=f[r.name])&&void 0!==e?e:[];return new rr({...r,fields:()=>({...At(r.fields,(t=>({...t,type:T(t.type)}))),...N(n)}),extensionASTNodes:r.extensionASTNodes.concat(n)})}(t):void d(!1,"Unexpected type: "+pt(t))}function I(t){return{...t,type:T(t.type),args:t.args&&At(t.args,P)}}function P(t){return{...t,type:T(t.type)}}function O(t){const e={};for(const n of t){var r;const t=null!==(r=n.operationTypes)&&void 0!==r?r:[];for(const r of t)e[r.operation]=A(r.type)}return e}function A(t){var e;const r=t.name.value,n=null!==(e=Na[r])&&void 0!==e?e:w[r];if(void 0===n)throw new Error(`Unknown type: "${r}".`);return n}function k(t){return t.kind===M.LIST_TYPE?new Ae(k(t.type)):t.kind===M.NON_NULL_TYPE?new ke(k(t.type)):A(t)}function C(t){const e=Object.create(null);for(const o of t){var r;const t=null!==(r=o.fields)&&void 0!==r?r:[];for(const r of t){var n;e[r.name.value]={type:k(r.type),description:null===(n=r.description)||void 0===n?void 0:n.value,args:D(r.arguments),deprecationReason:Ra(r),astNode:r}}}return e}function D(t){const e=null!=t?t:[],r=Object.create(null);for(const t of e){var n;const e=k(t.type);r[t.name.value]={type:e,description:null===(n=t.description)||void 0===n?void 0:n.value,defaultValue:mi(t.defaultValue,e),deprecationReason:Ra(t),astNode:t}}return r}function N(t){const e=Object.create(null);for(const o of t){var r;const t=null!==(r=o.fields)&&void 0!==r?r:[];for(const r of t){var n;const t=k(r.type);e[r.name.value]={type:t,description:null===(n=r.description)||void 0===n?void 0:n.value,defaultValue:mi(r.defaultValue,t),deprecationReason:Ra(r),astNode:r}}}return e}function R(t){const e=Object.create(null);for(const o of t){var r;const t=null!==(r=o.values)&&void 0!==r?r:[];for(const r of t){var n;e[r.name.value]={description:null===(n=r.description)||void 0===n?void 0:n.value,deprecationReason:Ra(r),astNode:r}}}return e}function F(t){return t.flatMap((t=>{var e,r;return null!==(e=null===(r=t.interfaces)||void 0===r?void 0:r.map(A))&&void 0!==e?e:[]}))}function j(t){return t.flatMap((t=>{var e,r;return null!==(e=null===(r=t.types)||void 0===r?void 0:r.map(A))&&void 0!==e?e:[]}))}function L(t){var e;const r=t.name.value,n=null!==(e=f[r])&&void 0!==e?e:[];switch(t.kind){case M.OBJECT_TYPE_DEFINITION:{var o;const e=[t,...n];return new Ge({name:r,description:null===(o=t.description)||void 0===o?void 0:o.value,interfaces:()=>F(e),fields:()=>C(e),astNode:t,extensionASTNodes:n})}case M.INTERFACE_TYPE_DEFINITION:{var l;const e=[t,...n];return new Qe({name:r,description:null===(l=t.description)||void 0===l?void 0:l.value,interfaces:()=>F(e),fields:()=>C(e),astNode:t,extensionASTNodes:n})}case M.ENUM_TYPE_DEFINITION:{var c;const e=[t,...n];return new Ze({name:r,description:null===(c=t.description)||void 0===c?void 0:c.value,values:R(e),astNode:t,extensionASTNodes:n})}case M.UNION_TYPE_DEFINITION:{var h;const e=[t,...n];return new Je({name:r,description:null===(h=t.description)||void 0===h?void 0:h.value,types:()=>j(e),astNode:t,extensionASTNodes:n})}case M.SCALAR_TYPE_DEFINITION:var d;return new ze({name:r,description:null===(d=t.description)||void 0===d?void 0:d.value,specifiedByURL:Fa(t),astNode:t,extensionASTNodes:n});case M.INPUT_OBJECT_TYPE_DEFINITION:{var m;const e=[t,...n];return new rr({name:r,description:null===(m=t.description)||void 0===m?void 0:m.value,fields:()=>N(e),astNode:t,extensionASTNodes:n})}}}}const Na=Pt([...gr,...qr],(t=>t.name));function Ra(t){const e=bi(Ir,t);return null==e?void 0:e.reason}function Fa(t){const e=bi(Pr,t);return null==e?void 0:e.url}function ja(t,e){null!=t&&t.kind===M.DOCUMENT||l(!1,"Must provide valid Document AST."),!0!==(null==e?void 0:e.assumeValid)&&!0!==(null==e?void 0:e.assumeValidSDL)&&function(t){const e=Ji(t);if(0!==e.length)throw new Error(e.map((t=>t.message)).join("\n\n"))}(t);const r=Ma({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},t,e);if(null==r.astNode)for(const t of r.types)switch(t.name){case"Query":r.query=t;break;case"Mutation":r.mutation=t;break;case"Subscription":r.subscription=t}const n=[...r.directives,...Or.filter((t=>r.directives.every((e=>e.name!==t.name))))];return new Kr({...r,directives:n})}function La(source,t){return ja(vt(source,{noLocation:null==t?void 0:t.noLocation,allowLegacyFragmentVariables:null==t?void 0:t.allowLegacyFragmentVariables}),{assumeValidSDL:null==t?void 0:t.assumeValidSDL,assumeValid:null==t?void 0:t.assumeValid})}function Ba(t){const e=t.toConfig(),r=Ot(za(e.types),(t=>t.name),(function(t){if(ne(t)||Hr(t))return t;if(ae(t)){const e=t.toConfig();return new Ge({...e,interfaces:()=>f(e.interfaces),fields:()=>h(e.fields)})}if(oe(t)){const e=t.toConfig();return new Qe({...e,interfaces:()=>f(e.interfaces),fields:()=>h(e.fields)})}if(ce(t)){const e=t.toConfig();return new Je({...e,types:()=>f(e.types)})}if(ue(t)){const e=t.toConfig();return new Ze({...e,values:Va(e.values,(t=>t))})}if(de(t)){const e=t.toConfig();return new rr({...e,fields:()=>Va(e.fields,(t=>({...t,type:n(t.type)})))})}d(!1,"Unexpected type: "+pt(t))}));return new Kr({...e,types:Object.values(r),directives:za(e.directives).map((function(t){const e=t.toConfig();return new _r({...e,locations:Ga(e.locations,(t=>t)),args:c(e.args)})})),query:l(e.query),mutation:l(e.mutation),subscription:l(e.subscription)});function n(t){return me(t)?new Ae(n(t.ofType)):ye(t)?new ke(n(t.ofType)):o(t)}function o(t){return r[t.name]}function l(t){return t&&o(t)}function c(t){return Va(t,(t=>({...t,type:n(t.type)})))}function h(t){return Va(t,(t=>({...t,type:n(t.type),args:t.args&&c(t.args)})))}function f(t){return za(t).map(o)}}function Va(map,t){const e=Object.create(null);for(const r of Object.keys(map).sort(kt))e[r]=t(map[r]);return e}function za(t){return Ga(t,(t=>t.name))}function Ga(t,e){return t.slice().sort(((t,r)=>kt(e(t),e(r))))}function Ua(t){return Ha(t,(t=>!Ar(t)),qa)}function $a(t){return Ha(t,Ar,Hr)}function qa(t){return!yr(t)&&!Hr(t)}function Ha(t,e,r){const n=t.getDirectives().filter(e),o=Object.values(t.getTypeMap()).filter(r);return[Ya(t),...n.map((t=>function(t){return es(t)+"directive @"+t.name+Xa(t.args)+(t.isRepeatable?" repeatable":"")+" on "+t.locations.join(" | ")}(t))),...o.map((t=>
2Wa(t)))].filter(Boolean).join("\n\n")}function Ya(t){if(null==t.description&&function(t){const e=t.getQueryType();if(e&&"Query"!==e.name)return!1;const r=t.getMutationType();if(r&&"Mutation"!==r.name)return!1;const n=t.getSubscriptionType();if(n&&"Subscription"!==n.name)return!1;return!0}(t))return;const e=[],r=t.getQueryType();r&&e.push(`  query: ${r.name}`);const n=t.getMutationType();n&&e.push(`  mutation: ${n.name}`);const o=t.getSubscriptionType();return o&&e.push(`  subscription: ${o.name}`),es(t)+`schema {\n${e.join("\n")}\n}`}function Wa(t){return ne(t)?function(t){return es(t)+`scalar ${t.name}`+function(t){if(null==t.specifiedByURL)return"";return` @specifiedBy(url: ${qt({kind:M.STRING,value:t.specifiedByURL})})`}(t)}(t):ae(t)?function(t){return es(t)+`type ${t.name}`+Ka(t)+Qa(t)}(t):oe(t)?function(t){return es(t)+`interface ${t.name}`+Ka(t)+Qa(t)}(t):ce(t)?function(t){const e=t.getTypes(),r=e.length?" = "+e.join(" | "):"";return es(t)+"union "+t.name+r}(t):ue(t)?function(t){const e=t.getValues().map(((t,i)=>es(t,"  ",!i)+"  "+t.name+ts(t.deprecationReason)));return es(t)+`enum ${t.name}`+Ja(e)}(t):de(t)?function(t){const e=Object.values(t.getFields()).map(((t,i)=>es(t,"  ",!i)+"  "+Za(t)));return es(t)+`input ${t.name}`+Ja(e)}(t):void d(!1,"Unexpected type: "+pt(t))}function Ka(t){const e=t.getInterfaces();return e.length?" implements "+e.map((i=>i.name)).join(" & "):""}function Qa(t){return Ja(Object.values(t.getFields()).map(((t,i)=>es(t,"  ",!i)+"  "+t.name+Xa(t.args,"  ")+": "+String(t.type)+ts(t.deprecationReason))))}function Ja(t){return 0!==t.length?" {\n"+t.join("\n")+"\n}":""}function Xa(t,e=""){return 0===t.length?"":t.every((t=>!t.description))?"("+t.map(Za).join(", ")+")":"(\n"+t.map(((t,i)=>es(t,"  "+e,!i)+"  "+e+Za(t))).join("\n")+"\n"+e+")"}function Za(t){const e=Cr(t.defaultValue,t.type);let r=t.name+": "+String(t.type);return e&&(r+=` = ${qt(e)}`),r+ts(t.deprecationReason)}function ts(t){if(null==t)return"";if(t!==xr){return` @deprecated(reason: ${qt({kind:M.STRING,value:t})})`}return" @deprecated"}function es(t,e="",r=!0){const{description:n}=t;if(null==n)return"";return(e&&!r?"\n"+e:e)+qt({kind:M.STRING,value:n,block:G(n)}).replace(/\n/g,"\n"+e)+"\n"}function rs(t){const e=[];for(const r of t)e.push(...r.definitions);return{kind:M.DOCUMENT,definitions:e}}function ns(t){const e=[],r=Object.create(null);for(const n of t.definitions)switch(n.kind){case M.OPERATION_DEFINITION:e.push(n);break;case M.FRAGMENT_DEFINITION:r[n.name.value]=as(n.selectionSet)}const n=Object.create(null);for(const o of e){const e=new Set;for(const t of as(o.selectionSet))is(e,r,t);n[o.name?o.name.value:""]={kind:M.DOCUMENT,definitions:t.definitions.filter((t=>t===o||t.kind===M.FRAGMENT_DEFINITION&&e.has(t.name.value)))}}return n}function is(t,e,r){if(!t.has(r)){t.add(r);const n=e[r];if(void 0!==n)for(const r of n)is(t,e,r)}}function as(t){const e=[];return zt(t,{FragmentSpread(t){e.push(t.name.value)}}),e}function ss(source){const t=yt(source)?source:new gt(source),body=t.body,e=new $(t);let r="",n=!1;for(;e.advance().kind!==N.EOF;){const t=e.token,o=t.kind,l=!H(t.kind);n&&(l||t.kind===N.SPREAD)&&(r+=" ");const c=body.slice(t.start,t.end);o===N.BLOCK_STRING?r+=U(t.value,{minimize:!0}):r+=c,n=l}return r}function os(t){const e=ls(t);if(e)throw e;return t}function ls(t){if("string"==typeof t||l(!1,"Expected name to be a string."),t.startsWith("__"))return new E(`Name "${t}" must not begin with "__", which is reserved by GraphQL introspection.`);try{Zt(t)}catch(t){return t}}var cs,hs;function us(t,e){return ds(t,e).filter((t=>t.type in cs))}function ps(t,e){return ds(t,e).filter((t=>t.type in hs))}function ds(t,e){return[...ms(t,e),...fs(t,e)]}function fs(t,e){const r=[],n=Is(t.getDirectives(),e.getDirectives());for(const t of n.removed)r.push({type:cs.DIRECTIVE_REMOVED,description:`${t.name} was removed.`});for(const[t,e]of n.persisted){const n=Is(t.args,e.args);for(const e of n.added)Ke(e)&&r.push({type:cs.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${e.name} on directive ${t.name} was added.`});for(const e of n.removed)r.push({type:cs.DIRECTIVE_ARG_REMOVED,description:`${e.name} was removed from ${t.name}.`});t.isRepeatable&&!e.isRepeatable&&r.push({type:cs.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${t.name}.`});for(const n of t.locations)e.locations.includes(n)||r.push({type:cs.DIRECTIVE_LOCATION_REMOVED,description:`${n} was removed from ${t.name}.`})}return r}function ms(t,e){const r=[],n=Is(Object.values(t.getTypeMap()),Object.values(e.getTypeMap()));for(const t of n.removed)r.push({type:cs.TYPE_REMOVED,description:yr(t)?`Standard scalar ${t.name} was removed because it is not referenced anymore.`:`${t.name} was removed.`});for(const[t,e]of n.persisted)ue(t)&&ue(e)?r.push(...vs(t,e)):ce(t)&&ce(e)?r.push(...ys(t,e)):de(t)&&de(e)?r.push(...gs(t,e)):ae(t)&&ae(e)||oe(t)&&oe(e)?r.push(...ws(t,e),...bs(t,e)):t.constructor!==e.constructor&&r.push({type:cs.TYPE_CHANGED_KIND,description:`${t.name} changed from ${Ss(t)} to ${Ss(e)}.`});return r}function gs(t,e){const r=[],n=Is(Object.values(t.getFields()),Object.values(e.getFields()));for(const e of n.added)ir(e)?r.push({type:cs.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${e.name} on input type ${t.name} was added.`}):r.push({type:hs.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${e.name} on input type ${t.name} was added.`});for(const e of n.removed)r.push({type:cs.FIELD_REMOVED,description:`${t.name}.${e.name} was removed.`});for(const[e,o]of n.persisted){Ts(e.type,o.type)||r.push({type:cs.FIELD_CHANGED_KIND,description:`${t.name}.${e.name} changed type from ${String(e.type)} to ${String(o.type)}.`})}return r}function ys(t,e){const r=[],n=Is(t.getTypes(),e.getTypes());for(const e of n.added)r.push({type:hs.TYPE_ADDED_TO_UNION,description:`${e.name} was added to union type ${t.name}.`});for(const e of n.removed)r.push({type:cs.TYPE_REMOVED_FROM_UNION,description:`${e.name} was removed from union type ${t.name}.`});return r}function vs(t,e){const r=[],n=Is(t.getValues(),e.getValues());for(const e of n.added)r.push({type:hs.VALUE_ADDED_TO_ENUM,description:`${e.name} was added to enum type ${t.name}.`});for(const e of n.removed)r.push({type:cs.VALUE_REMOVED_FROM_ENUM,description:`${e.name} was removed from enum type ${t.name}.`});return r}function bs(t,e){const r=[],n=Is(t.getInterfaces(),e.getInterfaces());
2for(const e of n.added)r.push({type:hs.IMPLEMENTED_INTERFACE_ADDED,description:`${e.name} added to interfaces implemented by ${t.name}.`});for(const e of n.removed)r.push({type:cs.IMPLEMENTED_INTERFACE_REMOVED,description:`${t.name} no longer implements interface ${e.name}.`});return r}function ws(t,e){const r=[],n=Is(Object.values(t.getFields()),Object.values(e.getFields()));for(const e of n.removed)r.push({type:cs.FIELD_REMOVED,description:`${t.name}.${e.name} was removed.`});for(const[e,o]of n.persisted){r.push(...Es(t,e,o));_s(e.type,o.type)||r.push({type:cs.FIELD_CHANGED_KIND,description:`${t.name}.${e.name} changed type from ${String(e.type)} to ${String(o.type)}.`})}return r}function Es(t,e,r){const n=[],o=Is(e.args,r.args);for(const r of o.removed)n.push({type:cs.ARG_REMOVED,description:`${t.name}.${e.name} arg ${r.name} was removed.`});for(const[r,l]of o.persisted){if(Ts(r.type,l.type)){if(void 0!==r.defaultValue)if(void 0===l.defaultValue)n.push({type:hs.ARG_DEFAULT_VALUE_CHANGE,description:`${t.name}.${e.name} arg ${r.name} defaultValue was removed.`});else{const o=xs(r.defaultValue,r.type),c=xs(l.defaultValue,l.type);o!==c&&n.push({type:hs.ARG_DEFAULT_VALUE_CHANGE,description:`${t.name}.${e.name} arg ${r.name} has changed defaultValue from ${o} to ${c}.`})}}else n.push({type:cs.ARG_CHANGED_KIND,description:`${t.name}.${e.name} arg ${r.name} has changed type from ${String(r.type)} to ${String(l.type)}.`})}for(const r of o.added)Ke(r)?n.push({type:cs.REQUIRED_ARG_ADDED,description:`A required arg ${r.name} on ${t.name}.${e.name} was added.`}):n.push({type:hs.OPTIONAL_ARG_ADDED,description:`An optional arg ${r.name} on ${t.name}.${e.name} was added.`});return n}function _s(t,e){return me(t)?me(e)&&_s(t.ofType,e.ofType)||ye(e)&&_s(t,e.ofType):ye(t)?ye(e)&&_s(t.ofType,e.ofType):Fe(e)&&t.name===e.name||ye(e)&&_s(t,e.ofType)}function Ts(t,e){return me(t)?me(e)&&Ts(t.ofType,e.ofType):ye(t)?ye(e)&&Ts(t.ofType,e.ofType)||!ye(e)&&Ts(t.ofType,e):Fe(e)&&t.name===e.name}function Ss(t){return ne(t)?"a Scalar type":ae(t)?"an Object type":oe(t)?"an Interface type":ce(t)?"a Union type":ue(t)?"an Enum type":de(t)?"an Input type":void d(!1,"Unexpected type: "+pt(t))}function xs(t,e){const r=Cr(t,e);return null!=r||d(!1),qt(Gn(r))}function Is(t,e){const r=[],n=[],o=[],l=Pt(t,(({name:t})=>t)),c=Pt(e,(({name:t})=>t));for(const e of t){const t=c[e.name];void 0===t?n.push(e):o.push([e,t])}for(const t of e)void 0===l[t.name]&&r.push(t);return{added:r,persisted:o,removed:n}}!function(t){t.TYPE_REMOVED="TYPE_REMOVED",t.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",t.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",t.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",t.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",t.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",t.FIELD_REMOVED="FIELD_REMOVED",t.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",t.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",t.ARG_REMOVED="ARG_REMOVED",t.ARG_CHANGED_KIND="ARG_CHANGED_KIND",t.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",t.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",t.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",t.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",t.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"}(cs||(cs={})),function(t){t.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",t.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",t.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",t.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",t.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",t.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"}(hs||(hs={}))},46:function(t,e,r){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var content=function(t,e){var content=t[1]||"",r=t[3];if(!r)return content;if(e&&"function"==typeof btoa){var n=(l=r,c=btoa(unescape(encodeURIComponent(JSON.stringify(l)))),data="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(data," */")),o=r.sources.map((function(source){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(source," */")}));return[content].concat(o).concat([n]).join("\n")}var l,c,data;return[content].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(content,"}"):content})).join("")},e.i=function(t,r,n){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(n)for(var i=0;i<this.length;i++){var l=this[i][0];null!=l&&(o[l]=!0)}for(var c=0;c<t.length;c++){var h=[].concat(t[c]);n&&o[h[0]]||(r&&(h[2]?h[2]="".concat(r," and ").concat(h[2]):h[2]=r),e.push(h))}},e}},47:function(t,e,r){"use strict";function n(t,e){for(var r=[],n={},i=0;i<e.length;i++){var o=e[i],l=o[0],c={id:t+":"+i,css:o[1],media:o[2],sourceMap:o[3]};n[l]?n[l].parts.push(c):r.push(n[l]={id:l,parts:[c]})}return r}r.r(e),r.d(e,"default",(function(){return w}));var o="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var l={},head=o&&(document.head||document.getElementsByTagName("head")[0]),c=null,h=0,d=!1,f=function(){},m=null,y="data-vue-ssr-id",v="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function w(t,e,r,o){d=r,m=o||{};var c=n(t,e);return E(c),function(e){for(var r=[],i=0;i<c.length;i++){var o=c[i];(h=l[o.id]).refs--,r.push(h)}e?E(c=n(t,e)):c=[];for(i=0;i<r.length;i++){var h;if(0===(h=r[i]).refs){for(var d=0;d<h.parts.length;d++)h.parts[d]();delete l[h.id]}}}}function E(t){for(var i=0;i<t.length;i++){var e=t[i],r=l[e.id];if(r){r.refs++;for(var n=0;n<r.parts.length;n++)r.parts[n](e.parts[n]);for(;n<e.parts.length;n++)r.parts.push(T(e.parts[n]));r.parts.length>e.parts.length&&(r.parts.length=e.parts.length)}else{var o=[];for(n=0;n<e.parts.length;n++)o.push(T(e.parts[n]));l[e.id]={id:e.id,refs:1,parts:o}}}}function _(){var t=document.createElement("style");return t.type="text/css",head.appendChild(t),t}function T(t){var e,r,n=document.querySelector("style["+y+'~="'+t.id+'"]');if(n){if(d)return f;n.parentNode.removeChild(n)}if(v){var o=h++;n=c||(c=_()),e=I.bind(null,n,o,!1),r=I.bind(null,n,o,!0)}else n=_(),e=P.bind(null,n),r=function(){n.parentNode.removeChild(n)};return e(t),function(n){if(n){if(n.css===t.css&&n.media===t.media&&n.sourceMap===t.sourceMap)return;e(t=n)}else r()}}
2var S,x=(S=[],function(t,e){return S[t]=e,S.filter(Boolean).join("\n")});function I(t,e,r,n){var o=r?"":n.css;if(t.styleSheet)t.styleSheet.cssText=x(e,o);else{var l=document.createTextNode(o),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(l,c[e]):t.appendChild(l)}}function P(t,e){var r=e.css,n=e.media,o=e.sourceMap;if(n&&t.setAttribute("media",n),m.ssrId&&t.setAttribute(y,e.id),o&&(r+="\n/*# sourceURL="+o.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}},51:function(t,e,r){"use strict";var n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},o=function(t,e,r){var o,l=n[t];return o="string"==typeof l?l:1===e?l.one:l.other.replace("{{count}}",e.toString()),null!=r&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};function l(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.width?String(e.width):t.defaultWidth,n=t.formats[r]||t.formats[t.defaultWidth];return n}}var c={date:l({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:l({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:l({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},h={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},d=function(t,e,r,n){return h[t]};function f(t){return function(e,r){var n;if("formatting"===(null!=r&&r.context?String(r.context):"standalone")&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,l=null!=r&&r.width?String(r.width):o;n=t.formattingValues[l]||t.formattingValues[o]}else{var c=t.defaultWidth,h=null!=r&&r.width?String(r.width):t.defaultWidth;n=t.values[h]||t.values[c]}return n[t.argumentCallback?t.argumentCallback(e):e]}}var m={ordinalNumber:function(t,e){var r=Number(t),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:f({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:f({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:f({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:f({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:f({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function y(t){return function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.width,o=n&&t.matchPatterns[n]||t.matchPatterns[t.defaultMatchWidth],l=e.match(o);if(!l)return null;var c,h=l[0],d=n&&t.parsePatterns[n]||t.parsePatterns[t.defaultParseWidth],f=Array.isArray(d)?w(d,(function(pattern){return pattern.test(h)})):v(d,(function(pattern){return pattern.test(h)}));c=t.valueCallback?t.valueCallback(f):f,c=r.valueCallback?r.valueCallback(c):c;var m=e.slice(h.length);return{value:c,rest:m}}}function v(object,t){for(var e in object)if(object.hasOwnProperty(e)&&t(object[e]))return e}function w(t,e){for(var r=0;r<t.length;r++)if(e(t[r]))return r}var E,_={ordinalNumber:(E={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(E.matchPattern);if(!r)return null;var n=r[0],o=t.match(E.parsePattern);if(!o)return null;var l=E.valueCallback?E.valueCallback(o[0]):o[0];l=e.valueCallback?e.valueCallback(l):l;var c=t.slice(n.length);return{value:l,rest:c}}),era:y({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:y({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:y({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:y({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:y({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},T={code:"en-US",formatDistance:o,formatLong:c,formatRelative:d,localize:m,match:_,options:{weekStartsOn:0,firstWeekContainsDate:1}};e.a=T},52:function(t,e,r){"use strict";r.d(e,"a",(function(){return h}));var n=r(1),o=r(0),l=r(3),c=r(16);function h(t,e){var r,h,d,f,m,y,v,w;Object(o.a)(1,arguments);var E=Object(c.a)(),_=Object(l.a)(null!==(r=null!==(h=null!==(d=null!==(f=null==e?void 0:e.weekStartsOn)&&void 0!==f?f:null==e||null===(m=e.locale)||void 0===m||null===(y=m.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==d?d:E.weekStartsOn)&&void 0!==h?h:null===(v=E.locale)||void 0===v||null===(w=v.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==r?r:0);if(!(_>=0&&_<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var T=Object(n.a)(t),S=T.getUTCDay(),x=(S<_?7:0)+S-_;
2return T.setUTCDate(T.getUTCDate()-x),T.setUTCHours(0,0,0,0),T}},56:function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var n=r(62),o=r(0),l=r(3);function c(t,e){Object(o.a)(2,arguments);var r=Object(l.a)(e);return Object(n.a)(t,-r)}},57:function(t,e,r){"use strict";r.d(e,"a",(function(){return l}));var n=r(1),o=r(0);function l(t){Object(o.a)(1,arguments);var e=1,r=Object(n.a)(t),l=r.getUTCDay(),c=(l<e?7:0)+l-e;return r.setUTCDate(r.getUTCDate()-c),r.setUTCHours(0,0,0,0),r}},58:function(t,e,r){"use strict";var n=r(13),o={y:function(t,e){var r=t.getUTCFullYear(),o=r>0?r:1-r;return Object(n.a)("yy"===e?o%100:o,e.length)},M:function(t,e){var r=t.getUTCMonth();return"M"===e?String(r+1):Object(n.a)(r+1,2)},d:function(t,e){return Object(n.a)(t.getUTCDate(),e.length)},a:function(t,e){var r=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:function(t,e){return Object(n.a)(t.getUTCHours()%12||12,e.length)},H:function(t,e){return Object(n.a)(t.getUTCHours(),e.length)},m:function(t,e){return Object(n.a)(t.getUTCMinutes(),e.length)},s:function(t,e){return Object(n.a)(t.getUTCSeconds(),e.length)},S:function(t,e){var r=e.length,o=t.getUTCMilliseconds(),l=Math.floor(o*Math.pow(10,r-3));return Object(n.a)(l,e.length)}};e.a=o},61:function(t,e,r){"use strict";r.d(e,"a",(function(){return o})),r.d(e,"b",(function(){return h}));var n=r(4);class o{constructor(t,e,r){this.name=t,this.instanceFactory=e,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(t){return this.instantiationMode=t,this}setMultipleInstances(t){return this.multipleInstances=t,this}setServiceProps(t){return this.serviceProps=t,this}setInstanceCreatedCallback(t){return this.onInstanceCreated=t,this}}const l="[DEFAULT]";class c{constructor(t,e){this.name=t,this.container=e,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(t){const e=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(e)){const t=new n.a;if(this.instancesDeferred.set(e,t),this.isInitialized(e)||this.shouldAutoInitialize())try{const r=this.getOrInitializeService({instanceIdentifier:e});r&&t.resolve(r)}catch(t){}}return this.instancesDeferred.get(e).promise}getImmediate(t){var e;const r=this.normalizeInstanceIdentifier(null==t?void 0:t.identifier),n=null!==(e=null==t?void 0:t.optional)&&void 0!==e&&e;if(!this.isInitialized(r)&&!this.shouldAutoInitialize()){if(n)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:r})}catch(t){if(n)return null;throw t}}getComponent(){return this.component}setComponent(component){if(component.name!==this.name)throw Error(`Mismatching Component ${component.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=component,this.shouldAutoInitialize()){if(function(component){return"EAGER"===component.instantiationMode}(component))try{this.getOrInitializeService({instanceIdentifier:l})}catch(t){}for(const[t,e]of this.instancesDeferred.entries()){const r=this.normalizeInstanceIdentifier(t);try{const t=this.getOrInitializeService({instanceIdentifier:r});e.resolve(t)}catch(t){}}}}clearInstance(t=l){this.instancesDeferred.delete(t),this.instancesOptions.delete(t),this.instances.delete(t)}async delete(){const t=Array.from(this.instances.values());await Promise.all([...t.filter((t=>"INTERNAL"in t)).map((t=>t.INTERNAL.delete())),...t.filter((t=>"_delete"in t)).map((t=>t._delete()))])}isComponentSet(){return null!=this.component}isInitialized(t=l){return this.instances.has(t)}getOptions(t=l){return this.instancesOptions.get(t)||{}}initialize(t={}){const{options:e={}}=t,r=this.normalizeInstanceIdentifier(t.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const n=this.getOrInitializeService({instanceIdentifier:r,options:e});for(const[t,e]of this.instancesDeferred.entries()){r===this.normalizeInstanceIdentifier(t)&&e.resolve(n)}return n}onInit(t,e){var r;const n=this.normalizeInstanceIdentifier(e),o=null!==(r=this.onInitCallbacks.get(n))&&void 0!==r?r:new Set;o.add(t),this.onInitCallbacks.set(n,o);const l=this.instances.get(n);
2return l&&t(l,n),()=>{o.delete(t)}}invokeOnInitCallbacks(t,e){const r=this.onInitCallbacks.get(e);if(r)for(const n of r)try{n(t,e)}catch(t){}}getOrInitializeService({instanceIdentifier:t,options:e={}}){let r=this.instances.get(t);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:(n=t,n===l?void 0:n),options:e}),this.instances.set(t,r),this.instancesOptions.set(t,e),this.invokeOnInitCallbacks(r,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,r)}catch(t){}var n;return r||null}normalizeInstanceIdentifier(t=l){return this.component?this.component.multipleInstances?t:l:t}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class h{constructor(t){this.name=t,this.providers=new Map}addComponent(component){const t=this.getProvider(component.name);if(t.isComponentSet())throw new Error(`Component ${component.name} has already been registered with ${this.name}`);t.setComponent(component)}addOrOverwriteComponent(component){this.getProvider(component.name).isComponentSet()&&this.providers.delete(component.name),this.addComponent(component)}getProvider(t){if(this.providers.has(t))return this.providers.get(t);const e=new c(t,this);return this.providers.set(t,e),e}getProviders(){return Array.from(this.providers.values())}}},62:function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var n=r(3),o=r(1),l=r(0);function c(t,e){Object(l.a)(2,arguments);var r=Object(o.a)(t).getTime(),c=Object(n.a)(e);return new Date(r+c)}},63:function(t,e,r){"use strict";function n(t,object){if(null==t)throw new TypeError("assign requires that input parameter not be null or undefined");for(var e in object)Object.prototype.hasOwnProperty.call(object,e)&&(t[e]=object[e]);return t}r.d(e,"a",(function(){return n}))},64:function(t,e,r){"use strict";r.d(e,"a",(function(){return l})),r.d(e,"b",(function(){return c})),r.d(e,"c",(function(){return h}));var n=["D","DD"],o=["YY","YYYY"];function l(t){return-1!==n.indexOf(t)}function c(t){return-1!==o.indexOf(t)}function h(t,e,input){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").
2concat(input,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(input,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(input,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(input,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}},7:function(t,e,r){"use strict";r.d(e,"a",(function(){return we})),r.d(e,"b",(function(){return f})),r.d(e,"c",(function(){return Ze})),r.d(e,"d",(function(){return y})),r.d(e,"e",(function(){return Ft})),r.d(e,"f",(function(){return Bt})),r.d(e,"g",(function(){return Wt})),r.d(e,"h",(function(){return lt})),r.d(e,"i",(function(){return Hr})),r.d(e,"j",(function(){return Xt})),r.d(e,"k",(function(){return Br})),r.d(e,"l",(function(){return re})),r.d(e,"m",(function(){return ne})),r.d(e,"n",(function(){return ie})),r.d(e,"o",(function(){return ee})),r.d(e,"p",(function(){return se})),r.d(e,"q",(function(){return oe})),r.d(e,"r",(function(){return ue})),r.d(e,"s",(function(){return dr})),r.d(e,"t",(function(){return Ee})),r.d(e,"u",(function(){return _e})),r.d(e,"v",(function(){return Te})),r.d(e,"w",(function(){return Oe})),r.d(e,"x",(function(){return Ae})),r.d(e,"y",(function(){return ke})),r.d(e,"z",(function(){return Ce})),r.d(e,"A",(function(){return De})),r.d(e,"B",(function(){return Me})),r.d(e,"C",(function(){return Ne})),r.d(e,"D",(function(){return O})),r.d(e,"E",(function(){return vn})),r.d(e,"F",(function(){return st})),r.d(e,"G",(function(){return ct})),r.d(e,"H",(function(){return gn})),r.d(e,"I",(function(){return cn})),r.d(e,"J",(function(){return ln})),r.d(e,"K",(function(){return Nt})),r.d(e,"L",(function(){return mr})),r.d(e,"M",(function(){return ae})),r.d(e,"N",(function(){return Re})),r.d(e,"O",(function(){return Fe})),r.d(e,"P",(function(){return je})),r.d(e,"Q",(function(){return Le})),r.d(e,"R",(function(){return Be})),r.d(e,"S",(function(){return Ve})),r.d(e,"T",(function(){return ze})),r.d(e,"U",(function(){return Ge})),r.d(e,"V",(function(){return Ue})),r.d(e,"W",(function(){return W})),r.d(e,"X",(function(){return me})),r.d(e,"Y",(function(){return Je})),r.d(e,"Z",(function(){return nr})),r.d(e,"ab",(function(){return sr})),r.d(e,"bb",(function(){return k})),r.d(e,"cb",(function(){return wt})),r.d(e,"db",(function(){return yt})),r.d(e,"eb",(function(){return T})),r.d(e,"fb",(function(){return Bn})),r.d(e,"gb",(function(){return En})),r.d(e,"hb",(function(){return Et})),r.d(e,"ib",(function(){return S})),r.d(e,"jb",(function(){return ur})),r.d(e,"kb",(function(){return tn})),r.d(e,"lb",(function(){return rn})),r.d(e,"mb",(function(){return en})),r.d(e,"nb",(function(){return pn})),r.d(e,"ob",(function(){return fn})),r.d(e,"pb",(function(){return dn})),r.d(e,"qb",(function(){return Ar})),r.d(e,"rb",(function(){return mn})),r.d(e,"sb",(function(){return zn})),r.d(e,"tb",(function(){return Gr})),r.d(e,"ub",(function(){return $n})),r.d(e,"vb",(function(){return Qn})),r.d(e,"wb",(function(){return d})),r.d(e,"xb",(function(){return Ur})),r.d(e,"yb",(function(){return zr})),r.d(e,"zb",(function(){return qr})),r.d(e,"Ab",(function(){return Xe}));var n=r(4),o=r(40),l=r(2),c=r(70),h=r(61);const d={FACEBOOK:"facebook.com",GITHUB:"github.com",GOOGLE:"google.com",PASSWORD:"password",PHONE:"phone",TWITTER:"twitter.com"},f={EMAIL_SIGNIN:"EMAIL_SIGNIN",PASSWORD_RESET:"PASSWORD_RESET",RECOVER_EMAIL:"RECOVER_EMAIL",REVERT_SECOND_FACTOR_ADDITION:"REVERT_SECOND_FACTOR_ADDITION",VERIFY_AND_CHANGE_EMAIL:"VERIFY_AND_CHANGE_EMAIL",VERIFY_EMAIL:"VERIFY_EMAIL"};function m(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}const y=function(){return{"admin-restricted-operation":"This operation is restricted to administrators only.","argument-error":"","app-not-authorized":"This app, identified by the domain where it's hosted, is not authorized to use Firebase Authentication with the provided API key. Review your key configuration in the Google API console.","app-not-installed":"The requested mobile application corresponding to the identifier (Android package name or iOS bundle ID) provided is not installed on this device.","captcha-check-failed":"The reCAPTCHA response token provided is either invalid, expired, already used or the domain associated with it does not match the list of whitelisted domains.","code-expired":"The SMS code has expired. Please re-send the verification code to try again.","cordova-not-ready":"Cordova framework is not ready.","cors-unsupported":"This browser is not supported.","credential-already-in-use":"This credential is already associated with a different user account.","custom-token-mismatch":"The custom token corresponds to a different audience.","requires-recent-login":"This operation is sensitive and requires recent authentication. Log in again before retrying this request.","dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK.","dynamic-link-not-activated":"Please activate Dynamic Links in the Firebase Console and agree to the terms and conditions.","email-change-needs-verification":"Multi-factor users must al
2ways have a verified email.","email-already-in-use":"The email address is already in use by another account.","emulator-config-failed":'Auth instance has already been used to make a network call. Auth can no longer be configured to use the emulator. Try calling "connectAuthEmulator()" sooner.',"expired-action-code":"The action code has expired.","cancelled-popup-request":"This operation has been cancelled due to another conflicting popup being opened.","internal-error":"An internal AuthError has occurred.","invalid-app-credential":"The phone verification request contains an invalid application verifier. The reCAPTCHA token response is either invalid or expired.","invalid-app-id":"The mobile app identifier is not registed for the current project.","invalid-user-token":"This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key.","invalid-auth-event":"An internal AuthError has occurred.","invalid-verification-code":"The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure to use the verification code provided by the user.","invalid-continue-uri":"The continue URL provided in the request is invalid.","invalid-cordova-configuration":"The following Cordova plugins must be installed to enable OAuth sign-in: cordova-plugin-buildinfo, cordova-universal-links-plugin, cordova-plugin-browsertab, cordova-plugin-inappbrowser and cordova-plugin-customurlscheme.","invalid-custom-token":"The custom token format is incorrect. Please check the documentation.","invalid-dynamic-link-domain":"The provided dynamic link domain is not configured or authorized for the current project.","invalid-email":"The email address is badly formatted.","invalid-emulator-scheme":"Emulator URL must start with a valid scheme (http:// or https://).","invalid-api-key":"Your API key is invalid, please check you have copied it correctly.","invalid-cert-hash":"The SHA-1 certificate hash provided is invalid.","invalid-credential":"The supplied auth credential is
vendor: 7,825 bytes, line 2
2 malformed or has expired.","invalid-message-payload":"The email template corresponding to this action contains invalid characters in its message. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-multi-factor-session":"The request does not contain a valid proof of first factor successful sign-in.","invalid-oauth-provider":"EmailAuthProvider is not supported for this operation. This operation only supports OAuth providers.","invalid-oauth-client-id":"The OAuth client ID provided is either invalid or does not match the specified API key.","unauthorized-domain":"This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.","invalid-action-code":"The action code is invalid. This can happen if the code is malformed, expired, or has already been used.","wrong-password":"The password is invalid or the user does not have a password.","invalid-persistence-type":"The specified persistence type is invalid. It can only be local, session or none.","invalid-phone-number":"The format of the phone number provided is incorrect. Please enter the phone number in a format that can be parsed into E.164 format. E.164 phone numbers are written in the format [+][country code][subscriber number including area code].","invalid-provider-id":"The specified provider ID is invalid.","invalid-recipient-email":"The email corresponding to this action failed to send as the provided recipient email address is invalid.","invalid-sender":"The email template corresponding to this action contains an invalid sender email or name. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-verification-id":"The verification ID used to create the phone auth credential is invalid.","invalid-tenant-id":"The Auth instance's tenant ID is invalid.","login-blocked":"Login blocked by user-provided method: {$originalMessage}","missing-android-pkg-name":"An Android Package Name must be provided if the Android App is required to be installed.","auth-domain-config-required":"Be sure to include authDomain when calling firebase.initializeApp(), by following the instructions in the Firebase console.","missing-app-credential":"The phone verification request is missing an application verifier assertion. A reCAPTCHA response token needs to be provided.","missing-verification-code":"The phone auth credential was created with an empty SMS verification code.","missing-continue-uri":"A continue URL must be provided in the request.","missing-iframe-start":"An internal AuthError has occurred.","missing-ios-bundle-id":"An iOS Bundle ID must be provided if an App Store ID is provided.","missing-or-invalid-nonce":"The request does not contain a valid nonce. This can occur if the SHA-256 hash of the provided raw nonce does not match the hashed nonce in the ID token payload.","missing-password":"A non-empty password must be provided","missing-multi-factor-info":"No second factor identifier is provided.","missing-multi-factor-session":"The request is missing proof of first factor successful sign-in.","missing-phone-number":"To send verification codes, provide a phone number for the recipient.","missing-verification-id":"The phone auth credential was created with an empty verification ID.","app-deleted":"This instance of FirebaseApp has been deleted.","multi-factor-info-not-found":"The user does not have a second factor matching the identifier provided.","multi-factor-auth-required":"Proof of ownership of a second factor is required to complete sign-in.","account-exists-with-different-credential":"An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.","network-request-failed":"A network AuthError (such as timeout, interrupted connection or unreachable host) has occurred.","no-auth-event":"An internal AuthError has occurred.","no-such-provider":"User was not linked to an account with the given provider.","null-user":"A null user object was provided as the argument for an operation which requires a non-null user object.","operation-not-allowed":"The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section.","operation-not-supported-in-this-environment":'This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled.',"popup-blocked":"Unable to establish a connection with the popup. It may have been blocked by the browser.","popup-closed-by-user":"The popup has been closed by the user before finalizing the operation.","provider-already-linked":"User can only be linked to one identity for the given provider.","quota-exceeded":"The project's quota for this operation has been exceeded.","redirect-cancelled-by-user":"The redirect operation has been cancelled by the user before finalizing.","redirect-operation-pending":"A redirect sign-in operation is already pending.","rejected-credential":"The request contains malformed or mismatching credentials.","second-factor-already-in-use":"The second factor is already enrolled on this account.","maximum-second-factor-count-exceeded":"The maximum allowed number of second factors on a user has been exceeded.","tenant-id-mismatch":"The provided tenant ID does not match the Auth instance's tenant ID",timeout:"The operation has timed out.","user-token-expired":"The user's credential is no longer valid. The user must sign in again.","too-many-requests":"We have blocked all requests from this device due to unusual activity. Try again later.","unauthorized-continue-uri":"The domain of the continue URL is not whitelisted.  Please whitelist the domain in the Firebase console.","unsupported-first-factor":"Enrolling a second factor or signing in with a multi-factor account requires sign-in with a supported first factor.","unsupported-persistence-type":"The current environment does not support the specified persistence type.","unsupported-tenant-operation":"This operation is not supported in a multi-tenant context.","unverified-email":"The operation requires a verified email.","user-cancelled":"The user did not grant your application the permissions it requested.","user-not-found":"There is no user record corresponding to this identifier. The user may have been deleted.","user-disabled":"The user account has been disabled by an administrator.","user-mismatch":"The supplied credentials do not correspond to the previously signed in user.","user-signed-out":"","weak-password":"The password must be 6 characters long or more.","web-storage-unsupported":"This browser is not supported or 3rd party cookies and data may be disabled.","already-initialized":"initializeAuth() has already been called with different options. To avoid this error, call initializeAuth() with the same options as when it was originally called, or call getAuth() to return the already initialized instance.","missing-recaptcha-token":"The reCAPTCHA token is missing when sending request to the backend.","invalid-recaptcha-token":"The reCAPTCHA token is invalid when sending request to the backend.","invalid-recaptcha-action":"The reCAPTCHA action is invalid when sending request to the backend.","recaptcha-not-enabled":"reCAPTCHA Enterprise integration is not enabled for this project.","missing-client-type":"The reCAPTCHA client type is missing when sending request to the backend.","missing-recaptcha-version":"The reCAPTCHA version is missing when sending request to the backend.","invalid-req-type":"Invalid request parameters.","invalid-recaptcha-version":"The reCAPTCHA version is invalid when sending request to the backend."
2}},v=m,w=new n.b("auth","Firebase",{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}),E=new c.b("@firebase/auth");function _(t,...e){E.logLevel<=c.a.ERROR&&E.error(`Auth (${o.SDK_VERSION}): ${t}`,...e)}function T(t,...e){throw P(t,...e)}function S(t,...e){return P(t,...e)}function x(t,code,e){const r=Object.assign(Object.assign({},v()),{[code]:e});return new n.b("auth","Firebase",r).create(code,{appName:t.name})}function I(t,object,e){if(!(object instanceof e))throw e.name!==object.constructor.name&&T(t,"argument-error"),x(t,"argument-error",`Type of ${object.constructor.name} does not match expected instance.Did you pass a reference from a different Auth SDK?`)}function P(t,...e){if("string"!=typeof t){const code=e[0],r=[...e.slice(1)];return r[0]&&(r[0].appName=t.name),t._errorFactory.create(code,...r)}return w.create(t,...e)}function O(t,e,...r){if(!t)throw P(e,...r)}function A(t){const e="INTERNAL ASSERTION FAILED: "+t;throw _(e),new Error(e)}function k(t,e){t||A(e)}function C(){var t;return"undefined"!=typeof self&&(null===(t=self.location)||void 0===t?void 0:t.href)||""}function D(){return"http:"===M()||"https:"===M()}function M(){var t;return"undefined"!=typeof self&&(null===(t=self.location)||void 0===t?void 0:t.protocol)||null}class N{constructor(t,e){this.shortDelay=t,this.longDelay=e,k(e>t,"Short delay should be less than long delay!"),this.isMobile=Object(n.w)()||Object(n.y)()}get(){return"undefined"!=typeof navigator&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&(D()||Object(n.s)()||"connection"in navigator)&&!navigator.onLine?Math.min(5e3,this.shortDelay):this.isMobile?this.longDelay:this.shortDelay}}function R(t,path){k(t.emulator,"Emulator should always be set here");const{url:e}=t.emulator;return path?`${e}${path.startsWith("/")?path.slice(1):path}`:e}class F{static initialize(t,e,r){this.fetchImpl=t,e&&(this.headersImpl=e),r&&(this.responseImpl=r)}static fetch(){return this.fetchImpl?this.fetchImpl:"undefined"!=typeof self&&"fetch"in self?self.fetch:void A("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){return this.headersImpl?this.headersImpl:"undefined"!=typeof self&&"Headers"in self?self.Headers:void A("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){return this.responseImpl?this.responseImpl:"undefined"!=typeof self&&"Response"in self?self.Response:void A("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}const j={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-rec
2aptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"},L=new N(3e4,6e4);function B(t,e){return t.tenantId&&!e.tenantId?Object.assign(Object.assign({},e),{tenantId:t.tenantId}):e}async function V(t,e,path,r,o={}){return z(t,o,(async()=>{let body={},o={};r&&("GET"===e?o=r:body={body:JSON.stringify(r)});const l=Object(n.z)(Object.assign({key:t.config.apiKey},o)).slice(1),c=await t._getAdditionalHeaders();return c["Content-Type"]="application/json",t.languageCode&&(c["X-Firebase-Locale"]=t.languageCode),F.fetch()(U(t,t.config.apiHost,path,l),Object.assign({method:e,headers:c,referrerPolicy:"no-referrer"},body))}))}async function z(t,e,r){t._canInitEmulator=!1;const o=Object.assign(Object.assign({},j),e);try{const e=new $(t),n=await Promise.race([r(),e.promise]);e.clearNetworkTimeout();const l=await n.json();if("needConfirmation"in l)throw H(t,"account-exists-with-different-credential",l);if(n.ok&&!("errorMessage"in l))return l;{const e=n.ok?l.errorMessage:l.error.message,[r,c]=e.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===r)throw H(t,"credential-already-in-use",l);if("EMAIL_EXISTS"===r)throw H(t,"email-already-in-use",l);if("USER_DISABLED"===r)throw H(t,"user-disabled",l);const h=o[r]||r.toLowerCase().replace(/[_\s]+/g,"-");if(c)throw x(t,h,c);T(t,h)}}catch(e){if(e instanceof n.c)throw e;T(t,"network-request-failed",{message:String(e)})}}async function G(t,e,path,r,n={}){const o=await V(t,e,path,r,n);return"mfaPendingCredential"in o&&T(t,"multi-factor-auth-required",{_serverResponse:o}),o}function U(t,e,path,r){const base=`${e}${path}?${r}`;return t.config.emulator?R(t.config,base):`${t.config.apiScheme}://${base}`}class ${constructor(t){this.auth=t,this.timer=null,this.promise=new Promise(((t,e)=>{this.timer=setTimeout((()=>e(S(this.auth,"network-request-failed"))),L.get())}))}clearNetworkTimeout(){clearTimeout(this.timer)}}function H(t,code,e){const r={appName:t.name};e.email&&(r.email=e.email),e.phoneNumber&&(r.phoneNumber=e.phoneNumber);const n=S(t,code,r);return n.customData._tokenResponse=e,n}function Y(t){if(t)try{const e=new Date(Number(t));if(!isNaN(e.getTime()))return e.toUTCString()}catch(t){}}function W(t,e=!1){return Object(n.p)(t).getIdToken(e)}function K(t){return 1e3*Number(t)}function Q(t){const[e,r,o]=t.split(".");if(void 0===e||void 0===r||void 0===o)return _("JWT malformed, contained fewer than 3 sections"),null;try{const t=Object(n.e)(r);return t?JSON.parse(t):(_("Failed to decode base64 JWT payload"),null)}catch(t){return _("Caught error parsing JWT payload as JSON",null==t?void 0:t.toString()),null}}async function J(t,e,r=!1){if(r)return e;try{return await e}catch(e){throw e instanceof n.c&&function({code:code}){return"auth/user-disabled"===code||"auth/user-token-expired"===code}(e)&&t.auth.currentUser===t&&await t.auth.signOut(),e}}class X{constructor(t){this.user=t,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}getInterval(t){var e;if(t){const t=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),t}{this.errorBackoff=3e4;const t=(null!==(e=this.user.stsTokenManager.expirationTime)&&void 0!==e?e:0)-Date.now()-3e5;return Math.max(0,t)}}schedule(t=!1){if(!this.isRunning)return;const e=this.getInterval(t);this.timerId=setTimeout((async()=>{await this.iteration()}),e)}async iteration(){try{await this.user.getIdToken(!0)}catch(t){return void("auth/network-request-failed"===(null==t?void 0:t.code)&&this.schedule(!0))}this.schedule()}}class Z{constructor(t,e){this.createdAt=t,this.lastLoginAt=e,this._initializeTime()}_initializeTime(){this.lastSignInTime=Y(this.lastLoginAt),this.creationTime=Y(this.createdAt)}_copy(t){this.createdAt=t.createdAt,this.lastLoginAt=t.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}async function tt(t){var e;const r=t.auth,n=await t.getIdToken(),o=await J(t,async function(t,e){return V(t,"POST","/v1/accounts:lookup",e)}(r,{idToken:n}));O(null==o?void 0:o.users.length,r,"internal-error");const c=o.users[0];t._notifyReloadListener(c);const h=(null===(e=c.providerUserInfo)||void 0===e?void 0:e.length)?c.providerUserInfo.map((t=>{var{providerId:e}=t,r=Object(l.f)(t,["providerId"]);
vendor: 5,763 bytes, line 2
2return{providerId:e,uid:r.rawId||"",displayName:r.displayName||null,email:r.email||null,phoneNumber:r.phoneNumber||null,photoURL:r.photoUrl||null}})):[];const d=(f=t.providerData,m=h,[...f.filter((t=>!m.some((e=>e.providerId===t.providerId)))),...m]);var f,m;const y=t.isAnonymous,v=!(t.email&&c.passwordHash||(null==d?void 0:d.length)),w=!!y&&v,E={uid:c.localId,displayName:c.displayName||null,photoURL:c.photoUrl||null,email:c.email||null,emailVerified:c.emailVerified||!1,phoneNumber:c.phoneNumber||null,tenantId:c.tenantId||null,providerData:d,metadata:new Z(c.createdAt,c.lastLoginAt),isAnonymous:w};Object.assign(t,E)}class et{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(t){O(t.idToken,"internal-error"),O(void 0!==t.idToken,"internal-error"),O(void 0!==t.refreshToken,"internal-error");const e="expiresIn"in t&&void 0!==t.expiresIn?Number(t.expiresIn):function(t){const e=Q(t);return O(e,"internal-error"),O(void 0!==e.exp,"internal-error"),O(void 0!==e.iat,"internal-error"),Number(e.exp)-Number(e.iat)}(t.idToken);this.updateTokensAndExpiration(t.idToken,t.refreshToken,e)}async getToken(t,e=!1){return O(!this.accessToken||this.refreshToken,t,"user-token-expired"),e||!this.accessToken||this.isExpired?this.refreshToken?(await this.refresh(t,this.refreshToken),this.accessToken):null:this.accessToken}clearRefreshToken(){this.refreshToken=null}async refresh(t,e){const{accessToken:r,refreshToken:o,expiresIn:l}=await async function(t,e){const r=await z(t,{},(async()=>{const body=Object(n.z)({grant_type:"refresh_token",refresh_token:e}).slice(1),{tokenApiHost:r,apiKey:o}=t.config,l=U(t,r,"/v1/token",`key=${o}`),c=await t._getAdditionalHeaders();return c["Content-Type"]="application/x-www-form-urlencoded",F.fetch()(l,{method:"POST",headers:c,body:body})}));return{accessToken:r.access_token,expiresIn:r.expires_in,refreshToken:r.refresh_token}}(t,e);this.updateTokensAndExpiration(r,o,Number(l))}updateTokensAndExpiration(t,e,r){this.refreshToken=e||null,this.accessToken=t||null,this.expirationTime=Date.now()+1e3*r}static fromJSON(t,object){const{refreshToken:e,accessToken:r,expirationTime:n}=object,o=new et;return e&&(O("string"==typeof e,"internal-error",{appName:t}),o.refreshToken=e),r&&(O("string"==typeof r,"internal-error",{appName:t}),o.accessToken=r),n&&(O("number"==typeof n,"internal-error",{appName:t}),o.expirationTime=n),o}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(t){this.accessToken=t.accessToken,this.refreshToken=t.refreshToken,this.expirationTime=t.expirationTime}_clone(){return Object.assign(new et,this.toJSON())}_performRefresh(){return A("not implemented")}}function nt(t,e){O("string"==typeof t||void 0===t,"internal-error",{appName:e})}class it{constructor(t){var{uid:e,auth:r,stsTokenManager:n}=t,o=Object(l.f)(t,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new X(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=e,this.auth=r,this.stsTokenManager=n,this.accessToken=n.accessToken,this.displayName=o.displayName||null,this.email=o.email||null,this.emailVerified=o.emailVerified||!1,this.phoneNumber=o.phoneNumber||null,this.photoURL=o.photoURL||null,this.isAnonymous=o.isAnonymous||!1,this.tenantId=o.tenantId||null,this.providerData=o.providerData?[...o.providerData]:[],this.metadata=new Z(o.createdAt||void 0,o.lastLoginAt||void 0)}async getIdToken(t){const e=await J(this,this.stsTokenManager.getToken(this.auth,t));return O(e,this.auth,"internal-error"),this.accessToken!==e&&(this.accessToken=e,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),e}getIdTokenResult(t){return async function(t,e=!1){const r=Object(n.p)(t),o=await r.getIdToken(e),l=Q(o);O(l&&l.exp&&l.auth_time&&l.iat,r.auth,"internal-error");const c="object"==typeof l.firebase?l.firebase:void 0,h=null==c?void 0:c.sign_in_provider;return{claims:l,token:o,authTime:Y(K(l.auth_time)),issuedAtTime:Y(K(l.iat)),expirationTime:Y(K(l.exp)),signInProvider:h||null,signInSecondFactor:(null==c?void 0:c.sign_in_second_factor)||null}}(this,t)}reload(){return async function(t){const e=Object(n.p)(t);await tt(e),await e.auth._persistUserIfCurrent(e),e.auth._notifyListenersIfCurrent(e)}(this)}_assign(t){this!==t&&(O(this.uid===t.uid,this.auth,"internal-error"),this.displayName=t.displayName,this.photoURL=t.photoURL,this.email=t.email,this.emailVerified=t.emailVerified,this.phoneNumber=t.phoneNumber,this.isAnonymous=t.isAnonymous,this.tenantId=t.tenantId,this.providerData=t.providerData.map((t=>Object.assign({},t))),this.metadata._copy(t.metadata),this.stsTokenManager._assign(t.stsTokenManager))}_clone(t){const e=new it(Object.assign(Object.assign({},this),{auth:t,stsTokenManager:this.stsTokenManager._clone()}));return e.metadata._copy(this.metadata),e}_onReload(t){O(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=t,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(t){this.reloadListener?this.reloadListener(t):this.reloadUserInfo=t}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(t,e=!1){let r=!1;t.idToken&&t.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(t),r=!0),e&&await tt(this),await this.auth._persistUserIfCurrent(this),r&&this.auth._notifyListenersIfCurrent(this)}async delete(){const t=await this.getIdToken();return await J(this,async function(t,e){return V(t,"POST","/v1/accounts:delete",e)}
vendor: 6,795 bytes, line 2
2(this.auth,{idToken:t})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map((t=>Object.assign({},t))),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(t,object){var e,r,n,o,l,c,h,d;const f=null!==(e=object.displayName)&&void 0!==e?e:void 0,m=null!==(r=object.email)&&void 0!==r?r:void 0,y=null!==(n=object.phoneNumber)&&void 0!==n?n:void 0,v=null!==(o=object.photoURL)&&void 0!==o?o:void 0,w=null!==(l=object.tenantId)&&void 0!==l?l:void 0,E=null!==(c=object._redirectEventId)&&void 0!==c?c:void 0,_=null!==(h=object.createdAt)&&void 0!==h?h:void 0,T=null!==(d=object.lastLoginAt)&&void 0!==d?d:void 0,{uid:S,emailVerified:x,isAnonymous:I,providerData:P,stsTokenManager:A}=object;O(S&&A,t,"internal-error");const k=et.fromJSON(this.name,A);O("string"==typeof S,t,"internal-error"),nt(f,t.name),nt(m,t.name),O("boolean"==typeof x,t,"internal-error"),O("boolean"==typeof I,t,"internal-error"),nt(y,t.name),nt(v,t.name),nt(w,t.name),nt(E,t.name),nt(_,t.name),nt(T,t.name);const C=new it({uid:S,auth:t,email:m,emailVerified:x,displayName:f,isAnonymous:I,photoURL:v,phoneNumber:y,tenantId:w,stsTokenManager:k,createdAt:_,lastLoginAt:T});return P&&Array.isArray(P)&&(C.providerData=P.map((t=>Object.assign({},t)))),E&&(C._redirectEventId=E),C}static async _fromIdTokenResponse(t,e,r=!1){const n=new et;n.updateFromServerResponse(e);const o=new it({uid:e.localId,auth:t,stsTokenManager:n,isAnonymous:r});return await tt(o),o}}const at=new Map;function st(t){k(t instanceof Function,"Expected a class definition");let e=at.get(t);return e?(k(e instanceof t,"Instance stored in cache mismatched with class"),e):(e=new t,at.set(t,e),e)}class ot{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(t,e){this.storage[t]=e}async _get(t){const e=this.storage[t];return void 0===e?null:e}async _remove(t){delete this.storage[t]}_addListener(t,e){}_removeListener(t,e){}}ot.type="NONE";const lt=ot;function ct(t,e,r){return`firebase:${t}:${e}:${r}`}class ht{constructor(t,e,r){this.persistence=t,this.auth=e,this.userKey=r;const{config:n,name:o}=this.auth;this.fullUserKey=ct(this.userKey,n.apiKey,o),this.fullPersistenceKey=ct("persistence",n.apiKey,o),this.boundEventHandler=e._onStorageEvent.bind(e),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(t){return this.persistence._set(this.fullUserKey,t.toJSON())}async getCurrentUser(){const t=await this.persistence._get(this.fullUserKey);return t?it._fromJSON(this.auth,t):null}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(t){if(this.persistence===t)return;const e=await this.getCurrentUser();return await this.removeCurrentUser(),this.persistence=t,e?this.setCurrentUser(e):void 0}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(t,e,r="authUser"){if(!e.length)return new ht(st(lt),t,r);const n=(await Promise.all(e.map((async t=>{if(await t._isAvailable())return t})))).filter((t=>t));let o=n[0]||st(lt);const l=ct(r,t.config.apiKey,t.name);let c=null;for(const r of e)try{const e=await r._get(l);if(e){const n=it._fromJSON(t,e);r!==o&&(c=n),o=r;break}}catch(t){}const h=n.filter((p=>p._shouldAllowMigration));return o._shouldAllowMigration&&h.length?(o=h[0],c&&await o._set(l,c.toJSON()),await Promise.all(e.map((async t=>{if(t!==o)try{await t._remove(l)}catch(t){}}))),new ht(o,t,r)):new ht(o,t,r)}}function ut(t){const e=t.toLowerCase();if(e.includes("opera/")||e.includes("opr/")||e.includes("opios/"))return"Opera";if(gt(e))return"IEMobile";if(e.includes("msie")||e.includes("trident/"))return"IE";if(e.includes("edge/"))return"Edge";if(pt(e))return"Firefox";if(e.includes("silk/"))return"Silk";if(vt(e))return"Blackberry";if(bt(e))return"Webos";if(ft(e))return"Safari";if((e.includes("chrome/")||mt(e))&&!e.includes("edge/"))return"Chrome";if(yt(e))return"Android";{const e=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,r=t.match(e);if(2===(null==r?void 0:r.length))return r[1]}return"Other"}function pt(t=Object(n.q)()){return/firefox\//i.test(t)}function ft(t=Object(n.q)()){const e=t.toLowerCase();return e.includes("safari/")&&!e.includes("chrome/")&&!e.includes("crios/")&&!e.includes("android")}function mt(t=Object(n.q)()){return/crios\//i.test(t)}function gt(t=Object(n.q)()){return/iemobile/i.test(t)}function yt(t=Object(n.q)()){return/android/i.test(t)}function vt(t=Object(n.q)()){return/blackberry/i.test(t)}function bt(t=Object(n.q)()){return/webos/i.test(t)}function wt(t=Object(n.q)()){return/iphone|ipad|ipod/i.test(t)||/macintosh/i.test(t)&&/mobile/i.test(t)}function Et(t=Object(n.q)()){return/(iPad|iPhone|iPod).*OS 7_\d/i.test(t)||/(iPad|iPhone|iPod).*OS 8_\d/i.test(t)}function _t(t=Object(n.q)()){return wt(t)||yt(t)||bt(t)||vt(t)||/windows phone/i.test(t)||gt(t)}function Tt(t,e=[]){let r;switch(t){case"Browser":r=ut(Object(n.q)());break;case"Worker":r=`${ut(Object(n.q)())}-${t}`;break;default:r=t}const l=e.length?e.join(","):"FirebaseCore-web";return`${r}/JsCore/${o.SDK_VERSION}/${l}`}async function St(t,e){return V(t,"GET","/v2/recaptchaConfig",B(t,e))}function xt(t){return void 0!==t&&void 0!==t.getResponse}function It(t){return void 0!==t&&void 0!==t.enterprise}class Pt{constructor(t){if(this.siteKey="",this.emailPasswordEnabled=!1,void 0===t.recaptchaKey)throw new Error("recaptchaKey undefined");this.siteKey=t.recaptchaKey.split("/")[3],this.emailPasswordEnabled=t.recaptchaEnforcementState.some((t=>"EMAIL_PASSWORD_PROVIDER"===t.provider&&"OFF"!==t.enforcementState))}}function Ot(t){return new Promise(((e,r)=>{const n=document.createElement("script");var o,l;n.setAttribute("src",t),n.onload=e,n.onerror=t=>{const e=S("internal-error");e.customData=t,r(e)},n.type="text/javascript",n.charset="UTF-8",(null!==(l=null===(o=document.getElementsByTagName("head"))||void 0===o?void 0:o[0])&&void 0!==l?l:document).appendChild(n)}))}function At(t){return`__${t}${Math.floor(1e6*Math.random())}`}class kt{constructor(t){this.type="recaptcha-enterprise",this.auth=Nt(t)}async verify(t="verify",e=!1){function r(e,r,n){const o=window.grecaptcha;It(o)?o.enterprise.ready((()=>{o.enterprise.execute(e,{action:t}).then((t=>{r(t)}
2)).catch((()=>{r("NO_RECAPTCHA")}))})):n(Error("No reCAPTCHA enterprise script loaded."))}return new Promise(((t,n)=>{(async function(t){if(!e){if(null==t.tenantId&&null!=t._agentRecaptchaConfig)return t._agentRecaptchaConfig.siteKey;if(null!=t.tenantId&&void 0!==t._tenantRecaptchaConfigs[t.tenantId])return t._tenantRecaptchaConfigs[t.tenantId].siteKey}return new Promise((async(e,r)=>{St(t,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then((n=>{if(void 0!==n.recaptchaKey){const r=new Pt(n);return null==t.tenantId?t._agentRecaptchaConfig=r:t._tenantRecaptchaConfigs[t.tenantId]=r,e(r.siteKey)}r(new Error("recaptcha Enterprise site key undefined"))})).catch((t=>{r(t)}))}))})(this.auth).then((o=>{if(!e&&It(window.grecaptcha))r(o,t,n);else{if("undefined"==typeof window)return void n(new Error("RecaptchaVerifier is only supported in browser"));Ot("https://www.google.com/recaptcha/enterprise.js?render="+o).then((()=>{r(o,t,n)})).catch((t=>{n(t)}))}})).catch((t=>{n(t)}))}))}}async function Ct(t,e,r,n=!1){const o=new kt(t);let l;try{l=await o.verify(r)}catch(t){l=await o.verify(r,!0)}const c=Object.assign({},e);return n?Object.assign(c,{captchaResp:l}):Object.assign(c,{captchaResponse:l}),Object.assign(c,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(c,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),c}class Dt{constructor(t){this.auth=t,this.queue=[]}pushCallback(t,e){const r=e=>new Promise(((r,n)=>{try{r(t(e))}catch(t){n(t)}}));r.onAbort=e,this.queue.push(r);const n=this.queue.length-1;return()=>{this.queue[n]=()=>Promise.resolve()}}async runMiddleware(t){if(this.auth.currentUser===t)return;const e=[];try{for(const r of this.queue)await r(t),r.onAbort&&e.push(r.onAbort)}catch(t){e.reverse();for(const t of e)try{t()}catch(t){}throw this.auth._errorFactory.create("login-blocked",{originalMessage:null==t?void 0:t.message})}}}class Mt{constructor(t,e,r,n){this.app=t,this.heartbeatServiceProvider=e,this.appCheckServiceProvider=r,this.config=n,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new Rt(this),this.idTokenSubscription=new Rt(this),this.beforeStateQueue=new Dt(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=w,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=t.name,this.clientVersion=n.sdkClientVersion}_initializeWithPersistence(t,e){return e&&(this._popupRedirectResolver=st(e)),this._initializationPromise=this.queue((async()=>{var r,n;if(!this._deleted&&(this.persistenceManager=await ht.create(this,t),!this._deleted)){if(null===(r=this._popupRedirectResolver)||void 0===r?void 0:r._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch(t){}await this.initializeCurrentUser(e),this.lastNotifiedUid=(null===(n=this.currentUser)||void 0===n?void 0:n.uid)||null,this._deleted||(this._isInitialized=!0)}})),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const t=await this.assertedPersistence.getCurrentUser();return this.currentUser||t?this.currentUser&&t&&this.currentUser.uid===t.uid?(this._currentUser._assign(t),void await this.currentUser.getIdToken()):void await this._updateCurrentUser(t,!0):void 0}async initializeCurrentUser(t){var e;const r=await this.assertedPersistence.getCurrentUser();let n=r,o=!1;if(t&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const r=null===(e=this.redirectUser)||void 0===e?void 0:e._redirectEventId,l=null==n?void 0:n._redirectEventId,c=await this.tryRedirectSignIn(t);r&&r!==l||!(null==c?void 0:c.user)||(n=c.user,o=!0)}if(!n)return this.directlySetCurrentUser(null);if(!n._redirectEventId){if(o)try{await this.beforeStateQueue.runMiddleware(n)}catch(t){n=r,this._popupRedirectResolver._overrideRedirectResult(this,(()=>Promise.reject(t)))}return n?this.reloadAndSetCurrentUserOrClear(n):this.directlySetCurrentUser(null)}return O(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===n._redirectEventId?this.directlySetCurrentUser(n):this.reloadAndSetCurrentUserOrClear(n)}async tryRedirectSignIn(t){let e=null;try{e=await this._popupRedirectResolver._completeRedirectFn(this,t,!0)}catch(t){await this._setRedirectUser(null)}return e}async reloadAndSetCurrentUserOrClear(t){try{await tt(t)}catch(t){if("auth/network-request-failed"!==(null==t?void 0:t.code))return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(t)}useDeviceLanguage(){this.languageCode=function(){if("undefined"==typeof navigator)return null;const t=navigator;return t.languages&&t.languages[0]||t.language||null}()}async _delete(){this._deleted=!0}
2async updateCurrentUser(t){const e=t?Object(n.p)(t):null;return e&&O(e.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(e&&e._clone(this))}async _updateCurrentUser(t,e=!1){if(!this._deleted)return t&&O(this.tenantId===t.tenantId,this,"tenant-id-mismatch"),e||await this.beforeStateQueue.runMiddleware(t),this.queue((async()=>{await this.directlySetCurrentUser(t),this.notifyAuthListeners()}))}async signOut(){return await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0)}setPersistence(t){return this.queue((async()=>{await this.assertedPersistence.setPersistence(st(t))}))}async initializeRecaptchaConfig(){const t=await St(this,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}),e=new Pt(t);if(null==this.tenantId?this._agentRecaptchaConfig=e:this._tenantRecaptchaConfigs[this.tenantId]=e,e.emailPasswordEnabled){new kt(this).verify()}}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(t){this._errorFactory=new n.b("auth","Firebase",t())}onAuthStateChanged(t,e,r){return this.registerStateListener(this.authStateSubscription,t,e,r)}beforeAuthStateChanged(t,e){return this.beforeStateQueue.pushCallback(t,e)}onIdTokenChanged(t,e,r){return this.registerStateListener(this.idTokenSubscription,t,e,r)}toJSON(){var t;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null===(t=this._currentUser)||void 0===t?void 0:t.toJSON()}}async _setRedirectUser(t,e){const r=await this.getOrInitRedirectPersistenceManager(e);return null===t?r.removeCurrentUser():r.setCurrentUser(t)}async getOrInitRedirectPersistenceManager(t){if(!this.redirectPersistenceManager){const e=t&&st(t)||this._popupRedirectResolver;O(e,this,"argument-error"),this.redirectPersistenceManager=await ht.create(this,[st(e._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(t){var e,r;return this._isInitialized&&await this.queue((async()=>{})),(null===(e=this._currentUser)||void 0===e?void 0:e._redirectEventId)===t?this._currentUser:(null===(r=this.redirectUser)||void 0===r?void 0:r._redirectEventId)===t?this.redirectUser:null}async _persistUserIfCurrent(t){if(t===this.currentUser)return this.queue((async()=>this.directlySetCurrentUser(t)))}_notifyListenersIfCurrent(t){t===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var t,e;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const r=null!==(e=null===(t=this.currentUser)||void 0===t?void 0:t.uid)&&void 0!==e?e:null;this.lastNotifiedUid!==r&&(this.lastNotifiedUid=r,this.authStateSubscription.next(this.currentUser))}registerStateListener(t,e,r,n){if(this._deleted)return()=>{};const o="function"==typeof e?e:e.next.bind(e),l=this._isInitialized?Promise.resolve():this._initializationPromise;return O(l,this,"internal-error"),l.then((()=>o(this.currentUser))),"function"==typeof e?t.addObserver(e,r,n):t.addObserver(e)}async directlySetCurrentUser(t){this.currentUser&&this.currentUser!==t&&this._currentUser._stopProactiveRefresh(),t&&this.isProactiveRefreshEnabled&&t._startProactiveRefresh(),this.currentUser=t,t?await this.assertedPersistence.setCurrentUser(t):await this.assertedPersistence.removeCurrentUser()}queue(t){return this.operations=this.operations.then(t,t),this.operations}get assertedPersistence(){return O(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(t){t&&!this.frameworks.includes(t)&&(this.frameworks.push(t),this.frameworks.sort(),this.clientVersion=Tt(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var t;const e={"X-Client-Version":this.clientVersion};this.app.options.appId&&(e["X-Firebase-gmpid"]=this.app.options.appId);const r=await(null===(t=this.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===t?void 0:t.getHeartbeatsHeader());r&&(e["X-Firebase-Client"]=r);const n=await this._getAppCheckToken();return n&&(e["X-Firebase-AppCheck"]=n),e}async _getAppCheckToken(){var t;const e=await(null===(t=this.appCheckServiceProvider.getImmediate({optional:!0}))||void 0===t?void 0:t.getToken());return(null==e?void 0:e.error)&&function(t,...e){E.logLevel<=c.a.WARN&&E.warn(`Auth (${o.SDK_VERSION}): ${t}`,...e)}(`Error while retrieving App Check token: ${e.error}`),null==e?void 0:e.token}}function Nt(t){return Object(n.p)(t)}class Rt{constructor(t){this.auth=t,this.observer=null,this.addObserver=Object(n.i)((t=>this.observer=t))}get next(){return O(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}function Ft(t,e,r){const n=Nt(t);O(n._canInitEmulator,n,"emulator-config-failed"),O(/^https?:\/\//.test(e),n,"invalid-emulator-scheme");const o=!!(null==r?void 0:r.disableWarnings),l=jt(e),{host:c,port:h}=function(t){const e=jt(t),r=/(\/\/)?([^?#/]+)/.exec(t.substr(e.length));if(!r)return{host:"",port:null};const n=r[2].split("@").pop()||"",o=/^(\[[^\]]+\])(:|$)/.exec(n);if(o){const t=o[1];return{host:t,port:Lt(n.substr(t.length+1))}}{const[t,e]=n.split(":");return{host:t,port:Lt(e)}}}(e),d=null===h?"":`:${h}`;n.config.emulator={url:`${l}//${c}${d}/`},n.settings.appVerificationDisabledForTesting=!0,n.emulatorConfig=Object.freeze({host:c,port:h,protocol:l.replace(":",""),options:Object.freeze({disableWarnings:o})}),o||function(){function t(){const t=document.createElement("p"),e=t.style;t.innerText="Running in emulator mode. Do not use with production credentials.",e.position="fixed",e.width="100%",e.backgroundColor="#ffffff",e.border=".1em solid #000000",e.color="#b50000",e.bottom="0px",e.left="0px",e.margin="0px",e.zIndex="10000",e.textAlign="center",t.classList.add("firebase-emulator-warning"),document.body.appendChild(t)}"undefined"!=typeof console&&"function"==typeof console.info&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only.  Do not use with production credentials.");"undefined"!=typeof window&&"undefined"!=typeof document&&("loading"===document.readyState?window.addEventListener("DOMContentLoaded",t):t())}()}function jt(t){const e=t.indexOf(":");return e<0?"":t.substr(0,e+1)}function Lt(t){if(!t)return null;const e=Number(t);return isNaN(e)?null:e}class Bt{constructor(t,e){this.providerId=t,this.signInMethod=e}toJSON(){return A("not implemented")}_getIdTokenResponse(t){return A("not implemented")}_linkToIdToken(t,e){return A("not implemented")}_getReauthenticationResolver(t){return A("not implemented")}}async function Vt(t,e){return V(t,"POST","/v1/accounts:resetPassword",B(t,e))}async function zt(t,e){return V(t,"POST","/v1/accounts:update",e)}async function Gt(t,e){return G(t,"POST","/v1/accounts:signInWithPassword",B(t,e))}async function Ut(t,e){return V(t,"POST","/v1/accounts:sendOobCode",B(t,e))}async function $t(t,e){return Ut(t,e)}async function qt(t,e){return Ut(t,e)}class Ht extends Bt{constructor(t,e,r,n=null){super("password",r),this._email=t,this._password=e,this._tenantId=n}static _fromEmailAndPassword(t,e){return new Ht(t,e,"password")}static _fromEmailAndCode(t,e,r=null){return new Ht(t,e,"emailLink",r)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(t){const e="string"==typeof t?JSON.parse(t):t;if((null==e?void 0:e.email)&&(null==e?void 0:e.password)){if("password"===e.signInMethod)return this._fromEmailAndPassword(e.email,e.password);if("emailLink"===e.signInMethod)return this._fromEmailAndCode(e.email,e.password,e.tenantId)}return null}async _getIdTokenResponse(t){var e;switch(this.signInMethod){case"password":const r={returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"};if(null===(e=t._getRecaptchaConfig())||void 0===e?void 0:e.emailPasswordEnabled){const e=await Ct(t,r,"signInWithPassword");return Gt(t,e)}return Gt(t,r).catch((async e=>
vendor: 1,527 bytes, line 2
2{if("auth/missing-recaptcha-token"===e.code){console.log("Sign-in with email address and password is protected by reCAPTCHA for this project. Automatically triggering the reCAPTCHA flow and restarting the sign-in flow.");const e=await Ct(t,r,"signInWithPassword");return Gt(t,e)}return Promise.reject(e)}));case"emailLink":return async function(t,e){return G(t,"POST","/v1/accounts:signInWithEmailLink",B(t,e))}(t,{email:this._email,oobCode:this._password});default:T(t,"internal-error")}}async _linkToIdToken(t,e){switch(this.signInMethod){case"password":return zt(t,{idToken:e,returnSecureToken:!0,email:this._email,password:this._password});case"emailLink":return async function(t,e){return G(t,"POST","/v1/accounts:signInWithEmailLink",B(t,e))}(t,{idToken:e,email:this._email,oobCode:this._password});default:T(t,"internal-error")}}_getReauthenticationResolver(t){return this._getIdTokenResponse(t)}}async function Yt(t,e){return G(t,"POST","/v1/accounts:signInWithIdp",B(t,e))}class Wt extends Bt{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(t){const e=new Wt(t.providerId,t.signInMethod);return t.idToken||t.accessToken?(t.idToken&&(e.idToken=t.idToken),t.accessToken&&(e.accessToken=t.accessToken),t.nonce&&!t.pendingToken&&(e.nonce=t.nonce),t.pendingToken&&(e.pendingToken=t.pendingToken)):t.oauthToken&&t.oauthTokenSecret?(e.accessToken=t.oauthToken,e.secret=t.oauthTokenSecret):T("argument-error"),e}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,n
2once:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(t){const e="string"==typeof t?JSON.parse(t):t,{providerId:r,signInMethod:n}=e,o=Object(l.f)(e,["providerId","signInMethod"]);if(!r||!n)return null;const c=new Wt(r,n);return c.idToken=o.idToken||void 0,c.accessToken=o.accessToken||void 0,c.secret=o.secret,c.nonce=o.nonce,c.pendingToken=o.pendingToken||null,c}_getIdTokenResponse(t){return Yt(t,this.buildRequest())}_linkToIdToken(t,e){const r=this.buildRequest();return r.idToken=e,Yt(t,r)}_getReauthenticationResolver(t){const e=this.buildRequest();return e.autoCreate=!1,Yt(t,e)}buildRequest(){const t={requestUri:"http://localhost",returnSecureToken:!0};if(this.pendingToken)t.pendingToken=this.pendingToken;else{const e={};this.idToken&&(e.id_token=this.idToken),this.accessToken&&(e.access_token=this.accessToken),this.secret&&(e.oauth_token_secret=this.secret),e.providerId=this.providerId,this.nonce&&!this.pendingToken&&(e.nonce=this.nonce),t.postBody=Object(n.z)(e)}return t}}const Kt={USER_NOT_FOUND:"user-not-found"};class Qt extends Bt{constructor(t){super("phone","phone"),this.params=t}static _fromVerification(t,e){return new Qt({verificationId:t,verificationCode:e})}static _fromTokenResponse(t,e){return new Qt({phoneNumber:t,temporaryProof:e})}_getIdTokenResponse(t){return async function(t,e){return G(t,"POST","/v1/accounts:signInWithPhoneNumber",B(t,e))}(t,this._makeVerificationRequest())}_linkToIdToken(t,e){return async function(t,e){const r=await G(t,"POST","/v1/accounts:signInWithPhoneNumber",B(t,e));if(r.temporaryProof)throw H(t,"account-exists-with-different-credential",r);return r}(t,Object.assign({idToken:e},this._makeVerificationRequest()))}_getReauthenticationResolver(t){return async function(t,e){return G(t,"POST","/v1/accounts:signInWithPhoneNumber",B(t,Object.assign(Object.assign({},e),{operation:"REAUTH"})),Kt)}(t,this._makeVerificationRequest())}_makeVerificationRequest(){const{temporaryProof:t,phoneNumber:e,verificationId:r,verificationCode:n}=this.params;return t&&e?{temporaryProof:t,phoneNumber:e}:{sessionInfo:r,code:n}}toJSON(){const t={providerId:this.providerId};return this.params.phoneNumber&&(t.phoneNumber=this.params.phoneNumber),this.params.temporaryProof&&(t.temporaryProof=this.params.temporaryProof),this.params.verificationCode&&(t.verificationCode=this.params.verificationCode),this.params.verificationId&&(t.verificationId=this.params.verificationId),t}static fromJSON(t){"string"==typeof t&&(t=JSON.parse(t));const{verificationId:e,verificationCode:r,phoneNumber:n,temporaryProof:o}=t;return r||e||n||o?new Qt({verificationId:e,verificationCode:r,phoneNumber:n,temporaryProof:o}):null}}class Jt{constructor(t){var e,r,o,l,c,h;const d=Object(n.A)(Object(n.l)(t)),f=null!==(e=d.apiKey)&&void 0!==e?e:null,code=null!==(r=d.oobCode)&&void 0!==r?r:null,m=function(t){switch(t){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}(null!==(o=d.mode)&&void 0!==o?o:null);O(f&&code&&m,"argument-error"),this.apiKey=f,this.operation=m,this.code=code,this.continueUrl=null!==(l=d.continueUrl)&&void 0!==l?l:null,this.languageCode=null!==(c=d.languageCode)&&void 0!==c?c:null,this.tenantId=null!==(h=d.tenantId)&&void 0!==h?h:null}static parseLink(link){const t=function(t){const link=Object(n.A)(Object(n.l)(t)).link,e=link?Object(n.A)(Object(n.l)(link)).deep_link_id:null,r=Object(n.A)(Object(n.l)(t)).deep_link_id;return(r?Object(n.A)(Object(n.l)(r)).link:null)||r||e||link||t}(link);try{return new Jt(t)}catch(t){return null}}}class Xt{constructor(){this.providerId=Xt.PROVIDER_ID}static credential(t,e){return Ht._fromEmailAndPassword(t,e)}static credentialWithLink(t,e){const r=Jt.parseLink(e);return O(r,"argument-error"),Ht._fromEmailAndCode(t,r.code,r.tenantId)}}Xt.PROVIDER_ID="password",Xt.EMAIL_PASSWORD_SIGN_IN_METHOD="password",Xt.EMAIL_LINK_SIGN_IN_METHOD="emailLink";class Zt{constructor(t){this.providerId=t,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(t){this.defaultLanguageCode=t}setCustomParameters(t){return this.customParameters=t,this}getCustomParameters(){return this.customParameters}}class te extends Zt{constructor(){super(...arguments),this.scopes=[]}addScope(t){return this.scopes.includes(t)||this.scopes.push(t),this}getScopes(){return[...this.scopes]}}class ee extends te{static credentialFromJSON(t){const e="string"==typeof t?JSON.parse(t):t;return O("providerId"in e&&"signInMethod"in e,"argument-error"),Wt._fromParams(e)}credential(t){return this._credential(Object.assign(Object.assign({},t),{nonce:t.rawNonce}))}_credential(t){return O(t.idToken||t.accessToken,"argument-error"),Wt._fromParams(Object.assign(Object.assign({}
vendor: 4,394 bytes, line 2
2,t),{providerId:this.providerId,signInMethod:this.providerId}))}static credentialFromResult(t){return ee.oauthCredentialFromTaggedObject(t)}static credentialFromError(t){return ee.oauthCredentialFromTaggedObject(t.customData||{})}static oauthCredentialFromTaggedObject({_tokenResponse:t}){if(!t)return null;const{oauthIdToken:e,oauthAccessToken:r,oauthTokenSecret:n,pendingToken:o,nonce:l,providerId:c}=t;if(!(r||n||e||o))return null;if(!c)return null;try{return new ee(c)._credential({idToken:e,accessToken:r,nonce:l,pendingToken:o})}catch(t){return null}}}class re extends te{constructor(){super("facebook.com")}static credential(t){return Wt._fromParams({providerId:re.PROVIDER_ID,signInMethod:re.FACEBOOK_SIGN_IN_METHOD,accessToken:t})}static credentialFromResult(t){return re.credentialFromTaggedObject(t)}static credentialFromError(t){return re.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t||!("oauthAccessToken"in t))return null;if(!t.oauthAccessToken)return null;try{return re.credential(t.oauthAccessToken)}catch(t){return null}}}re.FACEBOOK_SIGN_IN_METHOD="facebook.com",re.PROVIDER_ID="facebook.com";class ne extends te{constructor(){super("google.com"),this.addScope("profile")}static credential(t,e){return Wt._fromParams({providerId:ne.PROVIDER_ID,signInMethod:ne.GOOGLE_SIGN_IN_METHOD,idToken:t,accessToken:e})}static credentialFromResult(t){return ne.credentialFromTaggedObject(t)}static credentialFromError(t){return ne.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t)return null;const{oauthIdToken:e,oauthAccessToken:r}=t;if(!e&&!r)return null;try{return ne.credential(e,r)}catch(t){return null}}}ne.GOOGLE_SIGN_IN_METHOD="google.com",ne.PROVIDER_ID="google.com";class ie extends te{constructor(){super("github.com")}static credential(t){return Wt._fromParams({providerId:ie.PROVIDER_ID,signInMethod:ie.GITHUB_SIGN_IN_METHOD,accessToken:t})}static credentialFromResult(t){return ie.credentialFromTaggedObject(t)}static credentialFromError(t){return ie.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t||!("oauthAccessToken"in t))return null;if(!t.oauthAccessToken)return null;try{return ie.credential(t.oauthAccessToken)}catch(t){return null}}}ie.GITHUB_SIGN_IN_METHOD="github.com",ie.PROVIDER_ID="github.com";class ae extends Bt{constructor(t,e){super(t,t),this.pendingToken=e}_getIdTokenResponse(t){return Yt(t,this.buildRequest())}_linkToIdToken(t,e){const r=this.buildRequest();return r.idToken=e,Yt(t,r)}_getReauthenticationResolver(t){const e=this.buildRequest();return e.autoCreate=!1,Yt(t,e)}toJSON(){return{signInMethod:this.signInMethod,providerId:this.providerId,pendingToken:this.pendingToken}}static fromJSON(t){const e="string"==typeof t?JSON.parse(t):t,{providerId:r,signInMethod:n,pendingToken:o}=e;return r&&n&&o&&r===n?new ae(r,o):null}static _create(t,e){return new ae(t,e)}buildRequest(){return{requestUri:"http://localhost",returnSecureToken:!0,pendingToken:this.pendingToken}}}class se extends Zt{constructor(t){O(t.startsWith("saml."),"argument-error"),super(t)}static credentialFromResult(t){return se.samlCredentialFromTaggedObject(t)}static credentialFromError(t){return se.samlCredentialFromTaggedObject(t.customData||{})}static credentialFromJSON(t){const e=ae.fromJSON(t);return O(e,"argument-error"),e}static samlCredentialFromTaggedObject({_tokenResponse:t}){if(!t)return null;const{pendingToken:e,providerId:r}=t;if(!e||!r)return null;try{return ae._create(r,e)}catch(t){return null}}}class oe extends te{constructor(){super("twitter.com")}static credential(t,e){return Wt._fromParams({providerId:oe.PROVIDER_ID,signInMethod:oe.TWITTER_SIGN_IN_METHOD,oauthToken:t,oauthTokenSecret:e})}static credentialFromResult(t){return oe.credentialFromTaggedObject(t)}static credentialFromError(t){return oe.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t)return null;const{oauthAccessToken:e,oauthTokenSecret:r}=t;if(!e||!r)return null;try{return oe.credential(e,r)}catch(t){return null}}}async function le(t,e){return G(t,"POST","/v1/accounts:signUp",B(t,e))}oe.TWITTER_SIGN_IN_METHOD="twitter.com",oe.PROVIDER_ID="twitter.com";class ce{constructor(t){this.user=t.user,this.providerId=t.providerId,this._tokenResponse=t._token
2Response,this.operationType=t.operationType}static async _fromIdTokenResponse(t,e,r,n=!1){const o=await it._fromIdTokenResponse(t,r,n),l=he(r);return new ce({user:o,providerId:l,_tokenResponse:r,operationType:e})}static async _forOperation(t,e,r){await t._updateTokensIfNecessary(r,!0);const n=he(r);return new ce({user:t,providerId:n,_tokenResponse:r,operationType:e})}}function he(t){return t.providerId?t.providerId:"phoneNumber"in t?"phone":null}async function ue(t){var e;const r=Nt(t);if(await r._initializationPromise,null===(e=r.currentUser)||void 0===e?void 0:e.isAnonymous)return new ce({user:r.currentUser,providerId:null,operationType:"signIn"});const n=await le(r,{returnSecureToken:!0}),o=await ce._fromIdTokenResponse(r,"signIn",n,!0);return await r._updateCurrentUser(o.user),o}class pe extends n.c{constructor(t,e,r,n){var o;super(e.code,e.message),this.operationType=r,this.user=n,Object.setPrototypeOf(this,pe.prototype),this.customData={appName:t.name,tenantId:null!==(o=t.tenantId)&&void 0!==o?o:void 0,_serverResponse:e.customData._serverResponse,operationType:r}}static _fromErrorAndOperation(t,e,r,n){return new pe(t,e,r,n)}}function de(t,e,r,n){return("reauthenticate"===e?r._getReauthenticationResolver(t):r._getIdTokenResponse(t)).catch((r=>{if("auth/multi-factor-auth-required"===r.code)throw pe._fromErrorAndOperation(t,r,e,n);throw r}))}function fe(t){return new Set(t.map((({providerId:t})=>t)).filter((t=>!!t)))}async function me(t,e){const r=Object(n.p)(t);await ye(!0,r,e);const{providerUserInfo:o}=await async function(t,e){return V(t,"POST","/v1/accounts:update",e)}(r.auth,{idToken:await r.getIdToken(),deleteProvider:[e]}),l=fe(o||[]);return r.providerData=r.providerData.filter((t=>l.has(t.providerId))),l.has("phone")||(r.phoneNumber=null),await r.auth._persistUserIfCurrent(r),r}async function ge(t,e,r=!1){const n=await J(t,e._linkToIdToken(t.auth,await t.getIdToken()),r);return ce._forOperation(t,"link",n)}async function ye(t,e,r){await tt(e);const code=!1===t?"provider-already-linked":"no-such-provider";O(fe(e.providerData).has(r)===t,e.auth,code)}async function ve(t,e,r=!1){const{auth:n}=t,o="reauthenticate";try{const l=await J(t,de(n,o,e,t),r);O(l.idToken,n,"internal-error");const c=Q(l.idToken);O(c,n,"internal-error");const{sub:h}=c;return O(t.uid===h,n,"user-mismatch"),ce._forOperation(t,o,l)}catch(t){throw"auth/user-not-found"===(null==t?void 0:t.code)&&T(n,"user-mismatch"),t}}async function be(t,e,r=!1){const n="signIn",o=await de(t,n,e),l=await ce._fromIdTokenResponse(t,n,o);return r||await t._updateCurrentUser(l.user),l}async function we(t,e){return be(Nt(t),e)}async function Ee(t,e){const r=Object(n.p)(t);return await ye(!1,r,e.providerId),ge(r,e)}async function _e(t,e){return ve(Object(n.p)(t),e)}async function Te(t,e){const r=Nt(t),n=await async function(t,e){return G(t,"POST","/v1/accounts:signInWithCustomToken",B(t,e))}(r,{token:e,returnSecureToken:!0}),o=await ce._fromIdTokenResponse(r,"signIn",n);return await r._updateCurrentUser(o.user),o}class Se{constructor(t,e){this.factorId=t,this.uid=e.mfaEnrollmentId,this.enrollmentTime=new Date(e.enrolledAt).toUTCString(),this.displayName=e.displayName}static _fromServerResponse(t,e){return"phoneInfo"in e?xe._fromServerResponse(t,e):"totpInfo"in e?Ie._fromServerResponse(t,e):T(t,"internal-error")}}class xe extends Se{constructor(t){super("phone",t),this.phoneNumber=t.phoneInfo}static _fromServerResponse(t,e){return new xe(e)}}class Ie extends Se{constructor(t){super("totp",t)}static _fromServerResponse(t,e){return new Ie(e)}}function Pe(t,e,r){var n;O((null===(n=r.url)||void 0===n?void 0:n.length)>0,t,"invalid-continue-uri"),O(void 0===r.dynamicLinkDomain||r.dynamicLinkDomain.length>0,t,"invalid-dynamic-link-domain"),e.continueUrl=r.url,e.dynamicLinkDomain=r.dynamicLinkDomain,e.canHandleCodeInApp=r.handleCodeInApp,r.iOS&&(O(r.iOS.bundleId.length>0,t,"missing-ios-bundle-id"),e.iOSBundleId=r.iOS.bundleId),r.android&&(O(r.android.packageName.length>0,t,"missing-android-pkg-name"),e.androidInstallApp=r.android.installApp,e.androidMinimumVersionCode=r.android.minimumVersion,e.androidPackageName=r.android.packageName)}async function Oe(t,e,r){var n;const o=Nt(t),l={requestType:"PASSWORD_RESET",email:e,clientType:"CLIENT_TYPE_WEB"};if(null===(n=o._getRecaptchaConfig())||void 0===n?void 0:n.emailPasswordEnabled){const t=await Ct(o,l,"getOobCode",!0);r&&Pe(o,t,r),await $t(o,t)}else r&&Pe(o,l,r),await $t(o,l).catch((async t=>
2{if("auth/missing-recaptcha-token"!==t.code)return Promise.reject(t);{console.log("Password resets are protected by reCAPTCHA for this project. Automatically triggering the reCAPTCHA flow and restarting the password reset flow.");const t=await Ct(o,l,"getOobCode",!0);r&&Pe(o,t,r),await $t(o,t)}}))}async function Ae(t,e,r){await Vt(Object(n.p)(t),{oobCode:e,newPassword:r})}async function ke(t,e){await async function(t,e){return V(t,"POST","/v1/accounts:update",B(t,e))}(Object(n.p)(t),{oobCode:e})}async function Ce(t,e){const r=Object(n.p)(t),o=await Vt(r,{oobCode:e}),l=o.requestType;switch(O(l,r,"internal-error"),l){case"EMAIL_SIGNIN":break;case"VERIFY_AND_CHANGE_EMAIL":O(o.newEmail,r,"internal-error");break;case"REVERT_SECOND_FACTOR_ADDITION":O(o.mfaInfo,r,"internal-error");default:O(o.email,r,"internal-error")}let c=null;return o.mfaInfo&&(c=Se._fromServerResponse(Nt(r),o.mfaInfo)),{data:{email:("VERIFY_AND_CHANGE_EMAIL"===o.requestType?o.newEmail:o.email)||null,previousEmail:("VERIFY_AND_CHANGE_EMAIL"===o.requestType?o.email:o.newEmail)||null,multiFactorInfo:c},operation:l}}async function De(t,code){const{data:data}=await Ce(Object(n.p)(t),code);return data.email}async function Me(t,e,r){var n;const o=Nt(t),l={returnSecureToken:!0,email:e,password:r,clientType:"CLIENT_TYPE_WEB"};let c;if(null===(n=o._getRecaptchaConfig())||void 0===n?void 0:n.emailPasswordEnabled){const t=await Ct(o,l,"signUpPassword");c=le(o,t)}else c=le(o,l).catch((async t=>{if("auth/missing-recaptcha-token"===t.code){console.log("Sign-up is protected by reCAPTCHA for this project. Automatically triggering the reCAPTCHA flow and restarting the sign-up flow.");const t=await Ct(o,l,"signUpPassword");return le(o,t)}return Promise.reject(t)}));const h=await c.catch((t=>Promise.reject(t))),d=await ce._fromIdTokenResponse(o,"signIn",h);return await o._updateCurrentUser(d.user),d}function Ne(t,e,r){return we(Object(n.p)(t),Xt.credential(e,r))}async function Re(t,e,r){var n;const o=Nt(t),l={requestType:"EMAIL_SIGNIN",email:e,clientType:"CLIENT_TYPE_WEB"};function c(t,e){O(e.handleCodeInApp,o,"argument-error"),e&&Pe(o,t,e)}if(null===(n=o._getRecaptchaConfig())||void 0===n?void 0:n.emailPasswordEnabled){const t=await Ct(o,l,"getOobCode",!0);c(t,r),await qt(o,t)}else c(l,r),await qt(o,l).catch((async t=>{if("auth/missing-recaptcha-token"!==t.code)return Promise.reject(t);{console.log("Email link sign-in is protected by reCAPTCHA for this project. Automatically triggering the reCAPTCHA flow and restarting the sign-in flow.");const t=await Ct(o,l,"getOobCode",!0);c(t,r),await qt(o,t)}}))}function Fe(t,e){const r=Jt.parseLink(e);return"EMAIL_SIGNIN"===(null==r?void 0:r.operation)}async function je(t,e,r){const o=Object(n.p)(t),l=Xt.credentialWithLink(e,r||C());return O(l._tenantId===(o.tenantId||null),o,"tenant-id-mismatch"),we(o,l)}async function Le(t,e){const r={identifier:e,continueUri:D()?C():"http://localhost"},{signinMethods:o}=await async function(t,e){return V(t,"POST","/v1/accounts:createAuthUri",B(t,e))}(Object(n.p)(t),r);return o||[]}async function Be(t,e){const r=Object(n.p)(t),o={requestType:"VERIFY_EMAIL",idToken:await t.getIdToken()};e&&Pe(r.auth,o,e);const{email:l}=await async function(t,e){return Ut(t,e)}(r.auth,o);l!==t.email&&await t.reload()}async function Ve(t,e,r){const o=Object(n.p)(t),l={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:await t.getIdToken(),newEmail:e};r&&Pe(o.auth,l,r);const{email:c}=await async function(t,e){return Ut(t,e)}(o.auth,l);c!==t.email&&await t.reload()}async function ze(t,{displayName:e,photoURL:r}){if(void 0===e&&void 0===r)return;const o=Object(n.p)(t),l={idToken:await o.getIdToken(),displayName:e,photoUrl:r,returnSecureToken:!0},c=await J(o,async function(t,e){return V(t,"POST","/v1/accounts:update",e)}(o.auth,l));o.displayName=c.displayName||null,o.photoURL=c.photoUrl||null;const h=o.providerData.find((({providerId:t})=>"password"===t));h&&(h.displayName=o.displayName,h.photoURL=o.photoURL),await o._updateTokensIfNecessary(c)}function Ge(t,e){return $e(Object(n.p)(t),e,null)}function Ue(t,e){return $e(Object(n.p)(t),null,e)}async function $e(t,e,r){const{auth:n}=t,o={idToken:await t.getIdToken(),returnSecureToken:!0};e&&(o.email=e),r&&(o.password=r);const l=await J(t,zt(n,o));await t._updateTokensIfNecessary(l,!0)}class qe{constructor(t,e,r={}){this.isNewUser=t,this.providerId=e,this.profile=r}}class He extends qe{constructor(t,e,r,n){super(t,e,r),this.username=n}}class Ye extends qe{constructor(t,e){super(t,"facebook.com",e)}}class We extends He{constructor(t,e){super(t,"github.com",e,"string"==typeof(null==e?void 0:e.login)?null==e?void 0:e.login:null)}}class Ke extends qe{constructor(t,e){super(t,"google.com",e)}}class Qe extends He{constructor(t,e,r){super(t,"twitter.com",e,r)}}function Je(t){const{user:e,_tokenResponse:r}=t;return e.isAnonymous&&!r?{providerId:null,isNewUser:!1,profile:null}:function(t){var e,r;if(!t)return null;const{providerId:n}=t,o=t.rawUserInfo?JSON.parse(t.rawUserInfo):{},l=t.isNewUser||"identitytoolkit#SignupNewUserResponse"===t.kind;if(!n&&(null==t?void 0:t.idToken)){const n=null===(r=null===(e=Q(t.idToken))||void 0===e?void 0:e.firebase)||void 0===r?void 0:r.sign_in_provider;if(n)return new qe(l,"anonymous"!==n&&"custom"!==n?n:null)}if(!n)return null;switch(n){case"facebook.com":return new Ye(l,o);case"github.com":return new We(l,o);case"google.com":return new Ke(l,o);case"twitter.com":return new Qe(l,o,t.screenName||null);
2case"custom":case"anonymous":return new qe(l,null);default:return new qe(l,n,o)}}(r)}function Xe(t,e,r,o){return Object(n.p)(t).onAuthStateChanged(e,r,o)}function Ze(t){return Object(n.p)(t).signOut()}class er{constructor(t,e,r){this.type=t,this.credential=e,this.auth=r}static _fromIdtoken(t,e){return new er("enroll",t,e)}static _fromMfaPendingCredential(t){return new er("signin",t)}toJSON(){return{multiFactorSession:{["enroll"===this.type?"idToken":"pendingCredential"]:this.credential}}}static fromJSON(t){var e,r;if(null==t?void 0:t.multiFactorSession){if(null===(e=t.multiFactorSession)||void 0===e?void 0:e.pendingCredential)return er._fromMfaPendingCredential(t.multiFactorSession.pendingCredential);if(null===(r=t.multiFactorSession)||void 0===r?void 0:r.idToken)return er._fromIdtoken(t.multiFactorSession.idToken)}return null}}class rr{constructor(t,e,r){this.session=t,this.hints=e,this.signInResolver=r}static _fromError(t,e){const r=Nt(t),n=e.customData._serverResponse,o=(n.mfaInfo||[]).map((t=>Se._fromServerResponse(r,t)));O(n.mfaPendingCredential,r,"internal-error");const l=er._fromMfaPendingCredential(n.mfaPendingCredential);return new rr(l,o,(async t=>{const o=await t._process(r,l);delete n.mfaInfo,delete n.mfaPendingCredential;const c=Object.assign(Object.assign({},n),{idToken:o.idToken,refreshToken:o.refreshToken});switch(e.operationType){case"signIn":const t=await ce._fromIdTokenResponse(r,e.operationType,c);return await r._updateCurrentUser(t.user),t;case"reauthenticate":return O(e.user,r,"internal-error"),ce._forOperation(e.user,e.operationType,c);default:T(r,"internal-error")}}))}async resolveSignIn(t){const e=t;return this.signInResolver(e)}}function nr(t,e){var r;const o=Object(n.p)(t),l=e;return O(e.customData.operationType,o,"argument-error"),O(null===(r=l.customData._serverResponse)||void 0===r?void 0:r.mfaPendingCredential,o,"argument-error"),rr._fromError(o,l)}class ir{constructor(t){this.user=t,this.enrolledFactors=[],t._onReload((e=>{e.mfaInfo&&(this.enrolledFactors=e.mfaInfo.map((e=>Se._fromServerResponse(t.auth,e))))}))}static _fromUser(t){return new ir(t)}async getSession(){return er._fromIdtoken(await this.user.getIdToken(),this.user.auth)}
vendor: 15,915 bytes, line 2
2async enroll(t,e){const r=t,n=await this.getSession(),o=await J(this.user,r._process(this.user.auth,n,e));return await this.user._updateTokensIfNecessary(o),this.user.reload()}async unenroll(t){const e="string"==typeof t?t:t.uid,r=await this.user.getIdToken();try{const t=await J(this.user,(n=this.user.auth,o={idToken:r,mfaEnrollmentId:e},V(n,"POST","/v2/accounts/mfaEnrollment:withdraw",B(n,o))));this.enrolledFactors=this.enrolledFactors.filter((({uid:t})=>t!==e)),await this.user._updateTokensIfNecessary(t),await this.user.reload()}catch(t){throw t}var n,o}}const ar=new WeakMap;function sr(t){const e=Object(n.p)(t);return ar.has(e)||ar.set(e,ir._fromUser(e)),ar.get(e)}const or="__sak";class lr{constructor(t,e){this.storageRetriever=t,this.type=e}_isAvailable(){try{return this.storage?(this.storage.setItem(or,"1"),this.storage.removeItem(or),Promise.resolve(!0)):Promise.resolve(!1)}catch(t){return Promise.resolve(!1)}}_set(t,e){return this.storage.setItem(t,JSON.stringify(e)),Promise.resolve()}_get(t){const e=this.storage.getItem(t);return Promise.resolve(e?JSON.parse(e):null)}_remove(t){return this.storage.removeItem(t),Promise.resolve()}get storage(){return this.storageRetriever()}}class cr extends lr{constructor(){super((()=>window.localStorage),"LOCAL"),this.boundEventHandler=(t,e)=>this.onStorageEvent(t,e),this.listeners={},this.localCache={},this.pollTimer=null,this.safariLocalStorageNotSynced=function(){const t=Object(n.q)();return ft(t)||wt(t)}()&&function(){try{return!(!window||window===window.top)}catch(t){return!1}}(),this.fallbackToPolling=_t(),this._shouldAllowMigration=!0}forAllChangedKeys(t){for(const e of Object.keys(this.listeners)){const r=this.storage.getItem(e),n=this.localCache[e];r!==n&&t(e,n,r)}}onStorageEvent(t,e=!1){if(!t.key)return void this.forAllChangedKeys(((t,e,r)=>{this.notifyListeners(t,r)}));const r=t.key;if(e?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){const n=this.storage.getItem(r);if(t.newValue!==n)null!==t.newValue?this.storage.setItem(r,t.newValue):this.storage.removeItem(r);else if(this.localCache[r]===t.newValue&&!e)return}const o=()=>{const t=this.storage.getItem(r);(e||this.localCache[r]!==t)&&this.notifyListeners(r,t)},l=this.storage.getItem(r);Object(n.u)()&&10===document.documentMode&&l!==t.newValue&&t.newValue!==t.oldValue?setTimeout(o,10):o()}notifyListeners(t,e){this.localCache[t]=e;const r=this.listeners[t];if(r)for(const t of Array.from(r))t(e?JSON.parse(e):e)}startPolling(){this.stopPolling(),this.pollTimer=setInterval((()=>{this.forAllChangedKeys(((t,e,r)=>{this.onStorageEvent(new StorageEvent("storage",{key:t,oldValue:e,newValue:r}),!0)}))}),1e3)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(t,e){0===Object.keys(this.listeners).length&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[t]||(this.listeners[t]=new Set,this.localCache[t]=this.storage.getItem(t)),this.listeners[t].add(e)}_removeListener(t,e){this.listeners[t]&&(this.listeners[t].delete(e),0===this.listeners[t].size&&delete this.listeners[t]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}async _set(t,e){await super._set(t,e),this.localCache[t]=JSON.stringify(e)}async _get(t){const e=await super._get(t);return this.localCache[t]=JSON.stringify(e),e}async _remove(t){await super._remove(t),delete this.localCache[t]}}cr.type="LOCAL";const ur=cr;class pr extends lr{constructor(){super((()=>window.sessionStorage),"SESSION")}_addListener(t,e){}_removeListener(t,e){}}pr.type="SESSION";const dr=pr;class fr{constructor(t){this.eventTarget=t,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(t){const e=this.receivers.find((e=>e.isListeningto(t)));if(e)return e;const r=new fr(t);return this.receivers.push(r),r}isListeningto(t){return this.eventTarget===t}async handleEvent(t){const e=t,{eventId:r,eventType:n,data:data}=e.data,o=this.handlersMap[n];if(!(null==o?void 0:o.size))return;e.ports[0].postMessage({status:"ack",eventId:r,eventType:n});const l=Array.from(o).map((async t=>t(e.origin,data))),c=await function(t){return Promise.all(t.map((async t=>{try{return{fulfilled:!0,value:await t}}catch(t){return{fulfilled:!1,reason:t}}})))}(l);e.ports[0].postMessage({status:"done",eventId:r,eventType:n,response:c})}_subscribe(t,e){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[t]||(this.handlersMap[t]=new Set),this.handlersMap[t].add(e)}_unsubscribe(t,e){this.handlersMap[t]&&e&&this.handlersMap[t].delete(e),e&&0!==this.handlersMap[t].size||delete this.handlersMap[t],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}function mr(t="",e=10){let r="";for(let i=0;i<e;i++)r+=Math.floor(10*Math.random());return t+r}fr.receivers=[];class gr{constructor(t){this.target=t,this.handlers=new Set}removeMessageHandler(t){t.messageChannel&&(t.messageChannel.port1.removeEventListener("message",t.onMessage),t.messageChannel.port1.close()),this.handlers.delete(t)}async _send(t,data,e=50){const r="undefined"!=typeof MessageChannel?new MessageChannel:null;if(!r)throw new Error("connection_unavailable");let n,o;return new Promise(((l,c)=>{const h=mr("",20);r.port1.start();const d=setTimeout((()=>{c(new Error("unsupported_event"))}),e);o={messageChannel:r,onMessage(t){const e=t;if(e.data.eventId===h)switch(e.data.status){case"ack":clearTimeout(d),n=setTimeout((()=>{c(new Error("timeout"))}),3e3);break;case"done":clearTimeout(n),l(e.data.response);break;default:clearTimeout(d),clearTimeout(n),c(new Error("invalid_response"))}}},this.handlers.add(o),r.port1.addEventListener("message",o.onMessage),this.target.postMessage({eventType:t,eventId:h,data:data},[r.port2])})).finally((()=>{o&&this.removeMessageHandler(o)}))}}function yr(){return window}function vr(){return void 0!==yr().WorkerGlobalScope&&"function"==typeof yr().importScripts}const wr="firebaseLocalStorageDb",Er="firebaseLocalStorage",_r="fbase_key";class Tr{constructor(t){this.request=t}toPromise(){return new Promise(((t,e)=>{this.request.addEventListener("success",(()=>{t(this.request.result)})),this.request.addEventListener("error",(()=>{e(this.request.error)}))}))}}function Sr(t,e){return t.transaction([Er],e?"readwrite":"readonly").objectStore(Er)}function xr(){const t=indexedDB.open(wr,1);return new Promise(((e,r)=>{t.addEventListener("error",(()=>{r(t.error)})),t.addEventListener("upgradeneeded",(()=>{const e=t.result;try{e.createObjectStore(Er,{keyPath:_r})}catch(t){r(t)}})),t.addEventListener("success",(async()=>{const r=t.result;r.objectStoreNames.contains(Er)?e(r):(r.close(),await function(){const t=indexedDB.deleteDatabase(wr);return new Tr(t).toPromise()}(),e(await xr()))}))}))}async function Ir(t,e,r){const n=Sr(t,!0).put({[_r]:e,value:r});return new Tr(n).toPromise()}function Pr(t,e){const r=Sr(t,!0).delete(e);return new Tr(r).toPromise()}class Or{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then((()=>{}),(()=>{}))}async _openDb(){return this.db||(this.db=await xr()),this.db}async _withRetries(t){let e=0;for(;;)try{const e=await this._openDb();return await t(e)}catch(t){if(e++>3)throw t;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return vr()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=fr._getInstance(vr()?self:null),this.receiver._subscribe("keyChanged",(async(t,data)=>({keyProcessed:(await this._poll()).includes(data.key)}))),this.receiver._subscribe("ping",(async(t,e)=>["keyChanged"]))}async initializeSender(){var t,e;if(this.activeServiceWorker=await async function(){if(!(null===navigator||void 0===navigator?void 0:navigator.serviceWorker))return null;try{return(await navigator.serviceWorker.ready).active}catch(t){return null}}(),!this.activeServiceWorker)return;this.sender=new gr(this.activeServiceWorker);const r=await this.sender._send("ping",{},800);r&&(null===(t=r[0])||void 0===t?void 0:t.fulfilled)&&(null===(e=r[0])||void 0===e?void 0:e.value.includes("keyChanged"))&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(t){var e;if(this.sender&&this.activeServiceWorker&&((null===(e=null===navigator||void 0===navigator?void 0:navigator.serviceWorker)||void 0===e?void 0:e.controller)||null)===this.activeServiceWorker)try{await this.sender._send("keyChanged",{key:t},this.serviceWorkerReceiverAvailable?800:50)}catch(e){}}async _isAvailable(){try{if(!indexedDB)return!1;const t=await xr();return await Ir(t,or,"1"),await Pr(t,or),!0}catch(t){}return!1}async _withPendingWrite(t){this.pendingWrites++;try{await t()}finally{this.pendingWrites--}}async _set(t,e){return this._withPendingWrite((async()=>(await this._withRetries((r=>Ir(r,t,e))),this.localCache[t]=e,this.notifyServiceWorker(t))))}async _get(t){const e=await this._withRetries((e=>async function(t,e){const r=Sr(t,!1).get(e),data=await new Tr(r).toPromise();return void 0===data?null:data.value}(e,t)));return this.localCache[t]=e,e}async _remove(t){return this._withPendingWrite((async()=>(await this._withRetries((e=>Pr(e,t))),delete this.localCache[t],this.notifyServiceWorker(t))))}async _poll(){const t=await this._withRetries((t=>{const e=Sr(t,!1).getAll();return new Tr(e).toPromise()}));if(!t)return[];if(0!==this.pendingWrites)return[];const e=[],r=new Set;for(const{fbase_key:n,value:o}of t)r.add(n),JSON.stringify(this.localCache[n])!==JSON.stringify(o)&&(this.notifyListeners(n,o),e.push(n));for(const t of Object.keys(this.localCache))this.localCache[t]&&!r.has(t)&&(this.notifyListeners(t,null),e.push(t));return e}notifyListeners(t,e){this.localCache[t]=e;const r=this.listeners[t];if(r)for(const t of Array.from(r))t(e)}startPolling(){this.stopPolling(),this.pollTimer=setInterval((async()=>this._poll()),800)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(t,e){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[t]||(this.listeners[t]=new Set,this._get(t)),this.listeners[t].add(e)}_removeListener(t,e){this.listeners[t]&&(this.listeners[t].delete(e),0===this.listeners[t].size&&delete this.listeners[t]),0===Object.keys(this.listeners).length&&this.stopPolling()}}Or.type="LOCAL";const Ar=Or;const kr=1e12;class Cr{constructor(t){this.auth=t,this.counter=kr,this._widgets=new Map}render(t,e){const r=this.counter;return this._widgets.set(r,new Dr(t,this.auth.name,e||{})),this.counter++,r}reset(t){var e;const r=t||kr;null===(e=this._widgets.get(r))||void 0===e||e.delete(),this._widgets.delete(r)}getResponse(t){var e;const r=t||kr;return(null===(e=this._widgets.get(r))||void 0===e?void 0:e.getResponse())||""}async execute(t){var e;const r=t||kr;return null===(e=this._widgets.get(r))||void 0===e||e.execute(),""}}class Dr{constructor(t,e,r){this.params=r,this.timerId=null,this.deleted=!1,this.responseToken=null,this.clickHandler=()=>{this.execute()};const n="string"==typeof t?document.getElementById(t):t;O(n,"argument-error",{appName:e}),this.container=n,this.isVisible="invisible"!==this.params.size,this.isVisible?this.execute():this.container.addEventListener("click",this.clickHandler)}getResponse(){return this.checkIfDeleted(),this.responseToken}delete(){this.checkIfDeleted(),this.deleted=!0,this.timerId&&(clearTimeout(this.timerId),this.timerId=null),this.container.removeEventListener("click",this.clickHandler)}execute(){this.checkIfDeleted(),this.timerId||(this.timerId=window.setTimeout((()=>{this.responseToken=function(t){const e=[],r="1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";for(let i=0;i<t;i++)e.push(r.charAt(Math.floor(Math.random()*r.length)));return e.join("")}(50);const{callback:t,"expired-callback":e}=this.params;if(t)try{t(this.responseToken)}catch(t){}this.timerId=window.setTimeout((()=>{if(this.timerId=null,this.responseToken=null,e)try{e()}catch(t){}this.isVisible&&this.execute()}),6e4)}),500))}checkIfDeleted(){if(this.deleted)throw new Error("reCAPTCHA mock was already deleted!")}}const Mr=At("rcb"),Nr=new N(3e4,6e4);class Rr{constructor(){var t;this.hostLanguage="",this.counter=0,this.librarySeparatelyLoaded=!!(null===(t=yr().grecaptcha)||void 0===t?void 0:t.render)}load(t,e=""){return O(function(t){return t.length<=6&&/^\s*[a-zA-Z0-9\-]*\s*$/.test(t)}(e),t,"argument-error"),this.shouldResolveImmediately(e)&&xt(yr().grecaptcha)?Promise.resolve(yr().grecaptcha):new Promise(((r,o)=>{const l=yr().setTimeout((()=>{o(S(t,"network-request-failed"))}),Nr.get());yr()[Mr]=()=>{yr().clearTimeout(l),delete yr()[Mr];const n=yr().grecaptcha;if(!n||!xt(n))return void o(S(t,"internal-error"));const c=n.render;n.render=(t,e)=>{const r=c(t,e);return this.counter++,r},this.hostLanguage=e,r(n)};Ot(`https://www.google.com/recaptcha/api.js??${Object(n.z)({onload:Mr,render:"explicit",hl:e})}`).catch((()=>{clearTimeout(l),o(S(t,"internal-error"))}))}))}clearedOneInstance(){this.counter--}shouldResolveImmediately(t){var e;return!!(null===(e=yr().grecaptcha)||void 0===e?void 0:e.render)&&(t===this.hostLanguage||this.counter>0||this.librarySeparatelyLoaded)}}class Fr{async load(t){return new Cr(t)}clearedOneInstance(){}}const jr="recaptcha",Lr={theme:"light",type:"image"};class Br{constructor(t,e=Object.assign({},Lr),r){this.parameters=e,this.type=jr,this.destroyed=!1,this.widgetId=null,this.tokenChangeListeners=new Set,this.renderPromise=null,this.recaptcha=null,this.auth=Nt(r),this.isInvisible="invisible"===this.parameters.size,O("undefined"!=typeof document,this.auth,"operation-not-supported-in-this-environment");const n="string"==typeof t?document.getElementById(t):t;O(n,this.auth,"argument-error"),this.container=n,this.parameters.callback=this.makeTokenCallback(this.parameters.callback),this._recaptchaLoader=this.auth.settings.appVerificationDisabledForTesting?new Fr:new Rr,this.validateStartingState()}async verify(){this.assertNotDestroyed();const t=await this.render(),e=this.getAssertedRecaptcha(),r=e.getResponse(t);return r||new Promise((r=>{const n=t=>{t&&(this.tokenChangeListeners.delete(n),r(t))};this.tokenChangeListeners.add(n),this.isInvisible&&e.execute(t)}))}render(){try{this.assertNotDestroyed()}catch(t){return Promise.reject(t)}return this.renderPromise||(this.renderPromise=this.makeRenderPromise().catch((t=>{throw this.renderPromise=null,t}))),this.renderPromise}_reset(){this.assertNotDestroyed(),null!==this.widgetId&&this.getAssertedRecaptcha().reset(this.widgetId)}clear(){this.assertNotDestroyed(),this.destroyed=!0,this._recaptchaLoader.clearedOneInstance(),this.isInvisible||this.container.childNodes.forEach((t=>{this.container.removeChild(t)}))}validateStartingState(){O(!this.parameters.sitekey,this.auth,"argument-error"),O(this.isInvisible||!this.container.hasChildNodes(),this.auth,"argument-error"),O("undefined"!=typeof document,this.auth,"operation-not-supported-in-this-environment")}makeTokenCallback(t){return e=>{if(this.tokenChangeListeners.forEach((t=>t(e))),"function"==typeof t)t(e);else if("string"==typeof t){const r=yr()[t];"function"==typeof r&&r(e)}}}assertNotDestroyed(){O(!this.destroyed,this.auth,"internal-error")}async makeRenderPromise(){if(await this.init(),!this.widgetId){let t=this.container;if(!this.isInvisible){const e=document.createElement("div");t.appendChild(e),t=e}this.widgetId=this.getAssertedRecaptcha().render(t,this.parameters)}return this.widgetId}
2async init(){O(D()&&!vr(),this.auth,"internal-error"),await function(){let t=null;return new Promise((e=>{"complete"!==document.readyState?(t=()=>e(),window.addEventListener("load",t)):e()})).catch((e=>{throw t&&window.removeEventListener("load",t),e}))}(),this.recaptcha=await this._recaptchaLoader.load(this.auth,this.auth.languageCode||void 0);const t=await async function(t){return(await V(t,"GET","/v1/recaptchaParams")).recaptchaSiteKey||""}(this.auth);O(t,this.auth,"internal-error"),this.parameters.sitekey=t}getAssertedRecaptcha(){return O(this.recaptcha,this.auth,"internal-error"),this.recaptcha}}class Vr{constructor(t,e){this.verificationId=t,this.onConfirmation=e}confirm(t){const e=Qt._fromVerification(this.verificationId,t);return this.onConfirmation(e)}}async function zr(t,e,r){const o=Nt(t),l=await $r(o,e,Object(n.p)(r));return new Vr(l,(t=>we(o,t)))}async function Gr(t,e,r){const o=Object(n.p)(t);await ye(!1,o,"phone");const l=await $r(o.auth,e,Object(n.p)(r));return new Vr(l,(t=>Ee(o,t)))}async function Ur(t,e,r){const o=Object(n.p)(t),l=await $r(o.auth,e,Object(n.p)(r));return new Vr(l,(t=>_e(o,t)))}async function $r(t,e,r){var n;const o=await r.verify();try{let l;if(O("string"==typeof o,t,"argument-error"),O(r.type===jr,t,"argument-error"),l="string"==typeof e?{phoneNumber:e}:e,"session"in l){const e=l.session;if("phoneNumber"in l){O("enroll"===e.type,t,"internal-error");const r=await function(t,e){return V(t,"POST","/v2/accounts/mfaEnrollment:start",B(t,e))}(t,{idToken:e.credential,phoneEnrollmentInfo:{phoneNumber:l.phoneNumber,recaptchaToken:o}});return r.phoneSessionInfo.sessionInfo}{O("signin"===e.type,t,"internal-error");const r=(null===(n=l.multiFactorHint)||void 0===n?void 0:n.uid)||l.multiFactorUid;O(r,t,"missing-multi-factor-info");const c=await function(t,e){return V(t,"POST","/v2/accounts/mfaSignIn:start",B(t,e))}(t,{mfaPendingCredential:e.credential,mfaEnrollmentId:r,phoneSignInInfo:{recaptchaToken:o}});return c.phoneResponseInfo.sessionInfo}}{const{sessionInfo:e}=await async function(t,e){return V(t,"POST","/v1/accounts:sendVerificationCode",B(t,e))}(t,{phoneNumber:l.phoneNumber,recaptchaToken:o});return e}}finally{r._reset()}}async function qr(t,e){await ge(Object(n.p)(t),e)}class Hr{constructor(t){this.providerId=Hr.PROVIDER_ID,this.auth=Nt(t)}verifyPhoneNumber(t,e){return $r(this.auth,t,Object(n.p)(e))}static credential(t,e){return Qt._fromVerification(t,e)}static credentialFromResult(t){const e=t;return Hr.credentialFromTaggedObject(e)}static credentialFromError(t){return Hr.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t)return null;const{phoneNumber:e,temporaryProof:r}=t;return e&&r?Qt._fromTokenResponse(e,r):null}}function Yr(t,e){return e?st(e):(O(t._popupRedirectResolver,t,"argument-error"),t._popupRedirectResolver)}
vendor: 10,046 bytes, line 2
2Hr.PROVIDER_ID="phone",Hr.PHONE_SIGN_IN_METHOD="phone";class Wr extends Bt{constructor(t){super("custom","custom"),this.params=t}_getIdTokenResponse(t){return Yt(t,this._buildIdpRequest())}_linkToIdToken(t,e){return Yt(t,this._buildIdpRequest(e))}_getReauthenticationResolver(t){return Yt(t,this._buildIdpRequest())}_buildIdpRequest(t){const e={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return t&&(e.idToken=t),e}}function Kr(t){return be(t.auth,new Wr(t),t.bypassAuthState)}function Qr(t){const{auth:e,user:r}=t;return O(r,e,"internal-error"),ve(r,new Wr(t),t.bypassAuthState)}async function Jr(t){const{auth:e,user:r}=t;return O(r,e,"internal-error"),ge(r,new Wr(t),t.bypassAuthState)}class Xr{constructor(t,filter,e,r,n=!1){this.auth=t,this.resolver=e,this.user=r,this.bypassAuthState=n,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(filter)?filter:[filter]}execute(){return new Promise((async(t,e)=>{this.pendingPromise={resolve:t,reject:e};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(t){this.reject(t)}}))}async onAuthEvent(t){const{urlResponse:e,sessionId:r,postBody:n,tenantId:o,error:l,type:c}=t;if(l)return void this.reject(l);const h={auth:this.auth,requestUri:e,sessionId:r,tenantId:o||void 0,postBody:n||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(c)(h))}catch(t){this.reject(t)}}onError(t){this.reject(t)}getIdpTask(t){switch(t){case"signInViaPopup":case"signInViaRedirect":return Kr;case"linkViaPopup":case"linkViaRedirect":return Jr;case"reauthViaPopup":case"reauthViaRedirect":return Qr;default:T(this.auth,"internal-error")}}resolve(t){k(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(t),this.unregisterAndCleanUp()}reject(t){k(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(t),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}const Zr=new N(2e3,1e4);async function tn(t,e,r){const n=Nt(t);I(t,e,Zt);const o=Yr(n,r);return new nn(n,"signInViaPopup",e,o).executeNotNull()}async function en(t,e,r){const o=Object(n.p)(t);I(o.auth,e,Zt);const l=Yr(o.auth,r);return new nn(o.auth,"reauthViaPopup",e,l,o).executeNotNull()}async function rn(t,e,r){const o=Object(n.p)(t);I(o.auth,e,Zt);const l=Yr(o.auth,r);return new nn(o.auth,"linkViaPopup",e,l,o).executeNotNull()}class nn extends Xr{constructor(t,filter,e,r,n){super(t,filter,r,n),this.provider=e,this.authWindow=null,this.pollId=null,nn.currentPopupAction&&nn.currentPopupAction.cancel(),nn.currentPopupAction=this}async executeNotNull(){const t=await this.execute();return O(t,this.auth,"internal-error"),t}async onExecution(){k(1===this.filter.length,"Popup operations only handle one event");const t=mr();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],t),this.authWindow.associatedEvent=t,this.resolver._originValidation(this.auth).catch((t=>{this.reject(t)})),this.resolver._isIframeWebStorageSupported(this.auth,(t=>{t||this.reject(S(this.auth,"web-storage-unsupported"))})),this.pollUserCancellation()}get eventId(){var t;return(null===(t=this.authWindow)||void 0===t?void 0:t.associatedEvent)||null}cancel(){this.reject(S(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,nn.currentPopupAction=null}pollUserCancellation(){const t=()=>{var e,r;(null===(r=null===(e=this.authWindow)||void 0===e?void 0:e.window)||void 0===r?void 0:r.closed)?this.pollId=window.setTimeout((()=>{this.pollId=null,this.reject(S(this.auth,"popup-closed-by-user"))}),8e3):this.pollId=window.setTimeout(t,Zr.get())};t()}}nn.currentPopupAction=null;const an=new Map;class sn extends Xr{constructor(t,e,r=!1){super(t,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],e,void 0,r),this.eventId=null}async execute(){let t=an.get(this.auth._key());if(!t){try{const e=await async function(t,e){const r=un(e),n=hn(t);if(!await n._isAvailable())return!1;const o="true"===await n._get(r);return await n._remove(r),o}(this.resolver,this.auth)?await super.execute():null;t=()=>Promise.resolve(e)}catch(e){t=()=>Promise.reject(e)}an.set(this.auth._key(),t)}return this.bypassAuthState||an.set(this.auth._key(),(()=>Promise.resolve(null))),t()}async onAuthEvent(t){if("signInViaRedirect"===t.type)return super.onAuthEvent(t);if("unknown"!==t.type){if(t.eventId){const e=await this.auth._redirectUserForId(t.eventId);if(e)return this.user=e,super.onAuthEvent(t);this.resolve(null)}}else this.resolve(null)}async onExecution(){}cleanUp(){}}async function on(t,e){return hn(t)._set(un(e),"true")}function ln(){an.clear()}function cn(t,e){an.set(t._key(),e)}function hn(t){return st(t._redirectPersistence)}function un(t){return ct("pendingRedirect",t.config.apiKey,t.name)}function pn(t,e,r){return async function(t,e,r){const n=Nt(t);I(t,e,Zt),await n._initializationPromise;const o=Yr(n,r);return await on(o,n),o._openRedirect(n,e,"signInViaRedirect")}(t,e,r)}function dn(t,e,r){return async function(t,e,r){const o=Object(n.p)(t);I(o.auth,e,Zt),await o.auth._initializationPromise;const l=Yr(o.auth,r);await on(l,o.auth);const c=await yn(o);return l._openRedirect(o.auth,e,"reauthViaRedirect",c)}(t,e,r)}function fn(t,e,r){return async function(t,e,r){const o=Object(n.p)(t);I(o.auth,e,Zt),await o.auth._initializationPromise;const l=Yr(o.auth,r);await ye(!1,o,e.providerId),await on(l,o.auth);const c=await yn(o);return l._openRedirect(o.auth,e,"linkViaRedirect",c)}(t,e,r)}async function mn(t,e){return await Nt(t)._initializationPromise,gn(t,e,!1)}async function gn(t,e,r=!1){const n=Nt(t),o=Yr(n,e),l=new sn(n,o,r),c=await l.execute();return c&&!r&&(delete c.user._redirectEventId,await n._persistUserIfCurrent(c.user),await n._setRedirectUser(null,e)),c}async function yn(t){const e=mr(`${t.uid}:::`);return t._redirectEventId=e,await t.auth._setRedirectUser(t),await t.auth._persistUserIfCurrent(t),e}class vn{constructor(t){this.auth=t,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(t){this.consumers.add(t),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,t)&&(this.sendToConsumer(this.queuedRedirectEvent,t),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(t){this.consumers.delete(t)}onEvent(t){if(this.hasEventBeenHandled(t))return!1;let e=!1;return this.consumers.forEach((r=>{this.isEventForConsumer(t,r)&&(e=!0,this.sendToConsumer(t,r),this.saveEventToCache(t))})),this.hasHandledPotentialRedirect||!function(t){switch(t.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return wn(t);default:return!1}}(t)||(this.hasHandledPotentialRedirect=!0,e||(this.queuedRedirectEvent=t,e=!0)),e}sendToConsumer(t,e){var r;if(t.error&&!wn(t)){const code=(null===(r=t.error.code)||void 0===r?void 0:r.split("auth/")[1])||"internal-error";e.onError(S(this.auth,code))}else e.onAuthEvent(t)}isEventForConsumer(t,e){const r=null===e.eventId||!!t.eventId&&t.eventId===e.eventId;return e.filter.includes(t.type)&&r}hasEventBeenHandled(t){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(bn(t))}saveEventToCache(t){this.cachedEventUids.add(bn(t)),this.lastProcessedEventTime=Date.now()}}function bn(t){return[t.type,t.eventId,t.sessionId,t.tenantId].filter((t=>t)).join("-")}function wn({type:t,error:e}){return"unknown"===t&&"auth/no-auth-event"===(null==e?void 0:e.code)}async function En(t,e={}){return V(t,"GET","/v1/projects",e)}const _n=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,Tn=/^https?/;function Sn(t){const e=C(),{protocol:r,hostname:n}=new URL(e);if(t.startsWith("chrome-extension://")){const o=new URL(t);return""===o.hostname&&""===n?"chrome-extension:"===r&&t.replace("chrome-extension://","")===e.replace("chrome-extension://",""):"chrome-extension:"===r&&o.hostname===n}if(!Tn.test(r))return!1;if(_n.test(t))return n===t;const o=t.replace(/\./g,"\\.");return new RegExp("^(.+\\."+o+"|"+o+")$","i").test(n)}const xn=new N(3e4,6e4);function In(){const t=yr().___jsl;if(null==t?void 0:t.H)for(const e of Object.keys(t.H))if(t.H[e].r=t.H[e].r||[],t.H[e].L=t.H[e].L||[],t.H[e].r=[...t.H[e].L],t.CP)for(let i=0;i<t.CP.length;i++)t.CP[i]=null}let Pn=null;function On(t){return Pn=Pn||function(t){return new Promise(((e,r)=>{var n,o,l;function c(){In(),gapi.load("gapi.iframes",{callback:()=>{e(gapi.iframes.getContext())},ontimeout:()=>{In(),r(S(t,"network-request-failed"))},timeout:xn.get()})}if(null===(o=null===(n=yr().gapi)||void 0===n?void 0:n.iframes)||void 0===o?void 0:o.Iframe)e(gapi.iframes.getContext());else{if(!(null===(l=yr().gapi)||void 0===l?void 0:l.load)){const e=At("iframefcb");return yr()[e]=()=>{gapi.load?c():r(S(t,"network-request-failed"))},Ot(`https://apis.google.com/js/api.js?onload=${e}`).catch((t=>r(t)))}c()}})).catch((t=>{throw Pn=null,t}))}(t),Pn}const An=new N(5e3,15e3),kn={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},Cn=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function Dn(t){const e=t.config;O(e.authDomain,t,"auth-domain-config-required");const r=e.emulator?R(e,"emulator/auth/iframe"):`https://${t.config.authDomain}/__/auth/iframe`,l={apiKey:e.apiKey,appName:t.name,v:o.SDK_VERSION},c=Cn.get(t.config.apiHost);c&&(l.eid=c);const h=t._getFrameworks();return h.length&&(l.fw=h.join(",")),`${r}
2?${Object(n.z)(l).slice(1)}`}const Mn={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"};class Nn{constructor(t){this.window=t,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch(t){}}}function Rn(t,e,r,o=500,l=600){const c=Math.max((window.screen.availHeight-l)/2,0).toString(),h=Math.max((window.screen.availWidth-o)/2,0).toString();let d="";const f=Object.assign(Object.assign({},Mn),{width:o.toString(),height:l.toString(),top:c,left:h}),m=Object(n.q)().toLowerCase();r&&(d=mt(m)?"_blank":r),pt(m)&&(e=e||"http://localhost",f.scrollbars="yes");const y=Object.entries(f).reduce(((t,[e,r])=>`${t}${e}=${r},`),"");if(function(t=Object(n.q)()){var e;return wt(t)&&!!(null===(e=window.navigator)||void 0===e?void 0:e.standalone)}(m)&&"_self"!==d)return function(t,e){const r=document.createElement("a");r.href=t,r.target=e;const n=document.createEvent("MouseEvent");n.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),r.dispatchEvent(n)}(e||"",d),new Nn(null);const v=window.open(e||"",d,y);O(v,t,"popup-blocked");try{v.focus()}catch(t){}return new Nn(v)}const Fn="__/auth/handler",jn="emulator/auth/handler",Ln=encodeURIComponent("fac");async function Bn(t,e,r,l,c,h){O(t.config.authDomain,t,"auth-domain-config-required"),O(t.config.apiKey,t,"invalid-api-key");const d={apiKey:t.config.apiKey,appName:t.name,authType:r,redirectUrl:l,v:o.SDK_VERSION,eventId:c};if(e instanceof Zt){e.setDefaultLanguage(t.languageCode),d.providerId=e.providerId||"",Object(n.t)(e.getCustomParameters())||(d.customParameters=JSON.stringify(e.getCustomParameters()));for(const[t,e]of Object.entries(h||{}))d[t]=e}if(e instanceof te){const t=e.getScopes().filter((t=>""!==t));t.length>0&&(d.scopes=t.join(","))}t.tenantId&&(d.tid=t.tenantId);const f=d;for(const t of Object.keys(f))void 0===f[t]&&delete f[t];const m=await t._getAppCheckToken(),y=m?`#${Ln}=${encodeURIComponent(m)}`:"";return`${function({config:t}){if(!t.emulator)return`https://${t.authDomain}/${Fn}`;return R(t,jn)}(t)}?${Object(n.z)(f).slice(1)}${y}`}const Vn="webStorageSupport";const zn=class{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=dr,this._completeRedirectFn=gn,this._overrideRedirectResult=cn}async _openPopup(t,e,r,n){var o;k(null===(o=this.eventManagers[t._key()])||void 0===o?void 0:o.manager,"_initialize() not called before _openPopup()");return Rn(t,await Bn(t,e,r,C(),n),mr())}async _openRedirect(t,e,r,n){await this._originValidation(t);return function(t){yr().location.href=t}(await Bn(t,e,r,C(),n)),new Promise((()=>{}))}_initialize(t){const e=t._key();if(this.eventManagers[e]){const{manager:t,promise:r}=this.eventManagers[e];return t?Promise.resolve(t):(k(r,"If manager is not set, promise should be"),r)}const r=this.initAndGetManager(t);return this.eventManagers[e]={promise:r},r.catch((()=>{delete this.eventManagers[e]})),r}async initAndGetManager(t){const iframe=await async function(t){const e=await On(t),r=yr().gapi;return O(r,t,"internal-error"),e.open({where:document.body,url:Dn(t),messageHandlersFilter:r.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:kn,dontclear:!0},(iframe=>new Promise((async(e,r)=>{await iframe.restyle({setHideOnLeave:!1});const n=S(t,"network-request-failed"),o=yr().setTimeout((()=>{r(n)}),An.get());function l(){yr().clearTimeout(o),e(iframe)}iframe.ping(l).then(l,(()=>{r(n)}))}))))}(t),e=new vn(t);return iframe.register("authEvent",(r=>
2{O(null==r?void 0:r.authEvent,t,"invalid-auth-event");return{status:e.onEvent(r.authEvent)?"ACK":"ERROR"}}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[t._key()]={manager:e},this.iframes[t._key()]=iframe,e}_isIframeWebStorageSupported(t,e){this.iframes[t._key()].send(Vn,{type:Vn},(r=>{var n;const o=null===(n=null==r?void 0:r[0])||void 0===n?void 0:n[Vn];void 0!==o&&e(!!o),T(t,"internal-error")}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(t){const e=t._key();return this.originValidationPromises[e]||(this.originValidationPromises[e]=async function(t){if(t.config.emulator)return;const{authorizedDomains:e}=await En(t);for(const t of e)try{if(Sn(t))return}catch(t){}T(t,"unauthorized-domain")}(t)),this.originValidationPromises[e]}get _shouldInitProactively(){return _t()||ft()||wt()}};class Gn{constructor(t){this.factorId=t}_process(t,e,r){switch(e.type){case"enroll":return this._finalizeEnroll(t,e.credential,r);case"signin":return this._finalizeSignIn(t,e.credential);default:return A("unexpected MultiFactorSessionType")}}}class Un extends Gn{constructor(t){super("phone"),this.credential=t}static _fromCredential(t){return new Un(t)}_finalizeEnroll(t,e,r){return function(t,e){return V(t,"POST","/v2/accounts/mfaEnrollment:finalize",B(t,e))}
2(t,{idToken:e,displayName:r,phoneVerificationInfo:this.credential._makeVerificationRequest()})}_finalizeSignIn(t,e){return function(t,e){return V(t,"POST","/v2/accounts/mfaSignIn:finalize",B(t,e))}(t,{mfaPendingCredential:e,phoneVerificationInfo:this.credential._makeVerificationRequest()})}}class $n{constructor(){}static assertion(t){return Un._fromCredential(t)}}$n.FACTOR_ID="phone";var qn="@firebase/auth",Hn="0.23.2";class Yn{constructor(t){this.auth=t,this.internalListeners=new Map}getUid(){var t;return this.assertAuthConfigured(),(null===(t=this.auth.currentUser)||void 0===t?void 0:t.uid)||null}async getToken(t){if(this.assertAuthConfigured(),await this.auth._initializationPromise,!this.auth.currentUser)return null;return{accessToken:await this.auth.currentUser.getIdToken(t)}}addAuthTokenListener(t){if(this.assertAuthConfigured(),this.internalListeners.has(t))return;const e=this.auth.onIdTokenChanged((e=>{t((null==e?void 0:e.stsTokenManager.accessToken)||null)}));this.internalListeners.set(t,e),this.updateProactiveRefresh()}removeAuthTokenListener(t){this.assertAuthConfigured();const e=this.internalListeners.get(t);e&&(this.internalListeners.delete(t),e(),this.updateProactiveRefresh())}assertAuthConfigured(){O(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}const Wn=Object(n.o)("authIdTokenMaxAge")||300;let Kn=null;function Qn(t=Object(o.getApp)()){const e=Object(o._getProvider)(t,"auth");if(e.isInitialized())return e.getImmediate();const r=function(t,e){const r=Object(o._getProvider)(t,"auth");if(r.isInitialized()){const t=r.getImmediate(),o=r.getOptions();if(Object(n.j)(o,null!=e?e:{}))return t;T(t,"already-initialized")}return r.initialize({options:e})}(t,{popupRedirectResolver:zn,persistence:[Ar,ur,dr]}),l=Object(n.o)("authTokenSyncURL");if(l){const t=(c=l,async t=>{const e=t&&await t.getIdTokenResult(),r=e&&((new Date).getTime()-Date.parse(e.issuedAtTime))/1e3;if(r&&r>Wn)return;const n=null==e?void 0:e.token;Kn!==n&&(Kn=n,await fetch(c,{method:n?"POST":"DELETE",headers:n?{Authorization:`Bearer ${n}`}:{}}))});!function(t,e,r){Object(n.p)(t).beforeAuthStateChanged(e,r)}(r,t,(()=>t(r.currentUser))),function(t,e,r,o){Object(n.p)(t).onIdTokenChanged(e,r,o)}(r,(e=>t(e)))}var c;const h=Object(n.n)("auth");return h&&Ft(r,`http://${h}`),r}var Jn;Jn="Browser",Object(o._registerComponent)(new h.a("auth",((t,{options:e})=>{const r=t.getProvider("app").getImmediate(),n=t.getProvider("heartbeat"),o=t.getProvider("app-check-internal"),{apiKey:l,authDomain:c}=r.options;O(l&&!l.includes(":"),"invalid-api-key",{appName:r.name});const h={apiKey:l,authDomain:c,clientPlatform:Jn,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:Tt(Jn)},d=new Mt(r,n,o,h);return function(t,e){const r=(null==e?void 0:e.persistence)||[],n=(Array.isArray(r)?r:[r]).map(st);(null==e?void 0:e.errorMap)&&t._updateErrorMap(e.errorMap),t._initializeWithPersistence(n,null==e?void 0:e.popupRedirectResolver)}(d,e),d}),"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback(((t,e,r)=>{t.getProvider("auth-internal").initialize()}))),Object(o._registerComponent)(new h.a("auth-internal",(t=>(t=>new Yn(t))(Nt(t.getProvider("auth").getImmediate()))),"PRIVATE").setInstantiationMode("EXPLICIT")),Object(o.registerVersion)(qn,Hn,function(t){switch(t){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";default:return}}(Jn)),Object(o.registerVersion)(qn,Hn,"esm2017")},70:function(t,e,r){"use strict";r.d(e,"a",(function(){return o})),r.d(e,"b",(function(){return f})),r.d(e,"c",(function(){return m})),r.d(e,"d",(function(){return y}));const n=[];var o;!function(t){t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT"}(o||(o={}));const l={debug:o.DEBUG,verbose:o.VERBOSE,info:o.INFO,warn:o.WARN,error:o.ERROR,silent:o.SILENT},c=o.INFO,h={[o.DEBUG]:"log",[o.VERBOSE]:"log",[o.INFO]:"info",[o.WARN]:"warn",[o.ERROR]:"error"},d=(t,e,...r)=>{if(e<t.logLevel)return;const n=(new Date).toISOString(),o=h[e];if(!o)throw new Error(`Attempted to log a message with an invali
2d logType (value: ${e})`);console[o](`[${n}]  ${t.name}:`,...r)};class f{constructor(t){this.name=t,this._logLevel=c,this._logHandler=d,this._userLogHandler=null,n.push(this)}get logLevel(){return this._logLevel}set logLevel(t){if(!(t in o))throw new TypeError(`Invalid value "${t}" assigned to \`logLevel\``);this._logLevel=t}setLogLevel(t){this._logLevel="string"==typeof t?l[t]:t}get logHandler(){return this._logHandler}set logHandler(t){if("function"!=typeof t)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t}get userLogHandler(){return this._userLogHandler}set userLogHandler(t){this._userLogHandler=t}debug(...t){this._userLogHandler&&this._userLogHandler(this,o.DEBUG,...t),this._logHandler(this,o.DEBUG,...t)}log(...t){this._userLogHandler&&this._userLogHandler(this,o.VERBOSE,...t),this._logHandler(this,o.VERBOSE,...t)}info(...t){this._userLogHandler&&this._userLogHandler(this,o.INFO,...t),this._logHandler(this,o.INFO,...t)}warn(...t){this._userLogHandler&&this._userLogHandler(this,o.WARN,...t),this._logHandler(this,o.WARN,...t)}error(...t){this._userLogHandler&&this._userLogHandler(this,o.ERROR,...t),this._logHandler(this,o.ERROR,...t)}}function m(t){n.forEach((e=>{e.setLogLevel(t)}))}function y(t,e){for(const r of n){let n=null;e&&e.level&&(n=l[e.level]),r.userLogHandler=null===t?null:(e,r,...l)=>{const c=l.map((t=>{if(null==t)return null;if("string"==typeof t)return t;if("number"==typeof t||"boolean"==typeof t)return t.toString();if(t instanceof Error)return t.message;try{return JSON.stringify(t)}catch(t){return null}})).filter((t=>t)).join(" ");r>=(null!=n?n:e.logLevel)&&t({level:o[r].toLowerCase(),message:c,args:l,type:e.name})}}}}}]);

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.