@fluidattacks/design 3.16.6 → 3.16.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/@core/index.js +1 -1
- package/dist/components/accordion/accordion-content/index.js +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/card/card-header/index.js +1 -1
- package/dist/components/card/card-with-image/index.js +1 -1
- package/dist/components/card/card-with-input/index.js +1 -1
- package/dist/components/card/card-with-options/index.js +1 -1
- package/dist/components/card/card-with-selector/index.js +1 -1
- package/dist/components/card/card-with-switch/index.js +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/cloud-image/index.js +1 -1
- package/dist/components/code-snippet/index.js +1 -1
- package/dist/components/code-snippet/location-code/index.js +1 -1
- package/dist/components/colors/index.js +1 -1
- package/dist/components/confirm-dialog/index.js +1 -1
- package/dist/components/container/index.js +1 -1
- package/dist/components/divider/index.js +1 -1
- package/dist/components/empty-state/empty-button/index.js +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/file-preview/index.js +1 -1
- package/dist/components/form/index.js +1 -1
- package/dist/components/form/inner-form/index.js +1 -1
- package/dist/components/grid-container/index.js +1 -1
- package/dist/components/group-selector/index.js +1 -1
- package/dist/components/group-selector/option-container/index.js +1 -1
- package/dist/components/icon/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/indicator-card/index.js +1 -1
- package/dist/components/info-sidebar/index.js +1 -1
- package/dist/components/inputs/fields/combobox/field/index.js +1 -1
- package/dist/components/inputs/fields/combobox/index.js +1 -1
- package/dist/components/inputs/fields/combobox/option/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/header/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date/index.js +1 -1
- package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-range/index.js +1 -1
- package/dist/components/inputs/fields/date-time/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-time/index.js +1 -1
- package/dist/components/inputs/fields/editable/index.js +1 -1
- package/dist/components/inputs/fields/input/index.js +1 -1
- package/dist/components/inputs/fields/input-array/field/index.js +1 -1
- package/dist/components/inputs/fields/input-array/index.js +1 -1
- package/dist/components/inputs/fields/input-file/index.js +1 -1
- package/dist/components/inputs/fields/input-tags/field/index.js +1 -1
- package/dist/components/inputs/fields/input-tags/index.js +1 -1
- package/dist/components/inputs/fields/number/index.js +1 -1
- package/dist/components/inputs/fields/number-range/index.js +1 -1
- package/dist/components/inputs/fields/phone/index.js +1 -1
- package/dist/components/inputs/fields/text-area/index.js +1 -1
- package/dist/components/inputs/index.js +1 -1
- package/dist/components/inputs/label/index.js +1 -1
- package/dist/components/inputs/outline-container/index.js +1 -1
- package/dist/components/inputs/utils/action-button/index.js +1 -1
- package/dist/components/inputs/utils/calendar-button/index.js +1 -1
- package/dist/components/inputs/utils/date-selector/index.js +1 -1
- package/dist/components/inputs/utils/date-time-field/index.js +1 -1
- package/dist/components/inputs/utils/dialog/index.js +1 -1
- package/dist/components/inputs/utils/number-field/index.js +1 -1
- package/dist/components/inputs/utils/popover/index.js +1 -1
- package/dist/components/layout/categories/buttons/index.js +1 -1
- package/dist/components/layout/categories/column/index.js +1 -1
- package/dist/components/layout/categories/gap/index.js +1 -1
- package/dist/components/layout/categories/row/index.js +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/list-item/index.js +1 -1
- package/dist/components/little-flag/index.js +1 -1
- package/dist/components/loading/index.js +1 -1
- package/dist/components/logo/index.js +1 -1
- package/dist/components/lottie/index.js +1 -1
- package/dist/components/menu/index.js +1 -1
- package/dist/components/message-banner/index.js +1 -1
- package/dist/components/modal/columns-modal/index.js +1 -1
- package/dist/components/modal/columns-modal/preview-panel/index.js +1 -1
- package/dist/components/modal/columns-modal/search-panel/index.js +1 -1
- package/dist/components/modal/filters-modal/applied-filter/index.js +1 -1
- package/dist/components/modal/filters-modal/applied-filters/index.js +1 -1
- package/dist/components/modal/filters-modal/column-filters/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-control/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-form/form-content/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-form/hooks/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-form/index.js +1 -1
- package/dist/components/modal/filters-modal/filters-list/index.js +1 -1
- package/dist/components/modal/filters-modal/index.js +1 -1
- package/dist/components/modal/footer/index.js +1 -1
- package/dist/components/modal/header/index.js +1 -1
- package/dist/components/modal/index.js +1 -1
- package/dist/components/modal/modal-confirm/index.js +1 -1
- package/dist/components/notification/index.js +1 -1
- package/dist/components/notification-sign/index.js +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/oauth-selector/index.js +1 -1
- package/dist/components/oauth-selector/option-container/index.js +1 -1
- package/dist/components/plan-card/index.js +1 -1
- package/dist/components/plan-card/recommended-tag/index.js +1 -1
- package/dist/components/pop-up/description/index.js +1 -1
- package/dist/components/pop-up/index.js +1 -1
- package/dist/components/premium-feature/index.js +1 -1
- package/dist/components/priority-score/index.js +1 -1
- package/dist/components/progress-bar/index.js +1 -1
- package/dist/components/radio-button/index.js +1 -1
- package/dist/components/scroll-button/index.js +1 -1
- package/dist/components/search/index.js +1 -1
- package/dist/components/severity-badge/index.js +1 -1
- package/dist/components/severity-overview/badge/index.js +1 -1
- package/dist/components/severity-overview/index.js +1 -1
- package/dist/components/show-on-hover/index.js +1 -1
- package/dist/components/slide-out-menu/index.js +1 -1
- package/dist/components/slide-out-menu/menu-item/index.js +1 -1
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/thumb/index.js +1 -1
- package/dist/components/step-lapse/index.js +1 -1
- package/dist/components/table-button/index.js +1 -1
- package/dist/components/tabs/fixed-tabs/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/tab/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/timeline/card/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/toggle/index.js +1 -1
- package/dist/components/toggle-buttons/index.js +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tour/index.js +1 -1
- package/dist/components/typography/heading/index.js +1 -1
- package/dist/components/typography/index.js +1 -1
- package/dist/components/typography/span/index.js +1 -1
- package/dist/components/typography/text/index.js +1 -1
- package/dist/{components-fTcShWFP.mjs → components-DSKfULOq.mjs} +1216 -1213
- package/dist/{components-nAnkLtcF.js → components-Dy6XEwUp.js} +167 -167
- package/dist/hooks/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/utils/date.d.ts +2 -1
- package/dist/{vendor-4R9pmxhU.mjs → vendor-BQqL8v1c.mjs} +1 -1
- package/dist/{vendor-DuayZeS3.js → vendor-Dh2BdSxp.js} +1 -1
- package/package.json +2 -2
|
@@ -121,7 +121,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
121
121
|
* @author Lea Verou <https://lea.verou.me>
|
|
122
122
|
* @namespace
|
|
123
123
|
* @public
|
|
124
|
-
*/var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,s=0,o={},u={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function C(T){return T instanceof l?new l(T.type,C(T.content),T.alias):Array.isArray(T)?T.map(C):T.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(C){return Object.prototype.toString.call(C).slice(8,-1)},objId:function(C){return C.__id||Object.defineProperty(C,"__id",{value:++s}),C.__id},clone:function C(T,O){O=O||{};var M,k;switch(u.util.type(T)){case"Object":if(k=u.util.objId(T),O[k])return O[k];M={},O[k]=M;for(var N in T)T.hasOwnProperty(N)&&(M[N]=C(T[N],O));return M;case"Array":return k=u.util.objId(T),O[k]?O[k]:(M=[],O[k]=M,T.forEach(function(F,ae){M[ae]=C(F,O)}),M);default:return T}},getLanguage:function(C){for(;C;){var T=i.exec(C.className);if(T)return T[1].toLowerCase();C=C.parentElement}return"none"},setLanguage:function(C,T){C.className=C.className.replace(RegExp(i,"gi"),""),C.classList.add("language-"+T)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(M){var C=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(M.stack)||[])[1];if(C){var T=document.getElementsByTagName("script");for(var O in T)if(T[O].src==C)return T[O]}return null}},isActive:function(C,T,O){for(var M="no-"+T;C;){var k=C.classList;if(k.contains(T))return!0;if(k.contains(M))return!1;C=C.parentElement}return!!O}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(C,T){var O=u.util.clone(u.languages[C]);for(var M in T)O[M]=T[M];return O},insertBefore:function(C,T,O,M){M=M||u.languages;var k=M[C],N={};for(var F in k)if(k.hasOwnProperty(F)){if(F==T)for(var ae in O)O.hasOwnProperty(ae)&&(N[ae]=O[ae]);O.hasOwnProperty(F)||(N[F]=k[F])}var oe=M[C];return M[C]=N,u.languages.DFS(u.languages,function(W,Ce){Ce===oe&&W!=C&&(this[W]=N)}),N},DFS:function C(T,O,M,k){k=k||{};var N=u.util.objId;for(var F in T)if(T.hasOwnProperty(F)){O.call(T,F,T[F],M||F);var ae=T[F],oe=u.util.type(ae);oe==="Object"&&!k[N(ae)]?(k[N(ae)]=!0,C(ae,O,null,k)):oe==="Array"&&!k[N(ae)]&&(k[N(ae)]=!0,C(ae,O,F,k))}}},plugins:{},highlightAll:function(C,T){u.highlightAllUnder(document,C,T)},highlightAllUnder:function(C,T,O){var M={callback:O,container:C,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};u.hooks.run("before-highlightall",M),M.elements=Array.prototype.slice.apply(M.container.querySelectorAll(M.selector)),u.hooks.run("before-all-elements-highlight",M);for(var k=0,N;N=M.elements[k++];)u.highlightElement(N,T===!0,M.callback)},highlightElement:function(C,T,O){var M=u.util.getLanguage(C),k=u.languages[M];u.util.setLanguage(C,M);var N=C.parentElement;N&&N.nodeName.toLowerCase()==="pre"&&u.util.setLanguage(N,M);var F=C.textContent,ae={element:C,language:M,grammar:k,code:F};function oe(Ce){ae.highlightedCode=Ce,u.hooks.run("before-insert",ae),ae.element.innerHTML=ae.highlightedCode,u.hooks.run("after-highlight",ae),u.hooks.run("complete",ae),O&&O.call(ae.element)}if(u.hooks.run("before-sanity-check",ae),N=ae.element.parentElement,N&&N.nodeName.toLowerCase()==="pre"&&!N.hasAttribute("tabindex")&&N.setAttribute("tabindex","0"),!ae.code){u.hooks.run("complete",ae),O&&O.call(ae.element);return}if(u.hooks.run("before-highlight",ae),!ae.grammar){oe(u.util.encode(ae.code));return}if(T&&r.Worker){var W=new Worker(u.filename);W.onmessage=function(Ce){oe(Ce.data)},W.postMessage(JSON.stringify({language:ae.language,code:ae.code,immediateClose:!0}))}else oe(u.highlight(ae.code,ae.grammar,ae.language))},highlight:function(C,T,O){var M={code:C,grammar:T,language:O};if(u.hooks.run("before-tokenize",M),!M.grammar)throw new Error('The language "'+M.language+'" has no grammar.');return M.tokens=u.tokenize(M.code,M.grammar),u.hooks.run("after-tokenize",M),l.stringify(u.util.encode(M.tokens),M.language)},tokenize:function(C,T){var O=T.rest;if(O){for(var M in O)T[M]=O[M];delete T.rest}var k=new m;return g(k,k.head,C),h(C,k,T,k.head,0),$(k)},hooks:{all:{},add:function(C,T){var O=u.hooks.all;O[C]=O[C]||[],O[C].push(T)},run:function(C,T){var O=u.hooks.all[C];if(!(!O||!O.length))for(var M=0,k;k=O[M++];)k(T)}},Token:l};r.Prism=u;function l(C,T,O,M){this.type=C,this.content=T,this.alias=O,this.length=(M||"").length|0}l.stringify=function C(T,O){if(typeof T=="string")return T;if(Array.isArray(T)){var M="";return T.forEach(function(oe){M+=C(oe,O)}),M}var k={type:T.type,content:C(T.content,O),tag:"span",classes:["token",T.type],attributes:{},language:O},N=T.alias;N&&(Array.isArray(N)?Array.prototype.push.apply(k.classes,N):k.classes.push(N)),u.hooks.run("wrap",k);var F="";for(var ae in k.attributes)F+=" "+ae+'="'+(k.attributes[ae]||"").replace(/"/g,""")+'"';return"<"+k.tag+' class="'+k.classes.join(" ")+'"'+F+">"+k.content+"</"+k.tag+">"};function d(C,T,O,M){C.lastIndex=T;var k=C.exec(O);if(k&&M&&k[1]){var N=k[1].length;k.index+=N,k[0]=k[0].slice(N)}return k}function h(C,T,O,M,k,N){for(var F in O)if(!(!O.hasOwnProperty(F)||!O[F])){var ae=O[F];ae=Array.isArray(ae)?ae:[ae];for(var oe=0;oe<ae.length;++oe){if(N&&N.cause==F+","+oe)return;var W=ae[oe],Ce=W.inside,ne=!!W.lookbehind,se=!!W.greedy,z=W.alias;if(se&&!W.pattern.global){var K=W.pattern.toString().match(/[imsuy]*$/)[0];W.pattern=RegExp(W.pattern.source,K+"g")}for(var j=W.pattern||W,V=M.next,ge=k;V!==T.tail&&!(N&&ge>=N.reach);ge+=V.value.length,V=V.next){var U=V.value;if(T.length>C.length)return;if(!(U instanceof l)){var J=1,xe;if(se){if(xe=d(j,ge,C,ne),!xe||xe.index>=C.length)break;var Ze=xe.index,Pe=xe.index+xe[0].length,Oe=ge;for(Oe+=V.value.length;Ze>=Oe;)V=V.next,Oe+=V.value.length;if(Oe-=V.value.length,ge=Oe,V.value instanceof l)continue;for(var Ie=V;Ie!==T.tail&&(Oe<Pe||typeof Ie.value=="string");Ie=Ie.next)J++,Oe+=Ie.value.length;J--,U=C.slice(ge,Oe),xe.index-=ge}else if(xe=d(j,0,U,ne),!xe)continue;var Ze=xe.index,Ge=xe[0],De=U.slice(0,Ze),Ue=U.slice(Ze+Ge.length),Re=ge+U.length;N&&Re>N.reach&&(N.reach=Re);var Ve=V.prev;De&&(Ve=g(T,Ve,De),ge+=De.length),b(T,Ve,J);var Le=new l(F,Ce?u.tokenize(Ge,Ce):Ge,z,Ge);if(V=g(T,Ve,Le),Ue&&g(T,V,Ue),J>1){var nt={cause:F+","+oe,reach:Re};h(C,T,O,V.prev,ge,nt),N&&nt.reach>N.reach&&(N.reach=nt.reach)}}}}}}function m(){var C={value:null,prev:null,next:null},T={value:null,prev:C,next:null};C.next=T,this.head=C,this.tail=T,this.length=0}function g(C,T,O){var M=T.next,k={value:O,prev:T,next:M};return T.next=k,M.prev=k,C.length++,k}function b(C,T,O){for(var M=T.next,k=0;k<O&&M!==C.tail;k++)M=M.next;T.next=M,M.prev=T,C.length-=k}function $(C){for(var T=[],O=C.head.next;O!==C.tail;)T.push(O.value),O=O.next;return T}if(!r.document)return r.addEventListener&&(u.disableWorkerMessageHandler||r.addEventListener("message",function(C){var T=JSON.parse(C.data),O=T.language,M=T.code,k=T.immediateClose;r.postMessage(u.highlight(M,u.languages[O],O)),k&&r.close()},!1)),u;var w=u.util.currentScript();w&&(u.filename=w.src,w.hasAttribute("data-manual")&&(u.manual=!0));function D(){u.manual||u.highlightAll()}if(!u.manual){var S=document.readyState;S==="loading"||S==="interactive"&&w&&w.defer?document.addEventListener("DOMContentLoaded",D):window.requestAnimationFrame?window.requestAnimationFrame(D):window.setTimeout(D,16)}return u}(t);e.exports&&(e.exports=n),typeof qi<"u"&&(qi.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(i,s){var o={};o["language-"+s]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[s]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var u={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};u["language-"+s]={pattern:/[\s\S]+/,inside:n.languages[s]};var l={};l[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:u},n.languages.insertBefore("markup","cdata",l)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(r,i){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:n.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(r){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var s=r.languages.markup;s&&(s.tag.addInlined("style","css"),s.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading…",i=function(w,D){return"✖ Error "+w+" while fetching file: "+D},s="✖ Error: File does not exist or is empty",o={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},u="data-src-status",l="loading",d="loaded",h="failed",m="pre[data-src]:not(["+u+'="'+d+'"]):not(['+u+'="'+l+'"])';function g(w,D,S){var C=new XMLHttpRequest;C.open("GET",w,!0),C.onreadystatechange=function(){C.readyState==4&&(C.status<400&&C.responseText?D(C.responseText):C.status>=400?S(i(C.status,C.statusText)):S(s))},C.send(null)}function b(w){var D=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(w||"");if(D){var S=Number(D[1]),C=D[2],T=D[3];return C?T?[S,Number(T)]:[S,void 0]:[S,S]}}n.hooks.add("before-highlightall",function(w){w.selector+=", "+m}),n.hooks.add("before-sanity-check",function(w){var D=w.element;if(D.matches(m)){w.code="",D.setAttribute(u,l);var S=D.appendChild(document.createElement("CODE"));S.textContent=r;var C=D.getAttribute("data-src"),T=w.language;if(T==="none"){var O=(/\.(\w+)$/.exec(C)||[,"none"])[1];T=o[O]||O}n.util.setLanguage(S,T),n.util.setLanguage(D,T);var M=n.plugins.autoloader;M&&M.loadLanguages(T),g(C,function(k){D.setAttribute(u,d);var N=b(D.getAttribute("data-range"));if(N){var F=k.split(/\r\n?|\n/g),ae=N[0],oe=N[1]==null?F.length:N[1];ae<0&&(ae+=F.length),ae=Math.max(0,Math.min(ae-1,F.length)),oe<0&&(oe+=F.length),oe=Math.max(0,Math.min(oe,F.length)),k=F.slice(ae,oe).join(`
|
|
124
|
+
*/var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,s=0,o={},u={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function C(T){return T instanceof l?new l(T.type,C(T.content),T.alias):Array.isArray(T)?T.map(C):T.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(C){return Object.prototype.toString.call(C).slice(8,-1)},objId:function(C){return C.__id||Object.defineProperty(C,"__id",{value:++s}),C.__id},clone:function C(T,O){O=O||{};var M,k;switch(u.util.type(T)){case"Object":if(k=u.util.objId(T),O[k])return O[k];M={},O[k]=M;for(var N in T)T.hasOwnProperty(N)&&(M[N]=C(T[N],O));return M;case"Array":return k=u.util.objId(T),O[k]?O[k]:(M=[],O[k]=M,T.forEach(function(F,ae){M[ae]=C(F,O)}),M);default:return T}},getLanguage:function(C){for(;C;){var T=i.exec(C.className);if(T)return T[1].toLowerCase();C=C.parentElement}return"none"},setLanguage:function(C,T){C.className=C.className.replace(RegExp(i,"gi"),""),C.classList.add("language-"+T)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(M){var C=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(M.stack)||[])[1];if(C){var T=document.getElementsByTagName("script");for(var O in T)if(T[O].src==C)return T[O]}return null}},isActive:function(C,T,O){for(var M="no-"+T;C;){var k=C.classList;if(k.contains(T))return!0;if(k.contains(M))return!1;C=C.parentElement}return!!O}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(C,T){var O=u.util.clone(u.languages[C]);for(var M in T)O[M]=T[M];return O},insertBefore:function(C,T,O,M){M=M||u.languages;var k=M[C],N={};for(var F in k)if(k.hasOwnProperty(F)){if(F==T)for(var ae in O)O.hasOwnProperty(ae)&&(N[ae]=O[ae]);O.hasOwnProperty(F)||(N[F]=k[F])}var oe=M[C];return M[C]=N,u.languages.DFS(u.languages,function(W,Ce){Ce===oe&&W!=C&&(this[W]=N)}),N},DFS:function C(T,O,M,k){k=k||{};var N=u.util.objId;for(var F in T)if(T.hasOwnProperty(F)){O.call(T,F,T[F],M||F);var ae=T[F],oe=u.util.type(ae);oe==="Object"&&!k[N(ae)]?(k[N(ae)]=!0,C(ae,O,null,k)):oe==="Array"&&!k[N(ae)]&&(k[N(ae)]=!0,C(ae,O,F,k))}}},plugins:{},highlightAll:function(C,T){u.highlightAllUnder(document,C,T)},highlightAllUnder:function(C,T,O){var M={callback:O,container:C,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};u.hooks.run("before-highlightall",M),M.elements=Array.prototype.slice.apply(M.container.querySelectorAll(M.selector)),u.hooks.run("before-all-elements-highlight",M);for(var k=0,N;N=M.elements[k++];)u.highlightElement(N,T===!0,M.callback)},highlightElement:function(C,T,O){var M=u.util.getLanguage(C),k=u.languages[M];u.util.setLanguage(C,M);var N=C.parentElement;N&&N.nodeName.toLowerCase()==="pre"&&u.util.setLanguage(N,M);var F=C.textContent,ae={element:C,language:M,grammar:k,code:F};function oe(Ce){ae.highlightedCode=Ce,u.hooks.run("before-insert",ae),ae.element.innerHTML=ae.highlightedCode,u.hooks.run("after-highlight",ae),u.hooks.run("complete",ae),O&&O.call(ae.element)}if(u.hooks.run("before-sanity-check",ae),N=ae.element.parentElement,N&&N.nodeName.toLowerCase()==="pre"&&!N.hasAttribute("tabindex")&&N.setAttribute("tabindex","0"),!ae.code){u.hooks.run("complete",ae),O&&O.call(ae.element);return}if(u.hooks.run("before-highlight",ae),!ae.grammar){oe(u.util.encode(ae.code));return}if(T&&r.Worker){var W=new Worker(u.filename);W.onmessage=function(Ce){oe(Ce.data)},W.postMessage(JSON.stringify({language:ae.language,code:ae.code,immediateClose:!0}))}else oe(u.highlight(ae.code,ae.grammar,ae.language))},highlight:function(C,T,O){var M={code:C,grammar:T,language:O};if(u.hooks.run("before-tokenize",M),!M.grammar)throw new Error('The language "'+M.language+'" has no grammar.');return M.tokens=u.tokenize(M.code,M.grammar),u.hooks.run("after-tokenize",M),l.stringify(u.util.encode(M.tokens),M.language)},tokenize:function(C,T){var O=T.rest;if(O){for(var M in O)T[M]=O[M];delete T.rest}var k=new m;return g(k,k.head,C),h(C,k,T,k.head,0),$(k)},hooks:{all:{},add:function(C,T){var O=u.hooks.all;O[C]=O[C]||[],O[C].push(T)},run:function(C,T){var O=u.hooks.all[C];if(!(!O||!O.length))for(var M=0,k;k=O[M++];)k(T)}},Token:l};r.Prism=u;function l(C,T,O,M){this.type=C,this.content=T,this.alias=O,this.length=(M||"").length|0}l.stringify=function C(T,O){if(typeof T=="string")return T;if(Array.isArray(T)){var M="";return T.forEach(function(oe){M+=C(oe,O)}),M}var k={type:T.type,content:C(T.content,O),tag:"span",classes:["token",T.type],attributes:{},language:O},N=T.alias;N&&(Array.isArray(N)?Array.prototype.push.apply(k.classes,N):k.classes.push(N)),u.hooks.run("wrap",k);var F="";for(var ae in k.attributes)F+=" "+ae+'="'+(k.attributes[ae]||"").replace(/"/g,""")+'"';return"<"+k.tag+' class="'+k.classes.join(" ")+'"'+F+">"+k.content+"</"+k.tag+">"};function d(C,T,O,M){C.lastIndex=T;var k=C.exec(O);if(k&&M&&k[1]){var N=k[1].length;k.index+=N,k[0]=k[0].slice(N)}return k}function h(C,T,O,M,k,N){for(var F in O)if(!(!O.hasOwnProperty(F)||!O[F])){var ae=O[F];ae=Array.isArray(ae)?ae:[ae];for(var oe=0;oe<ae.length;++oe){if(N&&N.cause==F+","+oe)return;var W=ae[oe],Ce=W.inside,ne=!!W.lookbehind,se=!!W.greedy,z=W.alias;if(se&&!W.pattern.global){var K=W.pattern.toString().match(/[imsuy]*$/)[0];W.pattern=RegExp(W.pattern.source,K+"g")}for(var j=W.pattern||W,V=M.next,ge=k;V!==T.tail&&!(N&&ge>=N.reach);ge+=V.value.length,V=V.next){var U=V.value;if(T.length>C.length)return;if(!(U instanceof l)){var J=1,xe;if(se){if(xe=d(j,ge,C,ne),!xe||xe.index>=C.length)break;var Ze=xe.index,Pe=xe.index+xe[0].length,Oe=ge;for(Oe+=V.value.length;Ze>=Oe;)V=V.next,Oe+=V.value.length;if(Oe-=V.value.length,ge=Oe,V.value instanceof l)continue;for(var Ie=V;Ie!==T.tail&&(Oe<Pe||typeof Ie.value=="string");Ie=Ie.next)J++,Oe+=Ie.value.length;J--,U=C.slice(ge,Oe),xe.index-=ge}else if(xe=d(j,0,U,ne),!xe)continue;var Ze=xe.index,Ge=xe[0],De=U.slice(0,Ze),Ue=U.slice(Ze+Ge.length),Re=ge+U.length;N&&Re>N.reach&&(N.reach=Re);var Ve=V.prev;De&&(Ve=g(T,Ve,De),ge+=De.length),b(T,Ve,J);var Le=new l(F,Ce?u.tokenize(Ge,Ce):Ge,z,Ge);if(V=g(T,Ve,Le),Ue&&g(T,V,Ue),J>1){var nt={cause:F+","+oe,reach:Re};h(C,T,O,V.prev,ge,nt),N&&nt.reach>N.reach&&(N.reach=nt.reach)}}}}}}function m(){var C={value:null,prev:null,next:null},T={value:null,prev:C,next:null};C.next=T,this.head=C,this.tail=T,this.length=0}function g(C,T,O){var M=T.next,k={value:O,prev:T,next:M};return T.next=k,M.prev=k,C.length++,k}function b(C,T,O){for(var M=T.next,k=0;k<O&&M!==C.tail;k++)M=M.next;T.next=M,M.prev=T,C.length-=k}function $(C){for(var T=[],O=C.head.next;O!==C.tail;)T.push(O.value),O=O.next;return T}if(!r.document)return r.addEventListener&&(u.disableWorkerMessageHandler||r.addEventListener("message",function(C){var T=JSON.parse(C.data),O=T.language,M=T.code,k=T.immediateClose;r.postMessage(u.highlight(M,u.languages[O],O)),k&&r.close()},!1)),u;var w=u.util.currentScript();w&&(u.filename=w.src,w.hasAttribute("data-manual")&&(u.manual=!0));function D(){u.manual||u.highlightAll()}if(!u.manual){var S=document.readyState;S==="loading"||S==="interactive"&&w&&w.defer?document.addEventListener("DOMContentLoaded",D):window.requestAnimationFrame?window.requestAnimationFrame(D):window.setTimeout(D,16)}return u}(t);e.exports&&(e.exports=n),typeof qi<"u"&&(qi.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(i,s){var o={};o["language-"+s]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[s]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var u={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};u["language-"+s]={pattern:/[\s\S]+/,inside:n.languages[s]};var l={};l[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:u},n.languages.insertBefore("markup","cdata",l)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(r,i){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:n.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(r){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var s=r.languages.markup;s&&(s.tag.addInlined("style","css"),s.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading…",i=function(w,D){return"✖ Error "+w+" while fetching file: "+D},s="✖ Error: File does not exist or is empty",o={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},u="data-src-status",l="loading",d="loaded",h="failed",m="pre[data-src]:not(["+u+'="'+d+'"]):not(['+u+'="'+l+'"])';function g(w,D,S){var C=new XMLHttpRequest;C.open("GET",w,!0),C.onreadystatechange=function(){C.readyState==4&&(C.status<400&&C.responseText?D(C.responseText):C.status>=400?S(i(C.status,C.statusText)):S(s))},C.send(null)}function b(w){var D=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(w||"");if(D){var S=Number(D[1]),C=D[2],T=D[3];return C?T?[S,Number(T)]:[S,void 0]:[S,S]}}n.hooks.add("before-highlightall",function(w){w.selector+=", "+m}),n.hooks.add("before-sanity-check",function(w){var D=w.element;if(D.matches(m)){w.code="",D.setAttribute(u,l);var S=D.appendChild(document.createElement("CODE"));S.textContent=r;var C=D.getAttribute("data-src"),T=w.language;if(T==="none"){var O=(/\.(\w+)$/.exec(C)||[,"none"])[1];T=o[O]||O}n.util.setLanguage(S,T),n.util.setLanguage(D,T);var M=n.plugins.autoloader;M&&M.loadLanguages(T),g(C,function(k){D.setAttribute(u,d);var N=b(D.getAttribute("data-range"));if(N){var F=k.split(/\r\n?|\n/g),ae=N[0],oe=N[1]==null?F.length:N[1];ae<0&&(ae+=F.length),ae=Math.max(0,Math.min(ae-1,F.length)),oe<0&&(oe+=F.length),oe=Math.max(0,Math.min(oe,F.length)),k=F.slice(ae,oe).join(`
|
|
125
125
|
`),D.hasAttribute("data-start")||D.setAttribute("data-start",String(ae+1))}S.textContent=k,n.highlightElement(S)},function(k){D.setAttribute(u,h),S.textContent=k})}}),n.plugins.fileHighlight={highlight:function(D){for(var S=(D||document).querySelectorAll(m),C=0,T;T=S[C++];)n.highlightElement(T)}};var $=!1;n.fileHighlight=function(){$||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),$=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()}(c1)),c1.exports}var $Q=bQ();(function(){if(typeof Prism>"u"||typeof document>"u"||!document.querySelector)return;var e="line-numbers",t="linkable-line-numbers",n=/\n(?!$)/g;function r(g,b){return Array.prototype.slice.call((b||document).querySelectorAll(g))}function i(g,b){return g.classList.contains(b)}function s(g){g()}var o=function(){var g;return function(){if(typeof g>"u"){var b=document.createElement("div");b.style.fontSize="13px",b.style.lineHeight="1.5",b.style.padding="0",b.style.border="0",b.innerHTML=" <br /> ",document.body.appendChild(b),g=b.offsetHeight===38,document.body.removeChild(b)}return g}}();function u(g,b){var $=getComputedStyle(g),w=getComputedStyle(b);function D(S){return+S.substr(0,S.length-2)}return b.offsetTop+D(w.borderTopWidth)+D(w.paddingTop)-D($.paddingTop)}function l(g){return!g||!/pre/i.test(g.nodeName)?!1:!!(g.hasAttribute("data-line")||g.id&&Prism.util.isActive(g,t))}var d=!0;Prism.plugins.lineHighlight={highlightLines:function(b,$,w){$=typeof $=="string"?$:b.getAttribute("data-line")||"";var D=$.replace(/\s+/g,"").split(",").filter(Boolean),S=+b.getAttribute("data-line-offset")||0,C=o()?parseInt:parseFloat,T=C(getComputedStyle(b).lineHeight),O=Prism.util.isActive(b,e),M=b.querySelector("code"),k=O?b:M||b,N=[],F=M.textContent.match(n),ae=F?F.length+1:1,oe=!M||k==M?0:u(b,M);D.forEach(function(ne){var se=ne.split("-"),z=+se[0],K=+se[1]||z;if(K=Math.min(ae+S,K),!(K<z)){var j=b.querySelector('.line-highlight[data-range="'+ne+'"]')||document.createElement("div");if(N.push(function(){j.setAttribute("aria-hidden","true"),j.setAttribute("data-range",ne),j.className=(w||"")+" line-highlight"}),O&&Prism.plugins.lineNumbers){var V=Prism.plugins.lineNumbers.getLine(b,z),ge=Prism.plugins.lineNumbers.getLine(b,K);if(V){var U=V.offsetTop+oe+"px";N.push(function(){j.style.top=U})}if(ge){var J=ge.offsetTop-V.offsetTop+ge.offsetHeight+"px";N.push(function(){j.style.height=J})}}else N.push(function(){j.setAttribute("data-start",String(z)),K>z&&j.setAttribute("data-end",String(K)),j.style.top=(z-S-1)*T+oe+"px",j.textContent=new Array(K-z+2).join(`
|
|
126
126
|
`)});N.push(function(){j.style.width=b.scrollWidth+"px"}),N.push(function(){k.appendChild(j)})}});var W=b.id;if(O&&Prism.util.isActive(b,t)&&W){i(b,t)||N.push(function(){b.classList.add(t)});var Ce=parseInt(b.getAttribute("data-start")||"1");r(".line-numbers-rows > span",b).forEach(function(ne,se){var z=se+Ce;ne.onclick=function(){var K=W+"."+z;d=!1,location.hash=K,setTimeout(function(){d=!0},1)}})}return function(){N.forEach(s)}}};function h(){var g=location.hash.slice(1);r(".temporary.line-highlight").forEach(function(S){S.parentNode.removeChild(S)});var b=(g.match(/\.([\d,-]+)$/)||[,""])[1];if(!(!b||document.getElementById(g))){var $=g.slice(0,g.lastIndexOf(".")),w=document.getElementById($);if(w){w.hasAttribute("data-line")||w.setAttribute("data-line","");var D=Prism.plugins.lineHighlight.highlightLines(w,b,"temporary ");D(),d&&document.querySelector(".temporary.line-highlight").scrollIntoView()}}}var m=0;Prism.hooks.add("before-sanity-check",function(g){var b=g.element.parentElement;if(l(b)){var $=0;r(".line-highlight",b).forEach(function(w){$+=w.textContent.length,w.parentNode.removeChild(w)}),$&&/^(?: \n)+$/.test(g.code.slice(-$))&&(g.code=g.code.slice(0,-$))}}),Prism.hooks.add("complete",function g(b){var $=b.element.parentElement;if(l($)){clearTimeout(m);var w=Prism.plugins.lineNumbers,D=b.plugins&&b.plugins.lineNumbers;if(i($,e)&&w&&!D)Prism.hooks.add("line-numbers",g);else{var S=Prism.plugins.lineHighlight.highlightLines($);S(),m=setTimeout(h,1)}}}),window.addEventListener("hashchange",h),window.addEventListener("resize",function(){var g=r("pre").filter(l).map(function(b){return Prism.plugins.lineHighlight.highlightLines(b)});g.forEach(s)})})();const k7=A.createContext({});function Fd(e){const t=A.useRef(null);return t.current===null&&(t.current=e()),t.current}const O3=A.createContext(null),I3=A.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function xQ(e=!0){const t=A.useContext(O3);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=A.useId();A.useEffect(()=>{if(e)return i(s)},[e]);const o=A.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,o]:[!0]}const L3=typeof window<"u",O7=L3?A.useLayoutEffect:A.useEffect,ui=e=>e;let Cc=ui,io=ui;process.env.NODE_ENV!=="production"&&(Cc=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},io=(e,t)=>{if(!e)throw new Error(t)});function B3(e){let t;return()=>(t===void 0&&(t=e()),t)}const oc=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},to=e=>e*1e3,jo=e=>e/1e3,wQ={useManualTiming:!1},Nh=["read","resolveKeyframes","update","preRender","render","postRender"];function CQ(e,t){let n=new Set,r=new Set,i=!1,s=!1;const o=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function l(h){o.has(h)&&(d.schedule(h),e()),h(u)}const d={schedule:(h,m=!1,g=!1)=>{const $=g&&i?n:r;return m&&o.add(h),$.has(h)||$.add(h),h},cancel:h=>{r.delete(h),o.delete(h)},process:h=>{if(u=h,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,s&&(s=!1,d.process(h))}};return d}const SQ=40;function I7(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=Nh.reduce((S,C)=>(S[C]=CQ(s),S),{}),{read:u,resolveKeyframes:l,update:d,preRender:h,render:m,postRender:g}=o,b=()=>{const S=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(S-i.timestamp,SQ),1),i.timestamp=S,i.isProcessing=!0,u.process(i),l.process(i),d.process(i),h.process(i),m.process(i),g.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(b))},$=()=>{n=!0,r=!0,i.isProcessing||e(b)};return{schedule:Nh.reduce((S,C)=>{const T=o[C];return S[C]=(O,M=!1,k=!1)=>(n||$(),T.schedule(O,M,k)),S},{}),cancel:S=>{for(let C=0;C<Nh.length;C++)o[Nh[C]].cancel(S)},state:i,steps:o}}const{schedule:mn,cancel:Wo,state:$r,steps:f1}=I7(typeof requestAnimationFrame<"u"?requestAnimationFrame:ui,!0),L7=A.createContext({strict:!1}),aA={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ac={};for(const e in aA)ac[e]={isEnabled:t=>aA[e].some(n=>!!t[n])};function EQ(e){for(const t in e)ac[t]={...ac[t],...e[t]}}const DQ=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Zp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||DQ.has(e)}let B7=e=>!Zp(e);function AQ(e){e&&(B7=t=>t.startsWith("on")?!Zp(t):e(t))}try{AQ(require("@emotion/is-prop-valid").default)}catch{}function TQ(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(B7(i)||n===!0&&Zp(i)||!t&&!Zp(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const uA=new Set;function Qm(e,t,n){e||uA.has(t)||(console.warn(t),uA.add(t))}function PQ(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&Qm(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const eg=A.createContext({});function tg(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function sd(e){return typeof e=="string"||Array.isArray(e)}const V3=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],N3=["initial",...V3];function ng(e){return tg(e.animate)||N3.some(t=>sd(e[t]))}function V7(e){return!!(ng(e)||e.variants)}function _Q(e,t){if(ng(e)){const{initial:n,animate:r}=e;return{initial:n===!1||sd(n)?n:void 0,animate:sd(r)?r:void 0}}return e.inherit!==!1?t:{}}function MQ(e){const{initial:t,animate:n}=_Q(e,A.useContext(eg));return A.useMemo(()=>({initial:t,animate:n}),[lA(t),lA(n)])}function lA(e){return Array.isArray(e)?e.join(" "):e}const RQ=Symbol.for("motionComponentSymbol");function _l(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function FQ(e,t,n){return A.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):_l(n)&&(n.current=r))},[t])}const j3=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),kQ="framerAppearId",N7="data-"+j3(kQ),{schedule:K3}=I7(queueMicrotask,!1),j7=A.createContext({});function OQ(e,t,n,r,i){var s,o;const{visualElement:u}=A.useContext(eg),l=A.useContext(L7),d=A.useContext(O3),h=A.useContext(I3).reducedMotion,m=A.useRef(null);r=r||l.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:u,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:h}));const g=m.current,b=A.useContext(j7);g&&!g.projection&&i&&(g.type==="html"||g.type==="svg")&&IQ(m.current,n,i,b);const $=A.useRef(!1);A.useInsertionEffect(()=>{g&&$.current&&g.update(n,d)});const w=n[N7],D=A.useRef(!!w&&!(!((s=window.MotionHandoffIsComplete)===null||s===void 0)&&s.call(window,w))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,w)));return O7(()=>{g&&($.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),K3.render(g.render),D.current&&g.animationState&&g.animationState.animateChanges())}),A.useEffect(()=>{g&&(!D.current&&g.animationState&&g.animationState.animateChanges(),D.current&&(queueMicrotask(()=>{var S;(S=window.MotionHandoffMarkAsComplete)===null||S===void 0||S.call(window,w)}),D.current=!1))}),g}function IQ(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:u,layoutScroll:l,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:K7(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||u&&_l(u),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:d})}function K7(e){if(e)return e.options.allowProjection!==!1?e.projection:K7(e.parent)}function LQ({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var s,o;e&&EQ(e);function u(d,h){let m;const g={...A.useContext(I3),...d,layoutId:BQ(d)},{isStatic:b}=g,$=MQ(d),w=r(d,b);if(!b&&L3){VQ(g,e);const D=NQ(g);m=D.MeasureLayout,$.visualElement=OQ(i,w,g,t,D.ProjectionNode)}return Uo.jsxs(eg.Provider,{value:$,children:[m&&$.visualElement?Uo.jsx(m,{visualElement:$.visualElement,...g}):null,n(i,d,FQ(w,$.visualElement,h),w,b,$.visualElement)]})}u.displayName=`motion.${typeof i=="string"?i:`create(${(o=(s=i.displayName)!==null&&s!==void 0?s:i.name)!==null&&o!==void 0?o:""})`}`;const l=A.forwardRef(u);return l[RQ]=i,l}function BQ({layoutId:e}){const t=A.useContext(k7).id;return t&&e!==void 0?t+"-"+e:e}function VQ(e,t){const n=A.useContext(L7).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Cc(!1,r):io(!1,r)}}function NQ(e){const{drag:t,layout:n}=ac;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const U7=e=>t=>typeof t=="string"&&t.startsWith(e),U3=U7("--"),jQ=U7("var(--"),z3=e=>jQ(e)?KQ.test(e.split("/*")[0].trim()):!1,KQ=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,od={};function UQ(e){for(const t in e)od[t]=e[t],U3(t)&&(od[t].isCSSVariable=!0)}const Sc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Nu=new Set(Sc);function z7(e,{layout:t,layoutId:n}){return Nu.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!od[e]||e==="opacity")}const xr=e=>!!(e&&e.getVelocity),q7=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Ho=(e,t,n)=>n>t?t:n<e?e:n,Ec={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ad={...Ec,transform:e=>Ho(0,1,e)},jh={...Ec,default:1},kd=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),pa=kd("deg"),no=kd("%"),Dt=kd("px"),zQ=kd("vh"),qQ=kd("vw"),cA={...no,parse:e=>no.parse(e)/100,transform:e=>no.transform(e*100)},WQ={borderWidth:Dt,borderTopWidth:Dt,borderRightWidth:Dt,borderBottomWidth:Dt,borderLeftWidth:Dt,borderRadius:Dt,radius:Dt,borderTopLeftRadius:Dt,borderTopRightRadius:Dt,borderBottomRightRadius:Dt,borderBottomLeftRadius:Dt,width:Dt,maxWidth:Dt,height:Dt,maxHeight:Dt,top:Dt,right:Dt,bottom:Dt,left:Dt,padding:Dt,paddingTop:Dt,paddingRight:Dt,paddingBottom:Dt,paddingLeft:Dt,margin:Dt,marginTop:Dt,marginRight:Dt,marginBottom:Dt,marginLeft:Dt,backgroundPositionX:Dt,backgroundPositionY:Dt},HQ={rotate:pa,rotateX:pa,rotateY:pa,rotateZ:pa,scale:jh,scaleX:jh,scaleY:jh,scaleZ:jh,skew:pa,skewX:pa,skewY:pa,distance:Dt,translateX:Dt,translateY:Dt,translateZ:Dt,x:Dt,y:Dt,z:Dt,perspective:Dt,transformPerspective:Dt,opacity:ad,originX:cA,originY:cA,originZ:Dt},fA={...Ec,transform:Math.round},q3={...WQ,...HQ,zIndex:fA,size:Dt,fillOpacity:ad,strokeOpacity:ad,numOctaves:fA},GQ={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},YQ=Sc.length;function ZQ(e,t,n){let r="",i=!0;for(let s=0;s<YQ;s++){const o=Sc[s],u=e[o];if(u===void 0)continue;let l=!0;if(typeof u=="number"?l=u===(o.startsWith("scale")?1:0):l=parseFloat(u)===0,!l||n){const d=q7(u,q3[o]);if(!l){i=!1;const h=GQ[o]||o;r+=`${h}(${d}) `}n&&(t[o]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function W3(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let o=!1,u=!1;for(const l in t){const d=t[l];if(Nu.has(l)){o=!0;continue}else if(U3(l)){i[l]=d;continue}else{const h=q7(d,q3[l]);l.startsWith("origin")?(u=!0,s[l]=h):r[l]=h}}if(t.transform||(o||n?r.transform=ZQ(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:l="50%",originY:d="50%",originZ:h=0}=s;r.transformOrigin=`${l} ${d} ${h}`}}const H3=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function W7(e,t,n){for(const r in t)!xr(t[r])&&!z7(r,n)&&(e[r]=t[r])}function XQ({transformTemplate:e},t){return A.useMemo(()=>{const n=H3();return W3(n,t,e),Object.assign({},n.vars,n.style)},[t])}function JQ(e,t){const n=e.style||{},r={};return W7(r,n,e),Object.assign(r,XQ(e,t)),r}function QQ(e,t){const n={},r=JQ(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const eee=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function G3(e){return typeof e!="string"||e.includes("-")?!1:!!(eee.indexOf(e)>-1||/[A-Z]/u.test(e))}const tee={offset:"stroke-dashoffset",array:"stroke-dasharray"},nee={offset:"strokeDashoffset",array:"strokeDasharray"};function ree(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?tee:nee;e[s.offset]=Dt.transform(-r);const o=Dt.transform(t),u=Dt.transform(n);e[s.array]=`${o} ${u}`}function dA(e,t,n){return typeof e=="string"?e:Dt.transform(t+n*e)}function iee(e,t,n){const r=dA(t,e.x,e.width),i=dA(n,e.y,e.height);return`${r} ${i}`}function Y3(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:s,pathLength:o,pathSpacing:u=1,pathOffset:l=0,...d},h,m){if(W3(e,d,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:b,dimensions:$}=e;g.transform&&($&&(b.transform=g.transform),delete g.transform),$&&(i!==void 0||s!==void 0||b.transform)&&(b.transformOrigin=iee($,i!==void 0?i:.5,s!==void 0?s:.5)),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),o!==void 0&&ree(g,o,u,l,!1)}const H7=()=>({...H3(),attrs:{}}),Z3=e=>typeof e=="string"&&e.toLowerCase()==="svg";function see(e,t,n,r){const i=A.useMemo(()=>{const s=H7();return Y3(s,t,Z3(r),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};W7(s,e.style,e),i.style={...s,...i.style}}return i}function oee(e=!1){return(n,r,i,{latestValues:s},o)=>{const l=(G3(n)?see:QQ)(r,s,o,n),d=TQ(r,typeof n=="string",e),h=n!==A.Fragment?{...d,...l,ref:i}:{},{children:m}=r,g=A.useMemo(()=>xr(m)?m.get():m,[m]);return A.createElement(n,{...h,children:g})}}function hA(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function X3(e,t,n,r){if(typeof t=="function"){const[i,s]=hA(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=hA(r);t=t(n!==void 0?n:e.custom,i,s)}return t}const jb=e=>Array.isArray(e),aee=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),uee=e=>jb(e)?e[e.length-1]||0:e;function hp(e){const t=xr(e)?e.get():e;return aee(t)?t.toValue():t}function lee({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,s){const o={latestValues:cee(r,i,s,e),renderState:t()};return n&&(o.onMount=u=>n({props:r,current:u,...o}),o.onUpdate=u=>n(u)),o}const G7=e=>(t,n)=>{const r=A.useContext(eg),i=A.useContext(O3),s=()=>lee(e,t,r,i);return n?s():Fd(s)};function cee(e,t,n,r){const i={},s=r(e,{});for(const g in s)i[g]=hp(s[g]);let{initial:o,animate:u}=e;const l=ng(e),d=V7(e);t&&d&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),u===void 0&&(u=t.animate));let h=n?n.initial===!1:!1;h=h||o===!1;const m=h?u:o;if(m&&typeof m!="boolean"&&!tg(m)){const g=Array.isArray(m)?m:[m];for(let b=0;b<g.length;b++){const $=X3(e,g[b]);if($){const{transitionEnd:w,transition:D,...S}=$;for(const C in S){let T=S[C];if(Array.isArray(T)){const O=h?T.length-1:0;T=T[O]}T!==null&&(i[C]=T)}for(const C in w)i[C]=w[C]}}}return i}function J3(e,t,n){var r;const{style:i}=e,s={};for(const o in i)(xr(i[o])||t.style&&xr(t.style[o])||z7(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(s[o]=i[o]);return s}const fee={useVisualState:G7({scrapeMotionValuesFromProps:J3,createRenderState:H3})};function Y7(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function Z7(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}const X7=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function J7(e,t,n,r){Z7(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(X7.has(i)?i:j3(i),t.attrs[i])}function Q7(e,t,n){const r=J3(e,t,n);for(const i in e)if(xr(e[i])||xr(t[i])){const s=Sc.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}const pA=["x","y","width","height","cx","cy","r"],dee={useVisualState:G7({scrapeMotionValuesFromProps:Q7,createRenderState:H7,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let s=!!e.drag;if(!s){for(const u in i)if(Nu.has(u)){s=!0;break}}if(!s)return;let o=!t;if(t)for(let u=0;u<pA.length;u++){const l=pA[u];e[l]!==t[l]&&(o=!0)}o&&mn.read(()=>{Y7(n,r),mn.render(()=>{Y3(r,i,Z3(n.tagName),e.transformTemplate),J7(n,r)})})}})};function hee(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...G3(r)?dee:fee,preloadedFeatures:e,useRender:oee(i),createVisualElement:t,Component:r};return LQ(o)}}function ud(e,t,n){const r=e.getProps();return X3(r,t,n!==void 0?n:r.custom,e)}const pee=B3(()=>window.ScrollTimeline!==void 0);let mee=class{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(pee()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,s)=>{i&&i(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}},gee=class extends mee{then(t,n){return Promise.all(this.animations).then(t).catch(n)}};function Q3(e,t){return e?e[t]||e.default||e:void 0}const Kb=2e4;function ek(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Kb;)t+=n,r=e.next(t);return t>=Kb?1/0:t}function e$(e){return typeof e=="function"}function mA(e,t){e.timeline=t,e.onfinish=null}const t$=e=>Array.isArray(e)&&typeof e[0]=="number",vee={linearEasing:void 0};function yee(e,t){const n=B3(e);return()=>{var r;return(r=vee[t])!==null&&r!==void 0?r:n()}}const Xp=yee(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),tk=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=e(oc(0,i-1,s))+", ";return`linear(${r.substring(0,r.length-2)})`};function nk(e){return!!(typeof e=="function"&&Xp()||!e||typeof e=="string"&&(e in Ub||Xp())||t$(e)||Array.isArray(e)&&e.every(nk))}const _f=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ub={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:_f([0,.65,.55,1]),circOut:_f([.55,0,1,.45]),backIn:_f([.31,.01,.66,-.59]),backOut:_f([.33,1.53,.69,.99])};function rk(e,t){if(e)return typeof e=="function"&&Xp()?tk(e,t):t$(e)?_f(e):Array.isArray(e)?e.map(n=>rk(n,t)||Ub.easeOut):Ub[e]}const ms={x:!1,y:!1};function ik(){return ms.x||ms.y}function bee(e,t,n){var r;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const s=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}function sk(e,t){const n=bee(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function gA(e){return!(e.pointerType==="touch"||ik())}function $ee(e,t,n={}){const[r,i,s]=sk(e,n),o=u=>{if(!gA(u))return;const{target:l}=u,d=t(l,u);if(typeof d!="function"||!l)return;const h=m=>{gA(m)&&(d(m),l.removeEventListener("pointerleave",h))};l.addEventListener("pointerleave",h,i)};return r.forEach(u=>{u.addEventListener("pointerenter",o,i)}),s}function Nf(e,t){const n=`${t}PointerCapture`;if(e.target instanceof Element&&n in e.target&&e.pointerId!==void 0)try{e.target[n](e.pointerId)}catch{}}const ok=(e,t)=>t?e===t?!0:ok(e,t.parentElement):!1,n$=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,xee=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function wee(e){return xee.has(e.tagName)||e.tabIndex!==-1}const Mf=new WeakSet;function vA(e){return t=>{t.key==="Enter"&&e(t)}}function d1(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Cee=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=vA(()=>{if(Mf.has(n))return;d1(n,"down");const i=vA(()=>{d1(n,"up")}),s=()=>d1(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function yA(e){return n$(e)&&!ik()}function See(e,t,n={}){const[r,i,s]=sk(e,n),o=u=>{const l=u.currentTarget;if(!l||!yA(u)||Mf.has(l))return;Mf.add(l),Nf(u,"set");const d=t(l,u),h=(b,$)=>{l.removeEventListener("pointerup",m),l.removeEventListener("pointercancel",g),Nf(b,"release"),!(!yA(b)||!Mf.has(l))&&(Mf.delete(l),typeof d=="function"&&d(b,{success:$}))},m=b=>{(b.isTrusted?Eee(b,l instanceof Element?l.getBoundingClientRect():{left:0,top:0,right:window.innerWidth,bottom:window.innerHeight}):!1)?h(b,!1):h(b,!(l instanceof Element)||ok(l,b.target))},g=b=>{h(b,!1)};l.addEventListener("pointerup",m,i),l.addEventListener("pointercancel",g,i),l.addEventListener("lostpointercapture",g,i)};return r.forEach(u=>{u=n.useGlobalTarget?window:u;let l=!1;u instanceof HTMLElement&&(l=!0,!wee(u)&&u.getAttribute("tabindex")===null&&(u.tabIndex=0)),u.addEventListener("pointerdown",o,i),l&&u.addEventListener("focus",d=>Cee(d,i),i)}),s}function Eee(e,t){return e.clientX<t.left||e.clientX>t.right||e.clientY<t.top||e.clientY>t.bottom}function Dee(e){return e==="x"||e==="y"?ms[e]?null:(ms[e]=!0,()=>{ms[e]=!1}):ms.x||ms.y?null:(ms.x=ms.y=!0,()=>{ms.x=ms.y=!1})}const ak=new Set(["width","height","top","left","right","bottom",...Sc]);let pp;function Aee(){pp=void 0}const ro={now:()=>(pp===void 0&&ro.set($r.isProcessing||wQ.useManualTiming?$r.timestamp:performance.now()),pp),set:e=>{pp=e,queueMicrotask(Aee)}};function r$(e,t){e.indexOf(t)===-1&&e.push(t)}function i$(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function Tee([...e],t,n){const r=t<0?e.length+t:t;if(r>=0&&r<e.length){const i=n<0?e.length+n:n,[s]=e.splice(t,1);e.splice(i,0,s)}return e}let s$=class{constructor(){this.subscriptions=[]}add(t){return r$(this.subscriptions,t),()=>i$(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s<i;s++){const o=this.subscriptions[s];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};function uk(e,t){return t?e*(1e3/t):0}const bA=30,Pee=e=>!isNaN(parseFloat(e)),jf={current:void 0};let _ee=class{constructor(t,n={}){this.version="12.4.10",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const s=ro.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ro.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Pee(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Qm(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new s$);const r=this.events[t].add(n);return t==="change"?()=>{r(),mn.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return jf.current&&jf.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=ro.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>bA)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,bA);return uk(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function uc(e,t){return new _ee(e,t)}function Mee(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,uc(n))}function Ree(e,t){const n=ud(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const u=uee(s[o]);Mee(e,o,u)}}function Fee(e){return!!(xr(e)&&e.add)}function zb(e,t){const n=e.getValue("willChange");if(Fee(n))return n.add(t)}function lk(e){return e.props[N7]}const ck=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,kee=1e-7,Oee=12;function Iee(e,t,n,r,i){let s,o,u=0;do o=t+(n-t)/2,s=ck(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>kee&&++u<Oee);return o}function Od(e,t,n,r){if(e===t&&n===r)return ui;const i=s=>Iee(s,0,1,e,n);return s=>s===0||s===1?s:ck(i(s),t,r)}const fk=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,dk=e=>t=>1-e(1-t),hk=Od(.33,1.53,.69,.99),o$=dk(hk),pk=fk(o$),mk=e=>(e*=2)<1?.5*o$(e):.5*(2-Math.pow(2,-10*(e-1))),a$=e=>1-Math.sin(Math.acos(e)),gk=dk(a$),vk=fk(a$),yk=e=>/^0[^.\s]+$/u.test(e);function Lee(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||yk(e):!0}const Kf=e=>Math.round(e*1e5)/1e5,u$=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Bee(e){return e==null}const Vee=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,l$=(e,t)=>n=>!!(typeof n=="string"&&Vee.test(n)&&n.startsWith(e)||t&&!Bee(n)&&Object.prototype.hasOwnProperty.call(n,t)),bk=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,u]=r.match(u$);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:u!==void 0?parseFloat(u):1}},Nee=e=>Ho(0,255,e),h1={...Ec,transform:e=>Math.round(Nee(e))},vu={test:l$("rgb","red"),parse:bk("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+h1.transform(e)+", "+h1.transform(t)+", "+h1.transform(n)+", "+Kf(ad.transform(r))+")"};function jee(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const qb={test:l$("#"),parse:jee,transform:vu.transform},Ml={test:l$("hsl","hue"),parse:bk("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+no.transform(Kf(t))+", "+no.transform(Kf(n))+", "+Kf(ad.transform(r))+")"},Ar={test:e=>vu.test(e)||qb.test(e)||Ml.test(e),parse:e=>vu.test(e)?vu.parse(e):Ml.test(e)?Ml.parse(e):qb.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?vu.transform(e):Ml.transform(e)},Kee=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Uee(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(u$))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Kee))===null||n===void 0?void 0:n.length)||0)>0}const $k="number",xk="color",zee="var",qee="var(",$A="${}",Wee=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ld(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const u=t.replace(Wee,l=>(Ar.test(l)?(r.color.push(s),i.push(xk),n.push(Ar.parse(l))):l.startsWith(qee)?(r.var.push(s),i.push(zee),n.push(l)):(r.number.push(s),i.push($k),n.push(parseFloat(l))),++s,$A)).split($A);return{values:n,split:u,indexes:r,types:i}}function wk(e){return ld(e).values}function Ck(e){const{split:t,types:n}=ld(e),r=t.length;return i=>{let s="";for(let o=0;o<r;o++)if(s+=t[o],i[o]!==void 0){const u=n[o];u===$k?s+=Kf(i[o]):u===xk?s+=Ar.transform(i[o]):s+=i[o]}return s}}const Hee=e=>typeof e=="number"?0:e;function Gee(e){const t=wk(e);return Ck(e)(t.map(Hee))}const Aa={test:Uee,parse:wk,createTransformer:Ck,getAnimatableNone:Gee},Yee=new Set(["brightness","contrast","saturate","opacity"]);function Zee(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(u$)||[];if(!r)return e;const i=n.replace(r,"");let s=Yee.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const Xee=/\b([a-z-]*)\(.*?\)/gu,Wb={...Aa,getAnimatableNone:e=>{const t=e.match(Xee);return t?t.map(Zee).join(" "):e}},Jee={...q3,color:Ar,backgroundColor:Ar,outlineColor:Ar,fill:Ar,stroke:Ar,borderColor:Ar,borderTopColor:Ar,borderRightColor:Ar,borderBottomColor:Ar,borderLeftColor:Ar,filter:Wb,WebkitFilter:Wb},c$=e=>Jee[e];function Sk(e,t){let n=c$(e);return n!==Wb&&(n=Aa),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Qee=new Set(["auto","none","0"]);function ete(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!Qee.has(s)&&ld(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=Sk(n,i)}const xA=e=>e===Ec||e===Dt,wA=(e,t)=>parseFloat(e.split(", ")[t]),CA=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return wA(i[1],t);{const s=r.match(/^matrix\((.+)\)$/u);return s?wA(s[1],e):0}},tte=new Set(["x","y","z"]),nte=Sc.filter(e=>!tte.has(e));function rte(e){const t=[];return nte.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const lc={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:CA(4,13),y:CA(5,14)};lc.translateX=lc.x;lc.translateY=lc.y;const Cu=new Set;let Hb=!1,Gb=!1;function Ek(){if(Gb){const e=Array.from(Cu).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=rte(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var u;(u=r.getValue(s))===null||u===void 0||u.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Gb=!1,Hb=!1,Cu.forEach(e=>e.complete()),Cu.clear()}function Dk(){Cu.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Gb=!0)})}function ite(){Dk(),Ek()}let f$=class{constructor(t,n,r,i,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Cu.add(this),Hb||(Hb=!0,mn.read(Dk),mn.resolveKeyframes(Ek))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let s=0;s<t.length;s++)if(t[s]===null)if(s===0){const o=i==null?void 0:i.get(),u=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const l=r.readValue(n,u);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=u),i&&o===void 0&&i.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Cu.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Cu.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};const Ak=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),ste=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ote(e){const t=ste.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const ate=4;function Tk(e,t,n=1){io(n<=ate,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=ote(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return Ak(o)?parseFloat(o):o}return z3(i)?Tk(i,t,n+1):i}const Pk=e=>t=>t.test(e),ute={test:e=>e==="auto",parse:e=>e},_k=[Ec,Dt,no,pa,qQ,zQ,ute],SA=e=>_k.find(Pk(e));let Mk=class extends f${constructor(t,n,r,i,s){super(t,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let d=t[l];if(typeof d=="string"&&(d=d.trim(),z3(d))){const h=Tk(d,n.current);h!==void 0&&(t[l]=h),l===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!ak.has(r)||t.length!==2)return;const[i,s]=t,o=SA(i),u=SA(s);if(o!==u)if(xA(o)&&xA(u))for(let l=0;l<t.length;l++){const d=t[l];typeof d=="string"&&(t[l]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)Lee(t[i])&&r.push(i);r.length&&ete(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=lc[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const s=n.getValue(r);s&&s.jump(this.measuredOrigin,!1);const o=i.length-1,u=i[o];i[o]=lc[r](n.measureViewportBox(),window.getComputedStyle(n.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,d])=>{n.getValue(l).set(d)}),this.resolveNoneKeyframes()}};const EA=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Aa.test(e)||e==="0")&&!e.startsWith("url("));function lte(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function cte(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],o=EA(i,t),u=EA(s,t);return Cc(o===u,`You are trying to animate ${t} from "${i}" to "${s}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${s} via the \`style\` property.`),!o||!u?!1:lte(e)||(n==="spring"||e$(n))&&r}const fte=e=>e!==null;function rg(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(fte),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return!s||r===void 0?i[s]:r}const dte=40;let Rk=class{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=ro.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,...u},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>dte?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&ite(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=ro.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:s,delay:o,onComplete:u,onUpdate:l,isGenerator:d}=this.options;if(!d&&!cte(t,r,i,s))if(o)this.options.duration=0;else{l&&l(rg(t,this.options,n)),u&&u(),this.resolveFinishedPromise();return}const h=this.initPlayback(t,n);h!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...h},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}};const Pn=(e,t,n)=>e+(t-e)*n;function p1(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function hte({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const u=n<.5?n*(1+t):n+t-n*t,l=2*n-u;i=p1(l,u,e+1/3),s=p1(l,u,e),o=p1(l,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function Jp(e,t){return n=>n>0?t:e}const m1=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},pte=[qb,vu,Ml],mte=e=>pte.find(t=>t.test(e));function DA(e){const t=mte(e);if(Cc(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Ml&&(n=hte(n)),n}const AA=(e,t)=>{const n=DA(e),r=DA(t);if(!n||!r)return Jp(e,t);const i={...n};return s=>(i.red=m1(n.red,r.red,s),i.green=m1(n.green,r.green,s),i.blue=m1(n.blue,r.blue,s),i.alpha=Pn(n.alpha,r.alpha,s),vu.transform(i))},gte=(e,t)=>n=>t(e(n)),Id=(...e)=>e.reduce(gte),Yb=new Set(["none","hidden"]);function vte(e,t){return Yb.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function yte(e,t){return n=>Pn(e,t,n)}function d$(e){return typeof e=="number"?yte:typeof e=="string"?z3(e)?Jp:Ar.test(e)?AA:xte:Array.isArray(e)?Fk:typeof e=="object"?Ar.test(e)?AA:bte:Jp}function Fk(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>d$(s)(s,t[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function bte(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=d$(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function $te(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const o=t.types[s],u=e.indexes[o][i[o]],l=(n=e.values[u])!==null&&n!==void 0?n:0;r[s]=l,i[o]++}return r}const xte=(e,t)=>{const n=Aa.createTransformer(t),r=ld(e),i=ld(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Yb.has(e)&&!i.values.length||Yb.has(t)&&!r.values.length?vte(e,t):Id(Fk($te(r,i),i.values),n):(Cc(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Jp(e,t))};function kk(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Pn(e,t,n):d$(e)(e,t)}const wte=5;function Ok(e,t,n){const r=Math.max(t-wte,0);return uk(n-e(r),t-r)}const Mn={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},TA=.001;function Cte({duration:e=Mn.duration,bounce:t=Mn.bounce,velocity:n=Mn.velocity,mass:r=Mn.mass}){let i,s;Cc(e<=to(Mn.maxDuration),"Spring duration must be 10 seconds or less");let o=1-t;o=Ho(Mn.minDamping,Mn.maxDamping,o),e=Ho(Mn.minDuration,Mn.maxDuration,jo(e)),o<1?(i=d=>{const h=d*o,m=h*e,g=h-n,b=Zb(d,o),$=Math.exp(-m);return TA-g/b*$},s=d=>{const m=d*o*e,g=m*n+n,b=Math.pow(o,2)*Math.pow(d,2)*e,$=Math.exp(-m),w=Zb(Math.pow(d,2),o);return(-i(d)+TA>0?-1:1)*((g-b)*$)/w}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-.001+h*m},s=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const u=5/e,l=Ete(i,s,u);if(e=to(e),isNaN(l))return{stiffness:Mn.stiffness,damping:Mn.damping,duration:e};{const d=Math.pow(l,2)*r;return{stiffness:d,damping:o*2*Math.sqrt(r*d),duration:e}}}const Ste=12;function Ete(e,t,n){let r=n;for(let i=1;i<Ste;i++)r=r-e(r)/t(r);return r}function Zb(e,t){return e*Math.sqrt(1-t*t)}const Dte=["duration","bounce"],Ate=["stiffness","damping","mass"];function PA(e,t){return t.some(n=>e[n]!==void 0)}function Tte(e){let t={velocity:Mn.velocity,stiffness:Mn.stiffness,damping:Mn.damping,mass:Mn.mass,isResolvedFromDuration:!1,...e};if(!PA(e,Ate)&&PA(e,Dte))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Ho(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Mn.mass,stiffness:i,damping:s}}else{const n=Cte(e);t={...t,...n,mass:Mn.mass},t.isResolvedFromDuration=!0}return t}function Ik(e=Mn.visualDuration,t=Mn.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],u={done:!1,value:s},{stiffness:l,damping:d,mass:h,duration:m,velocity:g,isResolvedFromDuration:b}=Tte({...n,velocity:-jo(n.velocity||0)}),$=g||0,w=d/(2*Math.sqrt(l*h)),D=o-s,S=jo(Math.sqrt(l/h)),C=Math.abs(D)<5;r||(r=C?Mn.restSpeed.granular:Mn.restSpeed.default),i||(i=C?Mn.restDelta.granular:Mn.restDelta.default);let T;if(w<1){const M=Zb(S,w);T=k=>{const N=Math.exp(-w*S*k);return o-N*(($+w*S*D)/M*Math.sin(M*k)+D*Math.cos(M*k))}}else if(w===1)T=M=>o-Math.exp(-S*M)*(D+($+S*D)*M);else{const M=S*Math.sqrt(w*w-1);T=k=>{const N=Math.exp(-w*S*k),F=Math.min(M*k,300);return o-N*(($+w*S*D)*Math.sinh(F)+M*D*Math.cosh(F))/M}}const O={calculatedDuration:b&&m||null,next:M=>{const k=T(M);if(b)u.done=M>=m;else{let N=0;w<1&&(N=M===0?to($):Ok(T,M,k));const F=Math.abs(N)<=r,ae=Math.abs(o-k)<=i;u.done=F&&ae}return u.value=u.done?o:k,u},toString:()=>{const M=Math.min(ek(O),Kb),k=tk(N=>O.next(M*N).value,M,30);return M+"ms "+k}};return O}function _A({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:u,max:l,restDelta:d=.5,restSpeed:h}){const m=e[0],g={done:!1,value:m},b=F=>u!==void 0&&F<u||l!==void 0&&F>l,$=F=>u===void 0?l:l===void 0||Math.abs(u-F)<Math.abs(l-F)?u:l;let w=n*t;const D=m+w,S=o===void 0?D:o(D);S!==D&&(w=S-m);const C=F=>-w*Math.exp(-F/r),T=F=>S+C(F),O=F=>{const ae=C(F),oe=T(F);g.done=Math.abs(ae)<=d,g.value=g.done?S:oe};let M,k;const N=F=>{b(g.value)&&(M=F,k=Ik({keyframes:[g.value,$(g.value)],velocity:Ok(T,F,g.value),damping:i,stiffness:s,restDelta:d,restSpeed:h}))};return N(0),{calculatedDuration:null,next:F=>{let ae=!1;return!k&&M===void 0&&(ae=!0,O(F),N(F)),M!==void 0&&F>=M?k.next(F-M):(!ae&&O(F),g)}}}const Pte=Od(.42,0,1,1),_te=Od(0,0,.58,1),Lk=Od(.42,0,.58,1),Mte=e=>Array.isArray(e)&&typeof e[0]!="number",MA={linear:ui,easeIn:Pte,easeInOut:Lk,easeOut:_te,circIn:a$,circInOut:vk,circOut:gk,backIn:o$,backInOut:pk,backOut:hk,anticipate:mk},RA=e=>{if(t$(e)){io(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Od(t,n,r,i)}else if(typeof e=="string")return io(MA[e]!==void 0,`Invalid easing type '${e}'`),MA[e];return e};function Rte(e,t,n){const r=[],i=n||kk,s=e.length-1;for(let o=0;o<s;o++){let u=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||ui:t;u=Id(l,u)}r.push(u)}return r}function Bk(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(io(s===t.length,"Both input and output ranges must be the same length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=Rte(t,r,i),l=u.length,d=h=>{if(o&&h<e[0])return t[0];let m=0;if(l>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const g=oc(e[m],e[m+1],h);return u[m](g)};return n?h=>d(Ho(e[0],e[s-1],h)):d}function Fte(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=oc(0,t,r);e.push(Pn(n,1,i))}}function kte(e){const t=[0];return Fte(t,e.length-1),t}function Ote(e,t){return e.map(n=>n*t)}function Ite(e,t){return e.map(()=>t||Lk).splice(0,e.length-1)}function Uf({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Mte(r)?r.map(RA):RA(r),s={done:!1,value:t[0]},o=Ote(n&&n.length===t.length?n:kte(t),e),u=Bk(o,t,{ease:Array.isArray(i)?i:Ite(t,i)});return{calculatedDuration:e,next:l=>(s.value=u(l),s.done=l>=e,s)}}const Lte=e=>{const t=({timestamp:n})=>e(n);return{start:()=>mn.update(t,!0),stop:()=>Wo(t),now:()=>$r.isProcessing?$r.timestamp:ro.now()}},Bte={decay:_A,inertia:_A,tween:Uf,keyframes:Uf,spring:Ik},Vte=e=>e/100;let h$=class extends Rk{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:i,keyframes:s}=this.options,o=(i==null?void 0:i.KeyframeResolver)||f$,u=(l,d)=>this.onKeyframesResolved(l,d);this.resolver=new o(s,u,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=this.options,u=e$(n)?n:Bte[n]||Uf;let l,d;process.env.NODE_ENV!=="production"&&u!==Uf&&io(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),u!==Uf&&typeof t[0]!="number"&&(l=Id(Vte,kk(t[0],t[1])),t=[0,100]);const h=u({...this.options,keyframes:t});s==="mirror"&&(d=u({...this.options,keyframes:[...t].reverse(),velocity:-o})),h.calculatedDuration===null&&(h.calculatedDuration=ek(h));const{calculatedDuration:m}=h,g=m+i,b=g*(r+1)-i;return{generator:h,mirroredGenerator:d,mapPercentToKeyframes:l,calculatedDuration:m,resolvedDuration:g,totalDuration:b}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:F}=this.options;return{done:!0,value:F[F.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:u,keyframes:l,calculatedDuration:d,totalDuration:h,resolvedDuration:m}=r;if(this.startTime===null)return s.next(0);const{delay:g,repeat:b,repeatType:$,repeatDelay:w,onUpdate:D}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const S=this.currentTime-g*(this.speed>=0?1:-1),C=this.speed>=0?S<0:S>h;this.currentTime=Math.max(S,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let T=this.currentTime,O=s;if(b){const F=Math.min(this.currentTime,h)/m;let ae=Math.floor(F),oe=F%1;!oe&&F>=1&&(oe=1),oe===1&&ae--,ae=Math.min(ae,b+1),!!(ae%2)&&($==="reverse"?(oe=1-oe,w&&(oe-=w/m)):$==="mirror"&&(O=o)),T=Ho(0,1,oe)*m}const M=C?{done:!1,value:l[0]}:O.next(T);u&&(M.value=u(M.value));let{done:k}=M;!C&&d!==null&&(k=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const N=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return N&&i!==void 0&&(M.value=rg(l,this.options,i)),D&&D(M.value),N&&this.finish(),M}get duration(){const{resolved:t}=this;return t?jo(t.calculatedDuration):0}get time(){return jo(this.currentTime)}set time(t){t=to(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=jo(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Lte,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}};const Nte=new Set(["opacity","clipPath","filter","transform"]);function jte(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:u="easeInOut",times:l}={}){const d={[t]:n};l&&(d.offset=l);const h=rk(u,i);return Array.isArray(h)&&(d.easing=h),e.animate(d,{delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}const Kte=B3(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Qp=10,Ute=2e4;function zte(e){return e$(e.type)||e.type==="spring"||!nk(e.ease)}function qte(e,t){const n=new h$({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let s=0;for(;!r.done&&s<Ute;)r=n.sample(s),i.push(r.value),s+=Qp;return{times:void 0,keyframes:i,duration:s-Qp,ease:"linear"}}const Vk={anticipate:mk,backInOut:pk,circInOut:vk};function Wte(e){return e in Vk}let FA=class extends Rk{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:s}=this.options;this.resolver=new Mk(s,(o,u)=>this.onKeyframesResolved(o,u),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:s,type:o,motionValue:u,name:l,startTime:d}=this.options;if(!u.owner||!u.owner.current)return!1;if(typeof s=="string"&&Xp()&&Wte(s)&&(s=Vk[s]),zte(this.options)){const{onComplete:m,onUpdate:g,motionValue:b,element:$,...w}=this.options,D=qte(t,w);t=D.keyframes,t.length===1&&(t[1]=t[0]),r=D.duration,i=D.times,s=D.ease,o="keyframes"}const h=jte(u.owner.current,l,t,{...this.options,duration:r,times:i,ease:s});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(mA(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;u.set(rg(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:i,type:o,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return jo(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return jo(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=to(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return ui;const{animation:r}=n;mA(r,t)}return ui}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:s,ease:o,times:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:h,onComplete:m,element:g,...b}=this.options,$=new h$({...b,keyframes:r,duration:i,type:s,ease:o,times:u,isGenerator:!0}),w=to(this.time);d.setWithVelocity($.sample(w-Qp).value,$.sample(w).value,Qp)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:s,damping:o,type:u}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:d}=n.owner.getProps();return Kte()&&r&&Nte.has(r)&&!l&&!d&&!i&&s!=="mirror"&&o!==0&&u!=="inertia"}};const Hte={type:"spring",stiffness:500,damping:25,restSpeed:10},Gte=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Yte={type:"keyframes",duration:.8},Zte={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Xte=(e,{keyframes:t})=>t.length>2?Yte:Nu.has(e)?e.startsWith("scale")?Gte(t[1]):Hte:Zte;function Jte({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:u,from:l,elapsed:d,...h}){return!!Object.keys(h).length}const p$=(e,t,n,r={},i,s)=>o=>{const u=Q3(r,e)||{},l=u.delay||r.delay||0;let{elapsed:d=0}=r;d=d-to(l);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-d,onUpdate:g=>{t.set(g),u.onUpdate&&u.onUpdate(g)},onComplete:()=>{o(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:s?void 0:i};Jte(u)||(h={...h,...Xte(e,h)}),h.duration&&(h.duration=to(h.duration)),h.repeatDelay&&(h.repeatDelay=to(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(m=!0)),m&&!s&&t.get()!==void 0){const g=rg(h.keyframes,u);if(g!==void 0)return mn.update(()=>{h.onUpdate(g),h.onComplete()}),new gee([])}return!s&&FA.supports(h)?new FA(h):new h$(h)};function Qte({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Nk(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var s;let{transition:o=e.getDefaultTransition(),transitionEnd:u,...l}=t;r&&(o=r);const d=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const m in l){const g=e.getValue(m,(s=e.latestValues[m])!==null&&s!==void 0?s:null),b=l[m];if(b===void 0||h&&Qte(h,m))continue;const $={delay:n,...Q3(o||{},m)};let w=!1;if(window.MotionHandoffAnimation){const S=lk(e);if(S){const C=window.MotionHandoffAnimation(S,m,mn);C!==null&&($.startTime=C,w=!0)}}zb(e,m),g.start(p$(m,g,b,e.shouldReduceMotion&&ak.has(m)?{type:!1}:$,e,w));const D=g.animation;D&&d.push(D)}return u&&Promise.all(d).then(()=>{mn.update(()=>{u&&Ree(e,u)})}),d}function Xb(e,t,n={}){var r;const i=ud(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const o=i?()=>Promise.all(Nk(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=s;return ene(e,t,h+d,m,g,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[d,h]=l==="beforeChildren"?[o,u]:[u,o];return d().then(()=>h())}else return Promise.all([o(),u(n.delay)])}function ene(e,t,n=0,r=0,i=1,s){const o=[],u=(e.variantChildren.size-1)*r,l=i===1?(d=0)=>d*r:(d=0)=>u-d*r;return Array.from(e.variantChildren).sort(tne).forEach((d,h)=>{d.notify("AnimationStart",t),o.push(Xb(d,t,{...s,delay:n+l(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(o)}function tne(e,t){return e.sortNodePosition(t)}function nne(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>Xb(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=Xb(e,t,n);else{const i=typeof t=="function"?ud(e,t,n.custom):t;r=Promise.all(Nk(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function jk(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const rne=N3.length;function Kk(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Kk(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<rne;n++){const r=N3[n],i=e.props[r];(sd(i)||i===!1)&&(t[r]=i)}return t}const ine=[...V3].reverse(),sne=V3.length;function one(e){return t=>Promise.all(t.map(({animation:n,options:r})=>nne(e,n,r)))}function ane(e){let t=one(e),n=kA(),r=!0;const i=l=>(d,h)=>{var m;const g=ud(e,h,l==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(g){const{transition:b,transitionEnd:$,...w}=g;d={...d,...w,...$}}return d};function s(l){t=l(e)}function o(l){const{props:d}=e,h=Kk(e.parent)||{},m=[],g=new Set;let b={},$=1/0;for(let D=0;D<sne;D++){const S=ine[D],C=n[S],T=d[S]!==void 0?d[S]:h[S],O=sd(T),M=S===l?C.isActive:null;M===!1&&($=D);let k=T===h[S]&&T!==d[S]&&O;if(k&&r&&e.manuallyAnimateOnMount&&(k=!1),C.protectedKeys={...b},!C.isActive&&M===null||!T&&!C.prevProp||tg(T)||typeof T=="boolean")continue;const N=une(C.prevProp,T);let F=N||S===l&&C.isActive&&!k&&O||D>$&&O,ae=!1;const oe=Array.isArray(T)?T:[T];let W=oe.reduce(i(S),{});M===!1&&(W={});const{prevResolvedValues:Ce={}}=C,ne={...Ce,...W},se=j=>{F=!0,g.has(j)&&(ae=!0,g.delete(j)),C.needsAnimating[j]=!0;const V=e.getValue(j);V&&(V.liveStyle=!1)};for(const j in ne){const V=W[j],ge=Ce[j];if(b.hasOwnProperty(j))continue;let U=!1;jb(V)&&jb(ge)?U=!jk(V,ge):U=V!==ge,U?V!=null?se(j):g.add(j):V!==void 0&&g.has(j)?se(j):C.protectedKeys[j]=!0}C.prevProp=T,C.prevResolvedValues=W,C.isActive&&(b={...b,...W}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(k&&N)||ae)&&m.push(...oe.map(j=>({animation:j,options:{type:S}})))}if(g.size){const D={};if(typeof d.initial!="boolean"){const S=ud(e,Array.isArray(d.initial)?d.initial[0]:d.initial);S&&S.transition&&(D.transition=S.transition)}g.forEach(S=>{const C=e.getBaseTarget(S),T=e.getValue(S);T&&(T.liveStyle=!0),D[S]=C??null}),m.push({animation:D})}let w=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(w=!1),r=!1,w?t(m):Promise.resolve()}function u(l,d){var h;if(n[l].isActive===d)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(g=>{var b;return(b=g.animationState)===null||b===void 0?void 0:b.setActive(l,d)}),n[l].isActive=d;const m=o(l);for(const g in n)n[g].protectedKeys={};return m}return{animateChanges:o,setActive:u,setAnimateFunction:s,getState:()=>n,reset:()=>{n=kA(),r=!0}}}function une(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!jk(t,e):!1}function ou(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function kA(){return{animate:ou(!0),whileInView:ou(),whileHover:ou(),whileTap:ou(),whileDrag:ou(),whileFocus:ou(),exit:ou()}}let Fa=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},lne=class extends Fa{constructor(t){super(t),t.animationState||(t.animationState=ane(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();tg(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}},cne=0,fne=class extends Fa{constructor(){super(...arguments),this.id=cne++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}};const dne={animation:{Feature:lne},exit:{Feature:fne}};function cd(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Ld(e){return{point:{x:e.pageX,y:e.pageY}}}const hne=e=>t=>n$(t)&&e(t,Ld(t));function Rl(e,t,n,r){return cd(e,t,hne(n),r)}function Uk({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function pne({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function mne(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const zk=1e-4,gne=1-zk,vne=1+zk,qk=.01,yne=0-qk,bne=0+qk;function Ur(e){return e.max-e.min}function $ne(e,t,n){return Math.abs(e-t)<=n}function OA(e,t,n,r=.5){e.origin=r,e.originPoint=Pn(t.min,t.max,e.origin),e.scale=Ur(n)/Ur(t),e.translate=Pn(n.min,n.max,e.origin)-e.originPoint,(e.scale>=gne&&e.scale<=vne||isNaN(e.scale))&&(e.scale=1),(e.translate>=yne&&e.translate<=bne||isNaN(e.translate))&&(e.translate=0)}function zf(e,t,n,r){OA(e.x,t.x,n.x,r?r.originX:void 0),OA(e.y,t.y,n.y,r?r.originY:void 0)}function IA(e,t,n){e.min=n.min+t.min,e.max=e.min+Ur(t)}function xne(e,t,n){IA(e.x,t.x,n.x),IA(e.y,t.y,n.y)}function LA(e,t,n){e.min=t.min-n.min,e.max=e.min+Ur(t)}function qf(e,t,n){LA(e.x,t.x,n.x),LA(e.y,t.y,n.y)}const BA=()=>({translate:0,scale:1,origin:0,originPoint:0}),Fl=()=>({x:BA(),y:BA()}),VA=()=>({min:0,max:0}),Wn=()=>({x:VA(),y:VA()});function Vi(e){return[e("x"),e("y")]}function g1(e){return e===void 0||e===1}function Jb({scale:e,scaleX:t,scaleY:n}){return!g1(e)||!g1(t)||!g1(n)}function uu(e){return Jb(e)||Wk(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Wk(e){return NA(e.x)||NA(e.y)}function NA(e){return e&&e!=="0%"}function em(e,t,n){const r=e-n,i=t*r;return n+i}function jA(e,t,n,r,i){return i!==void 0&&(e=em(e,i,r)),em(e,n,r)+t}function Qb(e,t=0,n=1,r,i){e.min=jA(e.min,t,n,r,i),e.max=jA(e.max,t,n,r,i)}function Hk(e,{x:t,y:n}){Qb(e.x,t.translate,t.scale,t.originPoint),Qb(e.y,n.translate,n.scale,n.originPoint)}const KA=.999999999999,UA=1.0000000000001;function wne(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let u=0;u<i;u++){s=n[u],o=s.projectionDelta;const{visualElement:l}=s.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Ol(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Hk(e,o)),r&&uu(s.latestValues)&&Ol(e,s.latestValues))}t.x<UA&&t.x>KA&&(t.x=1),t.y<UA&&t.y>KA&&(t.y=1)}function kl(e,t){e.min=e.min+t,e.max=e.max+t}function zA(e,t,n,r,i=.5){const s=Pn(e.min,e.max,i);Qb(e,t,n,s,r)}function Ol(e,t){zA(e.x,t.x,t.scaleX,t.scale,t.originX),zA(e.y,t.y,t.scaleY,t.scale,t.originY)}function Gk(e,t){return Uk(mne(e.getBoundingClientRect(),t))}function Cne(e,t,n){const r=Gk(e,n),{scroll:i}=t;return i&&(kl(r.x,i.offset.x),kl(r.y,i.offset.y)),r}const qA=(e,t)=>Math.abs(e-t);function Sne(e,t){const n=qA(e.x,t.x),r=qA(e.y,t.y);return Math.sqrt(n**2+r**2)}class Yk{constructor(t,n,{transformPagePoint:r,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=y1(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=Sne(h.offset,{x:0,y:0})>=3;if(!m&&!g)return;const{point:b}=h,{timestamp:$}=$r;this.history.push({...b,timestamp:$});const{onStart:w,onMove:D}=this.handlers;m||(w&&w(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),D&&D(this.lastMoveEvent,h)},this.handlePointerMove=(h,m)=>{if(this.index=HA(h.currentTarget),h.target instanceof Element&&h.target.hasPointerCapture&&h.pointerId!==void 0)try{if(!h.target.hasPointerCapture(h.pointerId))return}catch{}this.lastMoveEvent=h,this.lastMoveEventInfo=v1(m,this.transformPagePoint),mn.update(this.updatePoint,!0)},this.handlePointerUp=(h,m)=>{Nf(h,"release"),this.end();const{onEnd:g,onSessionEnd:b,resumeAnimation:$}=this.handlers;if(this.dragSnapToOrigin&&$&&$(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=y1(h.type==="pointercancel"||h.type==="lostpointercapture"?this.lastMoveEventInfo:v1(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(h,w),b&&b(h,w)},!n$(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r;const s=Ld(t),o=v1(s,this.transformPagePoint),{point:u}=o,{timestamp:l}=$r;this.history=[{...u,timestamp:l}];const{onSessionStart:d}=n;d&&d(t,y1(o,this.history)),Nf(t,"set"),this.removeListeners=Id(Rl(t.currentTarget,"pointermove",this.handlePointerMove),Rl(t.currentTarget,"pointerup",this.handlePointerUp),Rl(t.currentTarget,"pointercancel",this.handlePointerUp),Rl(t.currentTarget,"lostpointercapture",(h,m)=>{HA(h.currentTarget)!==this.index?Nf(h,"set"):this.handlePointerUp(h,m)}))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Wo(this.updatePoint)}}function v1(e,t){return t?{point:t(e.point)}:e}function WA(e,t){return{x:e.x-t.x,y:e.y-t.y}}function y1({point:e},t){return{point:e,delta:WA(e,Zk(t)),offset:WA(e,Ene(t)),velocity:Dne(t,.1)}}function Ene(e){return e[0]}function Zk(e){return e[e.length-1]}function Dne(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Zk(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>to(t)));)n--;if(!r)return{x:0,y:0};const s=jo(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function HA(e){return e.parentNode?Array.from(e.parentNode.children).indexOf(e):-1}function Ane(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Pn(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Pn(n,e,r.max):Math.min(e,n)),e}function GA(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Tne(e,{top:t,left:n,bottom:r,right:i}){return{x:GA(e.x,n,i),y:GA(e.y,t,r)}}function YA(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Pne(e,t){return{x:YA(e.x,t.x),y:YA(e.y,t.y)}}function _ne(e,t){let n=.5;const r=Ur(e),i=Ur(t);return i>r?n=oc(t.min,t.max-r,e.min):r>i&&(n=oc(e.min,e.max-i,t.min)),Ho(0,1,n)}function Mne(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const e4=.35;function Rne(e=e4){return e===!1?e=0:e===!0&&(e=e4),{x:ZA(e,"left","right"),y:ZA(e,"top","bottom")}}function ZA(e,t,n){return{min:XA(e,t),max:XA(e,n)}}function XA(e,t){return typeof e=="number"?e:e[t]||0}const Fne=new WeakMap;class kne{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Wn(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=h=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ld(h).point)},s=(h,m)=>{const{drag:g,dragPropagation:b,onDragStart:$}=this.getProps();if(g&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Dee(g),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Vi(D=>{let S=this.getAxisMotionValue(D).get()||0;if(no.test(S)){const{projection:C}=this.visualElement;if(C&&C.layout){const T=C.layout.layoutBox[D];T&&(S=Ur(T)*(parseFloat(S)/100))}}this.originPoint[D]=S}),$&&mn.postRender(()=>$(h,m)),zb(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},o=(h,m)=>{const{dragPropagation:g,dragDirectionLock:b,onDirectionLock:$,onDrag:w}=this.getProps();if(!g&&!this.openDragLock)return;const{offset:D}=m;if(b&&this.currentDirection===null){this.currentDirection=One(D),this.currentDirection!==null&&$&&$(this.currentDirection);return}this.updateAxis("x",m.point,D),this.updateAxis("y",m.point,D),this.visualElement.render(),w&&w(h,m)},u=(h,m)=>this.stop(h,m),l=()=>Vi(h=>{var m;return this.getAnimationState(h)==="paused"&&((m=this.getAxisMotionValue(h).animation)===null||m===void 0?void 0:m.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new Yk(t,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:u,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&mn.postRender(()=>s(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Kh(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=Ane(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,s=this.constraints;n&&_l(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=Tne(i.layoutBox,n):this.constraints=!1,this.elastic=Rne(r),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Vi(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Mne(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!_l(t))return!1;const r=t.current;io(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=Cne(r,i.root,this.visualElement.getTransformPagePoint());let o=Pne(i.layout.layoutBox,s);if(n){const u=n(pne(o));this.hasMutatedConstraints=!!u,u&&(o=Uk(u))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:u}=this.getProps(),l=this.constraints||{},d=Vi(h=>{if(!Kh(h,n,this.currentDirection))return;let m=l&&l[h]||{};o&&(m={min:0,max:0});const g=i?200:1e6,b=i?40:1e7,$={type:"inertia",velocity:r?t[h]:0,bounceStiffness:g,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...s,...m};return this.startAxisValueAnimation(h,$)});return Promise.all(d).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return zb(this.visualElement,t),r.start(p$(t,r,0,n,this.visualElement,!1))}stopAnimation(){Vi(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Vi(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Vi(n=>{const{drag:r}=this.getProps();if(!Kh(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:u}=i.layout.layoutBox[n];s.set(t[n]-Pn(o,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!_l(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Vi(o=>{const u=this.getAxisMotionValue(o);if(u&&this.constraints!==!1){const l=u.get();i[o]=_ne({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Vi(o=>{if(!Kh(o,t,null))return;const u=this.getAxisMotionValue(o),{min:l,max:d}=this.constraints[o];u.set(Pn(l,d,i[o]))})}addListeners(){if(!this.visualElement.current)return;Fne.set(this.visualElement,this);const t=this.visualElement.current,n=Rl(t,"pointerdown",l=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();_l(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),mn.read(r);const o=cd(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:d})=>{this.isDragging&&d&&(Vi(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=l[h].translate,m.set(m.get()+l[h].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=e4,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:u}}}function Kh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function One(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Ine extends Fa{constructor(t){super(t),this.removeGroupControls=ui,this.removeListeners=ui,this.controls=new kne(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ui}unmount(){this.removeGroupControls(),this.removeListeners()}}const JA=e=>(t,n)=>{e&&mn.postRender(()=>e(t,n))};class Lne extends Fa{constructor(){super(...arguments),this.removePointerDownListener=ui}onPointerDown(t){this.session=new Yk(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:JA(t),onStart:JA(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&mn.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=Rl(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const mp={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function QA(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const gf={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Dt.test(e))e=parseFloat(e);else return e;const n=QA(e,t.target.x),r=QA(e,t.target.y);return`${n}% ${r}%`}},Bne={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Aa.parse(e);if(i.length>5)return r;const s=Aa.createTransformer(e),o=typeof i[0]!="number"?1:0,u=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=u,i[1+o]/=l;const d=Pn(u,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=d),typeof i[3+o]=="number"&&(i[3+o]/=d),s(i)}};class Vne extends A.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;UQ(Nne),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),mp.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,o=r.projection;return o&&(o.isPresent=s,i||t.layoutDependency!==n||n===void 0||t.isPresent!==s?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||mn.postRender(()=>{const u=o.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),K3.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Xk(e){const[t,n]=xQ(),r=A.useContext(k7);return Uo.jsx(Vne,{...e,layoutGroup:r,switchLayoutGroup:A.useContext(j7),isPresent:t,safeToRemove:n})}const Nne={borderRadius:{...gf,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:gf,borderTopRightRadius:gf,borderBottomLeftRadius:gf,borderBottomRightRadius:gf,boxShadow:Bne};function jne(e,t,n){const r=xr(e)?e:uc(e);return r.start(p$("",r,t,n)),r.animation}function Kne(e){return e instanceof SVGElement&&e.tagName!=="svg"}const Une=(e,t)=>e.depth-t.depth;class zne{constructor(){this.children=[],this.isDirty=!1}add(t){r$(this.children,t),this.isDirty=!0}remove(t){i$(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Une),this.isDirty=!1,this.children.forEach(t)}}function qne(e,t){const n=ro.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Wo(r),e(s-t))};return mn.read(r,!0),()=>Wo(r)}const Jk=["TopLeft","TopRight","BottomLeft","BottomRight"],Wne=Jk.length,eT=e=>typeof e=="string"?parseFloat(e):e,tT=e=>typeof e=="number"||Dt.test(e);function Hne(e,t,n,r,i,s){i?(e.opacity=Pn(0,n.opacity!==void 0?n.opacity:1,Gne(r)),e.opacityExit=Pn(t.opacity!==void 0?t.opacity:1,0,Yne(r))):s&&(e.opacity=Pn(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<Wne;o++){const u=`border${Jk[o]}Radius`;let l=nT(t,u),d=nT(n,u);if(l===void 0&&d===void 0)continue;l||(l=0),d||(d=0),l===0||d===0||tT(l)===tT(d)?(e[u]=Math.max(Pn(eT(l),eT(d),r),0),(no.test(d)||no.test(l))&&(e[u]+="%")):e[u]=d}(t.rotate||n.rotate)&&(e.rotate=Pn(t.rotate||0,n.rotate||0,r))}function nT(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Gne=Qk(0,.5,gk),Yne=Qk(.5,.95,ui);function Qk(e,t,n){return r=>r<e?0:r>t?1:n(oc(e,t,r))}function rT(e,t){e.min=t.min,e.max=t.max}function Ii(e,t){rT(e.x,t.x),rT(e.y,t.y)}function iT(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function sT(e,t,n,r,i){return e-=t,e=em(e,1/n,r),i!==void 0&&(e=em(e,1/i,r)),e}function Zne(e,t=0,n=1,r=.5,i,s=e,o=e){if(no.test(t)&&(t=parseFloat(t),t=Pn(o.min,o.max,t/100)-o.min),typeof t!="number")return;let u=Pn(s.min,s.max,r);e===s&&(u-=t),e.min=sT(e.min,t,n,u,i),e.max=sT(e.max,t,n,u,i)}function oT(e,t,[n,r,i],s,o){Zne(e,t[n],t[r],t[i],t.scale,s,o)}const Xne=["x","scaleX","originX"],Jne=["y","scaleY","originY"];function aT(e,t,n,r){oT(e.x,t,Xne,n?n.x:void 0,r?r.x:void 0),oT(e.y,t,Jne,n?n.y:void 0,r?r.y:void 0)}function uT(e){return e.translate===0&&e.scale===1}function eO(e){return uT(e.x)&&uT(e.y)}function lT(e,t){return e.min===t.min&&e.max===t.max}function Qne(e,t){return lT(e.x,t.x)&&lT(e.y,t.y)}function cT(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function tO(e,t){return cT(e.x,t.x)&&cT(e.y,t.y)}function fT(e){return Ur(e.x)/Ur(e.y)}function dT(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class ere{constructor(){this.members=[]}add(t){r$(this.members,t),t.scheduleRender()}remove(t){if(i$(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function tre(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:h,rotateX:m,rotateY:g,skewX:b,skewY:$}=n;d&&(r=`perspective(${d}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),g&&(r+=`rotateY(${g}deg) `),b&&(r+=`skewX(${b}deg) `),$&&(r+=`skewY(${$}deg) `)}const u=e.x.scale*t.x,l=e.y.scale*t.y;return(u!==1||l!==1)&&(r+=`scale(${u}, ${l})`),r||"none"}const b1=["","X","Y","Z"],nre={visibility:"hidden"},hT=1e3;let rre=0;function $1(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function nO(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=lk(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",mn,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&nO(r)}function rO({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},u=t==null?void 0:t()){this.id=rre++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(ore),this.nodes.forEach(fre),this.nodes.forEach(dre),this.nodes.forEach(are)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new zne)}addEventListener(o,u){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new s$),this.eventHandlers.get(o).add(u)}notifyListeners(o,...u){const l=this.eventHandlers.get(o);l&&l.notify(...u)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,u=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Kne(o),this.instance=o;const{layoutId:l,layout:d,visualElement:h}=this.options;if(h&&!h.current&&h.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),u&&(d||l)&&(this.isLayoutDirty=!0),e){let m;const g=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=qne(g,250),mp.hasAnimatedSinceResize&&(mp.hasAnimatedSinceResize=!1,this.nodes.forEach(mT))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&h&&(l||d)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:g,hasRelativeLayoutChanged:b,layout:$})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||h.getDefaultTransition()||vre,{onLayoutAnimationStart:D,onLayoutAnimationComplete:S}=h.getProps(),C=!this.targetLayout||!tO(this.targetLayout,$),T=!g&&b;if(this.options.layoutRoot||this.resumeFrom||T||g&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,T);const O={...Q3(w,"layout"),onPlay:D,onComplete:S};(h.shouldReduceMotion||this.options.layoutRoot)&&(O.delay=0,O.type=!1),this.startAnimation(O)}else g||mT(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=$})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Wo(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(hre),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&nO(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const m=this.path[h];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:u,layout:l}=this.options;if(u===void 0&&!l)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(pT);return}this.isUpdating||this.nodes.forEach(lre),this.isUpdating=!1,this.nodes.forEach(cre),this.nodes.forEach(ire),this.nodes.forEach(sre),this.clearAllSnapshots();const u=ro.now();$r.delta=Ho(0,1e3/60,u-$r.timestamp),$r.timestamp=u,$r.isProcessing=!0,f1.update.process($r),f1.preRender.process($r),f1.render.process($r),$r.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,K3.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ure),this.sharedNodes.forEach(pre)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,mn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){mn.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ur(this.snapshot.measuredBox.x)&&!Ur(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Wn(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let u=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(u=!1),u){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!eO(this.projectionDelta),l=this.getTransformTemplate(),d=l?l(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;o&&(u||uu(this.latestValues)||h)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const u=this.measurePageBox();let l=this.removeElementScroll(u);return o&&(l=this.removeTransform(l)),yre(l),{animationId:this.root.animationId,measuredBox:u,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:u}=this.options;if(!u)return Wn();const l=u.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(bre))){const{scroll:h}=this.root;h&&(kl(l.x,h.offset.x),kl(l.y,h.offset.y))}return l}removeElementScroll(o){var u;const l=Wn();if(Ii(l,o),!((u=this.scroll)===null||u===void 0)&&u.wasRoot)return l;for(let d=0;d<this.path.length;d++){const h=this.path[d],{scroll:m,options:g}=h;h!==this.root&&m&&g.layoutScroll&&(m.wasRoot&&Ii(l,o),kl(l.x,m.offset.x),kl(l.y,m.offset.y))}return l}applyTransform(o,u=!1){const l=Wn();Ii(l,o);for(let d=0;d<this.path.length;d++){const h=this.path[d];!u&&h.options.layoutScroll&&h.scroll&&h!==h.root&&Ol(l,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),uu(h.latestValues)&&Ol(l,h.latestValues)}return uu(this.latestValues)&&Ol(l,this.latestValues),l}removeTransform(o){const u=Wn();Ii(u,o);for(let l=0;l<this.path.length;l++){const d=this.path[l];if(!d.instance||!uu(d.latestValues))continue;Jb(d.latestValues)&&d.updateSnapshot();const h=Wn(),m=d.measurePageBox();Ii(h,m),aT(u,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return uu(this.latestValues)&&aT(u,this.latestValues),u}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==$r.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var u;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==l;if(!(o||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:g}=this.options;if(!(!this.layout||!(m||g))){if(this.resolvedRelativeTargetAt=$r.timestamp,!this.targetDelta&&!this.relativeTarget){const b=this.getClosestProjectingParent();b&&b.layout&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Wn(),this.relativeTargetOrigin=Wn(),qf(this.relativeTargetOrigin,this.layout.layoutBox,b.layout.layoutBox),Ii(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Wn(),this.targetWithTransforms=Wn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),xne(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ii(this.target,this.layout.layoutBox),Hk(this.target,this.targetDelta)):Ii(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const b=this.getClosestProjectingParent();b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Wn(),this.relativeTargetOrigin=Wn(),qf(this.relativeTargetOrigin,this.target,b.target),Ii(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Jb(this.parent.latestValues)||Wk(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const u=this.getLead(),l=!!this.resumingFrom||this!==u;let d=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(d=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===$r.timestamp&&(d=!1),d)return;const{layout:h,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||m))return;Ii(this.layoutCorrected,this.layout.layoutBox);const g=this.treeScale.x,b=this.treeScale.y;wne(this.layoutCorrected,this.treeScale,this.path,l),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=Wn());const{target:$}=u;if(!$){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(iT(this.prevProjectionDelta.x,this.projectionDelta.x),iT(this.prevProjectionDelta.y,this.projectionDelta.y)),zf(this.projectionDelta,this.layoutCorrected,$,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==b||!dT(this.projectionDelta.x,this.prevProjectionDelta.x)||!dT(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",$))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var u;if((u=this.options.visualElement)===null||u===void 0||u.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Fl(),this.projectionDelta=Fl(),this.projectionDeltaWithTransform=Fl()}setAnimationOrigin(o,u=!1){const l=this.snapshot,d=l?l.latestValues:{},h={...this.latestValues},m=Fl();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const g=Wn(),b=l?l.source:void 0,$=this.layout?this.layout.source:void 0,w=b!==$,D=this.getStack(),S=!D||D.members.length<=1,C=!!(w&&!S&&this.options.crossfade===!0&&!this.path.some(gre));this.animationProgress=0;let T;this.mixTargetDelta=O=>{const M=O/1e3;gT(m.x,o.x,M),gT(m.y,o.y,M),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(qf(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),mre(this.relativeTarget,this.relativeTargetOrigin,g,M),T&&Qne(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=Wn()),Ii(T,this.relativeTarget)),w&&(this.animationValues=h,Hne(h,d,this.latestValues,M,C,S)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=M},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Wo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=mn.update(()=>{mp.hasAnimatedSinceResize=!0,this.currentAnimation=jne(0,hT,{...o,onUpdate:u=>{this.mixTargetDelta(u),o.onUpdate&&o.onUpdate(u)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(hT),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:u,target:l,layout:d,latestValues:h}=o;if(!(!u||!l||!d)){if(this!==o&&this.layout&&d&&iO(this.options.animationType,this.layout.layoutBox,d.layoutBox)){l=this.target||Wn();const m=Ur(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+m;const g=Ur(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+g}Ii(u,l),Ol(u,h),zf(this.projectionDeltaWithTransform,this.layoutCorrected,u,h)}}registerSharedNode(o,u){this.sharedNodes.has(o)||this.sharedNodes.set(o,new ere),this.sharedNodes.get(o).add(u);const d=u.options.initialPromotionConfig;u.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(u):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:u}=this.options;return u?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:u}=this.options;return u?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:u,preserveFollowOpacity:l}={}){const d=this.getStack();d&&d.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let u=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(u=!0),!u)return;const d={};l.z&&$1("z",o,d,this.animationValues);for(let h=0;h<b1.length;h++)$1(`rotate${b1[h]}`,o,d,this.animationValues),$1(`skew${b1[h]}`,o,d,this.animationValues);o.render();for(const h in d)o.setStaticValue(h,d[h]),this.animationValues&&(this.animationValues[h]=d[h]);o.scheduleRender()}getProjectionStyles(o){var u,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return nre;const d={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=hp(o==null?void 0:o.pointerEvents)||"",d.transform=h?h(this.latestValues,""):"none",d;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const w={};return this.options.layoutId&&(w.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,w.pointerEvents=hp(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!uu(this.latestValues)&&(w.transform=h?h({},""):"none",this.hasProjected=!1),w}const g=m.animationValues||m.latestValues;this.applyTransformsToTarget(),d.transform=tre(this.projectionDeltaWithTransform,this.treeScale,g),h&&(d.transform=h(g,d.transform));const{x:b,y:$}=this.projectionDelta;d.transformOrigin=`${b.origin*100}% ${$.origin*100}% 0`,m.animationValues?d.opacity=m===this?(l=(u=g.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:g.opacityExit:d.opacity=m===this?g.opacity!==void 0?g.opacity:"":g.opacityExit!==void 0?g.opacityExit:0;for(const w in od){if(g[w]===void 0)continue;const{correct:D,applyTo:S,isCSSVariable:C}=od[w],T=d.transform==="none"?g[w]:D(g[w],m);if(S){const O=S.length;for(let M=0;M<O;M++)d[S[M]]=T}else C?this.options.visualElement.renderState.vars[w]=T:d[w]=T}return this.options.layoutId&&(d.pointerEvents=m===this?hp(o==null?void 0:o.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var u;return(u=o.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(pT),this.root.sharedNodes.clear()}}}function ire(e){e.updateLayout()}function sre(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:s}=e.options,o=n.source!==e.layout.source;s==="size"?Vi(m=>{const g=o?n.measuredBox[m]:n.layoutBox[m],b=Ur(g);g.min=r[m].min,g.max=g.min+b}):iO(s,n.layoutBox,r)&&Vi(m=>{const g=o?n.measuredBox[m]:n.layoutBox[m],b=Ur(r[m]);g.max=g.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+b)});const u=Fl();zf(u,r,n.layoutBox);const l=Fl();o?zf(l,e.applyTransform(i,!0),n.measuredBox):zf(l,r,n.layoutBox);const d=!eO(u);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:g,layout:b}=m;if(g&&b){const $=Wn();qf($,n.layoutBox,g.layoutBox);const w=Wn();qf(w,r,b.layoutBox),tO($,w)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=w,e.relativeTargetOrigin=$,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function ore(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function are(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ure(e){e.clearSnapshot()}function pT(e){e.clearMeasurements()}function lre(e){e.isLayoutDirty=!1}function cre(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function mT(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function fre(e){e.resolveTargetDelta()}function dre(e){e.calcProjection()}function hre(e){e.resetSkewAndRotation()}function pre(e){e.removeLeadSnapshot()}function gT(e,t,n){e.translate=Pn(t.translate,0,n),e.scale=Pn(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function vT(e,t,n,r){e.min=Pn(t.min,n.min,r),e.max=Pn(t.max,n.max,r)}function mre(e,t,n,r){vT(e.x,t.x,n.x,r),vT(e.y,t.y,n.y,r)}function gre(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const vre={duration:.45,ease:[.4,0,.1,1]},yT=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),bT=yT("applewebkit/")&&!yT("chrome/")?Math.round:ui;function $T(e){e.min=bT(e.min),e.max=bT(e.max)}function yre(e){$T(e.x),$T(e.y)}function iO(e,t,n){return e==="position"||e==="preserve-aspect"&&!$ne(fT(t),fT(n),.2)}function bre(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const $re=rO({attachResizeListener:(e,t)=>cd(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),x1={current:void 0},sO=rO({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!x1.current){const e=new $re({});e.mount(window),e.setOptions({layoutScroll:!0}),x1.current=e}return x1.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),xre={pan:{Feature:Lne},drag:{Feature:Ine,ProjectionNode:sO,MeasureLayout:Xk}};function xT(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&mn.postRender(()=>s(t,Ld(t)))}let wre=class extends Fa{mount(){const{current:t}=this.node;t&&(this.unmount=$ee(t,(n,r)=>(xT(this.node,r,"Start"),i=>xT(this.node,i,"End"))))}unmount(){}},Cre=class extends Fa{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Id(cd(this.node.current,"focus",()=>this.onFocus()),cd(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function wT(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&mn.postRender(()=>s(t,Ld(t)))}let Sre=class extends Fa{mount(){const{current:t}=this.node;t&&(this.unmount=See(t,(n,r)=>(wT(this.node,r,"Start"),(i,{success:s})=>wT(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const t4=new WeakMap,w1=new WeakMap,Ere=e=>{const t=t4.get(e.target);t&&t(e)},Dre=e=>{e.forEach(Ere)};function Are({root:e,...t}){const n=e||document;w1.has(n)||w1.set(n,{});const r=w1.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Dre,{root:e,...t})),r[i]}function Tre(e,t,n){const r=Are(t);return t4.set(e,n),r.observe(e),()=>{t4.delete(e),r.unobserve(e)}}const Pre={some:0,all:1};let _re=class extends Fa{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Pre[i]},u=l=>{const{isIntersecting:d}=l;if(this.isInView===d||(this.isInView=d,s&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),g=d?h:m;g&&g(l)};return Tre(this.node.current,o,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Mre(t,n))&&this.startObserver()}unmount(){}};function Mre({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Rre={inView:{Feature:_re},tap:{Feature:Sre},focus:{Feature:Cre},hover:{Feature:wre}},Fre={layout:{ProjectionNode:sO,MeasureLayout:Xk}},n4={current:null},oO={current:!1};function kre(){if(oO.current=!0,!!L3)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>n4.current=e.matches;e.addListener(t),t()}else n4.current=!1}const Ore=[..._k,Ar,Aa],Ire=e=>Ore.find(Pk(e)),Lre=new WeakMap;function Bre(e,t,n){for(const r in t){const i=t[r],s=n[r];if(xr(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&Qm(i.version==="12.4.10",`Attempting to mix Motion versions ${i.version} with 12.4.10 may not work as expected.`);else if(xr(s))e.addValue(r,uc(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,uc(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const CT=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Vre=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=f$,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const b=ro.now();this.renderScheduledAt<b&&(this.renderScheduledAt=b,mn.render(this.render,!1,!0))};const{latestValues:l,renderState:d,onUpdate:h}=o;this.onUpdate=h,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!s,this.isControllingVariants=ng(n),this.isVariantNode=V7(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const b in g){const $=g[b];l[b]!==void 0&&xr($)&&$.set(l[b],!1)}}mount(t){this.current=t,Lre.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),oO.current||kre(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:n4.current,process.env.NODE_ENV!=="production"&&Qm(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Wo(this.notifyUpdate),Wo(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Nu.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&mn.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ac){const n=ac[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Wn()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<CT.length;r++){const i=CT[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,o=t[s];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Bre(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=uc(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(Ak(i)||yk(i))?i=parseFloat(i):!Ire(i)&&Aa.test(n)&&(i=Sk(t,n)),this.setBaseTarget(t,xr(i)?i.get():i)),xr(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const o=X3(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[t])}if(r&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!xr(s)?s:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new s$),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}},aO=class extends Vre{constructor(){super(...arguments),this.KeyframeResolver=Mk}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;xr(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function Nre(e){return window.getComputedStyle(e)}let jre=class extends aO{constructor(){super(...arguments),this.type="html",this.renderInstance=Z7}readValueFromInstance(t,n){if(Nu.has(n)){const r=c$(n);return r&&r.default||0}else{const r=Nre(t),i=(U3(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Gk(t,n)}build(t,n,r){W3(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return J3(t,n,r)}},Kre=class extends aO{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Wn,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&Y7(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Nu.has(n)){const r=c$(n);return r&&r.default||0}return n=X7.has(n)?n:j3(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Q7(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&mn.postRender(this.updateDimensions)}build(t,n,r){Y3(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){J7(t,n,r,i)}mount(t){this.isSVGTag=Z3(t.tagName),super.mount(t)}};const Ure=(e,t)=>G3(e)?new Kre(t):new jre(t,{allowProjection:e!==A.Fragment}),zre=hee({...dne,...Rre,...xre,...Fre},Ure),uO=PQ(zre);function lO(e){const t=Fd(()=>uc(e)),{isStatic:n}=A.useContext(I3);if(n){const[,r]=A.useState(e);A.useEffect(()=>t.on("change",r),[])}return t}function cO(e,t){const n=lO(t()),r=()=>n.set(t());return r(),O7(()=>{const i=()=>mn.preRender(r,!1,!0),s=e.map(o=>o.on("change",i));return()=>{s.forEach(o=>o()),Wo(r)}}),n}const qre=e=>e&&typeof e=="object"&&e.mix,Wre=e=>qre(e)?e.mix:void 0;function Hre(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],s=e[2+n],o=e[3+n],u=Bk(i,s,{mixer:Wre(s[0]),...o});return t?u(r):u}function Gre(e){jf.current=[],e();const t=cO(jf.current,e);return jf.current=void 0,t}function Yre(e,t,n,r){if(typeof e=="function")return Gre(e);const i=typeof t=="function"?t:Hre(t,n,r);return Array.isArray(e)?ST(e,i):ST([e],([s])=>i(s))}function ST(e,t){const n=Fd(()=>[]);return cO(e,()=>{n.length=0;const r=e.length;for(let i=0;i<r;i++)n[i]=e[i].get();return t(n)})}const fO=A.createContext(null);function Zre(e,t,n,r){if(!r)return e;const i=e.findIndex(h=>h.value===t);if(i===-1)return e;const s=r>0?1:-1,o=e[i+s];if(!o)return e;const u=e[i],l=o.layout,d=Pn(l.min,l.max,.5);return s===1&&u.layout.max+n>d||s===-1&&u.layout.min+n<d?Tee(e,i,i+s):e}function Xre({children:e,as:t="ul",axis:n="y",onReorder:r,values:i,...s},o){const u=Fd(()=>uO[t]),l=[],d=A.useRef(!1);io(!!i,"Reorder.Group must be provided a values prop");const h={axis:n,registerItem:(m,g)=>{const b=l.findIndex($=>m===$.value);b!==-1?l[b].layout=g[n]:l.push({value:m,layout:g[n]}),l.sort(eie)},updateOrder:(m,g,b)=>{if(d.current)return;const $=Zre(l,m,g,b);l!==$&&(d.current=!0,r($.map(Qre).filter(w=>i.indexOf(w)!==-1)))}};return A.useEffect(()=>{d.current=!1}),Uo.jsx(u,{...s,ref:o,ignoreStrict:!0,children:Uo.jsx(fO.Provider,{value:h,children:e})})}const Jre=A.forwardRef(Xre);function Qre(e){return e.value}function eie(e,t){return e.layout.min-t.layout.min}function ET(e,t=0){return xr(e)?e:lO(t)}function tie({children:e,style:t={},value:n,as:r="li",onDrag:i,layout:s=!0,...o},u){const l=Fd(()=>uO[r]),d=A.useContext(fO),h={x:ET(t.x),y:ET(t.y)},m=Yre([h.x,h.y],([w,D])=>w||D?1:"unset");io(!!d,"Reorder.Item must be a child of Reorder.Group");const{axis:g,registerItem:b,updateOrder:$}=d;return Uo.jsx(l,{drag:g,...o,dragSnapToOrigin:!0,style:{...t,x:h.x,y:h.y,zIndex:m},layout:s,onDrag:(w,D)=>{const{velocity:S}=D;S[g]&&$(n,h[g].get(),S[g]),i&&i(w,D)},onLayoutMeasure:w=>b(n,w),ref:u,ignoreStrict:!0,children:e})}const nie=A.forwardRef(tie);var gp={exports:{}},rie=gp.exports,DT;function iie(){return DT||(DT=1,function(e,t){(function(n,r){e.exports=r()})(rie,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,i,s){var o=i.prototype,u=o.format;s.en.formats=n,o.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var d=this.$locale().formats,h=function(m,g){return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(b,$,w){var D=w&&w.toUpperCase();return $||g[w]||n[w]||g[D].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(S,C,T){return C||T.slice(1)})})}(l,d===void 0?{}:d);return u.call(this,h)}}})}(gp)),gp.exports}var sie=iie();const oie=ws(sie),AT=(e,t,n)=>{if(e&&"reportValidity"in e){const r=rt(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},dO=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?AT(r.ref,n,e):r&&r.refs&&r.refs.forEach(i=>AT(i,n,e))}},aie=(e,t)=>{t.shouldUseNativeValidation&&dO(e,t);const n={};for(const r in e){const i=rt(t.fields,r),s=Object.assign(e[r]||{},{ref:i&&i.ref});if(uie(t.names||Object.keys(e),r)){const o=Object.assign({},rt(n,r));Xt(o,"root",s),Xt(n,r,o)}else Xt(n,r,s)}return n},uie=(e,t)=>e.some(n=>n.match(`^${t}\\.\\d+`));function lie(e,t,n){return t===void 0&&(t={}),n===void 0&&(n={}),function(r,i,s){try{return Promise.resolve(function(o,u){try{var l=(t.context&&process.env.NODE_ENV==="development"&&console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"),Promise.resolve(e[n.mode==="sync"?"validateSync":"validate"](r,Object.assign({abortEarly:!1},t,{context:i}))).then(function(d){return s.shouldUseNativeValidation&&dO({},s),{values:n.raw?Object.assign({},r):d,errors:{}}}))}catch(d){return u(d)}return l&&l.then?l.then(void 0,u):l}(0,function(o){if(!o.inner)throw o;return{values:{},errors:aie((u=o,l=!s.shouldUseNativeValidation&&s.criteriaMode==="all",(u.inner||[]).reduce(function(d,h){if(d[h.path]||(d[h.path]={message:h.message,type:h.type}),l){var m=d[h.path].types,g=m&&m[h.type];d[h.path]=e5(h.path,l,d,h.type,g?[].concat(g,h.message):h.message)}return d},{})),s)};var u,l}))}catch(o){return Promise.reject(o)}}}var Rf={exports:{}},cie=Rf.exports,TT;function fie(){return TT||(TT=1,function(e,t){(function(n,r){r(t,A)})(cie,function(n,r){function i(se){return se&&typeof se=="object"&&"default"in se?se:{default:se}}var s=i(r),o=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof qi<"u"?qi:typeof self<"u"?self:{},u={exports:{}};(function(se,z){typeof navigator<"u"&&function(K,j){se.exports=j()}(o,function(){var K="http://www.w3.org/2000/svg",j="",V=!1,ge=-999999,U=function(p){V=!!p},J=function(){return V},xe=function(p){j=p},Pe=function(){return j};function Oe(c){return document.createElement(c)}function Ie(c,p){var v,x=c.length,P;for(v=0;v<x;v+=1){P=c[v].prototype;for(var _ in P)Object.prototype.hasOwnProperty.call(P,_)&&(p.prototype[_]=P[_])}}function Ze(c){function p(){}return p.prototype=c,p}var Ge=function(){function c(p){this.audios=[],this.audioFactory=p,this._volume=1,this._isMuted=!1}return c.prototype={addAudio:function(v){this.audios.push(v)},pause:function(){var v,x=this.audios.length;for(v=0;v<x;v+=1)this.audios[v].pause()},resume:function(){var v,x=this.audios.length;for(v=0;v<x;v+=1)this.audios[v].resume()},setRate:function(v){var x,P=this.audios.length;for(x=0;x<P;x+=1)this.audios[x].setRate(v)},createAudio:function(v){return this.audioFactory?this.audioFactory(v):window.Howl?new window.Howl({src:[v]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(v){this.audioFactory=v},setVolume:function(v){this._volume=v,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var v,x=this.audios.length;for(v=0;v<x;v+=1)this.audios[v].volume(this._volume*(this._isMuted?0:1))}},function(){return new c}}(),De=function(){function c(v,x){var P=0,_=[],q;switch(v){case"int16":case"uint8c":q=1;break;default:q=1.1;break}for(P=0;P<x;P+=1)_.push(q);return _}function p(v,x){return v==="float32"?new Float32Array(x):v==="int16"?new Int16Array(x):v==="uint8c"?new Uint8ClampedArray(x):c(v,x)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?p:c}();function Ue(c){return Array.apply(null,{length:c})}var Re=!0,Ve=null,Le="",nt=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),xt=Math.pow,ln=Math.sqrt,$t=Math.floor,Rt=Math.min,$e=150,Ee=Math.PI/180,Te=.5519;function He(c,p,v,x){this.type=c,this.currentTime=p,this.totalTime=v,this.direction=x<0?-1:1}function et(c,p){this.type=c,this.direction=p<0?-1:1}function Je(c,p,v,x){this.type=c,this.currentLoop=v,this.totalLoops=p,this.direction=x<0?-1:1}function lt(c,p,v){this.type=c,this.firstFrame=p,this.totalFrames=v}function bt(c,p){this.type=c,this.target=p}function gn(c,p){this.type="renderFrameError",this.nativeError=c,this.currentTime=p}function Jt(c){this.type="configError",this.nativeError=c}var Ut=function(){var c=0;return function(){return c+=1,Le+"__lottie_element_"+c}}();function Yr(c,p,v){var x,P,_,q,pe,ee,ye,we;switch(q=Math.floor(c*6),pe=c*6-q,ee=v*(1-p),ye=v*(1-pe*p),we=v*(1-(1-pe)*p),q%6){case 0:x=v,P=we,_=ee;break;case 1:x=ye,P=v,_=ee;break;case 2:x=ee,P=v,_=we;break;case 3:x=ee,P=ye,_=v;break;case 4:x=we,P=ee,_=v;break;case 5:x=v,P=ee,_=ye;break}return[x,P,_]}function Fr(c,p,v){var x=Math.max(c,p,v),P=Math.min(c,p,v),_=x-P,q,pe=x===0?0:_/x,ee=x/255;switch(x){case P:q=0;break;case c:q=p-v+_*(p<v?6:0),q/=6*_;break;case p:q=v-c+_*2,q/=6*_;break;case v:q=c-p+_*4,q/=6*_;break}return[q,pe,ee]}function rn(c,p){var v=Fr(c[0]*255,c[1]*255,c[2]*255);return v[1]+=p,v[1]>1?v[1]=1:v[1]<=0&&(v[1]=0),Yr(v[0],v[1],v[2])}function Pt(c,p){var v=Fr(c[0]*255,c[1]*255,c[2]*255);return v[2]+=p,v[2]>1?v[2]=1:v[2]<0&&(v[2]=0),Yr(v[0],v[1],v[2])}function Lt(c,p){var v=Fr(c[0]*255,c[1]*255,c[2]*255);return v[0]+=p/360,v[0]>1?v[0]-=1:v[0]<0&&(v[0]+=1),Yr(v[0],v[1],v[2])}(function(){var c=[],p,v;for(p=0;p<256;p+=1)v=p.toString(16),c[p]=v.length===1?"0"+v:v;return function(x,P,_){return x<0&&(x=0),P<0&&(P=0),_<0&&(_=0),"#"+c[x]+c[P]+c[_]}})();var Yt=function(p){Re=!!p},sr=function(){return Re},Qi=function(p){Ve=p},es=function(){return Ve},Ci=function(p){$e=p},Ds=function(){return $e},ka=function(p){Le=p};function yt(c){return document.createElementNS(K,c)}function ci(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ci=function(v){return typeof v}:ci=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},ci(c)}var ao=function(){var c=1,p=[],v,x,P={onmessage:function(){},postMessage:function(te){v({data:te})}},_={postMessage:function(te){P.onmessage({data:te})}};function q(R){if(window.Worker&&window.Blob&&J()){var te=new Blob(["var _workerSelf = self; self.onmessage = ",R.toString()],{type:"text/javascript"}),Y=URL.createObjectURL(te);return new Worker(Y)}return v=R,P}function pe(){x||(x=q(function(te){function Y(){function fe(Be,be){var ce,Q,me=Be.length,je,Fe,ct,Tt;for(Q=0;Q<me;Q+=1)if(ce=Be[Q],"ks"in ce&&!ce.completed){if(ce.completed=!0,ce.hasMask){var Ct=ce.masksProperties;for(Fe=Ct.length,je=0;je<Fe;je+=1)if(Ct[je].pt.k.i)G(Ct[je].pt.k);else for(Tt=Ct[je].pt.k.length,ct=0;ct<Tt;ct+=1)Ct[je].pt.k[ct].s&&G(Ct[je].pt.k[ct].s[0]),Ct[je].pt.k[ct].e&&G(Ct[je].pt.k[ct].e[0])}ce.ty===0?(ce.layers=I(ce.refId,be),fe(ce.layers,be)):ce.ty===4?B(ce.shapes):ce.ty===5&&at(ce)}}function H(Be,be){if(Be){var ce=0,Q=Be.length;for(ce=0;ce<Q;ce+=1)Be[ce].t===1&&(Be[ce].data.layers=I(Be[ce].data.refId,be),fe(Be[ce].data.layers,be))}}function Z(Be,be){for(var ce=0,Q=be.length;ce<Q;){if(be[ce].id===Be)return be[ce];ce+=1}return null}function I(Be,be){var ce=Z(Be,be);return ce?ce.layers.__used?JSON.parse(JSON.stringify(ce.layers)):(ce.layers.__used=!0,ce.layers):null}function B(Be){var be,ce=Be.length,Q,me;for(be=ce-1;be>=0;be-=1)if(Be[be].ty==="sh")if(Be[be].ks.k.i)G(Be[be].ks.k);else for(me=Be[be].ks.k.length,Q=0;Q<me;Q+=1)Be[be].ks.k[Q].s&&G(Be[be].ks.k[Q].s[0]),Be[be].ks.k[Q].e&&G(Be[be].ks.k[Q].e[0]);else Be[be].ty==="gr"&&B(Be[be].it)}function G(Be){var be,ce=Be.i.length;for(be=0;be<ce;be+=1)Be.i[be][0]+=Be.v[be][0],Be.i[be][1]+=Be.v[be][1],Be.o[be][0]+=Be.v[be][0],Be.o[be][1]+=Be.v[be][1]}function re(Be,be){var ce=be?be.split("."):[100,100,100];return Be[0]>ce[0]?!0:ce[0]>Be[0]?!1:Be[1]>ce[1]?!0:ce[1]>Be[1]?!1:Be[2]>ce[2]?!0:ce[2]>Be[2]?!1:null}var le=function(){var Be=[4,4,14];function be(Q){var me=Q.t.d;Q.t.d={k:[{s:me,t:0}]}}function ce(Q){var me,je=Q.length;for(me=0;me<je;me+=1)Q[me].ty===5&&be(Q[me])}return function(Q){if(re(Be,Q.v)&&(ce(Q.layers),Q.assets)){var me,je=Q.assets.length;for(me=0;me<je;me+=1)Q.assets[me].layers&&ce(Q.assets[me].layers)}}}(),he=function(){var Be=[4,7,99];return function(be){if(be.chars&&!re(Be,be.v)){var ce,Q=be.chars.length;for(ce=0;ce<Q;ce+=1){var me=be.chars[ce];me.data&&me.data.shapes&&(B(me.data.shapes),me.data.ip=0,me.data.op=99999,me.data.st=0,me.data.sr=1,me.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},be.chars[ce].t||(me.data.shapes.push({ty:"no"}),me.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),ke=function(){var Be=[5,7,15];function be(Q){var me=Q.t.p;typeof me.a=="number"&&(me.a={a:0,k:me.a}),typeof me.p=="number"&&(me.p={a:0,k:me.p}),typeof me.r=="number"&&(me.r={a:0,k:me.r})}function ce(Q){var me,je=Q.length;for(me=0;me<je;me+=1)Q[me].ty===5&&be(Q[me])}return function(Q){if(re(Be,Q.v)&&(ce(Q.layers),Q.assets)){var me,je=Q.assets.length;for(me=0;me<je;me+=1)Q.assets[me].layers&&ce(Q.assets[me].layers)}}}(),tt=function(){var Be=[4,1,9];function be(Q){var me,je=Q.length,Fe,ct;for(me=0;me<je;me+=1)if(Q[me].ty==="gr")be(Q[me].it);else if(Q[me].ty==="fl"||Q[me].ty==="st")if(Q[me].c.k&&Q[me].c.k[0].i)for(ct=Q[me].c.k.length,Fe=0;Fe<ct;Fe+=1)Q[me].c.k[Fe].s&&(Q[me].c.k[Fe].s[0]/=255,Q[me].c.k[Fe].s[1]/=255,Q[me].c.k[Fe].s[2]/=255,Q[me].c.k[Fe].s[3]/=255),Q[me].c.k[Fe].e&&(Q[me].c.k[Fe].e[0]/=255,Q[me].c.k[Fe].e[1]/=255,Q[me].c.k[Fe].e[2]/=255,Q[me].c.k[Fe].e[3]/=255);else Q[me].c.k[0]/=255,Q[me].c.k[1]/=255,Q[me].c.k[2]/=255,Q[me].c.k[3]/=255}function ce(Q){var me,je=Q.length;for(me=0;me<je;me+=1)Q[me].ty===4&&be(Q[me].shapes)}return function(Q){if(re(Be,Q.v)&&(ce(Q.layers),Q.assets)){var me,je=Q.assets.length;for(me=0;me<je;me+=1)Q.assets[me].layers&&ce(Q.assets[me].layers)}}}(),Qe=function(){var Be=[4,4,18];function be(Q){var me,je=Q.length,Fe,ct;for(me=je-1;me>=0;me-=1)if(Q[me].ty==="sh")if(Q[me].ks.k.i)Q[me].ks.k.c=Q[me].closed;else for(ct=Q[me].ks.k.length,Fe=0;Fe<ct;Fe+=1)Q[me].ks.k[Fe].s&&(Q[me].ks.k[Fe].s[0].c=Q[me].closed),Q[me].ks.k[Fe].e&&(Q[me].ks.k[Fe].e[0].c=Q[me].closed);else Q[me].ty==="gr"&&be(Q[me].it)}function ce(Q){var me,je,Fe=Q.length,ct,Tt,Ct,xn;for(je=0;je<Fe;je+=1){if(me=Q[je],me.hasMask){var zt=me.masksProperties;for(Tt=zt.length,ct=0;ct<Tt;ct+=1)if(zt[ct].pt.k.i)zt[ct].pt.k.c=zt[ct].cl;else for(xn=zt[ct].pt.k.length,Ct=0;Ct<xn;Ct+=1)zt[ct].pt.k[Ct].s&&(zt[ct].pt.k[Ct].s[0].c=zt[ct].cl),zt[ct].pt.k[Ct].e&&(zt[ct].pt.k[Ct].e[0].c=zt[ct].cl)}me.ty===4&&be(me.shapes)}}return function(Q){if(re(Be,Q.v)&&(ce(Q.layers),Q.assets)){var me,je=Q.assets.length;for(me=0;me<je;me+=1)Q.assets[me].layers&&ce(Q.assets[me].layers)}}}();function Ne(Be){Be.__complete||(tt(Be),le(Be),he(Be),ke(Be),Qe(Be),fe(Be.layers,Be.assets),H(Be.chars,Be.assets),Be.__complete=!0)}function at(Be){Be.t.a.length===0&&"m"in Be.t.p}var ft={};return ft.completeData=Ne,ft.checkColors=tt,ft.checkChars=he,ft.checkPathProperties=ke,ft.checkShapes=Qe,ft.completeLayers=fe,ft}if(_.dataManager||(_.dataManager=Y()),_.assetLoader||(_.assetLoader=function(){function fe(Z){var I=Z.getResponseHeader("content-type");return I&&Z.responseType==="json"&&I.indexOf("json")!==-1||Z.response&&ci(Z.response)==="object"?Z.response:Z.response&&typeof Z.response=="string"?JSON.parse(Z.response):Z.responseText?JSON.parse(Z.responseText):null}function H(Z,I,B,G){var re,le=new XMLHttpRequest;try{le.responseType="json"}catch{}le.onreadystatechange=function(){if(le.readyState===4)if(le.status===200)re=fe(le),B(re);else try{re=fe(le),B(re)}catch(he){G&&G(he)}};try{le.open(["G","E","T"].join(""),Z,!0)}catch{le.open(["G","E","T"].join(""),I+"/"+Z,!0)}le.send()}return{load:H}}()),te.data.type==="loadAnimation")_.assetLoader.load(te.data.path,te.data.fullPath,function(fe){_.dataManager.completeData(fe),_.postMessage({id:te.data.id,payload:fe,status:"success"})},function(){_.postMessage({id:te.data.id,status:"error"})});else if(te.data.type==="complete"){var de=te.data.animation;_.dataManager.completeData(de),_.postMessage({id:te.data.id,payload:de,status:"success"})}else te.data.type==="loadData"&&_.assetLoader.load(te.data.path,te.data.fullPath,function(fe){_.postMessage({id:te.data.id,payload:fe,status:"success"})},function(){_.postMessage({id:te.data.id,status:"error"})})}),x.onmessage=function(R){var te=R.data,Y=te.id,de=p[Y];p[Y]=null,te.status==="success"?de.onComplete(te.payload):de.onError&&de.onError()})}function ee(R,te){c+=1;var Y="processId_"+c;return p[Y]={onComplete:R,onError:te},Y}function ye(R,te,Y){pe();var de=ee(te,Y);x.postMessage({type:"loadAnimation",path:R,fullPath:window.location.origin+window.location.pathname,id:de})}function we(R,te,Y){pe();var de=ee(te,Y);x.postMessage({type:"loadData",path:R,fullPath:window.location.origin+window.location.pathname,id:de})}function Me(R,te,Y){pe();var de=ee(te,Y);x.postMessage({type:"complete",animation:R,id:de})}return{loadAnimation:ye,loadData:we,completeAnimation:Me}}(),Fc=function(){var c=function(){var H=Oe("canvas");H.width=1,H.height=1;var Z=H.getContext("2d");return Z.fillStyle="rgba(0,0,0,0)",Z.fillRect(0,0,1,1),H}();function p(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function v(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function x(H,Z,I){var B="";if(H.e)B=H.p;else if(Z){var G=H.p;G.indexOf("images/")!==-1&&(G=G.split("/")[1]),B=Z+G}else B=I,B+=H.u?H.u:"",B+=H.p;return B}function P(H){var Z=0,I=setInterval((function(){var B=H.getBBox();(B.width||Z>500)&&(this._imageLoaded(),clearInterval(I)),Z+=1}).bind(this),50)}function _(H){var Z=x(H,this.assetsPath,this.path),I=yt("image");nt?this.testImageLoaded(I):I.addEventListener("load",this._imageLoaded,!1),I.addEventListener("error",(function(){B.img=c,this._imageLoaded()}).bind(this),!1),I.setAttributeNS("http://www.w3.org/1999/xlink","href",Z),this._elementHelper.append?this._elementHelper.append(I):this._elementHelper.appendChild(I);var B={img:I,assetData:H};return B}function q(H){var Z=x(H,this.assetsPath,this.path),I=Oe("img");I.crossOrigin="anonymous",I.addEventListener("load",this._imageLoaded,!1),I.addEventListener("error",(function(){B.img=c,this._imageLoaded()}).bind(this),!1),I.src=Z;var B={img:I,assetData:H};return B}function pe(H){var Z={assetData:H},I=x(H,this.assetsPath,this.path);return ao.loadData(I,(function(B){Z.img=B,this._footageLoaded()}).bind(this),(function(){Z.img={},this._footageLoaded()}).bind(this)),Z}function ee(H,Z){this.imagesLoadedCb=Z;var I,B=H.length;for(I=0;I<B;I+=1)H[I].layers||(!H[I].t||H[I].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(H[I]))):H[I].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(H[I]))))}function ye(H){this.path=H||""}function we(H){this.assetsPath=H||""}function Me(H){for(var Z=0,I=this.images.length;Z<I;){if(this.images[Z].assetData===H)return this.images[Z].img;Z+=1}return null}function R(){this.imagesLoadedCb=null,this.images.length=0}function te(){return this.totalImages===this.loadedAssets}function Y(){return this.totalFootages===this.loadedFootagesCount}function de(H,Z){H==="svg"?(this._elementHelper=Z,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function fe(){this._imageLoaded=p.bind(this),this._footageLoaded=v.bind(this),this.testImageLoaded=P.bind(this),this.createFootageData=pe.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return fe.prototype={loadAssets:ee,setAssetsPath:we,setPath:ye,loadedImages:te,loadedFootages:Y,destroy:R,getAsset:Me,createImgData:q,createImageData:_,imageLoaded:p,footageLoaded:v,setCacheType:de},fe}();function Uu(){}Uu.prototype={triggerEvent:function(p,v){if(this._cbs[p])for(var x=this._cbs[p],P=0;P<x.length;P+=1)x[P](v)},addEventListener:function(p,v){return this._cbs[p]||(this._cbs[p]=[]),this._cbs[p].push(v),(function(){this.removeEventListener(p,v)}).bind(this)},removeEventListener:function(p,v){if(!v)this._cbs[p]=null;else if(this._cbs[p]){for(var x=0,P=this._cbs[p].length;x<P;)this._cbs[p][x]===v&&(this._cbs[p].splice(x,1),x-=1,P-=1),x+=1;this._cbs[p].length||(this._cbs[p]=null)}}};var kc=function(){function c(p){for(var v=p.split(`\r
|
|
127
127
|
`),x={},P,_=0,q=0;q<v.length;q+=1)P=v[q].split(":"),P.length===2&&(x[P[0]]=P[1].trim(),_+=1);if(_===0)throw new Error;return x}return function(p){for(var v=[],x=0;x<p.length;x+=1){var P=p[x],_={time:P.tm,duration:P.dr};try{_.payload=JSON.parse(p[x].cm)}catch{try{_.payload=c(p[x].cm)}catch{_.payload={name:p[x].cm}}}v.push(_)}return v}}(),zu=function(){function c(p){this.compositions.push(p)}return function(){function p(v){for(var x=0,P=this.compositions.length;x<P;){if(this.compositions[x].data&&this.compositions[x].data.nm===v)return this.compositions[x].prepareFrame&&this.compositions[x].data.xt&&this.compositions[x].prepareFrame(this.currentFrame),this.compositions[x].compInterface;x+=1}return null}return p.compositions=[],p.currentFrame=0,p.registerComposition=c,p}}(),Oa={},qu=function(p,v){Oa[p]=v};function ts(c){return Oa[c]}function ns(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ns=function(v){return typeof v}:ns=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},ns(c)}var vt=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=Ut(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=sr(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=zu(),this.imagePreloader=new Fc,this.audioController=Ge(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new He("drawnFrame",0,0,0)};Ie([Uu],vt),vt.prototype.setParams=function(c){(c.wrapper||c.container)&&(this.wrapper=c.wrapper||c.container);var p="svg";c.animType?p=c.animType:c.renderer&&(p=c.renderer);var v=ts(p);this.renderer=new v(this,c.rendererSettings),this.imagePreloader.setCacheType(p,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=p,c.loop===""||c.loop===null||c.loop===void 0||c.loop===!0?this.loop=!0:c.loop===!1?this.loop=!1:this.loop=parseInt(c.loop,10),this.autoplay="autoplay"in c?c.autoplay:!0,this.name=c.name?c.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(c,"autoloadSegments")?c.autoloadSegments:!0,this.assetsPath=c.assetsPath,this.initialSegment=c.initialSegment,c.audioFactory&&this.audioController.setAudioFactory(c.audioFactory),c.animationData?this.setupAnimation(c.animationData):c.path&&(c.path.lastIndexOf("\\")!==-1?this.path=c.path.substr(0,c.path.lastIndexOf("\\")+1):this.path=c.path.substr(0,c.path.lastIndexOf("/")+1),this.fileName=c.path.substr(c.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),ao.loadAnimation(c.path,this.configAnimation,this.onSetupError))},vt.prototype.onSetupError=function(){this.trigger("data_failed")},vt.prototype.setupAnimation=function(c){ao.completeAnimation(c,this.configAnimation)},vt.prototype.setData=function(c,p){p&&ns(p)!=="object"&&(p=JSON.parse(p));var v={wrapper:c,animationData:p},x=c.attributes;v.path=x.getNamedItem("data-animation-path")?x.getNamedItem("data-animation-path").value:x.getNamedItem("data-bm-path")?x.getNamedItem("data-bm-path").value:x.getNamedItem("bm-path")?x.getNamedItem("bm-path").value:"",v.animType=x.getNamedItem("data-anim-type")?x.getNamedItem("data-anim-type").value:x.getNamedItem("data-bm-type")?x.getNamedItem("data-bm-type").value:x.getNamedItem("bm-type")?x.getNamedItem("bm-type").value:x.getNamedItem("data-bm-renderer")?x.getNamedItem("data-bm-renderer").value:x.getNamedItem("bm-renderer")?x.getNamedItem("bm-renderer").value:"canvas";var P=x.getNamedItem("data-anim-loop")?x.getNamedItem("data-anim-loop").value:x.getNamedItem("data-bm-loop")?x.getNamedItem("data-bm-loop").value:x.getNamedItem("bm-loop")?x.getNamedItem("bm-loop").value:"";P==="false"?v.loop=!1:P==="true"?v.loop=!0:P!==""&&(v.loop=parseInt(P,10));var _=x.getNamedItem("data-anim-autoplay")?x.getNamedItem("data-anim-autoplay").value:x.getNamedItem("data-bm-autoplay")?x.getNamedItem("data-bm-autoplay").value:x.getNamedItem("bm-autoplay")?x.getNamedItem("bm-autoplay").value:!0;v.autoplay=_!=="false",v.name=x.getNamedItem("data-name")?x.getNamedItem("data-name").value:x.getNamedItem("data-bm-name")?x.getNamedItem("data-bm-name").value:x.getNamedItem("bm-name")?x.getNamedItem("bm-name").value:"";var q=x.getNamedItem("data-anim-prerender")?x.getNamedItem("data-anim-prerender").value:x.getNamedItem("data-bm-prerender")?x.getNamedItem("data-bm-prerender").value:x.getNamedItem("bm-prerender")?x.getNamedItem("bm-prerender").value:"";q==="false"&&(v.prerender=!1),this.setParams(v)},vt.prototype.includeLayers=function(c){c.op>this.animationData.op&&(this.animationData.op=c.op,this.totalFrames=Math.floor(c.op-this.animationData.ip));var p=this.animationData.layers,v,x=p.length,P=c.layers,_,q=P.length;for(_=0;_<q;_+=1)for(v=0;v<x;){if(p[v].id===P[_].id){p[v]=P[_];break}v+=1}if((c.chars||c.fonts)&&(this.renderer.globalData.fontManager.addChars(c.chars),this.renderer.globalData.fontManager.addFonts(c.fonts,this.renderer.globalData.defs)),c.assets)for(x=c.assets.length,v=0;v<x;v+=1)this.animationData.assets.push(c.assets[v]);this.animationData.__complete=!1,ao.completeAnimation(this.animationData,this.onSegmentComplete)},vt.prototype.onSegmentComplete=function(c){this.animationData=c;var p=es();p&&p.initExpressions(this),this.loadNextSegment()},vt.prototype.loadNextSegment=function(){var c=this.animationData.segments;if(!c||c.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var p=c.shift();this.timeCompleted=p.time*this.frameRate;var v=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,ao.loadData(v,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},vt.prototype.loadSegments=function(){var c=this.animationData.segments;c||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},vt.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},vt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},vt.prototype.configAnimation=function(c){if(this.renderer)try{this.animationData=c,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(c),c.assets||(c.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(c.assets),this.markers=kc(c.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(p){this.triggerConfigError(p)}},vt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},vt.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var c=es();c&&c.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},vt.prototype.resize=function(c,p){var v=typeof c=="number"?c:void 0,x=typeof p=="number"?p:void 0;this.renderer.updateContainerSize(v,x)},vt.prototype.setSubframe=function(c){this.isSubframeEnabled=!!c},vt.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},vt.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(c){this.triggerRenderFrameError(c)}},vt.prototype.play=function(c){c&&this.name!==c||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},vt.prototype.pause=function(c){c&&this.name!==c||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},vt.prototype.togglePause=function(c){c&&this.name!==c||(this.isPaused===!0?this.play():this.pause())},vt.prototype.stop=function(c){c&&this.name!==c||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},vt.prototype.getMarkerData=function(c){for(var p,v=0;v<this.markers.length;v+=1)if(p=this.markers[v],p.payload&&p.payload.name===c)return p;return null},vt.prototype.goToAndStop=function(c,p,v){if(!(v&&this.name!==v)){var x=Number(c);if(isNaN(x)){var P=this.getMarkerData(c);P&&this.goToAndStop(P.time,!0)}else p?this.setCurrentRawFrameValue(c):this.setCurrentRawFrameValue(c*this.frameModifier);this.pause()}},vt.prototype.goToAndPlay=function(c,p,v){if(!(v&&this.name!==v)){var x=Number(c);if(isNaN(x)){var P=this.getMarkerData(c);P&&(P.duration?this.playSegments([P.time,P.time+P.duration],!0):this.goToAndStop(P.time,!0))}else this.goToAndStop(x,p,v);this.play()}},vt.prototype.advanceTime=function(c){if(!(this.isPaused===!0||this.isLoaded===!1)){var p=this.currentRawFrame+c*this.frameModifier,v=!1;p>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(p>this.totalFrames?p%this.totalFrames:0)||(v=!0,p=this.totalFrames-1):p>=this.totalFrames?(this.playCount+=1,this.checkSegments(p%this.totalFrames)||(this.setCurrentRawFrameValue(p%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(p):p<0?this.checkSegments(p%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+p%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(v=!0,p=0)):this.setCurrentRawFrameValue(p),v&&(this.setCurrentRawFrameValue(p),this.pause(),this.trigger("complete"))}},vt.prototype.adjustSegment=function(c,p){this.playCount=0,c[1]<c[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=c[0]-c[1],this.timeCompleted=this.totalFrames,this.firstFrame=c[1],this.setCurrentRawFrameValue(this.totalFrames-.001-p)):c[1]>c[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=c[1]-c[0],this.timeCompleted=this.totalFrames,this.firstFrame=c[0],this.setCurrentRawFrameValue(.001+p)),this.trigger("segmentStart")},vt.prototype.setSegment=function(c,p){var v=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<c?v=c:this.currentRawFrame+this.firstFrame>p&&(v=p-c)),this.firstFrame=c,this.totalFrames=p-c,this.timeCompleted=this.totalFrames,v!==-1&&this.goToAndStop(v,!0)},vt.prototype.playSegments=function(c,p){if(p&&(this.segments.length=0),ns(c[0])==="object"){var v,x=c.length;for(v=0;v<x;v+=1)this.segments.push(c[v])}else this.segments.push(c);this.segments.length&&p&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},vt.prototype.resetSegments=function(c){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),c&&this.checkSegments(0)},vt.prototype.checkSegments=function(c){return this.segments.length?(this.adjustSegment(this.segments.shift(),c),!0):!1},vt.prototype.destroy=function(c){c&&this.name!==c||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.renderer=null,this.imagePreloader=null,this.projectInterface=null)},vt.prototype.setCurrentRawFrameValue=function(c){this.currentRawFrame=c,this.gotoFrame()},vt.prototype.setSpeed=function(c){this.playSpeed=c,this.updaFrameModifier()},vt.prototype.setDirection=function(c){this.playDirection=c<0?-1:1,this.updaFrameModifier()},vt.prototype.setLoop=function(c){this.loop=c},vt.prototype.setVolume=function(c,p){p&&this.name!==p||this.audioController.setVolume(c)},vt.prototype.getVolume=function(){return this.audioController.getVolume()},vt.prototype.mute=function(c){c&&this.name!==c||this.audioController.mute()},vt.prototype.unmute=function(c){c&&this.name!==c||this.audioController.unmute()},vt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},vt.prototype.getPath=function(){return this.path},vt.prototype.getAssetsPath=function(c){var p="";if(c.e)p=c.p;else if(this.assetsPath){var v=c.p;v.indexOf("images/")!==-1&&(v=v.split("/")[1]),p=this.assetsPath+v}else p=this.path,p+=c.u?c.u:"",p+=c.p;return p},vt.prototype.getAssetData=function(c){for(var p=0,v=this.assets.length;p<v;){if(c===this.assets[p].id)return this.assets[p];p+=1}return null},vt.prototype.hide=function(){this.renderer.hide()},vt.prototype.show=function(){this.renderer.show()},vt.prototype.getDuration=function(c){return c?this.totalFrames:this.totalFrames/this.frameRate},vt.prototype.updateDocumentData=function(c,p,v){try{var x=this.renderer.getElementByPath(c);x.updateDocumentData(p,v)}catch{}},vt.prototype.trigger=function(c){if(this._cbs&&this._cbs[c])switch(c){case"enterFrame":this.triggerEvent(c,new He(c,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(c,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(c,new Je(c,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(c,new et(c,this.frameMult));break;case"segmentStart":this.triggerEvent(c,new lt(c,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(c,new bt(c,this));break;default:this.triggerEvent(c)}c==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new He(c,this.currentFrame,this.totalFrames,this.frameMult)),c==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new Je(c,this.loop,this.playCount,this.frameMult)),c==="complete"&&this.onComplete&&this.onComplete.call(this,new et(c,this.frameMult)),c==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new lt(c,this.firstFrame,this.totalFrames)),c==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new bt(c,this))},vt.prototype.triggerRenderFrameError=function(c){var p=new gn(c,this.currentFrame);this.triggerEvent("error",p),this.onError&&this.onError.call(this,p)},vt.prototype.triggerConfigError=function(c){var p=new Jt(c,this.currentFrame);this.triggerEvent("error",p),this.onError&&this.onError.call(this,p)};var En=function(){var c={},p=[],v=0,x=0,P=0,_=!0,q=!1;function pe(be){for(var ce=0,Q=be.target;ce<x;)p[ce].animation===Q&&(p.splice(ce,1),ce-=1,x-=1,Q.isPaused||Me()),ce+=1}function ee(be,ce){if(!be)return null;for(var Q=0;Q<x;){if(p[Q].elem===be&&p[Q].elem!==null)return p[Q].animation;Q+=1}var me=new vt;return R(me,be),me.setData(be,ce),me}function ye(){var be,ce=p.length,Q=[];for(be=0;be<ce;be+=1)Q.push(p[be].animation);return Q}function we(){P+=1,tt()}function Me(){P-=1}function R(be,ce){be.addEventListener("destroy",pe),be.addEventListener("_active",we),be.addEventListener("_idle",Me),p.push({elem:ce,animation:be}),x+=1}function te(be){var ce=new vt;return R(ce,null),ce.setParams(be),ce}function Y(be,ce){var Q;for(Q=0;Q<x;Q+=1)p[Q].animation.setSpeed(be,ce)}function de(be,ce){var Q;for(Q=0;Q<x;Q+=1)p[Q].animation.setDirection(be,ce)}function fe(be){var ce;for(ce=0;ce<x;ce+=1)p[ce].animation.play(be)}function H(be){var ce=be-v,Q;for(Q=0;Q<x;Q+=1)p[Q].animation.advanceTime(ce);v=be,P&&!q?window.requestAnimationFrame(H):_=!0}function Z(be){v=be,window.requestAnimationFrame(H)}function I(be){var ce;for(ce=0;ce<x;ce+=1)p[ce].animation.pause(be)}function B(be,ce,Q){var me;for(me=0;me<x;me+=1)p[me].animation.goToAndStop(be,ce,Q)}function G(be){var ce;for(ce=0;ce<x;ce+=1)p[ce].animation.stop(be)}function re(be){var ce;for(ce=0;ce<x;ce+=1)p[ce].animation.togglePause(be)}function le(be){var ce;for(ce=x-1;ce>=0;ce-=1)p[ce].animation.destroy(be)}function he(be,ce,Q){var me=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),je,Fe=me.length;for(je=0;je<Fe;je+=1)Q&&me[je].setAttribute("data-bm-type",Q),ee(me[je],be);if(ce&&Fe===0){Q||(Q="svg");var ct=document.getElementsByTagName("body")[0];ct.innerText="";var Tt=Oe("div");Tt.style.width="100%",Tt.style.height="100%",Tt.setAttribute("data-bm-type",Q),ct.appendChild(Tt),ee(Tt,be)}}function ke(){var be;for(be=0;be<x;be+=1)p[be].animation.resize()}function tt(){!q&&P&&_&&(window.requestAnimationFrame(Z),_=!1)}function Qe(){q=!0}function Ne(){q=!1,tt()}function at(be,ce){var Q;for(Q=0;Q<x;Q+=1)p[Q].animation.setVolume(be,ce)}function ft(be){var ce;for(ce=0;ce<x;ce+=1)p[ce].animation.mute(be)}function Be(be){var ce;for(ce=0;ce<x;ce+=1)p[ce].animation.unmute(be)}return c.registerAnimation=ee,c.loadAnimation=te,c.setSpeed=Y,c.setDirection=de,c.play=fe,c.pause=I,c.stop=G,c.togglePause=re,c.searchAnimations=he,c.resize=ke,c.goToAndStop=B,c.destroy=le,c.freeze=Qe,c.unfreeze=Ne,c.setVolume=at,c.mute=ft,c.unmute=Be,c.getRegisteredAnimations=ye,c}(),uo=function(){var c={};c.getBezierEasing=v;var p={};function v(Z,I,B,G,re){var le=re||("bez_"+Z+"_"+I+"_"+B+"_"+G).replace(/\./g,"p");if(p[le])return p[le];var he=new H([Z,I,B,G]);return p[le]=he,he}var x=4,P=.001,_=1e-7,q=10,pe=11,ee=1/(pe-1),ye=typeof Float32Array=="function";function we(Z,I){return 1-3*I+3*Z}function Me(Z,I){return 3*I-6*Z}function R(Z){return 3*Z}function te(Z,I,B){return((we(I,B)*Z+Me(I,B))*Z+R(I))*Z}function Y(Z,I,B){return 3*we(I,B)*Z*Z+2*Me(I,B)*Z+R(I)}function de(Z,I,B,G,re){var le,he,ke=0;do he=I+(B-I)/2,le=te(he,G,re)-Z,le>0?B=he:I=he;while(Math.abs(le)>_&&++ke<q);return he}function fe(Z,I,B,G){for(var re=0;re<x;++re){var le=Y(I,B,G);if(le===0)return I;var he=te(I,B,G)-Z;I-=he/le}return I}function H(Z){this._p=Z,this._mSampleValues=ye?new Float32Array(pe):new Array(pe),this._precomputed=!1,this.get=this.get.bind(this)}return H.prototype={get:function(I){var B=this._p[0],G=this._p[1],re=this._p[2],le=this._p[3];return this._precomputed||this._precompute(),B===G&&re===le?I:I===0?0:I===1?1:te(this._getTForX(I),G,le)},_precompute:function(){var I=this._p[0],B=this._p[1],G=this._p[2],re=this._p[3];this._precomputed=!0,(I!==B||G!==re)&&this._calcSampleValues()},_calcSampleValues:function(){for(var I=this._p[0],B=this._p[2],G=0;G<pe;++G)this._mSampleValues[G]=te(G*ee,I,B)},_getTForX:function(I){for(var B=this._p[0],G=this._p[2],re=this._mSampleValues,le=0,he=1,ke=pe-1;he!==ke&&re[he]<=I;++he)le+=ee;--he;var tt=(I-re[he])/(re[he+1]-re[he]),Qe=le+tt*ee,Ne=Y(Qe,B,G);return Ne>=P?fe(I,Qe,B,G):Ne===0?Qe:de(I,le,le+ee,B,G)}},c}(),Wu=function(){function c(p){return p.concat(Ue(p.length))}return{double:c}}(),wr=function(){return function(c,p,v){var x=0,P=c,_=Ue(P),q={newElement:pe,release:ee};function pe(){var ye;return x?(x-=1,ye=_[x]):ye=p(),ye}function ee(ye){x===P&&(_=Wu.double(_),P*=2),v&&v(ye),_[x]=ye,x+=1}return q}}(),Hu=function(){function c(){return{addedLength:0,percents:De("float32",Ds()),lengths:De("float32",Ds())}}return wr(8,c)}(),Gu=function(){function c(){return{lengths:[],totalLength:0}}function p(v){var x,P=v.lengths.length;for(x=0;x<P;x+=1)Hu.release(v.lengths[x]);v.lengths.length=0}return wr(8,c,p)}();function Oc(){var c=Math;function p(R,te,Y,de,fe,H){var Z=R*de+te*fe+Y*H-fe*de-H*R-Y*te;return Z>-.001&&Z<.001}function v(R,te,Y,de,fe,H,Z,I,B){if(Y===0&&H===0&&B===0)return p(R,te,de,fe,Z,I);var G=c.sqrt(c.pow(de-R,2)+c.pow(fe-te,2)+c.pow(H-Y,2)),re=c.sqrt(c.pow(Z-R,2)+c.pow(I-te,2)+c.pow(B-Y,2)),le=c.sqrt(c.pow(Z-de,2)+c.pow(I-fe,2)+c.pow(B-H,2)),he;return G>re?G>le?he=G-re-le:he=le-re-G:le>re?he=le-re-G:he=re-G-le,he>-1e-4&&he<1e-4}var x=function(){return function(R,te,Y,de){var fe=Ds(),H,Z,I,B,G,re=0,le,he=[],ke=[],tt=Hu.newElement();for(I=Y.length,H=0;H<fe;H+=1){for(G=H/(fe-1),le=0,Z=0;Z<I;Z+=1)B=xt(1-G,3)*R[Z]+3*xt(1-G,2)*G*Y[Z]+3*(1-G)*xt(G,2)*de[Z]+xt(G,3)*te[Z],he[Z]=B,ke[Z]!==null&&(le+=xt(he[Z]-ke[Z],2)),ke[Z]=he[Z];le&&(le=ln(le),re+=le),tt.percents[H]=G,tt.lengths[H]=re}return tt.addedLength=re,tt}}();function P(R){var te=Gu.newElement(),Y=R.c,de=R.v,fe=R.o,H=R.i,Z,I=R._length,B=te.lengths,G=0;for(Z=0;Z<I-1;Z+=1)B[Z]=x(de[Z],de[Z+1],fe[Z],H[Z+1]),G+=B[Z].addedLength;return Y&&I&&(B[Z]=x(de[Z],de[0],fe[Z],H[0]),G+=B[Z].addedLength),te.totalLength=G,te}function _(R){this.segmentLength=0,this.points=new Array(R)}function q(R,te){this.partialLength=R,this.point=te}var pe=function(){var R={};return function(te,Y,de,fe){var H=(te[0]+"_"+te[1]+"_"+Y[0]+"_"+Y[1]+"_"+de[0]+"_"+de[1]+"_"+fe[0]+"_"+fe[1]).replace(/\./g,"p");if(!R[H]){var Z=Ds(),I,B,G,re,le,he=0,ke,tt,Qe=null;te.length===2&&(te[0]!==Y[0]||te[1]!==Y[1])&&p(te[0],te[1],Y[0],Y[1],te[0]+de[0],te[1]+de[1])&&p(te[0],te[1],Y[0],Y[1],Y[0]+fe[0],Y[1]+fe[1])&&(Z=2);var Ne=new _(Z);for(G=de.length,I=0;I<Z;I+=1){for(tt=Ue(G),le=I/(Z-1),ke=0,B=0;B<G;B+=1)re=xt(1-le,3)*te[B]+3*xt(1-le,2)*le*(te[B]+de[B])+3*(1-le)*xt(le,2)*(Y[B]+fe[B])+xt(le,3)*Y[B],tt[B]=re,Qe!==null&&(ke+=xt(tt[B]-Qe[B],2));ke=ln(ke),he+=ke,Ne.points[I]=new q(ke,tt),Qe=tt}Ne.segmentLength=he,R[H]=Ne}return R[H]}}();function ee(R,te){var Y=te.percents,de=te.lengths,fe=Y.length,H=$t((fe-1)*R),Z=R*te.addedLength,I=0;if(H===fe-1||H===0||Z===de[H])return Y[H];for(var B=de[H]>Z?-1:1,G=!0;G;)if(de[H]<=Z&&de[H+1]>Z?(I=(Z-de[H])/(de[H+1]-de[H]),G=!1):H+=B,H<0||H>=fe-1){if(H===fe-1)return Y[H];G=!1}return Y[H]+(Y[H+1]-Y[H])*I}function ye(R,te,Y,de,fe,H){var Z=ee(fe,H),I=1-Z,B=c.round((I*I*I*R[0]+(Z*I*I+I*Z*I+I*I*Z)*Y[0]+(Z*Z*I+I*Z*Z+Z*I*Z)*de[0]+Z*Z*Z*te[0])*1e3)/1e3,G=c.round((I*I*I*R[1]+(Z*I*I+I*Z*I+I*I*Z)*Y[1]+(Z*Z*I+I*Z*Z+Z*I*Z)*de[1]+Z*Z*Z*te[1])*1e3)/1e3;return[B,G]}var we=De("float32",8);function Me(R,te,Y,de,fe,H,Z){fe<0?fe=0:fe>1&&(fe=1);var I=ee(fe,Z);H=H>1?1:H;var B=ee(H,Z),G,re=R.length,le=1-I,he=1-B,ke=le*le*le,tt=I*le*le*3,Qe=I*I*le*3,Ne=I*I*I,at=le*le*he,ft=I*le*he+le*I*he+le*le*B,Be=I*I*he+le*I*B+I*le*B,be=I*I*B,ce=le*he*he,Q=I*he*he+le*B*he+le*he*B,me=I*B*he+le*B*B+I*he*B,je=I*B*B,Fe=he*he*he,ct=B*he*he+he*B*he+he*he*B,Tt=B*B*he+he*B*B+B*he*B,Ct=B*B*B;for(G=0;G<re;G+=1)we[G*4]=c.round((ke*R[G]+tt*Y[G]+Qe*de[G]+Ne*te[G])*1e3)/1e3,we[G*4+1]=c.round((at*R[G]+ft*Y[G]+Be*de[G]+be*te[G])*1e3)/1e3,we[G*4+2]=c.round((ce*R[G]+Q*Y[G]+me*de[G]+je*te[G])*1e3)/1e3,we[G*4+3]=c.round((Fe*R[G]+ct*Y[G]+Tt*de[G]+Ct*te[G])*1e3)/1e3;return we}return{getSegmentsLength:P,getNewSegment:Me,getPointInSegment:ye,buildBezierData:pe,pointOnLine2D:p,pointOnLine3D:v}}var Zr=Oc(),st=function(){var c=ge,p=Math.abs;function v(fe,H){var Z=this.offsetTime,I;this.propType==="multidimensional"&&(I=De("float32",this.pv.length));for(var B=H.lastIndex,G=B,re=this.keyframes.length-1,le=!0,he,ke,tt;le;){if(he=this.keyframes[G],ke=this.keyframes[G+1],G===re-1&&fe>=ke.t-Z){he.h&&(he=ke),B=0;break}if(ke.t-Z>fe){B=G;break}G<re-1?G+=1:(B=0,le=!1)}tt=this.keyframesMetadata[G]||{};var Qe,Ne,at,ft,Be,be,ce=ke.t-Z,Q=he.t-Z,me;if(he.to){tt.bezierData||(tt.bezierData=Zr.buildBezierData(he.s,ke.s||he.e,he.to,he.ti));var je=tt.bezierData;if(fe>=ce||fe<Q){var Fe=fe>=ce?je.points.length-1:0;for(Ne=je.points[Fe].point.length,Qe=0;Qe<Ne;Qe+=1)I[Qe]=je.points[Fe].point[Qe]}else{tt.__fnct?be=tt.__fnct:(be=uo.getBezierEasing(he.o.x,he.o.y,he.i.x,he.i.y,he.n).get,tt.__fnct=be),at=be((fe-Q)/(ce-Q));var ct=je.segmentLength*at,Tt,Ct=H.lastFrame<fe&&H._lastKeyframeIndex===G?H._lastAddedLength:0;for(Be=H.lastFrame<fe&&H._lastKeyframeIndex===G?H._lastPoint:0,le=!0,ft=je.points.length;le;){if(Ct+=je.points[Be].partialLength,ct===0||at===0||Be===je.points.length-1){for(Ne=je.points[Be].point.length,Qe=0;Qe<Ne;Qe+=1)I[Qe]=je.points[Be].point[Qe];break}else if(ct>=Ct&&ct<Ct+je.points[Be+1].partialLength){for(Tt=(ct-Ct)/je.points[Be+1].partialLength,Ne=je.points[Be].point.length,Qe=0;Qe<Ne;Qe+=1)I[Qe]=je.points[Be].point[Qe]+(je.points[Be+1].point[Qe]-je.points[Be].point[Qe])*Tt;break}Be<ft-1?Be+=1:le=!1}H._lastPoint=Be,H._lastAddedLength=Ct-je.points[Be].partialLength,H._lastKeyframeIndex=G}}else{var xn,zt,fr,Xn,Bn;if(re=he.s.length,me=ke.s||he.e,this.sh&&he.h!==1)if(fe>=ce)I[0]=me[0],I[1]=me[1],I[2]=me[2];else if(fe<=Q)I[0]=he.s[0],I[1]=he.s[1],I[2]=he.s[2];else{var jn=_(he.s),Kn=_(me),yr=(fe-Q)/(ce-Q);P(I,x(jn,Kn,yr))}else for(G=0;G<re;G+=1)he.h!==1&&(fe>=ce?at=1:fe<Q?at=0:(he.o.x.constructor===Array?(tt.__fnct||(tt.__fnct=[]),tt.__fnct[G]?be=tt.__fnct[G]:(xn=he.o.x[G]===void 0?he.o.x[0]:he.o.x[G],zt=he.o.y[G]===void 0?he.o.y[0]:he.o.y[G],fr=he.i.x[G]===void 0?he.i.x[0]:he.i.x[G],Xn=he.i.y[G]===void 0?he.i.y[0]:he.i.y[G],be=uo.getBezierEasing(xn,zt,fr,Xn).get,tt.__fnct[G]=be)):tt.__fnct?be=tt.__fnct:(xn=he.o.x,zt=he.o.y,fr=he.i.x,Xn=he.i.y,be=uo.getBezierEasing(xn,zt,fr,Xn).get,he.keyframeMetadata=be),at=be((fe-Q)/(ce-Q)))),me=ke.s||he.e,Bn=he.h===1?he.s[G]:he.s[G]+(me[G]-he.s[G])*at,this.propType==="multidimensional"?I[G]=Bn:I=Bn}return H.lastIndex=B,I}function x(fe,H,Z){var I=[],B=fe[0],G=fe[1],re=fe[2],le=fe[3],he=H[0],ke=H[1],tt=H[2],Qe=H[3],Ne,at,ft,Be,be;return at=B*he+G*ke+re*tt+le*Qe,at<0&&(at=-at,he=-he,ke=-ke,tt=-tt,Qe=-Qe),1-at>1e-6?(Ne=Math.acos(at),ft=Math.sin(Ne),Be=Math.sin((1-Z)*Ne)/ft,be=Math.sin(Z*Ne)/ft):(Be=1-Z,be=Z),I[0]=Be*B+be*he,I[1]=Be*G+be*ke,I[2]=Be*re+be*tt,I[3]=Be*le+be*Qe,I}function P(fe,H){var Z=H[0],I=H[1],B=H[2],G=H[3],re=Math.atan2(2*I*G-2*Z*B,1-2*I*I-2*B*B),le=Math.asin(2*Z*I+2*B*G),he=Math.atan2(2*Z*G-2*I*B,1-2*Z*Z-2*B*B);fe[0]=re/Ee,fe[1]=le/Ee,fe[2]=he/Ee}function _(fe){var H=fe[0]*Ee,Z=fe[1]*Ee,I=fe[2]*Ee,B=Math.cos(H/2),G=Math.cos(Z/2),re=Math.cos(I/2),le=Math.sin(H/2),he=Math.sin(Z/2),ke=Math.sin(I/2),tt=B*G*re-le*he*ke,Qe=le*he*re+B*G*ke,Ne=le*G*re+B*he*ke,at=B*he*re-le*G*ke;return[Qe,Ne,at,tt]}function q(){var fe=this.comp.renderedFrame-this.offsetTime,H=this.keyframes[0].t-this.offsetTime,Z=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(fe===this._caching.lastFrame||this._caching.lastFrame!==c&&(this._caching.lastFrame>=Z&&fe>=Z||this._caching.lastFrame<H&&fe<H))){this._caching.lastFrame>=fe&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var I=this.interpolateValue(fe,this._caching);this.pv=I}return this._caching.lastFrame=fe,this.pv}function pe(fe){var H;if(this.propType==="unidimensional")H=fe*this.mult,p(this.v-H)>1e-5&&(this.v=H,this._mdf=!0);else for(var Z=0,I=this.v.length;Z<I;)H=fe[Z]*this.mult,p(this.v[Z]-H)>1e-5&&(this.v[Z]=H,this._mdf=!0),Z+=1}function ee(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var fe,H=this.effectsSequence.length,Z=this.kf?this.pv:this.data.k;for(fe=0;fe<H;fe+=1)Z=this.effectsSequence[fe](Z);this.setVValue(Z),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function ye(fe){this.effectsSequence.push(fe),this.container.addDynamicProperty(this)}function we(fe,H,Z,I){this.propType="unidimensional",this.mult=Z||1,this.data=H,this.v=Z?H.k*Z:H.k,this.pv=H.k,this._mdf=!1,this.elem=fe,this.container=I,this.comp=fe.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=ee,this.setVValue=pe,this.addEffect=ye}function Me(fe,H,Z,I){this.propType="multidimensional",this.mult=Z||1,this.data=H,this._mdf=!1,this.elem=fe,this.container=I,this.comp=fe.comp,this.k=!1,this.kf=!1,this.frameId=-1;var B,G=H.k.length;for(this.v=De("float32",G),this.pv=De("float32",G),this.vel=De("float32",G),B=0;B<G;B+=1)this.v[B]=H.k[B]*this.mult,this.pv[B]=H.k[B];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=ee,this.setVValue=pe,this.addEffect=ye}function R(fe,H,Z,I){this.propType="unidimensional",this.keyframes=H.k,this.keyframesMetadata=[],this.offsetTime=fe.data.st,this.frameId=-1,this._caching={lastFrame:c,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=H,this.mult=Z||1,this.elem=fe,this.container=I,this.comp=fe.comp,this.v=c,this.pv=c,this._isFirstFrame=!0,this.getValue=ee,this.setVValue=pe,this.interpolateValue=v,this.effectsSequence=[q.bind(this)],this.addEffect=ye}function te(fe,H,Z,I){this.propType="multidimensional";var B,G=H.k.length,re,le,he,ke;for(B=0;B<G-1;B+=1)H.k[B].to&&H.k[B].s&&H.k[B+1]&&H.k[B+1].s&&(re=H.k[B].s,le=H.k[B+1].s,he=H.k[B].to,ke=H.k[B].ti,(re.length===2&&!(re[0]===le[0]&&re[1]===le[1])&&Zr.pointOnLine2D(re[0],re[1],le[0],le[1],re[0]+he[0],re[1]+he[1])&&Zr.pointOnLine2D(re[0],re[1],le[0],le[1],le[0]+ke[0],le[1]+ke[1])||re.length===3&&!(re[0]===le[0]&&re[1]===le[1]&&re[2]===le[2])&&Zr.pointOnLine3D(re[0],re[1],re[2],le[0],le[1],le[2],re[0]+he[0],re[1]+he[1],re[2]+he[2])&&Zr.pointOnLine3D(re[0],re[1],re[2],le[0],le[1],le[2],le[0]+ke[0],le[1]+ke[1],le[2]+ke[2]))&&(H.k[B].to=null,H.k[B].ti=null),re[0]===le[0]&&re[1]===le[1]&&he[0]===0&&he[1]===0&&ke[0]===0&&ke[1]===0&&(re.length===2||re[2]===le[2]&&he[2]===0&&ke[2]===0)&&(H.k[B].to=null,H.k[B].ti=null));this.effectsSequence=[q.bind(this)],this.data=H,this.keyframes=H.k,this.keyframesMetadata=[],this.offsetTime=fe.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=Z||1,this.elem=fe,this.container=I,this.comp=fe.comp,this.getValue=ee,this.setVValue=pe,this.interpolateValue=v,this.frameId=-1;var tt=H.k[0].s.length;for(this.v=De("float32",tt),this.pv=De("float32",tt),B=0;B<tt;B+=1)this.v[B]=c,this.pv[B]=c;this._caching={lastFrame:c,lastIndex:0,value:De("float32",tt)},this.addEffect=ye}function Y(fe,H,Z,I,B){var G;if(!H.k.length)G=new we(fe,H,I,B);else if(typeof H.k[0]=="number")G=new Me(fe,H,I,B);else switch(Z){case 0:G=new R(fe,H,I,B);break;case 1:G=new te(fe,H,I,B);break}return G.effectsSequence.length&&B.addDynamicProperty(G),G}var de={getProp:Y};return de}();function dn(){}dn.prototype={addDynamicProperty:function(p){this.dynamicProperties.indexOf(p)===-1&&(this.dynamicProperties.push(p),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var p,v=this.dynamicProperties.length;for(p=0;p<v;p+=1)this.dynamicProperties[p].getValue(),this.dynamicProperties[p]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(p){this.container=p,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var rs=function(){function c(){return De("float32",2)}return wr(8,c)}();function fi(){this.c=!1,this._length=0,this._maxLength=8,this.v=Ue(this._maxLength),this.o=Ue(this._maxLength),this.i=Ue(this._maxLength)}fi.prototype.setPathData=function(c,p){this.c=c,this.setLength(p);for(var v=0;v<p;)this.v[v]=rs.newElement(),this.o[v]=rs.newElement(),this.i[v]=rs.newElement(),v+=1},fi.prototype.setLength=function(c){for(;this._maxLength<c;)this.doubleArrayLength();this._length=c},fi.prototype.doubleArrayLength=function(){this.v=this.v.concat(Ue(this._maxLength)),this.i=this.i.concat(Ue(this._maxLength)),this.o=this.o.concat(Ue(this._maxLength)),this._maxLength*=2},fi.prototype.setXYAt=function(c,p,v,x,P){var _;switch(this._length=Math.max(this._length,x+1),this._length>=this._maxLength&&this.doubleArrayLength(),v){case"v":_=this.v;break;case"i":_=this.i;break;case"o":_=this.o;break;default:_=[];break}(!_[x]||_[x]&&!P)&&(_[x]=rs.newElement()),_[x][0]=c,_[x][1]=p},fi.prototype.setTripleAt=function(c,p,v,x,P,_,q,pe){this.setXYAt(c,p,"v",q,pe),this.setXYAt(v,x,"o",q,pe),this.setXYAt(P,_,"i",q,pe)},fi.prototype.reverse=function(){var c=new fi;c.setPathData(this.c,this._length);var p=this.v,v=this.o,x=this.i,P=0;this.c&&(c.setTripleAt(p[0][0],p[0][1],x[0][0],x[0][1],v[0][0],v[0][1],0,!1),P=1);var _=this._length-1,q=this._length,pe;for(pe=P;pe<q;pe+=1)c.setTripleAt(p[_][0],p[_][1],x[_][0],x[_][1],v[_][0],v[_][1],pe,!1),_-=1;return c},fi.prototype.length=function(){return this._length};var Zn=function(){function c(){return new fi}function p(P){var _=P._length,q;for(q=0;q<_;q+=1)rs.release(P.v[q]),rs.release(P.i[q]),rs.release(P.o[q]),P.v[q]=null,P.i[q]=null,P.o[q]=null;P._length=0,P.c=!1}function v(P){var _=x.newElement(),q,pe=P._length===void 0?P.v.length:P._length;for(_.setLength(pe),_.c=P.c,q=0;q<pe;q+=1)_.setTripleAt(P.v[q][0],P.v[q][1],P.o[q][0],P.o[q][1],P.i[q][0],P.i[q][1],q);return _}var x=wr(4,c,p);return x.clone=v,x}();function Ia(){this._length=0,this._maxLength=4,this.shapes=Ue(this._maxLength)}Ia.prototype.addShape=function(c){this._length===this._maxLength&&(this.shapes=this.shapes.concat(Ue(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=c,this._length+=1},Ia.prototype.releaseShapes=function(){var c;for(c=0;c<this._length;c+=1)Zn.release(this.shapes[c]);this._length=0};var As=function(){var c={newShapeCollection:P,release:_},p=0,v=4,x=Ue(v);function P(){var q;return p?(p-=1,q=x[p]):q=new Ia,q}function _(q){var pe,ee=q._length;for(pe=0;pe<ee;pe+=1)Zn.release(q.shapes[pe]);q._length=0,p===v&&(x=Wu.double(x),v*=2),x[p]=q,p+=1}return c}(),di=function(){var c=-999999;function p(H,Z,I){var B=I.lastIndex,G,re,le,he,ke,tt,Qe,Ne,at,ft=this.keyframes;if(H<ft[0].t-this.offsetTime)G=ft[0].s[0],le=!0,B=0;else if(H>=ft[ft.length-1].t-this.offsetTime)G=ft[ft.length-1].s?ft[ft.length-1].s[0]:ft[ft.length-2].e[0],le=!0;else{for(var Be=B,be=ft.length-1,ce=!0,Q,me,je;ce&&(Q=ft[Be],me=ft[Be+1],!(me.t-this.offsetTime>H));)Be<be-1?Be+=1:ce=!1;if(je=this.keyframesMetadata[Be]||{},le=Q.h===1,B=Be,!le){if(H>=me.t-this.offsetTime)Ne=1;else if(H<Q.t-this.offsetTime)Ne=0;else{var Fe;je.__fnct?Fe=je.__fnct:(Fe=uo.getBezierEasing(Q.o.x,Q.o.y,Q.i.x,Q.i.y).get,je.__fnct=Fe),Ne=Fe((H-(Q.t-this.offsetTime))/(me.t-this.offsetTime-(Q.t-this.offsetTime)))}re=me.s?me.s[0]:Q.e[0]}G=Q.s[0]}for(tt=Z._length,Qe=G.i[0].length,I.lastIndex=B,he=0;he<tt;he+=1)for(ke=0;ke<Qe;ke+=1)at=le?G.i[he][ke]:G.i[he][ke]+(re.i[he][ke]-G.i[he][ke])*Ne,Z.i[he][ke]=at,at=le?G.o[he][ke]:G.o[he][ke]+(re.o[he][ke]-G.o[he][ke])*Ne,Z.o[he][ke]=at,at=le?G.v[he][ke]:G.v[he][ke]+(re.v[he][ke]-G.v[he][ke])*Ne,Z.v[he][ke]=at}function v(){var H=this.comp.renderedFrame-this.offsetTime,Z=this.keyframes[0].t-this.offsetTime,I=this.keyframes[this.keyframes.length-1].t-this.offsetTime,B=this._caching.lastFrame;return B!==c&&(B<Z&&H<Z||B>I&&H>I)||(this._caching.lastIndex=B<H?this._caching.lastIndex:0,this.interpolateShape(H,this.pv,this._caching)),this._caching.lastFrame=H,this.pv}function x(){this.paths=this.localShapeCollection}function P(H,Z){if(H._length!==Z._length||H.c!==Z.c)return!1;var I,B=H._length;for(I=0;I<B;I+=1)if(H.v[I][0]!==Z.v[I][0]||H.v[I][1]!==Z.v[I][1]||H.o[I][0]!==Z.o[I][0]||H.o[I][1]!==Z.o[I][1]||H.i[I][0]!==Z.i[I][0]||H.i[I][1]!==Z.i[I][1])return!1;return!0}function _(H){P(this.v,H)||(this.v=Zn.clone(H),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function q(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var H;this.kf?H=this.pv:this.data.ks?H=this.data.ks.k:H=this.data.pt.k;var Z,I=this.effectsSequence.length;for(Z=0;Z<I;Z+=1)H=this.effectsSequence[Z](H);this.setVValue(H),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function pe(H,Z,I){this.propType="shape",this.comp=H.comp,this.container=H,this.elem=H,this.data=Z,this.k=!1,this.kf=!1,this._mdf=!1;var B=I===3?Z.pt.k:Z.ks.k;this.v=Zn.clone(B),this.pv=Zn.clone(this.v),this.localShapeCollection=As.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=x,this.effectsSequence=[]}function ee(H){this.effectsSequence.push(H),this.container.addDynamicProperty(this)}pe.prototype.interpolateShape=p,pe.prototype.getValue=q,pe.prototype.setVValue=_,pe.prototype.addEffect=ee;function ye(H,Z,I){this.propType="shape",this.comp=H.comp,this.elem=H,this.container=H,this.offsetTime=H.data.st,this.keyframes=I===3?Z.pt.k:Z.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var B=this.keyframes[0].s[0].i.length;this.v=Zn.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,B),this.pv=Zn.clone(this.v),this.localShapeCollection=As.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=c,this.reset=x,this._caching={lastFrame:c,lastIndex:0},this.effectsSequence=[v.bind(this)]}ye.prototype.getValue=q,ye.prototype.interpolateShape=p,ye.prototype.setVValue=_,ye.prototype.addEffect=ee;var we=function(){var H=Te;function Z(I,B){this.v=Zn.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=As.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=B.d,this.elem=I,this.comp=I.comp,this.frameId=-1,this.initDynamicPropertyContainer(I),this.p=st.getProp(I,B.p,1,0,this),this.s=st.getProp(I,B.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return Z.prototype={reset:x,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var B=this.p.v[0],G=this.p.v[1],re=this.s.v[0]/2,le=this.s.v[1]/2,he=this.d!==3,ke=this.v;ke.v[0][0]=B,ke.v[0][1]=G-le,ke.v[1][0]=he?B+re:B-re,ke.v[1][1]=G,ke.v[2][0]=B,ke.v[2][1]=G+le,ke.v[3][0]=he?B-re:B+re,ke.v[3][1]=G,ke.i[0][0]=he?B-re*H:B+re*H,ke.i[0][1]=G-le,ke.i[1][0]=he?B+re:B-re,ke.i[1][1]=G-le*H,ke.i[2][0]=he?B+re*H:B-re*H,ke.i[2][1]=G+le,ke.i[3][0]=he?B-re:B+re,ke.i[3][1]=G+le*H,ke.o[0][0]=he?B+re*H:B-re*H,ke.o[0][1]=G-le,ke.o[1][0]=he?B+re:B-re,ke.o[1][1]=G+le*H,ke.o[2][0]=he?B-re*H:B+re*H,ke.o[2][1]=G+le,ke.o[3][0]=he?B-re:B+re,ke.o[3][1]=G-le*H}},Ie([dn],Z),Z}(),Me=function(){function H(Z,I){this.v=Zn.newElement(),this.v.setPathData(!0,0),this.elem=Z,this.comp=Z.comp,this.data=I,this.frameId=-1,this.d=I.d,this.initDynamicPropertyContainer(Z),I.sy===1?(this.ir=st.getProp(Z,I.ir,0,0,this),this.is=st.getProp(Z,I.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=st.getProp(Z,I.pt,0,0,this),this.p=st.getProp(Z,I.p,1,0,this),this.r=st.getProp(Z,I.r,0,Ee,this),this.or=st.getProp(Z,I.or,0,0,this),this.os=st.getProp(Z,I.os,0,.01,this),this.localShapeCollection=As.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return H.prototype={reset:x,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var I=Math.floor(this.pt.v)*2,B=Math.PI*2/I,G=!0,re=this.or.v,le=this.ir.v,he=this.os.v,ke=this.is.v,tt=2*Math.PI*re/(I*2),Qe=2*Math.PI*le/(I*2),Ne,at,ft,Be,be=-Math.PI/2;be+=this.r.v;var ce=this.data.d===3?-1:1;for(this.v._length=0,Ne=0;Ne<I;Ne+=1){at=G?re:le,ft=G?he:ke,Be=G?tt:Qe;var Q=at*Math.cos(be),me=at*Math.sin(be),je=Q===0&&me===0?0:me/Math.sqrt(Q*Q+me*me),Fe=Q===0&&me===0?0:-Q/Math.sqrt(Q*Q+me*me);Q+=+this.p.v[0],me+=+this.p.v[1],this.v.setTripleAt(Q,me,Q-je*Be*ft*ce,me-Fe*Be*ft*ce,Q+je*Be*ft*ce,me+Fe*Be*ft*ce,Ne,!0),G=!G,be+=B*ce}},convertPolygonToPath:function(){var I=Math.floor(this.pt.v),B=Math.PI*2/I,G=this.or.v,re=this.os.v,le=2*Math.PI*G/(I*4),he,ke=-Math.PI*.5,tt=this.data.d===3?-1:1;for(ke+=this.r.v,this.v._length=0,he=0;he<I;he+=1){var Qe=G*Math.cos(ke),Ne=G*Math.sin(ke),at=Qe===0&&Ne===0?0:Ne/Math.sqrt(Qe*Qe+Ne*Ne),ft=Qe===0&&Ne===0?0:-Qe/Math.sqrt(Qe*Qe+Ne*Ne);Qe+=+this.p.v[0],Ne+=+this.p.v[1],this.v.setTripleAt(Qe,Ne,Qe-at*le*re*tt,Ne-ft*le*re*tt,Qe+at*le*re*tt,Ne+ft*le*re*tt,he,!0),ke+=B*tt}this.paths.length=0,this.paths[0]=this.v}},Ie([dn],H),H}(),R=function(){function H(Z,I){this.v=Zn.newElement(),this.v.c=!0,this.localShapeCollection=As.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=Z,this.comp=Z.comp,this.frameId=-1,this.d=I.d,this.initDynamicPropertyContainer(Z),this.p=st.getProp(Z,I.p,1,0,this),this.s=st.getProp(Z,I.s,1,0,this),this.r=st.getProp(Z,I.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return H.prototype={convertRectToPath:function(){var I=this.p.v[0],B=this.p.v[1],G=this.s.v[0]/2,re=this.s.v[1]/2,le=Rt(G,re,this.r.v),he=le*(1-Te);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(I+G,B-re+le,I+G,B-re+le,I+G,B-re+he,0,!0),this.v.setTripleAt(I+G,B+re-le,I+G,B+re-he,I+G,B+re-le,1,!0),le!==0?(this.v.setTripleAt(I+G-le,B+re,I+G-le,B+re,I+G-he,B+re,2,!0),this.v.setTripleAt(I-G+le,B+re,I-G+he,B+re,I-G+le,B+re,3,!0),this.v.setTripleAt(I-G,B+re-le,I-G,B+re-le,I-G,B+re-he,4,!0),this.v.setTripleAt(I-G,B-re+le,I-G,B-re+he,I-G,B-re+le,5,!0),this.v.setTripleAt(I-G+le,B-re,I-G+le,B-re,I-G+he,B-re,6,!0),this.v.setTripleAt(I+G-le,B-re,I+G-he,B-re,I+G-le,B-re,7,!0)):(this.v.setTripleAt(I-G,B+re,I-G+he,B+re,I-G,B+re,2),this.v.setTripleAt(I-G,B-re,I-G,B-re+he,I-G,B-re,3))):(this.v.setTripleAt(I+G,B-re+le,I+G,B-re+he,I+G,B-re+le,0,!0),le!==0?(this.v.setTripleAt(I+G-le,B-re,I+G-le,B-re,I+G-he,B-re,1,!0),this.v.setTripleAt(I-G+le,B-re,I-G+he,B-re,I-G+le,B-re,2,!0),this.v.setTripleAt(I-G,B-re+le,I-G,B-re+le,I-G,B-re+he,3,!0),this.v.setTripleAt(I-G,B+re-le,I-G,B+re-he,I-G,B+re-le,4,!0),this.v.setTripleAt(I-G+le,B+re,I-G+le,B+re,I-G+he,B+re,5,!0),this.v.setTripleAt(I+G-le,B+re,I+G-he,B+re,I+G-le,B+re,6,!0),this.v.setTripleAt(I+G,B+re-le,I+G,B+re-le,I+G,B+re-he,7,!0)):(this.v.setTripleAt(I-G,B-re,I-G+he,B-re,I-G,B-re,1,!0),this.v.setTripleAt(I-G,B+re,I-G,B+re-he,I-G,B+re,2,!0),this.v.setTripleAt(I+G,B+re,I+G-he,B+re,I+G,B+re,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:x},Ie([dn],H),H}();function te(H,Z,I){var B;if(I===3||I===4){var G=I===3?Z.pt:Z.ks,re=G.k;re.length?B=new ye(H,Z,I):B=new pe(H,Z,I)}else I===5?B=new R(H,Z):I===6?B=new we(H,Z):I===7&&(B=new Me(H,Z));return B.k&&H.addDynamicProperty(B),B}function Y(){return pe}function de(){return ye}var fe={};return fe.getShapeProp=te,fe.getConstructorFunction=Y,fe.getKeyframedConstructorFunction=de,fe}();/*!
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"dayjs": "1.11.13",
|
|
16
16
|
"lottie-light-react": "2.4.0",
|
|
17
17
|
"motion": "12.4.2",
|
|
18
|
-
"prismjs": "1.
|
|
18
|
+
"prismjs": "1.30.0",
|
|
19
19
|
"react-aria": "3.38.0",
|
|
20
20
|
"react-hook-form": "7.54.2",
|
|
21
21
|
"react-international-phone": "4.5.0",
|
|
@@ -116,5 +116,5 @@
|
|
|
116
116
|
"test-storybook": "test-storybook"
|
|
117
117
|
},
|
|
118
118
|
"typings": "./dist/index.d.ts",
|
|
119
|
-
"version": "3.16.
|
|
119
|
+
"version": "3.16.7"
|
|
120
120
|
}
|