/*! For license information please see main.b6563103.js.LICENSE.txt */ (function(){var __webpack_modules__={7024:function(e,t,n){"use strict";n.r(t),n.d(t,{Icon:function(){return _},default:function(){return w}});var r=n(7462),i=n(4942),a=n(2791),s=n(16),o=n(2629),l={light:"var(--ds-surface, #FFFFFF)",dark:"var(--ds-surface, #1B2638)"},c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return l[e]},u="16px",p="24px",d="32px",f="48px",h={small:{width:u,height:u},medium:{width:p,height:p},large:{width:d,height:d},xlarge:{width:f,height:f}},m=((0,s.iv)(h.small),(0,s.iv)(h.medium),(0,s.iv)(h.large),(0,s.iv)(h.xlarge),function(e){var t=e.width,n=e.height,r=e.size;return t&&n?{width:t,height:n}:r?h[r]:void 0});function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t svg":v(v({},{overflow:"hidden",pointerEvents:"none",stop:{stopColor:"currentColor"}}),{},{maxWidth:"100%",maxHeight:"100%",color:"var(--icon-primary-color)",fill:"var(--icon-secondary-color)",verticalAlign:"bottom"})}),x=(0,s.iv)({"@media screen and (forced-colors: active)":{"> svg":{filter:"grayscale(1)","--icon-primary-color":"CanvasText","--icon-secondary-color":"Canvas"}}}),b=(0,s.iv)({"@media screen and (forced-colors: active)":{"> svg":{"--icon-primary-color":"Canvas"}}}),k=(0,s.iv)({"@media screen and (forced-colors: active)":{"> svg":{"--icon-secondary-color":"transparent"}}}),_=(0,a.memo)((function(e){var t=e,n=t.glyph,i=t.dangerouslySetGlyph,a=t.primaryColor,l=void 0===a?"currentColor":a,u=t.secondaryColor,p=t.size,d=t.testId,f=t.label,h=t.width,y=t.height,v=i?{dangerouslySetInnerHTML:{__html:i}}:{children:n?(0,s.tZ)(n,{role:"presentation"}):null},_=m({width:h,height:y,size:p}),w=(0,o.m)().mode;return(0,s.tZ)("span",(0,r.Z)({"data-testid":d,role:f?"img":void 0,"aria-label":f||void 0,"aria-hidden":!f||void 0,style:{"--icon-primary-color":l,"--icon-secondary-color":u||c(w)}},v,{css:[g,x,l===u&&b,"transparent"===u&&k,_&&(0,s.iv)({width:_.width,height:_.height,"> svg":_})]}))})),w=_},7758:function(e,t,n){"use strict";t.Z=void 0;var r,i=(r=n(2791))&&r.__esModule?r:{default:r},a=n(7024);var s=function(e){return i.default.createElement(a.Icon,Object.assign({dangerouslySetGlyph:''},e))};s.displayName="CrossIcon";var o=s;t.Z=o},6709:function(e,t,n){"use strict";t.Z=void 0;var r,i=(r=n(2791))&&r.__esModule?r:{default:r},a=n(7024);var s=function(e){return i.default.createElement(a.Icon,Object.assign({dangerouslySetGlyph:''},e))};s.displayName="HipchatChevronDownIcon";var o=s;t.Z=o},1270:function(e,t,n){"use strict";t.Z=void 0;var r,i=(r=n(2791))&&r.__esModule?r:{default:r},a=n(7024);var s=function(e){return i.default.createElement(a.Icon,Object.assign({dangerouslySetGlyph:''},e))};s.displayName="HipchatChevronUpIcon";var o=s;t.Z=o},7684:function(e,t,n){"use strict";t.Z=void 0;var r,i=(r=n(2791))&&r.__esModule?r:{default:r},a=n(7024);var s=function(e){return i.default.createElement(a.Icon,Object.assign({dangerouslySetGlyph:''},e))};s.displayName="InfoIcon";var o=s;t.Z=o},2629:function(e,t,n){"use strict";n.d(t,{m:function(){return s}});var r=(0,n(2854).j)((function(){return{mode:"light"}})),i=r.Provider,a=r.Consumer,s=r.useTheme;t.Z={Provider:i,Consumer:a}},2854:function(e,t,n){"use strict";n.d(t,{j:function(){return s}});var r=n(5987),i=n(2791),a=["children"];function s(e){var t=function(e,t){return e(t)},n=(0,i.createContext)(e);function s(e){return((0,i.useContext)(n)||t)(e)}return{Consumer:function(e){var t=e.children,n=s((0,r.Z)(e,a));return i.createElement(i.Fragment,null,t(n))},Provider:function(e){var r=(0,i.useContext)(n),a=e.value||t,s=(0,i.useCallback)((function(e){return a(r,e)}),[r,a]);return i.createElement(n.Provider,{value:s},e.children)},useTheme:s}}},7121:function(e,t,n){"use strict";var r,i=n(2791),a=(r=i)&&"object"===typeof r&&"default"in r?r.default:r,s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?d(_,--b):0,g--,10===k&&(g=1,v--),k}function P(){return k=b2||T(k)>3?"":" "}function B(e,t){for(;--t&&P()&&!(k<48||k>102||k>57&&k<65||k>70&&k<97););return D(e,C()+(t<6&&32==A()&&32==P()))}function M(e){for(;P();)switch(k){case e:return b;case 34:case 39:34!==e&&39!==e&&M(k);break;case 40:41===e&&M(e);break;case 92:P()}return b}function R(e,t){for(;P()&&e+k!==57&&(e+k!==84||47!==A()););return"/*"+D(t,b-1)+"*"+o(47===e?e:P())}function L(e){for(;!T(A());)P();return D(e,b)}var N="-ms-",V="-moz-",G="-webkit-",z="comm",U="rule",q="decl",H="@keyframes";function Z(e,t){for(var n="",r=m(e),i=0;i0&&h(M)-v&&y(x>32?J(M+";",r,n,v-1):J(u(M," ","")+";",r,n,v-2),c);break;case 59:M+=";";default:if(y(j=Y(M,t,n,f,m,i,l,D,T=[],O=[],v),a),123===E)if(0===m)$(M,t,j,j,T,a,v,l,O);else switch(99===g&&110===d(M,3)?100:g){case 100:case 109:case 115:$(e,j,j,r&&y(Y(e,j,j,0,0,i,l,D,i,T=[],v),O),i,O,v,l,r?T:O);break;default:$(M,j,j,j,[""],O,0,l,O)}}f=m=x=0,k=w=1,D=M="",v=s;break;case 58:v=1+h(M),x=b;default:if(k<1)if(123==E)--k;else if(125==E&&0==k++&&125==S())continue;switch(M+=o(E),E*k){case 38:w=m>0?1:(M+="\f",-1);break;case 44:l[f++]=(h(M)-1)*w,w=1;break;case 64:45===A()&&(M+=F(P())),g=A(),m=v=h(D=M+=L(C())),E++;break;case 45:45===b&&2==h(M)&&(k=0)}}return a}function Y(e,t,n,r,i,a,o,l,p,d,h){for(var y=i-1,v=0===i?a:[""],g=m(v),x=0,b=0,k=0;x0?v[_]+" "+E:u(E,/&\f/g,v[_])))&&(p[k++]=S);return w(e,t,n,0===i?U:l,p,d,h)}function Q(e,t,n){return w(e,t,n,z,o(k),f(e,2,-2),0)}function J(e,t,n,r){return w(e,t,n,q,f(e,0,r),f(e,r+1,-1),r)}var X=function(e,t,n){for(var r=0,i=0;r=i,i=A(),38===r&&12===i&&(t[n]=1),!T(i);)P();return D(e,b)},ee=function(e,t){return j(function(e,t){var n=-1,r=44;do{switch(T(r)){case 0:38===r&&12===A()&&(t[n]=1),e[n]+=X(b-1,t,n);break;case 2:e[n]+=F(r);break;case 4:if(44===r){e[++n]=58===A()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=o(r)}}while(r=P());return e}(O(e),t))},te=new WeakMap,ne=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||te.get(n))&&!r){te.set(e,!0);for(var i=[],a=ee(t,i),s=n.props,o=0,l=0;o6)switch(d(e,t+1)){case 109:if(45!==d(e,t+4))break;case 102:return u(e,/(.+:)(.+)-([^]+)/,"$1"+G+"$2-$3$1"+V+(108==d(e,t+3)?"$3":"$2-$3"))+e;case 115:return~p(e,"stretch")?ie(u(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==d(e,t+1))break;case 6444:switch(d(e,h(e)-3-(~p(e,"!important")&&10))){case 107:return u(e,":",":"+G)+e;case 101:return u(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+G+(45===d(e,14)?"inline-":"")+"box$3$1"+G+"$2$3$1"+N+"$2box$3")+e}break;case 5936:switch(d(e,t+11)){case 114:return G+e+N+u(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return G+e+N+u(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return G+e+N+u(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return G+e+N+e+e}return e}var ae=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case q:e.return=ie(e.value,e.length);break;case H:return Z([E(e,{value:u(e.value,"@","@"+G)})],r);case U:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Z([E(e,{props:[u(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Z([E(e,{props:[u(t,/:(plac\w+)/,":"+G+"input-$1")]}),E(e,{props:[u(t,/:(plac\w+)/,":-moz-$1")]}),E(e,{props:[u(t,/:(plac\w+)/,N+"input-$1")]})],r)}return""}))}}],se=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||ae;var i,s,o={},l=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},pe={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var de=/[A-Z]|^ms/g,fe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,he=function(e){return 45===e.charCodeAt(1)},me=function(e){return null!=e&&"boolean"!==typeof e},ye=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return he(e)?e:e.replace(de,"-$&").toLowerCase()})),ve=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(fe,(function(e,t,n){return xe={name:t,styles:n,next:xe},t}))}return 1===pe[e]||he(e)||"number"!==typeof t||0===t?t:t+"px"};function ge(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return xe={name:n.name,styles:n.styles,next:xe},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)xe={name:r.name,styles:r.styles,next:xe},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i=0;o--)(i=e[o])&&(s=(a<3?i(s):a>3?i(t,n,s):i(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s}function __param(e,t){return function(n,r){t(n,r,e)}}function __metadata(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function __awaiter(e,t,n,r){return new(n||(n=Promise))((function(i,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((r=r.apply(e,t||[])).next())}))}function __generator(e,t){var n,r,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(a){return function(o){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return s}function __spread(){for(var e=[],t=0;t1||o(e,t)}))})}function o(e,t){try{(n=i[e](t)).value instanceof __await?Promise.resolve(n.value.v).then(l,c):u(a[0][2],n)}catch(e){u(a[0][3],e)}var n}function l(e){o("next",e)}function c(e){o("throw",e)}function u(e,t){e(t),a.shift(),a.length&&o(a[0][0],a[0][1])}}function __asyncDelegator(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:__await(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function __asyncValues(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}function __makeTemplateObject(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var __setModuleDefault=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function __importStar(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&__createBinding(t,e,n);return __setModuleDefault(t,e),t}function __importDefault(e){return e&&e.__esModule?e:{default:e}}function __classPrivateFieldGet(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function __classPrivateFieldSet(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof __webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:{};function unwrapExports(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function createCommonjsModule(e,t){return e(t={exports:{}},t.exports),t.exports}function getCjsExportFromNamespace(e){return e&&e.default||e}function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var lottie=createCommonjsModule((function(module,exports){var e;"undefined"!=typeof navigator&&(e=function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(e){_useWebWorker=!!e},getWebWorker=function(){return _useWebWorker},setLocationHref=function(e){locationHref=e},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var n,r,i=e.length;for(n=0;n1?n[1]=1:n[1]<=0&&(n[1]=0),HSVtoRGB(n[0],n[1],n[2])}function addBrightnessToRGB(e,t){var n=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return n[2]+=t,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),HSVtoRGB(n[0],n[1],n[2])}function addHueToRGB(e,t){var n=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return n[0]+=t/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),HSVtoRGB(n[0],n[1],n[2])}var rgbToHex=function(){var e,t,n=[];for(e=0;e<256;e+=1)t=e.toString(16),n[e]=1===t.length?"0"+t:t;return function(e,t,r){return e<0&&(e=0),t<0&&(t=0),r<0&&(r=0),"#"+n[e]+n[t]+n[r]}}(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(e){expressionsInterfaces=e},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix$1=e},getIdPrefix=function(){return idPrefix$1};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){return(_typeof$5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var dataManager=function(){var e,t,n=1,r=[],i={onmessage:function(){},postMessage:function(t){e({data:t})}},a={postMessage:function(e){i.onmessage({data:e})}};function s(){t||((t=function(t){if(window.Worker&&window.Blob&&getWebWorker()){var n=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"}),r=URL.createObjectURL(n);return new Worker(r)}return e=t,i}((function(e){if(a.dataManager||(a.dataManager=function(){function e(i,a){var s,o,l,c,u,d,f=i.length;for(o=0;o=0;t-=1)if("sh"===e[t].ty)if(e[t].ks.k.i)r(e[t].ks.k);else for(a=e[t].ks.k.length,i=0;in[0]||!(n[0]>e[0])&&(e[1]>n[1]||!(n[1]>e[1])&&(e[2]>n[2]||!(n[2]>e[2])&&null))}var a,s=function(){var e=[4,4,14];function t(e){var t,n,r,i=e.length;for(t=0;t=0;n-=1)if("sh"===e[n].ty)if(e[n].ks.k.i)e[n].ks.k.c=e[n].closed;else for(i=e[n].ks.k.length,r=0;r500)&&(this._imageLoaded(),clearInterval(n)),t+=1}.bind(this),50)}function a(e){var t={assetData:e},n=r(e,this.assetsPath,this.path);return dataManager.loadData(n,function(e){t.img=e,this._footageLoaded()}.bind(this),function(){t.img={},this._footageLoaded()}.bind(this)),t}function s(){this._imageLoaded=t.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=i.bind(this),this.createFootageData=a.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return s.prototype={loadAssets:function(e,t){var n;this.imagesLoadedCb=t;var r=e.length;for(n=0;nthis.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t,n,r=this.animationData.layers,i=r.length,a=e.layers,s=a.length;for(n=0;nthis.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(e){e&&this.name!==e||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,n=0;n=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(n=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(n=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),n&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFramet&&(n=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,-1!==n&&this.goToAndStop(n,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),"object"===_typeof$4(e[0])){var n,r=e.length;for(n=0;n=0;n-=1)t[n].animation.destroy(e)},e.freeze=function(){s=!0},e.unfreeze=function(){s=!1,h()},e.setVolume=function(e,n){var i;for(i=0;i=.001?function(e,t,n,r){for(var i=0;i<4;++i){var a=o(t,n,r);if(0===a)return t;t-=(s(t,n,r)-e)/a}return t}(e,l,t,n):0===c?l:function(e,t,n,r,i){var a,o,l=0;do{(a=s(o=t+(n-t)/2,r,i)-e)>0?n=o:t=o}while(Math.abs(a)>1e-7&&++l<10);return o}(e,i,i+.1,t,n)}},e}(),pooling={double:function(e){return e.concat(createSizedArray(e.length))}},poolFactory=function(e,t,n){var r=0,i=e,a=createSizedArray(i);return{newElement:function(){return r?a[r-=1]:t()},release:function(e){r===i&&(a=pooling.double(a),i*=2),n&&n(e),a[r]=e,r+=1}}},bezierLengthPool=poolFactory(8,(function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}})),segmentsLengthPool=poolFactory(8,(function(){return{lengths:[],totalLength:0}}),(function(e){var t,n=e.lengths.length;for(t=0;t-.001&&s<.001}var n=function(e,t,n,r){var i,a,s,o,l,c,u=getDefaultCurveSegments(),p=0,d=[],f=[],h=bezierLengthPool.newElement();for(s=n.length,i=0;is?-1:1,c=!0;c;)if(r[a]<=s&&r[a+1]>s?(o=(s-r[a])/(r[a+1]-r[a]),c=!1):a+=l,a<0||a>=i-1){if(a===i-1)return n[a];c=!1}return n[a]+(n[a+1]-n[a])*o}var l=createTypedArray("float32",8);return{getSegmentsLength:function(e){var t,r=segmentsLengthPool.newElement(),i=e.c,a=e.v,s=e.o,o=e.i,l=e._length,c=r.lengths,u=0;for(t=0;t1&&(a=1);var u,p=o(a,c),d=o(s=s>1?1:s,c),f=t.length,h=1-p,m=1-d,y=h*h*h,v=p*h*h*3,g=p*p*h*3,x=p*p*p,b=h*h*m,k=p*h*m+h*p*m+h*h*d,_=p*p*m+h*p*d+p*h*d,w=p*p*d,E=h*m*m,S=p*m*m+h*d*m+h*m*d,P=p*d*m+h*d*d+p*m*d,A=p*d*d,C=m*m*m,D=d*m*m+m*d*m+m*m*d,T=d*d*m+m*d*d+d*m*d,O=d*d*d;for(u=0;uf?d>h?d-f-h:h-f-d:h>f?h-f-d:f-d-h)>-1e-4&&p<1e-4}}}var bez=bezFunction(),PropertyFactory=function(){var e=initialDefaultFrame,t=Math.abs;function n(e,t){var n,i=this.offsetTime;"multidimensional"===this.propType&&(n=createTypedArray("float32",this.pv.length));for(var a,s,o,l,c,u,p,d,f,h=t.lastIndex,m=h,y=this.keyframes.length-1,v=!0;v;){if(a=this.keyframes[m],s=this.keyframes[m+1],m===y-1&&e>=s.t-i){a.h&&(a=s),h=0;break}if(s.t-i>e){h=m;break}m=x||e=x?k.points.length-1:0;for(c=k.points[_].point.length,l=0;l=S&&E=x?(n[0]=g[0],n[1]=g[1],n[2]=g[2]):e<=b?(n[0]=a.s[0],n[1]=a.s[1],n[2]=a.s[2]):function(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],s=Math.atan2(2*r*a-2*n*i,1-2*r*r-2*i*i),o=Math.asin(2*n*r+2*i*a),l=Math.atan2(2*n*a-2*r*i,1-2*n*n-2*i*i);e[0]=s/degToRads,e[1]=o/degToRads,e[2]=l/degToRads}(n,function(e,t,n){var r,i,a,s,o,l=[],c=e[0],u=e[1],p=e[2],d=e[3],f=t[0],h=t[1],m=t[2],y=t[3];return(i=c*f+u*h+p*m+d*y)<0&&(i=-i,f=-f,h=-h,m=-m,y=-y),1-i>1e-6?(r=Math.acos(i),a=Math.sin(r),s=Math.sin((1-n)*r)/a,o=Math.sin(n*r)/a):(s=1-n,o=n),l[0]=s*c+o*f,l[1]=s*u+o*h,l[2]=s*p+o*m,l[3]=s*d+o*y,l}(r(a.s),r(g),(e-b)/(x-b)));else for(m=0;m=x?u=1:e=r&&t>=r||this._caching.lastFrame=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(t,this._caching);this.pv=i}return this._caching.lastFrame=t,this.pv}function a(e){var n;if("unidimensional"===this.propType)n=e*this.mult,t(this.v-n)>1e-5&&(this.v=n,this._mdf=!0);else for(var r=0,i=this.v.length;r1e-5&&(this.v[r]=n,this._mdf=!0),r+=1}function s(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e;this.lock=!0,this._mdf=this._isFirstFrame;var t=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(e=0;e=this._maxLength&&this.doubleArrayLength(),n){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[]}(!a[r]||a[r]&&!i)&&(a[r]=pointPool.newElement()),a[r][0]=e,a[r][1]=t},ShapePath.prototype.setTripleAt=function(e,t,n,r,i,a,s,o){this.setXYAt(e,t,"v",s,o),this.setXYAt(n,r,"o",s,o),this.setXYAt(i,a,"i",s,o)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,n=this.o,r=this.i,i=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],r[0][0],r[0][1],n[0][0],n[0][1],0,!1),i=1);var a,s=this._length-1,o=this._length;for(a=i;a=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 h,m,y,v=d,g=f.length-1,x=!0;x&&(h=f[v],!((m=f[v+1]).t-this.offsetTime>e));)v=m.t-this.offsetTime)u=1;else if(en&&e>n)||(this._caching.lastIndex=r0||e>-1e-6&&e<0?r(1e4*e)/1e4:e}function j(){var e=this.props;return"matrix("+O(e[0])+","+O(e[1])+","+O(e[4])+","+O(e[5])+","+O(e[12])+","+O(e[13])+")"}return function(){this.reset=i,this.rotate=a,this.rotateX=s,this.rotateY=o,this.rotateZ=l,this.skew=u,this.skewFromAxis=p,this.shear=c,this.scale=d,this.setTransform=f,this.translate=h,this.transform=m,this.applyToPoint=b,this.applyToX=k,this.applyToY=_,this.applyToZ=w,this.applyToPointArray=C,this.applyToTriplePoints=A,this.applyToPointStringified=D,this.toCSS=T,this.to2dCSS=j,this.clone=g,this.cloneFromProps=x,this.equals=v,this.inversePoints=P,this.inversePoint=S,this.getInverseMatrix=E,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){return(_typeof$3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(e){setLocationHref(e)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return!0===standalone&&(e.animationData=JSON.parse(animationData)),animationManager.loadAnimation(e)}function setQuality(e){if("string"==typeof e)switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(e,t){"expressions"===e&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),n=0;n=1?a.push({s:e-1,e:t-1}):(a.push({s:e,e:1}),a.push({s:0,e:t-1}));var s,o,l=[],c=a.length;for(s=0;sr+n||(u=o.s*i<=r?0:(o.s*i-r)/n,p=o.e*i>=r+n?1:(o.e*i-r)/n,l.push([u,p]))}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(e){var t,n=e.length;for(t=0;t1?1+a:this.s.v<0?0+a:this.s.v+a)>(n=this.e.v>1?1+a:this.e.v<0?0+a:this.e.v+a)){var s=t;t=n,n=s}t=1e-4*Math.round(1e4*t),n=1e-4*Math.round(1e4*n),this.sValue=t,this.eValue=n}else t=this.sValue,n=this.eValue;var o,l,c,u,p,d=this.shapes.length,f=0;if(n===t)for(i=0;i=0;i-=1)if((h=this.shapes[i]).shape._mdf){for((m=h.localShapeCollection).releaseShapes(),2===this.m&&d>1?(v=this.calculateShapeEdges(t,n,h.totalShapeLength,b,f),b+=h.totalShapeLength):v=[[g,x]],l=v.length,o=0;o=1?y.push({s:h.totalShapeLength*(g-1),e:h.totalShapeLength*(x-1)}):(y.push({s:h.totalShapeLength*g,e:h.totalShapeLength}),y.push({s:0,e:h.totalShapeLength*(x-1)}));var k=this.addShapes(h,y[0]);if(y[0].s!==y[0].e){if(y.length>1)if(h.shape.paths.shapes[h.shape.paths._length-1].c){var _=k.pop();this.addPaths(k,m),k=this.addShapes(h,y[1],_)}else this.addPaths(k,m),k=this.addShapes(h,y[1]);this.addPaths(k,m)}}h.shape.paths=m}}},TrimModifier.prototype.addPaths=function(e,t){var n,r=e.length;for(n=0;nt.e){n.c=!1;break}t.s<=h&&t.e>=h+s.addedLength?(this.addSegment(d[r].v[i-1],d[r].o[i-1],d[r].i[i],d[r].v[i],n,o,y),y=!1):(c=bez.getNewSegment(d[r].v[i-1],d[r].v[i],d[r].o[i-1],d[r].i[i],(t.s-h)/s.addedLength,(t.e-h)/s.addedLength,l[i-1]),this.addSegmentFromArray(c,n,o,y),y=!1,n.c=!1),h+=s.addedLength,o+=1}if(d[r].c&&l.length){if(s=l[i-1],h<=t.e){var v=l[i-1].addedLength;t.s<=h&&t.e>=h+v?(this.addSegment(d[r].v[i-1],d[r].o[i-1],d[r].i[0],d[r].v[0],n,o,y),y=!1):(c=bez.getNewSegment(d[r].v[i-1],d[r].v[0],d[r].o[i-1],d[r].i[0],(t.s-h)/v,(t.e-h)/v,l[i-1]),this.addSegmentFromArray(c,n,o,y),y=!1,n.c=!1)}else n.c=!1;h+=s.addedLength,o+=1}if(n._length&&(n.setXYAt(n.v[u][0],n.v[u][1],"i",u),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),h>t.e)break;r=this.p.keyframes[this.p.keyframes.length-1].t?(r=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/n,0),i=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/n,0)):(r=this.p.pv,i=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/n,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){r=[],i=[];var a=this.px,s=this.py;a._caching.lastFrame+a.offsetTime<=a.keyframes[0].t?(r[0]=a.getValueAtTime((a.keyframes[0].t+.01)/n,0),r[1]=s.getValueAtTime((s.keyframes[0].t+.01)/n,0),i[0]=a.getValueAtTime(a.keyframes[0].t/n,0),i[1]=s.getValueAtTime(s.keyframes[0].t/n,0)):a._caching.lastFrame+a.offsetTime>=a.keyframes[a.keyframes.length-1].t?(r[0]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/n,0),r[1]=s.getValueAtTime(s.keyframes[s.keyframes.length-1].t/n,0),i[0]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/n,0),i[1]=s.getValueAtTime((s.keyframes[s.keyframes.length-1].t-.01)/n,0)):(r=[a.pv,s.pv],i[0]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/n,a.offsetTime),i[1]=s.getValueAtTime((s._caching.lastFrame+s.offsetTime-.01)/n,s.offsetTime))}else r=i=e;this.v.rotate(-Math.atan2(r[1]-i[1],r[0]-i[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(!this.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],t),t.prototype.addDynamicProperty=function(e){this._addDynamicProperty(e),this.elem.addDynamicProperty(e),this._isDirty=!0},t.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(e,n,r){return new t(e,n,r)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(e,t){return 1e5*Math.abs(e-t)<=Math.min(Math.abs(e),Math.abs(t))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,t,n){return e*(1-n)+t*n}function lerpPoint(e,t,n){return[lerp(e[0],t[0],n),lerp(e[1],t[1],n)]}function quadRoots(e,t,n){if(0===e)return[];var r=t*t-4*e*n;if(r<0)return[];var i=-t/(2*e);if(0===r)return[i];var a=Math.sqrt(r)/(2*e);return[i-a,i+a]}function polynomialCoefficients(e,t,n,r){return[3*t-e-3*n+r,3*e-6*t+3*n,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,n,r,i){i&&pointEqual(e,t)&&(t=lerpPoint(e,r,1/3)),i&&pointEqual(n,r)&&(n=lerpPoint(e,r,2/3));var a=polynomialCoefficients(e[0],t[0],n[0],r[0]),s=polynomialCoefficients(e[1],t[1],n[1],r[1]);this.a=[a[0],s[0]],this.b=[a[1],s[1]],this.c=[a[2],s[2]],this.d=[a[3],s[3]],this.points=[e,t,n,r]}function extrema(e,t){var n=e.points[0][t],r=e.points[e.points.length-1][t];if(n>r){var i=r;r=n,n=i}for(var a=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),s=0;s0&&a[s]<1){var o=e.point(a[s])[t];or&&(r=o)}return{min:n,max:r}}function intersectData(e,t,n){var r=e.boundingBox();return{cx:r.cx,cy:r.cy,width:r.width,height:r.height,bez:e,t:(t+n)/2,t1:t,t2:n}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return 2*Math.abs(e.cx-t.cx)=a||e.width<=r&&e.height<=r&&t.width<=r&&t.height<=r)i.push([e.t,t.t]);else{var s=splitData(e),o=splitData(t);intersectsImpl(s[0],o[0],n+1,r,i,a),intersectsImpl(s[0],o[1],n+1,r,i,a),intersectsImpl(s[1],o[0],n+1,r,i,a),intersectsImpl(s[1],o[1],n+1,r,i,a)}}function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,n,r){var i=[e[0],e[1],1],a=[t[0],t[1],1],s=[n[0],n[1],1],o=[r[0],r[1],1],l=crossProduct(crossProduct(i,a),crossProduct(s,o));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(e,t,n){return[e[0]+Math.cos(t)*n,e[1]-Math.sin(t)*n]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}function setPoint(e,t,n,r,i,a,s){var o=n-Math.PI/2,l=n+Math.PI/2,c=t[0]+Math.cos(n)*r*i,u=t[1]-Math.sin(n)*r*i;e.setTripleAt(c,u,c+Math.cos(o)*a,u-Math.sin(o)*a,c+Math.cos(l)*s,u-Math.sin(l)*s,e.length())}function getPerpendicularVector(e,t){var n=[t[0]-e[0],t[1]-e[1]],r=.5*-Math.PI;return[Math.cos(r)*n[0]-Math.sin(r)*n[1],Math.sin(r)*n[0]+Math.cos(r)*n[1]]}function getProjectingAngle(e,t){var n=0===t?e.length()-1:t-1,r=(t+1)%e.length(),i=getPerpendicularVector(e.v[n],e.v[r]);return Math.atan2(0,1)-Math.atan2(i[1],i[0])}function zigZagCorner(e,t,n,r,i,a,s){var o=getProjectingAngle(t,n),l=t.v[n%t._length],c=t.v[0===n?t._length-1:n-1],u=t.v[(n+1)%t._length],p=2===a?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0,d=2===a?Math.sqrt(Math.pow(l[0]-u[0],2)+Math.pow(l[1]-u[1],2)):0;setPoint(e,t.v[n%t._length],o,s,r,d/(2*(i+1)),p/(2*(i+1)),a)}function zigZagSegment(e,t,n,r,i,a){for(var s=0;s1&&t.length>1&&(i=getIntersection(e[0],t[t.length-1]))?[[e[0].split(i[0])[0]],[t[t.length-1].split(i[1])[1]]]:[n,r]}function pruneIntersections(e){for(var t,n=1;n1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var n,r,i,a,s=e.inflectionPoints();if(0===s.length)return[offsetSegment(e,t)];if(1===s.length||floatEqual(s[1],1))return n=(i=e.split(s[0]))[0],r=i[1],[offsetSegment(n,t),offsetSegment(r,t)];n=(i=e.split(s[0]))[0];var o=(s[1]-s[0])/(1-s[0]);return a=(i=i[1].split(o))[0],r=i[1],[offsetSegment(n,t),offsetSegment(a,t),offsetSegment(r,t)]}function OffsetPathModifier(){}function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],n="normal",r="normal",i=t.length,a=0;a0;)n-=1,this._elements.unshift(t[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,n=e.length;for(t=0;t0?Math.floor(d):Math.ceil(d),m=this.pMatrix.props,y=this.rMatrix.props,v=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var g,x,b=0;if(d>0){for(;bh;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),b-=1;f&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-f,!0),b-=f)}for(r=1===this.data.m?0:this._currentCopies-1,i=1===this.data.m?1:-1,a=this._currentCopies;a;){if(x=(n=(t=this.elemsData[r].it)[t.length-1].transform.mProps.v.props).length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(r/(this._currentCopies-1)),0!==b){for((0!==r&&1===i||r!==this._currentCopies-1&&-1===i)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(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(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),g=0;g0&&r<1?[t]:[]:[t-r,t+r].filter((function(e){return e>0&&e<1}))},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var t=lerpPoint(this.points[0],this.points[1],e),n=lerpPoint(this.points[1],this.points[2],e),r=lerpPoint(this.points[2],this.points[3],e),i=lerpPoint(t,n,e),a=lerpPoint(n,r,e),s=lerpPoint(i,a,e);return[new PolynomialBezier(this.points[0],t,i,s,!0),new PolynomialBezier(s,a,r,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}},PolynomialBezier.prototype.intersections=function(e,t,n){void 0===t&&(t=2),void 0===n&&(n=7);var r=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,r,n),r},PolynomialBezier.shapeSegment=function(e,t){var n=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[n],e.v[n],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var n=(t+1)%e.length();return new PolynomialBezier(e.v[n],e.i[n],e.o[t],e.v[t],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(e,t,n,r){var i=e._length,a=shapePool.newElement();if(a.c=e.c,e.c||(i-=1),0===i)return a;var s=-1,o=PolynomialBezier.shapeSegment(e,0);zigZagCorner(a,e,0,t,n,r,s);for(var l=0;l=0;a-=1)o=PolynomialBezier.shapeSegmentInverted(e,a),c.push(offsetSegmentSplit(o,t));c=pruneIntersections(c);var u=null,p=null;for(a=0;a0&&(u=!1),u){var p=createTag("style");p.setAttribute("f-forigin",r[n].fOrigin),p.setAttribute("f-origin",r[n].origin),p.setAttribute("f-family",r[n].fFamily),p.type="text/css",p.innerText="@font-face {font-family: "+r[n].fFamily+"; font-style: normal; src: url('"+r[n].fPath+"');}",t.appendChild(p)}}else if("g"===r[n].fOrigin||1===r[n].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),c=0;ce?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var e,t=this.renderableComponents.length;for(e=0;e0&&(this.maskElement.setAttribute("id",y),this.element.maskedElement.setAttribute(g,"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(e,t){var n;this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var r,i=this.data.ef.length,a=this.data.ef;for(n=0;n.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(e){var t,n,r=this.layers.length;for(this.completeLayers=!0,t=r-1;t>=0;t-=1)this.elements[t]||(n=this.layers[t]).ip-n.st<=e-this.layers[t].st&&n.op-n.st>e-this.layers[t].st&&this.buildItem(t),this.completeLayers=!!this.elements[t]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:default:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e1&&(a+=" C"+t.o[r-1][0]+","+t.o[r-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),n.lastPath!==a){var s="";n.elem&&(t.c&&(s=e.inv?this.solidPath+a:a),n.elem.setAttribute("d",s)),n.lastPath=a}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={createFilter:function(e,t){var n=createNS("filter");return n.setAttribute("id",e),!0!==t&&(n.setAttribute("filterUnits","objectBoundingBox"),n.setAttribute("x","0%"),n.setAttribute("y","0%"),n.setAttribute("width","100%"),n.setAttribute("height","100%")),n},createAlphaToLuminanceFilter:function(){var e=createNS("feColorMatrix");return e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),e}};return e}(),featureSupport=function(){var e={maskType:!0};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),e}(),registeredEffects={},idPrefix="filter_result_";function SVGEffects(e){var t,n,r="SourceGraphic",i=e.data.ef?e.data.ef.length:0,a=createElementID(),s=filtersFactory.createFilter(a,!0),o=0;for(this.filters=[],t=0;t=0&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);e-=1);}},searchProcessedElement:function(e){for(var t=this.processedElements,n=0,r=t.length;n.01)return!1;n+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e0;)l=r.transformers[m].mProps._mdf||l,h-=1,m-=1;if(l)for(h=v-r.styles[u].lvl,m=r.transformers.length-1;h>0;)f=r.transformers[m].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]),h-=1,m-=1}else d=e;if(s=(p=r.sh.paths)._length,l){for(o="",a=0;a=1?g=.99:g<=-1&&(g=-.99);var x=o*g,b=Math.cos(v+t.a.v)*x+u[0],k=Math.sin(v+t.a.v)*x+u[1];l.setAttribute("fx",b),l.setAttribute("fy",k),c&&!t.g._collapsable&&(t.of.setAttribute("fx",b),t.of.setAttribute("fy",k))}}function l(e,t,n){var r=t.style,i=t.d;i&&(i._mdf||n)&&i.dashStr&&(r.pElem.setAttribute("stroke-dasharray",i.dashStr),r.pElem.setAttribute("stroke-dashoffset",i.dashoffset[0])),t.c&&(t.c._mdf||n)&&r.pElem.setAttribute("stroke","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n)&&r.pElem.setAttribute("stroke-opacity",t.o.v),(t.w._mdf||n)&&(r.pElem.setAttribute("stroke-width",t.w.v),r.msElem&&r.msElem.setAttribute("stroke-width",t.w.v))}return{createRenderFunction:function(e){switch(e.ty){case"fl":return a;case"gf":return o;case"gs":return s;case"st":return l;case"sh":case"el":case"rc":case"sr":return i;case"tr":return n;case"no":return r;default:return null}}}}();function SVGShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,n),this.prevViewData=[]}function LetterProps(e,t,n,r,i,a){this.o=e,this.sw=t,this.sc=n,this.fc=r,this.m=i,this.p=a,this._mdf={o:!0,sw:!!t,sc:!!n,fc:!!r,m:!0,p:!0}}function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t,n,r,i=this.shapes.length,a=this.stylesList.length,s=[],o=!1;for(n=0;n1&&o&&this.setShapesAsAnimated(s)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,n=e.length;for(t=0;t=0;o-=1){if((d=this.searchProcessedElement(e[o]))?t[o]=n[d-1]:e[o]._render=s,"fl"===e[o].ty||"st"===e[o].ty||"gf"===e[o].ty||"gs"===e[o].ty||"no"===e[o].ty)d?t[o].style.closed=!1:t[o]=this.createStyleElement(e[o],i),e[o]._render&&t[o].style.pElem.parentNode!==r&&r.appendChild(t[o].style.pElem),m.push(t[o].style);else if("gr"===e[o].ty){if(d)for(c=t[o].it.length,l=0;l1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||e){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,n=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var r;this.lock=!0,this._mdf=!1;var i=this.effectsSequence.length,a=e||this.data.d.k[this.keysIndex].s;for(r=0;rt);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t,n,r=[],i=0,a=e.length,s=!1;i=55296&&t<=56319?(n=e.charCodeAt(i+1))>=56320&&n<=57343?(s||FontManager.isModifier(t,n)?(r[r.length-1]+=e.substr(i,2),s=!1):r.push(e.substr(i,2)),i+=1):r.push(e.charAt(i)):t>56319?(n=e.charCodeAt(i+1),FontManager.isZeroWidthJoiner(t,n)?(s=!0,r[r.length-1]+=e.substr(i,2),i+=1):r.push(e.charAt(i))):FontManager.isZeroWidthJoiner(t)?(r[r.length-1]+=e.charAt(i),s=!0):r.push(e.charAt(i)),i+=1;return r},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t,n,r,i,a,s,o,l=this.elem.globalData.fontManager,c=this.data,u=[],p=0,d=c.m.g,f=0,h=0,m=0,y=[],v=0,g=0,x=l.getFontByName(e.f),b=0,k=getFontProperties(x);e.fWeight=k.weight,e.fStyle=k.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),n=e.finalText.length,e.finalLineHeight=e.lh;var _,w=e.tr/1e3*e.finalSize;if(e.sz)for(var E,S,P=!0,A=e.sz[0],C=e.sz[1];P;){E=0,v=0,n=(S=this.buildFinalText(e.t)).length,w=e.tr/1e3*e.finalSize;var D=-1;for(t=0;tA&&" "!==S[t]?(-1===D?n+=1:t=D,E+=e.finalLineHeight||1.2*e.finalSize,S.splice(t,D===t?1:0,"\r"),D=-1,v=0):(v+=b,v+=w);E+=x.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&Cg?v:g,v=-2*w,i="",r=!0,m+=1):i=T,l.chars?(o=l.getCharData(T,x.fStyle,l.getFontByName(e.f).fFamily),b=r?0:o.w*e.finalSize/100):b=l.measureText(i,e.f,e.finalSize)," "===T?O+=b+w:(v+=b+w+O,O=0),u.push({l:b,an:b,add:f,n:r,anIndexes:[],val:i,line:m,animatorJustifyOffset:0}),2==d){if(f+=b,""===i||" "===i||t===n-1){for(""!==i&&" "!==i||(f-=b);h<=t;)u[h].an=f,u[h].ind=p,u[h].extra=b,h+=1;p+=1,f=0}}else if(3==d){if(f+=b,""===i||t===n-1){for(""===i&&(f-=b);h<=t;)u[h].an=f,u[h].ind=p,u[h].extra=b,h+=1;f=0,p+=1}}else u[p].ind=p,u[p].extra=0,p+=1;if(e.l=u,g=v>g?v:g,y.push(v),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=g,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=y;var j,F,I,B,M=c.a;s=M.length;var R=[];for(a=0;a0?i=this.ne.v/100:a=-this.ne.v/100,this.xe.v>0?s=1-this.xe.v/100:o=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(i,a,s,o).get,c=0,u=this.finalS,p=this.finalE,d=this.data.sh;if(2===d)c=l(c=p===u?r>=p?1:0:e(0,t(.5/(p-u)+(r-u)/(p-u),1)));else if(3===d)c=l(c=p===u?r>=p?0:1:1-e(0,t(.5/(p-u)+(r-u)/(p-u),1)));else if(4===d)p===u?c=0:(c=e(0,t(.5/(p-u)+(r-u)/(p-u),1)))<.5?c*=2:c=1-2*(c-.5),c=l(c);else if(5===d){if(p===u)c=0;else{var f=p-u,h=-f/2+(r=t(e(0,r+.5-u),p-u)),m=f/2;c=Math.sqrt(1-h*h/(m*m))}c=l(c)}else 6===d?(p===u?c=0:(r=t(e(0,r+.5-u),p-u),c=(1+Math.cos(Math.PI+2*Math.PI*r/(p-u)))/2),c=l(c)):(r>=n(u)&&(c=e(0,t(r-u<0?t(p,1)-(u-r):p-r,1))),c=l(c));if(100!==this.sm.v){var y=.01*this.sm.v;0===y&&(y=1e-8);var v=.5-.5*y;c1&&(c=1)}return c*this.a.v},getValue:function(e){this.iterateDynamicProperties(),this._mdf=e||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,e&&2===this.data.r&&(this.e.v=this._currentTextLength);var t=2===this.data.r?1:100/this.data.totalChars,n=this.o.v/t,r=this.s.v/t+n,i=this.e.v/t+n;if(r>i){var a=r;r=i,i=a}this.finalS=r,this.finalE=i}},extendPrototype([DynamicPropertyContainer],r),{getTextSelectorProp:function(e,t,n){return new r(e,t,n)}}}();function TextAnimatorDataProperty(e,t,n){var r={propType:!1},i=PropertyFactory.getProp,a=t.a;this.a={r:a.r?i(e,a.r,0,degToRads,n):r,rx:a.rx?i(e,a.rx,0,degToRads,n):r,ry:a.ry?i(e,a.ry,0,degToRads,n):r,sk:a.sk?i(e,a.sk,0,degToRads,n):r,sa:a.sa?i(e,a.sa,0,degToRads,n):r,s:a.s?i(e,a.s,1,.01,n):r,a:a.a?i(e,a.a,1,0,n):r,o:a.o?i(e,a.o,0,.01,n):r,p:a.p?i(e,a.p,1,0,n):r,sw:a.sw?i(e,a.sw,0,0,n):r,sc:a.sc?i(e,a.sc,1,0,n):r,fc:a.fc?i(e,a.fc,1,0,n):r,fh:a.fh?i(e,a.fh,0,0,n):r,fs:a.fs?i(e,a.fs,0,.01,n):r,fb:a.fb?i(e,a.fb,0,.01,n):r,t:a.t?i(e,a.t,0,0,n):r},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,n),this.s.t=t.s.t}function TextAnimatorProperty(e,t,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=n,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var e,t,n=this._textData.a.length,r=PropertyFactory.getProp;for(e=0;e=o+oe||!h?(g=(o+oe-c)/l.partialLength,L=f.point[0]+(l.point[0]-f.point[0])*g,N=f.point[1]+(l.point[1]-f.point[1])*g,E.translate(-k[0]*A[i].an*.005,-k[1]*B*.01),u=!1):h&&(c+=l.partialLength,(p+=1)>=h.length&&(p=0,m[d+=1]?h=m[d].points:b.v.c?(p=0,h=m[d=0].points):(c-=l.partialLength,h=null)),h&&(f=l,y=(l=h[p]).partialLength));R=A[i].an/2-A[i].add,E.translate(-R,0,0)}else R=A[i].an/2-A[i].add,E.translate(-R,0,0),E.translate(-k[0]*A[i].an*.005,-k[1]*B*.01,0);for(O=0;Oe?this.textSpans[e].span:createNS(l?"g":"text"),y<=e){if(s.setAttribute("stroke-linecap","butt"),s.setAttribute("stroke-linejoin","round"),s.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=s,l){var v=createNS("g");s.appendChild(v),this.textSpans[e].childSpan=v}this.textSpans[e].span=s,this.layerElement.appendChild(s)}s.style.display="inherit"}if(c.reset(),u&&(o[e].n&&(p=-h,d+=n.yOffset,d+=f?1:0,f=!1),this.applyTextPropertiesToMatrix(n,c,o[e].line,p,d),p+=o[e].l||0,p+=h),l){var g;if(1===(m=this.globalData.fontManager.getCharData(n.finalText[e],r.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily)).t)g=new SVGCompElement(m.data,this.globalData,this);else{var x=emptyShapeData;m.data&&m.data.shapes&&(x=this.buildShapeData(m.data,n.finalSize)),g=new SVGShapeElement(x,this.globalData,this)}if(this.textSpans[e].glyph){var b=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(b.layerElement),b.destroy()}this.textSpans[e].glyph=g,g._debug=!0,g.prepareFrame(0),g.renderFrame(),this.textSpans[e].childSpan.appendChild(g.layerElement),1===m.t&&this.textSpans[e].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else u&&s.setAttribute("transform","translate("+c.props[12]+","+c.props[13]+")"),s.textContent=o[e].val,s.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}u&&s&&s.setAttribute("d","")}else{var k=this.textContainer,_="start";switch(n.j){case 1:_="end";break;case 2:_="middle";break;default:_="start"}k.setAttribute("text-anchor",_),k.setAttribute("letter-spacing",h);var w=this.buildTextContents(n.finalText);for(t=w.length,d=n.ps?n.ps[1]+n.ascent:0,e=0;e=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e=0;r-=1)n=e.transforms[r].transform.mProps.v.props,e.finalTransform.transform(n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7],n[8],n[9],n[10],n[11],n[12],n[13],n[14],n[15]);e._mdf=a},processSequences:function(e){var t,n=this.sequenceList.length;for(t=0;t=0;a-=1){if((l=this.searchProcessedElement(e[a]))?t[a]=n[l-1]:e[a]._shouldRender=r,"fl"===e[a].ty||"st"===e[a].ty||"gf"===e[a].ty||"gs"===e[a].ty)l?t[a].style.closed=!1:t[a]=this.createStyleElement(e[a],h),d.push(t[a].style);else if("gr"===e[a].ty){if(l)for(o=t[a].it.length,s=0;s=0;i-=1)"tr"===t[i].ty?(a=n[i].transform,this.renderShapeTransform(e,a)):"sh"===t[i].ty||"el"===t[i].ty||"rc"===t[i].ty||"sr"===t[i].ty?this.renderPath(t[i],n[i]):"fl"===t[i].ty?this.renderFill(t[i],n[i],a):"st"===t[i].ty?this.renderStroke(t[i],n[i],a):"gf"===t[i].ty||"gs"===t[i].ty?this.renderGradientFill(t[i],n[i],a):"gr"===t[i].ty?this.renderShape(a,t[i].it,n[i].it):t[i].ty;r&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var n,r,i,a=e.trNodes,s=t.paths,o=s._length;a.length=0;var l=e.transforms.finalTransform;for(i=0;i=1?p=.99:p<=-1&&(p=-.99);var d=c*p,f=Math.cos(u+t.a.v)*d+o[0],h=Math.sin(u+t.a.v)*d+o[1];r=s.createRadialGradient(f,h,0,o[0],o[1],c)}var m=e.g.p,y=t.g.c,v=1;for(a=0;ao&&"xMidYMid slice"===l||si&&"meet"===o||ai&&"slice"===o)?(n-this.transformCanvas.w*(r/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===c&&(ai&&"slice"===o)?(n-this.transformCanvas.w*(r/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===u&&(a>i&&"meet"===o||ai&&"meet"===o||a=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if((this.renderedFrame!==e||!0!==this.renderConfig.clearCanvas||t)&&!this.destroyed&&-1!==e){var n;this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var r=this.layers.length;for(this.completeLayers||this.checkLayers(e),n=0;n=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){var n=this.createItem(this.layers[e],this,this.globalData);t[e]=n,n.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e,t=this.canvasContext;for(t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip(),e=this.layers.length-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var e;for(e=this.layers.length-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var e=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var t=this.finalTransform.mat.toCSS();e.transform=t,e.webkitTransform=t}this.finalTransform._opMdf&&(e.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?((e=createNS("rect")).setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((e=createTag("div")).style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var n,r=e.length;for(n=0;n0&&o<1&&p[d].push(this.calculateF(o,e,t,n,r,d)):(l=a*a-4*s*i)>=0&&((c=(-a+bmSqrt(l))/(2*i))>0&&c<1&&p[d].push(this.calculateF(c,e,t,n,r,d)),(u=(-a-bmSqrt(l))/(2*i))>0&&u<1&&p[d].push(this.calculateF(u,e,t,n,r,d))));this.shapeBoundingBox.left=bmMin.apply(null,p[0]),this.shapeBoundingBox.top=bmMin.apply(null,p[1]),this.shapeBoundingBox.right=bmMax.apply(null,p[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,p[1])},HShapeElement.prototype.calculateF=function(e,t,n,r,i,a){return bmPow(1-e,3)*t[a]+3*bmPow(1-e,2)*e*n[a]+3*(1-e)*bmPow(e,2)*r[a]+bmPow(e,3)*i[a]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var n,r=e.length;for(n=0;nn&&(n=i)}n*=e.mult}else n=e.v*e.mult;t.x-=n,t.xMax+=n,t.y-=n,t.yMax+=n},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax=0;e-=1){var r=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-r.p.v[0],-r.p.v[1],r.p.v[2]),this.mat.rotateX(-r.or.v[0]).rotateY(-r.or.v[1]).rotateZ(r.or.v[2]),this.mat.rotateX(-r.rx.v).rotateY(-r.ry.v).rotateZ(r.rz.v),this.mat.scale(1/r.s.v[0],1/r.s.v[1],1/r.s.v[2]),this.mat.translate(r.a.v[0],r.a.v[1],r.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var i;i=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var a=Math.sqrt(Math.pow(i[0],2)+Math.pow(i[1],2)+Math.pow(i[2],2)),s=[i[0]/a,i[1]/a,i[2]/a],o=Math.sqrt(s[2]*s[2]+s[0]*s[0]),l=Math.atan2(s[1],o),c=Math.atan2(s[0],-s[2]);this.mat.rotateY(c).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var u=!this._prevMat.equals(this.mat);if((u||this.pe._mdf)&&this.comp.threeDElements){var p,d,f;for(t=this.comp.threeDElements.length,e=0;e=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var n,r,i=createTag("div");styleDiv(i);var a=createTag("div");if(styleDiv(a),"3d"===t){(n=i.style).width=this.globalData.compSize.w+"px",n.height=this.globalData.compSize.h+"px",n.webkitTransformOrigin="50% 50%",n.mozTransformOrigin="50% 50%",n.transformOrigin="50% 50%";var s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(r=a.style).transform=s,r.webkitTransform=s}i.appendChild(a);var o={container:a,perspectiveElem:i,startPos:e,endPos:e,type:t};return this.threeDElements.push(o),o},HybridRendererBase.prototype.build3dContainers=function(){var e,t,n=this.layers.length,r="";for(e=0;e=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var n=0,r=this.threeDElements.length;ns?(e=i/this.globalData.compSize.w,t=i/this.globalData.compSize.w,n=0,r=(a-this.globalData.compSize.h*(i/this.globalData.compSize.w))/2):(e=a/this.globalData.compSize.h,t=a/this.globalData.compSize.h,n=(i-this.globalData.compSize.w*(a/this.globalData.compSize.h))/2,r=0);var o=this.resizerElem.style;o.webkitTransform="matrix3d("+e+",0,0,0,0,"+t+",0,0,0,0,1,0,"+n+","+r+",0,1)",o.transform=o.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e,t=this.globalData.compSize.w,n=this.globalData.compSize.h,r=this.threeDElements.length;for(e=0;e=a;)e/=2,t/=2,n>>>=1;return(e+n)/t};return y.int32=function(){return 0|m.g(4)},y.quick=function(){return m.g(4)/4294967296},y.double=y,l(c(m.S),e),(p.pass||d||function(e,n,r,i){return i&&(i.S&&o(i,m),e.state=function(){return o(m,{})}),r?(t.random=e,n):e})(y,h,"global"in p?p.global:this==t,p.state)},l(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null;function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return"number"===e||"boolean"===e||"string"===e||t instanceof Number}function $bm_neg(e){var t=_typeof(e);if("number"===t||"boolean"===t||e instanceof Number)return-e;if($bm_isInstanceOfArray(e)){var n,r=e.length,i=[];for(n=0;nn){var r=n;n=t,t=r}return Math.min(Math.max(e,t),n)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if("number"==typeof e||e instanceof Number)return t=t||0,Math.abs(e-t);var n;t||(t=helperLengthArray);var r=Math.min(e.length,t.length),i=0;for(n=0;n.5?c/(2-s-o):c/(s+o),s){case r:t=(i-a)/c+(i1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function hslToRgb(e){var t,n,r,i=e[0],a=e[1],s=e[2];if(0===a)t=s,r=s,n=s;else{var o=s<.5?s*(1+a):s+a-s*a,l=2*s-o;t=hue2rgb(l,o,i+1/3),n=hue2rgb(l,o,i),r=hue2rgb(l,o,i-1/3)}return[t,n,r,e[3]]}function linear(e,t,n,r,i){if(void 0!==r&&void 0!==i||(r=t,i=n,t=0,n=1),n=n)return i;var s,o=n===t?0:(e-t)/(n-t);if(!r.length)return r+(i-r)*o;var l=r.length,c=createTypedArray("float32",l);for(s=0;s1){for(r=0;r1?t=1:t<0&&(t=0);var s=e(t);if($bm_isInstanceOfArray(i)){var o,l=i.length,c=createTypedArray("float32",l);for(o=0;odata.k[t].t&&edata.k[t+1].t-e?(n=t+2,r=data.k[t+1].t):(n=t+1,r=data.k[t].t);break}}-1===n&&(n=t+1,r=data.k[t].t)}else n=0,r=0;var a={};return a.index=n,a.time=r/elem.comp.globalData.frameRate,a}function key(e){var t,n,r;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var i=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(r=i.length,n=0;nc.length-1)&&(t=c.length-1),r=u-(i=c[c.length-1-t].t)),"pingpong"===e){if(Math.floor((l-i)/r)%2!=0)return this.getValueAtTime((r-(l-i)%r+i)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var p=this.getValueAtTime(i/this.comp.globalData.frameRate,0),d=this.getValueAtTime(u/this.comp.globalData.frameRate,0),f=this.getValueAtTime(((l-i)%r+i)/this.comp.globalData.frameRate,0),h=Math.floor((l-i)/r);if(this.pv.length){for(s=(o=new Array(p.length)).length,a=0;a=u)return this.pv;if(n?i=u+(r=t?Math.abs(this.elem.comp.globalData.frameRate*t):Math.max(0,this.elem.data.op-u)):((!t||t>c.length-1)&&(t=c.length-1),r=(i=c[t].t)-u),"pingpong"===e){if(Math.floor((u-l)/r)%2==0)return this.getValueAtTime(((u-l)%r+u)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var p=this.getValueAtTime(u/this.comp.globalData.frameRate,0),d=this.getValueAtTime(i/this.comp.globalData.frameRate,0),f=this.getValueAtTime((r-(u-l)%r+u)/this.comp.globalData.frameRate,0),h=Math.floor((u-l)/r)+1;if(this.pv.length){for(s=(o=new Array(p.length)).length,a=0;a1?(i+e-a)/(t-1):1,o=0,l=0;for(n=this.pv.length?createTypedArray("float32",this.pv.length):0;os){var u=o,p=n.c&&o===l-1?0:o+1,d=(s-c)/a[o].addedLength;r=bez.getPointInSegment(n.v[u],n.v[p],n.o[u],n.i[p],d,a[o]);break}c+=a[o].addedLength,o+=1}return r||(r=n.c?[n.v[0][0],n.v[0][1]]:[n.v[n._length-1][0],n.v[n._length-1][1]]),r},vectorOnPath:function(e,t,n){1==e?e=this.v.c:0==e&&(e=.999);var r=this.pointOnPath(e,t),i=this.pointOnPath(e+.001,t),a=i[0]-r[0],s=i[1]-r[1],o=Math.sqrt(Math.pow(a,2)+Math.pow(s,2));return 0===o?[0,0]:"tangent"===n?[a/o,s/o]:[-s/o,a/o]},tangentOnPath:function(e,t){return this.vectorOnPath(e,t,"tangent")},normalOnPath:function(e,t){return this.vectorOnPath(e,t,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([c],o),extendPrototype([c],l),l.prototype.getValueAtTime=function(e){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime=c?f<0?r:i:r+d*Math.pow((a-e)/f,1/n),u[p]=s,p+=1,o+=256/255;return u.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,n=this.filterManager.effectElements;this.feFuncRComposed&&(e||n[3].p._mdf||n[4].p._mdf||n[5].p._mdf||n[6].p._mdf||n[7].p._mdf)&&(t=this.getTableValue(n[3].p.v,n[4].p.v,n[5].p.v,n[6].p.v,n[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||n[10].p._mdf||n[11].p._mdf||n[12].p._mdf||n[13].p._mdf||n[14].p._mdf)&&(t=this.getTableValue(n[10].p.v,n[11].p.v,n[12].p.v,n[13].p.v,n[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||n[17].p._mdf||n[18].p._mdf||n[19].p._mdf||n[20].p._mdf||n[21].p._mdf)&&(t=this.getTableValue(n[17].p.v,n[18].p.v,n[19].p.v,n[20].p.v,n[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||n[24].p._mdf||n[25].p._mdf||n[26].p._mdf||n[27].p._mdf||n[28].p._mdf)&&(t=this.getTableValue(n[24].p.v,n[25].p.v,n[26].p.v,n[27].p.v,n[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||n[31].p._mdf||n[32].p._mdf||n[33].p._mdf||n[34].p._mdf||n[35].p._mdf)&&(t=this.getTableValue(n[31].p.v,n[32].p.v,n[33].p.v,n[34].p.v,n[35].p.v),this.feFuncA.setAttribute("tableValues",t))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*t[0]),Math.round(255*t[1]),Math.round(255*t[2])))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var n=this.filterManager.effectElements[3].p.v,r=(this.filterManager.effectElements[2].p.v-90)*degToRads,i=n*Math.cos(r),a=n*Math.sin(r);this.feOffset.setAttribute("dx",i),this.feOffset.setAttribute("dy",a)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,n){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=n,n.matteElement=createNS("g"),n.matteElement.appendChild(n.layerElement),n.matteElement.appendChild(n.transformedElement),n.baseElement=n.matteElement}function SVGGaussianBlurEffect(e,t,n,r){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var i=createNS("feGaussianBlur");i.setAttribute("result",r),e.appendChild(i),this.feGaussianBlur=i}return SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,n=_svgMatteSymbols.length;twindow.innerWidth?-1:0;p(n)}}),[u,o,i]),react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"lf-popover",onMouseOver:function(){h(!0)},onMouseLeave:function(){h(!1)},ref:function(e){a(e)}},react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:" lf-player-btn"},n),react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"lf-popover-content",ref:function(e){l(e)},style:{bottom:"22px",right:"0px",zIndex:2,visibility:f?"visible":"hidden"}},t))},Seeker=function(e){function t(t){var n=e.call(this,t)||this;return n.inputRef=react__WEBPACK_IMPORTED_MODULE_0__.createRef(),n.handleChange=function(){return function(e){var t=e.target.value,r=Math.floor(t/100*n.props.max);n.props.onChange(r)}},n.state={value:0},n}return __extends(t,e),t.prototype.render=function(){var e=this.props.value/this.props.max*100,t={backgroundImage:"-webkit-gradient(linear, left top, right top, color-stop("+e+"%, rgba(15, 204, 206, 0.4)), color-stop("+e+"%, #DAE1E7))"},n={position:"absolute",left:0,marginTop:"8px",width:"20px",display:"block",border:"0px",backgroundColor:this.props.darkTheme?"#505050":"rgb(218, 225, 231)",color:this.props.darkTheme?"#B9B9B9":"#555",padding:"2px",textAlign:"center",borderRadius:"3px",fontSize:"8px",fontWeight:"bold"},r={position:"absolute",right:0,marginTop:"8px",width:"20px",display:"block",border:"0px",backgroundColor:this.props.darkTheme?"#505050":"rgb(218, 225, 231)",color:this.props.darkTheme?"#B9B9B9":"#555",padding:"2px",textAlign:"center",borderRadius:"3px",fontSize:"8px",fontWeight:"bold"};return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%",marginRight:"5px",marginLeft:"5px",position:"relative"}},react__WEBPACK_IMPORTED_MODULE_0__.createElement("input",{ref:this.inputRef,id:"track",className:"lf-progress",name:"progress","aria-label":"progress",type:"range",min:"0",max:"100",step:"0.1",value:e,onInput:this.handleChange(),onChange:this.handleChange(),style:t}),this.props.showLabels&&react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{style:n},this.props.min),react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{style:r},this.props.max)))},t}(react__WEBPACK_IMPORTED_MODULE_0__.Component),ControlButtonStyle={display:"inline-flex",cursor:"pointer"},Controls=function(e){function t(t){var n=e.call(this,t)||this;return n.state={activeFrame:0,mouseDown:!1},n}return __extends(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.instance,r=t.playerState,i=t.seeker,a=t.setLoop,s=t.setSeeker,o=t.play,l=t.pause,c=t.stop,u=t.visible,p=t.buttons;if(!n)return null;if(!u)return null;var d=!p||p.includes("play"),f=!p||p.includes("stop"),h=!p||p.includes("repeat"),m=!p||p.includes("frame"),y=!p||p.includes("background"),v=!p||p.includes("snapshot"),g={width:14,height:14,viewBox:"0 0 24 24"},x=Math.round(n.currentFrame);return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"lf-player-controls",style:{display:"flex",justifyContent:"space-between",height:"60px",alignItems:"center",backgroundColor:this.props.transparentTheme?"transparent":this.props.darkTheme?"#3C3C3C":"#ffffff",paddingLeft:"10px",paddingRight:"10px"}},d&&react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{role:"button","aria-label":r===PlayerState.Playing?PlayerEvent.Pause:PlayerEvent.Play,tabIndex:0,onClick:function(){r===PlayerState.Playing?"function"==typeof l&&l():"function"==typeof o&&o()},onKeyDown:function(){r===PlayerState.Playing?"function"==typeof l&&l():"function"==typeof o&&o()},className:"lf-player-btn",style:ControlButtonStyle},r===PlayerState.Playing?react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",_assign({},g),react__WEBPACK_IMPORTED_MODULE_0__.createElement("rect",{height:"22.9",rx:"1.9",width:"7.6",x:"14",y:".5"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("rect",{height:"22.9",rx:"1.9",width:"7.6",x:"2",y:".5"})):react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",_assign({},g),react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M2 3.4C2 1.9 3.5 1 4.8 1.8l16.5 9.6c1.2.7 1.2 2.5 0 3.2L4.8 24.2C3.5 25 2 24.1 2 22.6V3.4z"}))),f&&react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{tabIndex:0,role:"button","aria-label":PlayerEvent.Stop,onClick:function(){return c&&c()},onKeyDown:function(){return c&&c()},className:r===PlayerState.Stopped?"lf-player-btn active":"lf-player-btn",style:ControlButtonStyle},react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",_assign({},g),react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M2 3.667A1.67 1.67 0 0 1 3.667 2h16.666A1.67 1.67 0 0 1 22 3.667v16.666A1.67 1.67 0 0 1 20.333\n 22H3.667A1.67 1.67 0 0 1 2 20.333z"}))),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Seeker,{min:0,step:1,max:n?n.totalFrames:1,value:i||0,onChange:function(t){s&&e.setState({activeFrame:t},(function(){s(t,!1)}))},onChangeEnd:function(t){s&&e.setState({activeFrame:t},(function(){s(t,!1)}))},showLabels:this.props.showLabels,darkTheme:this.props.darkTheme}),m&&react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{role:"button",className:"lf-player-btn-container"},react__WEBPACK_IMPORTED_MODULE_0__.createElement("input",{style:{outline:"none",border:this.props.darkTheme?"1px #505050 solid":"1px #ccc solid",borderRadius:"3px",width:"40px",textAlign:"center",backgroundColor:this.props.darkTheme?"#505050":"#ffffff",color:this.props.darkTheme?"#B9B9B9":"#999",fontSize:"0.7rem",padding:"0",fontFamily:"inherit"},type:"text",value:x,readOnly:!0})),h&&react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{role:"button","aria-label":PlayerEvent.Loop,tabIndex:0,onClick:function(){n&&a&&a(!n.loop)},onKeyDown:function(){n&&a&&a(!n.loop)},className:n.loop?"lf-player-btn active":"lf-player-btn",style:ControlButtonStyle},react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",_assign({},g),react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M12.5 16.8137h-.13v1.8939h4.9696c3.6455 0 6.6113-2.9658 6.6113-6.6116\n 0-3.64549-2.9658-6.61131-6.6113-6.61131-.5231 0-.947.42391-.947.94696 0 .52304.4239.94696.947.94696 2.6011 0\n 4.7174 2.11634 4.7174 4.71739 0 2.6014-2.1166 4.7177-4.7174 4.7177H12.5zM13.6025\n 5.61469v-.13H7.48137C3.83582 5.48469.87 8.45051.87 12.096c0 3.6509 3.17269 6.6117 6.81304 6.6117.52304 0\n .94696-.424.94696-.947 0-.5231-.42392-.947-.94696-.947-2.60804 0-4.91907-2.1231-4.91907-4.7176 0-2.60115\n 2.11634-4.71744 4.7174-4.71744h6.12113V5.61469z",stroke:"#8795A1",strokeWidth:".26"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M11.1482\n 2.20355h0l-.001-.00116c-.3412-.40061-.9405-.44558-1.33668-.0996h-.00001c-.39526.34519-.43936.94795-.09898\n 1.34767l2.51487 3.03683-2.51894 3.06468c-.33872.40088-.29282 1.00363.10347\n 1.34723l.08517-.0982-.08517.0982c.17853.1549.39807.2308.61647.2308.2671 0 .5328-.114.72-.3347h0l.0011-.0014\n 3.0435-3.68655.0006-.00068c.3035-.35872.3025-.88754-.0019-1.24526l-3.0425-3.65786zM13.9453\n 21.7965h0l.001.0011c.3413.4006.9407.4456 1.337.0996h0c.3953-.3452.4395-.9479.099-1.3477l-2.5154-3.0368\n 2.5195-3.0647c.3388-.4008.2929-1.0036-.1035-1.3472l-.0852.0982.0852-.0982c-.1786-.1549-.3981-.2308-.6166-.2308-.2671\n 0-.5329.114-.7202.3347h0l-.0011.0014-3.0442\n 3.6865c-.0001.0003-.0003.0005-.0005.0007-.3036.3587-.3027.8876.0019 1.2453l3.0431 3.6579z",fill:"#8795A1",stroke:"#8795A1",strokeWidth:".26"}))),y&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(Popover,{icon:react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",_assign({},g),react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M12 3.1L6.1 8.6a7.6 7.6 0 00-2.2 4 7.2 7.2 0 00.4 4.4 7.9 7.9 0 003 3.5 8.7 8.7 0 004.7 1.3c1.6 0\n 3.2-.5 4.6-1.3s2.4-2 3-3.5a7.2 7.2 0 00.5-4.5 7.6 7.6 0 00-2.2-4L12 3.2zM12 0l7.5 7a9.8 9.8 0 013 5.1\n 9.3 9.3 0 01-.6 5.8c-.9 1.8-2.2 3.3-4 4.4A11.2 11.2 0 0112 24a11.2 11.2 0\n 01-6-1.7c-1.7-1-3-2.6-3.9-4.4a9.3 9.3 0 01-.6-5.8c.4-2 1.5-3.7 3-5L12 0zM6 14h12c0 1.5-.7 3-1.8 4s-2.6\n 1.6-4.2 1.6S9 19 7.8 18s-1.7-2.5-1.7-4z"}))},react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{slot:"content",className:"lf-popover popover-background"},react__WEBPACK_IMPORTED_MODULE_0__.createElement(ColorPicker,{colorChangedEvent:this.props.colorChangedEvent}))),v&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(Popover,{icon:react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",_assign({},g),react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{clipRule:"evenodd",d:"M0 3.01A2.983 2.983 0 012.983.027H16.99a2.983 2.983 0 012.983 2.983v14.008a2.982 2.982 0 01-2.983\n 2.983H2.983A2.983 2.983 0 010 17.018zm2.983-.941a.941.941 0 00-.942.94v14.01c0\n .52.422.94.942.94H16.99a.94.94 0 00.941-.94V3.008a.941.941 0 00-.94-.94H2.981z",fillRule:"evenodd"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M12.229 7.945l-2.07 4.598-2.586-2.605-2.414 2.758v2.146h9.656V11.93z"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("circle",{cx:"7.444",cy:"6.513",r:"2.032"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M9.561 23.916h11.25a2.929 2.929 0 002.926-2.927V9.954a1.06 1.06 0 10-2.122 0v11.035a.805.805 0\n 01-.803.804H9.562a1.061 1.061 0 100 2.123z",stroke:"#8795a1",strokeWidth:".215"}))},react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{slot:"content",className:"lf-popover lf-popover-snapshot",onWheel:function(e){s&&s(x+(e.deltaY>0?-1:1),!1)}},react__WEBPACK_IMPORTED_MODULE_0__.createElement("h5",null,"Frame ",x),react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{style:{cursor:"pointer",color:"#0FCCCE"},onClick:this.props.snapshot},"Download SVG"),react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{style:{cursor:"pointer",color:"#0FCCCE"},onClick:this.props.snapshot},"Download PNG"),react__WEBPACK_IMPORTED_MODULE_0__.createElement("i",{className:"lf-note"},"Scroll with mousewheel to find exact frame"))))},t}(react__WEBPACK_IMPORTED_MODULE_0__.Component)},3924:function(e,t,n){"use strict";n.d(t,{X3:function(){return ee},aU:function(){return y},iQ:function(){return ie},Zq:function(){return W},lX:function(){return w},q_:function(){return E},PP:function(){return _},Ep:function(){return D},p7:function(){return ve},PQ:function(){return ne},Gn:function(){return V},kG:function(){return S},WK:function(){return ae},RQ:function(){return $},AV:function(){return X},LX:function(){return G},fp:function(){return F},cP:function(){return T},uX:function(){return re},i3:function(){return H},pC:function(){return K},Zn:function(){return U}});var r=n(4165),i=n(5861),a=n(4942),s=n(3144),o=n(5671),l=n(136),c=n(9388),u=n(8737),p=n(9439),d=n(3878),f=n(9199),h=n(181),m=n(5267);var y,v=n(7762),g=n(3433);function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function O(e,t,n,r){void 0===r&&(r={});var i=r,a=i.window,s=void 0===a?document.defaultView:a,o=i.v5Compat,l=void 0!==o&&o,c=s.history,u=y.Pop,p=null,d=f();function f(){return(c.state||{idx:null}).idx}function h(){u=y.Pop;var e=f(),t=null==e?null:e-d;d=e,p&&p({action:u,location:v.location,delta:t})}function m(e){var t="null"!==s.location.origin?s.location.origin:s.location.href,n="string"===typeof e?e:D(e);return S(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==d&&(d=0,c.replaceState(x({},c.state,{idx:d}),""));var v={get action(){return u},get location(){return e(s,c)},listen:function(e){if(p)throw new Error("A history only accepts one active listener");return s.addEventListener(k,h),p=e,function(){s.removeEventListener(k,h),p=null}},createHref:function(e){return t(s,e)},createURL:m,encodeLocation:function(e){var t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){u=y.Push;var r=C(v.location,e,t);n&&n(r,e);var i=A(r,d=f()+1),a=v.createHref(r);try{c.pushState(i,"",a)}catch(o){s.location.assign(a)}l&&p&&p({action:u,location:v.location,delta:1})},replace:function(e,t){u=y.Replace;var r=C(v.location,e,t);n&&n(r,e);var i=A(r,d=f()),a=v.createHref(r);c.replaceState(i,"",a),l&&p&&p({action:u,location:v.location,delta:0})},go:function(e){return c.go(e)}};return v}function j(e,t,n){return void 0===t&&(t=[]),void 0===n&&(n=new Set),e.map((function(e,r){var i=[].concat((0,g.Z)(t),[r]),a="string"===typeof e.id?e.id:i.join("-");return S(!0!==e.index||!e.children,"Cannot specify children on an index route"),S(!n.has(a),'Found a route id collision on id "'+a+"\". Route id's must be globally unique within Data Router usages"),n.add(a),function(e){return!0===e.index}(e)?x({},e,{id:a}):x({},e,{id:a,children:e.children?j(e.children,i,n):void 0})}))}function F(e,t,n){void 0===n&&(n="/");var r=U(("string"===typeof t?T(t):t).pathname||"/",n);if(null==r)return null;var i=I(e);!function(e){e.sort((function(e,t){return e.score!==t.score?t.score-e.score:function(e,t){var n=e.length===t.length&&e.slice(0,-1).every((function(e,n){return e===t[n]}));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((function(e){return e.childrenIndex})),t.routesMeta.map((function(e){return e.childrenIndex})))}))}(i);for(var a=null,s=0;null==a&&s0&&(S(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+o+'".'),I(e.children,t,l,o)),(null!=e.path||e.index)&&t.push({path:o,score:L(o,e.index),routesMeta:l})};return e.forEach((function(e,t){var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?")){var r,a=(0,v.Z)(B(e.path));try{for(a.s();!(r=a.n()).done;){var s=r.value;i(e,t,s)}}catch(o){a.e(o)}finally{a.f()}}else i(e,t)})),t}function B(e){var t=e.split("/");if(0===t.length)return[];var n,r=(n=t,(0,d.Z)(n)||(0,f.Z)(n)||(0,h.Z)(n)||(0,m.Z)()),i=r[0],a=r.slice(1),s=i.endsWith("?"),o=i.replace(/\?$/,"");if(0===a.length)return s?[o,""]:[o];var l=B(a.join("/")),c=[];return c.push.apply(c,(0,g.Z)(l.map((function(e){return""===e?o:[o,e].join("/")})))),s&&c.push.apply(c,(0,g.Z)(l)),c.map((function(t){return e.startsWith("/")&&""===t?"/":t}))}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(b||(b={}));var M=/^:\w+$/,R=function(e){return"*"===e};function L(e,t){var n=e.split("/"),r=n.length;return n.some(R)&&(r+=-2),t&&(r+=2),n.filter((function(e){return!R(e)})).reduce((function(e,t){return e+(M.test(t)?3:""===t?1:10)}),r)}function N(e,t){for(var n=e.routesMeta,r={},i="/",a=[],s=0;s1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(r,t):t;return{pathname:l,search:Q(a),hash:J(o)}}function Z(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in and the router will parse it for you.'}function W(e){return e.filter((function(e,t){return 0===t||e.route.path&&e.route.path.length>0}))}function K(e,t,n,r){var i;void 0===r&&(r=!1),"string"===typeof e?i=T(e):(S(!(i=x({},e)).pathname||!i.pathname.includes("?"),Z("?","pathname","search",i)),S(!i.pathname||!i.pathname.includes("#"),Z("#","pathname","hash",i)),S(!i.search||!i.search.includes("#"),Z("#","search","hash",i)));var a,s=""===e||""===i.pathname,o=s?"/":i.pathname;if(r||null==o)a=n;else{var l=t.length-1;if(o.startsWith("..")){for(var c=o.split("/");".."===c[0];)c.shift(),l-=1;i.pathname=c.join("/")}a=l>=0?t[l]:"/"}var u=H(i,a),p=o&&"/"!==o&&o.endsWith("/"),d=(s||"."===o)&&n.endsWith("/");return u.pathname.endsWith("/")||!p&&!d||(u.pathname+="/"),u}var $=function(e){return e.join("/").replace(/\/\/+/g,"/")},Y=function(e){return e.replace(/\/+$/,"").replace(/^\/*/,"/")},Q=function(e){return e&&"?"!==e?e.startsWith("?")?e:"?"+e:""},J=function(e){return e&&"#"!==e?e.startsWith("#")?e:"#"+e:""},X=function(e,t){void 0===t&&(t={});var n="number"===typeof t?{status:t}:t,r=new Headers(n.headers);return r.has("Content-Type")||r.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(e),x({},n,{headers:r}))},ee=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,o.Z)(this,n),t.apply(this,arguments)}return(0,s.Z)(n)}((0,u.Z)(Error)),te=function(){function e(t,n){var r,i=this;(0,o.Z)(this,e),this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],S(t&&"object"===typeof t&&!Array.isArray(t),"defer() only accepts plain objects"),this.abortPromise=new Promise((function(e,t){return r=t})),this.controller=new AbortController;var s=function(){return r(new ee("Deferred data aborted"))};this.unlistenAbortSignal=function(){return i.controller.signal.removeEventListener("abort",s)},this.controller.signal.addEventListener("abort",s),this.data=Object.entries(t).reduce((function(e,t){var n=(0,p.Z)(t,2),r=n[0],s=n[1];return Object.assign(e,(0,a.Z)({},r,i.trackPromise(r,s)))}),{}),this.done&&this.unlistenAbortSignal(),this.init=n}return(0,s.Z)(e,[{key:"trackPromise",value:function(e,t){var n=this;if(!(t instanceof Promise))return t;this.deferredKeys.push(e),this.pendingKeysSet.add(e);var r=Promise.race([t,this.abortPromise]).then((function(t){return n.onSettle(r,e,null,t)}),(function(t){return n.onSettle(r,e,t)}));return r.catch((function(){})),Object.defineProperty(r,"_tracked",{get:function(){return!0}}),r}},{key:"onSettle",value:function(e,t,n,r){return this.controller.signal.aborted&&n instanceof ee?(this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:function(){return n}}),Promise.reject(n)):(this.pendingKeysSet.delete(t),this.done&&this.unlistenAbortSignal(),n?(Object.defineProperty(e,"_error",{get:function(){return n}}),this.emit(!1,t),Promise.reject(n)):(Object.defineProperty(e,"_data",{get:function(){return r}}),this.emit(!1,t),r))}},{key:"emit",value:function(e,t){this.subscribers.forEach((function(n){return n(e,t)}))}},{key:"subscribe",value:function(e){var t=this;return this.subscribers.add(e),function(){return t.subscribers.delete(e)}}},{key:"cancel",value:function(){var e=this;this.controller.abort(),this.pendingKeysSet.forEach((function(t,n){return e.pendingKeysSet.delete(n)})),this.emit(!0)}},{key:"resolveData",value:function(){var e=(0,i.Z)((0,r.Z)().mark((function e(t){var n,i,a=this;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=!1,this.done){e.next=7;break}return i=function(){return a.cancel()},t.addEventListener("abort",i),e.next=6,new Promise((function(e){a.subscribe((function(n){t.removeEventListener("abort",i),(n||a.done)&&e(n)}))}));case 6:n=e.sent;case 7:return e.abrupt("return",n);case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"done",get:function(){return 0===this.pendingKeysSet.size}},{key:"unwrappedData",get:function(){return S(null!==this.data&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((function(e,t){var n=(0,p.Z)(t,2),r=n[0],i=n[1];return Object.assign(e,(0,a.Z)({},r,function(e){if(!function(e){return e instanceof Promise&&!0===e._tracked}(e))return e;if(e._error)throw e._error;return e._data}(i)))}),{})}},{key:"pendingKeys",get:function(){return Array.from(this.pendingKeysSet)}}]),e}();var ne=function(e,t){return void 0===t&&(t={}),new te(e,"number"===typeof t?{status:t}:t)},re=function(e,t){void 0===t&&(t=302);var n=t;"number"===typeof n?n={status:n}:"undefined"===typeof n.status&&(n.status=302);var r=new Headers(n.headers);return r.set("Location",e),new Response(null,x({},n,{headers:r}))},ie=(0,s.Z)((function e(t,n,r,i){(0,o.Z)(this,e),void 0===i&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}));function ae(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}var se=["post","put","patch","delete"],oe=new Set(se),le=["get"].concat(se),ce=new Set(le),ue=new Set([301,302,303,307,308]),pe=new Set([307,308]),de={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},fe={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},he={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},me="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,ye=!me;function ve(e){S(e.routes.length>0,"You must provide a non-empty routes array to createRouter");var t=j(e.routes),n=null,s=new Set,o=null,l=null,c=null,u=null!=e.hydrationData,d=F(t,e.history.location,e.basename),f=null;if(null==d){var h=je(404,{pathname:e.history.location.pathname}),m=Oe(t),k=m.matches,_=m.route;d=k,f=(0,a.Z)({},_.id,h)}var w,E,P=!d.some((function(e){return e.route.loader}))||null!=e.hydrationData,A={historyAction:e.history.action,location:e.history.location,matches:d,initialized:P,navigation:de,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||f,fetchers:new Map,blockers:new Map},D=y.Pop,T=!1,O=!1,I=!1,B=[],M=[],R=new Map,L=0,N=-1,V=new Map,G=new Set,z=new Map,U=new Map,H=null,Z=new Map,W=!1;function K(e){A=x({},A,e),s.forEach((function(e){return e(A)}))}function $(t,n){var r,i,a,s=null!=A.actionData&&null!=A.navigation.formMethod&&Ge(A.navigation.formMethod)&&"loading"===A.navigation.state&&!0!==(null==(r=t.state)?void 0:r._isRedirect);a=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:s?A.actionData:null;var o,l=n.loaderData?De(A.loaderData,n.loaderData,n.matches||[],n.errors):A.loaderData,c=(0,v.Z)(Z);try{for(c.s();!(o=c.n()).done;){Ie((0,p.Z)(o.value,1)[0])}}catch(d){c.e(d)}finally{c.f()}var u=!0===T||null!=A.navigation.formMethod&&Ge(A.navigation.formMethod)&&!0!==(null==(i=t.state)?void 0:i._isRedirect);K(x({},n,{actionData:a,loaderData:l,historyAction:D,location:t,initialized:!0,navigation:de,revalidation:"idle",restoreScrollPosition:Ze(t,n.matches||A.matches),preventScrollReset:u,blockers:new Map(A.blockers)})),O||D===y.Pop||(D===y.Push?e.history.push(t,t.state):D===y.Replace&&e.history.replace(t,t.state)),D=y.Pop,T=!1,O=!1,I=!1,B=[],M=[]}function Y(e,t){return Q.apply(this,arguments)}function Q(){return Q=(0,i.Z)((0,r.Z)().mark((function t(n,i){var a,s,o,l,c,u,p,d,f,h;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("number"!==typeof n){t.next=3;break}return e.history.go(n),t.abrupt("return");case 3:if(a=ge(n,i),s=a.path,o=a.submission,l=a.error,c=A.location,u=x({},u=C(A.location,s,i&&i.state),e.history.encodeLocation(u)),p=i&&null!=i.replace?i.replace:void 0,d=y.Push,!0===p?d=y.Replace:!1===p||null!=o&&Ge(o.formMethod)&&o.formAction===A.location.pathname+A.location.search&&(d=y.Replace),f=i&&"preventScrollReset"in i?!0===i.preventScrollReset:void 0,!(h=Ve({currentLocation:c,nextLocation:u,historyAction:d}))){t.next=15;break}return Ne(h,{state:"blocked",location:u,proceed:function(){Ne(h,{state:"proceeding",proceed:void 0,reset:void 0,location:u}),Y(n,i)},reset:function(){Ie(h),K({blockers:new Map(A.blockers)})}}),t.abrupt("return");case 15:return t.next=17,J(d,u,{submission:o,pendingError:l,preventScrollReset:f,replace:i&&i.replace});case 17:return t.abrupt("return",t.sent);case 18:case"end":return t.stop()}}),t)}))),Q.apply(this,arguments)}function J(e,t,n){return X.apply(this,arguments)}function X(){return X=(0,i.Z)((0,r.Z)().mark((function n(i,s,o){var l,c,u,p,d,f,h,m,y,v,g,b,k,_,w;return(0,r.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(E&&E.abort(),E=null,D=i,O=!0===(o&&o.startUninterruptedRevalidation),He(A.location,A.matches),T=!0===(o&&o.preventScrollReset),l=o&&o.overrideNavigation,c=F(t,s,e.basename)){n.next=14;break}return u=je(404,{pathname:s.pathname}),p=Oe(t),d=p.matches,f=p.route,Ue(),$(s,{matches:d,loaderData:{},errors:(0,a.Z)({},f.id,u)}),n.abrupt("return");case 14:if(!Be(A.location,s)||o&&o.submission&&Ge(o.submission.formMethod)){n.next=17;break}return $(s,{matches:c}),n.abrupt("return");case 17:if(E=new AbortController,h=Se(e.history,s,E.signal,o&&o.submission),!o||!o.pendingError){n.next=23;break}y=(0,a.Z)({},Te(c).route.id,o.pendingError),n.next=34;break;case 23:if(!(o&&o.submission&&Ge(o.submission.formMethod))){n.next=34;break}return n.next=26,ee(h,s,o.submission,c,{replace:o.replace});case 26:if(!(v=n.sent).shortCircuited){n.next=29;break}return n.abrupt("return");case 29:m=v.pendingActionData,y=v.pendingActionError,g=x({state:"loading",location:s},o.submission),l=g,h=new Request(h.url,{signal:h.signal});case 34:return n.next=36,ne(h,s,c,l,o&&o.submission,o&&o.replace,m,y);case 36:if(b=n.sent,k=b.shortCircuited,_=b.loaderData,w=b.errors,!k){n.next=42;break}return n.abrupt("return");case 42:E=null,$(s,x({matches:c},m?{actionData:m}:{},{loaderData:_,errors:w}));case 44:case"end":return n.stop()}}),n)}))),X.apply(this,arguments)}function ee(e,t,n,r,i){return te.apply(this,arguments)}function te(){return te=(0,i.Z)((0,r.Z)().mark((function e(t,n,i,s,o){var l,c,u,p;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(ve(),K({navigation:x({state:"submitting",location:n},i)}),(c=Ke(s,n)).route.action){e.next=8;break}l={type:b.error,error:je(405,{method:t.method,pathname:n.pathname,routeId:c.route.id})},e.next=13;break;case 8:return e.next=10,we("action",t,c,s,w.basename);case 10:if(l=e.sent,!t.signal.aborted){e.next=13;break}return e.abrupt("return",{shortCircuited:!0});case 13:if(!Le(l)){e.next=18;break}return u=o&&null!=o.replace?o.replace:l.location===A.location.pathname+A.location.search,e.next=17,oe(A,l,{submission:i,replace:u});case 17:return e.abrupt("return",{shortCircuited:!0});case 18:if(!Re(l)){e.next=22;break}return p=Te(s,c.route.id),!0!==(o&&o.replace)&&(D=y.Push),e.abrupt("return",{pendingActionData:{},pendingActionError:(0,a.Z)({},p.route.id,l.error)});case 22:if(!Me(l)){e.next=24;break}throw je(400,{type:"defer-action"});case 24:return e.abrupt("return",{pendingActionData:(0,a.Z)({},c.route.id,l.data)});case 25:case"end":return e.stop()}}),e)}))),te.apply(this,arguments)}function ne(e,t,n,r,i,a,s,o){return re.apply(this,arguments)}function re(){return re=(0,i.Z)((0,r.Z)().mark((function t(n,i,a,s,o,l,c,u){var d,f,h,m,y,v,g,b,k,_,w,S,P,C,D,T,j;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((d=s)||(f=x({state:"loading",location:i,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},o),d=f),h=o||(d.formMethod&&d.formAction&&d.formData&&d.formEncType?{formMethod:d.formMethod,formAction:d.formAction,formData:d.formData,formEncType:d.formEncType}:void 0),m=be(e.history,A,a,h,i,I,B,M,c,u,z),y=(0,p.Z)(m,2),v=y[0],g=y[1],Ue((function(e){return!(a&&a.some((function(t){return t.route.id===e})))||v&&v.some((function(t){return t.route.id===e}))})),0!==v.length||0!==g.length){t.next=8;break}return $(i,x({matches:a,loaderData:{},errors:u||null},c?{actionData:c}:{})),t.abrupt("return",{shortCircuited:!0});case 8:return O||(g.forEach((function(e){var t=A.fetchers.get(e.key),n={state:"loading",data:t&&t.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};A.fetchers.set(e.key,n)})),b=c||A.actionData,K(x({navigation:d},b?0===Object.keys(b).length?{actionData:null}:{actionData:b}:{},g.length>0?{fetchers:new Map(A.fetchers)}:{}))),N=++L,g.forEach((function(e){return R.set(e.key,E)})),t.next=13,ce(A.matches,a,v,g,n);case 13:if(k=t.sent,_=k.results,w=k.loaderResults,S=k.fetcherResults,!n.signal.aborted){t.next=19;break}return t.abrupt("return",{shortCircuited:!0});case 19:if(g.forEach((function(e){return R.delete(e.key)})),!(P=Fe(_))){t.next=25;break}return t.next=24,oe(A,P,{replace:l});case 24:return t.abrupt("return",{shortCircuited:!0});case 25:return C=Ce(A,a,v,w,u,g,S,U),D=C.loaderData,T=C.errors,U.forEach((function(e,t){e.subscribe((function(n){(n||e.done)&&U.delete(t)}))})),Pe(),j=Ae(N),t.abrupt("return",x({loaderData:D,errors:T},j||g.length>0?{fetchers:new Map(A.fetchers)}:{}));case 30:case"end":return t.stop()}}),t)}))),re.apply(this,arguments)}function ie(e){return A.fetchers.get(e)||fe}function ae(){return ae=(0,i.Z)((0,r.Z)().mark((function n(i,s,o,l,c,u){var d,f,h,m,y,v,g,b,k,_,P,C,T,O,j,q,H,Z,W,Y,Q,J,X,ee,te,ne;return(0,r.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(ve(),z.delete(i),l.route.action){n.next=6;break}return d=je(405,{method:u.formMethod,pathname:o,routeId:s}),xe(i,s,d),n.abrupt("return");case 6:return f=A.fetchers.get(i),h=x({state:"submitting"},u,{data:f&&f.data," _hasFetcherDoneAnything ":!0}),A.fetchers.set(i,h),K({fetchers:new Map(A.fetchers)}),m=new AbortController,y=Se(e.history,o,m.signal,u),R.set(i,m),n.next=15,we("action",y,l,c,w.basename);case 15:if(v=n.sent,!y.signal.aborted){n.next=19;break}return R.get(i)===m&&R.delete(i),n.abrupt("return");case 19:if(!Le(v)){n.next=26;break}return R.delete(i),G.add(i),g=x({state:"loading"},u,{data:void 0," _hasFetcherDoneAnything ":!0}),A.fetchers.set(i,g),K({fetchers:new Map(A.fetchers)}),n.abrupt("return",oe(A,v,{isFetchActionRedirect:!0}));case 26:if(!Re(v)){n.next=29;break}return xe(i,s,v.error),n.abrupt("return");case 29:if(!Me(v)){n.next=31;break}throw je(400,{type:"defer-action"});case 31:return b=A.navigation.location||A.location,k=Se(e.history,b,m.signal),S(_="idle"!==A.navigation.state?F(t,A.navigation.location,e.basename):A.matches,"Didn't find any matches after fetcher action"),P=++L,V.set(i,P),C=x({state:"loading",data:v.data},u,{" _hasFetcherDoneAnything ":!0}),A.fetchers.set(i,C),T=be(e.history,A,_,u,b,I,B,M,(0,a.Z)({},l.route.id,v.data),void 0,z),O=(0,p.Z)(T,2),j=O[0],(q=O[1]).filter((function(e){return e.key!==i})).forEach((function(e){var t=e.key,n=A.fetchers.get(t),r={state:"loading",data:n&&n.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};A.fetchers.set(t,r),R.set(t,m)})),K({fetchers:new Map(A.fetchers)}),n.next=44,ce(A.matches,_,j,q,k);case 44:if(H=n.sent,Z=H.results,W=H.loaderResults,Y=H.fetcherResults,!m.signal.aborted){n.next=50;break}return n.abrupt("return");case 50:if(V.delete(i),R.delete(i),q.forEach((function(e){return R.delete(e.key)})),!(Q=Fe(Z))){n.next=56;break}return n.abrupt("return",oe(A,Q));case 56:J=Ce(A,A.matches,j,W,void 0,q,Y,U),X=J.loaderData,ee=J.errors,te={state:"idle",data:v.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0},A.fetchers.set(i,te),ne=Ae(P),"loading"===A.navigation.state&&P>N?(S(D,"Expected pending action"),E&&E.abort(),$(A.navigation.location,{matches:_,loaderData:X,errors:ee,fetchers:new Map(A.fetchers)})):(K(x({errors:ee,loaderData:De(A.loaderData,X,_,ee)},ne?{fetchers:new Map(A.fetchers)}:{})),I=!1);case 61:case"end":return n.stop()}}),n)}))),ae.apply(this,arguments)}function se(){return se=(0,i.Z)((0,r.Z)().mark((function t(n,i,s,o,l,c){var u,p,d,f,h,m,y;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return u=A.fetchers.get(n),p=x({state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},c,{data:u&&u.data," _hasFetcherDoneAnything ":!0}),A.fetchers.set(n,p),K({fetchers:new Map(A.fetchers)}),d=new AbortController,f=Se(e.history,s,d.signal),R.set(n,d),t.next=9,we("loader",f,o,l,w.basename);case 9:if(!Me(h=t.sent)){t.next=17;break}return t.next=13,qe(h,f.signal,!0);case 13:if(t.t0=t.sent,t.t0){t.next=16;break}t.t0=h;case 16:h=t.t0;case 17:if(R.get(n)===d&&R.delete(n),!f.signal.aborted){t.next=20;break}return t.abrupt("return");case 20:if(!Le(h)){t.next=24;break}return t.next=23,oe(A,h);case 23:return t.abrupt("return");case 24:if(!Re(h)){t.next=29;break}return m=Te(A.matches,i),A.fetchers.delete(n),K({fetchers:new Map(A.fetchers),errors:(0,a.Z)({},m.route.id,h.error)}),t.abrupt("return");case 29:S(!Me(h),"Unhandled fetcher deferred data"),y={state:"idle",data:h.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0},A.fetchers.set(n,y),K({fetchers:new Map(A.fetchers)});case 33:case"end":return t.stop()}}),t)}))),se.apply(this,arguments)}function oe(e,t,n){return le.apply(this,arguments)}function le(){return le=(0,i.Z)((0,r.Z)().mark((function t(n,i,a){var s,o,l,c,u,p,d,f,h,m,v,g,b;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(l=(o=void 0===a?{}:a).submission,c=o.replace,u=o.isFetchActionRedirect,i.revalidate&&(I=!0),S(p=C(n.location,i.location,x({_isRedirect:!0},u?{_isFetchActionRedirect:!0}:{})),"Expected a location on the redirect navigation"),!me||"undefined"===typeof(null==(s=window)?void 0:s.location)){t.next=9;break}if(d=e.history.createURL(i.location).origin,window.location.origin===d){t.next=9;break}return c?window.location.replace(i.location):window.location.assign(i.location),t.abrupt("return");case 9:if(E=null,f=!0===c?y.Replace:y.Push,h=n.navigation,m=h.formMethod,v=h.formAction,g=h.formEncType,b=h.formData,!l&&m&&v&&b&&g&&(l={formMethod:m,formAction:v,formEncType:g,formData:b}),!(pe.has(i.status)&&l&&Ge(l.formMethod))){t.next=18;break}return t.next=16,J(f,p,{submission:x({},l,{formAction:i.location}),preventScrollReset:T});case 16:t.next=20;break;case 18:return t.next=20,J(f,p,{overrideNavigation:{state:"loading",location:p,formMethod:l?l.formMethod:void 0,formAction:l?l.formAction:void 0,formEncType:l?l.formEncType:void 0,formData:l?l.formData:void 0},preventScrollReset:T});case 20:case"end":return t.stop()}}),t)}))),le.apply(this,arguments)}function ce(e,t,n,r,i){return ue.apply(this,arguments)}function ue(){return ue=(0,i.Z)((0,r.Z)().mark((function t(n,i,a,s,o){var l,c,u;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([].concat((0,g.Z)(a.map((function(e){return we("loader",o,e,i,w.basename)}))),(0,g.Z)(s.map((function(t){return we("loader",Se(e.history,t.path,o.signal),t.match,t.matches,w.basename)})))));case 2:return l=t.sent,c=l.slice(0,a.length),u=l.slice(a.length),t.next=7,Promise.all([ze(n,a,c,o.signal,!1,A.loaderData),ze(n,s.map((function(e){return e.match})),u,o.signal,!0)]);case 7:return t.abrupt("return",{results:l,loaderResults:c,fetcherResults:u});case 8:case"end":return t.stop()}}),t)}))),ue.apply(this,arguments)}function ve(){var e;I=!0,(e=B).push.apply(e,(0,g.Z)(Ue())),z.forEach((function(e,t){R.has(t)&&(M.push(t),_e(t))}))}function xe(e,t,n){var r=Te(A.matches,t);ke(e),K({errors:(0,a.Z)({},r.route.id,n),fetchers:new Map(A.fetchers)})}function ke(e){R.has(e)&&_e(e),z.delete(e),V.delete(e),G.delete(e),A.fetchers.delete(e)}function _e(e){var t=R.get(e);S(t,"Expected fetch controller: "+e),t.abort(),R.delete(e)}function Ee(e){var t,n=(0,v.Z)(e);try{for(n.s();!(t=n.n()).done;){var r=t.value,i={state:"idle",data:ie(r).data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};A.fetchers.set(r,i)}}catch(a){n.e(a)}finally{n.f()}}function Pe(){var e,t=[],n=(0,v.Z)(G);try{for(n.s();!(e=n.n()).done;){var r=e.value,i=A.fetchers.get(r);S(i,"Expected fetcher: "+r),"loading"===i.state&&(G.delete(r),t.push(r))}}catch(a){n.e(a)}finally{n.f()}Ee(t)}function Ae(e){var t,n=[],r=(0,v.Z)(V);try{for(r.s();!(t=r.n()).done;){var i=(0,p.Z)(t.value,2),a=i[0];if(i[1]0}function Ie(e){A.blockers.delete(e),Z.delete(e),H===e&&(H=null)}function Ne(e,t){var n=A.blockers.get(e)||he;S("unblocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"proceeding"===t.state||"blocked"===n.state&&"unblocked"===t.state||"proceeding"===n.state&&"unblocked"===t.state,"Invalid blocker state transition: "+n.state+" -> "+t.state),A.blockers.set(e,t),K({blockers:new Map(A.blockers)})}function Ve(e){var t=e.currentLocation,n=e.nextLocation,r=e.historyAction;if(null!=H){var i=Z.get(H);S(i,"Could not find a function for the active blocker");var a=A.blockers.get(H);if(!a||"proceeding"!==a.state)return i({currentLocation:t,nextLocation:n,historyAction:r})?H:void 0}}function Ue(e){var t=[];return U.forEach((function(n,r){e&&!e(r)||(n.cancel(),t.push(r),U.delete(r))})),t}function He(e,t){if(o&&l&&c){var n=t.map((function(e){return We(e,A.loaderData)})),r=l(e,n)||e.key;o[r]=c()}}function Ze(e,t){if(o&&l&&c){var n=t.map((function(e){return We(e,A.loaderData)})),r=l(e,n)||e.key,i=o[r];if("number"===typeof i)return i}return null}return w={get basename(){return e.basename},get state(){return A},get routes(){return t},initialize:function(){return n=e.history.listen((function(t){var n=t.action,r=t.location,i=t.delta;if(!W){q(null!=H&&null===i,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");var a=Ve({currentLocation:A.location,nextLocation:r,historyAction:n});return a&&null!=i?(W=!0,e.history.go(-1*i),void Ne(a,{state:"blocked",location:r,proceed:function(){Ne(a,{state:"proceeding",proceed:void 0,reset:void 0,location:r}),e.history.go(i)},reset:function(){Ie(a),K({blockers:new Map(w.state.blockers)})}})):J(n,r)}W=!1})),A.initialized||J(y.Pop,A.location),w},subscribe:function(e){return s.add(e),function(){return s.delete(e)}},enableScrollRestoration:function(e,t,n){if(o=e,c=t,l=n||function(e){return e.key},!u&&A.navigation===de){u=!0;var r=Ze(A.location,A.matches);null!=r&&K({restoreScrollPosition:r})}return function(){o=null,c=null,l=null}},navigate:Y,fetch:function(n,r,i,a){if(ye)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");R.has(n)&&_e(n);var s=F(t,i,e.basename);if(s){var o=ge(i,a,!0),l=o.path,c=o.submission,u=Ke(s,l);T=!0===(a&&a.preventScrollReset),c&&Ge(c.formMethod)?function(e,t,n,r,i,a){ae.apply(this,arguments)}(n,r,l,u,s,c):(z.set(n,{routeId:r,path:l,match:u,matches:s}),function(e,t,n,r,i,a){se.apply(this,arguments)}(n,r,l,u,s,c))}else xe(n,r,je(404,{pathname:i}))},revalidate:function(){ve(),K({revalidation:"loading"}),"submitting"!==A.navigation.state&&("idle"!==A.navigation.state?J(D||A.historyAction,A.navigation.location,{overrideNavigation:A.navigation}):J(A.historyAction,A.location,{startUninterruptedRevalidation:!0}))},createHref:function(t){return e.history.createHref(t)},encodeLocation:function(t){return e.history.encodeLocation(t)},getFetcher:ie,deleteFetcher:ke,dispose:function(){n&&n(),s.clear(),E&&E.abort(),A.fetchers.forEach((function(e,t){return ke(t)})),A.blockers.forEach((function(e,t){return Ie(t)}))},getBlocker:function(e,t){var n=A.blockers.get(e)||he;return Z.get(e)!==t&&(Z.set(e,t),null==H?H=e:e!==H&&q(!1,"A router only supports one blocker at a time")),n},deleteBlocker:Ie,_internalFetchControllers:R,_internalActiveDeferreds:U},w}Symbol("deferred");function ge(e,t,n){void 0===n&&(n=!1);var r,i="string"===typeof e?e:D(e);if(!t||!function(e){return null!=e&&"formData"in e}(t))return{path:i};if(t.formMethod&&!Ve(t.formMethod))return{path:i,error:je(405,{method:t.formMethod})};if(t.formData&&Ge((r={formMethod:t.formMethod||"get",formAction:Ie(i),formEncType:t&&t.formEncType||"application/x-www-form-urlencoded",formData:t.formData}).formMethod))return{path:i,submission:r};var a=T(i),s=Pe(t.formData);return n&&a.search&&Ze(a.search)&&s.append("index",""),a.search="?"+s,{path:D(a),submission:r}}function xe(e,t){var n=e;if(t){var r=e.findIndex((function(e){return e.route.id===t}));r>=0&&(n=e.slice(0,r))}return n}function be(e,t,n,r,i,a,s,o,l,c,u){var p=c?Object.values(c)[0]:l?Object.values(l)[0]:void 0,d=e.createURL(t.location),f=e.createURL(i),h=a||d.toString()===f.toString()||d.search!==f.search,m=c?Object.keys(c)[0]:void 0,y=xe(n,m).filter((function(e,n){if(null==e.route.loader)return!1;if(function(e,t,n){var r=!t||n.route.id!==t.route.id,i=void 0===e[n.route.id];return r||i}(t.loaderData,t.matches[n],e)||s.some((function(t){return t===e.route.id})))return!0;var i=t.matches[n],a=e;return _e(e,x({currentUrl:d,currentParams:i.params,nextUrl:f,nextParams:a.params},r,{actionResult:p,defaultShouldRevalidate:h||ke(i,a)}))})),v=[];return u&&u.forEach((function(e,i){n.some((function(t){return t.route.id===e.routeId}))&&((o.includes(i)||_e(e.match,x({currentUrl:d,currentParams:t.matches[t.matches.length-1].params,nextUrl:f,nextParams:n[n.length-1].params},r,{actionResult:p,defaultShouldRevalidate:h})))&&v.push(x({key:i},e)))})),[y,v]}function ke(e,t){var n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function _e(e,t){if(e.route.shouldRevalidate){var n=e.route.shouldRevalidate(t);if("boolean"===typeof n)return n}return t.defaultShouldRevalidate}function we(e,t,n,r,i,a,s,o){return Ee.apply(this,arguments)}function Ee(){return(Ee=(0,i.Z)((0,r.Z)().mark((function e(t,n,i,a,s,o,l,c){var u,p,d,f,h,m,y,v,g,x,k,_,w,E,P,A;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===s&&(s="/"),void 0===o&&(o=!1),void 0===l&&(l=!1),f=new Promise((function(e,t){return d=t})),h=function(){return d()},n.signal.addEventListener("abort",h),e.prev=6,S(m=i.route[t],"Could not find the "+t+' to run on the "'+i.route.id+'" route'),e.next=11,Promise.race([m({request:n,params:i.params,context:c}),f]);case 11:S(void 0!==(p=e.sent),"You defined "+("action"===t?"an action":"a loader")+' for route "'+i.route.id+"\" but didn't return anything from your `"+t+"` function. Please return a value or `null`."),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(6),u=b.error,p=e.t0;case 19:return e.prev=19,n.signal.removeEventListener("abort",h),e.finish(19);case 22:if(!Ne(p)){e.next=48;break}if(y=p.status,!ue.has(y)){e.next=33;break}if(S(v=p.headers.get("Location"),"Redirects returned/thrown from loaders/actions must have a Location header"),/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i.test(v)?o||(w=new URL(n.url),(E=v.startsWith("//")?new URL(w.protocol+v):new URL(v)).origin===w.origin&&(v=E.pathname+E.search+E.hash)):(g=a.slice(0,a.indexOf(i)+1),x=W(g).map((function(e){return e.pathnameBase})),S(D(k=K(v,x,new URL(n.url).pathname)),"Unable to resolve redirect location: "+v),s&&(_=k.pathname,k.pathname="/"===_?s:$([s,_])),v=D(k)),!o){e.next=32;break}throw p.headers.set("Location",v),p;case 32:return e.abrupt("return",{type:b.redirect,status:y,location:v,revalidate:null!==p.headers.get("X-Remix-Revalidate")});case 33:if(!l){e.next=35;break}throw{type:u||b.data,response:p};case 35:if(!(A=p.headers.get("Content-Type"))||!/\bapplication\/json\b/.test(A)){e.next=42;break}return e.next=39,p.json();case 39:P=e.sent,e.next=45;break;case 42:return e.next=44,p.text();case 44:P=e.sent;case 45:if(u!==b.error){e.next=47;break}return e.abrupt("return",{type:u,error:new ie(y,p.statusText,P),headers:p.headers});case 47:return e.abrupt("return",{type:b.data,data:P,statusCode:p.status,headers:p.headers});case 48:if(u!==b.error){e.next=50;break}return e.abrupt("return",{type:u,error:p});case 50:if(!(p instanceof te)){e.next=52;break}return e.abrupt("return",{type:b.deferred,deferredData:p});case 52:return e.abrupt("return",{type:b.data,data:p});case 53:case"end":return e.stop()}}),e,null,[[6,15,19,22]])})))).apply(this,arguments)}function Se(e,t,n,r){var i=e.createURL(Ie(t)).toString(),a={signal:n};if(r&&Ge(r.formMethod)){var s=r.formMethod,o=r.formEncType,l=r.formData;a.method=s.toUpperCase(),a.body="application/x-www-form-urlencoded"===o?Pe(l):l}return new Request(i,a)}function Pe(e){var t,n=new URLSearchParams,r=(0,v.Z)(e.entries());try{for(r.s();!(t=r.n()).done;){var i=(0,p.Z)(t.value,2),a=i[0],s=i[1];n.append(a,s instanceof File?s.name:s)}}catch(o){r.e(o)}finally{r.f()}return n}function Ae(e,t,n,r,i){var a,s={},o=null,l=!1,c={};return n.forEach((function(n,u){var p=t[u].route.id;if(S(!Le(n),"Cannot handle redirect results in processLoaderData"),Re(n)){var d=Te(e,p),f=n.error;r&&(f=Object.values(r)[0],r=void 0),null==(o=o||{})[d.route.id]&&(o[d.route.id]=f),s[p]=void 0,l||(l=!0,a=ae(n.error)?n.error.status:500),n.headers&&(c[p]=n.headers)}else Me(n)?(i.set(p,n.deferredData),s[p]=n.deferredData.data):s[p]=n.data,null==n.statusCode||200===n.statusCode||l||(a=n.statusCode),n.headers&&(c[p]=n.headers)})),r&&(o=r,s[Object.keys(r)[0]]=void 0),{loaderData:s,errors:o,statusCode:a||200,loaderHeaders:c}}function Ce(e,t,n,r,i,s,o,l){for(var c=Ae(t,n,r,i,l),u=c.loaderData,p=c.errors,d=0;d=0;t--){var n=e[t];if(Le(n))return n}}function Ie(e){return D(x({},"string"===typeof e?T(e):e,{hash:""}))}function Be(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash!==t.hash}function Me(e){return e.type===b.deferred}function Re(e){return e.type===b.error}function Le(e){return(e&&e.type)===b.redirect}function Ne(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"object"===typeof e.headers&&"undefined"!==typeof e.body}function Ve(e){return ce.has(e)}function Ge(e){return oe.has(e)}function ze(e,t,n,r,i,a){return Ue.apply(this,arguments)}function Ue(){return(Ue=(0,i.Z)((0,r.Z)().mark((function e(t,n,i,a,s,o){var l,c;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:l=(0,r.Z)().mark((function e(l){var c,u,p,d;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c=i[l],u=n[l],p=t.find((function(e){return e.route.id===u.route.id})),d=null!=p&&!ke(p,u)&&void 0!==(o&&o[u.route.id]),!Me(c)||!s&&!d){e.next=7;break}return e.next=7,qe(c,a,s).then((function(e){e&&(i[l]=e||i[l])}));case 7:case"end":return e.stop()}}),e)})),c=0;case 2:if(!(c=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(l)})),e.exports=u},6789:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},7600:function(e){e.exports={version:"0.27.2"}},4049:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}})),s):s}},6261:function(e){"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},8089:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},1397:function(e,t,n){"use strict";var r=n(3589);e.exports=function(e,t){t=t||new FormData;var n=[];function i(e){return null===e?"":r.isDate(e)?e.toISOString():r.isArrayBuffer(e)||r.isTypedArray(e)?"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(a,s){if(r.isPlainObject(a)||r.isArray(a)){if(-1!==n.indexOf(a))throw Error("Circular reference detected in "+s);n.push(a),r.forEach(a,(function(n,a){if(!r.isUndefined(n)){var o,l=s?s+"."+a:a;if(n&&!s&&"object"===typeof n)if(r.endsWith(a,"{}"))n=JSON.stringify(n);else if(r.endsWith(a,"[]")&&(o=r.toArray(n)))return void o.forEach((function(e){!r.isUndefined(e)&&t.append(l,i(e))}));e(n,l)}})),n.pop()}else t.append(s,i(a))}(e),t}},7835:function(e,t,n){"use strict";var r=n(7600).version,i=n(4531),a={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){a[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var s={};a.transitional=function(e,t,n){function a(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,o){if(!1===e)throw new i(a(r," has been removed"+(t?" in "+t:"")),i.ERR_DEPRECATED);return t&&!s[r]&&(s[r]=!0,console.warn(a(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,o)}},e.exports={assertOptions:function(e,t,n){if("object"!==typeof e)throw new i("options must be an object",i.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),a=r.length;a-- >0;){var s=r[a],o=t[s];if(o){var l=e[s],c=void 0===l||o(l,s,e);if(!0!==c)throw new i("option "+s+" must be "+c,i.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new i("Unknown option "+s,i.ERR_BAD_OPTION)}},validators:a}},3589:function(e,t,n){"use strict";var r,i=n(4049),a=Object.prototype.toString,s=(r=Object.create(null),function(e){var t=a.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function o(e){return e=e.toLowerCase(),function(t){return s(t)===e}}function l(e){return Array.isArray(e)}function c(e){return"undefined"===typeof e}var u=o("ArrayBuffer");function p(e){return null!==e&&"object"===typeof e}function d(e){if("object"!==s(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var f=o("Date"),h=o("File"),m=o("Blob"),y=o("FileList");function v(e){return"[object Function]"===a.call(e)}var g=o("URLSearchParams");function x(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),l(e))for(var n=0,r=e.length;n0;)s[a=r[i]]||(t[a]=e[a],s[a]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:o,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:k,isFileList:y}},4037:function(e,t,n){"use strict";var r=n(2506),i=n(9722),a=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&a(e,".prototype.")>-1?i(n):n}},9722:function(e,t,n){"use strict";var r=n(3350),i=n(2506),a=i("%Function.prototype.apply%"),s=i("%Function.prototype.call%"),o=i("%Reflect.apply%",!0)||r.call(s,a),l=i("%Object.getOwnPropertyDescriptor%",!0),c=i("%Object.defineProperty%",!0),u=i("%Math.max%");if(c)try{c({},"a",{value:1})}catch(d){c=null}e.exports=function(e){var t=o(r,s,arguments);if(l&&c){var n=l(t,"length");n.configurable&&c(t,"length",{value:1+u(0,e.length-(arguments.length-1))})}return t};var p=function(){return o(r,a,arguments)};c?c(e.exports,"apply",{value:p}):e.exports.apply=p},1694:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t1&&"boolean"!==typeof t)throw new s('"allowMissing" argument must be a boolean');if(null===S(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=C(e),r=n.length>0?n[0]:"",a=D("%"+r+"%",t),o=a.name,c=a.value,u=!1,p=a.alias;p&&(r=p[0],_(n,k([0,1],p)));for(var d=1,f=!0;d=n.length){var g=l(c,h);c=(f=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:c[h]}else f=b(c,h),c=c[h];f&&!u&&(m[o]=c)}}return c}},697:function(e,t,n){"use strict";var r="undefined"!==typeof Symbol&&Symbol,i=n(3297);e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&i())))}},3297:function(e){"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},8316:function(e,t,n){"use strict";var r=n(3350);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},2110:function(e,t,n){"use strict";var r=n(7441),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function l(e){return r.isMemo(e)?s:o[e.$$typeof]||i}o[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[r.Memo]=s;var c=Object.defineProperty,u=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var i=f(n);i&&i!==h&&e(t,i,r)}var s=u(n);p&&(s=s.concat(p(n)));for(var o=l(t),m=l(n),y=0;y0){var s=n.indexOf(this);~s?n.splice(s+1):n.push(this),~s?r.splice(s,1/0,i):r.push(i),~n.indexOf(a)&&(a=t.call(this,i,a))}else n.push(a);return null==e?a:e.call(this,i,a)}}(e.exports=function(e,t,r,i){return JSON.stringify(e,n(t,i),r)}).getSerialize=n},4519:function(e){var t,n,r=Function.prototype,i=Object.prototype,a=r.toString,s=i.hasOwnProperty,o=a.call(Object),l=i.toString,c=(t=Object.getPrototypeOf,n=Object,function(e){return t(n(e))});e.exports=function(e){if(!function(e){return!!e&&"object"==typeof e}(e)||"[object Object]"!=l.call(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}(e))return!1;var t=c(e);if(null===t)return!0;var n=s.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&a.call(n)==o}},3988:function(e){var t=Object.prototype.toString,n=Array.isArray;e.exports=function(e){return"string"==typeof e||!n(e)&&function(e){return!!e&&"object"==typeof e}(e)&&"[object String]"==t.call(e)}},908:function(e,t,n){var r=n(8136)(n(7009),"DataView");e.exports=r},9676:function(e,t,n){var r=n(5403),i=n(2747),a=n(6037),s=n(4154),o=n(7728);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++ti?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r=i?e:r(e,t,n)}},5525:function(e,t,n){var r=n(7009)["__core-js_shared__"];e.exports=r},372:function(e){e.exports=function(e){return function(t,n,r){for(var i=-1,a=Object(t),s=r(t),o=s.length;o--;){var l=s[e?o:++i];if(!1===n(a[l],l,a))break}return t}}},322:function(e,t,n){var r=n(9813),i=n(7302),a=n(7580),s=n(3518);e.exports=function(e){return function(t){t=s(t);var n=i(t)?a(t):void 0,o=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return o[e]()+l}}},7810:function(e,t,n){var r=n(2095),i=n(4857),a=n(5660),s=RegExp("['\u2019]","g");e.exports=function(e){return function(t){return r(a(i(t).replace(s,"")),e,"")}}},5868:function(e,t,n){var r=n(4632)({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"});e.exports=r},8528:function(e,t,n){var r=n(8136),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=i},5305:function(e,t,n){var r=n(692),i=n(7897),a=n(75);e.exports=function(e,t,n,s,o,l){var c=1&n,u=e.length,p=t.length;if(u!=p&&!(c&&p>u))return!1;var d=l.get(e),f=l.get(t);if(d&&f)return d==t&&f==e;var h=-1,m=!0,y=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++h-1&&e%1==0&&e-1}},7109:function(e,t,n){var r=n(7112);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},4086:function(e,t,n){var r=n(9676),i=n(8384),a=n(5797);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||i),string:new r}}},9255:function(e,t,n){var r=n(2799);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},9186:function(e,t,n){var r=n(2799);e.exports=function(e){return r(this,e).get(e)}},3423:function(e,t,n){var r=n(2799);e.exports=function(e){return r(this,e).has(e)}},3739:function(e,t,n){var r=n(2799);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},234:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},284:function(e){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},4634:function(e,t,n){var r=n(9151);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},9620:function(e,t,n){var r=n(8136)(Object,"create");e.exports=r},8836:function(e,t,n){var r=n(2709)(Object.keys,Object);e.exports=r},9494:function(e,t,n){e=n.nmd(e);var r=n(1032),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i&&r.process,o=function(){try{var e=a&&a.require&&a.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(t){}}();e.exports=o},3581:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},2709:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},7009:function(e,t,n){var r=n(1032),i="object"==typeof self&&self&&self.Object===Object&&self,a=r||i||Function("return this")();e.exports=a},5774:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1596:function(e){e.exports=function(e){return this.__data__.has(e)}},2230:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},511:function(e,t,n){var r=n(8384);e.exports=function(){this.__data__=new r,this.size=0}},835:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},707:function(e){e.exports=function(e){return this.__data__.get(e)}},8832:function(e){e.exports=function(e){return this.__data__.has(e)}},5077:function(e,t,n){var r=n(8384),i=n(5797),a=n(8059);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length<199)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(s)}return n.set(e,t),this.size=n.size,this}},7580:function(e,t,n){var r=n(4622),i=n(7302),a=n(2129);e.exports=function(e){return i(e)?a(e):r(e)}},170:function(e,t,n){var r=n(4634),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,s=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(a,"$1"):n||e)})),t}));e.exports=s},9793:function(e,t,n){var r=n(152);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},7907:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},2129:function(e){var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",a="[^"+t+"]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",o="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+i+")"+"?",c="[\\ufe0e\\ufe0f]?",u=c+l+("(?:\\u200d(?:"+[a,s,o].join("|")+")"+c+l+")*"),p="(?:"+[a+r+"?",r,s,o,n].join("|")+")",d=RegExp(i+"(?="+i+")|"+p+u,"g");e.exports=function(e){return e.match(d)||[]}},1029:function(e){var t="\\ud800-\\udfff",n="\\u2700-\\u27bf",r="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",a="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",s="["+a+"]",o="\\d+",l="["+n+"]",c="["+r+"]",u="[^"+t+a+o+n+r+i+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",f="["+i+"]",h="(?:"+c+"|"+u+")",m="(?:"+f+"|"+u+")",y="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",v="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",g="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",x="[\\ufe0e\\ufe0f]?",b=x+g+("(?:\\u200d(?:"+["[^"+t+"]",p,d].join("|")+")"+x+g+")*"),k="(?:"+[l,p,d].join("|")+")"+b,_=RegExp([f+"?"+c+"+"+y+"(?="+[s,f,"$"].join("|")+")",m+"+"+v+"(?="+[s,f+h,"$"].join("|")+")",f+"?"+h+"+"+y,f+"+"+v,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",o,k].join("|"),"g");e.exports=function(e){return e.match(_)||[]}},567:function(e,t,n){var r=n(3131),i=n(7810)((function(e,t,n){return t=t.toLowerCase(),e+(n?r(t):t)}));e.exports=i},3131:function(e,t,n){var r=n(3518),i=n(2085);e.exports=function(e){return i(r(e).toLowerCase())}},4857:function(e,t,n){var r=n(5868),i=n(3518),a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,s=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(a,r).replace(s,"")}},9231:function(e){e.exports=function(e,t){return e===t||e!==e&&t!==t}},6181:function(e,t,n){var r=n(8667);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},7805:function(e,t,n){var r=n(7852),i=n(6417);e.exports=function(e,t){return null!=e&&i(e,t,r)}},5658:function(e,t,n){var r=n(529),i=n(6417);e.exports=function(e,t){return null!=e&&i(e,t,r)}},2100:function(e){e.exports=function(e){return e}},4963:function(e,t,n){var r=n(4906),i=n(3141),a=Object.prototype,s=a.hasOwnProperty,o=a.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&s.call(e,"callee")&&!o.call(e,"callee")};e.exports=l},3629:function(e){var t=Array.isArray;e.exports=t},1473:function(e,t,n){var r=n(4786),i=n(4635);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},5174:function(e,t,n){e=n.nmd(e);var r=n(7009),i=n(9488),a=t&&!t.nodeType&&t,s=a&&e&&!e.nodeType&&e,o=s&&s.exports===a?r.Buffer:void 0,l=(o?o.isBuffer:void 0)||i;e.exports=l},4786:function(e,t,n){var r=n(9066),i=n(8092);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},4635:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},8092:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},3141:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},152:function(e,t,n){var r=n(9066),i=n(3141);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},9102:function(e,t,n){var r=n(8150),i=n(6194),a=n(9494),s=a&&a.isTypedArray,o=s?i(s):r;e.exports=o},2742:function(e,t,n){var r=n(7538),i=n(3654),a=n(1473);e.exports=function(e){return a(e)?r(e):i(e)}},9029:function(e,t,n){var r=n(2526),i=n(5358),a=n(6025);e.exports=function(e,t){var n={};return t=a(t,3),i(e,(function(e,i,a){r(n,t(e,i,a),e)})),n}},7702:function(e,t,n){var r=n(2526),i=n(5358),a=n(6025);e.exports=function(e,t){var n={};return t=a(t,3),i(e,(function(e,i,a){r(n,i,t(e,i,a))})),n}},9151:function(e,t,n){var r=n(8059);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var s=e.apply(this,r);return n.cache=a.set(i,s)||a,s};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},38:function(e,t,n){var r=n(9586),i=n(4084),a=n(5823),s=n(9793);e.exports=function(e){return a(e)?r(s(e)):i(e)}},7499:function(e,t,n){var r=n(7810)((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));e.exports=r},8174:function(e){e.exports=function(){return[]}},9488:function(e){e.exports=function(){return!1}},3518:function(e,t,n){var r=n(2446);e.exports=function(e){return null==e?"":r(e)}},2085:function(e,t,n){var r=n(322)("toUpperCase");e.exports=r},5660:function(e,t,n){var r=n(240),i=n(7137),a=n(3518),s=n(1029);e.exports=function(e,t,n){return e=a(e),void 0===(t=n?void 0:t)?i(e)?s(e):r(e):e.match(t)||[]}},1725:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,a){for(var s,o,l=i(e),c=1;c-1e3&&e<1e3||_.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var r=e<0?-P(-e):P(e);if(r!==e){var i=String(r),a=g.call(t,i.length+1);return x.call(i,n,"$&_")+"."+x.call(x.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return x.call(t,n,"$&_")}var B=n(4654),M=B.custom,R=z(M)?M:null;function L(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function N(e){return x.call(String(e),/"/g,""")}function V(e){return"[object Array]"===H(e)&&(!O||!("object"===typeof e&&O in e))}function G(e){return"[object RegExp]"===H(e)&&(!O||!("object"===typeof e&&O in e))}function z(e){if(T)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!D)return!1;try{return D.call(e),!0}catch(t){}return!1}e.exports=function e(t,n,r,i){var o=n||{};if(q(o,"quoteStyle")&&"single"!==o.quoteStyle&&"double"!==o.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(q(o,"maxStringLength")&&("number"===typeof o.maxStringLength?o.maxStringLength<0&&o.maxStringLength!==1/0:null!==o.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=!q(o,"customInspect")||o.customInspect;if("boolean"!==typeof l&&"symbol"!==l)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(q(o,"indent")&&null!==o.indent&&"\t"!==o.indent&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(q(o,"numericSeparator")&&"boolean"!==typeof o.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var m=o.numericSeparator;if("undefined"===typeof t)return"undefined";if(null===t)return"null";if("boolean"===typeof t)return t?"true":"false";if("string"===typeof t)return W(t,o);if("number"===typeof t){if(0===t)return 1/0/t>0?"0":"-0";var b=String(t);return m?I(t,b):b}if("bigint"===typeof t){var _=String(t)+"n";return m?I(t,_):_}var P="undefined"===typeof o.depth?5:o.depth;if("undefined"===typeof r&&(r=0),r>=P&&P>0&&"object"===typeof t)return V(t)?"[Array]":"[Object]";var C=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;n=E.call(Array(e.indent+1)," ")}return{base:n,prev:E.call(Array(t+1),n)}}(o,r);if("undefined"===typeof i)i=[];else if(Z(i,t)>=0)return"[Circular]";function M(t,n,a){if(n&&(i=S.call(i)).push(n),a){var s={depth:o.depth};return q(o,"quoteStyle")&&(s.quoteStyle=o.quoteStyle),e(t,s,r+1,i)}return e(t,o,r+1,i)}if("function"===typeof t&&!G(t)){var U=function(e){if(e.name)return e.name;var t=v.call(y.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),K=X(t,M);return"[Function"+(U?": "+U:" (anonymous)")+"]"+(K.length>0?" { "+E.call(K,", ")+" }":"")}if(z(t)){var ee=T?x.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):D.call(t);return"object"!==typeof t||T?ee:$(ee)}if(function(e){if(!e||"object"!==typeof e)return!1;if("undefined"!==typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"===typeof e.nodeName&&"function"===typeof e.getAttribute}(t)){for(var te="<"+k.call(String(t.nodeName)),ne=t.attributes||[],re=0;re"}if(V(t)){if(0===t.length)return"[]";var ie=X(t,M);return C&&!function(e){for(var t=0;t=0)return!1;return!0}(ie)?"["+J(ie,C)+"]":"[ "+E.call(ie,", ")+" ]"}if(function(e){return"[object Error]"===H(e)&&(!O||!("object"===typeof e&&O in e))}(t)){var ae=X(t,M);return"cause"in Error.prototype||!("cause"in t)||j.call(t,"cause")?0===ae.length?"["+String(t)+"]":"{ ["+String(t)+"] "+E.call(ae,", ")+" }":"{ ["+String(t)+"] "+E.call(w.call("[cause]: "+M(t.cause),ae),", ")+" }"}if("object"===typeof t&&l){if(R&&"function"===typeof t[R]&&B)return B(t,{depth:P-r});if("symbol"!==l&&"function"===typeof t.inspect)return t.inspect()}if(function(e){if(!a||!e||"object"!==typeof e)return!1;try{a.call(e);try{c.call(e)}catch(te){return!0}return e instanceof Map}catch(t){}return!1}(t)){var se=[];return s&&s.call(t,(function(e,n){se.push(M(n,t,!0)+" => "+M(e,t))})),Q("Map",a.call(t),se,C)}if(function(e){if(!c||!e||"object"!==typeof e)return!1;try{c.call(e);try{a.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}(t)){var oe=[];return u&&u.call(t,(function(e){oe.push(M(e,t))})),Q("Set",c.call(t),oe,C)}if(function(e){if(!p||!e||"object"!==typeof e)return!1;try{p.call(e,p);try{d.call(e,d)}catch(te){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return Y("WeakMap");if(function(e){if(!d||!e||"object"!==typeof e)return!1;try{d.call(e,d);try{p.call(e,p)}catch(te){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return Y("WeakSet");if(function(e){if(!f||!e||"object"!==typeof e)return!1;try{return f.call(e),!0}catch(t){}return!1}(t))return Y("WeakRef");if(function(e){return"[object Number]"===H(e)&&(!O||!("object"===typeof e&&O in e))}(t))return $(M(Number(t)));if(function(e){if(!e||"object"!==typeof e||!A)return!1;try{return A.call(e),!0}catch(t){}return!1}(t))return $(M(A.call(t)));if(function(e){return"[object Boolean]"===H(e)&&(!O||!("object"===typeof e&&O in e))}(t))return $(h.call(t));if(function(e){return"[object String]"===H(e)&&(!O||!("object"===typeof e&&O in e))}(t))return $(M(String(t)));if(!function(e){return"[object Date]"===H(e)&&(!O||!("object"===typeof e&&O in e))}(t)&&!G(t)){var le=X(t,M),ce=F?F(t)===Object.prototype:t instanceof Object||t.constructor===Object,ue=t instanceof Object?"":"null prototype",pe=!ce&&O&&Object(t)===t&&O in t?g.call(H(t),8,-1):ue?"Object":"",de=(ce||"function"!==typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(pe||ue?"["+E.call(w.call([],pe||[],ue||[]),": ")+"] ":"");return 0===le.length?de+"{}":C?de+"{"+J(le,C)+"}":de+"{ "+E.call(le,", ")+" }"}return String(t)};var U=Object.prototype.hasOwnProperty||function(e){return e in this};function q(e,t){return U.call(e,t)}function H(e){return m.call(e)}function Z(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return W(g.call(e,0,t.maxStringLength),t)+r}return L(x.call(x.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,K),"single",t)}function K(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+b.call(t.toString(16))}function $(e){return"Object("+e+")"}function Y(e){return e+" { ? }"}function Q(e,t,n,r){return e+" ("+t+") {"+(r?J(n,r):E.call(n,", "))+"}"}function J(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+E.call(e,","+n)+"\n"+t.prev}function X(e,t){var n=V(e),r=[];if(n){r.length=e.length;for(var i=0;i=r?(p.push(e),0):(p.push(r),r-e)}:function(){var e=Date.now();return e-l>n?(c=1,l=e,0):(c>",l=s||r;if(null==n[r])return t?new Error("Required "+a+" `"+l+"` was not specified in `"+o+"`."):null;for(var c=arguments.length,u=Array(c>6?c-6:0),p=6;p=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var n=/[^.^\]^[]+|(?=\[\]|\.\.)/g,r=/^\d+$/,i=/^\d/,a=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,s=/^\s*(['"]?)(.*?)(\1)\s*$/,o=new t(512),l=new t(512),c=new t(512);function u(e){return o.get(e)||o.set(e,p(e).map((function(e){return e.replace(s,"$2")})))}function p(e){return e.match(n)}function d(e){return"string"===typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function f(e){return!d(e)&&(function(e){return e.match(i)&&!e.match(r)}(e)||function(e){return a.test(e)}(e))}e.exports={Cache:t,split:p,normalizePath:u,setter:function(e){var t=u(e);return l.get(e)||l.set(e,(function(e,n){for(var r=0,i=t.length,a=e;r-1?e.split(","):e},c=function(e,t,n,r){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,o=n.depth>0&&/(\[[^[\]]*])/.exec(a),c=o?a.slice(0,o.index):a,u=[];if(c){if(!n.plainObjects&&i.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var p=0;n.depth>0&&null!==(o=s.exec(a))&&p=0;--a){var s,o=e[a];if("[]"===o&&n.parseArrays)s=[].concat(i);else{s=n.plainObjects?Object.create(null):{};var c="["===o.charAt(0)&&"]"===o.charAt(o.length-1)?o.slice(1,-1):o,u=parseInt(c,10);n.parseArrays||""!==c?!isNaN(u)&&o!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(s=[])[u]=i:"__proto__"!==c&&(s[c]=i):s={0:i}}i=s}return i}(u,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return s;if(null!==e.decoder&&void 0!==e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?s.charset:e.charset;return{allowDots:"undefined"===typeof e.allowDots?s.allowDots:!!e.allowDots,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:s.allowPrototypes,allowSparse:"boolean"===typeof e.allowSparse?e.allowSparse:s.allowSparse,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:s.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:s.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:s.comma,decoder:"function"===typeof e.decoder?e.decoder:s.decoder,delimiter:"string"===typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:s.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:s.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:s.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:s.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:s.strictNullHandling}}(t);if(""===e||null===e||"undefined"===typeof e)return n.plainObjects?Object.create(null):{};for(var u="string"===typeof e?function(e,t){var n,c={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,p=t.parameterLimit===1/0?void 0:t.parameterLimit,d=u.split(t.delimiter,p),f=-1,h=t.charset;if(t.charsetSentinel)for(n=0;n-1&&(y=a(y)?[y]:y),i.call(c,m)?c[m]=r.combine(c[m],y):c[m]=y}return c}(e,n):e,p=n.plainObjects?Object.create(null):{},d=Object.keys(u),f=0;f0?S.join(",")||null:void 0}];else if(l(f))I=f;else{var M=Object.keys(S);I=y?M.sort(y):M}for(var R=s&&l(S)&&1===S.length?n+"[]":n,L=0;L0?k+b:""}},4184:function(e,t,n){"use strict";var r=n(9874),i=Object.prototype.hasOwnProperty,a=Array.isArray,s=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),o=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r1;){var t=e.pop(),n=t.obj[t.prop];if(a(n)){for(var r=[],i=0;i=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||a===r.RFC1738&&(40===u||41===u)?l+=o.charAt(c):u<128?l+=s[u]:u<2048?l+=s[192|u>>6]+s[128|63&u]:u<55296||u>=57344?l+=s[224|u>>12]+s[128|u>>6&63]+s[128|63&u]:(c+=1,u=65536+((1023&u)<<10|1023&o.charCodeAt(c)),l+=s[240|u>>18]+s[128|u>>12&63]+s[128|u>>6&63]+s[128|63&u])}return l},isBuffer:function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(a(e)){for(var n=[],r=0;r