(globalThis.webpackChunk_affine_web=globalThis.webpackChunk_affine_web||[]).push([[4121],{23993:(e,t,r)=>{"use strict";r.d(t,{E:()=>l,S:()=>u});var n=r(8325);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function o(e){for(var t=1;t{"use strict";r.d(t,{G:()=>v,Q:()=>y});var n=r(8325);function i(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function o(e,t){if(null==e)return{};var r,n,o=i(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n=r.bottom-n?"reorder-below":"make-child"}function d(e){var t=e.element,r=e.input,n=e.currentLevel,i=e.indentPerLevel,o=e.mode,s={x:r.clientX,y:r.clientY},a=t.getBoundingClientRect();if("standard"===o)return{type:h({borderBox:a,client:s}),indentPerLevel:i,currentLevel:n};var l=c(a);if("expanded"===o){var u=h({borderBox:a,client:s});return{type:"reorder-above"===u?u:"make-child",indentPerLevel:i,currentLevel:n}}var d=i*n;return s.x{"use strict";function n(e){if(Array.isArray(e))return e}function i(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,s,a=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);reL,tO:()=>eR,$p:()=>ek});var u=r(41833),c="data-pdnd-honey-pot";function h(e){return e instanceof Element&&e.hasAttribute(c)}function d(e){var t=l(document.elementsFromPoint(e.x,e.y),2),r=t[0],n=t[1];return r?h(r)?null!=n?n:null:r:null}var f=r(8325),p=r(51884);function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function g(e){for(var t=1;t=r.x&&t.x<=r.x+r.width&&t.y>=r.y&&t.y<=r.y+r.height}function w(e){var t=e.initial,r=document.createElement("div");r.setAttribute(c,"true");var n=T({client:t});Object.assign(r.style,g(g({backgroundColor:"transparent",position:"fixed",padding:0,margin:0,boxSizing:"border-box"},C({clientRect:n})),{},{pointerEvents:"auto",zIndex:p.T})),document.body.appendChild(r);var i=(0,u.oI)(window,{type:"pointermove",listener:function(e){n=T({client:{x:e.clientX,y:e.clientY}}),Object.assign(r.style,C({clientRect:n}))},options:{capture:!0}});return function(e){var t=e.current;if(i(),S({client:t,clientRect:n})){r.remove();return}function o(){s(),r.remove()}var s=(0,u.vJ)(window,[{type:"pointerdown",listener:o},{type:"pointermove",listener:o},{type:"focusin",listener:o},{type:"focusout",listener:o},{type:"dragstart",listener:o},{type:"dragenter",listener:o},{type:"dragover",listener:o}],{capture:!0})}}function x(){var e=null;return{bindEvents:function(){return e=null,(0,u.oI)(window,{type:"pointermove",listener:function(t){e={x:t.clientX,y:t.clientY}},options:{capture:!0}})},getOnPostDispatch:function(){var t=null;return function(r){var n=r.eventName,i=r.payload;if("onDragStart"===n){var o,s=i.location.initial.input;t=w({initial:null!==(o=e)&&void 0!==o?o:{x:s.clientX,y:s.clientY}})}if("onDrop"===n){var a,l=i.location.current.input;null===(a=t)||void 0===a||a({current:{x:l.clientX,y:l.clientY}}),t=null,e=null}}}}}function R(e){if(Array.isArray(e))return o(e)}function k(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function L(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function I(e){return R(e)||k(e)||s(e)||L()}var O=r(30964),D=(0,O.O)(function(){return navigator.userAgent.includes("Firefox")}),N=r(82171),P={isLeavingWindow:Symbol("leaving"),isEnteringWindow:Symbol("entering")};function M(e){var t=e.dragLeave;return!!(0,N.n)()&&t.hasOwnProperty(P.isLeavingWindow)}function B(e){return"nodeName"in e}function U(e){return B(e)&&e.ownerDocument!==document}function F(e){var t=e.dragLeave,r=t.type,n=t.relatedTarget;return"dragleave"===r&&((0,N.n)()?M({dragLeave:t}):null==n||(D()?U(n):n instanceof HTMLIFrameElement))}function j(e){var t=e.onDragEnd;return[{type:"pointermove",listener:function(){var e=0;return function(){if(e<20){e++;return}t()}}()},{type:"pointerdown",listener:t}]}function K(e){return{altKey:e.altKey,button:e.button,buttons:e.buttons,ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey,clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY}}!function(){if("undefined"!=typeof window&&(0,N.n)()){var e=t();(0,u.vJ)(window,[{type:"dragstart",listener:function(){e.enterCount=0,e.isOverWindow=!0}},{type:"drop",listener:r},{type:"dragend",listener:r},{type:"dragenter",listener:function(t){e.isOverWindow||0!==e.enterCount||(t[P.isEnteringWindow]=!0),e.isOverWindow=!0,e.enterCount++}},{type:"dragleave",listener:function(t){e.enterCount--,e.isOverWindow&&0===e.enterCount&&(t[P.isLeavingWindow]=!0,e.isOverWindow=!1)}}],{capture:!0})}function t(){return{enterCount:0,isOverWindow:!1}}function r(){e=t()}}();var V=function(e){var t=[],r=null,n=function(){for(var n=arguments.length,i=Array(n),o=0;o0||(t.unmount(),ee.delete(e.typeKey))}}function en(){for(var e=arguments.length,t=Array(e),r=0;r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw o}}}}function el(e,t){if(e){if("string"==typeof e)return eu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eu(e,t)}}function eu(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r=o.length)return s;for(var l=ec(o),u=ec(s),c=[],h=0;h=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw o}}}}function ef(e,t){if(e){if("string"==typeof e)return ep(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ep(e,t)}}function ep(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r{"use strict";r.d(t,{kZ:()=>n.kZ,tO:()=>n.tO});var n=r(48486)},93752:(e,t,r)=>{"use strict";r.d(t,{l:()=>n});var n=function(e){var t=e.container.getBoundingClientRect();return{x:t.width/2,y:t.height/2}}},74540:(e,t,r)=>{"use strict";r.d(t,{Y:()=>i});var n=function(){if("undefined"==typeof window)return null;var e=new Image;return e.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",e}();function i(e){var t=e.nativeSetDragImage;t&&n&&t(n,0,0)}},83066:(e,t,r)=>{"use strict";function n(e){return function(t){return Object.assign(t.container.style,{borderLeft:"".concat(e.x," solid transparent"),borderTop:"".concat(e.y," solid transparent")}),{x:0,y:0}}}r.d(t,{I:()=>n})},99267:(e,t,r)=>{"use strict";function n(e){var t=e.element,r=e.input;return function(e){var n=e.container,i=t.getBoundingClientRect(),o=n.getBoundingClientRect();return{x:Math.min(r.clientX-i.x,o.width),y:Math.min(r.clientY-i.y,o.height)}}}r.d(t,{C:()=>n})},80719:(e,t,r)=>{"use strict";r.d(t,{t:()=>a});var n=r(48486),i=r(82171),o=r(51884);function s(){return{x:0,y:0}}function a(e){var t=e.render,r=e.nativeSetDragImage,a=e.getOffset,l=void 0===a?s:a,u=document.createElement("div");Object.assign(u.style,{position:"fixed",top:0,left:0,zIndex:o.T,pointerEvents:"none"}),document.body.append(u);var c=t({container:u}),h=l({container:u});function d(){f(),null==c||c(),document.body.removeChild(u)}(0,i.n)()&&queueMicrotask(function(){var e=u.getBoundingClientRect();0!==e.width&&(u.style.left="-".concat(e.width-1e-4,"px"))}),null==r||r(u,h.x,h.y);var f=(0,n.$p)({onDragStart:d,onDrop:d})}},30964:(e,t,r)=>{"use strict";function n(e){var t=null;return function(){if(!t){for(var r=arguments.length,n=Array(r),i=0;in})},82171:(e,t,r)=>{"use strict";r.d(t,{n:()=>n});var n=(0,r(30964).O)(function(){var e=navigator.userAgent;return e.includes("AppleWebKit")&&!e.includes("Chrome")})},51884:(e,t,r)=>{"use strict";r.d(t,{T:()=>n});var n=2147483647},11766:(e,t,r)=>{let{BinarySearchTree:n}=r(14551),{BinarySearchTreeNode:i}=r(3451),{AvlTree:o}=r(85125),{AvlTreeNode:s}=r(78793);e.exports={BinarySearchTree:n,BinarySearchTreeNode:i,AvlTree:o,AvlTreeNode:s}},85125:(e,t,r)=>{/** * datastructures-js/binary-search-tree * @copyright 2020 Eyas Ranjous * @license MIT */let{BinarySearchTree:n}=r(14551),{AvlTreeNode:i}=r(78793);class o extends n{constructor(e,t){if(e&&"function"!=typeof e)throw Error("AvlTree constructor expects a compare function");super(e,t)}_getNodeHeight(e){return e instanceof i?e.getHeight():0}_balanceNode(e){if(!e)return;e.updateHeight();let t=e.getBalance();if(t>1){let t=e.getLeft().getLeft(),r=e.getLeft().getRight();this._getNodeHeight(t)>=this._getNodeHeight(r)?e.rotateRight():e.getLeft().hasRight()&&e.rotateLeftRight()}else if(t<-1){let t=e.getRight().getRight(),r=e.getRight().getLeft();this._getNodeHeight(t)>=this._getNodeHeight(r)?e.rotateLeft():e.getRight().hasLeft()&&e.rotateRightLeft()}(t<-1||t>1)&&e===this._root&&(this._root=e.getParent())}insert(e){let t=new i(e,this._compare),r=n=>{let i=this._compare(e,n.getValue());i<0?n.hasLeft()?(r(n.getLeft()),this._balanceNode(n)):(t.setParent(n),n.setLeft(t).updateHeight(),this._count+=1):i>0?n.hasRight()?(r(n.getRight()),this._balanceNode(n)):(t.setParent(n),n.setRight(t).updateHeight(),this._count+=1):n.setValue(e)};return null===this._root?(this._root=t,this._count+=1):r(this._root),this}remove(e){let t=(e,r)=>{if(null===r)return!1;let n=this._compare(e,r.getValue());if(n<0){let n=t(e,r.getLeft());return this._balanceNode(r),n}if(n>0){let n=t(e,r.getRight());return this._balanceNode(r),n}return this.removeNode(r)};return t(e,this._root)}removeNode(e){if(null===e||!(e instanceof i))return!1;if(e.isLeaf())return e.isRoot()?this._root=null:0>this._compare(e.getValue(),e.getParent().getValue())?e.getParent().setLeft(null).updateHeight():e.getParent().setRight(null).updateHeight(),this._count-=1,!0;if(!e.hasRight())return e.isRoot()?this._root=e.getLeft():0>this._compare(e.getValue(),e.getParent().getValue())?e.getParent().setLeft(e.getLeft()).updateHeight():e.getParent().setRight(e.getLeft()).updateHeight(),e.getLeft().setParent(e.getParent()),this._count-=1,!0;if(!e.hasLeft())return e.isRoot()?this._root=e.getRight():0>this._compare(e.getValue(),e.getParent().getValue())?e.getParent().setLeft(e.getRight()).updateHeight():e.getParent().setRight(e.getRight()).updateHeight(),e.getRight().setParent(e.getParent()),this._count-=1,!0;let t=this.min(e.getRight()),r=this.removeNode(t);return e.setValue(t.getValue()),this._balanceNode(e),r}}t.AvlTree=o},78793:(e,t)=>{/** * datastructures-js/binary-search-tree * @copyright 2020 Eyas Ranjous * @license MIT */let r=(e,t)=>e===t?0:e>t?1:-1;class n{constructor(e,t){if(t&&"function"!=typeof t)throw Error("AvlTreeNode constructor expects a compare function");this._value=e,this._compare=t||r,this._left=null,this._right=null,this._parent=null,this._height=1}setValue(e){return this._value=e,this}getValue(){return this._value}setLeft(e){if(e&&!(e instanceof n))throw Error("setLeft expects an AvlTreeNode");return this._left=e||null,this}getLeft(){return this._left}hasLeft(){return this._left instanceof n}setRight(e){if(e&&!(e instanceof n))throw Error("setRight expects a AvlTreeNode or null");return this._right=e||null,this}getRight(){return this._right}hasRight(){return this._right instanceof n}setParent(e){if(e&&!(e instanceof n))throw Error("setParent expects an AvlTreeNode");return this._parent=e||null,this}getParent(){return this._parent}hasParent(){return this._parent instanceof n}isRoot(){return null===this._parent}isLeaf(){return!this.hasLeft()&&!this.hasRight()}rotateLeft(){let e=this._right;return null!==e&&(e.hasLeft()&&e.getLeft().setParent(this),this._right=e.getLeft(),e.setLeft(this),e.setParent(this._parent)),this.hasParent()&&null!==e&&(0>this._compare(this._parent.getValue(),e.getValue())?this._parent.setRight(e):this._parent.setLeft(e)),this._parent=e,this.updateHeight(),this.hasParent()&&this._parent.updateHeight(),this}rotateRight(){let e=this._left;return null!==e&&(e.hasRight()&&e.getRight().setParent(this),this._left=e.getRight(),e.setRight(this),e.setParent(this._parent)),this.hasParent()&&null!==e&&(this._compare(this._parent.getValue(),e.getValue())>0?this._parent.setLeft(e):this._parent.setRight(e)),this._parent=e,this.updateHeight(),this.hasParent()&&this._parent.updateHeight(),this}rotateLeftRight(){return this.hasLeft()&&this._left.rotateLeft(),this.rotateRight(),this}rotateRightLeft(){return this.hasRight()&&this._right.rotateRight(),this.rotateLeft(),this}getLeftHeight(){return this.hasLeft()?this.getLeft().getHeight():0}getRightHeight(){return this.hasRight()?this.getRight().getHeight():0}updateHeight(){return this._height=Math.max(this.getLeftHeight(),this.getRightHeight())+1,this}getHeight(){return this._height}getBalance(){return this.getLeftHeight()-this.getRightHeight()}isBalanced(){let e=this.getBalance();return e>=-1&&e<=1}}t.AvlTreeNode=n},14551:(e,t,r)=>{/** * datastructures-js/binary-search-tree * @copyright 2020 Eyas Ranjous * @license MIT */let{BinarySearchTreeNode:n}=r(3451),i=(e,t)=>e===t?0:e>t?1:-1;class o{constructor(e,t){if(e&&"function"!=typeof e)throw Error("BinarySearchTree constructor expects a compare function");this._compare=e||i,this._options=t||{},this._root=null,this._count=0}insert(e){let t=new n(e),r=n=>{let i=this._compare(t.getValue(),n.getValue());i<0?n.hasLeft()?r(n.getLeft()):(n.setLeft(t.setParent(n)),this._count+=1):i>0?n.hasRight()?r(n.getRight()):(n.setRight(t.setParent(n)),this._count+=1):n.setValue(e)};return null===this._root?(this._root=t,this._count+=1):r(this._root),this}has(e){let t=r=>{if(null===r)return!1;let n=this._compare(e,r.getValue());return 0===n||(n<0?t(r.getLeft()):t(r.getRight()))};return t(this._root)}hasKey(e){if(void 0===this._options.key||null===this._options.key)throw Error("Missing key prop name in constructor options");return this.has({[this._options.key]:e})}find(e){let t=r=>{if(null===r)return null;let n=this._compare(e,r.getValue());return 0===n?r:n<0?t(r.getLeft()):t(r.getRight())};return t(this._root)}findKey(e){if(void 0===this._options.key||null===this._options.key)throw Error("Missing key prop name in constructor options");return this.find({[this._options.key]:e})}max(e=this._root){return null===e?null:e.hasRight()?this.max(e.getRight()):e}min(e=this._root){return null===e?null:e.hasLeft()?this.min(e.getLeft()):e}lowerBound(e,t=!0){let r=null,n=i=>{if(null===i)return r;let o=this._compare(e,i.getValue());return o>0||t&&0===o?((null===r||0>=this._compare(r.getValue(),i.getValue()))&&(r=i),n(i.getRight())):n(i.getLeft())};return n(this._root)}lowerBoundKey(e,t=!0){if(void 0===this._options.key||null===this._options.key)throw Error("Missing key prop name in constructor options");return this.lowerBound({[this._options.key]:e},t)}floor(e,t=!0){return this.lowerBound(e,t)}floorKey(e,t=!0){return this.lowerBoundKey(e,t)}upperBound(e,t=!0){let r=null,n=i=>{if(null===i)return r;let o=this._compare(e,i.getValue());return o<0||t&&0===o?((null===r||this._compare(r.getValue(),i.getValue())>=0)&&(r=i),n(i.getLeft())):n(i.getRight())};return n(this._root)}upperBoundKey(e,t=!0){if(void 0===this._options.key||null===this._options.key)throw Error("Missing key prop name in constructor options");return this.upperBound({[this._options.key]:e},t)}ceil(e,t=!0){return this.upperBound(e,t)}ceilKey(e,t=!0){return this.upperBoundKey(e,t)}root(){return this._root}count(){return this._count}remove(e){let t=(e,r)=>{if(null===r)return!1;let n=this._compare(e,r.getValue());return n<0?t(e,r.getLeft()):n>0?t(e,r.getRight()):this.removeNode(r)};return t(e,this._root)}removeNode(e){if(null===e||!(e instanceof n))return!1;if(e.isLeaf())return e.isRoot()?this._root=null:0>this._compare(e.getValue(),e.getParent().getValue())?e.getParent().setLeft(null):e.getParent().setRight(null),this._count-=1,!0;if(!e.hasRight())return e.isRoot()?this._root=e.getLeft():0>this._compare(e.getValue(),e.getParent().getValue())?e.getParent().setLeft(e.getLeft()):e.getParent().setRight(e.getLeft()),e.getLeft().setParent(e.getParent()),this._count-=1,!0;if(!e.hasLeft())return e.isRoot()?this._root=e.getRight():0>this._compare(e.getValue(),e.getParent().getValue())?e.getParent().setLeft(e.getRight()):e.getParent().setRight(e.getRight()),e.getRight().setParent(e.getParent()),this._count-=1,!0;let t=this.min(e.getRight());return e.setValue(t.getValue()),this.removeNode(t)}traverseInOrder(e,t){if("function"!=typeof e)throw Error(".traverseInOrder expects a callback function");let r=n=>{!(null===n||t&&t())&&(r(n.getLeft()),t&&t()||(e(n),r(n.getRight())))};r(this._root)}traversePreOrder(e,t){if("function"!=typeof e)throw Error(".traversePreOrder expects a callback function");let r=n=>{null===n||t&&t()||(e(n),r(n.getLeft()),r(n.getRight()))};r(this._root)}traversePostOrder(e,t){if("function"!=typeof e)throw Error(".traversePostOrder expects a callback function");let r=n=>{!(null===n||t&&t())&&(r(n.getLeft()),r(n.getRight()),t&&t()||e(n))};r(this._root)}clear(){this._root=null,this._count=0}}t.BinarySearchTree=o},3451:(e,t)=>{/** * datastructures-js/binary-search-tree * @copyright 2020 Eyas Ranjous * @license MIT */class r{constructor(e){this._value=e,this._left=null,this._right=null,this._parent=null}setValue(e){return this._value=e,this}getValue(){return this._value}setLeft(e){if(e&&!(e instanceof r))throw Error("setLeft expects a BinarySearchTreeNode");return this._left=e||null,this}getLeft(){return this._left}hasLeft(){return this._left instanceof r}setRight(e){if(e&&!(e instanceof r))throw Error("setRight expects a BinarySearchTreeNode or null");return this._right=e||null,this}getRight(){return this._right}hasRight(){return this._right instanceof r}setParent(e){if(e&&!(e instanceof r))throw Error("setParent expects a BinarySearchTreeNode or null");return this._parent=e||null,this}getParent(){return this._parent}hasParent(){return this._parent instanceof r}isRoot(){return null===this._parent}isLeaf(){return!this.hasLeft()&&!this.hasRight()}}t.BinarySearchTreeNode=r},10677:(e,t,r)=>{"use strict";let n;r.d(t,{Mp:()=>to,vL:()=>a,AN:()=>eC,fp:()=>M,Sj:()=>G,fF:()=>tc,PM:()=>tu,zM:()=>tf,MS:()=>R,FR:()=>k});var i,o,s,a,l,u,c,h,d,f,p=r(86326),m=r(35623),g=r(69653);let v={display:"none"};function y(e){let{id:t,value:r}=e;return p.createElement("div",{id:t,style:v},r)}function E(e){let{id:t,announcement:r,ariaLiveType:n="assertive"}=e,i={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return p.createElement("div",{id:t,style:i,role:"status","aria-live":n,"aria-atomic":!0},r)}function _(){let[e,t]=(0,p.useState)("");return{announce:(0,p.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}let b=(0,p.createContext)(null);function A(e){let t=(0,p.useContext)(b);(0,p.useEffect)(()=>{if(!t)throw Error("useDndMonitor must be used within a children of ");return t(e)},[e,t])}function T(){let[e]=(0,p.useState)(()=>new Set),t=(0,p.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,p.useCallback)(t=>{let{type:r,event:n}=t;e.forEach(e=>{var t;return null==(t=e[r])?void 0:t.call(e,n)})},[e]),t]}let C={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},S={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was moved over droppable area "+r.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was dropped over droppable area "+r.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function w(e){let{announcements:t=S,container:r,hiddenTextDescribedById:n,screenReaderInstructions:i=C}=e,{announce:o,announcement:s}=_(),a=(0,g.YG)("DndLiveRegion"),[l,u]=(0,p.useState)(!1);if((0,p.useEffect)(()=>{u(!0)},[]),A((0,p.useMemo)(()=>({onDragStart(e){let{active:r}=e;o(t.onDragStart({active:r}))},onDragMove(e){let{active:r,over:n}=e;t.onDragMove&&o(t.onDragMove({active:r,over:n}))},onDragOver(e){let{active:r,over:n}=e;o(t.onDragOver({active:r,over:n}))},onDragEnd(e){let{active:r,over:n}=e;o(t.onDragEnd({active:r,over:n}))},onDragCancel(e){let{active:r,over:n}=e;o(t.onDragCancel({active:r,over:n}))}}),[o,t])),!l)return null;let c=p.createElement(p.Fragment,null,p.createElement(y,{id:n,value:i.draggable}),p.createElement(E,{id:a,announcement:s}));return r?(0,m.createPortal)(c,r):c}function x(){}function R(e,t){return(0,p.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}function k(){for(var e=arguments.length,t=Array(e),r=0;r[...t].filter(e=>null!=e),[...t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(i||(i={}));let L=Object.freeze({x:0,y:0});function I(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function O(e,t){let{data:{value:r}}=e,{data:{value:n}}=t;return r-n}function D(e,t){let{data:{value:r}}=e,{data:{value:n}}=t;return n-r}function N(e,t){if(!e||0===e.length)return null;let[r]=e;return t?r[t]:r}function P(e,t,r){return void 0===t&&(t=e.left),void 0===r&&(r=e.top),{x:t+.5*e.width,y:r+.5*e.height}}let M=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e,i=P(t,t.left,t.top),o=[];for(let e of n){let{id:t}=e,n=r.get(t);if(n){let r=I(P(n),i);o.push({id:t,data:{droppableContainer:e,value:r}})}}return o.sort(O)};function B(e,t){let r=Math.max(t.top,e.top),n=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),s=i-n,a=o-r;if(n{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e,i=[];for(let e of n){let{id:n}=e,o=r.get(n);if(o){let r=B(o,t);r>0&&i.push({id:n,data:{droppableContainer:e,value:r}})}}return i.sort(D)};function F(e,t,r){return{...e,scaleX:t&&r?t.width/r.width:1,scaleY:t&&r?t.height/r.height:1}}function j(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:L}let K=function(e){return function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i({...t,top:t.top+e*r.y,bottom:t.bottom+e*r.y,left:t.left+e*r.x,right:t.right+e*r.x}),{...t})}}(1);function V(e){if(e.startsWith("matrix3d(")){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function H(e,t,r){let n=V(t);if(!n)return e;let{scaleX:i,scaleY:o,x:s,y:a}=n,l=e.left-s-(1-i)*parseFloat(r),u=e.top-a-(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),c=i?e.width/i:e.width,h=o?e.height/o:e.height;return{width:c,height:h,top:u,right:l+c,bottom:u+h,left:l}}let z={ignoreTransform:!1};function G(e,t){void 0===t&&(t=z);let r=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:n}=(0,g.zk)(e).getComputedStyle(e);t&&(r=H(r,t,n))}let{top:n,left:i,width:o,height:s,bottom:a,right:l}=r;return{top:n,left:i,width:o,height:s,bottom:a,right:l}}function q(e){return G(e,{ignoreTransform:!0})}function W(e){let t=e.innerWidth,r=e.innerHeight;return{top:0,left:0,right:t,bottom:r,width:t,height:r}}function X(e,t){return void 0===t&&(t=(0,g.zk)(e).getComputedStyle(e)),"fixed"===t.position}function Y(e,t){void 0===t&&(t=(0,g.zk)(e).getComputedStyle(e));let r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{let n=t[e];return"string"==typeof n&&r.test(n)})}function Q(e,t){let r=[];function n(i){if(null!=t&&r.length>=t||!i)return r;if((0,g.wz)(i)&&null!=i.scrollingElement&&!r.includes(i.scrollingElement))return r.push(i.scrollingElement),r;if(!(0,g.sb)(i)||(0,g.xZ)(i)||r.includes(i))return r;let o=(0,g.zk)(e).getComputedStyle(i);return(i!==e&&Y(i,o)&&r.push(i),X(i,o))?r:n(i.parentNode)}return e?n(e):r}function Z(e){let[t]=Q(e,1);return null!=t?t:null}function J(e){return g.Sw&&e?(0,g.l6)(e)?e:(0,g.Ll)(e)?(0,g.wz)(e)||e===(0,g.TW)(e).scrollingElement?window:(0,g.sb)(e)?e:null:null:null}function ee(e){return(0,g.l6)(e)?e.scrollX:e.scrollLeft}function et(e){return(0,g.l6)(e)?e.scrollY:e.scrollTop}function er(e){return{x:ee(e),y:et(e)}}function en(e){return!!g.Sw&&!!e&&e===document.scrollingElement}function ei(e){let t={x:0,y:0},r=en(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},n={x:e.scrollWidth-r.width,y:e.scrollHeight-r.height},i=e.scrollTop<=t.y;return{isTop:i,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=n.y,isRight:e.scrollLeft>=n.x,maxScroll:n,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(o||(o={}));let eo={x:.2,y:.2};function es(e,t,r,n,i){let{top:s,left:a,right:l,bottom:u}=r;void 0===n&&(n=10),void 0===i&&(i=eo);let{isTop:c,isBottom:h,isLeft:d,isRight:f}=ei(e),p={x:0,y:0},m={x:0,y:0},g={height:t.height*i.y,width:t.width*i.x};return!c&&s<=t.top+g.height?(p.y=o.Backward,m.y=n*Math.abs((t.top+g.height-s)/g.height)):!h&&u>=t.bottom-g.height&&(p.y=o.Forward,m.y=n*Math.abs((t.bottom-g.height-u)/g.height)),!f&&l>=t.right-g.width?(p.x=o.Forward,m.x=n*Math.abs((t.right-g.width-l)/g.width)):!d&&a<=t.left+g.width&&(p.x=o.Backward,m.x=n*Math.abs((t.left+g.width-a)/g.width)),{direction:p,speed:m}}function ea(e){if(e===document.scrollingElement){let{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}let{top:t,left:r,right:n,bottom:i}=e.getBoundingClientRect();return{top:t,left:r,right:n,bottom:i,width:e.clientWidth,height:e.clientHeight}}function el(e){return e.reduce((e,t)=>(0,g.WQ)(e,er(t)),L)}function eu(e,t){if(void 0===t&&(t=G),!e)return;let{top:r,left:n,bottom:i,right:o}=t(e);Z(e)&&(i<=0||o<=0||r>=window.innerHeight||n>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}let ec=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+ee(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+et(t),0)}]];class eh{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let r=Q(t),n=el(r);for(let[t,i,o]of(this.rect={...e},this.width=e.width,this.height=e.height,ec))for(let e of i)Object.defineProperty(this,e,{get:()=>{let i=o(r),s=n[t]-i;return this.rect[e]+s},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class ed{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,r){var n;null==(n=this.target)||n.addEventListener(e,t,r),this.listeners.push([e,t,r])}}function ef(e){let{EventTarget:t}=(0,g.zk)(e);return e instanceof t?e:(0,g.TW)(e)}function ep(e,t){let r=Math.abs(e.x),n=Math.abs(e.y);return"number"==typeof t?Math.sqrt(r**2+n**2)>t:"x"in t&&"y"in t?r>t.x&&n>t.y:"x"in t?r>t.x:"y"in t&&n>t.y}function em(e){e.preventDefault()}function eg(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(s||(s={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"}(a||(a={}));let ev={start:[a.Space,a.Enter],cancel:[a.Esc],end:[a.Space,a.Enter]},ey=(e,t)=>{let{currentCoordinates:r}=t;switch(e.code){case a.Right:return{...r,x:r.x+25};case a.Left:return{...r,x:r.x-25};case a.Down:return{...r,y:r.y+25};case a.Up:return{...r,y:r.y-25}}};class eE{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;let{event:{target:t}}=e;this.props=e,this.listeners=new ed((0,g.TW)(t)),this.windowListeners=new ed((0,g.zk)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(s.Resize,this.handleCancel),this.windowListeners.add(s.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(s.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,r=e.node.current;r&&eu(r),t(L)}handleKeyDown(e){if((0,g.kx)(e)){let{active:t,context:r,options:n}=this.props,{keyboardCodes:i=ev,coordinateGetter:o=ey,scrollBehavior:s="smooth"}=n,{code:l}=e;if(i.end.includes(l)){this.handleEnd(e);return}if(i.cancel.includes(l)){this.handleCancel(e);return}let{collisionRect:u}=r.current,c=u?{x:u.left,y:u.top}:L;this.referenceCoordinates||(this.referenceCoordinates=c);let h=o(e,{active:t,context:r.current,currentCoordinates:c});if(h){let t=(0,g.Re)(h,c),n={x:0,y:0},{scrollableAncestors:i}=r.current;for(let r of i){let i=e.code,{isTop:o,isRight:l,isLeft:u,isBottom:c,maxScroll:d,minScroll:f}=ei(r),p=ea(r),m={x:Math.min(i===a.Right?p.right-p.width/2:p.right,Math.max(i===a.Right?p.left:p.left+p.width/2,h.x)),y:Math.min(i===a.Down?p.bottom-p.height/2:p.bottom,Math.max(i===a.Down?p.top:p.top+p.height/2,h.y))},g=i===a.Right&&!l||i===a.Left&&!u,v=i===a.Down&&!c||i===a.Up&&!o;if(g&&m.x!==h.x){let e=r.scrollLeft+t.x,o=i===a.Right&&e<=d.x||i===a.Left&&e>=f.x;if(o&&!t.y){r.scrollTo({left:e,behavior:s});return}o?n.x=r.scrollLeft-e:n.x=i===a.Right?r.scrollLeft-d.x:r.scrollLeft-f.x,n.x&&r.scrollBy({left:-n.x,behavior:s});break}if(v&&m.y!==h.y){let e=r.scrollTop+t.y,o=i===a.Down&&e<=d.y||i===a.Up&&e>=f.y;if(o&&!t.x){r.scrollTo({top:e,behavior:s});return}o?n.y=r.scrollTop-e:n.y=i===a.Down?r.scrollTop-d.y:r.scrollTop-f.y,n.y&&r.scrollBy({top:-n.y,behavior:s});break}}this.handleMove(e,(0,g.WQ)((0,g.Re)(h,this.referenceCoordinates),n))}}}handleMove(e,t){let{onMove:r}=this.props;e.preventDefault(),r(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function e_(e){return!!(e&&"distance"in e)}function eb(e){return!!(e&&"delay"in e)}eE.activators=[{eventName:"onKeyDown",handler:(e,t,r)=>{let{keyboardCodes:n=ev,onActivation:i}=t,{active:o}=r,{code:s}=e.nativeEvent;if(n.start.includes(s)){let t=o.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==i||i({event:e.nativeEvent}),!0)}return!1}}];class eA{constructor(e,t,r){var n;void 0===r&&(r=ef(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;let{event:i}=e,{target:o}=i;this.props=e,this.events=t,this.document=(0,g.TW)(o),this.documentListeners=new ed(this.document),this.listeners=new ed(r),this.windowListeners=new ed((0,g.zk)(o)),this.initialCoordinates=null!=(n=(0,g.e_)(i))?n:L,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:r}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(s.Resize,this.handleCancel),this.windowListeners.add(s.DragStart,em),this.windowListeners.add(s.VisibilityChange,this.handleCancel),this.windowListeners.add(s.ContextMenu,em),this.documentListeners.add(s.Keydown,this.handleKeydown),t){if(null!=r&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(eb(t)){this.timeoutId=setTimeout(this.handleStart,t.delay);return}if(e_(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(s.Click,eg,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(s.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;let{activated:r,initialCoordinates:n,props:i}=this,{onMove:o,options:{activationConstraint:s}}=i;if(!n)return;let a=null!=(t=(0,g.e_)(e))?t:L,l=(0,g.Re)(n,a);if(!r&&s){if(e_(s)){if(null!=s.tolerance&&ep(l,s.tolerance))return this.handleCancel();if(ep(l,s.distance))return this.handleStart()}return eb(s)&&ep(l,s.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),o(a)}handleEnd(){let{onEnd:e}=this.props;this.detach(),e()}handleCancel(){let{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===a.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}let eT={move:{name:"pointermove"},end:{name:"pointerup"}};class eC extends eA{constructor(e){let{event:t}=e;super(e,eT,(0,g.TW)(t.target))}}eC.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return!!r.isPrimary&&0===r.button&&(null==n||n({event:r}),!0)}}];let eS={move:{name:"mousemove"},end:{name:"mouseup"}};!function(e){e[e.RightClick=2]="RightClick"}(l||(l={}));class ew extends eA{constructor(e){super(e,eS,(0,g.TW)(e.event.target))}}ew.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return r.button!==l.RightClick&&(null==n||n({event:r}),!0)}}];let ex={move:{name:"touchmove"},end:{name:"touchend"}};class eR extends eA{constructor(e){super(e,ex)}static setup(){return window.addEventListener(ex.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(ex.move.name,e)};function e(){}}}function ek(e){let{acceleration:t,activator:r=u.Pointer,canScroll:n,draggingRect:i,enabled:o,interval:s=5,order:a=c.TreeOrder,pointerCoordinates:l,scrollableAncestors:h,scrollableAncestorRects:d,delta:f,threshold:m}=e,v=eI({delta:f,disabled:!o}),[y,E]=(0,g.$$)(),_=(0,p.useRef)({x:0,y:0}),b=(0,p.useRef)({x:0,y:0}),A=(0,p.useMemo)(()=>{switch(r){case u.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case u.DraggableRect:return i}},[r,i,l]),T=(0,p.useRef)(null),C=(0,p.useCallback)(()=>{let e=T.current;if(!e)return;let t=_.current.x*b.current.x,r=_.current.y*b.current.y;e.scrollBy(t,r)},[]),S=(0,p.useMemo)(()=>a===c.TreeOrder?[...h].reverse():h,[a,h]);(0,p.useEffect)(()=>{if(!o||!h.length||!A){E();return}for(let e of S){if((null==n?void 0:n(e))===!1)continue;let r=d[h.indexOf(e)];if(!r)continue;let{direction:i,speed:o}=es(e,r,A,t,m);for(let e of["x","y"])v[e][i[e]]||(o[e]=0,i[e]=0);if(o.x>0||o.y>0){E(),T.current=e,y(C,s),_.current=o,b.current=i;return}}_.current={x:0,y:0},b.current={x:0,y:0},E()},[t,C,n,E,o,s,JSON.stringify(A),JSON.stringify(v),y,h,S,d,JSON.stringify(m)])}eR.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t,{touches:i}=r;return!(i.length>1)&&(null==n||n({event:r}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(u||(u={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(c||(c={}));let eL={x:{[o.Backward]:!1,[o.Forward]:!1},y:{[o.Backward]:!1,[o.Forward]:!1}};function eI(e){let{delta:t,disabled:r}=e,n=(0,g.ZC)(t);return(0,g.KG)(e=>{if(r||!n||!e)return eL;let i={x:Math.sign(t.x-n.x),y:Math.sign(t.y-n.y)};return{x:{[o.Backward]:e.x[o.Backward]||-1===i.x,[o.Forward]:e.x[o.Forward]||1===i.x},y:{[o.Backward]:e.y[o.Backward]||-1===i.y,[o.Forward]:e.y[o.Forward]||1===i.y}}},[r,t,n])}function eO(e,t){let r=null!==t?e.get(t):void 0,n=r?r.node.current:null;return(0,g.KG)(e=>{var r;return null===t?null:null!=(r=null!=n?n:e)?r:null},[n,t])}function eD(e,t){return(0,p.useMemo)(()=>e.reduce((e,r)=>{let{sensor:n}=r;return[...e,...n.activators.map(e=>({eventName:e.eventName,handler:t(e.handler,r)}))]},[]),[e,t])}!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(h||(h={})),function(e){e.Optimized="optimized"}(d||(d={}));let eN=new Map;function eP(e,t){let{dragging:r,dependencies:n,config:i}=t,[o,s]=(0,p.useState)(null),{frequency:a,measure:l,strategy:u}=i,c=(0,p.useRef)(e),d=E(),f=(0,g.YN)(d),m=(0,p.useCallback)(function(e){void 0===e&&(e=[]),f.current||s(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[f]),v=(0,p.useRef)(null),y=(0,g.KG)(t=>{if(d&&!r)return eN;if(!t||t===eN||c.current!==e||null!=o){let t=new Map;for(let r of e){if(!r)continue;if(o&&o.length>0&&!o.includes(r.id)&&r.rect.current){t.set(r.id,r.rect.current);continue}let e=r.node.current,n=e?new eh(l(e),e):null;r.rect.current=n,n&&t.set(r.id,n)}return t}return t},[e,o,r,d,l]);return(0,p.useEffect)(()=>{c.current=e},[e]),(0,p.useEffect)(()=>{d||m()},[r,d]),(0,p.useEffect)(()=>{o&&o.length>0&&s(null)},[JSON.stringify(o)]),(0,p.useEffect)(()=>{d||"number"!=typeof a||null!==v.current||(v.current=setTimeout(()=>{m(),v.current=null},a))},[a,d,m,...n]),{droppableRects:y,measureDroppableContainers:m,measuringScheduled:null!=o};function E(){switch(u){case h.Always:return!1;case h.BeforeDragging:return r;default:return!r}}}function eM(e,t){return(0,g.KG)(r=>e?r||("function"==typeof t?t(e):e):null,[t,e])}function eB(e,t){return eM(e,t)}function eU(e){let{callback:t,disabled:r}=e,n=(0,g._q)(t),i=(0,p.useMemo)(()=>{if(r||"undefined"==typeof window||void 0===window.MutationObserver)return;let{MutationObserver:e}=window;return new e(n)},[n,r]);return(0,p.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}function eF(e){let{callback:t,disabled:r}=e,n=(0,g._q)(t),i=(0,p.useMemo)(()=>{if(r||"undefined"==typeof window||void 0===window.ResizeObserver)return;let{ResizeObserver:e}=window;return new e(n)},[r]);return(0,p.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}function ej(e){return new eh(G(e),e)}function eK(e,t,r){void 0===t&&(t=ej);let[n,i]=(0,p.useReducer)(a,null),o=eU({callback(t){if(e)for(let r of t){let{type:t,target:n}=r;if("childList"===t&&n instanceof HTMLElement&&n.contains(e)){i();break}}}}),s=eF({callback:i});return(0,g.Es)(()=>{i(),e?(null==s||s.observe(e),null==o||o.observe(document.body,{childList:!0,subtree:!0})):(null==s||s.disconnect(),null==o||o.disconnect())},[e]),n;function a(n){if(!e)return null;if(!1===e.isConnected){var i;return null!=(i=null!=n?n:r)?i:null}let o=t(e);return JSON.stringify(n)===JSON.stringify(o)?n:o}}function eV(e){let t=eM(e);return j(e,t)}let eH=[];function ez(e){let t=(0,p.useRef)(e),r=(0,g.KG)(r=>e?r&&r!==eH&&e&&t.current&&e.parentNode===t.current.parentNode?r:Q(e):eH,[e]);return(0,p.useEffect)(()=>{t.current=e},[e]),r}function e$(e){let[t,r]=(0,p.useState)(null),n=(0,p.useRef)(e),i=(0,p.useCallback)(e=>{let t=J(e.target);t&&r(e=>e?(e.set(t,er(t)),new Map(e)):null)},[]);return(0,p.useEffect)(()=>{let t=n.current;if(e!==t){o(t);let s=e.map(e=>{let t=J(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,er(t)]):null}).filter(e=>null!=e);r(s.length?new Map(s):null),n.current=e}return()=>{o(e),o(t)};function o(e){e.forEach(e=>{let t=J(e);null==t||t.removeEventListener("scroll",i)})}},[i,e]),(0,p.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>(0,g.WQ)(e,t),L):el(e):L,[e,t])}function eG(e,t){void 0===t&&(t=[]);let r=(0,p.useRef)(null);return(0,p.useEffect)(()=>{r.current=null},t),(0,p.useEffect)(()=>{let t=e!==L;t&&!r.current&&(r.current=e),!t&&r.current&&(r.current=null)},[e]),r.current?(0,g.Re)(e,r.current):L}function eq(e){(0,p.useEffect)(()=>{if(!g.Sw)return;let t=e.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(let e of t)null==e||e()}},e.map(e=>{let{sensor:t}=e;return t}))}function eW(e,t){return(0,p.useMemo)(()=>e.reduce((e,r)=>{let{eventName:n,handler:i}=r;return e[n]=e=>{i(e,t)},e},{}),[e,t])}function eX(e){return(0,p.useMemo)(()=>e?W(e):null,[e])}let eY=[];function eQ(e,t){void 0===t&&(t=G);let[r]=e,n=eX(r?(0,g.zk)(r):null),[i,o]=(0,p.useReducer)(a,eY),s=eF({callback:o});return e.length>0&&i===eY&&o(),(0,g.Es)(()=>{e.length?e.forEach(e=>null==s?void 0:s.observe(e)):(null==s||s.disconnect(),o())},[e]),i;function a(){return e.length?e.map(e=>en(e)?n:new eh(t(e),e)):eY}}function eZ(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return(0,g.sb)(t)?t:e}function eJ(e){let{measure:t}=e,[r,n]=(0,p.useState)(null),i=eF({callback:(0,p.useCallback)(e=>{for(let{target:r}of e)if((0,g.sb)(r)){n(e=>{let n=t(r);return e?{...e,width:n.width,height:n.height}:n});break}},[t])}),o=(0,p.useCallback)(e=>{let r=eZ(e);null==i||i.disconnect(),r&&(null==i||i.observe(r)),n(r?t(r):null)},[t,i]),[s,a]=(0,g.lk)(o);return(0,p.useMemo)(()=>({nodeRef:s,rect:r,setRef:a}),[r,s,a])}let e0=[{sensor:eC,options:{}},{sensor:eE,options:{}}],e1={current:{}},e2={draggable:{measure:q},droppable:{measure:q,strategy:h.WhileDragging,frequency:d.Optimized},dragOverlay:{measure:G}};class e3 extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,r;return null!=(t=null==(r=this.get(e))?void 0:r.node.current)?t:void 0}}let e4={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new e3,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:x},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:e2,measureDroppableContainers:x,windowRect:null,measuringScheduled:!1},e5={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:x,draggableNodes:new Map,over:null,measureDroppableContainers:x},e6=(0,p.createContext)(e5),e7=(0,p.createContext)(e4);function e8(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new e3}}}function e9(e,t){switch(t.type){case i.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case i.DragMove:if(!e.draggable.active)return e;return{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case i.DragEnd:case i.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case i.RegisterDroppable:{let{element:r}=t,{id:n}=r,i=new e3(e.droppable.containers);return i.set(n,r),{...e,droppable:{...e.droppable,containers:i}}}case i.SetDroppableDisabled:{let{id:r,key:n,disabled:i}=t,o=e.droppable.containers.get(r);if(!o||n!==o.key)return e;let s=new e3(e.droppable.containers);return s.set(r,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:s}}}case i.UnregisterDroppable:{let{id:r,key:n}=t,i=e.droppable.containers.get(r);if(!i||n!==i.key)return e;let o=new e3(e.droppable.containers);return o.delete(r),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function te(e){let{disabled:t}=e,{active:r,activatorEvent:n,draggableNodes:i}=(0,p.useContext)(e6),o=(0,g.ZC)(n),s=(0,g.ZC)(null==r?void 0:r.id);return(0,p.useEffect)(()=>{if(!t&&!n&&o&&null!=s){if(!(0,g.kx)(o)||document.activeElement===o.target)return;let e=i.get(s);if(!e)return;let{activatorNode:t,node:r}=e;(t.current||r.current)&&requestAnimationFrame(()=>{for(let e of[t.current,r.current]){if(!e)continue;let t=(0,g.ag)(e);if(t){t.focus();break}}})}},[n,t,i,s,o]),null}function tt(e,t){let{transform:r,...n}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...n}),r):r}function tr(e){return(0,p.useMemo)(()=>({draggable:{...e2.draggable,...null==e?void 0:e.draggable},droppable:{...e2.droppable,...null==e?void 0:e.droppable},dragOverlay:{...e2.dragOverlay,...null==e?void 0:e.dragOverlay}}),[null==e?void 0:e.draggable,null==e?void 0:e.droppable,null==e?void 0:e.dragOverlay])}function tn(e){let{activeNode:t,measure:r,initialRect:n,config:i=!0}=e,o=(0,p.useRef)(!1),{x:s,y:a}="boolean"==typeof i?{x:i,y:i}:i;(0,g.Es)(()=>{if(!s&&!a||!t){o.current=!1;return}if(o.current||!n)return;let e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;let i=j(r(e),n);if(s||(i.x=0),a||(i.y=0),o.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){let t=Z(e);t&&t.scrollBy({top:i.y,left:i.x})}},[t,s,a,n,r])}let ti=(0,p.createContext)({...L,scaleX:1,scaleY:1});!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(f||(f={}));let to=(0,p.memo)(function(e){var t,r,n,o;let{id:s,accessibility:a,autoScroll:l=!0,children:u,sensors:c=e0,collisionDetection:h=U,measuring:d,modifiers:v,...y}=e,[E,_]=(0,p.useReducer)(e9,void 0,e8),[A,C]=T(),[S,x]=(0,p.useState)(f.Uninitialized),R=S===f.Initialized,{draggable:{active:k,nodes:L,translate:I},droppable:{containers:O}}=E,D=k?L.get(k):null,P=(0,p.useRef)({initial:null,translated:null}),M=(0,p.useMemo)(()=>{var e;return null!=k?{id:k,data:null!=(e=null==D?void 0:D.data)?e:e1,rect:P}:null},[k,D]),B=(0,p.useRef)(null),[j,V]=(0,p.useState)(null),[H,z]=(0,p.useState)(null),G=(0,g.YN)(y,Object.values(y)),q=(0,g.YG)("DndDescribedBy",s),W=(0,p.useMemo)(()=>O.getEnabled(),[O]),X=tr(d),{droppableRects:Y,measureDroppableContainers:Q,measuringScheduled:Z}=eP(W,{dragging:R,dependencies:[I.x,I.y],config:X.droppable}),J=eO(L,k),ee=(0,p.useMemo)(()=>H?(0,g.e_)(H):null,[H]),et=eN(),er=eB(J,X.draggable.measure);tn({activeNode:k?L.get(k):null,config:et.layoutShiftCompensation,initialRect:er,measure:X.draggable.measure});let en=eK(J,X.draggable.measure,er),ei=eK(J?J.parentElement:null),eo=(0,p.useRef)({activatorEvent:null,active:null,activeNode:J,collisionRect:null,collisions:null,droppableRects:Y,draggableNodes:L,draggingNode:null,draggingNodeRect:null,droppableContainers:O,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),es=O.getNodeFor(null==(t=eo.current.over)?void 0:t.id),ea=eJ({measure:X.dragOverlay.measure}),el=null!=(r=ea.nodeRef.current)?r:J,eu=R?null!=(n=ea.rect)?n:en:null,ec=!!(ea.nodeRef.current&&ea.rect),eh=eV(ec?null:en),ed=eX(el?(0,g.zk)(el):null),ef=ez(R?null!=es?es:J:null),ep=eQ(ef),em=tt(v,{transform:{x:I.x-eh.x,y:I.y-eh.y,scaleX:1,scaleY:1},activatorEvent:H,active:M,activeNodeRect:en,containerNodeRect:ei,draggingNodeRect:eu,over:eo.current.over,overlayNodeRect:ea.rect,scrollableAncestors:ef,scrollableAncestorRects:ep,windowRect:ed}),eg=ee?(0,g.WQ)(ee,I):null,ev=e$(ef),ey=eG(ev),eE=eG(ev,[en]),e_=(0,g.WQ)(em,ey),eb=eu?K(eu,em):null,eA=M&&eb?h({active:M,collisionRect:eb,droppableRects:Y,droppableContainers:W,pointerCoordinates:eg}):null,eT=N(eA,"id"),[eC,eS]=(0,p.useState)(null),ew=F(ec?em:(0,g.WQ)(em,eE),null!=(o=null==eC?void 0:eC.rect)?o:null,en),ex=(0,p.useCallback)((e,t)=>{let{sensor:r,options:n}=t;if(null==B.current)return;let o=L.get(B.current);if(!o)return;let s=e.nativeEvent,a=new r({active:B.current,activeNode:o,event:s,options:n,context:eo,onStart(e){let t=B.current;if(null==t)return;let r=L.get(t);if(!r)return;let{onDragStart:n}=G.current,o={active:{id:t,data:r.data,rect:P}};(0,m.unstable_batchedUpdates)(()=>{null==n||n(o),x(f.Initializing),_({type:i.DragStart,initialCoordinates:e,active:t}),A({type:"onDragStart",event:o})})},onMove(e){_({type:i.DragMove,coordinates:e})},onEnd:l(i.DragEnd),onCancel:l(i.DragCancel)});function l(e){return async function(){let{active:t,collisions:r,over:n,scrollAdjustedTranslate:o}=eo.current,a=null;if(t&&o){let{cancelDrop:l}=G.current;a={activatorEvent:s,active:t,collisions:r,delta:o,over:n},e===i.DragEnd&&"function"==typeof l&&await Promise.resolve(l(a))&&(e=i.DragCancel)}B.current=null,(0,m.unstable_batchedUpdates)(()=>{_({type:e}),x(f.Uninitialized),eS(null),V(null),z(null);let t=e===i.DragEnd?"onDragEnd":"onDragCancel";if(a){let e=G.current[t];null==e||e(a),A({type:t,event:a})}})}}(0,m.unstable_batchedUpdates)(()=>{V(a),z(e.nativeEvent)})},[L]),eR=eD(c,(0,p.useCallback)((e,t)=>(r,n)=>{let i=r.nativeEvent,o=L.get(n);if(null!==B.current||!o||i.dndKit||i.defaultPrevented)return;let s={active:o};!0===e(r,t.options,s)&&(i.dndKit={capturedBy:t.sensor},B.current=n,ex(r,t))},[L,ex]));eq(c),(0,g.Es)(()=>{en&&S===f.Initializing&&x(f.Initialized)},[en,S]),(0,p.useEffect)(()=>{let{onDragMove:e}=G.current,{active:t,activatorEvent:r,collisions:n,over:i}=eo.current;if(!t||!r)return;let o={active:t,activatorEvent:r,collisions:n,delta:{x:e_.x,y:e_.y},over:i};(0,m.unstable_batchedUpdates)(()=>{null==e||e(o),A({type:"onDragMove",event:o})})},[e_.x,e_.y]),(0,p.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:r,droppableContainers:n,scrollAdjustedTranslate:i}=eo.current;if(!e||null==B.current||!t||!i)return;let{onDragOver:o}=G.current,s=n.get(eT),a=s&&s.rect.current?{id:s.id,rect:s.rect.current,data:s.data,disabled:s.disabled}:null,l={active:e,activatorEvent:t,collisions:r,delta:{x:i.x,y:i.y},over:a};(0,m.unstable_batchedUpdates)(()=>{eS(a),null==o||o(l),A({type:"onDragOver",event:l})})},[eT]),(0,g.Es)(()=>{eo.current={activatorEvent:H,active:M,activeNode:J,collisionRect:eb,collisions:eA,droppableRects:Y,draggableNodes:L,draggingNode:el,draggingNodeRect:eu,droppableContainers:O,over:eC,scrollableAncestors:ef,scrollAdjustedTranslate:e_},P.current={initial:eu,translated:eb}},[M,J,eA,eb,L,el,eu,Y,O,eC,ef,e_]),ek({...et,delta:I,draggingRect:eb,pointerCoordinates:eg,scrollableAncestors:ef,scrollableAncestorRects:ep});let eL=(0,p.useMemo)(()=>({active:M,activeNode:J,activeNodeRect:en,activatorEvent:H,collisions:eA,containerNodeRect:ei,dragOverlay:ea,draggableNodes:L,droppableContainers:O,droppableRects:Y,over:eC,measureDroppableContainers:Q,scrollableAncestors:ef,scrollableAncestorRects:ep,measuringConfiguration:X,measuringScheduled:Z,windowRect:ed}),[M,J,en,H,eA,ei,ea,L,O,Y,eC,Q,ef,ep,X,Z,ed]),eI=(0,p.useMemo)(()=>({activatorEvent:H,activators:eR,active:M,activeNodeRect:en,ariaDescribedById:{draggable:q},dispatch:_,draggableNodes:L,over:eC,measureDroppableContainers:Q}),[H,eR,M,en,_,q,L,eC,Q]);return p.createElement(b.Provider,{value:C},p.createElement(e6.Provider,{value:eI},p.createElement(e7.Provider,{value:eL},p.createElement(ti.Provider,{value:ew},u)),p.createElement(te,{disabled:(null==a?void 0:a.restoreFocus)===!1})),p.createElement(w,{...a,hiddenTextDescribedById:q}));function eN(){let e=(null==j?void 0:j.autoScrollEnabled)===!1,t="object"==typeof l?!1===l.enabled:!1===l,r=R&&!e&&!t;return"object"==typeof l?{...l,enabled:r}:{enabled:r}}}),ts=(0,p.createContext)(null),ta="button",tl="Droppable";function tu(e){let{id:t,data:r,disabled:n=!1,attributes:i}=e,o=(0,g.YG)(tl),{activators:s,activatorEvent:a,active:l,activeNodeRect:u,ariaDescribedById:c,draggableNodes:h,over:d}=(0,p.useContext)(e6),{role:f=ta,roleDescription:m="draggable",tabIndex:v=0}=null!=i?i:{},y=(null==l?void 0:l.id)===t,E=(0,p.useContext)(y?ti:ts),[_,b]=(0,g.lk)(),[A,T]=(0,g.lk)(),C=eW(s,t),S=(0,g.YN)(r);return(0,g.Es)(()=>(h.set(t,{id:t,key:o,node:_,activatorNode:A,data:S}),()=>{let e=h.get(t);e&&e.key===o&&h.delete(t)}),[h,t]),{active:l,activatorEvent:a,activeNodeRect:u,attributes:(0,p.useMemo)(()=>({role:f,tabIndex:v,"aria-disabled":n,"aria-pressed":!!y&&f===ta||void 0,"aria-roledescription":m,"aria-describedby":c.draggable}),[n,f,v,y,m,c.draggable]),isDragging:y,listeners:n?void 0:C,node:_,over:d,setNodeRef:b,setActivatorNodeRef:T,transform:E}}function tc(){return(0,p.useContext)(e7)}let th="Droppable",td={timeout:25};function tf(e){let{data:t,disabled:r=!1,id:n,resizeObserverConfig:o}=e,s=(0,g.YG)(th),{active:a,dispatch:l,over:u,measureDroppableContainers:c}=(0,p.useContext)(e6),h=(0,p.useRef)({disabled:r}),d=(0,p.useRef)(!1),f=(0,p.useRef)(null),m=(0,p.useRef)(null),{disabled:v,updateMeasurementsFor:y,timeout:E}={...td,...o},_=(0,g.YN)(null!=y?y:n),b=eF({callback:(0,p.useCallback)(()=>{if(!d.current){d.current=!0;return}null!=m.current&&clearTimeout(m.current),m.current=setTimeout(()=>{c(Array.isArray(_.current)?_.current:[_.current]),m.current=null},E)},[E]),disabled:v||!a}),A=(0,p.useCallback)((e,t)=>{b&&(t&&(b.unobserve(t),d.current=!1),e&&b.observe(e))},[b]),[T,C]=(0,g.lk)(A),S=(0,g.YN)(t);return(0,p.useEffect)(()=>{b&&T.current&&(b.disconnect(),d.current=!1,b.observe(T.current))},[T,b]),(0,g.Es)(()=>(l({type:i.RegisterDroppable,element:{id:n,key:s,disabled:r,node:T,rect:f,data:S}}),()=>l({type:i.UnregisterDroppable,key:s,id:n})),[n]),(0,p.useEffect)(()=>{r!==h.current.disabled&&(l({type:i.SetDroppableDisabled,id:n,key:s,disabled:r}),h.current.disabled=r)},[n,s,r,l]),{active:a,rect:f,isOver:(null==u?void 0:u.id)===n,node:T,over:u,setNodeRef:C}}n={styles:{active:{opacity:"0"}}},e=>{let{active:t,dragOverlay:r}=e,i={},{styles:o,className:s}=n;if(null!=o&&o.active)for(let[e,r]of Object.entries(o.active))void 0!==r&&(i[e]=t.node.style.getPropertyValue(e),t.node.style.setProperty(e,r));if(null!=o&&o.dragOverlay)for(let[e,t]of Object.entries(o.dragOverlay))void 0!==t&&r.node.style.setProperty(e,t);return null!=s&&s.active&&t.node.classList.add(s.active),null!=s&&s.dragOverlay&&r.node.classList.add(s.dragOverlay),function(){for(let[e,r]of Object.entries(i))t.node.style.setProperty(e,r);null!=s&&s.active&&t.node.classList.remove(s.active)}}},1273:(e,t,r)=>{"use strict";function n(e,t,r){let n={...e};return t.top+e.y<=r.top?n.y=r.top-t.top:t.bottom+e.y>=r.top+r.height&&(n.y=r.top+r.height-t.bottom),t.left+e.x<=r.left?n.x=r.left-t.left:t.right+e.x>=r.left+r.width&&(n.x=r.left+r.width-t.right),n}r.d(t,{FN:()=>o,gj:()=>i}),r(69653);let i=e=>{let{containerNodeRect:t,draggingNodeRect:r,transform:i}=e;return r&&t?n(i,r,t):i},o=e=>{let{transform:t}=e;return{...t,x:0}}},37301:(e,t,r)=>{"use strict";r.d(t,{gB:()=>v,gl:()=>S,m$:()=>d});var n=r(86326),i=r(10677),o=r(69653);function s(e,t,r){let n=e.slice();return n.splice(r<0?n.length+r:r,0,n.splice(t,1)[0]),n}function a(e,t){return e.reduce((e,r,n)=>{let i=t.get(r);return i&&(e[n]=i),e},Array(e.length))}function l(e){return null!==e&&e>=0}function u(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r{var t;let{rects:r,activeNodeRect:n,activeIndex:i,overIndex:o,index:s}=e,a=null!=(t=r[i])?t:n;if(!a)return null;let l=f(r,s,i);if(s===i){let e=r[o];return e?{x:ii&&s<=o?{x:-a.width-l,y:0,...h}:s=o?{x:a.width+l,y:0,...h}:{x:0,y:0,...h}};function f(e,t,r){let n=e[t],i=e[t-1],o=e[t+1];return n&&(i||o)?r{let{rects:t,activeIndex:r,overIndex:n,index:i}=e,o=s(t,n,r),a=t[i],l=o[i];return l&&a?{x:l.left-a.left,y:l.top-a.top,scaleX:l.width/a.width,scaleY:l.height/a.height}:null},m="Sortable",g=n.createContext({activeIndex:-1,containerId:m,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:p,disabled:{draggable:!1,droppable:!1}});function v(e){let{children:t,id:r,items:s,strategy:l=p,disabled:h=!1}=e,{active:d,dragOverlay:f,droppableRects:v,over:y,measureDroppableContainers:E}=(0,i.fF)(),_=(0,o.YG)(m,r),b=null!==f.rect,A=(0,n.useMemo)(()=>s.map(e=>"object"==typeof e&&"id"in e?e.id:e),[s]),T=null!=d,C=d?A.indexOf(d.id):-1,S=y?A.indexOf(y.id):-1,w=(0,n.useRef)(A),x=!u(A,w.current),R=-1!==S&&-1===C||x,k=c(h);(0,o.Es)(()=>{x&&T&&E(A)},[x,A,T,E]),(0,n.useEffect)(()=>{w.current=A},[A]);let L=(0,n.useMemo)(()=>({activeIndex:C,containerId:_,disabled:k,disableTransforms:R,items:A,overIndex:S,useDragOverlay:b,sortedRects:a(A,v),strategy:l}),[C,_,k.draggable,k.droppable,R,A,S,v,b,l]);return n.createElement(g.Provider,{value:L},t)}let y=e=>{let{id:t,items:r,activeIndex:n,overIndex:i}=e;return s(r,n,i).indexOf(t)},E=e=>{let{containerId:t,isSorting:r,wasDragging:n,index:i,items:o,newIndex:s,previousItems:a,previousContainerId:l,transition:u}=e;return!!u&&!!n&&(a===o||i!==s)&&(!!r||s!==i&&t===l)},_={duration:200,easing:"ease"},b="transform",A=o.Ks.Transition.toString({property:b,duration:0,easing:"linear"}),T={roleDescription:"sortable"};function C(e){let{disabled:t,index:r,node:s,rect:a}=e,[l,u]=(0,n.useState)(null),c=(0,n.useRef)(r);return(0,o.Es)(()=>{if(!t&&r!==c.current&&s.current){let e=a.current;if(e){let t=(0,i.Sj)(s.current,{ignoreTransform:!0}),r={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(r.x||r.y)&&u(r)}}r!==c.current&&(c.current=r)},[t,r,s,a]),(0,n.useEffect)(()=>{l&&u(null)},[l]),l}function S(e){let{animateLayoutChanges:t=E,attributes:r,disabled:s,data:a,getNewIndex:u=y,id:c,strategy:h,resizeObserverConfig:d,transition:f=_}=e,{items:p,containerId:m,activeIndex:v,disabled:S,disableTransforms:x,sortedRects:R,overIndex:k,useDragOverlay:L,strategy:I}=(0,n.useContext)(g),O=w(s,S),D=p.indexOf(c),N=(0,n.useMemo)(()=>({sortable:{containerId:m,index:D,items:p},...a}),[m,a,D,p]),P=(0,n.useMemo)(()=>p.slice(p.indexOf(c)),[p,c]),{rect:M,node:B,isOver:U,setNodeRef:F}=(0,i.zM)({id:c,data:N,disabled:O.droppable,resizeObserverConfig:{updateMeasurementsFor:P,...d}}),{active:j,activatorEvent:K,activeNodeRect:V,attributes:H,setNodeRef:z,listeners:G,isDragging:q,over:W,setActivatorNodeRef:X,transform:Y}=(0,i.PM)({id:c,data:N,attributes:{...T,...r},disabled:O.draggable}),Q=(0,o.jn)(F,z),Z=!!j,J=Z&&!x&&l(v)&&l(k),ee=!L&&q,et=ee&&J?Y:null,er=null!=h?h:I,en=J?null!=et?et:er({rects:R,activeNodeRect:V,activeIndex:v,overIndex:k,index:D}):null,ei=l(v)&&l(k)?u({id:c,items:p,activeIndex:v,overIndex:k}):D,eo=null==j?void 0:j.id,es=(0,n.useRef)({activeId:eo,items:p,newIndex:ei,containerId:m}),ea=p!==es.current.items,el=t({active:j,containerId:m,isDragging:q,isSorting:Z,id:c,index:D,items:p,newIndex:es.current.newIndex,previousItems:es.current.items,previousContainerId:es.current.containerId,transition:f,wasDragging:null!=es.current.activeId}),eu=C({disabled:!el,index:D,node:B,rect:M});return(0,n.useEffect)(()=>{Z&&es.current.newIndex!==ei&&(es.current.newIndex=ei),m!==es.current.containerId&&(es.current.containerId=m),p!==es.current.items&&(es.current.items=p)},[Z,ei,m,p]),(0,n.useEffect)(()=>{if(eo===es.current.activeId)return;if(eo&&!es.current.activeId){es.current.activeId=eo;return}let e=setTimeout(()=>{es.current.activeId=eo},50);return()=>clearTimeout(e)},[eo]),{active:j,activeIndex:v,attributes:H,data:N,rect:M,index:D,newIndex:ei,items:p,isOver:U,isSorting:Z,isDragging:q,listeners:G,node:B,overIndex:k,over:W,setNodeRef:Q,setActivatorNodeRef:X,setDroppableNodeRef:F,setDraggableNodeRef:z,transform:null!=eu?eu:en,transition:ec()};function ec(){return eu||ea&&es.current.newIndex===D?A:(!ee||(0,o.kx)(K))&&f&&(Z||el)?o.Ks.Transition.toString({...f,property:b}):void 0}}function w(e,t){var r,n;return"boolean"==typeof e?{draggable:e,droppable:!1}:{draggable:null!=(r=null==e?void 0:e.draggable)?r:t.draggable,droppable:null!=(n=null==e?void 0:e.droppable)?n:t.droppable}}i.vL.Down,i.vL.Right,i.vL.Up,i.vL.Left},69653:(e,t,r)=>{"use strict";r.d(t,{$$:()=>m,Es:()=>f,KG:()=>v,Ks:()=>k,Ll:()=>a,Re:()=>C,Sw:()=>o,TW:()=>d,WQ:()=>T,YG:()=>b,YN:()=>g,ZC:()=>E,_q:()=>p,ag:()=>I,e_:()=>R,jn:()=>i,kx:()=>w,l6:()=>s,lk:()=>y,sb:()=>c,wz:()=>u,xZ:()=>h,zk:()=>l});var n=r(86326);function i(){for(var e=arguments.length,t=Array(e),r=0;re=>{t.forEach(t=>t(e))},t)}let o="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function s(e){let t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function a(e){return"nodeType"in e}function l(e){var t,r;return e?s(e)?e:a(e)&&null!=(t=null==(r=e.ownerDocument)?void 0:r.defaultView)?t:window:window}function u(e){let{Document:t}=l(e);return e instanceof t}function c(e){return!s(e)&&e instanceof l(e).HTMLElement}function h(e){return e instanceof l(e).SVGElement}function d(e){return e?s(e)?e.document:a(e)?u(e)?e:c(e)||h(e)?e.ownerDocument:document:document:document}let f=o?n.useLayoutEffect:n.useEffect;function p(e){let t=(0,n.useRef)(e);return f(()=>{t.current=e}),(0,n.useCallback)(function(){for(var e=arguments.length,r=Array(e),n=0;n{e.current=setInterval(t,r)},[]),(0,n.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}function g(e,t){void 0===t&&(t=[e]);let r=(0,n.useRef)(e);return f(()=>{r.current!==e&&(r.current=e)},t),r}function v(e,t){let r=(0,n.useRef)();return(0,n.useMemo)(()=>{let t=e(r.current);return r.current=t,t},[...t])}function y(e){let t=p(e),r=(0,n.useRef)(null),i=(0,n.useCallback)(e=>{e!==r.current&&(null==t||t(e,r.current)),r.current=e},[]);return[r,i]}function E(e){let t=(0,n.useRef)();return(0,n.useEffect)(()=>{t.current=e},[e]),t.current}let _={};function b(e,t){return(0,n.useMemo)(()=>{if(t)return t;let r=null==_[e]?0:_[e]+1;return _[e]=r,e+"-"+r},[e,t])}function A(e){return function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i{for(let[n,i]of Object.entries(r)){let r=t[n];null!=r&&(t[n]=r+e*i)}return t},{...t})}}let T=A(1),C=A(-1);function S(e){return"clientX"in e&&"clientY"in e}function w(e){if(!e)return!1;let{KeyboardEvent:t}=l(e.target);return t&&e instanceof t}function x(e){if(!e)return!1;let{TouchEvent:t}=l(e.target);return t&&e instanceof t}function R(e){if(x(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:r}=e.touches[0];return{x:t,y:r}}if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:r}=e.changedTouches[0];return{x:t,y:r}}}return S(e)?{x:e.clientX,y:e.clientY}:null}let k=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:r}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(r?Math.round(r):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:r}=e;return"scaleX("+t+") scaleY("+r+")"}},Transform:{toString(e){if(e)return[k.Translate.toString(e),k.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:r,easing:n}=e;return t+" "+r+"ms "+n}}}),L="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function I(e){return e.matches(L)?e:e.querySelector(L)}},73986:(e,t,r)=>{"use strict";r.d(t,{tb:()=>Z});var n,i,o=[],s=function(){return o.some(function(e){return e.activeTargets.length>0})},a=function(){return o.some(function(e){return e.skippedTargets.length>0})},l="ResizeObserver loop completed with undelivered notifications.",u=function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:l}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=l),window.dispatchEvent(e)};!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(n||(n={}));var c=function(e){return Object.freeze(e)},h=function(){return function(e,t){this.inlineSize=e,this.blockSize=t,c(this)}}(),d=function(){function e(e,t,r,n){return this.x=e,this.y=t,this.width=r,this.height=n,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,c(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),f=function(e){return e instanceof SVGElement&&"getBBox"in e},p=function(e){if(f(e)){var t=e.getBBox(),r=t.width,n=t.height;return!r&&!n}var i=e,o=i.offsetWidth,s=i.offsetHeight;return!(o||s||e.getClientRects().length)},m=function(e){if(e instanceof Element)return!0;var t,r=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(r&&e instanceof r.Element)},g=function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},v="undefined"!=typeof window?window:{},y=new WeakMap,E=/auto|scroll/,_=/^tb|vertical/,b=/msie|trident/i.test(v.navigator&&v.navigator.userAgent),A=function(e){return parseFloat(e||"0")},T=function(e,t,r){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=!1),new h((r?t:e)||0,(r?e:t)||0)},C=c({devicePixelContentBoxSize:T(),borderBoxSize:T(),contentBoxSize:T(),contentRect:new d(0,0,0,0)}),S=function(e,t){if(void 0===t&&(t=!1),y.has(e)&&!t)return y.get(e);if(p(e))return y.set(e,C),C;var r=getComputedStyle(e),n=f(e)&&e.ownerSVGElement&&e.getBBox(),i=!b&&"border-box"===r.boxSizing,o=_.test(r.writingMode||""),s=!n&&E.test(r.overflowY||""),a=!n&&E.test(r.overflowX||""),l=n?0:A(r.paddingTop),u=n?0:A(r.paddingRight),h=n?0:A(r.paddingBottom),m=n?0:A(r.paddingLeft),g=n?0:A(r.borderTopWidth),v=n?0:A(r.borderRightWidth),S=n?0:A(r.borderBottomWidth),w=n?0:A(r.borderLeftWidth),x=m+u,R=l+h,k=w+v,L=g+S,I=a?e.offsetHeight-L-e.clientHeight:0,O=s?e.offsetWidth-k-e.clientWidth:0,D=i?x+k:0,N=i?R+L:0,P=n?n.width:A(r.width)-D-O,M=n?n.height:A(r.height)-N-I,B=P+x+O+k,U=M+R+I+L,F=c({devicePixelContentBoxSize:T(Math.round(P*devicePixelRatio),Math.round(M*devicePixelRatio),o),borderBoxSize:T(B,U,o),contentBoxSize:T(P,M,o),contentRect:new d(m,l,P,M)});return y.set(e,F),F},w=function(e,t,r){var i=S(e,r),o=i.borderBoxSize,s=i.contentBoxSize,a=i.devicePixelContentBoxSize;switch(t){case n.DEVICE_PIXEL_CONTENT_BOX:return a;case n.BORDER_BOX:return o;default:return s}},x=function(){return function(e){var t=S(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=c([t.borderBoxSize]),this.contentBoxSize=c([t.contentBoxSize]),this.devicePixelContentBoxSize=c([t.devicePixelContentBoxSize])}}(),R=function(e){if(p(e))return 1/0;for(var t=0,r=e.parentNode;r;)t+=1,r=r.parentNode;return t},k=function(){var e=1/0,t=[];o.forEach(function(r){if(0!==r.activeTargets.length){var n=[];r.activeTargets.forEach(function(t){var r=new x(t.target),i=R(t.target);n.push(r),t.lastReportedSize=w(t.target,t.observedBox),ie?t.activeTargets.push(r):t.skippedTargets.push(r))})})},I=function(){var e=0;for(L(0);s();)L(e=k());return a()&&u(),e>0},O=[],D=function(){return O.splice(0).forEach(function(e){return e()})},N=function(e){if(!i){var t=0,r=document.createTextNode(""),n={characterData:!0};new MutationObserver(function(){return D()}).observe(r,n),i=function(){r.textContent="".concat(t?t--:t++)}}O.push(e),i()},P=function(e){N(function(){requestAnimationFrame(e)})},M=0,B=function(){return!!M},U=250,F={attributes:!0,characterData:!0,childList:!0,subtree:!0},j=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],K=function(e){return void 0===e&&(e=0),Date.now()+e},V=!1,H=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=U),!V){V=!0;var r=K(e);P(function(){var n=!1;try{n=I()}finally{if(V=!1,e=r-K(),!B())return;n?t.run(1e3):e>0?t.run(e):t.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,F)};document.body?t():v.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),j.forEach(function(t){return v.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),j.forEach(function(t){return v.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},e}()),z=function(e){!M&&e>0&&H.start(),(M+=e)||H.stop()},G=function(e){return!f(e)&&!g(e)&&"inline"===getComputedStyle(e).display},q=function(){function e(e,t){this.target=e,this.observedBox=t||n.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=w(this.target,this.observedBox,!0);return G(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},e}(),W=function(){return function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t}}(),X=new WeakMap,Y=function(e,t){for(var r=0;rY(n.observationTargets,t)&&(i&&o.push(n),n.observationTargets.push(new q(t,r&&r.box)),z(1),H.schedule())},e.unobserve=function(e,t){var r=X.get(e),n=Y(r.observationTargets,t),i=1===r.observationTargets.length;n>=0&&(i&&o.splice(o.indexOf(r),1),r.observationTargets.splice(n,1),z(-1))},e.disconnect=function(e){var t=this,r=X.get(e);r.observationTargets.slice().forEach(function(r){return t.unobserve(e,r.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),Z=function(){function e(e){if(0==arguments.length)throw TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Q.connect(this,e)}return e.prototype.observe=function(e,t){if(0==arguments.length)throw TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!m(e))throw TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Q.observe(this,e,t)},e.prototype.unobserve=function(e){if(0==arguments.length)throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!m(e))throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Q.unobserve(this,e)},e.prototype.disconnect=function(){Q.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}()},65282:(e,t,r)=>{"use strict";r.d(t,{EW:()=>y,HN:()=>d,QZ:()=>T,vA:()=>o,vP:()=>f});var n=Symbol.for("preact-signals");function i(){if(l>1)l--;else{for(var e,t=!1;void 0!==a;){var r=a;for(a=void 0,u++;void 0!==r;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&p(r))try{r.c()}catch(r){t||(e=r,t=!0)}r=n}}if(u=0,l--,t)throw e}}function o(e){if(l>0)return e();l++;try{return e()}finally{i()}}var s=void 0,a=void 0,l=0,u=0,c=0;function h(e){if(void 0!==s){var t=e.n;if(void 0===t||t.t!==s)return t={i:0,S:e,p:s.s,n:void 0,t:s,e:void 0,x:void 0,r:t},void 0!==s.s&&(s.s.n=t),s.s=t,e.n=t,32&s.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=s.s,t.n=void 0,s.s.n=t,s.s=t),t}}function d(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function f(e){return new d(e)}function p(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function m(e){for(var t=e.s;void 0!==t;t=t.n){var r=t.S.n;if(void 0!==r&&(t.r=r),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function g(e){for(var t=e.s,r=void 0;void 0!==t;){var n=t.p;-1===t.i?(t.S.U(t),void 0!==n&&(n.n=t.n),void 0!==t.n&&(t.n.p=n)):r=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=n}e.s=r}function v(e){d.call(this,void 0),this.x=e,this.s=void 0,this.g=c-1,this.f=4}function y(e){return new v(e)}function E(e){var t=e.u;if(e.u=void 0,"function"==typeof t){l++;var r=s;s=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,_(e),t}finally{s=r,i()}}}function _(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,E(e)}function b(e){if(s!==this)throw Error("Out-of-order effect");g(this),s=e,this.f&=-2,8&this.f&&_(this),i()}function A(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function T(e){var t=new A(e);try{t.c()}catch(e){throw t.d(),e}return t.d.bind(t)}d.prototype.brand=n,d.prototype.h=function(){return!0},d.prototype.S=function(e){this.t!==e&&void 0===e.e&&(e.x=this.t,void 0!==this.t&&(this.t.e=e),this.t=e)},d.prototype.U=function(e){if(void 0!==this.t){var t=e.e,r=e.x;void 0!==t&&(t.x=r,e.e=void 0),void 0!==r&&(r.e=t,e.x=void 0),e===this.t&&(this.t=r)}},d.prototype.subscribe=function(e){var t=this;return T(function(){var r=t.value,n=s;s=void 0;try{e(r)}finally{s=n}})},d.prototype.valueOf=function(){return this.value},d.prototype.toString=function(){return this.value+""},d.prototype.toJSON=function(){return this.value},d.prototype.peek=function(){var e=s;s=void 0;try{return this.value}finally{s=e}},Object.defineProperty(d.prototype,"value",{get:function(){var e=h(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(u>100)throw Error("Cycle detected");this.v=e,this.i++,c++,l++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{i()}}}}),(v.prototype=new d).h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f)||(this.f&=-5,this.g===c))return!0;if(this.g=c,this.f|=1,this.i>0&&!p(this))return this.f&=-2,!0;var e=s;try{m(this),s=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return s=e,g(this),this.f&=-2,!0},v.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}d.prototype.S.call(this,e)},v.prototype.U=function(e){if(void 0!==this.t&&(d.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},v.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(v.prototype,"value",{get:function(){if(1&this.f)throw Error("Cycle detected");var e=h(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),A.prototype.c=function(){var e=this.S();try{if(8&this.f||void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.u=t)}finally{e()}},A.prototype.S=function(){if(1&this.f)throw Error("Cycle detected");this.f|=1,this.f&=-9,E(this),m(this),l++;var e=s;return s=this,b.bind(this,e)},A.prototype.N=function(){2&this.f||(this.f|=2,this.o=a,a=this)},A.prototype.d=function(){this.f|=8,1&this.f||_(this)}},15010:(e,t,r)=>{"use strict";var n,i;/** * @remix-run/router v1.18.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;tp,Gh:()=>G,HS:()=>q,Oi:()=>u,Rr:()=>m,V2:()=>Z,VV:()=>J,aE:()=>ed,pX:()=>ee,pb:()=>F,rc:()=>n,sC:()=>a,tH:()=>Q,ue:()=>_,yD:()=>z,zR:()=>l}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(n||(n={}));let s="popstate";function a(e){let t;void 0===e&&(e={});let{initialEntries:r=["/"],initialIndex:i,v5Compat:o=!1}=e;t=r.map((e,t)=>d(e,"string"==typeof e?null:e.state,0===t?"default":void 0));let s=u(null==i?t.length-1:i),a=n.Pop,l=null;function u(e){return Math.min(Math.max(e,0),t.length-1)}function h(){return t[s]}function d(e,r,n){void 0===r&&(r=null);let i=f(t?h().pathname:"/",e,r,n);return c("/"===i.pathname.charAt(0),"relative pathnames are not supported in memory history: "+JSON.stringify(e)),i}function g(e){return"string"==typeof e?e:p(e)}return{get index(){return s},get action(){return a},get location(){return h()},createHref:g,createURL:e=>new URL(g(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?m(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,r){a=n.Push;let i=d(e,r);s+=1,t.splice(s,t.length,i),o&&l&&l({action:a,location:i,delta:1})},replace(e,r){a=n.Replace;let i=d(e,r);t[s]=i,o&&l&&l({action:a,location:i,delta:0})},go(e){a=n.Pop;let r=u(s+e),i=t[r];s=r,l&&l({action:a,location:i,delta:e})},listen:e=>(l=e,()=>{l=null})}}function l(e){return void 0===e&&(e={}),g(function(e,t){let{pathname:r,search:n,hash:i}=e.location;return f("",{pathname:r,search:n,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:p(t)},null,e)}function u(e,t){if(!1===e||null==e)throw Error(t)}function c(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function h(){return Math.random().toString(36).substr(2,8)}function d(e,t){return{usr:e.state,key:e.key,idx:t}}function f(e,t,r,n){return void 0===r&&(r=null),o({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?m(t):t,{state:r,key:t&&t.key||n||h()})}function p(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(t+="#"===n.charAt(0)?n:"#"+n),t}function m(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function g(e,t,r,i){void 0===i&&(i={});let{window:a=document.defaultView,v5Compat:l=!1}=i,c=a.history,h=n.Pop,m=null,g=v();function v(){return(c.state||{idx:null}).idx}function y(){h=n.Pop;let e=v(),t=null==e?null:e-g;g=e,m&&m({action:h,location:_.location,delta:t})}function E(e){let t="null"!==a.location.origin?a.location.origin:a.location.href,r="string"==typeof e?e:p(e);return u(t,"No window.location.(origin|href) available to create URL for href: "+(r=r.replace(/ $/,"%20"))),new URL(r,t)}null==g&&(g=0,c.replaceState(o({},c.state,{idx:g}),""));let _={get action(){return h},get location(){return e(a,c)},listen(e){if(m)throw Error("A history only accepts one active listener");return a.addEventListener(s,y),m=e,()=>{a.removeEventListener(s,y),m=null}},createHref:e=>t(a,e),createURL:E,encodeLocation(e){let t=E(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){h=n.Push;let i=f(_.location,e,t);r&&r(i,e);let o=d(i,g=v()+1),s=_.createHref(i);try{c.pushState(o,"",s)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;a.location.assign(s)}l&&m&&m({action:h,location:_.location,delta:1})},replace:function(e,t){h=n.Replace;let i=f(_.location,e,t);r&&r(i,e);let o=d(i,g=v()),s=_.createHref(i);c.replaceState(o,"",s),l&&m&&m({action:h,location:_.location,delta:0})},go:e=>c.go(e)};return _}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(i||(i={}));let v=new Set(["lazy","caseSensitive","path","id","index","children"]);function y(e){return!0===e.index}function E(e,t,r,n){return void 0===r&&(r=[]),void 0===n&&(n={}),e.map((e,i)=>{let s=[...r,String(i)],a="string"==typeof e.id?e.id:s.join("-");if(u(!0!==e.index||!e.children,"Cannot specify children on an index route"),u(!n[a],'Found a route id collision on id "'+a+"\". Route id's must be globally unique within Data Router usages"),y(e)){let r=o({},e,t(e),{id:a});return n[a]=r,r}{let r=o({},e,t(e),{id:a,children:void 0});return n[a]=r,e.children&&(r.children=E(e.children,t,s,n)),r}})}function _(e,t,r){return void 0===r&&(r="/"),b(e,t,r,!1)}function b(e,t,r,n){let i=F(("string"==typeof t?m(t):t).pathname||"/",r);if(null==i)return null;let o=T(e);S(o);let s=null;for(let e=0;null==s&&e{let s={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};s.relativePath.startsWith("/")&&(u(s.relativePath.startsWith(n),'Absolute route path "'+s.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(n.length));let a=q([n,s.relativePath]),l=r.concat(s);e.children&&e.children.length>0&&(u(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+a+'".'),T(e.children,t,l,a)),(null!=e.path||e.index)&&t.push({path:a,score:D(a,e.index),routesMeta:l})};return e.forEach((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let r of C(e.path))i(e,t,r);else i(e,t)}),t}function C(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,i=r.endsWith("?"),o=r.replace(/\?$/,"");if(0===n.length)return i?[o,""]:[o];let s=C(n.join("/")),a=[];return a.push(...s.map(e=>""===e?o:[o,e].join("/"))),i&&a.push(...s),a.map(t=>e.startsWith("/")&&""===t?"/":t)}function S(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:N(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}let w=/^:[\w-]+$/,x=3,R=2,k=1,L=10,I=-2,O=e=>"*"===e;function D(e,t){let r=e.split("/"),n=r.length;return r.some(O)&&(n+=I),t&&(n+=R),r.filter(e=>!O(e)).reduce((e,t)=>e+(w.test(t)?x:""===t?k:L),n)}function N(e,t){return e.length===t.length&&e.slice(0,-1).every((e,r)=>e===t[r])?e[e.length-1]-t[t.length-1]:0}function P(e,t,r){void 0===r&&(r=!1);let{routesMeta:n}=e,i={},o="/",s=[];for(let e=0;e{let{paramName:n,isOptional:i}=t;if("*"===n){let e=a[r]||"";s=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}let l=a[r];return i&&!l?e[n]=void 0:e[n]=(l||"").replace(/%2F/g,"/"),e},{}),pathname:o,pathnameBase:s,pattern:e}}function B(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!0),c("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,r)=>(n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function U(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return c(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function F(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function j(e,t){void 0===t&&(t="/");let{pathname:r,search:n="",hash:i=""}="string"==typeof e?m(e):e;return{pathname:r?r.startsWith("/")?r:K(r,t):t,search:X(n),hash:Y(i)}}function K(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)}),r.length>1?r.join("/"):"/"}function V(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t)+"` field ["+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in and the router will parse it for you.'}function H(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function z(e,t){let r=H(e);return t?r.map((e,t)=>t===r.length-1?e.pathname:e.pathnameBase):r.map(e=>e.pathnameBase)}function G(e,t,r,n){let i,s;void 0===n&&(n=!1),"string"==typeof e?i=m(e):(u(!(i=o({},e)).pathname||!i.pathname.includes("?"),V("?","pathname","search",i)),u(!i.pathname||!i.pathname.includes("#"),V("#","pathname","hash",i)),u(!i.search||!i.search.includes("#"),V("#","search","hash",i)));let a=""===e||""===i.pathname,l=a?"/":i.pathname;if(null==l)s=r;else{let e=t.length-1;if(!n&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}s=e>=0?t[e]:"/"}let c=j(i,s),h=l&&"/"!==l&&l.endsWith("/"),d=(a||"."===l)&&r.endsWith("/");return!c.pathname.endsWith("/")&&(h||d)&&(c.pathname+="/"),c}let q=e=>e.join("/").replace(/\/\/+/g,"/"),W=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),X=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Y=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class Q extends Error{}let Z=function(e,t){void 0===t&&(t=302);let r=t;"number"==typeof r?r={status:r}:void 0===r.status&&(r.status=302);let n=new Headers(r.headers);return n.set("Location",e),new Response(null,o({},r,{headers:n}))};class J{constructor(e,t,r,n){void 0===n&&(n=!1),this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function ee(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}let et=["post","put","patch","delete"],er=new Set(et),en=new Set(["get",...et]),ei=new Set([301,302,303,307,308]),eo=new Set([307,308]),es={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ea={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},el={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},eu=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ec=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),eh="remix-router-transitions";function ed(e){let t,r,s,a,l;let h=e.window?e.window:"undefined"!=typeof window?window:void 0,d=void 0!==h&&void 0!==h.document&&void 0!==h.document.createElement,p=!d;if(u(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)t=e.mapRouteProperties;else if(e.detectErrorBoundary){let r=e.detectErrorBoundary;t=e=>({hasErrorBoundary:r(e)})}else t=ec;let m={},g=E(e.routes,t,void 0,m),v=e.basename||"/",y=e.unstable_dataStrategy||eC,T=e.unstable_patchRoutesOnMiss,C=o({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),S=null,w=new Set,x=null,R=null,k=null,L=null!=e.hydrationData,I=_(g,e.history.location,v),O=null;if(null==I&&!T){let t=eF(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=eU(g);I=r,O={[n.id]:t}}if(I&&T&&!e.hydrationData&&td(I,g,e.history.location.pathname).active&&(I=null),I){if(I.some(e=>e.route.lazy))s=!1;else if(I.some(e=>e.route.loader)){if(C.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null,n=e=>!e.route.loader||("function"!=typeof e.route.loader||!0!==e.route.loader.hydrate)&&(t&&void 0!==t[e.route.id]||r&&void 0!==r[e.route.id]);if(r){let e=I.findIndex(e=>void 0!==r[e.route.id]);s=I.slice(0,e+1).every(n)}else s=I.every(n)}else s=null!=e.hydrationData}else s=!0}else s=!1,I=[];let D={historyAction:e.history.action,location:e.history.location,matches:I,initialized:s,navigation:es,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||O,fetchers:new Map,blockers:new Map},N=n.Pop,P=!1,M=!1,B=new Map,U=null,j=!1,K=!1,V=[],H=[],z=new Map,G=0,q=-1,W=new Map,X=new Set,Y=new Map,Q=new Map,Z=new Set,J=new Map,et=new Map,er=new Map,en=!1;function ei(e,t){void 0===t&&(t={}),D=o({},D,e);let r=[],n=[];C.v7_fetcherPersist&&D.fetchers.forEach((e,t)=>{"idle"===e.state&&(Z.has(t)?n.push(t):r.push(t))}),[...w].forEach(e=>e(D,{deletedFetchers:n,unstable_viewTransitionOpts:t.viewTransitionOpts,unstable_flushSync:!0===t.flushSync})),C.v7_fetcherPersist&&(r.forEach(e=>D.fetchers.delete(e)),n.forEach(e=>eY(e)))}function eh(t,i,s){var a,l;let u,c;let{flushSync:h}=void 0===s?{}:s,d=null!=D.actionData&&null!=D.navigation.formMethod&&eQ(D.navigation.formMethod)&&"loading"===D.navigation.state&&(null==(a=t.state)?void 0:a._isRedirect)!==!0;u=i.actionData?Object.keys(i.actionData).length>0?i.actionData:null:d?D.actionData:null;let f=i.loaderData?eP(D.loaderData,i.loaderData,i.matches||[],i.errors):D.loaderData,p=D.blockers;p.size>0&&(p=new Map(p)).forEach((e,t)=>p.set(t,el));let m=!0===P||null!=D.navigation.formMethod&&eQ(D.navigation.formMethod)&&(null==(l=t.state)?void 0:l._isRedirect)!==!0;if(r&&(g=r,r=void 0),j||N===n.Pop||(N===n.Push?e.history.push(t,t.state):N===n.Replace&&e.history.replace(t,t.state)),N===n.Pop){let e=B.get(D.location.pathname);e&&e.has(t.pathname)?c={currentLocation:D.location,nextLocation:t}:B.has(t.pathname)&&(c={currentLocation:t,nextLocation:D.location})}else if(M){let e=B.get(D.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),B.set(D.location.pathname,e)),c={currentLocation:D.location,nextLocation:t}}ei(o({},i,{actionData:u,loaderData:f,historyAction:N,location:t,initialized:!0,navigation:es,revalidation:"idle",restoreScrollPosition:th(t,i.matches||D.matches),preventScrollReset:m,blockers:p}),{viewTransitionOpts:c,flushSync:!0===h}),N=n.Pop,P=!1,M=!1,j=!1,K=!1,V=[],H=[]}async function ed(t,r){if("number"==typeof t){e.history.go(t);return}let i=ep(D.location,D.matches,v,C.v7_prependBasename,t,C.v7_relativeSplatPath,null==r?void 0:r.fromRouteId,null==r?void 0:r.relative),{path:s,submission:a,error:l}=em(C.v7_normalizeFormMethod,!1,i,r),u=D.location,c=f(D.location,s,r&&r.state);c=o({},c,e.history.encodeLocation(c));let h=r&&null!=r.replace?r.replace:void 0,d=n.Push;!0===h?d=n.Replace:!1===h||null!=a&&eQ(a.formMethod)&&a.formAction===D.location.pathname+D.location.search&&(d=n.Replace);let p=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,m=!0===(r&&r.unstable_flushSync),g=to({currentLocation:u,nextLocation:c,historyAction:d});if(g){ti(g,{state:"blocked",location:c,proceed(){ti(g,{state:"proceeding",proceed:void 0,reset:void 0,location:c}),ed(t,r)},reset(){let e=new Map(D.blockers);e.set(g,el),ei({blockers:e})}});return}return await ef(d,c,{submission:a,pendingError:l,preventScrollReset:p,replace:r&&r.replace,enableViewTransition:r&&r.unstable_viewTransition,flushSync:m})}async function ef(t,n,s){let a;l&&l.abort(),l=null,N=t,j=!0===(s&&s.startUninterruptedRevalidation),tc(D.location,D.matches),P=!0===(s&&s.preventScrollReset),M=!0===(s&&s.enableViewTransition);let u=r||g,c=s&&s.overrideNavigation,h=_(u,n,v),d=!0===(s&&s.flushSync),f=td(h,u,n.pathname);if(f.active&&f.matches&&(h=f.matches),!h){let{error:e,notFoundMatches:t,route:r}=ts(n.pathname);eh(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:d});return}if(D.initialized&&!K&&eV(D.location,n)&&!(s&&s.submission&&eQ(s.submission.formMethod))){eh(n,{matches:h},{flushSync:d});return}l=new AbortController;let p=eL(e.history,n,l.signal,s&&s.submission);if(s&&s.pendingError)a=[eB(h).route.id,{type:i.error,error:s.pendingError}];else if(s&&s.submission&&eQ(s.submission.formMethod)){let t=await eg(p,n,s.submission,h,f.active,{replace:s.replace,flushSync:d});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(eG(r)&&ee(r.error)&&404===r.error.status){l=null,eh(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}});return}}h=t.matches||h,a=t.pendingActionResult,c=e3(n,s.submission),d=!1,f.active=!1,p=eL(e.history,p.url,p.signal)}let{shortCircuited:m,matches:y,loaderData:E,errors:b}=await ey(p,n,h,f.active,c,s&&s.submission,s&&s.fetcherSubmission,s&&s.replace,s&&!0===s.initialHydration,d,a);m||(l=null,eh(n,o({matches:y||h},eM(a),{loaderData:E,errors:b})))}async function eg(e,t,r,o,s,a){let l;if(void 0===a&&(a={}),eK(),ei({navigation:e4(t,r)},{flushSync:!0===a.flushSync}),s){let r=await tf(o,t.pathname,e.signal);if("aborted"===r.type)return{shortCircuited:!0};if("error"===r.type){let{boundaryId:e,error:n}=ta(t.pathname,r);return{matches:r.partialMatches,pendingActionResult:[e,{type:i.error,error:n}]}}if(r.matches)o=r.matches;else{let{notFoundMatches:e,error:r,route:n}=ts(t.pathname);return{matches:e,pendingActionResult:[n.id,{type:i.error,error:r}]}}}let u=e1(o,t);if(u.route.action||u.route.lazy){if(l=(await eO("action",e,[u],o))[0],e.signal.aborted)return{shortCircuited:!0}}else l={type:i.error,error:eF(405,{method:e.method,pathname:t.pathname,routeId:u.route.id})};if(eq(l)){let t;return t=a&&null!=a.replace?a.replace:ek(l.response.headers.get("Location"),new URL(e.url),v)===D.location.pathname+D.location.search,await eI(e,l,{submission:r,replace:t}),{shortCircuited:!0}}if(e$(l))throw eF(400,{type:"defer-action"});if(eG(l)){let e=eB(o,u.route.id);return!0!==(a&&a.replace)&&(N=n.Push),{matches:o,pendingActionResult:[e.route.id,l]}}return{matches:o,pendingActionResult:[u.route.id,l]}}async function ey(t,n,i,s,a,u,c,h,d,f,p){let m=a||e3(n,u),y=u||c||e2(m),E=!j&&(!C.v7_partialHydration||!d);if(s){if(E){let e=eE(p);ei(o({navigation:m},void 0!==e?{actionData:e}:{}),{flushSync:f})}let e=await tf(i,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let{boundaryId:t,error:r}=ta(n.pathname,e);return{matches:e.partialMatches,loaderData:{},errors:{[t]:r}}}if(e.matches)i=e.matches;else{let{error:e,notFoundMatches:t,route:r}=ts(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let _=r||g,[b,A]=ev(e.history,D,i,y,n,C.v7_partialHydration&&!0===d,C.v7_skipActionErrorRevalidation,K,V,H,Z,Y,X,_,v,p);if(tl(e=>!(i&&i.some(t=>t.route.id===e))||b&&b.some(t=>t.route.id===e)),q=++G,0===b.length&&0===A.length){let e=tt();return eh(n,o({matches:i,loaderData:{},errors:p&&eG(p[1])?{[p[0]]:p[1].error}:null},eM(p),e?{fetchers:new Map(D.fetchers)}:{}),{flushSync:f}),{shortCircuited:!0}}if(E){let e={};if(!s){e.navigation=m;let t=eE(p);void 0!==t&&(e.actionData=t)}A.length>0&&(e.fetchers=e_(A)),ei(e,{flushSync:f})}A.forEach(e=>{z.has(e.key)&&e0(e.key),e.controller&&z.set(e.key,e.controller)});let T=()=>A.forEach(e=>e0(e.key));l&&l.signal.addEventListener("abort",T);let{loaderResults:S,fetcherResults:w}=await eD(D.matches,i,b,A,t);if(t.signal.aborted)return{shortCircuited:!0};l&&l.signal.removeEventListener("abort",T),A.forEach(e=>z.delete(e.key));let x=ej([...S,...w]);if(x){if(x.idx>=b.length){let e=A[x.idx-b.length].key;X.add(e)}return await eI(t,x.result,{replace:h}),{shortCircuited:!0}}let{loaderData:R,errors:k}=eN(D,i,b,S,p,A,w,J);J.forEach((e,t)=>{e.subscribe(r=>{(r||e.done)&&J.delete(t)})}),C.v7_partialHydration&&d&&D.errors&&Object.entries(D.errors).filter(e=>{let[t]=e;return!b.some(e=>e.route.id===t)}).forEach(e=>{let[t,r]=e;k=Object.assign(k||{},{[t]:r})});let L=tt(),I=tr(q),O=L||I||A.length>0;return o({matches:i,loaderData:R,errors:k},O?{fetchers:new Map(D.fetchers)}:{})}function eE(e){return e&&!eG(e[1])?{[e[0]]:e[1].data}:D.actionData?0===Object.keys(D.actionData).length?null:D.actionData:void 0}function e_(e){return e.forEach(e=>{let t=D.fetchers.get(e.key),r=e5(void 0,t?t.data:void 0);D.fetchers.set(e.key,r)}),new Map(D.fetchers)}async function eT(t,n,i,o,s,a,c,h){function d(e){if(!e.route.action&&!e.route.lazy){let e=eF(405,{method:h.formMethod,pathname:i,routeId:n});return eW(t,n,e,{flushSync:c}),!0}return!1}if(eK(),Y.delete(t),!a&&d(o))return;let f=D.fetchers.get(t);eH(t,e6(h,f),{flushSync:c});let p=new AbortController,m=eL(e.history,i,p.signal,h);if(a){let e=await tf(s,i,m.signal);if("aborted"===e.type)return;if("error"===e.type){let{error:r}=ta(i,e);eW(t,n,r,{flushSync:c});return}if(e.matches){if(d(o=e1(s=e.matches,i)))return}else{eW(t,n,eF(404,{pathname:i}),{flushSync:c});return}}z.set(t,p);let y=G,E=(await eO("action",m,[o],s))[0];if(m.signal.aborted){z.get(t)===p&&z.delete(t);return}if(C.v7_fetcherPersist&&Z.has(t)){if(eq(E)||eG(E)){eH(t,e7(void 0));return}}else{if(eq(E))return(z.delete(t),q>y)?void eH(t,e7(void 0)):(X.add(t),eH(t,e5(h)),eI(m,E,{fetcherSubmission:h}));if(eG(E)){eW(t,n,E.error);return}}if(e$(E))throw eF(400,{type:"defer-action"});let b=D.navigation.location||D.location,A=eL(e.history,b,p.signal),T=r||g,S="idle"!==D.navigation.state?_(T,D.navigation.location,v):D.matches;u(S,"Didn't find any matches after fetcher action");let w=++G;W.set(t,w);let x=e5(h,E.data);D.fetchers.set(t,x);let[R,k]=ev(e.history,D,S,h,b,!1,C.v7_skipActionErrorRevalidation,K,V,H,Z,Y,X,T,v,[o.route.id,E]);k.filter(e=>e.key!==t).forEach(e=>{let t=e.key,r=D.fetchers.get(t),n=e5(void 0,r?r.data:void 0);D.fetchers.set(t,n),z.has(t)&&e0(t),e.controller&&z.set(t,e.controller)}),ei({fetchers:new Map(D.fetchers)});let L=()=>k.forEach(e=>e0(e.key));p.signal.addEventListener("abort",L);let{loaderResults:I,fetcherResults:O}=await eD(D.matches,S,R,k,A);if(p.signal.aborted)return;p.signal.removeEventListener("abort",L),W.delete(t),z.delete(t),k.forEach(e=>z.delete(e.key));let P=ej([...I,...O]);if(P){if(P.idx>=R.length){let e=k[P.idx-R.length].key;X.add(e)}return eI(A,P.result)}let{loaderData:M,errors:B}=eN(D,D.matches,R,I,void 0,k,O,J);if(D.fetchers.has(t)){let e=e7(E.data);D.fetchers.set(t,e)}tr(w),"loading"===D.navigation.state&&w>q?(u(N,"Expected pending action"),l&&l.abort(),eh(D.navigation.location,{matches:S,loaderData:M,errors:B,fetchers:new Map(D.fetchers)})):(ei({errors:B,loaderData:eP(D.loaderData,M,S,B),fetchers:new Map(D.fetchers)}),K=!1)}async function ew(t,r,n,i,o,s,a,l){let c=D.fetchers.get(t);eH(t,e5(l,c?c.data:void 0),{flushSync:a});let h=new AbortController,d=eL(e.history,n,h.signal);if(s){let e=await tf(o,n,d.signal);if("aborted"===e.type)return;if("error"===e.type){let{error:i}=ta(n,e);eW(t,r,i,{flushSync:a});return}if(e.matches)i=e1(o=e.matches,n);else{eW(t,r,eF(404,{pathname:n}),{flushSync:a});return}}z.set(t,h);let f=G,p=(await eO("loader",d,[i],o))[0];if(e$(p)&&(p=await eJ(p,d.signal,!0)||p),z.get(t)===h&&z.delete(t),!d.signal.aborted){if(Z.has(t)){eH(t,e7(void 0));return}if(eq(p)){if(q>f){eH(t,e7(void 0));return}X.add(t),await eI(d,p);return}if(eG(p)){eW(t,r,p.error);return}u(!e$(p),"Unhandled fetcher deferred data"),eH(t,e7(p.data))}}async function eI(t,r,i){let{submission:s,fetcherSubmission:a,replace:c}=void 0===i?{}:i;r.response.headers.has("X-Remix-Revalidate")&&(K=!0);let p=r.response.headers.get("Location");u(p,"Expected a Location header on the redirect Response"),p=ek(p,new URL(t.url),v);let m=f(D.location,p,{_isRedirect:!0});if(d){let t=!1;if(r.response.headers.has("X-Remix-Reload-Document"))t=!0;else if(eu.test(p)){let r=e.history.createURL(p);t=r.origin!==h.location.origin||null==F(r.pathname,v)}if(t){c?h.location.replace(p):h.location.assign(p);return}}l=null;let g=!0===c?n.Replace:n.Push,{formMethod:y,formAction:E,formEncType:_}=D.navigation;!s&&!a&&y&&E&&_&&(s=e2(D.navigation));let b=s||a;if(eo.has(r.response.status)&&b&&eQ(b.formMethod))await ef(g,m,{submission:o({},b,{formAction:p}),preventScrollReset:P});else{let e=e3(m,s);await ef(g,m,{overrideNavigation:e,fetcherSubmission:a,preventScrollReset:P})}}async function eO(e,r,n,o){try{let s=await eS(y,e,r,n,o,m,t);return await Promise.all(s.map((e,t)=>{if(ez(e)){let s=e.result;return{type:i.redirect,response:eR(s,r,n[t].route.id,o,v,C.v7_relativeSplatPath)}}return ex(e)}))}catch(e){return n.map(()=>({type:i.error,error:e}))}}async function eD(t,r,n,o,s){let[a,...l]=await Promise.all([n.length?eO("loader",s,n,r):[],...o.map(t=>t.matches&&t.match&&t.controller?eO("loader",eL(e.history,t.path,t.controller.signal),[t.match],t.matches).then(e=>e[0]):Promise.resolve({type:i.error,error:eF(404,{pathname:t.path})}))]);return await Promise.all([eZ(t,n,a,a.map(()=>s.signal),!1,D.loaderData),eZ(t,o.map(e=>e.match),l,o.map(e=>e.controller?e.controller.signal:null),!0)]),{loaderResults:a,fetcherResults:l}}function eK(){K=!0,V.push(...tl()),Y.forEach((e,t)=>{z.has(t)&&(H.push(t),e0(t))})}function eH(e,t,r){void 0===r&&(r={}),D.fetchers.set(e,t),ei({fetchers:new Map(D.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function eW(e,t,r,n){void 0===n&&(n={});let i=eB(D.matches,t);eY(e),ei({errors:{[i.route.id]:r},fetchers:new Map(D.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function eX(e){return C.v7_fetcherPersist&&(Q.set(e,(Q.get(e)||0)+1),Z.has(e)&&Z.delete(e)),D.fetchers.get(e)||ea}function eY(e){let t=D.fetchers.get(e);z.has(e)&&!(t&&"loading"===t.state&&W.has(e))&&e0(e),Y.delete(e),W.delete(e),X.delete(e),Z.delete(e),D.fetchers.delete(e)}function e0(e){let t=z.get(e);u(t,"Expected fetch controller: "+e),t.abort(),z.delete(e)}function te(e){for(let t of e){let e=e7(eX(t).data);D.fetchers.set(t,e)}}function tt(){let e=[],t=!1;for(let r of X){let n=D.fetchers.get(r);u(n,"Expected fetcher: "+r),"loading"===n.state&&(X.delete(r),e.push(r),t=!0)}return te(e),t}function tr(e){let t=[];for(let[r,n]of W)if(n0}function tn(e){D.blockers.delete(e),et.delete(e)}function ti(e,t){let r=D.blockers.get(e)||el;u("unblocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"proceeding"===t.state||"blocked"===r.state&&"unblocked"===t.state||"proceeding"===r.state&&"unblocked"===t.state,"Invalid blocker state transition: "+r.state+" -> "+t.state);let n=new Map(D.blockers);n.set(e,t),ei({blockers:n})}function to(e){let{currentLocation:t,nextLocation:r,historyAction:n}=e;if(0===et.size)return;et.size>1&&c(!1,"A router only supports one blocker at a time");let i=Array.from(et.entries()),[o,s]=i[i.length-1],a=D.blockers.get(o);if((!a||"proceeding"!==a.state)&&s({currentLocation:t,nextLocation:r,historyAction:n}))return o}function ts(e){let t=eF(404,{pathname:e}),{matches:n,route:i}=eU(r||g);return tl(),{notFoundMatches:n,route:i,error:t}}function ta(e,t){return{boundaryId:eB(t.partialMatches).route.id,error:eF(400,{type:"route-discovery",pathname:e,message:null!=t.error&&"message"in t.error?t.error:String(t.error)})}}function tl(e){let t=[];return J.forEach((r,n)=>{(!e||e(n))&&(r.cancel(),t.push(n),J.delete(n))}),t}function tu(e,t){return R&&R(e,t.map(e=>A(e,D.loaderData)))||e.key}function tc(e,t){x&&k&&(x[tu(e,t)]=k())}function th(e,t){if(x){let r=x[tu(e,t)];if("number"==typeof r)return r}return null}function td(e,t,r){if(T){if(!e)return{active:!0,matches:b(t,r,v,!0)||[]};{let n=e[e.length-1].route;if(n.path&&("*"===n.path||n.path.endsWith("/*")))return{active:!0,matches:b(t,r,v,!0)}}}return{active:!1,matches:null}}async function tf(e,n,i){let o=e,s=o.length>0?o[o.length-1].route:null;for(;;){let e=null==r,a=r||g;try{await eb(T,n,o,a,m,t,er,i)}catch(e){return{type:"error",error:e,partialMatches:o}}finally{e&&(g=[...g])}if(i.aborted)return{type:"aborted"};let l=_(a,n,v),u=!1;if(l){let e=l[l.length-1].route;if(e.index)return{type:"success",matches:l};if(e.path&&e.path.length>0){if("*"!==e.path)return{type:"success",matches:l};u=!0}}let c=b(a,n,v,!0);if(!c||o.map(e=>e.route.id).join("-")===c.map(e=>e.route.id).join("-"))return{type:"success",matches:u?l:null};if("*"===(s=(o=c)[o.length-1].route).path)return{type:"success",matches:o}}}return a={get basename(){return v},get future(){return C},get state(){return D},get routes(){return g},get window(){return h},initialize:function(){if(S=e.history.listen(t=>{let{action:r,location:n,delta:i}=t;if(en){en=!1;return}c(0===et.size||null!=i,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let o=to({currentLocation:D.location,nextLocation:n,historyAction:r});if(o&&null!=i){en=!0,e.history.go(-1*i),ti(o,{state:"blocked",location:n,proceed(){ti(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),e.history.go(i)},reset(){let e=new Map(D.blockers);e.set(o,el),ei({blockers:e})}});return}return ef(r,n)}),d){e8(h,B);let e=()=>e9(h,B);h.addEventListener("pagehide",e),U=()=>h.removeEventListener("pagehide",e)}return D.initialized||ef(n.Pop,D.location,{initialHydration:!0}),a},subscribe:function(e){return w.add(e),()=>w.delete(e)},enableScrollRestoration:function(e,t,r){if(x=e,k=t,R=r||null,!L&&D.navigation===es){L=!0;let e=th(D.location,D.matches);null!=e&&ei({restoreScrollPosition:e})}return()=>{x=null,k=null,R=null}},navigate:ed,fetch:function(e,t,n,i){if(p)throw Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");z.has(e)&&e0(e);let o=!0===(i&&i.unstable_flushSync),s=r||g,a=ep(D.location,D.matches,v,C.v7_prependBasename,n,C.v7_relativeSplatPath,t,null==i?void 0:i.relative),l=_(s,a,v),u=td(l,s,a);if(u.active&&u.matches&&(l=u.matches),!l){eW(e,t,eF(404,{pathname:a}),{flushSync:o});return}let{path:c,submission:h,error:d}=em(C.v7_normalizeFormMethod,!0,a,i);if(d){eW(e,t,d,{flushSync:o});return}let f=e1(l,c);if(P=!0===(i&&i.preventScrollReset),h&&eQ(h.formMethod)){eT(e,t,c,f,l,u.active,o,h);return}Y.set(e,{routeId:t,path:c}),ew(e,t,c,f,l,u.active,o,h)},revalidate:function(){if(eK(),ei({revalidation:"loading"}),"submitting"!==D.navigation.state){if("idle"===D.navigation.state){ef(D.historyAction,D.location,{startUninterruptedRevalidation:!0});return}ef(N||D.historyAction,D.navigation.location,{overrideNavigation:D.navigation})}},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:eX,deleteFetcher:function(e){if(C.v7_fetcherPersist){let t=(Q.get(e)||0)-1;t<=0?(Q.delete(e),Z.add(e)):Q.set(e,t)}else eY(e);ei({fetchers:new Map(D.fetchers)})},dispose:function(){S&&S(),U&&U(),w.clear(),l&&l.abort(),D.fetchers.forEach((e,t)=>eY(t)),D.blockers.forEach((e,t)=>tn(t))},getBlocker:function(e,t){let r=D.blockers.get(e)||el;return et.get(e)!==t&&et.set(e,t),r},deleteBlocker:tn,patchRoutes:function(e,n){let i=null==r;eA(e,n,r||g,m,t),i&&(g=[...g],ei({}))},_internalFetchControllers:z,_internalActiveDeferreds:J,_internalSetRoutes:function(e){r=E(e,t,void 0,m={})}}}function ef(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}function ep(e,t,r,n,i,o,s,a){let l,u;if(s){for(let e of(l=[],t))if(l.push(e),e.route.id===s){u=e;break}}else l=t,u=t[t.length-1];let c=G(i||".",z(l,o),F(e.pathname,r)||e.pathname,"path"===a);return null==i&&(c.search=e.search,c.hash=e.hash),(null==i||""===i||"."===i)&&u&&u.route.index&&!e0(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),n&&"/"!==r&&(c.pathname="/"===c.pathname?r:q([r,c.pathname])),p(c)}function em(e,t,r,n){let i,o;if(!n||!ef(n))return{path:r};if(n.formMethod&&!eY(n.formMethod))return{path:r,error:eF(405,{method:n.formMethod})};let s=()=>({path:r,error:eF(400,{type:"invalid-body"})}),a=n.formMethod||"get",l=e?a.toUpperCase():a.toLowerCase(),c=eK(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!eQ(l))return s();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,t)=>{let[r,n]=t;return""+e+r+"="+n+"\n"},""):String(n.body);return{path:r,submission:{formMethod:l,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!eQ(l))return s();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:l,formAction:c,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return s()}}}if(u("function"==typeof FormData,"FormData is not available in this environment"),n.formData)i=eI(n.formData),o=n.formData;else if(n.body instanceof FormData)i=eI(n.body),o=n.body;else if(n.body instanceof URLSearchParams)o=eO(i=n.body);else if(null==n.body)i=new URLSearchParams,o=new FormData;else try{i=new URLSearchParams(n.body),o=eO(i)}catch(e){return s()}let h={formMethod:l,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:o,json:void 0,text:void 0};if(eQ(h.formMethod))return{path:r,submission:h};let d=m(r);return t&&d.search&&e0(d.search)&&i.append("index",""),d.search="?"+i,{path:p(d),submission:h}}function eg(e,t){let r=e;if(t){let n=e.findIndex(e=>e.route.id===t);n>=0&&(r=e.slice(0,n))}return r}function ev(e,t,r,n,i,s,a,l,u,c,h,d,f,p,m,g){let v=g?eG(g[1])?g[1].error:g[1].data:void 0,y=e.createURL(t.location),E=e.createURL(i),b=g&&eG(g[1])?g[0]:void 0,A=b?eg(r,b):r,T=g?g[1].statusCode:void 0,C=a&&T&&T>=400,S=A.filter((e,r)=>{let{route:i}=e;if(i.lazy)return!0;if(null==i.loader)return!1;if(s)return"function"!=typeof i.loader||!!i.loader.hydrate||void 0===t.loaderData[i.id]&&(!t.errors||void 0===t.errors[i.id]);if(ey(t.loaderData,t.matches[r],e)||u.some(t=>t===e.route.id))return!0;let a=t.matches[r],c=e;return e_(e,o({currentUrl:y,currentParams:a.params,nextUrl:E,nextParams:c.params},n,{actionResult:v,actionStatus:T,defaultShouldRevalidate:!C&&(l||y.pathname+y.search===E.pathname+E.search||y.search!==E.search||eE(a,c))}))}),w=[];return d.forEach((e,i)=>{if(s||!r.some(t=>t.route.id===e.routeId)||h.has(i))return;let a=_(p,e.path,m);if(!a){w.push({key:i,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});return}let u=t.fetchers.get(i),d=e1(a,e.path),g=!1;(g=!f.has(i)&&(!!c.includes(i)||(u&&"idle"!==u.state&&void 0===u.data?l:e_(d,o({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:E,nextParams:r[r.length-1].params},n,{actionResult:v,actionStatus:T,defaultShouldRevalidate:!C&&l})))))&&w.push({key:i,routeId:e.routeId,path:e.path,matches:a,match:d,controller:new AbortController})}),[S,w]}function ey(e,t,r){let n=!t||r.route.id!==t.route.id,i=void 0===e[r.route.id];return n||i}function eE(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function e_(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}async function eb(e,t,r,n,i,o,s,a){let l=[t,...r.map(e=>e.route.id)].join("-");try{let u=s.get(l);u||(u=e({path:t,matches:r,patch:(e,t)=>{a.aborted||eA(e,t,n,i,o)}}),s.set(l,u)),u&&eH(u)&&await u}finally{s.delete(l)}}function eA(e,t,r,n,i){if(e){var o;let r=n[e];u(r,"No route found to patch children into: routeId = "+e);let s=E(t,i,[e,"patch",String((null==(o=r.children)?void 0:o.length)||"0")],n);r.children?r.children.push(...s):r.children=s}else{let e=E(t,i,["patch",String(r.length||"0")],n);r.push(...e)}}async function eT(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let i=r[e.id];u(i,"No route found in manifest");let s={};for(let e in n){let t=void 0!==i[e]&&"hasErrorBoundary"!==e;c(!t,'Route "'+i.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||v.has(e)||(s[e]=n[e])}Object.assign(i,s),Object.assign(i,o({},t(i),{lazy:void 0}))}function eC(e){return Promise.all(e.matches.map(e=>e.resolve()))}async function eS(e,t,r,n,s,a,l,c){let h=n.reduce((e,t)=>e.add(t.route.id),new Set),d=new Set,f=await e({matches:s.map(e=>{let n=h.has(e.route.id),s=o=>(d.add(e.route.id),n?ew(t,r,e,a,l,o,c):Promise.resolve({type:i.data,result:void 0}));return o({},e,{shouldLoad:n,resolve:s})}),request:r,params:s[0].params,context:c});return s.forEach(e=>u(d.has(e.route.id),'`match.resolve()` was not called for route id "'+e.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),f.filter((e,t)=>h.has(s[t].route.id))}async function ew(e,t,r,n,o,s,a){let l,c;let h=n=>{let i,o;let l=new Promise((e,t)=>i=t);c=()=>i(),t.signal.addEventListener("abort",c);let u=i=>"function"!=typeof n?Promise.reject(Error('You cannot call the handler for a route which defines a boolean "'+e+'" [routeId: '+r.route.id+"]")):n({request:t,params:r.params,context:a},...void 0!==i?[i]:[]);return Promise.race([o=s?s(e=>u(e)):(async()=>{try{let e=await u();return{type:"data",result:e}}catch(e){return{type:"error",result:e}}})(),l])};try{let s=r.route[e];if(r.route.lazy){if(s){let e;let[t]=await Promise.all([h(s).catch(t=>{e=t}),eT(r.route,o,n)]);if(void 0!==e)throw e;l=t}else if(await eT(r.route,o,n),s=r.route[e])l=await h(s);else{if("action"!==e)return{type:i.data,result:void 0};let n=new URL(t.url),o=n.pathname+n.search;throw eF(405,{method:t.method,pathname:o,routeId:r.route.id})}}else if(s)l=await h(s);else{let e=new URL(t.url),r=e.pathname+e.search;throw eF(404,{pathname:r})}u(void 0!==l.result,"You defined "+("action"===e?"an action":"a loader")+" for route "+('"'+r.route.id)+"\" but didn't return anything from your `"+e+"` function. Please return a value or `null`.")}catch(e){return{type:i.error,result:e}}finally{c&&t.signal.removeEventListener("abort",c)}return l}async function ex(e){let{result:t,type:r,status:n}=e;if(eX(t)){let e;try{let r=t.headers.get("Content-Type");e=r&&/\bapplication\/json\b/.test(r)?null==t.body?null:await t.json():await t.text()}catch(e){return{type:i.error,error:e}}return r===i.error?{type:i.error,error:new J(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:i.data,data:e,statusCode:t.status,headers:t.headers}}if(r===i.error)return{type:i.error,error:t,statusCode:ee(t)?t.status:n};if(eW(t)){var o,s;return{type:i.deferred,deferredData:t,statusCode:null==(o=t.init)?void 0:o.status,headers:(null==(s=t.init)?void 0:s.headers)&&new Headers(t.init.headers)}}return{type:i.data,data:t,statusCode:n}}function eR(e,t,r,n,i,o){let s=e.headers.get("Location");if(u(s,"Redirects returned/thrown from loaders/actions must have a Location header"),!eu.test(s)){let a=n.slice(0,n.findIndex(e=>e.route.id===r)+1);s=ep(new URL(t.url),a,i,!0,s,o),e.headers.set("Location",s)}return e}function ek(e,t,r){if(eu.test(e)){let n=e,i=new URL(n.startsWith("//")?t.protocol+n:n),o=null!=F(i.pathname,r);if(i.origin===t.origin&&o)return i.pathname+i.search+i.hash}return e}function eL(e,t,r,n){let i=e.createURL(eK(t)).toString(),o={signal:r};if(n&&eQ(n.formMethod)){let{formMethod:e,formEncType:t}=n;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(n.json)):"text/plain"===t?o.body=n.text:"application/x-www-form-urlencoded"===t&&n.formData?o.body=eI(n.formData):o.body=n.formData}return new Request(i,o)}function eI(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function eO(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function eD(e,t,r,n,i,o){let s,a={},l=null,c=!1,h={},d=n&&eG(n[1])?n[1].error:void 0;return r.forEach((r,n)=>{let f=t[n].route.id;if(u(!eq(r),"Cannot handle redirect results in processLoaderData"),eG(r)){let t=r.error;if(void 0!==d&&(t=d,d=void 0),l=l||{},o)l[f]=t;else{let r=eB(e,f);null==l[r.route.id]&&(l[r.route.id]=t)}a[f]=void 0,c||(c=!0,s=ee(r.error)?r.error.status:500),r.headers&&(h[f]=r.headers)}else e$(r)?(i.set(f,r.deferredData),a[f]=r.deferredData.data,null==r.statusCode||200===r.statusCode||c||(s=r.statusCode)):(a[f]=r.data,r.statusCode&&200!==r.statusCode&&!c&&(s=r.statusCode)),r.headers&&(h[f]=r.headers)}),void 0!==d&&n&&(l={[n[0]]:d},a[n[0]]=void 0),{loaderData:a,errors:l,statusCode:s||200,loaderHeaders:h}}function eN(e,t,r,n,i,s,a,l){let{loaderData:c,errors:h}=eD(t,r,n,i,l,!1);for(let t=0;te.route.id===t)+1):[...e]).reverse().find(e=>!0===e.route.hasErrorBoundary)||e[0]}function eU(e){let t=1===e.length?e[0]:e.find(e=>e.index||!e.path||"/"===e.path)||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function eF(e,t){let{pathname:r,routeId:n,method:i,type:o,message:s}=void 0===t?{}:t,a="Unknown Server Error",l="Unknown @remix-run/router error";return 400===e?(a="Bad Request","route-discovery"===o?l='Unable to match URL "'+r+'" - the `unstable_patchRoutesOnMiss()` function threw the following error:\n'+s:i&&r&&n?l="You made a "+i+' request to "'+r+'" but did not provide a `loader` for route "'+n+'", so there is no way to handle the request.':"defer-action"===o?l="defer() is not supported in actions":"invalid-body"===o&&(l="Unable to encode submission body")):403===e?(a="Forbidden",l='Route "'+n+'" does not match URL "'+r+'"'):404===e?(a="Not Found",l='No route matches URL "'+r+'"'):405===e&&(a="Method Not Allowed",i&&r&&n?l="You made a "+i.toUpperCase()+' request to "'+r+'" but did not provide an `action` for route "'+n+'", so there is no way to handle the request.':i&&(l='Invalid request method "'+i.toUpperCase()+'"')),new J(e||500,a,Error(l),!0)}function ej(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(eq(r))return{result:r,idx:t}}}function eK(e){let t="string"==typeof e?m(e):e;return p(o({},t,{hash:""}))}function eV(e,t){return e.pathname===t.pathname&&e.search===t.search&&(""===e.hash?""!==t.hash:e.hash===t.hash||""!==t.hash)}function eH(e){return"object"==typeof e&&null!=e&&"then"in e}function ez(e){return eX(e.result)&&ei.has(e.result.status)}function e$(e){return e.type===i.deferred}function eG(e){return e.type===i.error}function eq(e){return(e&&e.type)===i.redirect}function eW(e){let t=e;return t&&"object"==typeof t&&"object"==typeof t.data&&"function"==typeof t.subscribe&&"function"==typeof t.cancel&&"function"==typeof t.resolveData}function eX(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function eY(e){return en.has(e.toLowerCase())}function eQ(e){return er.has(e.toLowerCase())}async function eZ(e,t,r,n,i,o){for(let s=0;se.route.id===l.route.id),h=null!=c&&!eE(c,l)&&(o&&o[l.route.id])!==void 0;if(e$(a)&&(i||h)){let e=n[s];u(e,"Expected an AbortSignal for revalidating fetcher deferred result"),await eJ(a,e,i).then(e=>{e&&(r[s]=e||r[s])})}}}async function eJ(e,t,r){if(void 0===r&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:i.data,data:e.deferredData.unwrappedData}}catch(e){return{type:i.error,error:e}}return{type:i.data,data:e.deferredData.data}}}function e0(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function e1(e,t){let r="string"==typeof t?m(t).search:t.search;if(e[e.length-1].route.index&&e0(r||""))return e[e.length-1];let n=H(e);return n[n.length-1]}function e2(e){let{formMethod:t,formAction:r,formEncType:n,text:i,formData:o,json:s}=e;if(t&&r&&n){if(null!=i)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:i};if(null!=o)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};if(void 0!==s)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:s,text:void 0}}}function e3(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function e4(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function e5(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function e6(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function e7(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function e8(e,t){try{let r=e.sessionStorage.getItem(eh);if(r){let e=JSON.parse(r);for(let[r,n]of Object.entries(e||{}))n&&Array.isArray(n)&&t.set(r,new Set(n||[]))}}catch(e){}}function e9(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem(eh,JSON.stringify(r))}catch(e){c(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}}Symbol("deferred")},50822:(e,t,r)=>{"use strict";function n(e){var t=e.match(/^var\((.*)\)$/);return t?t[1]:e}function i(e,t){var r=e;for(var n of t){if(!(n in r))throw Error("Path ".concat(t.join(" -> ")," does not exist in object"));r=r[n]}return r}function o(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n={};for(var i in e){var s=e[i],a=[...r,i];"string"==typeof s||"number"==typeof s||null==s?n[i]=t(s,a):"object"!=typeof s||Array.isArray(s)?console.warn('Skipping invalid key "'.concat(a.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(s)?"Array":typeof s,'"')):n[i]=o(s,t,a)}return n}function s(e,t){var r={};if("object"==typeof t){var s=e;o(t,(e,t)=>{null!=e&&(r[n(i(s,t))]=String(e))})}else{var a=e;for(var l in a){var u=a[l];null!=u&&(r[n(l)]=u)}}return Object.defineProperty(r,"toString",{value:function(){return Object.keys(this).map(e=>"".concat(e,":").concat(this[e])).join(";")},writable:!1}),r}r.d(t,{D:()=>s})},7850:(e,t,r)=>{"use strict";r.d(t,{A:()=>eC});var n={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},i={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},o=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],s={CSS:{},springs:{}};function a(e,t,r){return Math.min(Math.max(e,t),r)}function l(e,t){return e.indexOf(t)>-1}function u(e,t){return e.apply(null,t)}var c={arr:function(e){return Array.isArray(e)},obj:function(e){return l(Object.prototype.toString.call(e),"Object")},pth:function(e){return c.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},inp:function(e){return e instanceof HTMLInputElement},dom:function(e){return e.nodeType||c.svg(e)},str:function(e){return"string"==typeof e},fnc:function(e){return"function"==typeof e},und:function(e){return void 0===e},nil:function(e){return c.und(e)||null===e},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return c.hex(e)||c.rgb(e)||c.hsl(e)},key:function(e){return!n.hasOwnProperty(e)&&!i.hasOwnProperty(e)&&"targets"!==e&&"keyframes"!==e}};function h(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map(function(e){return parseFloat(e)}):[]}function d(e,t){var r=h(e),n=a(c.und(r[0])?1:r[0],.1,100),i=a(c.und(r[1])?100:r[1],.1,100),o=a(c.und(r[2])?10:r[2],.1,100),l=a(c.und(r[3])?0:r[3],.1,100),u=Math.sqrt(i/n),d=o/(2*Math.sqrt(i*n)),f=d<1?u*Math.sqrt(1-d*d):0,p=1,m=d<1?(d*u+-l)/f:-l+u;function g(e){var r=t?t*e/1e3:e;return(r=d<1?Math.exp(-r*d*u)*(p*Math.cos(f*r)+m*Math.sin(f*r)):(p+m*r)*Math.exp(-r*u),0===e||1===e)?e:1-r}function v(){var t=s.springs[e];if(t)return t;for(var r=1/6,n=0,i=0;;)if(1===g(n+=r)){if(++i>=16)break}else i=0;var o=n*r*1e3;return s.springs[e]=o,o}return t?g:v}function f(e){return void 0===e&&(e=10),function(t){return Math.ceil(a(t,1e-6,1)*e)*(1/e)}}var p=function(){var e=11,t=.1;function r(e,t){return 1-3*t+3*e}function n(e,t){return 3*t-6*e}function i(e){return 3*e}function o(e,t,o){return((r(t,o)*e+n(t,o))*e+i(t))*e}function s(e,t,o){return 3*r(t,o)*e*e+2*n(t,o)*e+i(t)}function a(e,t,r,n,i){var s,a,l=0;do(s=o(a=t+(r-t)/2,n,i)-e)>0?r=a:t=a;while(Math.abs(s)>1e-7&&++l<10)return a}function l(e,t,r,n){for(var i=0;i<4;++i){var a=s(t,r,n);if(0===a)break;var l=o(t,r,n)-e;t-=l/a}return t}return function(r,n,i,u){if(0<=r&&r<=1&&0<=i&&i<=1){var c=new Float32Array(e);if(r!==n||i!==u)for(var h=0;h=.001?l(n,d,r,i):0===f?d:a(n,o,o+t,r,i)}}}(),m=function(){var e={linear:function(){return function(e){return e}}},t={Sine:function(){return function(e){return 1-Math.cos(e*Math.PI/2)}},Expo:function(){return function(e){return e?Math.pow(2,10*e-10):0}},Circ:function(){return function(e){return 1-Math.sqrt(1-e*e)}},Back:function(){return function(e){return e*e*(3*e-2)}},Bounce:function(){return function(e){for(var t,r=4;e<((t=Math.pow(2,--r))-1)/11;);return 1/Math.pow(4,3-r)-7.5625*Math.pow((3*t-2)/22-e,2)}},Elastic:function(e,t){void 0===e&&(e=1),void 0===t&&(t=.5);var r=a(e,1,10),n=a(t,.1,2);return function(e){return 0===e||1===e?e:-r*Math.pow(2,10*(e-1))*Math.sin(2*Math.PI*(e-1-n/(2*Math.PI)*Math.asin(1/r))/n)}}};return["Quad","Cubic","Quart","Quint"].forEach(function(e,r){t[e]=function(){return function(e){return Math.pow(e,r+2)}}}),Object.keys(t).forEach(function(r){var n=t[r];e["easeIn"+r]=n,e["easeOut"+r]=function(e,t){return function(r){return 1-n(e,t)(1-r)}},e["easeInOut"+r]=function(e,t){return function(r){return r<.5?n(e,t)(2*r)/2:1-n(e,t)(-2*r+2)/2}},e["easeOutIn"+r]=function(e,t){return function(r){return r<.5?(1-n(e,t)(1-2*r))/2:(n(e,t)(2*r-1)+1)/2}}}),e}();function g(e,t){if(c.fnc(e))return e;var r=e.split("(")[0],n=m[r],i=h(e);switch(r){case"spring":return d(e,t);case"cubicBezier":return u(p,i);case"steps":return u(f,i);default:return u(n,i)}}function v(e){try{return document.querySelectorAll(e)}catch(e){return}}function y(e,t){for(var r=e.length,n=arguments.length>=2?arguments[1]:void 0,i=[],o=0;o1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(0==s)t=r=n=a;else{var c=a<.5?a*(1+s):a+s-a*s,h=2*a-c;t=u(h,c,o+1/3),r=u(h,c,o),n=u(h,c,o-1/3)}return"rgba("+255*t+","+255*r+","+255*n+","+l+")"}function R(e){return c.rgb(e)?S(e):c.hex(e)?w(e):c.hsl(e)?x(e):void 0}function k(e){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);if(t)return t[1]}function L(e){return l(e,"translate")||"perspective"===e?"px":l(e,"rotate")||l(e,"skew")?"deg":void 0}function I(e,t){return c.fnc(e)?e(t.target,t.id,t.total):e}function O(e,t){return e.getAttribute(t)}function D(e,t,r){if(b([r,"deg","rad","turn"],k(t)))return t;var n=s.CSS[t+r];if(!c.und(n))return n;var i=100,o=document.createElement(e.tagName),a=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;a.appendChild(o),o.style.position="absolute",o.style.width=i+r;var l=i/o.offsetWidth;a.removeChild(o);var u=l*parseFloat(t);return s.CSS[t+r]=u,u}function N(e,t,r){if(t in e.style){var n=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i=e.style[t]||getComputedStyle(e).getPropertyValue(n)||"0";return r?D(e,i,r):i}}function P(e,t){return c.dom(e)&&!c.inp(e)&&(!c.nil(O(e,t))||c.svg(e)&&e[t])?"attribute":c.dom(e)&&b(o,t)?"transform":c.dom(e)&&"transform"!==t&&N(e,t)?"css":null!=e[t]?"object":void 0}function M(e){if(c.dom(e)){for(var t,r=e.style.transform||"",n=/(\w+)\(([^)]*)\)/g,i=new Map;t=n.exec(r);)i.set(t[1],t[2]);return i}}function B(e,t,r,n){var i=l(t,"scale")?1:0+L(t),o=M(e).get(t)||i;return r&&(r.transforms.list.set(t,o),r.transforms.last=t),n?D(e,o,n):o}function U(e,t,r,n){switch(P(e,t)){case"transform":return B(e,t,n,r);case"css":return N(e,t,r);case"attribute":return O(e,t);default:return e[t]||0}}function F(e,t){var r=/^(\*=|\+=|-=)/.exec(e);if(!r)return e;var n=k(e)||0,i=parseFloat(t),o=parseFloat(e.replace(r[0],""));switch(r[0][0]){case"+":return i+o+n;case"-":return i-o+n;case"*":return i*o+n}}function j(e,t){if(c.col(e))return R(e);if(/\s/g.test(e))return e;var r=k(e),n=r?e.substr(0,e.length-r.length):e;return t?n+t:n}function K(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function V(e){return 2*Math.PI*O(e,"r")}function H(e){return 2*O(e,"width")+2*O(e,"height")}function z(e){return K({x:O(e,"x1"),y:O(e,"y1")},{x:O(e,"x2"),y:O(e,"y2")})}function G(e){for(var t,r=e.points,n=0,i=0;i0&&(n+=K(t,o)),t=o}return n}function q(e){var t=e.points;return G(e)+K(t.getItem(t.numberOfItems-1),t.getItem(0))}function W(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return V(e);case"rect":return H(e);case"line":return z(e);case"polyline":return G(e);case"polygon":return q(e)}}function X(e){var t=W(e);return e.setAttribute("stroke-dasharray",t),t}function Y(e){for(var t=e.parentNode;c.svg(t)&&c.svg(t.parentNode);)t=t.parentNode;return t}function Q(e,t){var r=t||{},n=r.el||Y(e),i=n.getBoundingClientRect(),o=O(n,"viewBox"),s=i.width,a=i.height,l=r.viewBox||(o?o.split(" "):[0,0,s,a]);return{el:n,viewBox:l,x:l[0]/1,y:l[1]/1,w:s,h:a,vW:l[2],vH:l[3]}}function Z(e,t){var r=c.str(e)?v(e)[0]:e,n=t||100;return function(e){return{property:e,el:r,svg:Q(r),totalLength:W(r)*(n/100)}}}function J(e,t,r){function n(r){void 0===r&&(r=0);var n=t+r>=1?t+r:0;return e.el.getPointAtLength(n)}var i=Q(e.el,e.svg),o=n(),s=n(-1),a=n(1),l=r?1:i.w/i.vW,u=r?1:i.h/i.vH;switch(e.property){case"x":return(o.x-i.x)*l;case"y":return(o.y-i.y)*u;case"angle":return 180*Math.atan2(a.y-s.y,a.x-s.x)/Math.PI}}function ee(e,t){var r=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,n=j(c.pth(e)?e.totalLength:e,t)+"";return{original:n,numbers:n.match(r)?n.match(r).map(Number):[0],strings:c.str(e)||t?n.split(r):[]}}function et(e){return y(e?E(c.arr(e)?e.map(_):_(e)):[],function(e,t,r){return r.indexOf(e)===t})}function er(e){var t=et(e);return t.map(function(e,r){return{target:e,id:r,total:t.length,transforms:{list:M(e)}}})}function en(e,t){var r=A(t);if(/^spring/.test(r.easing)&&(r.duration=d(r.easing)),c.arr(e)){var n=e.length;2!==n||c.obj(e[0])?c.fnc(t.duration)||(r.duration=t.duration/n):e={value:e}}var i=c.arr(e)?e:[e];return i.map(function(e,r){var n=c.obj(e)&&!c.pth(e)?e:{value:e};return c.und(n.delay)&&(n.delay=r?0:t.delay),c.und(n.endDelay)&&(n.endDelay=r===i.length-1?t.endDelay:0),n}).map(function(e){return C(e,r)})}function ei(e){for(var t=y(E(e.map(function(e){return Object.keys(e)})),function(e){return c.key(e)}).reduce(function(e,t){return 0>e.indexOf(t)&&e.push(t),e},[]),r={},n=function(n){var i=t[n];r[i]=e.map(function(e){var t={};for(var r in e)c.key(r)?r==i&&(t.value=e[r]):t[r]=e[r];return t})},i=0;i0)||(e=requestAnimationFrame(r))}function r(t){for(var n=em.length,i=0;i0?requestAnimationFrame(r):void 0}function n(){ey.suspendWhenDocumentHidden&&(ev()?e=cancelAnimationFrame(e):(em.forEach(function(e){return e._onDocumentVisibility()}),eg()))}return"undefined"!=typeof document&&document.addEventListener("visibilitychange",n),t}();function ev(){return!!document&&document.hidden}function ey(e){void 0===e&&(e={});var t,r=0,n=0,i=0,o=0,s=null;function l(e){var t=window.Promise&&new Promise(function(e){return s=e});return e.finished=t,t}var u=ep(e),c=l(u);function h(){var e=u.direction;"alternate"!==e&&(u.direction="normal"!==e?"normal":"reverse"),u.reversed=!u.reversed,t.forEach(function(e){return e.reversed=u.reversed})}function d(e){return u.reversed?u.duration-e:e}function f(){r=0,n=d(u.currentTime)*(1/ey.speed)}function p(e,t){t&&t.seek(e-t.timelineOffset)}function m(e){if(u.reversePlayback)for(var r=o;r--;)p(e,t[r]);else for(var n=0;n2)&&(_=Math.round(_*p)/p),m.push(_)}var T=f.length;if(T){v=f[0];for(var C=0;C0&&(u.began=!0,v("begin")),!u.loopBegan&&u.currentTime>0&&(u.loopBegan=!0,v("loopBegin")),y<=f&&0!==u.currentTime&&g(0),(y>=p&&u.currentTime!==o||!o)&&g(o),y>f&&y=o&&(n=0,E(),u.remaining?(r=i,v("loopComplete"),u.loopBegan=!1,"alternate"===u.direction&&h()):(u.paused=!0,!u.completed&&(u.completed=!0,v("loopComplete"),v("complete"),!u.passThrough&&"Promise"in window&&(s(),c=l(u)))))}return u.reset=function(){var e=u.direction;u.passThrough=!1,u.currentTime=0,u.progress=0,u.paused=!0,u.began=!1,u.loopBegan=!1,u.changeBegan=!1,u.completed=!1,u.changeCompleted=!1,u.reversePlayback=!1,u.reversed="reverse"===e,u.remaining=u.loop,o=(t=u.children).length;for(var r=o;r--;)u.children[r].reset();(u.reversed&&!0!==u.loop||"alternate"===e&&1===u.loop)&&u.remaining++,g(u.reversed?u.duration:0)},u._onDocumentVisibility=f,u.set=function(e,t){return eu(e,t),u},u.tick=function(e){i=e,r||(r=i),_((i+(n-r))*ey.speed)},u.seek=function(e){_(d(e))},u.pause=function(){u.paused=!0,f()},u.play=function(){u.paused&&(u.completed&&u.reset(),u.paused=!1,em.push(u),f(),eg())},u.reverse=function(){h(),u.completed=!u.reversed,f()},u.restart=function(){u.reset(),u.play()},u.remove=function(e){e_(et(e),u)},u.reset(),u.autoplay&&u.play(),u}function eE(e,t){for(var r=t.length;r--;)b(e,t[r].animatable.target)&&t.splice(r,1)}function e_(e,t){var r=t.animations,n=t.children;eE(e,r);for(var i=n.length;i--;){var o=n[i],s=o.animations;eE(e,s),s.length||o.children.length||n.splice(i,1)}r.length||n.length||t.pause()}function eb(e){for(var t=et(e),r=em.length;r--;)e_(t,em[r])}function eA(e,t){void 0===t&&(t={});var r=t.direction||"normal",n=t.easing?g(t.easing):null,i=t.grid,o=t.axis,s=t.from||0,a="first"===s,l="center"===s,u="last"===s,h=c.arr(e),d=h?parseFloat(e[0]):parseFloat(e),f=h?parseFloat(e[1]):0,p=k(h?e[1]:e)||0,m=t.start||0+(h?d:0),v=[],y=0;return function(e,t,c){if(a&&(s=0),l&&(s=(c-1)/2),u&&(s=c-1),!v.length){for(var g=0;g-1&&em.splice(o,1);for(var l=0;l{"use strict";r.d(t,{Eq:()=>h});var n=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},i=new WeakMap,o=new WeakMap,s={},a=0,l=function(e){return e&&(e.host||l(e.parentNode))},u=function(e,t){return t.map(function(t){if(e.contains(t))return t;var r=l(t);return r&&e.contains(r)?r:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return!!e})},c=function(e,t,r,n){var l=u(t,Array.isArray(e)?e:[e]);s[r]||(s[r]=new WeakMap);var c=s[r],h=[],d=new Set,f=new Set(l),p=function(e){!e||d.has(e)||(d.add(e),p(e.parentNode))};l.forEach(p);var m=function(e){!e||f.has(e)||Array.prototype.forEach.call(e.children,function(e){if(d.has(e))m(e);else try{var t=e.getAttribute(n),s=null!==t&&"false"!==t,a=(i.get(e)||0)+1,l=(c.get(e)||0)+1;i.set(e,a),c.set(e,l),h.push(e),1===a&&s&&o.set(e,!0),1===l&&e.setAttribute(r,"true"),s||e.setAttribute(n,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return m(t),d.clear(),a++,function(){h.forEach(function(e){var t=i.get(e)-1,s=c.get(e)-1;i.set(e,t),c.set(e,s),t||(o.has(e)||e.removeAttribute(n),o.delete(e)),s||e.removeAttribute(r)}),--a||(i=new WeakMap,i=new WeakMap,o=new WeakMap,s={})}},h=function(e,t,r){void 0===r&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),o=t||n(e);return o?(i.push.apply(i,Array.from(o.querySelectorAll("[aria-live]"))),c(i,o,r,"aria-hidden")):function(){return null}}},94711:e=>{"use strict";function t(e,t,i){e instanceof RegExp&&(e=r(e,i)),t instanceof RegExp&&(t=r(t,i));var o=n(e,t,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+t.length)}}function r(e,t){var r=t.match(e);return r?r[0]:null}function n(e,t,r){var n,i,o,s,a,l=r.indexOf(e),u=r.indexOf(t,l+1),c=l;if(l>=0&&u>0){if(e===t)return[l,u];for(n=[],o=r.length;c>=0&&!a;)c==l?(n.push(c),l=r.indexOf(e,c+1)):1==n.length?a=[n.pop(),u]:((i=n.pop())=0?l:u;n.length&&(a=[o,s])}return a}e.exports=t,t.range=n},6572:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r{"use strict";function r(e,t){var r=t.type,n=t.listener,i=t.options;return e.addEventListener(r,n,i),function(){e.removeEventListener(r,n,i)}}Object.defineProperty(t,"__esModule",{value:!0}),t.bind=void 0,t.bind=r},41833:(e,t,r)=>{"use strict";n={value:!0},t.vJ=t.oI=void 0;var n,i=r(79253);Object.defineProperty(t,"oI",{enumerable:!0,get:function(){return i.bind}});var o=r(6572);Object.defineProperty(t,"vJ",{enumerable:!0,get:function(){return o.bindAll}})},56278:(e,t,r)=>{var n=r(94711);e.exports=f;var i="\0SLASH"+Math.random()+"\0",o="\0OPEN"+Math.random()+"\0",s="\0CLOSE"+Math.random()+"\0",a="\0COMMA"+Math.random()+"\0",l="\0PERIOD"+Math.random()+"\0";function u(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function c(e){return e.split("\\\\").join(i).split("\\{").join(o).split("\\}").join(s).split("\\,").join(a).split("\\.").join(l)}function h(e){return e.split(i).join("\\").split(o).join("{").split(s).join("}").split(a).join(",").split(l).join(".")}function d(e){if(!e)return[""];var t=[],r=n("{","}",e);if(!r)return e.split(",");var i=r.pre,o=r.body,s=r.post,a=i.split(",");a[a.length-1]+="{"+o+"}";var l=d(s);return s.length&&(a[a.length-1]+=l.shift(),a.push.apply(a,l)),t.push.apply(t,a),t}function f(e){return e?("{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2)),y(c(e),!0).map(h)):[]}function p(e){return"{"+e+"}"}function m(e){return/^-?0\d/.test(e)}function g(e,t){return e<=t}function v(e,t){return e>=t}function y(e,t){var r=[],i=n("{","}",e);if(!i)return[e];var o=i.pre,a=i.post.length?y(i.post,!1):[""];if(/\$$/.test(i.pre))for(var l=0;l=0;if(!E&&!_)return i.post.match(/,.*\}/)?y(e=i.pre+"{"+i.body+s+i.post):[e];if(E)b=i.body.split(/\.\./);else if(1===(b=d(i.body)).length&&1===(b=y(b[0],!1).map(p)).length)return a.map(function(e){return i.pre+b[0]+e});if(E){var b,A,T,C=u(b[0]),S=u(b[1]),w=Math.max(b[0].length,b[1].length),x=3==b.length?Math.abs(u(b[2])):1,R=g;S0){var O=Array(I+1).join("0");T=L<0?"-"+O+T.slice(1):O+T}}A.push(T)}}else{A=[];for(var D=0;D{"use strict";/*! * bytes * Copyright(c) 2012-2014 TJ Holowaychuk * Copyright(c) 2015 Jed Watson * MIT Licensed */e.exports=o,e.exports.format=s,e.exports.parse=a;var t=/\B(?=(\d{3})+(?!\d))/g,r=/(?:\.0*|(\.[^0]+)0+)$/,n={b:1,kb:1024,mb:1048576,gb:1073741824,tb:1099511627776,pb:0x4000000000000},i=/^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i;function o(e,t){return"string"==typeof e?a(e):"number"==typeof e?s(e,t):null}function s(e,i){if(!Number.isFinite(e))return null;var o=Math.abs(e),s=i&&i.thousandsSeparator||"",a=i&&i.unitSeparator||"",l=i&&void 0!==i.decimalPlaces?i.decimalPlaces:2,u=!!(i&&i.fixedDecimals),c=i&&i.unit||"";c&&n[c.toLowerCase()]||(c=o>=n.pb?"PB":o>=n.tb?"TB":o>=n.gb?"GB":o>=n.mb?"MB":o>=n.kb?"KB":"B");var h=(e/n[c.toLowerCase()]).toFixed(l);return u||(h=h.replace(r,"$1")),s&&(h=h.split(".").map(function(e,r){return 0===r?e.replace(t,s):e}).join(".")),h+a+c}function a(e){if("number"==typeof e&&!isNaN(e))return e;if("string"!=typeof e)return null;var t,r=i.exec(e),o="b";return(r?(t=parseFloat(r[1]),o=r[4].toLowerCase()):(t=parseInt(e,10),o="b"),isNaN(t))?null:Math.floor(n[o]*t)}},94343:function(e){!function(t,r){e.exports=r()}(0,function(){"use strict";var e=1e3,t=6e4,r=36e5,n="millisecond",i="second",o="minute",s="hour",a="day",l="week",u="month",c="quarter",h="year",d="date",f="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},v=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},y={s:v,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),i=r%60;return(t<=0?"+":"-")+v(n,2,"0")+":"+v(i,2,"0")},m:function e(t,r){if(t.date()1)return e(s[0])}else{var a=t.name;_[a]=t,i=a}return!n&&i&&(E=i),i||!n&&E},C=function(e,t){if(A(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new w(r)},S=y;S.l=T,S.i=A,S.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var w=function(){function g(e){this.$L=T(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[b]=!0}var v=g.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(p);if(n){var i=n[2]-1||0,o=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return S},v.isValid=function(){return this.$d.toString()!==f},v.isSame=function(e,t){var r=C(e);return this.startOf(t)<=r&&r<=this.endOf(t)},v.isAfter=function(e,t){return C(e){var t=1e3,r=6e4,n=36e5,i=864e5,o=6048e5,s=315576e5;function a(e){if(!((e=String(e)).length>100)){var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(a){var l=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return l*s;case"weeks":case"week":case"w":return l*o;case"days":case"day":case"d":return l*i;case"hours":case"hour":case"hrs":case"hr":case"h":return l*n;case"minutes":case"minute":case"mins":case"min":case"m":return l*r;case"seconds":case"second":case"secs":case"sec":case"s":return l*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}}}function l(e){var o=Math.abs(e);return o>=i?Math.round(e/i)+"d":o>=n?Math.round(e/n)+"h":o>=r?Math.round(e/r)+"m":o>=t?Math.round(e/t)+"s":e+"ms"}function u(e){var o=Math.abs(e);return o>=i?c(e,o,i,"day"):o>=n?c(e,o,n,"hour"):o>=r?c(e,o,r,"minute"):o>=t?c(e,o,t,"second"):e+" ms"}function c(e,t,r,n){var i=t>=1.5*r;return Math.round(e/r)+" "+n+(i?"s":"")}e.exports=function(e,t){t=t||{};var r=typeof e;if("string"===r&&e.length>0)return a(e);if("number"===r&&isFinite(e))return t.long?u(e):l(e);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},56503:(e,t,r)=>{function n(){let e;return"undefined"!=typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function i(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))}),t.splice(i,0,r)}function o(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}}function s(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}function a(){try{return localStorage}catch(e){}}t.formatArgs=i,t.save=o,t.load=s,t.useColors=n,t.storage=a(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(71050)(t);let{formatters:l}=e.exports;l.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},71050:(e,t,r)=>{function n(e){function t(e){let t=0;for(let r=0;r{if("%%"===t)return"%";s++;let o=n.formatters[i];if("function"==typeof o){let n=e[s];t=o.call(r,n),e.splice(s,1),s--}return t}),n.formatArgs.call(r,e),(r.log||n.log).apply(r,e)}return a.namespace=e,a.useColors=n.useColors(),a.color=n.selectColor(e),a.extend=i,a.destroy=n.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(r!==n.namespaces&&(r=n.namespaces,o=n.enabled(e)),o),set:e=>{s=e}}),"function"==typeof n.init&&n.init(a),a}function i(e,t){let r=n(this.namespace+(void 0===t?":":t)+e);return r.log=this.log,r}function o(e){let t;n.save(e),n.namespaces=e,n.names=[],n.skips=[];let r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(t=0;t"-"+e)].join(",");return n.enable(""),e}function a(e){let t,r;if("*"===e[e.length-1])return!0;for(t=0,r=n.skips.length;t{n[t]=e[t]}),n.names=[],n.skips=[],n.formatters={},n.selectColor=t,n.enable(n.load()),n}e.exports=n},672:function(e){!/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */function(t,r){e.exports=r()}(0,function(){"use strict";let{entries:e,setPrototypeOf:t,isFrozen:r,getPrototypeOf:n,getOwnPropertyDescriptor:i}=Object,{freeze:o,seal:s,create:a}=Object,{apply:l,construct:u}="undefined"!=typeof Reflect&&Reflect;o||(o=function(e){return e}),s||(s=function(e){return e}),l||(l=function(e,t,r){return e.apply(t,r)}),u||(u=function(e,t){return new e(...t)});let c=A(Array.prototype.forEach),h=A(Array.prototype.pop),d=A(Array.prototype.push),f=A(String.prototype.toLowerCase),p=A(String.prototype.toString),m=A(String.prototype.match),g=A(String.prototype.replace),v=A(String.prototype.indexOf),y=A(String.prototype.trim),E=A(Object.prototype.hasOwnProperty),_=A(RegExp.prototype.test),b=T(TypeError);function A(e){return function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i2&&void 0!==arguments[2]?arguments[2]:f;t&&t(e,null);let o=n.length;for(;o--;){let t=n[o];if("string"==typeof t){let e=i(t);e!==t&&(r(n)||(n[o]=e),t=e)}e[t]=!0}return e}function S(e){for(let t=0;t/gm),K=s(/\${[\w\W]*}/gm),V=s(/^data-[\-\w.\u00B7-\uFFFF]/),H=s(/^aria-[\-\w]+$/),z=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),G=s(/^(?:\w+script|data):/i),q=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),W=s(/^html$/i);var X=Object.freeze({__proto__:null,MUSTACHE_EXPR:F,ERB_EXPR:j,TMPLIT_EXPR:K,DATA_ATTR:V,ARIA_ATTR:H,IS_ALLOWED_URI:z,IS_SCRIPT_OR_DATA:G,ATTR_WHITESPACE:q,DOCTYPE_NAME:W,CUSTOM_ELEMENT:s(/^[a-z][.\w]*(-[.\w]+)+$/i)});let Y={element:1,text:3,progressingInstruction:7,comment:8,document:9},Q=function(){return"undefined"==typeof window?null:window},Z=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let r=null,n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(r=t.getAttribute(n));let i="dompurify"+(r?"#"+r:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function J(){let t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Q(),n=e=>J(e);if(n.version="3.1.6",n.removed=[],!r||!r.document||r.document.nodeType!==Y.document)return n.isSupported=!1,n;let{document:i}=r,s=i,l=s.currentScript,{DocumentFragment:u,HTMLTemplateElement:A,Node:T,Element:S,NodeFilter:F,NamedNodeMap:j=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:K,DOMParser:V,trustedTypes:H}=r,G=S.prototype,q=x(G,"cloneNode"),ee=x(G,"remove"),et=x(G,"nextSibling"),er=x(G,"childNodes"),en=x(G,"parentNode");if("function"==typeof A){let e=i.createElement("template");e.content&&e.content.ownerDocument&&(i=e.content.ownerDocument)}let ei="",{implementation:eo,createNodeIterator:es,createDocumentFragment:ea,getElementsByTagName:el}=i,{importNode:eu}=s,ec={};n.isSupported="function"==typeof e&&"function"==typeof en&&eo&&void 0!==eo.createHTMLDocument;let{MUSTACHE_EXPR:eh,ERB_EXPR:ed,TMPLIT_EXPR:ef,DATA_ATTR:ep,ARIA_ATTR:em,IS_SCRIPT_OR_DATA:eg,ATTR_WHITESPACE:ev,CUSTOM_ELEMENT:ey}=X,{IS_ALLOWED_URI:eE}=X,e_=null,eb=C({},[...R,...k,...L,...O,...N]),eA=null,eT=C({},[...P,...M,...B,...U]),eC=Object.seal(a(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),eS=null,ew=null,ex=!0,eR=!0,ek=!1,eL=!0,eI=!1,eO=!0,eD=!1,eN=!1,eP=!1,eM=!1,eB=!1,eU=!1,eF=!0,ej=!1,eK="user-content-",eV=!0,eH=!1,ez={},e$=null,eG=C({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),eq=null,eW=C({},["audio","video","img","source","image","track"]),eX=null,eY=C({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),eQ="http://www.w3.org/1998/Math/MathML",eZ="http://www.w3.org/2000/svg",eJ="http://www.w3.org/1999/xhtml",e0=eJ,e1=!1,e2=null,e3=C({},[eQ,eZ,eJ],p),e4=null,e5=["application/xhtml+xml","text/html"],e6="text/html",e7=null,e8=null,e9=i.createElement("form"),te=function(e){return e instanceof RegExp||e instanceof Function},tt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e8||e8!==e){if(e&&"object"==typeof e||(e={}),e=w(e),e7="application/xhtml+xml"===(e4=-1===e5.indexOf(e.PARSER_MEDIA_TYPE)?e6:e.PARSER_MEDIA_TYPE)?p:f,e_=E(e,"ALLOWED_TAGS")?C({},e.ALLOWED_TAGS,e7):eb,eA=E(e,"ALLOWED_ATTR")?C({},e.ALLOWED_ATTR,e7):eT,e2=E(e,"ALLOWED_NAMESPACES")?C({},e.ALLOWED_NAMESPACES,p):e3,eX=E(e,"ADD_URI_SAFE_ATTR")?C(w(eY),e.ADD_URI_SAFE_ATTR,e7):eY,eq=E(e,"ADD_DATA_URI_TAGS")?C(w(eW),e.ADD_DATA_URI_TAGS,e7):eW,e$=E(e,"FORBID_CONTENTS")?C({},e.FORBID_CONTENTS,e7):eG,eS=E(e,"FORBID_TAGS")?C({},e.FORBID_TAGS,e7):{},ew=E(e,"FORBID_ATTR")?C({},e.FORBID_ATTR,e7):{},ez=!!E(e,"USE_PROFILES")&&e.USE_PROFILES,ex=!1!==e.ALLOW_ARIA_ATTR,eR=!1!==e.ALLOW_DATA_ATTR,ek=e.ALLOW_UNKNOWN_PROTOCOLS||!1,eL=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,eI=e.SAFE_FOR_TEMPLATES||!1,eO=!1!==e.SAFE_FOR_XML,eD=e.WHOLE_DOCUMENT||!1,eM=e.RETURN_DOM||!1,eB=e.RETURN_DOM_FRAGMENT||!1,eU=e.RETURN_TRUSTED_TYPE||!1,eP=e.FORCE_BODY||!1,eF=!1!==e.SANITIZE_DOM,ej=e.SANITIZE_NAMED_PROPS||!1,eV=!1!==e.KEEP_CONTENT,eH=e.IN_PLACE||!1,eE=e.ALLOWED_URI_REGEXP||z,e0=e.NAMESPACE||eJ,eC=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&te(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(eC.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&te(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(eC.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(eC.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),eI&&(eR=!1),eB&&(eM=!0),ez&&(e_=C({},N),eA=[],!0===ez.html&&(C(e_,R),C(eA,P)),!0===ez.svg&&(C(e_,k),C(eA,M),C(eA,U)),!0===ez.svgFilters&&(C(e_,L),C(eA,M),C(eA,U)),!0===ez.mathMl&&(C(e_,O),C(eA,B),C(eA,U))),e.ADD_TAGS&&(e_===eb&&(e_=w(e_)),C(e_,e.ADD_TAGS,e7)),e.ADD_ATTR&&(eA===eT&&(eA=w(eA)),C(eA,e.ADD_ATTR,e7)),e.ADD_URI_SAFE_ATTR&&C(eX,e.ADD_URI_SAFE_ATTR,e7),e.FORBID_CONTENTS&&(e$===eG&&(e$=w(e$)),C(e$,e.FORBID_CONTENTS,e7)),eV&&(e_["#text"]=!0),eD&&C(e_,["html","head","body"]),e_.table&&(C(e_,["tbody"]),delete eS.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw b('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw b('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ei=(t=e.TRUSTED_TYPES_POLICY).createHTML("")}else void 0===t&&(t=Z(H,l)),null!==t&&"string"==typeof ei&&(ei=t.createHTML(""));o&&o(e),e8=e}},tr=C({},["mi","mo","mn","ms","mtext"]),tn=C({},["foreignobject","annotation-xml"]),ti=C({},["title","style","font","a","script"]),to=C({},[...k,...L,...I]),ts=C({},[...O,...D]),ta=function(e){let t=en(e);t&&t.tagName||(t={namespaceURI:e0,tagName:"template"});let r=f(e.tagName),n=f(t.tagName);return!!e2[e.namespaceURI]&&(e.namespaceURI===eZ?t.namespaceURI===eJ?"svg"===r:t.namespaceURI===eQ?"svg"===r&&("annotation-xml"===n||tr[n]):!!to[r]:e.namespaceURI===eQ?t.namespaceURI===eJ?"math"===r:t.namespaceURI===eZ?"math"===r&&tn[n]:!!ts[r]:e.namespaceURI===eJ?(t.namespaceURI!==eZ||!!tn[n])&&(t.namespaceURI!==eQ||!!tr[n])&&!ts[r]&&(ti[r]||!to[r]):"application/xhtml+xml"===e4&&!!e2[e.namespaceURI])},tl=function(e){d(n.removed,{element:e});try{en(e).removeChild(e)}catch(t){ee(e)}},tu=function(e,t){try{d(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){d(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!eA[e]){if(eM||eB)try{tl(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}}},tc=function(e){let r=null,n=null;if(eP)e=""+e;else{let t=m(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===e4&&e0===eJ&&(e=''+e+"");let o=t?t.createHTML(e):e;if(e0===eJ)try{r=new V().parseFromString(o,e4)}catch(e){}if(!r||!r.documentElement){r=eo.createDocument(e0,"template",null);try{r.documentElement.innerHTML=e1?ei:o}catch(e){}}let s=r.body||r.documentElement;return(e&&n&&s.insertBefore(i.createTextNode(n),s.childNodes[0]||null),e0===eJ)?el.call(r,eD?"html":"body")[0]:eD?r.documentElement:s},th=function(e){return es.call(e.ownerDocument||e,e,F.SHOW_ELEMENT|F.SHOW_COMMENT|F.SHOW_TEXT|F.SHOW_PROCESSING_INSTRUCTION|F.SHOW_CDATA_SECTION,null)},td=function(e){return e instanceof K&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof j)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},tf=function(e){return"function"==typeof T&&e instanceof T},tp=function(e,t,r){ec[e]&&c(ec[e],e=>{e.call(n,t,r,e8)})},tm=function(e){let t=null;if(tp("beforeSanitizeElements",e,null),td(e))return tl(e),!0;let r=e7(e.nodeName);if(tp("uponSanitizeElement",e,{tagName:r,allowedTags:e_}),e.hasChildNodes()&&!tf(e.firstElementChild)&&_(/<[/\w]/g,e.innerHTML)&&_(/<[/\w]/g,e.textContent)||e.nodeType===Y.progressingInstruction||eO&&e.nodeType===Y.comment&&_(/<[/\w]/g,e.data))return tl(e),!0;if(!e_[r]||eS[r]){if(!eS[r]&&tv(r)&&(eC.tagNameCheck instanceof RegExp&&_(eC.tagNameCheck,r)||eC.tagNameCheck instanceof Function&&eC.tagNameCheck(r)))return!1;if(eV&&!e$[r]){let t=en(e)||e.parentNode,r=er(e)||e.childNodes;if(r&&t){let n=r.length;for(let i=n-1;i>=0;--i){let n=q(r[i],!0);n.__removalCount=(e.__removalCount||0)+1,t.insertBefore(n,et(e))}}}return tl(e),!0}return e instanceof S&&!ta(e)||("noscript"===r||"noembed"===r||"noframes"===r)&&_(/<\/no(script|embed|frames)/i,e.innerHTML)?(tl(e),!0):(eI&&e.nodeType===Y.text&&(t=e.textContent,c([eh,ed,ef],e=>{t=g(t,e," ")}),e.textContent!==t&&(d(n.removed,{element:e.cloneNode()}),e.textContent=t)),tp("afterSanitizeElements",e,null),!1)},tg=function(e,t,r){if(eF&&("id"===t||"name"===t)&&(r in i||r in e9))return!1;if(eR&&!ew[t]&&_(ep,t));else if(ex&&_(em,t));else if(!eA[t]||ew[t]){if(!(tv(e)&&(eC.tagNameCheck instanceof RegExp&&_(eC.tagNameCheck,e)||eC.tagNameCheck instanceof Function&&eC.tagNameCheck(e))&&(eC.attributeNameCheck instanceof RegExp&&_(eC.attributeNameCheck,t)||eC.attributeNameCheck instanceof Function&&eC.attributeNameCheck(t))||"is"===t&&eC.allowCustomizedBuiltInElements&&(eC.tagNameCheck instanceof RegExp&&_(eC.tagNameCheck,r)||eC.tagNameCheck instanceof Function&&eC.tagNameCheck(r))))return!1}else if(eX[t]);else if(_(eE,g(r,ev,"")));else if(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===v(r,"data:")&&eq[e]);else if(ek&&!_(eg,g(r,ev,"")));else if(r)return!1;return!0},tv=function(e){return"annotation-xml"!==e&&m(e,ey)},ty=function(e){tp("beforeSanitizeAttributes",e,null);let{attributes:r}=e;if(!r)return;let i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:eA},o=r.length;for(;o--;){let{name:s,namespaceURI:a,value:l}=r[o],u=e7(s),d="value"===s?l:y(l);if(i.attrName=u,i.attrValue=d,i.keepAttr=!0,i.forceKeepAttr=void 0,tp("uponSanitizeAttribute",e,i),d=i.attrValue,eO&&_(/((--!?|])>)|<\/(style|title)/i,d)){tu(s,e);continue}if(i.forceKeepAttr||(tu(s,e),!i.keepAttr))continue;if(!eL&&_(/\/>/i,d)){tu(s,e);continue}eI&&c([eh,ed,ef],e=>{d=g(d,e," ")});let f=e7(e.nodeName);if(tg(f,u,d)){if(ej&&("id"===u||"name"===u)&&(tu(s,e),d=eK+d),t&&"object"==typeof H&&"function"==typeof H.getAttributeType){if(a);else switch(H.getAttributeType(f,u)){case"TrustedHTML":d=t.createHTML(d);break;case"TrustedScriptURL":d=t.createScriptURL(d)}}try{a?e.setAttributeNS(a,s,d):e.setAttribute(s,d),td(e)?tl(e):h(n.removed)}catch(e){}}}tp("afterSanitizeAttributes",e,null)},tE=function e(t){let r=null,n=th(t);for(tp("beforeSanitizeShadowDOM",t,null);r=n.nextNode();)tp("uponSanitizeShadowNode",r,null),tm(r)||(r.content instanceof u&&e(r.content),ty(r));tp("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,o=null,a=null,l=null;if((e1=!e)&&(e=""),"string"!=typeof e&&!tf(e)){if("function"==typeof e.toString){if("string"!=typeof(e=e.toString()))throw b("dirty is not a string, aborting")}else throw b("toString is not a function")}if(!n.isSupported)return e;if(eN||tt(r),n.removed=[],"string"==typeof e&&(eH=!1),eH){if(e.nodeName){let t=e7(e.nodeName);if(!e_[t]||eS[t])throw b("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof T)(o=(i=tc("")).ownerDocument.importNode(e,!0)).nodeType===Y.element&&"BODY"===o.nodeName?i=o:"HTML"===o.nodeName?i=o:i.appendChild(o);else{if(!eM&&!eI&&!eD&&-1===e.indexOf("<"))return t&&eU?t.createHTML(e):e;if(!(i=tc(e)))return eM?null:eU?ei:""}i&&eP&&tl(i.firstChild);let h=th(eH?e:i);for(;a=h.nextNode();)tm(a)||(a.content instanceof u&&tE(a.content),ty(a));if(eH)return e;if(eM){if(eB)for(l=ea.call(i.ownerDocument);i.firstChild;)l.appendChild(i.firstChild);else l=i;return(eA.shadowroot||eA.shadowrootmode)&&(l=eu.call(s,l,!0)),l}let d=eD?i.outerHTML:i.innerHTML;return eD&&e_["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&_(W,i.ownerDocument.doctype.name)&&(d="\n"+d),eI&&c([eh,ed,ef],e=>{d=g(d,e," ")}),t&&eU?t.createHTML(d):d},n.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};tt(e),eN=!0},n.clearConfig=function(){e8=null,eN=!1},n.isValidAttribute=function(e,t,r){return e8||tt({}),tg(e7(e),e7(t),r)},n.addHook=function(e,t){"function"==typeof t&&(ec[e]=ec[e]||[],d(ec[e],t))},n.removeHook=function(e){if(ec[e])return h(ec[e])},n.removeHooks=function(e){ec[e]&&(ec[e]=[])},n.removeAllHooks=function(){ec={}},n}return J()})},3771:e=>{"use strict";var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},s=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(n in e);return void 0===n||t.call(e,n)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(i)return i(e,r).value}return e[r]};e.exports=function e(){var t,r,n,i,u,c,h=arguments[0],d=1,f=arguments.length,p=!1;for("boolean"==typeof h&&(p=h,h=arguments[1]||{},d=2),(null==h||"object"!=typeof h&&"function"!=typeof h)&&(h={});d{"use strict";let n=r(11228),i=r(35817),o=r(19994);e.exports={XMLParser:i,XMLValidator:n,XMLBuilder:o}},58964:(e,t)=>{"use strict";let r=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",n=r+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",i="["+r+"]["+n+"]*",o=RegExp("^"+i+"$"),s=function(e,t){let r=[],n=t.exec(e);for(;n;){let i=[];i.startIndex=t.lastIndex-n[0].length;let o=n.length;for(let e=0;e{"use strict";let n=r(58964),i={allowBooleanAttributes:!1,unpairedTags:[]};function o(e){return" "===e||" "===e||"\n"===e||"\r"===e}function s(e,t){let r=t;for(;t5&&"xml"===n)return m("InvalidXml","XML declaration allowed only at the start of the document.",y(e,t));if("?"!=e[t]||">"!=e[t+1])continue;t++;break}return t}function a(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t"===e[t+2]){t+=2;break}}else if(e.length>t+8&&"D"===e[t+1]&&"O"===e[t+2]&&"C"===e[t+3]&&"T"===e[t+4]&&"Y"===e[t+5]&&"P"===e[t+6]&&"E"===e[t+7]){let r=1;for(t+=8;t"===e[t]&&0==--r)break}else if(e.length>t+9&&"["===e[t+1]&&"C"===e[t+2]&&"D"===e[t+3]&&"A"===e[t+4]&&"T"===e[t+5]&&"A"===e[t+6]&&"["===e[t+7]){for(t+=8;t"===e[t+2]){t+=2;break}}return t}t.validate=function(e,t){t=Object.assign({},i,t);let r=[],n=!1,l=!1;"\uFEFF"===e[0]&&(e=e.substr(1));for(let i=0;i"!==e[i]&&" "!==e[i]&&" "!==e[i]&&"\n"!==e[i]&&"\r"!==e[i];i++)f+=e[i];if("/"===(f=f.trim())[f.length-1]&&(f=f.substring(0,f.length-1),i--),!v(f)){let t;return m("InvalidTag",t=0===f.trim().length?"Invalid space after '<'.":"Tag '"+f+"' is an invalid name.",y(e,i))}let g=c(e,i);if(!1===g)return m("InvalidAttr","Attributes for '"+f+"' have open quote.",y(e,i));let E=g.value;if(i=g.index,"/"===E[E.length-1]){let r=i-E.length,o=d(E=E.substring(0,E.length-1),t);if(!0!==o)return m(o.err.code,o.err.msg,y(e,r+o.err.line));n=!0}else if(h){if(!g.tagClosed)return m("InvalidTag","Closing tag '"+f+"' doesn't have proper closing.",y(e,i));if(E.trim().length>0)return m("InvalidTag","Closing tag '"+f+"' can't have attributes or invalid starting.",y(e,u));{if(0===r.length)return m("InvalidTag","Closing tag '"+f+"' has not been opened.",y(e,u));let t=r.pop();if(f!==t.tagName){let r=y(e,t.tagStartPos);return m("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+r.line+", col "+r.col+") instead of closing tag '"+f+"'.",y(e,u))}0==r.length&&(l=!0)}}else{let o=d(E,t);if(!0!==o)return m(o.err.code,o.err.msg,y(e,i-E.length+o.err.line));if(!0===l)return m("InvalidXml","Multiple possible root nodes found.",y(e,i));-1!==t.unpairedTags.indexOf(f)||r.push({tagName:f,tagStartPos:u}),n=!0}for(i++;i0)||m("InvalidXml","Invalid '"+JSON.stringify(r.map(e=>e.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):m("InvalidXml","Start tag expected.",1)};let l='"',u="'";function c(e,t){let r="",n="",i=!1;for(;t"===e[t]&&""===n){i=!0;break}r+=e[t]}return""===n&&{value:r,index:t,tagClosed:i}}let h=RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function d(e,t){let r=n.getAllMatches(e,h),i={};for(let e=0;e{"use strict";let n=r(90126),i={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:RegExp("&","g"),val:"&"},{regex:RegExp(">","g"),val:">"},{regex:RegExp("<","g"),val:"<"},{regex:RegExp("'","g"),val:"'"},{regex:RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function o(e){this.options=Object.assign({},i,e),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=l),this.processTextOrObjNode=s,this.options.format?(this.indentate=a,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function s(e,t,r){let n=this.j2x(e,r+1);return void 0!==e[this.options.textNodeName]&&1===Object.keys(e).length?this.buildTextValNode(e[this.options.textNodeName],t,n.attrStr,r):this.buildObjectNode(n.val,t,n.attrStr,r)}function a(e){return this.options.indentBy.repeat(e)}function l(e){return!!e.startsWith(this.options.attributeNamePrefix)&&e!==this.options.textNodeName&&e.substr(this.attrPrefixLen)}o.prototype.build=function(e){return this.options.preserveOrder?n(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0).val)},o.prototype.j2x=function(e,t){let r="",n="";for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(void 0===e[i])this.isAttribute(i)&&(n+="");else if(null===e[i])this.isAttribute(i)?n+="":"?"===i[0]?n+=this.indentate(t)+"<"+i+"?"+this.tagEndChar:n+=this.indentate(t)+"<"+i+"/"+this.tagEndChar;else if(e[i]instanceof Date)n+=this.buildTextValNode(e[i],i,"",t);else if("object"!=typeof e[i]){let o=this.isAttribute(i);if(o)r+=this.buildAttrPairStr(o,""+e[i]);else if(i===this.options.textNodeName){let t=this.options.tagValueProcessor(i,""+e[i]);n+=this.replaceEntitiesValue(t)}else n+=this.buildTextValNode(e[i],i,"",t)}else if(Array.isArray(e[i])){let r=e[i].length,o="",s="";for(let a=0;a"+e+i:!1!==this.options.commentPropName&&t===this.options.commentPropName&&0===o.length?this.indentate(n)+``+this.newLine:this.indentate(n)+"<"+t+r+o+this.tagEndChar+e+this.indentate(n)+i}},o.prototype.closeTag=function(e){let t="";return -1!==this.options.unpairedTags.indexOf(e)?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":`>`+this.newLine;if(!1!==this.options.commentPropName&&t===this.options.commentPropName)return this.indentate(n)+``+this.newLine;if("?"===t[0])return this.indentate(n)+"<"+t+r+"?"+this.tagEndChar;{let i=this.options.tagValueProcessor(t,e);return""===(i=this.replaceEntitiesValue(i))?this.indentate(n)+"<"+t+r+this.closeTag(t)+this.tagEndChar:this.indentate(n)+"<"+t+r+">"+i+"0&&this.options.processEntities)for(let t=0;t{let t="\n";function r(e,r){let i="";return r.format&&r.indentBy.length>0&&(i=t),n(e,r,"",i)}function n(e,t,r,l){let u="",c=!1;for(let h=0;h`,c=!1;continue}if(f===t.commentPropName){u+=l+``,c=!0;continue}if("?"===f[0]){let e=o(d[":@"],t),r="?xml"===f?"":l,n=d[f][0][t.textNodeName];n=0!==n.length?" "+n:"",u+=r+`<${f}${n}${e}?>`,c=!0;continue}let m=l;""!==m&&(m+=t.indentBy);let g=o(d[":@"],t),v=l+`<${f}${g}`,y=n(d[f],t,p,m);-1!==t.unpairedTags.indexOf(f)?t.suppressUnpairedNode?u+=v+">":u+=v+"/>":(!y||0===y.length)&&t.suppressEmptyNode?u+=v+"/>":y&&y.endsWith(">")?u+=v+`>${y}${l}`:(u+=v+">",y&&""!==l&&(y.includes("/>")||y.includes("`),c=!0}return u}function i(e){let t=Object.keys(e);for(let r=0;r0&&t.processEntities)for(let r=0;r{let n=r(58964);function i(e,t){let r={};if("O"===e[t+3]&&"C"===e[t+4]&&"T"===e[t+5]&&"Y"===e[t+6]&&"P"===e[t+7]&&"E"===e[t+8]){t+=9;let n=1,i=!1,d=!1,f="";for(;t"===e[t]){if(d?"-"===e[t-1]&&"-"===e[t-2]&&(d=!1,n--):n--,0===n)break}else"["===e[t]?i=!0:f+=e[t]}else{if(i&&a(e,t))t+=7,[entityName,val,t]=o(e,t+1),-1===val.indexOf("&")&&(r[h(entityName)]={regx:RegExp(`&${entityName};`,"g"),val:val});else if(i&&l(e,t))t+=8;else if(i&&u(e,t))t+=8;else if(i&&c(e,t))t+=9;else if(s)d=!0;else throw Error("Invalid DOCTYPE");n++,f=""}if(0!==n)throw Error("Unclosed DOCTYPE")}else throw Error("Invalid Tag instead of DOCTYPE");return{entities:r,i:t}}function o(e,t){let r="";for(;t{let r={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,r){return e}},n=function(e){return Object.assign({},r,e)};t.buildOptions=n,t.defaultOptions=r},60290:(e,t,r)=>{"use strict";let n=r(58964),i=r(76154),o=r(30418),s=r(87445);class a{constructor(e){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(e,t)=>String.fromCharCode(Number.parseInt(t,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(e,t)=>String.fromCharCode(Number.parseInt(t,16))}},this.addExternalEntities=l,this.parseXml=f,this.parseTextData=u,this.resolveNameSpace=c,this.buildAttributesMap=d,this.isItStopNode=v,this.replaceEntitiesValue=m,this.readStopNodeData=b,this.saveTextToParentTag=g,this.addChild=p}}function l(e){let t=Object.keys(e);for(let r=0;r0)){s||(e=this.replaceEntitiesValue(e));let n=this.options.tagValueProcessor(t,e,r,i,o);return null==n?e:typeof n!=typeof e||n!==e?n:this.options.trimValues?A(e,this.options.parseTagValue,this.options.numberParseOptions):e.trim()===e?A(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function c(e){if(this.options.removeNSPrefix){let t=e.split(":"),r="/"===e.charAt(0)?"/":"";if("xmlns"===t[0])return"";2===t.length&&(e=r+t[1])}return e}let h=RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function d(e,t,r){if(!this.options.ignoreAttributes&&"string"==typeof e){let r=n.getAllMatches(e,h),i=r.length,o={};for(let e=0;e",a,"Closing Tag is not closed."),i=e.substring(a+2,t).trim();if(this.options.removeNSPrefix){let e=i.indexOf(":");-1!==e&&(i=i.substr(e+1))}this.options.transformTagName&&(i=this.options.transformTagName(i)),r&&(n=this.saveTextToParentTag(n,r,s));let o=s.substring(s.lastIndexOf(".")+1);if(i&&-1!==this.options.unpairedTags.indexOf(i))throw Error(`Unpaired tag can not be used as closing tag: `);let l=0;o&&-1!==this.options.unpairedTags.indexOf(o)?(l=s.lastIndexOf(".",s.lastIndexOf(".")-1),this.tagsNodeStack.pop()):l=s.lastIndexOf("."),s=s.substring(0,l),r=this.tagsNodeStack.pop(),n="",a=t}else if("?"===e[a+1]){let t=_(e,a,!1,"?>");if(!t)throw Error("Pi Tag is not closed.");if(n=this.saveTextToParentTag(n,r,s),this.options.ignoreDeclaration&&"?xml"===t.tagName||this.options.ignorePiTags);else{let e=new i(t.tagName);e.add(this.options.textNodeName,""),t.tagName!==t.tagExp&&t.attrExpPresent&&(e[":@"]=this.buildAttributesMap(t.tagExp,s,t.tagName)),this.addChild(r,e,s)}a=t.closeIndex+1}else if("!--"===e.substr(a+1,3)){let t=E(e,"-->",a+4,"Comment is not closed.");if(this.options.commentPropName){let i=e.substring(a+4,t-2);n=this.saveTextToParentTag(n,r,s),r.add(this.options.commentPropName,[{[this.options.textNodeName]:i}])}a=t}else if("!D"===e.substr(a+1,2)){let t=o(e,a);this.docTypeEntities=t.entities,a=t.i}else if("!["===e.substr(a+1,2)){let t=E(e,"]]>",a,"CDATA is not closed.")-2,i=e.substring(a+9,t);n=this.saveTextToParentTag(n,r,s);let o=this.parseTextData(i,r.tagname,s,!0,!1,!0,!0);void 0==o&&(o=""),this.options.cdataPropName?r.add(this.options.cdataPropName,[{[this.options.textNodeName]:i}]):r.add(this.options.textNodeName,o),a=t+2}else{let o=_(e,a,this.options.removeNSPrefix),l=o.tagName,u=o.rawTagName,c=o.tagExp,h=o.attrExpPresent,d=o.closeIndex;this.options.transformTagName&&(l=this.options.transformTagName(l)),r&&n&&"!xml"!==r.tagname&&(n=this.saveTextToParentTag(n,r,s,!1));let f=r;if(f&&-1!==this.options.unpairedTags.indexOf(f.tagname)&&(r=this.tagsNodeStack.pop(),s=s.substring(0,s.lastIndexOf("."))),l!==t.tagname&&(s+=s?"."+l:l),this.isItStopNode(this.options.stopNodes,s,l)){let t="";if(c.length>0&&c.lastIndexOf("/")===c.length-1)"/"===l[l.length-1]?(l=l.substr(0,l.length-1),s=s.substr(0,s.length-1),c=l):c=c.substr(0,c.length-1),a=o.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(l))a=o.closeIndex;else{let r=this.readStopNodeData(e,u,d+1);if(!r)throw Error(`Unexpected end of ${u}`);a=r.i,t=r.tagContent}let n=new i(l);l!==c&&h&&(n[":@"]=this.buildAttributesMap(c,s,l)),t&&(t=this.parseTextData(t,l,s,!0,h,!0,!0)),s=s.substr(0,s.lastIndexOf(".")),n.add(this.options.textNodeName,t),this.addChild(r,n,s)}else{if(c.length>0&&c.lastIndexOf("/")===c.length-1){"/"===l[l.length-1]?(l=l.substr(0,l.length-1),s=s.substr(0,s.length-1),c=l):c=c.substr(0,c.length-1),this.options.transformTagName&&(l=this.options.transformTagName(l));let e=new i(l);l!==c&&h&&(e[":@"]=this.buildAttributesMap(c,s,l)),this.addChild(r,e,s),s=s.substr(0,s.lastIndexOf("."))}else{let e=new i(l);this.tagsNodeStack.push(r),l!==c&&h&&(e[":@"]=this.buildAttributesMap(c,s,l)),this.addChild(r,e,s),r=e}n="",a=d}}}else n+=e[a];return t.child};function p(e,t,r){let n=this.options.updateTag(t.tagname,r,t[":@"]);!1===n||("string"==typeof n&&(t.tagname=n),e.addChild(t))}let m=function(e){if(this.options.processEntities){for(let t in this.docTypeEntities){let r=this.docTypeEntities[t];e=e.replace(r.regx,r.val)}for(let t in this.lastEntities){let r=this.lastEntities[t];e=e.replace(r.regex,r.val)}if(this.options.htmlEntities)for(let t in this.htmlEntities){let r=this.htmlEntities[t];e=e.replace(r.regex,r.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function g(e,t,r,n){return e&&(void 0===n&&(n=0===Object.keys(t.child).length),void 0!==(e=this.parseTextData(e,t.tagname,r,!1,!!t[":@"]&&0!==Object.keys(t[":@"]).length,n))&&""!==e&&t.add(this.options.textNodeName,e),e=""),e}function v(e,t,r){let n="*."+r;for(let r in e){let i=e[r];if(n===i||t===i)return!0}return!1}function y(e,t,r=">"){let n;let i="";for(let o=t;o",r,`${t} is not closed`);if(e.substring(r+2,o).trim()===t&&0==--i)return{tagContent:e.substring(n,r),i:o};r=o}else if("?"===e[r+1])r=E(e,"?>",r+1,"StopNode is not closed.");else if("!--"===e.substr(r+1,3))r=E(e,"-->",r+3,"StopNode is not closed.");else if("!["===e.substr(r+1,2))r=E(e,"]]>",r,"StopNode is not closed.")-2;else{let n=_(e,r,">");n&&((n&&n.tagName)===t&&"/"!==n.tagExp[n.tagExp.length-1]&&i++,r=n.closeIndex)}}}function A(e,t,r){if(t&&"string"==typeof e){let t=e.trim();return"true"===t||"false"!==t&&s(e,r)}return n.isExist(e)?e:""}e.exports=a},35817:(e,t,r)=>{let{buildOptions:n}=r(64178),i=r(60290),{prettify:o}=r(1665),s=r(11228);class a{constructor(e){this.externalEntities={},this.options=n(e)}parse(e,t){if("string"==typeof e);else if(e.toString)e=e.toString();else throw Error("XML data is accepted in String or Bytes[] form.");if(t){!0===t&&(t={});let r=s.validate(e,t);if(!0!==r)throw Error(`${r.err.msg}:${r.err.line}:${r.err.col}`)}let r=new i(this.options);r.addExternalEntities(this.externalEntities);let n=r.parseXml(e);return this.options.preserveOrder||void 0===n?n:o(n,this.options)}addEntity(e,t){if(-1!==t.indexOf("&"))throw Error("Entity value can't have '&'");if(-1!==e.indexOf("&")||-1!==e.indexOf(";"))throw Error("An entity must be set without '&' and ';'. Eg. use '#xD' for ' '");if("&"===t)throw Error("An entity with value '&' is not permitted");this.externalEntities[e]=t}}e.exports=a},1665:(e,t)=>{"use strict";function r(e,t){return n(e,t)}function n(e,t,r){let a;let l={};for(let u=0;u0&&(l[t.textNodeName]=a):void 0!==a&&(l[t.textNodeName]=a),l}function i(e){let t=Object.keys(e);for(let e=0;e{"use strict";class t{constructor(e){this.tagname=e,this.child=[],this[":@"]={}}add(e,t){"__proto__"===e&&(e="#__proto__"),this.child.push({[e]:t})}addChild(e){"__proto__"===e.tagname&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child})}}e.exports=t},55639:(e,t,r)=>{"use strict";function n({topLeftCornerRadius:e,topRightCornerRadius:t,bottomRightCornerRadius:r,bottomLeftCornerRadius:n,width:o,height:s}){let a={topLeft:-1,topRight:-1,bottomLeft:-1,bottomRight:-1},l={topLeft:e,topRight:t,bottomLeft:n,bottomRight:r};return Object.entries(l).sort(([,e],[,t])=>t-e).forEach(([e,t])=>{let r=e,n=Math.min(...i[r].map(e=>{let r=l[e.corner];if(0===t&&0===r)return 0;let n=a[e.corner],i="top"===e.side||"bottom"===e.side?o:s;return n>=0?i-a[e.corner]:t/(t+r)*i}));a[r]=n,l[r]=Math.min(t,n)}),{topLeft:{radius:l.topLeft,roundingAndSmoothingBudget:a.topLeft},topRight:{radius:l.topRight,roundingAndSmoothingBudget:a.topRight},bottomLeft:{radius:l.bottomLeft,roundingAndSmoothingBudget:a.bottomLeft},bottomRight:{radius:l.bottomRight,roundingAndSmoothingBudget:a.bottomRight}}}r.d(t,{k:()=>f});let i={topLeft:[{corner:"topRight",side:"top"},{corner:"bottomLeft",side:"left"}],topRight:[{corner:"topLeft",side:"top"},{corner:"bottomRight",side:"right"}],bottomLeft:[{corner:"bottomRight",side:"bottom"},{corner:"topLeft",side:"left"}],bottomRight:[{corner:"bottomLeft",side:"bottom"},{corner:"topRight",side:"right"}]};function o({cornerRadius:e,cornerSmoothing:t,preserveSmoothing:r,roundingAndSmoothingBudget:n}){let i=(1+t)*e;r||(t=Math.min(t,n/e-1),i=Math.min(i,n));let o=90*(1-t),s=Math.sin(h(o/2))*e*Math.sqrt(2),a=e*Math.tan(h((90-o)/2/2)),l=45*t,u=a*Math.cos(h(l)),c=u*Math.tan(h(l)),d=(i-s-u-c)/3,f=2*d;if(r&&i>n){let e=n-c-s-u,t=e/6;d=Math.min(d,e-t),f=e-d,i=Math.min(i,n)}return{a:f,b:d,c:u,d:c,p:i,arcSectionLength:s,cornerRadius:e}}function s({width:e,height:t,topLeftPathParams:r,topRightPathParams:n,bottomLeftPathParams:i,bottomRightPathParams:o}){return` M ${e-n.p} 0 ${a(n)} L ${e} ${t-o.p} ${l(o)} L ${i.p} ${t} ${u(i)} L 0 ${r.p} ${c(r)} Z `.replace(/[\t\s\n]+/g," ").trim()}function a({cornerRadius:e,a:t,b:r,c:n,d:i,p:o,arcSectionLength:s}){return e?d` c ${t} 0 ${t+r} 0 ${t+r+n} ${i} a ${e} ${e} 0 0 1 ${s} ${s} c ${i} ${n} ${i} ${r+n} ${i} ${t+r+n}`:d`l ${o} 0`}function l({cornerRadius:e,a:t,b:r,c:n,d:i,p:o,arcSectionLength:s}){return e?d` c 0 ${t} 0 ${t+r} ${-i} ${t+r+n} a ${e} ${e} 0 0 1 -${s} ${s} c ${-n} ${i} ${-(r+n)} ${i} ${-(t+r+n)} ${i}`:d`l 0 ${o}`}function u({cornerRadius:e,a:t,b:r,c:n,d:i,p:o,arcSectionLength:s}){return e?d` c ${-t} 0 ${-(t+r)} 0 ${-(t+r+n)} ${-i} a ${e} ${e} 0 0 1 -${s} -${s} c ${-i} ${-n} ${-i} ${-(r+n)} ${-i} ${-(t+r+n)}`:d`l ${-o} 0`}function c({cornerRadius:e,a:t,b:r,c:n,d:i,p:o,arcSectionLength:s}){return e?d` c 0 ${-t} 0 ${-(t+r)} ${i} ${-(t+r+n)} a ${e} ${e} 0 0 1 ${s} -${s} c ${n} ${-i} ${r+n} ${-i} ${t+r+n} ${-i}`:d`l 0 ${-o}`}function h(e){return e*Math.PI/180}function d(e,...t){return e.reduce((e,r,n)=>{let i=t[n];return"number"==typeof i?e+r+i.toFixed(4):e+r+(i??"")},"")}function f({cornerRadius:e=0,topLeftCornerRadius:t,topRightCornerRadius:r,bottomRightCornerRadius:i,bottomLeftCornerRadius:a,cornerSmoothing:l,width:u,height:c,preserveSmoothing:h=!1}){if(t=t??e,r=r??e,a=a??e,i=i??e,t===r&&r===i&&i===a&&a===t){let e=Math.min(u,c)/2,r=o({cornerRadius:Math.min(t,e),cornerSmoothing:l,preserveSmoothing:h,roundingAndSmoothingBudget:e});return s({width:u,height:c,topLeftPathParams:r,topRightPathParams:r,bottomLeftPathParams:r,bottomRightPathParams:r})}let{topLeft:d,topRight:f,bottomLeft:p,bottomRight:m}=n({topLeftCornerRadius:t,topRightCornerRadius:r,bottomRightCornerRadius:i,bottomLeftCornerRadius:a,width:u,height:c});return s({width:u,height:c,topLeftPathParams:o({cornerSmoothing:l,preserveSmoothing:h,cornerRadius:d.radius,roundingAndSmoothingBudget:d.roundingAndSmoothingBudget}),topRightPathParams:o({cornerSmoothing:l,preserveSmoothing:h,cornerRadius:f.radius,roundingAndSmoothingBudget:f.roundingAndSmoothingBudget}),bottomRightPathParams:o({cornerSmoothing:l,preserveSmoothing:h,cornerRadius:m.radius,roundingAndSmoothingBudget:m.roundingAndSmoothingBudget}),bottomLeftPathParams:o({cornerSmoothing:l,preserveSmoothing:h,cornerRadius:p.radius,roundingAndSmoothingBudget:p.roundingAndSmoothingBudget})})}},97880:(e,t,r)=>{"use strict";function n(e){return void 0===e||e}function i(e){let t=Array(e);for(let r=0;reu});let h=/[\p{Z}\p{S}\p{P}\p{C}]+/u,d=/[\u0300-\u036f]/g;function f(e,t){let r=Object.keys(e),n=r.length,i=[],o="",s=0;for(let a=0,l,u;a=n))));t++);if(r)return o?N(l,n,0):void(t[t.length]=l)}return!r&&l}function N(e,t,r){return e=1===e.length?e[0]:[].concat.apply([],e),r||e.length>t?e.slice(r,r+t):e}function P(e,t,r,n){return e=r?(e=e[(n=n&&t>r)?t:r])&&e[n?r:t]:e[t]}function M(e,t,r,n,i){let o=0;if(e.constructor===Array){if(i)-1!==(t=e.indexOf(t))?1=this.B&&(d||!h[m])){var s=I(f,n,p),a="";switch(this.G){case"full":if(2s;l--)if(l-s>=this.B){var u=I(f,n,p,i,s);O(this,h,a=m.substring(s,l),u,e,r)}break}case"reverse":if(1=this.B&&O(this,h,a,I(f,n,p,i,l),e,r);a=""}case"forward":if(1=this.B&&O(this,h,a,s,e,r);break}default:if(this.C&&(s=Math.min(s/this.C(t,m,p)|0,f-1)),O(this,h,m,s,e,r),d&&1=this.B&&!i[m]){i[m]=1;let t=this.l&&m>s;O(this,c,t?s:m,I(a+(n/2>a?0:1),n,p,l-1,u-1),e,r,t?m:s)}}}}}this.m||(this.register[e]=1)}}return this},v.search=function(e,t,r){let n,i,a;r||(!t&&l(e)?e=(r=e).query:l(t)&&(r=t));let u=[],c,h,d=0;if(r){e=r.query||e,t=r.limit,d=r.offset||0;var f=r.context;h=r.suggest}if(e&&1<(c=(e=this.encode(""+e)).length)){r=o();var p=[];for(let t=0,n=0,i;t=this.B&&!r[i]){if(!this.s&&!h&&!this.map[i])return u;p[n++]=i,r[i]=1}c=(e=p).length}if(!c)return u;for(t||(t=100),f=this.depth&&1{s=e})),i||(i=0)){case 0:if(a="reg",this.m)for(let e in l=o(),this.register)l[e]=1;else l=this.register;break;case 1:a="cfg",l={doc:0,opt:this.s?1:0};break;case 2:a="map",l=this.map;break;case 3:a="ctx",l=this.h;break;default:void 0===r&&s&&s();return}return k(e,t||this,r,a,n,i,l,s),u},v.import=function(e,t){if(t)switch(a(t)&&(t=JSON.parse(t)),e){case"cfg":this.s=!!t.opt;break;case"reg":this.m=!1,this.register=t;break;case"map":this.map=t;break;case"ctx":this.h=t}},A(L.prototype);let U=0;function F(e){var t;if(!(this instanceof F))return new F(e);e?u(t=e.encode)&&(e.encode=t.toString()):e={},(t=(self||window)._factory)&&(t=t.toString());let r="undefined"==typeof window&&self.exports,n=this;this.o=K(t,r,e.worker),this.h=o(),this.o&&(r?this.o.on("message",function(e){n.h[e.id](e.msg),delete n.h[e.id]}):this.o.onmessage=function(e){e=e.data,n.h[e.id](e.msg),delete n.h[e.id]},this.o.postMessage({task:"init",factory:t,options:e}))}function j(e){F.prototype[e]=F.prototype[e+"Async"]=function(){let t;let r=this,n=[].slice.call(arguments);var i=n[n.length-1];return u(i)&&(t=i,n.splice(n.length-1,1)),i=new Promise(function(t){setTimeout(function(){r.h[++U]=t,r.o.postMessage({task:e,id:U,args:n})})}),t?(i.then(t),this):i}}function K(e,t,n){let i;try{i=t?new(r(33223)).Worker(__dirname+"/node/node.js"):e?new Worker(URL.createObjectURL(new Blob(["onmessage="+B.toString()],{type:"text/javascript"}))):new Worker(a(n)?n:"worker/worker.js",{type:"module"})}catch(e){}return i}function V(e){if(!(this instanceof V))return new V(e);var t,r=e.document||e.doc||e;this.K=[],this.h=[],this.A=[],this.register=o(),this.key=(t=r.key||r.id)&&H(t,this.A)||"id",this.m=n(e.fastupdate),this.C=(t=r.store)&&!0!==t&&[],this.store=t&&o(),this.I=(t=r.tag)&&H(t,this.A),this.l=t&&o(),this.cache=(t=e.cache)&&new w(t),e.cache=!1,this.o=e.worker,this.async=!1,t=o();let i=r.index||r.field||r;a(i)&&(i=[i]);for(let r=0,n,o;rt||r)&&(i=i.slice(r,r+t)),n&&(i=X.call(this,i)),{tag:e,result:i}}function X(e){let t=Array(e.length);for(let r=0,n;r{o=e})),i||(i=0),n||(n=0),n=e.length-1)return e.length;let r=o.default.codePointAt(e,t),n=a.getGraphemeBreakProperty(r),i=a.getEmojiProperty(r),s=[],l=[];for(let r=t+1;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(89708),i=0,o=1,s=2,a=3,l=4;class u{static isSurrogate(e,t){return 55296<=e.charCodeAt(t)&&56319>=e.charCodeAt(t)&&56320<=e.charCodeAt(t+1)&&57343>=e.charCodeAt(t+1)}static codePointAt(e,t){void 0===t&&(t=0);let r=e.charCodeAt(t);if(55296<=r&&r<=56319&&t=1){let n=e.charCodeAt(t-1),i=r;return 55296<=n&&n<=56319?(n-55296)*1024+(i-56320)+65536:i}return r}static shouldBreak(e,t,r,u,c,h){let d=[e].concat(t).concat([r]),f=[u].concat(c).concat([h]),p=d[d.length-2],m=r,g=h,v=d.lastIndexOf(n.CLUSTER_BREAK.REGIONAL_INDICATOR);if(v>0&&d.slice(1,v).every(function(e){return e===n.CLUSTER_BREAK.REGIONAL_INDICATOR})&&-1===[n.CLUSTER_BREAK.PREPEND,n.CLUSTER_BREAK.REGIONAL_INDICATOR].indexOf(p))return d.filter(function(e){return e===n.CLUSTER_BREAK.REGIONAL_INDICATOR}).length%2==1?a:l;if(p===n.CLUSTER_BREAK.CR&&m===n.CLUSTER_BREAK.LF)return i;if(p===n.CLUSTER_BREAK.CONTROL||p===n.CLUSTER_BREAK.CR||p===n.CLUSTER_BREAK.LF||m===n.CLUSTER_BREAK.CONTROL||m===n.CLUSTER_BREAK.CR||m===n.CLUSTER_BREAK.LF)return o;if(p===n.CLUSTER_BREAK.L&&(m===n.CLUSTER_BREAK.L||m===n.CLUSTER_BREAK.V||m===n.CLUSTER_BREAK.LV||m===n.CLUSTER_BREAK.LVT))return i;if((p===n.CLUSTER_BREAK.LV||p===n.CLUSTER_BREAK.V)&&(m===n.CLUSTER_BREAK.V||m===n.CLUSTER_BREAK.T))return i;if((p===n.CLUSTER_BREAK.LVT||p===n.CLUSTER_BREAK.T)&&m===n.CLUSTER_BREAK.T)return i;if(m===n.CLUSTER_BREAK.EXTEND||m===n.CLUSTER_BREAK.ZWJ)return i;else if(m===n.CLUSTER_BREAK.SPACINGMARK)return i;else if(p===n.CLUSTER_BREAK.PREPEND)return i;let y=f.slice(0,-1).lastIndexOf(n.EXTENDED_PICTOGRAPHIC);return -1!==y&&f[y]===n.EXTENDED_PICTOGRAPHIC&&d.slice(y+1,-2).every(function(e){return e===n.CLUSTER_BREAK.EXTEND})&&p===n.CLUSTER_BREAK.ZWJ&&g===n.EXTENDED_PICTOGRAPHIC?i:-1!==t.indexOf(n.CLUSTER_BREAK.REGIONAL_INDICATOR)?s:p===n.CLUSTER_BREAK.REGIONAL_INDICATOR&&m===n.CLUSTER_BREAK.REGIONAL_INDICATOR?i:o}}t.default=u},82572:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r{constructor(e,t){this._index=0,this._str=e,this._nextBreak=t}[Symbol.iterator](){return this}next(){let e;if((e=this._nextBreak(this._str,this._index)){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.EXTENDED_PICTOGRAPHIC=t.CLUSTER_BREAK=void 0,function(e){e[e.CR=0]="CR",e[e.LF=1]="LF",e[e.CONTROL=2]="CONTROL",e[e.EXTEND=3]="EXTEND",e[e.REGIONAL_INDICATOR=4]="REGIONAL_INDICATOR",e[e.SPACINGMARK=5]="SPACINGMARK",e[e.L=6]="L",e[e.V=7]="V",e[e.T=8]="T",e[e.LV=9]="LV",e[e.LVT=10]="LVT",e[e.OTHER=11]="OTHER",e[e.PREPEND=12]="PREPEND",e[e.E_BASE=13]="E_BASE",e[e.E_MODIFIER=14]="E_MODIFIER",e[e.ZWJ=15]="ZWJ",e[e.GLUE_AFTER_ZWJ=16]="GLUE_AFTER_ZWJ",e[e.E_BASE_GAZ=17]="E_BASE_GAZ"}(r=t.CLUSTER_BREAK||(t.CLUSTER_BREAK={})),t.EXTENDED_PICTOGRAPHIC=101},15976:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let i=n(r(3661));t.default=i.default},6177:(e,t,r)=>{"use strict";var n;function i(e){var t=e.pathname,r=void 0===t?"/":t,n=e.search,i=void 0===n?"":n,o=e.hash,s=void 0===o?"":o;return i&&"?"!==i&&(r+="?"===i.charAt(0)?i:"?"+i),s&&"#"!==s&&(r+="#"===s.charAt(0)?s:"#"+s),r}function o(e){var t={};if(e){var r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));var n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}r.d(t,{AO:()=>i,Rr:()=>o,rc:()=>n}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(n||(n={}))},2396:(e,t,r)=>{"use strict";var n=r(74686),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function u(e){return n.isMemo(e)?a:l[e.$$typeof]||i}l[n.ForwardRef]=s,l[n.Memo]=a;var c=Object.defineProperty,h=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;function g(e,t,r){if("string"!=typeof t){if(m){var n=p(t);n&&n!==m&&g(e,n,r)}var i=h(t);d&&(i=i.concat(d(t)));for(var s=u(e),a=u(t),l=0;l{"use strict";/** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,a=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,h=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,p=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,E=r?Symbol.for("react.responder"):60118,_=r?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case h:case o:case a:case s:case f:return e;default:switch(e=e&&e.$$typeof){case u:case d:case g:case m:case l:return e;default:return t}}case i:return t}}}function A(e){return b(e)===h}t.AsyncMode=c,t.ConcurrentMode=h,t.ContextConsumer=u,t.ContextProvider=l,t.Element=n,t.ForwardRef=d,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=a,t.StrictMode=s,t.Suspense=f,t.isAsyncMode=function(e){return A(e)||b(e)===c},t.isConcurrentMode=A,t.isContextConsumer=function(e){return b(e)===u},t.isContextProvider=function(e){return b(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return b(e)===d},t.isFragment=function(e){return b(e)===o},t.isLazy=function(e){return b(e)===g},t.isMemo=function(e){return b(e)===m},t.isPortal=function(e){return b(e)===i},t.isProfiler=function(e){return b(e)===a},t.isStrictMode=function(e){return b(e)===s},t.isSuspense=function(e){return b(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===h||e===a||e===s||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===d||e.$$typeof===y||e.$$typeof===E||e.$$typeof===_||e.$$typeof===v)},t.typeOf=b},74686:(e,t,r)=>{"use strict";e.exports=r(70946)},1192:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},55801:(e,t)=>{/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */t.L=function(e,t,r,n,i){var o,s,a=8*i-n-1,l=(1<>1,c=-7,h=r?i-1:0,d=r?-1:1,f=e[t+h];for(h+=d,o=f&(1<<-c)-1,f>>=-c,c+=a;c>0;o=256*o+e[t+h],h+=d,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=n;c>0;s=256*s+e[t+h],h+=d,c-=8);if(0===o)o=1-u;else{if(o===l)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,n),o-=u}return(f?-1:1)*s*Math.pow(2,o-n)},t.M=function(e,t,r,n,i,o){var s,a,l,u=8*o-i-1,c=(1<>1,d=23===i?5960464477539062e-23:0,f=n?0:o-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+h>=1?t+=d/l:t+=d*Math.pow(2,1-h),t*l>=2&&(s++,l/=2),s+h>=c?(a=0,s=c):s+h>=1?(a=(t*l-1)*Math.pow(2,i),s+=h):(a=t*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;e[r+f]=255&a,f+=p,a/=256,i-=8);for(s=s<0;e[r+f]=255&s,f+=p,s/=256,u-=8);e[r+f-p]|=128*m}},75968:(e,t,r)=>{"use strict";r.d(t,{$:()=>i});var n=r(49791);function i(e){let t=(0,n.eU)(()=>({mounted:!1,inProgress:0,promise:void 0,cleanup:void 0,fromCleanup:!1,recursing:!1,refresh:()=>{},refreshing:!1,get:()=>{},set:()=>{},pendingError:null})),r=(0,n.eU)(0),i=(0,n.eU)(null,(e,n)=>{let i=e(t);return i.mounted=!0,i.get=e,i.set=n,i.refresh=()=>{try{i.refreshing=!0,n(r,e=>e+1)}finally{i.refreshing=!1}},n(r,e=>e+1),()=>{i.mounted=!1,o(i),null==i.cleanup||i.cleanup(),i.cleanup=void 0}});i.onMount=e=>e();let s=(0,n.eU)(n=>{n(r);let i=n(t);if(!i.mounted||i.recursing||i.inProgress&&!i.refreshing)return i.promise;o(i);let s=new Map,a=e=>{let t=n(e);return s.set(e,t),t};a.peek=e=>i.get(e);let l=(...e)=>{try{return++i.inProgress,i.set(...e)}finally{--i.inProgress}};l.recurse=(e,...t)=>{if(i.fromCleanup);else try{return i.recursing=!0,i.set(e,...t)}finally{i.recursing=!1,Array.from(s).some(([e,t])=>n(e)!==t)&&i.refresh()}},++i.inProgress;let u=()=>{try{if(i.refreshing=!1,!i.mounted)return;try{i.fromCleanup=!0,null==i.cleanup||i.cleanup()}finally{i.fromCleanup=!1}i.cleanup=e(a,l)}catch(e){i.pendingError=e,i.refresh()}finally{i.promise=void 0,--i.inProgress}};return i.refreshing?u():i.promise=Promise.resolve().then(u)});return(0,n.eU)(e=>{e(i),e(s)})}function o(e){if(null!==e.pendingError){let t=e.pendingError;throw e.pendingError=null,t}}},61179:(e,t,r)=>{"use strict";r.d(t,{l:()=>u});var n=r(36870),i=r(86326),o=r(49791),s=r(5863),a=r(19189);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let r=(0,i.useContext)(e);if(!r)throw Error("Missing Provider from createIsolation");return(0,s.Pj)(l({store:r},t))},r=(e,r)=>{let n=t();return(0,s.fp)(e,l({store:n},r))},u=(e,r)=>{let n=t();return(0,s.md)(e,l({store:n},r))},c=(e,r)=>{let n=t();return(0,s.Xr)(e,l({store:n},r))};return{Provider:({store:t,initialValues:r=[],children:s})=>{let l=(0,i.useRef)(t);return l.current||(l.current=(0,o.y$)()),(0,a.RH)(r,{store:l.current}),(0,n.jsx)(e.Provider,{value:l.current,children:s})},useStore:t,useAtom:r,useAtomValue:u,useSetAtom:c}}let{read:c,write:h}=(0,o.eU)(null);(0,i.createContext)({scope:void 0,baseStore:void 0})},62672:e=>{/*! JSZip v3.10.1 - A JavaScript class for generating and reading zip files (c) 2009-2016 Stuart Knightley Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown. JSZip uses the library pako released under the MIT license : https://github.com/nodeca/pako/blob/main/LICENSE */!function(t){e.exports=t()}(function(){return(function e(t,r,n){function i(s,a){if(!r[s]){if(!t[s]){var l=void 0;if(!a&&l)return require(s,!0);if(o)return o(s,!0);var u=Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var c=r[s]={exports:{}};t[s][0].call(c.exports,function(e){return i(t[s][1][e]||e)},c,c.exports,e,t,r,n)}return r[s].exports}for(var o=void 0,s=0;s>2,a=(3&t)<<4|r>>4,l=1>6:64,u=2>4,r=(15&s)<<4|(a=o.indexOf(e.charAt(u++)))>>2,n=(3&a)<<6|(l=o.indexOf(e.charAt(u++))),d[c++]=t,64!==a&&(d[c++]=r),64!==l&&(d[c++]=n);return d}},{"./support":30,"./utils":32}],2:[function(e,t,r){"use strict";var n=e("./external"),i=e("./stream/DataWorker"),o=e("./stream/Crc32Probe"),s=e("./stream/DataLengthProbe");function a(e,t,r,n,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=i}a.prototype={getContentWorker:function(){var e=new i(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new s("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new i(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},a.createWorkerFrom=function(e,t,r){return e.pipe(new o).pipe(new s("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new s("compressedSize")).withStreamInfo("compression",t)},t.exports=a},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,r){"use strict";var n=e("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},r.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,r){"use strict";var n=e("./utils"),i=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==n.getTypeOf(e)?function(e,t,r,n){var o=i,s=0+r;e^=-1;for(var a=0;a>>8^o[255&(e^t[a])];return -1^e}(0|t,e,e.length,0):function(e,t,r,n){var o=i,s=0+r;e^=-1;for(var a=0;a>>8^o[255&(e^t.charCodeAt(a))];return -1^e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,r){"use strict";r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(e,t,r){"use strict";var n=null;n="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:n}},{lie:37}],7:[function(e,t,r){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako"),o=e("./utils"),s=e("./stream/GenericWorker"),a=n?"uint8array":"array";function l(e,t){s.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}r.magic="\b\0",o.inherits(l,s),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(a,e.data),!1)},l.prototype.flush=function(){s.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},r.compressWorker=function(e){return new l("Deflate",e)},r.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,r){"use strict";function n(e,t){var r,n="";for(r=0;r>>=8;return n}function i(e,t,r,i,s,c){var h,d,f=e.file,p=e.compression,m=c!==a.utf8encode,g=o.transformTo("string",c(f.name)),v=o.transformTo("string",a.utf8encode(f.name)),y=f.comment,E=o.transformTo("string",c(y)),_=o.transformTo("string",a.utf8encode(y)),b=v.length!==f.name.length,A=_.length!==y.length,T="",C="",S="",w=f.dir,x=f.date,R={crc32:0,compressedSize:0,uncompressedSize:0};t&&!r||(R.crc32=e.crc32,R.compressedSize=e.compressedSize,R.uncompressedSize=e.uncompressedSize);var k=0;t&&(k|=8),!m&&(b||A)&&(k|=2048);var L=0,I=0;w&&(L|=16),"UNIX"===s?(I=798,L|=function(e,t){var r=e;return e||(r=t?16893:33204),(65535&r)<<16}(f.unixPermissions,w)):(I=20,L|=function(e){return 63&(e||0)}(f.dosPermissions)),h=(x.getUTCHours()<<6|x.getUTCMinutes())<<5|x.getUTCSeconds()/2,d=(x.getUTCFullYear()-1980<<4|x.getUTCMonth()+1)<<5|x.getUTCDate(),b&&(C=n(1,1)+n(l(g),4)+v,T+="up"+n(C.length,2)+C),A&&(S=n(1,1)+n(l(E),4)+_,T+="uc"+n(S.length,2)+S);var O="";return O+="\n\0"+n(k,2)+p.magic+n(h,2)+n(d,2)+n(R.crc32,4)+n(R.compressedSize,4)+n(R.uncompressedSize,4)+n(g.length,2)+n(T.length,2),{fileRecord:u.LOCAL_FILE_HEADER+O+g+T,dirRecord:u.CENTRAL_FILE_HEADER+n(I,2)+O+n(E.length,2)+"\0\0\0\0"+n(L,4)+n(i,4)+g+T+E}}var o=e("../utils"),s=e("../stream/GenericWorker"),a=e("../utf8"),l=e("../crc32"),u=e("../signature");function c(e,t,r,n){s.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(c,s),c.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,s.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-n-1))/r:100}}))},c.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},c.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=i(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:function(e){return u.DATA_DESCRIPTOR+n(e.crc32,4)+n(e.compressedSize,4)+n(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},c.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return n.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,r){"use strict";var n=e("./Uint8ArrayReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,r){"use strict";var n=e("./DataReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,r){"use strict";var n=e("./ArrayReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,r){"use strict";var n=e("../utils"),i=e("../support"),o=e("./ArrayReader"),s=e("./StringReader"),a=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=n.getTypeOf(e);return n.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new a(e):i.uint8array?new l(n.transformTo("uint8array",e)):new o(n.transformTo("array",e)):new s(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,r){"use strict";r.LOCAL_FILE_HEADER="PK\x03\x04",r.CENTRAL_FILE_HEADER="PK\x01\x02",r.CENTRAL_DIRECTORY_END="PK\x05\x06",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",r.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",r.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(e,t,r){"use strict";var n=e("./GenericWorker"),i=e("../utils");function o(e){n.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(o,n),o.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,r){"use strict";var n=e("./GenericWorker"),i=e("../crc32");function o(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(o,n),o.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,r){"use strict";var n=e("../utils"),i=e("./GenericWorker");function o(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}n.inherits(o,i),o.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,r){"use strict";var n=e("../utils"),i=e("./GenericWorker");function o(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=n.getTypeOf(e),t.isPaused||t._tickAndRepeat()},function(e){t.error(e)})}n.inherits(o,i),o.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,r){"use strict";function n(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r "+e:e}},t.exports=n},{}],29:[function(e,t,r){"use strict";var n=e("../utils"),i=e("./ConvertWorker"),o=e("./GenericWorker"),s=e("../base64"),a=e("../support"),l=e("../external"),u=null;if(a.nodestream)try{u=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function c(e,t){return new l.Promise(function(r,i){var o=[],a=e._internalType,l=e._outputType,u=e._mimeType;e.on("data",function(e,r){o.push(e),t&&t(r)}).on("error",function(e){o=[],i(e)}).on("end",function(){try{var e=function(e,t,r){switch(e){case"blob":return n.newBlob(n.transformTo("arraybuffer",t),r);case"base64":return s.encode(t);default:return n.transformTo(e,t)}}(l,function(e,t){var r,n=0,i=null,o=0;for(r=0;r>>6:(r<65536?t[s++]=224|r>>>12:(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63),t[s++]=128|r>>>6&63),t[s++]=128|63&r);return t}(e)},r.utf8decode=function(e){return i.nodebuffer?n.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,r,i,o,s=e.length,l=Array(2*s);for(t=r=0;t>10&1023,l[r++]=56320|1023&i)}return l.length!==r&&(l.subarray?l=l.subarray(0,r):l.length=r),n.applyFromCharCode(l)}(e=n.transformTo(i.uint8array?"uint8array":"array",e))},n.inherits(u,s),u.prototype.processChunk=function(e){var t=n.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var o=t;(t=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),t.set(o,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var s=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0?t:0===r?t:r+a[e[r]]>t?r:t}(t),l=t;s!==t.length&&(i.uint8array?(l=t.subarray(0,s),this.leftOver=t.subarray(s,t.length)):(l=t.slice(0,s),this.leftOver=t.slice(s,t.length))),this.push({data:r.utf8decode(l),meta:e.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=u,n.inherits(c,s),c.prototype.processChunk=function(e){this.push({data:r.utf8encode(e.data),meta:e.meta})},r.Utf8EncodeWorker=c},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,r){"use strict";var n=e("./support"),i=e("./base64"),o=e("./nodejsUtils"),s=e("./external");function a(e){return e}function l(e,t){for(var r=0;r>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=n(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,r,n,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4>>6:(r<65536?t[s++]=224|r>>>12:(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63),t[s++]=128|r>>>6&63),t[s++]=128|63&r);return t},r.buf2binstring=function(e){return l(e,e.length)},r.binstring2buf=function(e){for(var t=new n.Buf8(e.length),r=0,i=t.length;r>10&1023,u[n++]=56320|1023&i)}return l(u,n)},r.utf8border=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0?t:0===r?t:r+s[e[r]]>t?r:t}},{"./common":41}],43:[function(e,t,r){"use strict";t.exports=function(e,t,r,n){for(var i=65535&e|0,o=e>>>16&65535|0,s=0;0!==r;){for(r-=s=2e3>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t,r,i){var o=n,s=i+r;e^=-1;for(var a=i;a>>8^o[255&(e^t[a])];return -1^e}},{}],46:[function(e,t,r){"use strict";var n,i=e("../utils/common"),o=e("./trees"),s=e("./adler32"),a=e("./crc32"),l=e("./messages"),u=0,c=4,h=0,d=-2,f=-1,p=4,m=2,g=8,v=9,y=286,E=30,_=19,b=573,A=15,T=3,C=258,S=262,w=42,x=113,R=1,k=2,L=3,I=4;function O(e,t){return e.msg=l[t],t}function D(e){return(e<<1)-(4e.avail_out&&(r=e.avail_out),0!==r&&(i.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function M(e,t){o._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,P(e.strm)}function B(e,t){e.pending_buf[e.pending++]=t}function U(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function F(e,t){var r,n,i=e.max_chain_length,o=e.strstart,s=e.prev_length,a=e.nice_match,l=e.strstart>e.w_size-S?e.strstart-(e.w_size-S):0,u=e.window,c=e.w_mask,h=e.prev,d=e.strstart+C,f=u[o+s-1],p=u[o+s];e.prev_length>=e.good_match&&(i>>=2),a>e.lookahead&&(a=e.lookahead);do if(u[(r=t)+s]===p&&u[r+s-1]===f&&u[r]===u[o]&&u[++r]===u[o+1]){o+=2,r++;do;while(u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&ol&&0!=--i)return s<=e.lookahead?s:e.lookahead}function j(e){var t,r,n,o,l,u,c,h,d,f,p=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-S)){for(i.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=r=e.hash_size;n=e.head[--t],e.head[t]=p<=n?n-p:0,--r;);for(t=r=p;n=e.prev[--t],e.prev[t]=p<=n?n-p:0,--r;);o+=p}if(0===e.strm.avail_in)break;if(u=e.strm,c=e.window,h=e.strstart+e.lookahead,f=void 0,(d=o)<(f=u.avail_in)&&(f=d),r=0===f?0:(u.avail_in-=f,i.arraySet(c,u.input,u.next_in,f,h),1===u.state.wrap?u.adler=s(u.adler,c,f,h):2===u.state.wrap&&(u.adler=a(u.adler,c,f,h)),u.next_in+=f,u.total_in+=f,f),e.lookahead+=r,e.lookahead+e.insert>=T)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<=T&&(e.ins_h=(e.ins_h<=T){if(n=o._tr_tally(e,e.strstart-e.match_start,e.match_length-T),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=T){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<=T&&(e.ins_h=(e.ins_h<=T&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-T,n=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-T),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(j(e),0===e.lookahead&&t===u)return R;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,M(e,!1),0===e.strm.avail_out)||e.strstart-e.block_start>=e.w_size-S&&(M(e,!1),0===e.strm.avail_out))return R}return e.insert=0,t===c?(M(e,!0),0===e.strm.avail_out?L:I):(e.strstart>e.block_start&&(M(e,!1),e.strm.avail_out),R)}),new H(4,4,8,4,K),new H(4,5,16,8,K),new H(4,6,32,32,K),new H(4,4,16,16,V),new H(8,16,32,32,V),new H(8,16,128,128,V),new H(8,32,128,256,V),new H(32,128,258,1024,V),new H(32,258,258,4096,V)],r.deflateInit=function(e,t){return W(e,t,g,15,8,0)},r.deflateInit2=W,r.deflateReset=q,r.deflateResetKeep=G,r.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?d:(e.state.gzhead=t,h):d},r.deflate=function(e,t){var r,i,s,l;if(!e||!e.state||5>8&255),B(i,i.gzhead.time>>16&255),B(i,i.gzhead.time>>24&255),B(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),B(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(B(i,255&i.gzhead.extra.length),B(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=a(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(B(i,0),B(i,0),B(i,0),B(i,0),B(i,0),B(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),B(i,3),i.status=x);else{var f=g+(i.w_bits-8<<4)<<8;f|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(f|=32),f+=31-f%31,i.status=x,U(i,f),0!==i.strstart&&(U(i,e.adler>>>16),U(i,65535&e.adler)),e.adler=1}}if(69===i.status){if(i.gzhead.extra){for(s=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),P(e),s=i.pending,i.pending!==i.pending_buf_size));)B(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73}if(73===i.status){if(i.gzhead.name){s=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),P(e),s=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindexs&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),0===l&&(i.gzindex=0,i.status=91)}else i.status=91}if(91===i.status){if(i.gzhead.comment){s=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),P(e),s=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindexs&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),0===l&&(i.status=103)}else i.status=103}if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&P(e),i.pending+2<=i.pending_buf_size&&(B(i,255&e.adler),B(i,e.adler>>8&255),e.adler=0,i.status=x)):i.status=x),0!==i.pending){if(P(e),0===e.avail_out)return i.last_flush=-1,h}else if(0===e.avail_in&&D(t)<=D(r)&&t!==c)return O(e,-5);if(666===i.status&&0!==e.avail_in)return O(e,-5);if(0!==e.avail_in||0!==i.lookahead||t!==u&&666!==i.status){var p=2===i.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(j(e),0===e.lookahead)){if(t===u)return R;break}if(e.match_length=0,r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(M(e,!1),0===e.strm.avail_out))return R}return e.insert=0,t===c?(M(e,!0),0===e.strm.avail_out?L:I):e.last_lit&&(M(e,!1),0===e.strm.avail_out)?R:k}(i,t):3===i.strategy?function(e,t){for(var r,n,i,s,a=e.window;;){if(e.lookahead<=C){if(j(e),e.lookahead<=C&&t===u)return R;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=T&&0e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=T?(r=o._tr_tally(e,1,e.match_length-T),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(M(e,!1),0===e.strm.avail_out))return R}return e.insert=0,t===c?(M(e,!0),0===e.strm.avail_out?L:I):e.last_lit&&(M(e,!1),0===e.strm.avail_out)?R:k}(i,t):n[i.level].func(i,t);if(p!==L&&p!==I||(i.status=666),p===R||p===L)return 0===e.avail_out&&(i.last_flush=-1),h;if(p===k&&(1===t?o._tr_align(i):5!==t&&(o._tr_stored_block(i,0,0,!1),3===t&&(N(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),P(e),0===e.avail_out))return i.last_flush=-1,h}return t!==c?h:i.wrap<=0?1:(2===i.wrap?(B(i,255&e.adler),B(i,e.adler>>8&255),B(i,e.adler>>16&255),B(i,e.adler>>24&255),B(i,255&e.total_in),B(i,e.total_in>>8&255),B(i,e.total_in>>16&255),B(i,e.total_in>>24&255)):(U(i,e.adler>>>16),U(i,65535&e.adler)),P(e),0=r.w_size&&(0===a&&(N(r.head),r.strstart=0,r.block_start=0,r.insert=0),f=new i.Buf8(r.w_size),i.arraySet(f,t,p-r.w_size,r.w_size,0),t=f,p=r.w_size),l=e.avail_in,u=e.next_in,c=e.input,e.avail_in=p,e.next_in=0,e.input=t,j(r);r.lookahead>=T;){for(n=r.strstart,o=r.lookahead-(T-1);r.ins_h=(r.ins_h<>>=_=E>>>24,p-=_,0==(_=E>>>16&255))w[o++]=65535&E;else{if(!(16&_)){if(0==(64&_)){E=m[(65535&E)+(f&(1<<_)-1)];continue}if(32&_){r.mode=12;break e}e.msg="invalid literal/length code",r.mode=30;break e}for(b=65535&E,(_&=15)&&(p<_&&(f+=S[n++]<>>=_,p-=_),p<15&&(f+=S[n++]<>>=_=E>>>24,p-=_,!(16&(_=E>>>16&255))){if(0==(64&_)){E=g[(65535&E)+(f&(1<<_)-1)];continue}e.msg="invalid distance code",r.mode=30;break e}if(A=65535&E,p<(_&=15)&&(f+=S[n++]<>>=_,p-=_,(_=o-s)>3,f&=(1<<(p-=b<<3))-1,e.next_in=n,e.next_out=o,e.avail_in=n>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function g(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function v(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=d,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(f),t.distcode=t.distdyn=new n.Buf32(p),t.sane=1,t.back=-1,c):h}function y(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,v(e)):h}function E(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15=s.wsize?(n.arraySet(s.window,t,r-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(i<(o=s.wsize-s.wnext)&&(o=i),n.arraySet(s.window,t,r-i,o,s.wnext),(i-=o)?(n.arraySet(s.window,t,r-i,i,0),s.wnext=i,s.whave=s.wsize):(s.wnext+=o,s.wnext===s.wsize&&(s.wnext=0),s.whave>>8&255,r.check=o(r.check,j,2,0),b=_=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&_)<<8)+(_>>8))%31){e.msg="incorrect header check",r.mode=30;break}if(8!=(15&_)){e.msg="unknown compression method",r.mode=30;break}if(b-=4,P=8+(15&(_>>>=4)),0===r.wbits)r.wbits=P;else if(P>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<>8&1),512&r.flags&&(j[0]=255&_,j[1]=_>>>8&255,r.check=o(r.check,j,2,0)),b=_=0,r.mode=3;case 3:for(;b<32;){if(0===y)break e;y--,_+=f[g++]<>>8&255,j[2]=_>>>16&255,j[3]=_>>>24&255,r.check=o(r.check,j,4,0)),b=_=0,r.mode=4;case 4:for(;b<16;){if(0===y)break e;y--,_+=f[g++]<>8),512&r.flags&&(j[0]=255&_,j[1]=_>>>8&255,r.check=o(r.check,j,2,0)),b=_=0,r.mode=5;case 5:if(1024&r.flags){for(;b<16;){if(0===y)break e;y--,_+=f[g++]<>>8&255,r.check=o(r.check,j,2,0)),b=_=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(y<(w=r.length)&&(w=y),w&&(r.head&&(P=r.head.extra_len-r.length,r.head.extra||(r.head.extra=Array(r.head.extra_len)),n.arraySet(r.head.extra,f,g,w,P)),512&r.flags&&(r.check=o(r.check,f,w,g)),y-=w,g+=w,r.length-=w),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===y)break e;for(w=0;P=f[g+w++],r.head&&P&&r.length<65536&&(r.head.name+=String.fromCharCode(P)),P&&w>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;b<32;){if(0===y)break e;y--,_+=f[g++]<>>=7&b,b-=7&b,r.mode=27;break}for(;b<3;){if(0===y)break e;y--,_+=f[g++]<>>=1)){case 0:r.mode=14;break;case 1:if(C(r),r.mode=20,6!==t)break;_>>>=2,b-=2;break e;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}_>>>=2,b-=2;break;case 14:for(_>>>=7&b,b-=7&b;b<32;){if(0===y)break e;y--,_+=f[g++]<>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&_,b=_=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(w=r.length){if(y>>=5,b-=5,r.ndist=1+(31&_),_>>>=5,b-=5,r.ncode=4+(15&_),_>>>=4,b-=4,286>>=3,b-=3}for(;r.have<19;)r.lens[K[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,B={bits:r.lenbits},M=a(0,r.lens,0,19,r.lencode,0,r.work,B),r.lenbits=B.bits,M){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have>>16&255,I=65535&F,!((k=F>>>24)<=b);){if(0===y)break e;y--,_+=f[g++]<>>=k,b-=k,r.lens[r.have++]=I;else{if(16===I){for(U=k+2;b>>=k,b-=k,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}P=r.lens[r.have-1],w=3+(3&_),_>>>=2,b-=2}else if(17===I){for(U=k+3;b>>=k)),_>>>=3,b-=3}else{for(U=k+7;b>>=k)),_>>>=7,b-=7}if(r.have+w>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;w--;)r.lens[r.have++]=P}}if(30===r.mode)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,B={bits:r.lenbits},M=a(l,r.lens,0,r.nlen,r.lencode,0,r.work,B),r.lenbits=B.bits,M){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,B={bits:r.distbits},M=a(u,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,B),r.distbits=B.bits,M){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(6<=y&&258<=E){e.next_out=v,e.avail_out=E,e.next_in=g,e.avail_in=y,r.hold=_,r.bits=b,s(e,T),v=e.next_out,p=e.output,E=e.avail_out,g=e.next_in,f=e.input,y=e.avail_in,_=r.hold,b=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;L=(F=r.lencode[_&(1<>>16&255,I=65535&F,!((k=F>>>24)<=b);){if(0===y)break e;y--,_+=f[g++]<>O)])>>>16&255,I=65535&F,!(O+(k=F>>>24)<=b);){if(0===y)break e;y--,_+=f[g++]<>>=O,b-=O,r.back+=O}if(_>>>=k,b-=k,r.back+=k,r.length=I,0===L){r.mode=26;break}if(32&L){r.back=-1,r.mode=12;break}if(64&L){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&L,r.mode=22;case 22:if(r.extra){for(U=r.extra;b>>=r.extra,b-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;L=(F=r.distcode[_&(1<>>16&255,I=65535&F,!((k=F>>>24)<=b);){if(0===y)break e;y--,_+=f[g++]<>O)])>>>16&255,I=65535&F,!(O+(k=F>>>24)<=b);){if(0===y)break e;y--,_+=f[g++]<>>=O,b-=O,r.back+=O}if(_>>>=k,b-=k,r.back+=k,64&L){e.msg="invalid distance code",r.mode=30;break}r.offset=I,r.extra=15&L,r.mode=24;case 24:if(r.extra){for(U=r.extra;b>>=r.extra,b-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===E)break e;if(w=T-E,r.offset>w){if((w=r.offset-w)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}x=w>r.wnext?(w-=r.wnext,r.wsize-w):r.wnext-w,w>r.length&&(w=r.length),R=r.window}else R=p,x=v-r.offset,w=r.length;for(Ey?(_=B[U+h[C]],D[N+h[C]]):(_=96,0),f=1<>k)+(p-=f)]=E<<24|_<<16|b|0,0!==p;);for(f=1<>=1;if(0!==f?(O&=f-1,O+=f):O=0,C++,0==--P[T]){if(T===w)break;T=t[r+h[C]]}if(x>>7)]}function B(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function U(e,t,r){e.bi_valid>m-r?(e.bi_buf|=t<>m-e.bi_valid,e.bi_valid+=r-m):(e.bi_buf|=t<>>=1,r<<=1,0<--t;);return r>>>1}function K(e,t,r){var n,i,o=Array(p+1),s=0;for(n=1;n<=p;n++)o[n]=s=s+r[n-1]<<1;for(i=0;i<=t;i++){var a=e[2*i+1];0!==a&&(e[2*i]=j(o[a]++,a))}}function V(e){var t;for(t=0;t>1;1<=r;r--)G(e,o,r);for(i=l;r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],G(e,o,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,o[2*i]=o[2*r]+o[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,o[2*r+1]=o[2*n+1]=i,e.heap[1]=i++,G(e,o,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,i,o,s,a,l=t.dyn_tree,u=t.max_code,c=t.stat_desc.static_tree,h=t.stat_desc.has_stree,d=t.stat_desc.extra_bits,m=t.stat_desc.extra_base,g=t.stat_desc.max_length,v=0;for(o=0;o<=p;o++)e.bl_count[o]=0;for(l[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r>=7;n>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return i;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return o;for(t=32;t>>3,(a=e.static_len+3+7>>>3)<=s&&(s=a)):s=a=r+5,r+4<=s&&-1!==t?Z(e,t,r,n):4===e.strategy||a===s?(U(e,2+(n?1:0),3),q(e,S,w)):(U(e,4+(n?1:0),3),function(e,t,r,n){var i;for(U(e,t-257,5),U(e,r-1,5),U(e,n-4,4),i=0;i>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(R[r]+u+1)]++,e.dyn_dtree[2*M(t)]++),e.last_lit===e.lit_bufsize-1},r._tr_align=function(e){U(e,2,3),F(e,v,S),function(e){16===e.bi_valid?(B(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,r){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,r){(function(e){!function(e,t){"use strict";if(!e.setImmediate){var r,n,i,o,s=1,a={},l=!1,u=e.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(e);c=c&&c.setTimeout?c:e,r="[object process]"===({}).toString.call(e.process)?function(e){process.nextTick(function(){d(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){d(e.data)},function(e){i.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(n=u.documentElement,function(e){var t=u.createElement("script");t.onreadystatechange=function(){d(e),t.onreadystatechange=null,n.removeChild(t),t=null},n.appendChild(t)}):function(e){setTimeout(d,0,e)}:(o="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",f,!1):e.attachEvent("onmessage",f),function(t){e.postMessage(o+t,"*")}),c.setImmediate=function(e){"function"!=typeof e&&(e=Function(""+e));for(var t=Array(arguments.length-1),n=0;n{e=r.nmd(e);var n=200,i="__lodash_hash_undefined__",o=1,s=2,a=9007199254740991,l="[object Arguments]",u="[object Array]",c="[object Boolean]",h="[object Date]",d="[object Error]",f="[object Function]",p="[object GeneratorFunction]",m="[object Map]",g="[object Number]",v="[object Object]",y="[object Promise]",E="[object RegExp]",_="[object Set]",b="[object String]",A="[object Symbol]",T="[object WeakMap]",C="[object ArrayBuffer]",S="[object DataView]",w="[object Float64Array]",x="[object Int8Array]",R="[object Int16Array]",k="[object Int32Array]",L="[object Uint8Array]",I="[object Uint8ClampedArray]",O="[object Uint16Array]",D="[object Uint32Array]",N=/[\\^$.*+?()[\]{}|]/g,P=/^\[object .+?Constructor\]$/,M=/^(?:0|[1-9]\d*)$/,B={};B["[object Float32Array]"]=B[w]=B[x]=B[R]=B[k]=B[L]=B[I]=B[O]=B[D]=!0,B[l]=B[u]=B[C]=B[c]=B[S]=B[h]=B[d]=B[f]=B[m]=B[g]=B[v]=B[E]=B[_]=B[b]=B[T]=!1;var U="object"==typeof global&&global&&global.Object===Object&&global,F="object"==typeof self&&self&&self.Object===Object&&self,j=U||F||Function("return this")(),K=t&&!t.nodeType&&t,V=K&&e&&!e.nodeType&&e,H=V&&V.exports===K&&U.process,z=function(){try{return H&&H.binding("util")}catch(e){}}(),G=z&&z.isTypedArray;function q(e,t){for(var r=-1,n=e?e.length:0;++r-1}function eF(e,t){var r=this.__data__,n=e2(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}function ej(e){var t=-1,r=e?e.length:0;for(this.clear();++tu))return!1;var h=a.get(e);if(h&&a.get(t))return h==t;var d=-1,f=!0,p=i&o?new eG:void 0;for(a.set(e,t),a.set(t,e);++d-1&&e%1==0&&e-1&&e%1==0&&e<=a}function tE(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function t_(e){return!!e&&"object"==typeof e}function tb(e,t){return e===t||e5(e,t,tn(t))}var tA=G?X(G):e7;function tT(e){return tm(e)?e1(e):e8(e)}e.exports=tb},81241:function(e,t,r){!function(e,n){n(t,r(43509),r(86326))}(0,function(e,t,r){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=n(t),o=n(r);function s(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,s,a=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t=0||(i[r]=e[r]);return i}function h(e,t){if(null==e)return{};var r,n,i=c(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function d(e,t){return f(e)||s(e,t)||p(e,t)||g()}function f(e){if(Array.isArray(e))return e}function p(e,t){if(e){if("string"==typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m(e,t)}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r0&&void 0!==arguments[0]?arguments[0]:{};if(R.current){null===(t=x.current)||void 0===t||t.destroy();var n=l(l(l({},e),r),{},{container:R.current});return x.current=i.default.loadAnimation(n),w(!!x.current),function(){var e;null===(e=x.current)||void 0===e||e.destroy(),x.current=void 0}}};return r.useEffect(function(){var e=j();return function(){return null==e?void 0:e()}},[n,s]),r.useEffect(function(){x.current&&(x.current.autoplay=!!a)},[a]),r.useEffect(function(){if(x.current){if(!u){x.current.resetSegments(!0);return}Array.isArray(u)&&u.length&&((x.current.currentRawFrameu[1])&&(x.current.currentRawFrame=u[0]),x.current.setSegment(u[0],u[1]))}},[u]),r.useEffect(function(){var e=[{name:"complete",handler:c},{name:"loopComplete",handler:f},{name:"enterFrame",handler:p},{name:"segmentStart",handler:m},{name:"config_ready",handler:g},{name:"data_ready",handler:v},{name:"data_failed",handler:y},{name:"loaded_images",handler:_},{name:"DOMLoaded",handler:b},{name:"destroy",handler:A}].filter(function(e){return null!=e.handler});if(e.length){var t=e.map(function(e){var t;return null===(t=x.current)||void 0===t||t.addEventListener(e.name,e.handler),function(){var t;null===(t=x.current)||void 0===t||t.removeEventListener(e.name,e.handler)}});return function(){t.forEach(function(e){return e()})}}},[c,f,p,m,g,v,y,_,b,A]),{View:o.default.createElement("div",l({style:t,ref:R},T)),play:k,stop:L,pause:I,setSpeed:O,goToAndStop:N,goToAndPlay:D,setDirection:P,playSegments:M,setSubframe:B,getDuration:U,destroy:F,animationContainerRef:R,animationLoaded:S,animationItem:x.current}};function b(e){var t=e.getBoundingClientRect(),r=t.top,n=t.height;return(window.innerHeight-r)/(window.innerHeight+n)}function A(e,t,r){var n=e.getBoundingClientRect(),i=n.top;return{x:(t-n.left)/n.width,y:(r-i)/n.height}}var T=function(e){var t=e.wrapperRef,n=e.animationItem,i=e.mode,o=e.actions;r.useEffect(function(){var e=t.current;if(e&&n&&o.length){n.stop();var r=function(){var t=null,r=function(){var r=b(e),i=o.find(function(e){var t=e.visibility;return t&&r>=t[0]&&r<=t[1]});if(i){if("seek"===i.type&&i.visibility&&2===i.frames.length){var s=i.frames[0]+Math.ceil((r-i.visibility[0])/(i.visibility[1]-i.visibility[0])*i.frames[1]);n.goToAndStop(s-n.firstFrame-1,!0)}"loop"===i.type&&(null===t?(n.playSegments(i.frames,!0),t=i.frames):t!==i.frames?(n.playSegments(i.frames,!0),t=i.frames):n.isPaused&&(n.playSegments(i.frames,!0),t=i.frames)),"play"===i.type&&n.isPaused&&(n.resetSegments(!0),n.play()),"stop"===i.type&&n.goToAndStop(i.frames[0]-n.firstFrame-1,!0)}};return document.addEventListener("scroll",r),function(){document.removeEventListener("scroll",r)}},s=function(){var t=function(t,r){var i=t,s=r;if(-1!==i&&-1!==s){var a=A(e,i,s);i=a.x,s=a.y}var l=o.find(function(e){var t=e.position;return t&&Array.isArray(t.x)&&Array.isArray(t.y)?i>=t.x[0]&&i<=t.x[1]&&s>=t.y[0]&&s<=t.y[1]:!(!t||Number.isNaN(t.x)||Number.isNaN(t.y))&&i===t.x&&s===t.y});if(l){if("seek"===l.type&&l.position&&Array.isArray(l.position.x)&&Array.isArray(l.position.y)&&2===l.frames.length){var u=(i-l.position.x[0])/(l.position.x[1]-l.position.x[0]),c=(s-l.position.y[0])/(l.position.y[1]-l.position.y[0]);n.playSegments(l.frames,!0),n.goToAndStop(Math.ceil((u+c)/2*(l.frames[1]-l.frames[0])),!0)}"loop"===l.type&&n.playSegments(l.frames,!0),"play"===l.type&&(n.isPaused&&n.resetSegments(!1),n.playSegments(l.frames)),"stop"===l.type&&n.goToAndStop(l.frames[0],!0)}},r=function(e){t(e.clientX,e.clientY)},i=function(){t(-1,-1)};return e.addEventListener("mousemove",r),e.addEventListener("mouseout",i),function(){e.removeEventListener("mousemove",r),e.removeEventListener("mouseout",i)}};switch(i){case"scroll":return r();case"cursor":return s()}}},[i,n])},C=function(e){var t=e.actions,r=e.mode,n=e.lottieObj,i=n.animationItem,o=n.View;return T({actions:t,animationItem:i,mode:r,wrapperRef:n.animationContainerRef}),o},S=["style","interactivity"],w=function(e){var t,n,i,o=e.style,s=e.interactivity,a=_(h(e,S),o),l=a.View,u=a.play,c=a.stop,d=a.pause,f=a.setSpeed,p=a.goToAndStop,m=a.goToAndPlay,g=a.setDirection,v=a.playSegments,y=a.setSubframe,E=a.getDuration,b=a.destroy,A=a.animationContainerRef,T=a.animationLoaded,w=a.animationItem;return r.useEffect(function(){e.lottieRef&&(e.lottieRef.current={play:u,stop:c,pause:d,setSpeed:f,goToAndPlay:m,goToAndStop:p,setDirection:g,playSegments:v,setSubframe:y,getDuration:E,destroy:b,animationContainerRef:A,animationLoaded:T,animationItem:w})},[null===(t=e.lottieRef)||void 0===t?void 0:t.current]),C({lottieObj:{View:l,play:u,stop:c,pause:d,setSpeed:f,goToAndStop:p,goToAndPlay:m,setDirection:g,playSegments:v,setSubframe:y,getDuration:E,destroy:b,animationContainerRef:A,animationLoaded:T,animationItem:w},actions:null!==(n=null==s?void 0:s.actions)&&void 0!==n?n:[],mode:null!==(i=null==s?void 0:s.mode)&&void 0!==i?i:"scroll"})};Object.defineProperty(e,"LottiePlayer",{enumerable:!0,get:function(){return i.default}}),e.default=w,e.useLottie=_,e.useLottieInteractivity=C,Object.defineProperty(e,"__esModule",{value:!0})})},43509:function(module,exports,__webpack_require__){"undefined"!=typeof navigator&&function(e,t){module.exports=t()}(0,function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(e){_useWebWorker=!!e},getWebWorker=function(){return _useWebWorker},setLocationHref=function(e){locationHref=e},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var r,n,i=e.length;for(r=0;r1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[2]+=t,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[0]+=t/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=function(){var e,t,r=[];for(e=0;e<256;e+=1)t=e.toString(16),r[e]=1===t.length?"0"+t:t;return function(e,t,n){return e<0&&(e=0),t<0&&(t=0),n<0&&(n=0),"#"+r[e]+r[t]+r[n]}}(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(e){expressionsInterfaces=e},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix$1=e},getIdPrefix=function(){return idPrefix$1};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){return(_typeof$5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var dataManager=function(){var e,t,r=1,n=[],i={onmessage:function(){},postMessage:function(t){e({data:t})}},o={postMessage:function(e){i.onmessage({data:e})}};function s(t){if(window.Worker&&window.Blob&&getWebWorker()){var r=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"});return new Worker(URL.createObjectURL(r))}return e=t,i}function a(){t||((t=s(function(e){function t(){function e(t,r){var s,a,l,u,c,h,d=t.length;for(a=0;a=0;t-=1)if("sh"===e[t].ty){if(e[t].ks.k.i)o(e[t].ks.k);else for(r=0,n=e[t].ks.k.length;rr[0]||!(r[0]>e[0])&&(e[1]>r[1]||!(r[1]>e[1])&&(e[2]>r[2]||!(r[2]>e[2])&&null))}var a=function(){var e=[4,4,14];function t(e){var t=e.t.d;e.t.d={k:[{s:t,t:0}]}}function r(e){var r,n=e.length;for(r=0;r=0;r-=1)if("sh"===e[r].ty){if(e[r].ks.k.i)e[r].ks.k.c=e[r].closed;else for(n=0,i=e[r].ks.k.length;n500)&&(this._imageLoaded(),clearInterval(r)),t+=1}).bind(this),50)}function o(t){var r=n(t,this.assetsPath,this.path),i=createNS("image");isSafari?this.testImageLoaded(i):i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",(function(){o.img=e,this._imageLoaded()}).bind(this),!1),i.setAttributeNS("http://www.w3.org/1999/xlink","href",r),this._elementHelper.append?this._elementHelper.append(i):this._elementHelper.appendChild(i);var o={img:i,assetData:t};return o}function s(t){var r=n(t,this.assetsPath,this.path),i=createTag("img");i.crossOrigin="anonymous",i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",(function(){o.img=e,this._imageLoaded()}).bind(this),!1),i.src=r;var o={img:i,assetData:t};return o}function a(e){var t={assetData:e},r=n(e,this.assetsPath,this.path);return dataManager.loadData(r,(function(e){t.img=e,this._footageLoaded()}).bind(this),(function(){t.img={},this._footageLoaded()}).bind(this)),t}function l(e,t){this.imagesLoadedCb=t;var r,n=e.length;for(r=0;rthis.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t,r,n=this.animationData.layers,i=n.length,o=e.layers,s=o.length;for(r=0;rthis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){(!e||this.name===e)&&!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||!1!==this.isPaused||(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,r=0;r=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(r=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&!0!==this.loop)?(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(r=!0,t=0)):this.setCurrentRawFrameValue(t),r&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFramet&&(r=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,-1!==r&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),"object"===_typeof$4(e[0])){var r,n=e.length;for(r=0;r=0;r-=1)t[r].animation.destroy(e)}function C(e,t,r){var n,i=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),o=i.length;for(n=0;n0?r=l:t=l;while(Math.abs(a)>o&&++u=i?g(e,c,t,r):0===h?c:m(e,o,o+l,t,r)}},e}(),pooling=function(){return{double:function(e){return e.concat(createSizedArray(e.length))}}}(),poolFactory=function(){return function(e,t,r){var n=0,i=e,o=createSizedArray(i);return{newElement:function(){var e;return n?(n-=1,e=o[n]):e=t(),e},release:function(e){n===i&&(o=pooling.double(o),i*=2),r&&r(e),o[n]=e,n+=1}}}}(),bezierLengthPool=function(){return poolFactory(8,function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}})}(),segmentsLengthPool=function(){return poolFactory(8,function(){return{lengths:[],totalLength:0}},function(e){var t,r=e.lengths.length;for(t=0;t-.001&&s<.001}function r(r,n,i,o,s,a,l,u,c){if(0===i&&0===a&&0===c)return t(r,n,o,s,l,u);var h,d=e.sqrt(e.pow(o-r,2)+e.pow(s-n,2)+e.pow(a-i,2)),f=e.sqrt(e.pow(l-r,2)+e.pow(u-n,2)+e.pow(c-i,2)),p=e.sqrt(e.pow(l-o,2)+e.pow(u-s,2)+e.pow(c-a,2));return(h=d>f?d>p?d-f-p:p-f-d:p>f?p-f-d:f-d-p)>-.0001&&h<1e-4}var n=function(){return function(e,t,r,n){var i,o,s,a,l,u,c=getDefaultCurveSegments(),h=0,d=[],f=[],p=bezierLengthPool.newElement();for(i=0,s=r.length;is?-1:1,u=!0;u;)if(n[o]<=s&&n[o+1]>s?(a=(s-n[o])/(n[o+1]-n[o]),u=!1):o+=l,o<0||o>=i-1){if(o===i-1)return r[o];u=!1}return r[o]+(r[o+1]-r[o])*a}function u(t,r,n,i,o,s){var a=l(o,s),u=1-a;return[e.round((u*u*u*t[0]+(a*u*u+u*a*u+u*u*a)*n[0]+(a*a*u+u*a*a+a*u*a)*i[0]+a*a*a*r[0])*1e3)/1e3,e.round((u*u*u*t[1]+(a*u*u+u*a*u+u*u*a)*n[1]+(a*a*u+u*a*a+a*u*a)*i[1]+a*a*a*r[1])*1e3)/1e3]}var c=createTypedArray("float32",8);return{getSegmentsLength:i,getNewSegment:function(t,r,n,i,o,s,a){o<0?o=0:o>1&&(o=1);var u,h=l(o,a),d=l(s=s>1?1:s,a),f=t.length,p=1-h,m=1-d,g=p*p*p,v=h*p*p*3,y=h*h*p*3,E=h*h*h,_=p*p*m,b=h*p*m+p*h*m+p*p*d,A=h*h*m+p*h*d+h*p*d,T=h*h*d,C=p*m*m,S=h*m*m+p*d*m+p*m*d,w=h*d*m+p*d*d+h*m*d,x=h*d*d,R=m*m*m,k=d*m*m+m*d*m+m*m*d,L=d*d*m+m*d*d+d*m*d,I=d*d*d;for(u=0;u=y.t-a){v.h&&(v=y),l=0;break}if(y.t-a>e){l=u;break}u=d||e=d?p.points.length-1:0;for(_=0,b=p.points[m].point.length;_=k&&R=d?(g[0]=w[0],g[1]=w[1],g[2]=w[2]):e<=f?(g[0]=v.s[0],g[1]=v.s[1],g[2]=v.s[2]):quaternionToEuler(g,slerp(createQuaternion(v.s),createQuaternion(w),(e-f)/(d-f)));else for(u=0;u=d?A=1:e1e-6?(o=Math.sin(n=Math.acos(i)),s=Math.sin((1-r)*n)/o,a=Math.sin(r*n)/o):(s=1-r,a=r),l[0]=s*u+a*f,l[1]=s*c+a*p,l[2]=s*h+a*m,l[3]=s*d+a*g,l}function quaternionToEuler(e,t){var r=t[0],n=t[1],i=t[2],o=t[3],s=Math.atan2(2*n*o-2*r*i,1-2*n*n-2*i*i),a=Math.asin(2*r*n+2*i*o),l=Math.atan2(2*r*o-2*n*i,1-2*r*r-2*i*i);e[0]=s/degToRads,e[1]=a/degToRads,e[2]=l/degToRads}function createQuaternion(e){var t=e[0]*degToRads,r=e[1]*degToRads,n=e[2]*degToRads,i=Math.cos(t/2),o=Math.cos(r/2),s=Math.cos(n/2),a=Math.sin(t/2),l=Math.sin(r/2),u=Math.sin(n/2),c=i*o*s-a*l*u;return[a*l*s+i*o*u,a*o*s+i*l*u,i*l*s-a*o*u,c]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=r&&e>=r||this._caching.lastFrame=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var n=this.interpolateValue(e,this._caching);this.pv=n}return this._caching.lastFrame=e,this.pv}function setVValue(e){var t;if("unidimensional"===this.propType)t=e*this.mult,mathAbs(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var r=0,n=this.v.length;r1e-5&&(this.v[r]=t,this._mdf=!0),r+=1}function processEffectsSequence(){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 e,t=this.effectsSequence.length,r=this.kf?this.pv:this.data.k;for(e=0;e=this._maxLength&&this.doubleArrayLength(),r){case"v":o=this.v;break;case"i":o=this.i;break;case"o":o=this.o;break;default:o=[]}o[n]&&(!o[n]||i)||(o[n]=pointPool.newElement()),o[n][0]=e,o[n][1]=t},ShapePath.prototype.setTripleAt=function(e,t,r,n,i,o,s,a){this.setXYAt(e,t,"v",s,a),this.setXYAt(r,n,"o",s,a),this.setXYAt(i,o,"i",s,a)},ShapePath.prototype.reverse=function(){var e,t=new ShapePath;t.setPathData(this.c,this._length);var r=this.v,n=this.o,i=this.i,o=0;this.c&&(t.setTripleAt(r[0][0],r[0][1],i[0][0],i[0][1],n[0][0],n[0][1],0,!1),o=1);var s=this._length-1,a=this._length;for(e=o;e=i[i.length-1].t-this.offsetTime)o=i[i.length-1].s?i[i.length-1].s[0]:i[i.length-2].e[0],a=!0;else{for(var o,s,a,l,u,c,h,d,f,p,m,g,v,y=n,E=i.length-1,_=!0;_&&(p=i[y],!((m=i[y+1]).t-this.offsetTime>e));)y=m.t-this.offsetTime?d=1:en&&t>n)||(this._caching.lastIndex=i0||e>-.000001&&e<0?n(e*t)/t:e}function D(){var e=this.props;return"matrix("+O(e[0])+","+O(e[1])+","+O(e[4])+","+O(e[5])+","+O(e[12])+","+O(e[13])+")"}return function(){this.reset=i,this.rotate=o,this.rotateX=s,this.rotateY=a,this.rotateZ=l,this.skew=c,this.skewFromAxis=h,this.shear=u,this.scale=d,this.setTransform=f,this.translate=p,this.transform=m,this.multiply=g,this.applyToPoint=b,this.applyToX=A,this.applyToY=T,this.applyToZ=C,this.applyToPointArray=k,this.applyToTriplePoints=R,this.applyToPointStringified=L,this.toCSS=I,this.to2dCSS=D,this.clone=E,this.cloneFromProps=_,this.equals=y,this.inversePoints=x,this.inversePoint=w,this.getInverseMatrix=S,this._t=this.transform,this.isIdentity=v,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){return(_typeof$3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(e){setLocationHref(e)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return!0===standalone&&(e.animationData=JSON.parse(animationData)),animationManager.loadAnimation(e)}function setQuality(e){if("string"==typeof e)switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(e,t){"expressions"===e&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),r=0;r=1?a.push({s:e-1,e:t-1}):(a.push({s:e,e:1}),a.push({s:0,e:t-1}));var l=[],u=a.length;for(o=0;on+r||l.push([s.s*i<=n?0:(s.s*i-n)/r,s.e*i>=n+r?1:(s.e*i-n)/r]);return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(e){var t,r=e.length;for(t=0;t1?1+t:this.s.v<0?0+t:this.s.v+t)>(s=this.e.v>1?1+t:this.e.v<0?0+t:this.e.v+t)){var r=o;o=s,s=r}o=1e-4*Math.round(1e4*o),s=1e-4*Math.round(1e4*s),this.sValue=o,this.eValue=s}else o=this.sValue,s=this.eValue;var n=this.shapes.length,i=0;if(s===o)for(l=0;l=0;l-=1)if((p=this.shapes[l]).shape._mdf){for((m=p.localShapeCollection).releaseShapes(),2===this.m&&n>1?(g=this.calculateShapeEdges(o,s,p.totalShapeLength,_,i),_+=p.totalShapeLength):g=[[y,E]],c=g.length,u=0;u=1?v.push({s:p.totalShapeLength*(y-1),e:p.totalShapeLength*(E-1)}):(v.push({s:p.totalShapeLength*y,e:p.totalShapeLength}),v.push({s:0,e:p.totalShapeLength*(E-1)}));var b=this.addShapes(p,v[0]);if(v[0].s!==v[0].e){if(v.length>1){if(p.shape.paths.shapes[p.shape.paths._length-1].c){var A=b.pop();this.addPaths(b,m),b=this.addShapes(p,v[1],A)}else this.addPaths(b,m),b=this.addShapes(p,v[1])}this.addPaths(b,m)}}p.shape.paths=m}}},TrimModifier.prototype.addPaths=function(e,t){var r,n=e.length;for(r=0;rt.e){r.c=!1;break}else t.s<=p&&t.e>=p+s.addedLength?(this.addSegment(d[n].v[i-1],d[n].o[i-1],d[n].i[i],d[n].v[i],r,a,g),g=!1):(u=bez.getNewSegment(d[n].v[i-1],d[n].v[i],d[n].o[i-1],d[n].i[i],(t.s-p)/s.addedLength,(t.e-p)/s.addedLength,l[i-1]),this.addSegmentFromArray(u,r,a,g),g=!1,r.c=!1),p+=s.addedLength,a+=1;if(d[n].c&&l.length){if(s=l[i-1],p<=t.e){var v=l[i-1].addedLength;t.s<=p&&t.e>=p+v?(this.addSegment(d[n].v[i-1],d[n].o[i-1],d[n].i[0],d[n].v[0],r,a,g),g=!1):(u=bez.getNewSegment(d[n].v[i-1],d[n].v[0],d[n].o[i-1],d[n].i[0],(t.s-p)/v,(t.e-p)/v,l[i-1]),this.addSegmentFromArray(u,r,a,g),g=!1,r.c=!1)}else r.c=!1;p+=s.addedLength,a+=1}if(r._length&&(r.setXYAt(r.v[c][0],r.v[c][1],"i",c),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),p>t.e)break;n=this.p.keyframes[this.p.keyframes.length-1].t?(n=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/r,0),i=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/r,0)):(n=this.p.pv,i=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/r,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){n=[],i=[];var n,i,o=this.px,s=this.py;o._caching.lastFrame+o.offsetTime<=o.keyframes[0].t?(n[0]=o.getValueAtTime((o.keyframes[0].t+.01)/r,0),n[1]=s.getValueAtTime((s.keyframes[0].t+.01)/r,0),i[0]=o.getValueAtTime(o.keyframes[0].t/r,0),i[1]=s.getValueAtTime(s.keyframes[0].t/r,0)):o._caching.lastFrame+o.offsetTime>=o.keyframes[o.keyframes.length-1].t?(n[0]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/r,0),n[1]=s.getValueAtTime(s.keyframes[s.keyframes.length-1].t/r,0),i[0]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/r,0),i[1]=s.getValueAtTime((s.keyframes[s.keyframes.length-1].t-.01)/r,0)):(n=[o.pv,s.pv],i[0]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/r,o.offsetTime),i[1]=s.getValueAtTime((s._caching.lastFrame+s.offsetTime-.01)/r,s.offsetTime))}else n=i=e;this.v.rotate(-Math.atan2(n[1]-i[1],n[0]-i[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function n(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}}function i(){}function o(e){this._addDynamicProperty(e),this.elem.addDynamicProperty(e),this._isDirty=!0}function s(e,t,r){if(this.elem=e,this.frameId=-1,this.propType="transform",this.data=t,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(r||e),t.p&&t.p.s?(this.px=PropertyFactory.getProp(e,t.p.x,0,0,this),this.py=PropertyFactory.getProp(e,t.p.y,0,0,this),t.p.z&&(this.pz=PropertyFactory.getProp(e,t.p.z,0,0,this))):this.p=PropertyFactory.getProp(e,t.p||{k:[0,0,0]},1,0,this),t.rx){if(this.rx=PropertyFactory.getProp(e,t.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(e,t.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(e,t.rz,0,degToRads,this),t.or.k[0].ti){var n,i=t.or.k.length;for(n=0;n=Math.abs(e)}function lerp(e,t,r){return e*(1-r)+t*r}function lerpPoint(e,t,r){return[lerp(e[0],t[0],r),lerp(e[1],t[1],r)]}function quadRoots(e,t,r){if(0===e)return[];var n=t*t-4*e*r;if(n<0)return[];var i=-t/(2*e);if(0===n)return[i];var o=Math.sqrt(n)/(2*e);return[i-o,i+o]}function polynomialCoefficients(e,t,r,n){return[-e+3*t-3*r+n,3*e-6*t+3*r,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,r,n,i){i&&pointEqual(e,t)&&(t=lerpPoint(e,n,1/3)),i&&pointEqual(r,n)&&(r=lerpPoint(e,n,2/3));var o=polynomialCoefficients(e[0],t[0],r[0],n[0]),s=polynomialCoefficients(e[1],t[1],r[1],n[1]);this.a=[o[0],s[0]],this.b=[o[1],s[1]],this.c=[o[2],s[2]],this.d=[o[3],s[3]],this.points=[e,t,r,n]}function extrema(e,t){var r=e.points[0][t],n=e.points[e.points.length-1][t];if(r>n){var i=n;n=r,r=i}for(var o=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),s=0;s0&&o[s]<1){var a=e.point(o[s])[t];an&&(n=a)}return{min:r,max:n}}function intersectData(e,t,r){var n=e.boundingBox();return{cx:n.cx,cy:n.cy,width:n.width,height:n.height,bez:e,t:(t+r)/2,t1:t,t2:r}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return 2*Math.abs(e.cx-t.cx)=o||e.width<=n&&e.height<=n&&t.width<=n&&t.height<=n){i.push([e.t,t.t]);return}var s=splitData(e),a=splitData(t);intersectsImpl(s[0],a[0],r+1,n,i,o),intersectsImpl(s[0],a[1],r+1,n,i,o),intersectsImpl(s[1],a[0],r+1,n,i,o),intersectsImpl(s[1],a[1],r+1,n,i,o)}}function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,r,n){var i=[e[0],e[1],1],o=[t[0],t[1],1],s=[r[0],r[1],1],a=[n[0],n[1],1],l=crossProduct(crossProduct(i,o),crossProduct(s,a));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(e,t,r){return[e[0]+Math.cos(t)*r,e[1]-Math.sin(t)*r]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}function setPoint(e,t,r,n,i,o,s){var a=r-Math.PI/2,l=r+Math.PI/2,u=t[0]+Math.cos(r)*n*i,c=t[1]-Math.sin(r)*n*i;e.setTripleAt(u,c,u+Math.cos(a)*o,c-Math.sin(a)*o,u+Math.cos(l)*s,c-Math.sin(l)*s,e.length())}function getPerpendicularVector(e,t){var r=[t[0]-e[0],t[1]-e[1]],n=-(.5*Math.PI);return[Math.cos(n)*r[0]-Math.sin(n)*r[1],Math.sin(n)*r[0]+Math.cos(n)*r[1]]}function getProjectingAngle(e,t){var r=0===t?e.length()-1:t-1,n=(t+1)%e.length(),i=getPerpendicularVector(e.v[r],e.v[n]);return Math.atan2(0,1)-Math.atan2(i[1],i[0])}function zigZagCorner(e,t,r,n,i,o,s){var a=getProjectingAngle(t,r),l=t.v[r%t._length],u=t.v[0===r?t._length-1:r-1],c=t.v[(r+1)%t._length],h=2===o?Math.sqrt(Math.pow(l[0]-u[0],2)+Math.pow(l[1]-u[1],2)):0,d=2===o?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0;setPoint(e,t.v[r%t._length],a,s,n,d/((i+1)*2),h/((i+1)*2),o)}function zigZagSegment(e,t,r,n,i,o){for(var s=0;s1&&t.length>1&&(i=getIntersection(e[0],t[t.length-1])))?[[e[0].split(i[0])[0]],[t[t.length-1].split(i[1])[1]]]:[r,n]}function pruneIntersections(e){for(var t,r=1;r1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var r,n,i,o,s=e.inflectionPoints();if(0===s.length)return[offsetSegment(e,t)];if(1===s.length||floatEqual(s[1],1))return r=(i=e.split(s[0]))[0],n=i[1],[offsetSegment(r,t),offsetSegment(n,t)];r=(i=e.split(s[0]))[0];var a=(s[1]-s[0])/(1-s[0]);return o=(i=i[1].split(a))[0],n=i[1],[offsetSegment(r,t),offsetSegment(o,t),offsetSegment(n,t)]}function OffsetPathModifier(){}function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],r="normal",n="normal",i=t.length,o=0;o0;)r-=1,this._elements.unshift(t[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,r=e.length;for(t=0;t0?Math.floor(p):Math.ceil(p),v=this.pMatrix.props,y=this.rMatrix.props,E=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var _=0;if(p>0){for(;_g;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),_-=1;m&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-m,!0),_-=m)}for(i=1===this.data.m?0:this._currentCopies-1,o=1===this.data.m?1:-1,s=this._currentCopies;s;){if(u=(n=(r=this.elemsData[i].it)[r.length-1].transform.mProps.v.props).length,r[r.length-1].transform.mProps._mdf=!0,r[r.length-1].transform.op._mdf=!0,r[r.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),0!==_){for((0!==i&&1===o||i!==this._currentCopies-1&&-1===o)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),this.matrix.transform(E[0],E[1],E[2],E[3],E[4],E[5],E[6],E[7],E[8],E[9],E[10],E[11],E[12],E[13],E[14],E[15]),this.matrix.transform(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15]),l=0;l0&&n<1?[t]:[]:[t-n,t+n].filter(function(e){return e>0&&e<1})},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var t=lerpPoint(this.points[0],this.points[1],e),r=lerpPoint(this.points[1],this.points[2],e),n=lerpPoint(this.points[2],this.points[3],e),i=lerpPoint(t,r,e),o=lerpPoint(r,n,e),s=lerpPoint(i,o,e);return[new PolynomialBezier(this.points[0],t,i,s,!0),new PolynomialBezier(s,o,n,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}},PolynomialBezier.prototype.intersections=function(e,t,r){void 0===t&&(t=2),void 0===r&&(r=7);var n=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,n,r),n},PolynomialBezier.shapeSegment=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[r],e.v[r],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[r],e.i[r],e.o[t],e.v[t],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(e,t,r,n){var i=e._length,o=shapePool.newElement();if(o.c=e.c,e.c||(i-=1),0===i)return o;var s=-1,a=PolynomialBezier.shapeSegment(e,0);zigZagCorner(o,e,0,t,r,n,s);for(var l=0;l=0;i-=1)s=PolynomialBezier.shapeSegmentInverted(e,i),u.push(offsetSegmentSplit(s,t));u=pruneIntersections(u);var c=null,h=null;for(i=0;i0&&(l=!1),l){var u=createTag("style");u.setAttribute("f-forigin",r[o].fOrigin),u.setAttribute("f-origin",r[o].origin),u.setAttribute("f-family",r[o].fFamily),u.type="text/css",u.innerText="@font-face {font-family: "+r[o].fFamily+"; font-style: normal; src: url('"+r[o].fPath+"');}",t.appendChild(u)}}else if("g"===r[o].fOrigin||1===r[o].origin){for(a=0,s=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]');a=55296&&r<=56319){var n=e.charCodeAt(1);n>=56320&&n<=57343&&(t=(r-55296)*1024+n-56320+65536)}return t}function A(e,t){var r=e.toString(16)+t.toString(16);return -1!==h.indexOf(r)}function T(e){return e===l}function C(e){return e===a}function S(e){var t=b(e);return t>=u&&t<=c}function w(e){return S(e.substr(0,2))&&S(e.substr(2,2))}function x(e){return -1!==r.indexOf(e)}function R(e,t){var r=b(e.substr(t,2));if(r!==n)return!1;var a=0;for(t+=2;a<5;){if((r=b(e.substr(t,2)))s)return!1;a+=1,t+=2}return b(e.substr(t,2))===i}function k(){this.isLoaded=!0}var L=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};L.isModifier=A,L.isZeroWidthJoiner=T,L.isFlagEmoji=w,L.isRegionalCode=S,L.isCombinedCharacter=x,L.isRegionalFlag=R,L.isVariationSelector=C,L.BLACK_FLAG_CODE_POINT=n;var I={addChars:v,addFonts:g,getCharData:y,getFontByName:_,measureText:E,checkLoadedFonts:p,setIsLoaded:k};return L.prototype=I,L}();function SlotManager(e){this.animationData=e}function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(e){-1===this.renderableComponents.indexOf(e)&&this.renderableComponents.push(e)},removeRenderableComponent:function(e){-1!==this.renderableComponents.indexOf(e)&&this.renderableComponents.splice(this.renderableComponents.indexOf(e),1)},prepareRenderableFrame:function(e){this.checkLayerLimits(e)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(e){this.data.ip-this.data.st<=e&&this.data.op-this.data.st>e?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var e,t=this.renderableComponents.length;for(e=0;e.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(e){var t,r,n=this.layers.length;for(this.completeLayers=!0,t=n-1;t>=0;t-=1)!this.elements[t]&&(r=this.layers[t]).ip-r.st<=e-this.layers[t].st&&r.op-r.st>e-this.layers[t].st&&this.buildItem(t),this.completeLayers=!!this.elements[t]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:default:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e)}},BaseRenderer.prototype.createCamera=function(){throw Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e0&&(this.maskElement.setAttribute("id",l),this.element.maskedElement.setAttribute(c,"url("+getLocationHref()+"#"+l+")"),n.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var e=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:e,localMat:e,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var e,t=this.finalTransform.mat,r=0,n=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;r1&&(o+=" C"+t.o[n-1][0]+","+t.o[n-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),r.lastPath!==o){var s="";r.elem&&(t.c&&(s=e.inv?this.solidPath+o:o),r.elem.setAttribute("d",s)),r.lastPath=o}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={};function t(e,t){var r=createNS("filter");return r.setAttribute("id",e),!0!==t&&(r.setAttribute("filterUnits","objectBoundingBox"),r.setAttribute("x","0%"),r.setAttribute("y","0%"),r.setAttribute("width","100%"),r.setAttribute("height","100%")),r}function r(){var e=createNS("feColorMatrix");return e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),e}return e.createFilter=t,e.createAlphaToLuminanceFilter=r,e}(),featureSupport=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var t,r,n="SourceGraphic",i=e.data.ef?e.data.ef.length:0,o=createElementID(),s=filtersFactory.createFilter(o,!0),a=0;for(t=0,this.filters=[];t=0&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);e-=1);}},searchProcessedElement:function(e){for(var t=this.processedElements,r=0,n=t.length;r.01)return!1;r+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e0;)l=n.transformers[p].mProps._mdf||l,f-=1,p-=1;if(l)for(f=g-n.styles[c].lvl,p=n.transformers.length-1;f>0;)d.multiply(n.transformers[p].mProps.v),f-=1,p-=1}else d=e;if(s=(h=n.sh.paths)._length,l){for(o=0,a="";o=1?y=.99:y<=-1&&(y=-.99);var E=a*y,_=Math.cos(v+t.a.v)*E+c[0],b=Math.sin(v+t.a.v)*E+c[1];l.setAttribute("fx",_),l.setAttribute("fy",b),u&&!t.g._collapsable&&(t.of.setAttribute("fx",_),t.of.setAttribute("fy",b))}}function l(e,t,r){var n=t.style,i=t.d;i&&(i._mdf||r)&&i.dashStr&&(n.pElem.setAttribute("stroke-dasharray",i.dashStr),n.pElem.setAttribute("stroke-dashoffset",i.dashoffset[0])),t.c&&(t.c._mdf||r)&&n.pElem.setAttribute("stroke","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r)&&n.pElem.setAttribute("stroke-opacity",t.o.v),(t.w._mdf||r)&&(n.pElem.setAttribute("stroke-width",t.w.v),n.msElem&&n.msElem.setAttribute("stroke-width",t.w.v))}return{createRenderFunction:function(e){switch(e.ty){case"fl":return o;case"gf":return a;case"gs":return s;case"st":return l;case"sh":case"el":case"rc":case"sr":return i;case"tr":return r;case"no":return n;default:return null}}}}();function SVGShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,r),this.prevViewData=[]}function LetterProps(e,t,r,n,i,o){this.o=e,this.sw=t,this.sc=r,this.fc=n,this.m=i,this.p=o,this._mdf={o:!0,sw:!!t,sc:!!r,fc:!!n,m:!0,p:!0}}function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t,r,n,i=this.shapes.length,o=this.stylesList.length,s=[],a=!1;for(r=0;r1&&a&&this.setShapesAsAnimated(s)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,r=e.length;for(t=0;t=0;a-=1){if((d=this.searchProcessedElement(e[a]))?t[a]=r[d-1]:e[a]._render=s,"fl"===e[a].ty||"st"===e[a].ty||"gf"===e[a].ty||"gs"===e[a].ty||"no"===e[a].ty)d?t[a].style.closed=!1:t[a]=this.createStyleElement(e[a],i),e[a]._render&&t[a].style.pElem.parentNode!==n&&n.appendChild(t[a].style.pElem),m.push(t[a].style);else if("gr"===e[a].ty){if(d)for(l=0,u=t[a].it.length;l1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||e){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t,r=this.currentData,n=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var i=this.effectsSequence.length,o=e||this.data.d.k[this.keysIndex].s;for(t=0;tt);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t,r,n=[],i=0,o=e.length,s=!1,a=!1,l="";i=55296&&t<=56319?FontManager.isRegionalFlag(e,i)?l=e.substr(i,14):(r=e.charCodeAt(i+1))>=56320&&r<=57343&&(FontManager.isModifier(t,r)?(l=e.substr(i,2),s=!0):l=FontManager.isFlagEmoji(e.substr(i,4))?e.substr(i,4):e.substr(i,2)):t>56319?(r=e.charCodeAt(i+1),FontManager.isVariationSelector(t)&&(s=!0)):FontManager.isZeroWidthJoiner(t)&&(s=!0,a=!0),s?(n[n.length-1]+=l,s=!1):n.push(l),i+=l.length;return n},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t=this.elem.globalData.fontManager,r=this.data,n=[],i=0,o=r.m.g,s=0,a=0,l=0,u=[],c=0,h=0,d=t.getFontByName(e.f),f=0,p=getFontProperties(d);e.fWeight=p.weight,e.fStyle=p.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),v=e.finalText.length,e.finalLineHeight=e.lh;var m=e.tr/1e3*e.finalSize;if(e.sz)for(var g,v,y,E,_,b,A,T,C,S,w=!0,x=e.sz[0],R=e.sz[1];w;){S=this.buildFinalText(e.t),C=0,c=0,v=S.length,m=e.tr/1e3*e.finalSize;var k=-1;for(g=0;gx&&" "!==S[g]?(-1===k?v+=1:g=k,C+=e.finalLineHeight||1.2*e.finalSize,S.splice(g,k===g?1:0,"\r"),k=-1,c=0):c+=f+m;C+=d.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&Rh?c:h,c=-2*m,E="",y=!0,l+=1):E=D,t.chars?(A=t.getCharData(D,d.fStyle,t.getFontByName(e.f).fFamily),f=y?0:A.w*e.finalSize/100):f=t.measureText(E,e.f,e.finalSize)," "===D?L+=f+m:(c+=f+m+L,L=0),n.push({l:f,an:f,add:s,n:y,anIndexes:[],val:E,line:l,animatorJustifyOffset:0}),2==o){if(s+=f,""===E||" "===E||g===v-1){for((""===E||" "===E)&&(s-=f);a<=g;)n[a].an=s,n[a].ind=i,n[a].extra=f,a+=1;i+=1,s=0}}else if(3==o){if(s+=f,""===E||g===v-1){for(""===E&&(s-=f);a<=g;)n[a].an=s,n[a].ind=i,n[a].extra=f,a+=1;s=0,i+=1}}else n[i].ind=i,n[i].extra=0,i+=1;if(e.l=n,h=c>h?c:h,u.push(c),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=h,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=u;var I=r.a;b=I.length;var O=[];for(_=0;_0?i=this.ne.v/100:o=-this.ne.v/100,this.xe.v>0?s=1-this.xe.v/100:a=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(i,o,s,a).get,u=0,c=this.finalS,h=this.finalE,d=this.data.sh;if(2===d)u=l(u=h===c?n>=h?1:0:e(0,t(.5/(h-c)+(n-c)/(h-c),1)));else if(3===d)u=l(u=h===c?n>=h?0:1:1-e(0,t(.5/(h-c)+(n-c)/(h-c),1)));else if(4===d)h===c?u=0:(u=e(0,t(.5/(h-c)+(n-c)/(h-c),1)))<.5?u*=2:u=1-2*(u-.5),u=l(u);else if(5===d){if(h===c)u=0;else{var f=h-c,p=-f/2+(n=t(e(0,n+.5-c),h-c)),m=f/2;u=Math.sqrt(1-p*p/(m*m))}u=l(u)}else 6===d?u=l(u=h===c?0:(1+Math.cos(Math.PI+2*Math.PI*(n=t(e(0,n+.5-c),h-c))/(h-c)))/2):(n>=r(c)&&(u=n-c<0?e(0,t(t(h,1)-(c-n),1)):e(0,t(h-n,1))),u=l(u));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var v=.5-.5*g;u1&&(u=1)}return u*this.a.v},getValue:function(e){this.iterateDynamicProperties(),this._mdf=e||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,e&&2===this.data.r&&(this.e.v=this._currentTextLength);var t=2===this.data.r?1:100/this.data.totalChars,r=this.o.v/t,n=this.s.v/t+r,i=this.e.v/t+r;if(n>i){var o=n;n=i,i=o}this.finalS=n,this.finalE=i}},extendPrototype([DynamicPropertyContainer],n),{getTextSelectorProp:function(e,t,r){return new n(e,t,r)}}}();function TextAnimatorDataProperty(e,t,r){var n={propType:!1},i=PropertyFactory.getProp,o=t.a;this.a={r:o.r?i(e,o.r,0,degToRads,r):n,rx:o.rx?i(e,o.rx,0,degToRads,r):n,ry:o.ry?i(e,o.ry,0,degToRads,r):n,sk:o.sk?i(e,o.sk,0,degToRads,r):n,sa:o.sa?i(e,o.sa,0,degToRads,r):n,s:o.s?i(e,o.s,1,.01,r):n,a:o.a?i(e,o.a,1,0,r):n,o:o.o?i(e,o.o,0,.01,r):n,p:o.p?i(e,o.p,1,0,r):n,sw:o.sw?i(e,o.sw,0,0,r):n,sc:o.sc?i(e,o.sc,1,0,r):n,fc:o.fc?i(e,o.fc,1,0,r):n,fh:o.fh?i(e,o.fh,0,0,r):n,fs:o.fs?i(e,o.fs,0,.01,r):n,fb:o.fb?i(e,o.fb,0,.01,r):n,t:o.t?i(e,o.t,0,0,r):n},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,r),this.s.t=t.s.t}function TextAnimatorProperty(e,t,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var e,t,r=this._textData.a.length,n=PropertyFactory.getProp;for(e=0;e=O+el||!F?(H=(O+el-N)/D.partialLength,u=U.point[0]+(D.point[0]-U.point[0])*H,c=U.point[1]+(D.point[1]-U.point[1])*H,T.translate(-_[0]*w[k].an*.005,-(.01*(_[1]*W))),P=!1):F&&(N+=D.partialLength,(M+=1)>=F.length&&(M=0,j[B+=1]?F=j[B].points:z.v.c?(M=0,F=j[B=0].points):(N-=D.partialLength,F=null)),F&&(U=D,K=(D=F[M]).partialLength));l=w[k].an/2-w[k].add,T.translate(-l,0,0)}else l=w[k].an/2-w[k].add,T.translate(-l,0,0),T.translate(-_[0]*w[k].an*.005,-_[1]*W*.01,0);for(i=0;im?this.textSpans[m].span:createNS(o?"g":"text"),f<=m){if(v.setAttribute("stroke-linecap","butt"),v.setAttribute("stroke-linejoin","round"),v.setAttribute("stroke-miterlimit","4"),this.textSpans[m].span=v,o){var p=createNS("g");v.appendChild(p),this.textSpans[m].childSpan=p}this.textSpans[m].span=v,this.layerElement.appendChild(v)}v.style.display="inherit"}if(s.reset(),l&&(i[m].n&&(u=-d,c+=e.yOffset+(h?1:0),h=!1),this.applyTextPropertiesToMatrix(e,s,i[m].line,u,c),u+=(i[m].l||0)+d),o){if(1===(y=this.globalData.fontManager.getCharData(e.finalText[m],t.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily)).t)E=new SVGCompElement(y.data,this.globalData,this);else{var m,g,v,y,E,_=emptyShapeData;y.data&&y.data.shapes&&(_=this.buildShapeData(y.data,e.finalSize)),E=new SVGShapeElement(_,this.globalData,this)}if(this.textSpans[m].glyph){var b=this.textSpans[m].glyph;this.textSpans[m].childSpan.removeChild(b.layerElement),b.destroy()}this.textSpans[m].glyph=E,E._debug=!0,E.prepareFrame(0),E.renderFrame(),this.textSpans[m].childSpan.appendChild(E.layerElement),1===y.t&&this.textSpans[m].childSpan.setAttribute("transform","scale("+e.finalSize/100+","+e.finalSize/100+")")}else l&&v.setAttribute("transform","translate("+s.props[12]+","+s.props[13]+")"),v.textContent=i[m].val,v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}l&&v&&v.setAttribute("d",a)}else{var A=this.textContainer,T="start";switch(e.j){case 1:T="end";break;case 2:T="middle";break;default:T="start"}A.setAttribute("text-anchor",T),A.setAttribute("letter-spacing",d);var C=this.buildTextContents(e.finalText);for(m=0,g=C.length,c=e.ps?e.ps[1]+e.ascent:0;m=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t=0;t-=1)(this.completeLayers||this.elements[t])&&(this.elements[t].prepareFrame(this.renderedFrame-this.layers[t].st),this.elements[t]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e=0;r-=1)e.finalTransform.multiply(e.transforms[r].transform.mProps.v);e._mdf=i},processSequences:function(e){var t,r=this.sequenceList.length;for(t=0;t=1){this.buffers=[];var e=this.globalData.canvasContext,t=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(t);var r=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(r),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var e=this.globalData;if(e.blendMode!==this.data.bm){e.blendMode=this.data.bm;var t=getBlendMode(this.data.bm);e.canvasContext.globalCompositeOperation=t}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(e){e.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var e=this.buffers[0].getContext("2d");this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var e=this.buffers[1],t=e.getContext("2d");if(this.clearCanvas(t),t.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var r=assetLoader.getLumaCanvas(this.canvasContext.canvas);r.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(r,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(e,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(e){if(!this.hidden&&!this.data.hd&&(1!==this.data.td||e)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var t=0===this.data.ty;this.prepareLayer(),this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(t),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var r={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:!0===e.hd},n={};if("fl"===e.ty||"st"===e.ty?(n.c=PropertyFactory.getProp(this,e.c,1,255,this),n.c.k||(r.co="rgb("+bmFloor(n.c.v[0])+","+bmFloor(n.c.v[1])+","+bmFloor(n.c.v[2])+")")):("gf"===e.ty||"gs"===e.ty)&&(n.s=PropertyFactory.getProp(this,e.s,1,null,this),n.e=PropertyFactory.getProp(this,e.e,1,null,this),n.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),n.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),n.g=new GradientProperty(this,e.g,this)),n.o=PropertyFactory.getProp(this,e.o,0,.01,this),"st"===e.ty||"gs"===e.ty){if(r.lc=lineCapEnum[e.lc||2],r.lj=lineJoinEnum[e.lj||2],1==e.lj&&(r.ml=e.ml),n.w=PropertyFactory.getProp(this,e.w,0,null,this),n.w.k||(r.wi=n.w.v),e.d){var i=new DashProperty(this,e.d,"canvas",this);n.d=i,n.d.k||(r.da=n.d.dashArray,r.do=n.d.dashoffset[0])}}else r.r=2===e.r?"evenodd":"nonzero";return this.stylesList.push(r),n.style=r,n},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(e){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}}},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,t=this.itemsData.length;for(e=0;e=0;o-=1){if((l=this.searchProcessedElement(e[o]))?t[o]=r[l-1]:e[o]._shouldRender=n,"fl"===e[o].ty||"st"===e[o].ty||"gf"===e[o].ty||"gs"===e[o].ty)l?t[o].style.closed=!1:t[o]=this.createStyleElement(e[o],p),d.push(t[o].style);else if("gr"===e[o].ty){if(l)for(s=0,a=t[o].it.length;s=0;i-=1)"tr"===t[i].ty?(o=r[i].transform,this.renderShapeTransform(e,o)):"sh"===t[i].ty||"el"===t[i].ty||"rc"===t[i].ty||"sr"===t[i].ty?this.renderPath(t[i],r[i]):"fl"===t[i].ty?this.renderFill(t[i],r[i],o):"st"===t[i].ty?this.renderStroke(t[i],r[i],o):"gf"===t[i].ty||"gs"===t[i].ty?this.renderGradientFill(t[i],r[i],o):"gr"===t[i].ty?this.renderShape(o,t[i].it,r[i].it):t[i].ty;n&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var r,n,i,o=e.trNodes,s=t.paths,a=s._length;o.length=0;var l=e.transforms.finalTransform;for(i=0;i=1?h=.99:h<=-1&&(h=-.99);var d=u*h,f=Math.cos(c+t.a.v)*d+a[0],p=Math.sin(c+t.a.v)*d+a[1];i=s.createRadialGradient(f,p,0,a[0],a[1],u)}var m=e.g.p,g=t.g.c,v=1;for(o=0;oa&&"xMidYMid slice"===l||si&&"meet"===a||oi&&"slice"===a)?this.transformCanvas.tx=(r-this.transformCanvas.w*(n/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===u&&(oi&&"slice"===a)?this.transformCanvas.tx=(r-this.transformCanvas.w*(n/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,"YMid"===c&&(o>i&&"meet"===a||oi&&"meet"===a||o=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if((this.renderedFrame!==e||!0!==this.renderConfig.clearCanvas||t)&&!this.destroyed&&-1!==e){this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var r,n=this.layers.length;for(this.completeLayers||this.checkLayers(e),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(e-this.layers[r].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){var r=this.createItem(this.layers[e],this,this.globalData);t[e]=r,r.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},CVContextData.prototype.duplicate=function(){var e=2*this._length,t=0;for(t=this._length;t=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var e;for(e=this.layers.length-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var e=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var t=this.finalTransform.mat.toCSS();e.transform=t,e.webkitTransform=t}this.finalTransform._opMdf&&(e.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?((e=createNS("rect")).setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((e=createTag("div")).style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var r,n=e.length;for(r=0;r0&&a<1&&h[d].push(this.calculateF(a,e,t,r,n,d)):(l=o*o-4*s*i)>=0&&((u=(-o+bmSqrt(l))/(2*i))>0&&u<1&&h[d].push(this.calculateF(u,e,t,r,n,d)),(c=(-o-bmSqrt(l))/(2*i))>0&&c<1&&h[d].push(this.calculateF(c,e,t,r,n,d))));this.shapeBoundingBox.left=bmMin.apply(null,h[0]),this.shapeBoundingBox.top=bmMin.apply(null,h[1]),this.shapeBoundingBox.right=bmMax.apply(null,h[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,h[1])},HShapeElement.prototype.calculateF=function(e,t,r,n,i,o){return bmPow(1-e,3)*t[o]+3*bmPow(1-e,2)*e*r[o]+3*(1-e)*bmPow(e,2)*n[o]+bmPow(e,3)*i[o]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var r,n=e.length;for(r=0;rr&&(r=i)}r*=e.mult}else r=e.v*e.mult;t.x-=r,t.xMax+=r,t.y-=r,t.yMax+=r},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax=0;r-=1){var t=this.hierarchy[r].finalTransform.mProp;this.mat.translate(-t.p.v[0],-t.p.v[1],t.p.v[2]),this.mat.rotateX(-t.or.v[0]).rotateY(-t.or.v[1]).rotateZ(t.or.v[2]),this.mat.rotateX(-t.rx.v).rotateY(-t.ry.v).rotateZ(t.rz.v),this.mat.scale(1/t.s.v[0],1/t.s.v[1],1/t.s.v[2]),this.mat.translate(t.a.v[0],t.a.v[1],t.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var r,n,i,o=Math.sqrt(Math.pow((i=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]])[0],2)+Math.pow(i[1],2)+Math.pow(i[2],2)),s=[i[0]/o,i[1]/o,i[2]/o],a=Math.sqrt(s[2]*s[2]+s[0]*s[0]),l=Math.atan2(s[1],a),u=Math.atan2(s[0],-s[2]);this.mat.rotateY(u).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var c=!this._prevMat.equals(this.mat);if((c||this.pe._mdf)&&this.comp.threeDElements){for(r=0,n=this.comp.threeDElements.length;r=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var r,n,i=createTag("div");styleDiv(i);var o=createTag("div");if(styleDiv(o),"3d"===t){(r=i.style).width=this.globalData.compSize.w+"px",r.height=this.globalData.compSize.h+"px";var s="50% 50%";r.webkitTransformOrigin=s,r.mozTransformOrigin=s,r.transformOrigin=s;var a="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(n=o.style).transform=a,n.webkitTransform=a}i.appendChild(o);var l={container:o,perspectiveElem:i,startPos:e,endPos:e,type:t};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var e,t,r=this.layers.length,n="";for(e=0;e=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var r=0,n=this.threeDElements.length;rs?(e=i/this.globalData.compSize.w,t=i/this.globalData.compSize.w,r=0,n=(o-this.globalData.compSize.h*(i/this.globalData.compSize.w))/2):(e=o/this.globalData.compSize.h,t=o/this.globalData.compSize.h,r=(i-this.globalData.compSize.w*(o/this.globalData.compSize.h))/2,n=0);var a=this.resizerElem.style;a.webkitTransform="matrix3d("+e+",0,0,0,0,"+t+",0,0,0,0,1,0,"+r+","+n+",0,1)",a.transform=a.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e,t=this.globalData.compSize.w,r=this.globalData.compSize.h,n=this.threeDElements.length;for(e=0;e=c;)e/=2,t/=2,r>>>=1;return(e+r)/t};return _.int32=function(){return 0|E.g(4)},_.quick=function(){return E.g(4)/4294967296},_.double=_,g(y(E.S),e),(n.pass||s||function(e,r,n,i){return(i&&(i.S&&p(i,E),e.state=function(){return p(E,{})}),n)?(t[a]=e,r):e})(_,d,"global"in n?n.global:this==t,n.state)}function f(e){var t,r=e.length,n=this,o=0,s=n.i=n.j=0,a=n.S=[];for(r||(e=[r++]);or){var n=r;r=t,t=n}return Math.min(Math.max(e,t),r)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if("number"==typeof e||e instanceof Number)return t=t||0,Math.abs(e-t);t||(t=helperLengthArray);var r,n=Math.min(e.length,t.length),i=0;for(r=0;r.5?u/(2-s-a):u/(s+a),s){case n:t=(i-o)/u+(i1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function hslToRgb(e){var t,r,n,i=e[0],o=e[1],s=e[2];if(0===o)t=s,n=s,r=s;else{var a=s<.5?s*(1+o):s+o-s*o,l=2*s-a;t=hue2rgb(l,a,i+1/3),r=hue2rgb(l,a,i),n=hue2rgb(l,a,i-1/3)}return[t,r,n,e[3]]}function linear(e,t,r,n,i){if((void 0===n||void 0===i)&&(n=t,i=r,t=0,r=1),r=r)return i;var a=r===t?0:(e-t)/(r-t);if(!n.length)return n+(i-n)*a;var l=n.length,u=createTypedArray("float32",l);for(o=0;o1){for(n=0;n1?t=1:t<0&&(t=0);var s=e(t);if($bm_isInstanceOfArray(i)){var a,l=i.length,u=createTypedArray("float32",l);for(a=0;adata.k[t].t&&edata.k[t+1].t-e?(r=t+2,n=data.k[t+1].t):(r=t+1,n=data.k[t].t);break}}-1===r&&(r=t+1,n=data.k[t].t)}}else r=0,n=0;var o={};return o.index=r,o.time=n/elem.comp.globalData.frameRate,o}function key(e){if(!data.k.length||"number"==typeof data.k[0])throw Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var t,r,n,i=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(r=0,n=i.length;ru.length-1)&&(t=u.length-1),n=c-(i=u[u.length-1-t].t)),"pingpong"===e){if(Math.floor((l-i)/n)%2!=0)return this.getValueAtTime((n-(l-i)%n+i)/this.comp.globalData.frameRate,0)}else if("offset"===e){var h=this.getValueAtTime(i/this.comp.globalData.frameRate,0),d=this.getValueAtTime(c/this.comp.globalData.frameRate,0),f=this.getValueAtTime(((l-i)%n+i)/this.comp.globalData.frameRate,0),p=Math.floor((l-i)/n);if(this.pv.length){for(o=0,s=(a=Array(h.length)).length;o=c)return this.pv;if(r?(n=t?Math.abs(this.elem.comp.globalData.frameRate*t):Math.max(0,this.elem.data.op-c),i=c+n):((!t||t>u.length-1)&&(t=u.length-1),n=(i=u[t].t)-c),"pingpong"===e){if(Math.floor((c-l)/n)%2==0)return this.getValueAtTime(((c-l)%n+c)/this.comp.globalData.frameRate,0)}else if("offset"===e){var h=this.getValueAtTime(c/this.comp.globalData.frameRate,0),d=this.getValueAtTime(i/this.comp.globalData.frameRate,0),f=this.getValueAtTime((n-(c-l)%n+c)/this.comp.globalData.frameRate,0),p=Math.floor((c-l)/n)+1;if(this.pv.length){for(o=0,s=(a=Array(h.length)).length;o1?(s-o)/(t-1):1,l=0,u=0;for(r=this.pv.length?createTypedArray("float32",this.pv.length):0;ls){var c=a,h=n.c&&a===l-1?0:a+1,d=(s-u)/o[a].addedLength;r=bez.getPointInSegment(n.v[c],n.v[h],n.o[c],n.i[h],d,o[a]);break}u+=o[a].addedLength,a+=1}return r||(r=n.c?[n.v[0][0],n.v[0][1]]:[n.v[n._length-1][0],n.v[n._length-1][1]]),r},vectorOnPath:function(e,t,r){1==e?e=this.v.c:0==e&&(e=.999);var n=this.pointOnPath(e,t),i=this.pointOnPath(e+.001,t),o=i[0]-n[0],s=i[1]-n[1],a=Math.sqrt(Math.pow(o,2)+Math.pow(s,2));return 0===a?[0,0]:"tangent"===r?[o/a,s/a]:[-s/a,o/a]},tangentOnPath:function(e,t){return this.vectorOnPath(e,t,"tangent")},normalOnPath:function(e,t){return this.vectorOnPath(e,t,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([c],l),extendPrototype([c],u),u.prototype.getValueAtTime=a,u.prototype.initiateExpression=ExpressionManager.initiateExpression;var h=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(e,t,r,n,i){var o=h(e,t,r,n,i);return o.propertyIndex=t.ix,o.lock=!1,3===r?expressionHelpers.searchExpressions(e,t.pt,o):4===r&&expressionHelpers.searchExpressions(e,t.ks,o),o.k&&e.addDynamicProperty(o),o}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function e(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(e,t){var r=this.calculateExpression(t);if(e.t!==r){var n={};return this.copyData(n,e),n.t=r.toString(),n.__complete=!1,n}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),t=this.searchExpressions();return this.kf=e||t,this.kf},TextProperty.prototype.searchExpressions=e}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function(e,t){var r,n,i=createNS("feMerge");for(i.setAttribute("result",e),n=0;n=c?p<0?n:i:n+f*Math.pow((o-e)/p,1/r),h[d]=s,d+=1,a+=256/(l-1);return h.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,r=this.filterManager.effectElements;this.feFuncRComposed&&(e||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(t=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(t=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(t=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(t=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(t=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v),this.feFuncA.setAttribute("tableValues",t))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*t[0]),Math.round(255*t[1]),Math.round(255*t[2])))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var r=this.filterManager.effectElements[3].p.v,n=(this.filterManager.effectElements[2].p.v-90)*degToRads,i=r*Math.cos(n),o=r*Math.sin(n);this.feOffset.setAttribute("dx",i),this.feOffset.setAttribute("dy",o)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,r){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}function SVGGaussianBlurEffect(e,t,r,n){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var i=createNS("feGaussianBlur");i.setAttribute("result",n),e.appendChild(i),this.feGaussianBlur=i}function TransformEffect(){}function SVGTransformEffect(e,t){this.init(t)}function CVTransformEffect(e){this.init(e)}return SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,r=_svgMatteSymbols.length;t{var n,i=function(){var e=String.fromCharCode,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",n={};function i(e,t){if(!n[e]){n[e]={};for(var r=0;r>>8,r[2*n+1]=s%256}return r},decompressFromUint8Array:function(t){if(null==t)return o.decompress(t);for(var r=Array(t.length/2),n=0,i=r.length;nc.charCodeAt(0)){for(n=0;n>=1}else{for(n=0,i=1;n>=1}0==--h&&(h=Math.pow(2,f),f++),delete a[c]}else for(n=0,i=s[c];n>=1;0==--h&&(h=Math.pow(2,f),f++),s[u]=d++,c=String(l)}if(""!==c){if(Object.prototype.hasOwnProperty.call(a,c)){if(256>c.charCodeAt(0)){for(n=0;n>=1}else{for(n=0,i=1;n>=1}0==--h&&(h=Math.pow(2,f),f++),delete a[c]}else for(n=0,i=s[c];n>=1;0==--h&&(h=Math.pow(2,f),f++)}for(n=0,i=2;n>=1;for(;;){if(m<<=1,g==t-1){p.push(r(m));break}g++}return p.join("")},decompress:function(e){return null==e?"":""==e?null:o._decompress(e.length,32768,function(t){return e.charCodeAt(t)})},_decompress:function(t,r,n){var i,o,s,a,l,u,c,h,d=[],f=4,p=4,m=3,g="",v=[],y={val:n(0),position:r,index:1};for(o=0;o<3;o+=1)d[o]=o;for(a=0,u=4,c=1;c!=u;)l=y.val&y.position,y.position>>=1,0==y.position&&(y.position=r,y.val=n(y.index++)),a|=(l>0?1:0)*c,c<<=1;switch(i=a){case 0:for(a=0,u=256,c=1;c!=u;)l=y.val&y.position,y.position>>=1,0==y.position&&(y.position=r,y.val=n(y.index++)),a|=(l>0?1:0)*c,c<<=1;h=e(a);break;case 1:for(a=0,u=65536,c=1;c!=u;)l=y.val&y.position,y.position>>=1,0==y.position&&(y.position=r,y.val=n(y.index++)),a|=(l>0?1:0)*c,c<<=1;h=e(a);break;case 2:return""}for(d[3]=h,s=h,v.push(h);;){if(y.index>t)return"";for(a=0,u=Math.pow(2,m),c=1;c!=u;)l=y.val&y.position,y.position>>=1,0==y.position&&(y.position=r,y.val=n(y.index++)),a|=(l>0?1:0)*c,c<<=1;switch(h=a){case 0:for(a=0,u=256,c=1;c!=u;)l=y.val&y.position,y.position>>=1,0==y.position&&(y.position=r,y.val=n(y.index++)),a|=(l>0?1:0)*c,c<<=1;d[p++]=e(a),h=p-1,f--;break;case 1:for(a=0,u=65536,c=1;c!=u;)l=y.val&y.position,y.position>>=1,0==y.position&&(y.position=r,y.val=n(y.index++)),a|=(l>0?1:0)*c,c<<=1;d[p++]=e(a),h=p-1,f--;break;case 2:return v.join("")}if(0==f&&(f=Math.pow(2,m),m++),d[h])g=d[h];else{if(h!==p)return null;g=s+s.charAt(0)}v.push(g),d[p++]=s+g.charAt(0),f--,s=g,0==f&&(f=Math.pow(2,m),m++)}}};return o}();void 0!==(n=(function(){return i}).call(t,r,t,e))&&(e.exports=n)},79996:(e,t)=>{"use strict";function r(){for(var e=[],t=0;t{"use strict";let t,r,n,i,o,s;function a(e){return e.nodeType===e.ELEMENT_NODE}function l(e){let t=null==e?void 0:e.host;return(null==t?void 0:t.shadowRoot)===e}function u(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function c(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),e}function h(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let r=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function d(e){try{let t=e.rules||e.cssRules;return t?c(Array.from(t,f).join("")):null}catch(e){return null}}function f(e){let t;if(m(e))try{t=d(e.styleSheet)||h(e)}catch(e){}else if(g(e)&&e.selectorText.includes(":"))return p(e.cssText);return t||e.cssText}function p(e){let t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function m(e){return"styleSheet"in e}function g(e){return"selectorText"in e}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(ek||(ek={}));class v{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){var t;if(!e)return -1;let r=null===(t=this.getMeta(e))||void 0===t?void 0:t.id;return null!=r?r:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){let r=this.getNode(e);if(r){let e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function y(){return new v}function E({element:e,maskInputOptions:t,tagName:r,type:n,value:i,maskInputFn:o}){let s=i||"",a=n&&_(n);return(t[r.toLowerCase()]||a&&t[a])&&(s=o?o(s,e):"*".repeat(s.length)),s}function _(e){return e.toLowerCase()}let b="__rrweb_original__";function A(e){let t=e.getContext("2d");if(!t)return!0;let r=50;for(let n=0;n0!==e))return!1}return!0}function T(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?_(t):null}function C(e,t){var r;let n;try{n=new URL(e,null!=t?t:window.location.href)}catch(e){return null}let i=/\.([0-9a-z]+)(?:$)/i,o=n.pathname.match(i);return null!==(r=null==o?void 0:o[1])&&void 0!==r?r:null}let S=1,w=RegExp("[^a-z0-9-_:]"),x=-2;function R(){return S++}function k(e){if(e instanceof HTMLFormElement)return"form";let t=_(e.tagName);return w.test(t)?"div":t}function L(e){let t="";return(t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0]).split("?")[0]}let I=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,O=/^(?:[a-z+]+:)?\/\//i,D=/^www\..*/i,N=/^(data:)([^,]*),(.*)/i;function P(e,t){return(e||"").replace(I,(e,r,n,i,o,s)=>{let a=n||o||s,l=r||i||"";if(!a)return e;if(O.test(a)||D.test(a)||N.test(a))return`url(${l}${a}${l})`;if("/"===a[0])return`url(${l}${L(t)+a}${l})`;let u=t.split("/"),c=a.split("/");for(let e of(u.pop(),c))"."!==e&&(".."===e?u.pop():u.push(e));return`url(${l}${u.join("/")}${l})`})}let M=/^[^ \t\n\r\u000c]+/,B=/^[, \t\n\r\u000c]+/;function U(e,t){if(""===t.trim())return t;let r=0;function n(e){let n;let i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}let i=[];for(;n(B),!(r>=t.length);){let o=n(M);if(","===o.slice(-1))o=F(e,o.substring(0,o.length-1)),i.push(o);else{let n="";o=F(e,o);let s=!1;for(;;){let e=t.charAt(r);if(""===e){i.push((o+n).trim());break}if(s)")"===e&&(s=!1);else{if(","===e){r+=1,i.push((o+n).trim());break}"("===e&&(s=!0)}n+=e,r+=1}}}return i.join(", ")}function F(e,t){if(!t||""===t.trim())return t;let r=e.createElement("a");return r.href=t,r.href}function j(e){return!!("svg"===e.tagName||e.ownerSVGElement)}function K(){let e=document.createElement("a");return e.href="",e.href}function V(e,t,r,n){return n?"src"!==r&&("href"!==r||"use"===t&&"#"===n[0])&&("xlink:href"!==r||"#"===n[0])&&("background"!==r||"table"!==t&&"td"!==t&&"th"!==t)?"srcset"===r?U(e,n):"style"===r?P(n,K()):"object"===t&&"data"===r?F(e,n):n:F(e,n):n}function H(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function z(e,t,r){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}if(r)return e.matches(r)}catch(e){}return!1}function G(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&G(e.parentNode,t,r);for(let r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}return!!r&&G(e.parentNode,t,r)}function q(e,t,r,n){try{let i=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===i)return!1;if("string"==typeof t){if(n){if(i.closest(`.${t}`))return!0}else if(i.classList.contains(t))return!0}else if(G(i,t,n))return!0;if(r){if(n){if(i.closest(r))return!0}else if(i.matches(r))return!0}}catch(e){}return!1}function W(e,t,r){let n;let i=e.contentWindow;if(!i)return;let o=!1;try{n=i.document.readyState}catch(e){return}if("complete"!==n){let n=setTimeout(()=>{o||(t(),o=!0)},r);e.addEventListener("load",()=>{clearTimeout(n),o=!0,t()});return}let s="about:blank";if(i.location.href!==s||e.src===s||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function X(e,t,r){let n,i=!1;try{n=e.sheet}catch(e){return}if(n)return;let o=setTimeout(()=>{i||(t(),i=!0)},r);e.addEventListener("load",()=>{clearTimeout(o),i=!0,t()})}function Y(e,t){let{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:s,inlineStylesheet:a,maskInputOptions:l={},maskTextFn:u,maskInputFn:c,dataURLOptions:h={},inlineImages:d,recordCanvas:f,keepIframeSrcFn:p,newlyAddedElement:m=!1}=t,g=Q(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:ek.Document,childNodes:[],compatMode:e.compatMode};return{type:ek.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:ek.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:g};case e.ELEMENT_NODE:return J(e,{doc:r,blockClass:i,blockSelector:o,inlineStylesheet:a,maskInputOptions:l,maskInputFn:c,dataURLOptions:h,inlineImages:d,recordCanvas:f,keepIframeSrcFn:p,newlyAddedElement:m,rootId:g});case e.TEXT_NODE:return Z(e,{needsMask:s,maskTextFn:u,rootId:g});case e.CDATA_SECTION_NODE:return{type:ek.CDATA,textContent:"",rootId:g};case e.COMMENT_NODE:return{type:ek.Comment,textContent:e.textContent||"",rootId:g};default:return!1}}function Q(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return 1===r?void 0:r}function Z(e,t){var r;let{needsMask:n,maskTextFn:i,rootId:o}=t,s=e.parentNode&&e.parentNode.tagName,a=e.textContent,l="STYLE"===s||void 0,u="SCRIPT"===s||void 0;if(l&&a){try{e.nextSibling||e.previousSibling||(null===(r=e.parentNode.sheet)||void 0===r?void 0:r.cssRules)&&(a=d(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}a=P(a,K())}return u&&(a="SCRIPT_PLACEHOLDER"),!l&&!u&&a&&n&&(a=i?i(a,e.parentElement):a.replace(/[\S]/g,"*")),{type:ek.Text,textContent:a||"",isStyle:l,rootId:o}}function J(e,n){let i;let{doc:o,blockClass:s,blockSelector:a,inlineStylesheet:l,maskInputOptions:u={},maskInputFn:c,dataURLOptions:h={},inlineImages:f,recordCanvas:p,keepIframeSrcFn:m,newlyAddedElement:g=!1,rootId:v}=n,y=z(e,s,a),b=k(e),C={},S=e.attributes.length;for(let t=0;tt.href===e.href),r=null;t&&(r=d(t)),r&&(delete C.rel,delete C.href,C._cssText=P(r,t.href))}if("style"===b&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let t=d(e.sheet);t&&(C._cssText=P(t,K()))}if("input"===b||"textarea"===b||"select"===b){let t=e.value,r=e.checked;"radio"!==C.type&&"checkbox"!==C.type&&"submit"!==C.type&&"button"!==C.type&&t?C.value=E({element:e,type:T(e),tagName:b,value:t,maskInputOptions:u,maskInputFn:c}):r&&(C.checked=r)}if("option"===b&&(e.selected&&!u.select?C.selected=!0:delete C.selected),"canvas"===b&&p){if("2d"===e.__context)A(e)||(C.rr_dataURL=e.toDataURL(h.type,h.quality));else if(!("__context"in e)){let t=e.toDataURL(h.type,h.quality),r=document.createElement("canvas");r.width=e.width,r.height=e.height,t!==r.toDataURL(h.type,h.quality)&&(C.rr_dataURL=t)}}if("img"===b&&f){t||(r=(t=o.createElement("canvas")).getContext("2d"));let n=e,i=n.crossOrigin;n.crossOrigin="anonymous";let s=()=>{n.removeEventListener("load",s);try{t.width=n.naturalWidth,t.height=n.naturalHeight,r.drawImage(n,0,0),C.rr_dataURL=t.toDataURL(h.type,h.quality)}catch(e){console.warn(`Cannot inline img src=${n.currentSrc}! Error: ${e}`)}i?C.crossOrigin=i:n.removeAttribute("crossorigin")};n.complete&&0!==n.naturalWidth?s():n.addEventListener("load",s)}if("audio"===b||"video"===b){let t=C;t.rr_mediaState=e.paused?"paused":"played",t.rr_mediaCurrentTime=e.currentTime,t.rr_mediaPlaybackRate=e.playbackRate,t.rr_mediaMuted=e.muted,t.rr_mediaLoop=e.loop,t.rr_mediaVolume=e.volume}if(!g&&(e.scrollLeft&&(C.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(C.rr_scrollTop=e.scrollTop)),y){let{width:t,height:r}=e.getBoundingClientRect();C={class:C.class,rr_width:`${t}px`,rr_height:`${r}px`}}"iframe"!==b||m(C.src)||(e.contentDocument||(C.rr_src=C.src),delete C.src);try{customElements.get(b)&&(i=!0)}catch(e){}return{type:ek.Element,tagName:b,attributes:C,childNodes:[],isSVG:j(e)||void 0,needBlock:y,rootId:v,isCustom:i}}function ee(e){return null==e?"":e.toLowerCase()}function et(e,t){if(t.comment&&e.type===ek.Comment)return!0;if(e.type===ek.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===C(e.attributes.href))||t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(ee(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===ee(e.attributes.name)||"icon"===ee(e.attributes.rel)||"apple-touch-icon"===ee(e.attributes.rel)||"shortcut icon"===ee(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&ee(e.attributes.name).match(/^description|keywords$/)||t.headMetaSocial&&(ee(e.attributes.property).match(/^(og|twitter|fb):/)||ee(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===ee(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===ee(e.attributes.name)||"googlebot"===ee(e.attributes.name)||"bingbot"===ee(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===ee(e.attributes.name)||"generator"===ee(e.attributes.name)||"framework"===ee(e.attributes.name)||"publisher"===ee(e.attributes.name)||"progid"===ee(e.attributes.name)||ee(e.attributes.property).match(/^article:/)||ee(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===ee(e.attributes.name)||"yandex-verification"===ee(e.attributes.name)||"csrf-token"===ee(e.attributes.name)||"p:domain_verify"===ee(e.attributes.name)||"verify-v1"===ee(e.attributes.name)||"verification"===ee(e.attributes.name)||"shopify-checkout-api-token"===ee(e.attributes.name)))return!0}}return!1}function er(e,t){let r;let{doc:n,mirror:i,blockClass:o,blockSelector:s,maskTextClass:c,maskTextSelector:h,skipChild:d=!1,inlineStylesheet:f=!0,maskInputOptions:p={},maskTextFn:m,maskInputFn:g,slimDOMOptions:v,dataURLOptions:y={},inlineImages:E=!1,recordCanvas:_=!1,onSerialize:b,onIframeLoad:A,iframeLoadTimeout:T=5e3,onStylesheetLoad:S,stylesheetLoadTimeout:w=5e3,keepIframeSrcFn:k=()=>!1,newlyAddedElement:L=!1}=t,{needsMask:I}=t,{preserveWhiteSpace:O=!0}=t;!I&&e.childNodes&&(I=q(e,c,h,void 0===I));let D=Y(e,{doc:n,mirror:i,blockClass:o,blockSelector:s,needsMask:I,inlineStylesheet:f,maskInputOptions:p,maskTextFn:m,maskInputFn:g,dataURLOptions:y,inlineImages:E,recordCanvas:_,keepIframeSrcFn:k,newlyAddedElement:L});if(!D)return console.warn(e,"not serialized"),null;r=i.hasNode(e)?i.getId(e):!et(D,v)&&(O||D.type!==ek.Text||D.isStyle||D.textContent.replace(/^\s+|\s+$/gm,"").length)?R():x;let N=Object.assign(D,{id:r});if(i.add(e,N),r===x)return null;b&&b(e);let P=!d;if(N.type===ek.Element){P=P&&!N.needBlock,delete N.needBlock;let t=e.shadowRoot;t&&u(t)&&(N.isShadowHost=!0)}if((N.type===ek.Document||N.type===ek.Element)&&P){v.headWhitespace&&N.type===ek.Element&&"head"===N.tagName&&(O=!1);let t={doc:n,mirror:i,blockClass:o,blockSelector:s,needsMask:I,maskTextClass:c,maskTextSelector:h,skipChild:d,inlineStylesheet:f,maskInputOptions:p,maskTextFn:m,maskInputFn:g,slimDOMOptions:v,dataURLOptions:y,inlineImages:E,recordCanvas:_,preserveWhiteSpace:O,onSerialize:b,onIframeLoad:A,iframeLoadTimeout:T,onStylesheetLoad:S,stylesheetLoadTimeout:w,keepIframeSrcFn:k};if(N.type===ek.Element&&"textarea"===N.tagName&&void 0!==N.attributes.value);else for(let r of Array.from(e.childNodes)){let e=er(r,t);e&&N.childNodes.push(e)}if(a(e)&&e.shadowRoot)for(let r of Array.from(e.shadowRoot.childNodes)){let n=er(r,t);n&&(u(e.shadowRoot)&&(n.isShadow=!0),N.childNodes.push(n))}}return e.parentNode&&l(e.parentNode)&&u(e.parentNode)&&(N.isShadow=!0),N.type===ek.Element&&"iframe"===N.tagName&&W(e,()=>{let t=e.contentDocument;if(t&&A){let r=er(t,{doc:t,mirror:i,blockClass:o,blockSelector:s,needsMask:I,maskTextClass:c,maskTextSelector:h,skipChild:!1,inlineStylesheet:f,maskInputOptions:p,maskTextFn:m,maskInputFn:g,slimDOMOptions:v,dataURLOptions:y,inlineImages:E,recordCanvas:_,preserveWhiteSpace:O,onSerialize:b,onIframeLoad:A,iframeLoadTimeout:T,onStylesheetLoad:S,stylesheetLoadTimeout:w,keepIframeSrcFn:k});r&&A(e,r)}},T),N.type===ek.Element&&"link"===N.tagName&&"string"==typeof N.attributes.rel&&("stylesheet"===N.attributes.rel||"preload"===N.attributes.rel&&"string"==typeof N.attributes.href&&"css"===C(N.attributes.href))&&X(e,()=>{if(S){let t=er(e,{doc:n,mirror:i,blockClass:o,blockSelector:s,needsMask:I,maskTextClass:c,maskTextSelector:h,skipChild:!1,inlineStylesheet:f,maskInputOptions:p,maskTextFn:m,maskInputFn:g,slimDOMOptions:v,dataURLOptions:y,inlineImages:E,recordCanvas:_,preserveWhiteSpace:O,onSerialize:b,onIframeLoad:A,iframeLoadTimeout:T,onStylesheetLoad:S,stylesheetLoadTimeout:w,keepIframeSrcFn:k});t&&S(e,t)}},w),N}function en(e,t){let{mirror:r=new v,blockClass:n="rr-block",blockSelector:i=null,maskTextClass:o="rr-mask",maskTextSelector:s=null,inlineStylesheet:a=!0,inlineImages:l=!1,recordCanvas:u=!1,maskAllInputs:c=!1,maskTextFn:h,maskInputFn:d,slimDOM:f=!1,dataURLOptions:p,preserveWhiteSpace:m,onSerialize:g,onIframeLoad:y,iframeLoadTimeout:E,onStylesheetLoad:_,stylesheetLoadTimeout:b,keepIframeSrcFn:A=()=>!1}=t||{};return er(e,{doc:e,mirror:r,blockClass:n,blockSelector:i,maskTextClass:o,maskTextSelector:s,skipChild:!1,inlineStylesheet:a,maskInputOptions:!0===c?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===c?{password:!0}:c,maskTextFn:h,maskInputFn:d,slimDOMOptions:!0===f||"all"===f?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===f,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===f?{}:f,dataURLOptions:p,inlineImages:l,recordCanvas:u,preserveWhiteSpace:m,onSerialize:g,onIframeLoad:y,iframeLoadTimeout:E,onStylesheetLoad:_,stylesheetLoadTimeout:b,keepIframeSrcFn:A,newlyAddedElement:!1})}function ei(e,t,r=document){let n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}let eo="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",es={map:{},getId:()=>(console.error(eo),-1),getNode:()=>(console.error(eo),null),removeNodeFromMap(){console.error(eo)},has:()=>(console.error(eo),!1),reset(){console.error(eo)}};function ea(e,t,r={}){let n=null,i=0;return function(...o){let s=Date.now();i||!1!==r.leading||(i=s);let a=t-(s-i),l=this;a<=0||a>t?(n&&(clearTimeout(n),n=null),i=s,e.apply(l,o)):n||!1===r.trailing||(n=setTimeout(()=>{i=!1===r.leading?0:Date.now(),n=null,e.apply(l,o)},a))}}function el(e,t,r,n,i=window){let o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,n?r:{set(e){setTimeout(()=>{r.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>el(e,t,o||{},!0)}function eu(e,t,r){try{if(!(t in e))return()=>{};let n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,()=>{e[t]=n}}catch(e){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(es=new Proxy(es,{get:(e,t,r)=>("map"===t&&console.error(eo),Reflect.get(e,t,r))}));let ec=Date.now;function eh(e){var t,r,n,i,o,s;let a=e.document;return{left:a.scrollingElement?a.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:(null==a?void 0:a.documentElement.scrollLeft)||(null===(r=null===(t=null==a?void 0:a.body)||void 0===t?void 0:t.parentElement)||void 0===r?void 0:r.scrollLeft)||(null===(n=null==a?void 0:a.body)||void 0===n?void 0:n.scrollLeft)||0,top:a.scrollingElement?a.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==a?void 0:a.documentElement.scrollTop)||(null===(o=null===(i=null==a?void 0:a.body)||void 0===i?void 0:i.parentElement)||void 0===o?void 0:o.scrollTop)||(null===(s=null==a?void 0:a.body)||void 0===s?void 0:s.scrollTop)||0}}function ed(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function ef(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function ep(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function em(e,t,r,n){if(!e)return!1;let i=ep(e);if(!i)return!1;try{if("string"==typeof t){if(i.classList.contains(t)||n&&null!==i.closest("."+t))return!0}else if(G(i,t,n))return!0}catch(e){}return!!(r&&(i.matches(r)||n&&null!==i.closest(r)))}function eg(e,t){return -1!==t.getId(e)}function ev(e,t){return t.getId(e)===x}function ey(e,t){if(l(e))return!1;let r=t.getId(e);return!t.has(r)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||ey(e.parentNode,t))}function eE(e){return!!e.changedTouches}function e_(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw TypeError("1 argument is required");do if(this===t)return!0;while(t=t&&t.parentNode)return!1})}function eb(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function eA(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function eT(e){return!!(null==e?void 0:e.shadowRoot)}/[1-9][0-9]{12}/.test(Date.now().toString())||(ec=()=>new Date().getTime());class eC{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){var t;return null!==(t=this.styleIDMap.get(e))&&void 0!==t?t:-1}has(e){return this.styleIDMap.has(e)}add(e,t){let r;return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r)}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function eS(e){var t,r;let n=null;return(null===(r=null===(t=e.getRootNode)||void 0===t?void 0:t.call(e))||void 0===r?void 0:r.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(n=e.getRootNode().host),n}function ew(e){let t,r=e;for(;t=eS(r);)r=t;return r}function ex(e){let t=e.ownerDocument;if(!t)return!1;let r=ew(e);return t.contains(r)}function eR(e){let t=e.ownerDocument;return!!t&&(t.contains(e)||ex(e))}var ek,eL,eI,eO,eD=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(eD||{}),eN=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(eN||{}),eP=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(eP||{}),eM=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(eM||{}),eB=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(eB||{});function eU(e){return"__ln"in e}class eF{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw Error("Position outside of list range");let t=this.head;for(let r=0;r`${e}@${t}`;class eK{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,r=new eF,n=e=>{let t=e,r=x;for(;r===x;)r=(t=t&&t.nextSibling)&&this.mirror.getId(t);return r},i=i=>{if(!i.parentNode||!eR(i)||"TEXTAREA"===i.parentNode.tagName)return;let o=l(i.parentNode)?this.mirror.getId(eS(i)):this.mirror.getId(i.parentNode),s=n(i);if(-1===o||-1===s)return r.addNode(i);let a=er(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{eb(e,this.mirror)&&this.iframeManager.addIframe(e),eA(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),eT(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});a&&(e.push({parentId:o,nextId:s,node:a}),t.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!eH(this.removes,e,this.mirror)||this.movedSet.has(e.parentNode))&&i(e);for(let e of this.addedSet)e$(this.droppedSet,e)||eH(this.removes,e,this.mirror)?e$(this.movedSet,e)?i(e):this.droppedSet.add(e):i(e);let o=null;for(;r.length;){let e=null;if(o){let t=this.mirror.getId(o.value.parentNode),r=n(o.value);-1!==t&&-1!==r&&(e=o)}if(!e){let t=r.tail;for(;t;){let r=t;if(t=t.previous,r){let t=this.mirror.getId(r.value.parentNode);if(-1===n(r.value))continue;if(-1!==t){e=r;break}{let t=r.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let n=t.parentNode.host;if(-1!==this.mirror.getId(n)){e=r;break}}}}}}if(!e){for(;r.head;)r.removeNode(r.head.value);break}o=e.previous,r.removeNode(e.value),i(e.value)}let s={texts:this.texts.map(e=>{let t=e.node;return t.parentNode&&"TEXTAREA"===t.parentNode.tagName&&this.genTextAreaValueMutation(t.parentNode),{id:this.mirror.getId(t),value:e.value}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{let{attributes:t}=e;if("string"==typeof t.style){let r=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles);r.length!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(s.texts.length||s.attributes.length||s.removes.length||s.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(s))},this.genTextAreaValueMutation=e=>{let t=this.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(t),this.attributeMap.set(e,t)),t.attributes.value=Array.from(e.childNodes,e=>e.textContent||"").join("")},this.processMutation=e=>{if(!ev(e.target,this.mirror))switch(e.type){case"characterData":{let t=e.target.textContent;em(e.target,this.blockClass,this.blockSelector,!1)||t===e.oldValue||this.texts.push({value:q(e.target,this.maskTextClass,this.maskTextSelector,!0)&&t?this.maskTextFn?this.maskTextFn(t,ep(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{let t=e.target,r=e.attributeName,n=e.target.getAttribute(r);if("value"===r){let e=T(t);n=E({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:e,value:n,maskInputFn:this.maskInputFn})}if(em(e.target,this.blockClass,this.blockSelector,!1)||n===e.oldValue)return;let i=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===r&&!this.keepIframeSrcFn(n)){if(t.contentDocument)return;r="rr_src"}if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(e.target,i)),"type"===r&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!H(t.tagName,r)&&(i.attributes[r]=V(this.doc,_(t.tagName),_(r),n),"style"===r)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}let r=this.unattachedDoc.createElement("span");for(let n of(e.oldValue&&r.setAttribute("style",e.oldValue),Array.from(t.style))){let e=t.style.getPropertyValue(n),o=t.style.getPropertyPriority(n);e!==r.style.getPropertyValue(n)||o!==r.style.getPropertyPriority(n)?""===o?i.styleDiff[n]=e:i.styleDiff[n]=[e,o]:i._unchangedStyles[n]=[e,o]}for(let e of Array.from(r.style))""===t.style.getPropertyValue(e)&&(i.styleDiff[e]=!1)}break}case"childList":if(em(e.target,this.blockClass,this.blockSelector,!0))return;if("TEXTAREA"===e.target.tagName){this.genTextAreaValueMutation(e.target);return}e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let r=this.mirror.getId(t),n=l(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);!(em(e.target,this.blockClass,this.blockSelector,!1)||ev(t,this.mirror))&&eg(t,this.mirror)&&(this.addedSet.has(t)?(eV(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||ey(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[ej(r,n)]?eV(this.movedSet,t):this.removes.push({parentId:n,id:r,isShadow:!!(l(e.target)&&u(e.target))||void 0})),this.mapRemoves.push(t))})}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(ev(e,this.mirror))return;this.movedSet.add(e);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&-1!==r&&(this.movedMap[ej(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!em(e,this.blockClass,this.blockSelector,!1)&&(e.childNodes.forEach(e=>this.genAdds(e)),eT(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}init(e){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(t=>{this[t]=e[t]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function eV(e,t){e.delete(t),t.childNodes.forEach(t=>eV(e,t))}function eH(e,t,r){return 0!==e.length&&ez(e,t,r)}function ez(e,t,r){let{parentNode:n}=t;if(!n)return!1;let i=r.getId(n);return!!e.some(e=>e.id===i)||ez(e,n,r)}function e$(e,t){return 0!==e.size&&eG(e,t)}function eG(e,t){let{parentNode:r}=t;return!!r&&(!!e.has(r)||eG(e,r))}function eq(e){n=e}function eW(){n=void 0}let eX=e=>n?(...t)=>{try{return e(...t)}catch(e){if(n&&!0===n(e))return;throw e}}:e,eY=[];function eQ(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function eZ(e,t){var r,n;let i=new eK;eY.push(i),i.init(e);let o=window.MutationObserver||window.__rrMutationObserver,s=null===(n=null===(r=null==window?void 0:window.Zone)||void 0===r?void 0:r.__symbol__)||void 0===n?void 0:n.call(r,"MutationObserver");s&&window[s]&&(o=window[s]);let a=new o(eX(i.processMutations.bind(i)));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function eJ({mousemoveCb:e,sampling:t,doc:r,mirror:n}){let i;if(!1===t.mousemove)return()=>{};let o="number"==typeof t.mousemove?t.mousemove:50,s="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,a=[],l=ea(eX(t=>{let r=Date.now()-i;e(a.map(e=>(e.timeOffset-=r,e)),t),a=[],i=null}),s),u=eX(ea(eX(e=>{let t=eQ(e),{clientX:r,clientY:o}=eE(e)?e.changedTouches[0]:e;i||(i=ec()),a.push({x:r,y:o,id:n.getId(t),timeOffset:ec()-i}),l("undefined"!=typeof DragEvent&&e instanceof DragEvent?eN.Drag:e instanceof MouseEvent?eN.MouseMove:eN.TouchMove)}),o,{trailing:!1})),c=[ei("mousemove",u,r),ei("touchmove",u,r),ei("drag",u,r)];return eX(()=>{c.forEach(e=>e())})}function e0({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,sampling:o}){if(!1===o.mouseInteraction)return()=>{};let s=!0===o.mouseInteraction||void 0===o.mouseInteraction?{}:o.mouseInteraction,a=[],l=null,u=t=>o=>{let s=eQ(o);if(em(s,n,i,!0))return;let a=null,u=t;if("pointerType"in o){switch(o.pointerType){case"mouse":a=eM.Mouse;break;case"touch":a=eM.Touch;break;case"pen":a=eM.Pen}a===eM.Touch?eP[t]===eP.MouseDown?u="TouchStart":eP[t]===eP.MouseUp&&(u="TouchEnd"):eM.Pen}else eE(o)&&(a=eM.Touch);null!==a?(l=a,(u.startsWith("Touch")&&a===eM.Touch||u.startsWith("Mouse")&&a===eM.Mouse)&&(a=null)):eP[t]===eP.Click&&(a=l,l=null);let c=eE(o)?o.changedTouches[0]:o;if(!c)return;let h=r.getId(s),{clientX:d,clientY:f}=c;eX(e)(Object.assign({type:eP[u],id:h,x:d,y:f},null!==a&&{pointerType:a}))};return Object.keys(eP).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e]).forEach(e=>{let r=_(e),n=u(e);if(window.PointerEvent)switch(eP[e]){case eP.MouseDown:case eP.MouseUp:r=r.replace("mouse","pointer");break;case eP.TouchStart:case eP.TouchEnd:return}a.push(ei(r,n,t))}),eX(()=>{a.forEach(e=>e())})}function e1({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,sampling:o}){return ei("scroll",eX(ea(eX(o=>{let s=eQ(o);if(!s||em(s,n,i,!0))return;let a=r.getId(s);if(s===t&&t.defaultView){let r=eh(t.defaultView);e({id:a,x:r.left,y:r.top})}else e({id:a,x:s.scrollLeft,y:s.scrollTop})}),o.scroll||100)),t)}function e2({viewportResizeCb:e},{win:t}){let r=-1,n=-1;return ei("resize",eX(ea(eX(()=>{let t=ed(),i=ef();(r!==t||n!==i)&&(e({width:Number(i),height:Number(t)}),r=t,n=i)}),200)),t)}let e3=["INPUT","TEXTAREA","SELECT"],e4=new WeakMap;function e5({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,ignoreClass:o,ignoreSelector:s,maskInputOptions:a,maskInputFn:l,sampling:u,userTriggeredOnInput:c}){function h(e){let r=eQ(e),u=e.isTrusted,h=r&&r.tagName;if(r&&"OPTION"===h&&(r=r.parentElement),!r||!h||0>e3.indexOf(h)||em(r,n,i,!0)||r.classList.contains(o)||s&&r.matches(s))return;let f=r.value,p=!1,m=T(r)||"";"radio"===m||"checkbox"===m?p=r.checked:(a[h.toLowerCase()]||a[m])&&(f=E({element:r,maskInputOptions:a,tagName:h,type:m,value:f,maskInputFn:l})),d(r,c?{text:f,isChecked:p,userTriggered:u}:{text:f,isChecked:p});let g=r.name;"radio"===m&&g&&p&&t.querySelectorAll(`input[type="radio"][name="${g}"]`).forEach(e=>{if(e!==r){let t=e.value;d(e,c?{text:t,isChecked:!p,userTriggered:!1}:{text:t,isChecked:!p})}})}function d(t,n){let i=e4.get(t);if(!i||i.text!==n.text||i.isChecked!==n.isChecked){e4.set(t,n);let i=r.getId(t);eX(e)(Object.assign(Object.assign({},n),{id:i}))}}let f=("last"===u.input?["change"]:["input","change"]).map(e=>ei(e,eX(h),t)),p=t.defaultView;if(!p)return()=>{f.forEach(e=>e())};let m=p.Object.getOwnPropertyDescriptor(p.HTMLInputElement.prototype,"value"),g=[[p.HTMLInputElement.prototype,"value"],[p.HTMLInputElement.prototype,"checked"],[p.HTMLSelectElement.prototype,"value"],[p.HTMLTextAreaElement.prototype,"value"],[p.HTMLSelectElement.prototype,"selectedIndex"],[p.HTMLOptionElement.prototype,"selected"]];return m&&m.set&&f.push(...g.map(e=>el(e[0],e[1],{set(){eX(h)({target:this,isTrusted:!1})}},!1,p))),eX(()=>{f.forEach(e=>e())})}function e6(e){return function(e,t){return ta("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||ta("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||ta("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||ta("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule?t.unshift(Array.from(e.parentRule.cssRules).indexOf(e)):e.parentStyleSheet&&t.unshift(Array.from(e.parentStyleSheet.cssRules).indexOf(e)),t}(e,[])}function e7(e,t,r){let n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function e8({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){let i,o;if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};let s=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:eX((n,i,o)=>{let[s,a]=o,{id:l,styleId:u}=e7(i,t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,adds:[{rule:s,index:a}]}),n.apply(i,o)})});let a=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:eX((n,i,o)=>{let[s]=o,{id:a,styleId:l}=e7(i,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:s}]}),n.apply(i,o)})}),n.CSSStyleSheet.prototype.replace&&(i=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:eX((n,i,o)=>{let[s]=o,{id:a,styleId:l}=e7(i,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replace:s}),n.apply(i,o)})})),n.CSSStyleSheet.prototype.replaceSync&&(o=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(o,{apply:eX((n,i,o)=>{let[s]=o,{id:a,styleId:l}=e7(i,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replaceSync:s}),n.apply(i,o)})}));let l={};tl("CSSGroupingRule")?l.CSSGroupingRule=n.CSSGroupingRule:(tl("CSSMediaRule")&&(l.CSSMediaRule=n.CSSMediaRule),tl("CSSConditionRule")&&(l.CSSConditionRule=n.CSSConditionRule),tl("CSSSupportsRule")&&(l.CSSSupportsRule=n.CSSSupportsRule));let u={};return Object.entries(l).forEach(([n,i])=>{u[n]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(u[n].insertRule,{apply:eX((n,i,o)=>{let[s,a]=o,{id:l,styleId:u}=e7(i.parentStyleSheet,t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,adds:[{rule:s,index:[...e6(i),a||0]}]}),n.apply(i,o)})}),i.prototype.deleteRule=new Proxy(u[n].deleteRule,{apply:eX((n,i,o)=>{let[s]=o,{id:a,styleId:l}=e7(i.parentStyleSheet,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:[...e6(i),s]}]}),n.apply(i,o)})})}),eX(()=>{n.CSSStyleSheet.prototype.insertRule=s,n.CSSStyleSheet.prototype.deleteRule=a,i&&(n.CSSStyleSheet.prototype.replace=i),o&&(n.CSSStyleSheet.prototype.replaceSync=o),Object.entries(l).forEach(([e,t])=>{t.prototype.insertRule=u[e].insertRule,t.prototype.deleteRule=u[e].deleteRule})})}function e9({mirror:e,stylesheetManager:t},r){var n,i,o;let s=null;s="#document"===r.nodeName?e.getId(r):e.getId(r.host);let a="#document"===r.nodeName?null===(n=r.defaultView)||void 0===n?void 0:n.Document:null===(o=null===(i=r.ownerDocument)||void 0===i?void 0:i.defaultView)||void 0===o?void 0:o.ShadowRoot,l=(null==a?void 0:a.prototype)?Object.getOwnPropertyDescriptor(null==a?void 0:a.prototype,"adoptedStyleSheets"):void 0;return null!==s&&-1!==s&&a&&l?(Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get(){var e;return null===(e=l.get)||void 0===e?void 0:e.call(this)},set(e){var r;let n=null===(r=l.set)||void 0===r?void 0:r.call(this,e);if(null!==s&&-1!==s)try{t.adoptStyleSheets(e,s)}catch(e){}return n}}),eX(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})})):()=>{}}function te({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:n},{win:i}){let o=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:eX((i,s,a)=>{var l;let[u,c,h]=a;if(r.has(u))return o.apply(s,[u,c,h]);let{id:d,styleId:f}=e7(null===(l=s.parentRule)||void 0===l?void 0:l.parentStyleSheet,t,n.styleMirror);return(d&&-1!==d||f&&-1!==f)&&e({id:d,styleId:f,set:{property:u,value:c,priority:h},index:e6(s.parentRule)}),i.apply(s,a)})});let s=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:eX((i,o,a)=>{var l;let[u]=a;if(r.has(u))return s.apply(o,[u]);let{id:c,styleId:h}=e7(null===(l=o.parentRule)||void 0===l?void 0:l.parentStyleSheet,t,n.styleMirror);return(c&&-1!==c||h&&-1!==h)&&e({id:c,styleId:h,remove:{property:u},index:e6(o.parentRule)}),i.apply(o,a)})}),eX(()=>{i.CSSStyleDeclaration.prototype.setProperty=o,i.CSSStyleDeclaration.prototype.removeProperty=s})}function tt({mediaInteractionCb:e,blockClass:t,blockSelector:r,mirror:n,sampling:i,doc:o}){let s=eX(o=>ea(eX(i=>{let s=eQ(i);if(!s||em(s,t,r,!0))return;let{currentTime:a,volume:l,muted:u,playbackRate:c,loop:h}=s;e({type:o,id:n.getId(s),currentTime:a,volume:l,muted:u,playbackRate:c,loop:h})}),i.media||500)),a=[ei("play",s(0),o),ei("pause",s(1),o),ei("seeked",s(2),o),ei("volumechange",s(3),o),ei("ratechange",s(4),o)];return eX(()=>{a.forEach(e=>e())})}function tr({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let n=[],i=new WeakMap,o=r.FontFace;r.FontFace=function(e,t,r){let n=new o(e,t,r);return i.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};let s=eu(t.fonts,"add",function(t){return function(r){return setTimeout(eX(()=>{let t=i.get(r);t&&(e(t),i.delete(r))}),0),t.apply(this,[r])}});return n.push(()=>{r.FontFace=o}),n.push(s),eX(()=>{n.forEach(e=>e())})}function tn(e){let{doc:t,mirror:r,blockClass:n,blockSelector:i,selectionCb:o}=e,s=!0,a=eX(()=>{let e=t.getSelection();if(!e||s&&(null==e?void 0:e.isCollapsed))return;s=e.isCollapsed||!1;let a=[],l=e.rangeCount||0;for(let t=0;t{}}function to(e,t){let{mutationCb:r,mousemoveCb:n,mouseInteractionCb:i,scrollCb:o,viewportResizeCb:s,inputCb:a,mediaInteractionCb:l,styleSheetRuleCb:u,styleDeclarationCb:c,canvasMutationCb:h,fontCb:d,selectionCb:f,customElementCb:p}=e;e.mutationCb=(...e)=>{t.mutation&&t.mutation(...e),r(...e)},e.mousemoveCb=(...e)=>{t.mousemove&&t.mousemove(...e),n(...e)},e.mouseInteractionCb=(...e)=>{t.mouseInteraction&&t.mouseInteraction(...e),i(...e)},e.scrollCb=(...e)=>{t.scroll&&t.scroll(...e),o(...e)},e.viewportResizeCb=(...e)=>{t.viewportResize&&t.viewportResize(...e),s(...e)},e.inputCb=(...e)=>{t.input&&t.input(...e),a(...e)},e.mediaInteractionCb=(...e)=>{t.mediaInteaction&&t.mediaInteaction(...e),l(...e)},e.styleSheetRuleCb=(...e)=>{t.styleSheetRule&&t.styleSheetRule(...e),u(...e)},e.styleDeclarationCb=(...e)=>{t.styleDeclaration&&t.styleDeclaration(...e),c(...e)},e.canvasMutationCb=(...e)=>{t.canvasMutation&&t.canvasMutation(...e),h(...e)},e.fontCb=(...e)=>{t.font&&t.font(...e),d(...e)},e.selectionCb=(...e)=>{t.selection&&t.selection(...e),f(...e)},e.customElementCb=(...e)=>{t.customElement&&t.customElement(...e),p(...e)}}function ts(e,t={}){let r;let n=e.doc.defaultView;if(!n)return()=>{};to(e,t),e.recordDOM&&(r=eZ(e,e.doc));let i=eJ(e),o=e0(e),s=e1(e),a=e2(e,{win:n}),l=e5(e),u=tt(e),c=()=>{},h=()=>{},d=()=>{},f=()=>{};e.recordDOM&&(c=e8(e,{win:n}),h=e9(e,e.doc),d=te(e,{win:n}),e.collectFonts&&(f=tr(e)));let p=tn(e),m=ti(e),g=[];for(let t of e.plugins)g.push(t.observer(t.callback,n,t.options));return eX(()=>{eY.forEach(e=>e.reset()),null==r||r.disconnect(),i(),o(),s(),a(),l(),u(),c(),h(),d(),f(),p(),m(),g.forEach(e=>e())})}function ta(e){return void 0!==window[e]}function tl(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class tu{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,r,n){let i=r||this.getIdToRemoteIdMap(e),o=n||this.getRemoteIdToIdMap(e),s=i.get(t);return s||(s=this.generateIdFn(),i.set(t,s),o.set(s,t)),s}getIds(e,t){let r=this.getIdToRemoteIdMap(e),n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,r,n))}getRemoteId(e,t,r){let n=r||this.getRemoteIdToIdMap(e);return"number"!=typeof t?t:n.get(t)||-1}getRemoteIds(e,t){let r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,r))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class tc{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new tu(R),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new tu(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){var r;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),null===(r=this.loadListener)||void 0===r||r.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){let t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin||!e.source)return;let r=this.crossOriginIframeMap.get(e.source);if(!r)return;let n=this.transformCrossOriginEvent(r,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}transformCrossOriginEvent(e,t){var r;switch(t.type){case eD.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let r=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(t.data.node,r),{timestamp:t.timestamp,type:eD.IncrementalSnapshot,data:{source:eN.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case eD.Meta:case eD.Load:case eD.DomContentLoaded:break;case eD.Plugin:return t;case eD.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case eD.IncrementalSnapshot:switch(t.data.source){case eN.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);let r=this.crossOriginIframeRootIdMap.get(e);r&&this.patchRootIdOnNode(t.node,r)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case eN.Drag:case eN.TouchMove:case eN.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case eN.ViewportResize:return!1;case eN.MediaInteraction:case eN.MouseInteraction:case eN.Scroll:case eN.CanvasMutation:case eN.Input:return this.replaceIds(t.data,e,["id"]),t;case eN.StyleSheetRule:case eN.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case eN.Font:return t;case eN.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case eN.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null===(r=t.data.styles)||void 0===r||r.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,r,n){for(let i of n)(Array.isArray(t[i])||"number"==typeof t[i])&&(Array.isArray(t[i])?t[i]=e.getIds(r,t[i]):t[i]=e.getId(r,t[i]));return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===ek.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class th{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!u(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e);let r=eZ(Object.assign(Object.assign({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(e1(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(e9({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){let r=this;this.restoreHandlers.push(eu(e.prototype,"attachShadow",function(e){return function(n){let i=e.call(this,n);return this.shadowRoot&&eR(this)&&r.addShadowRoot(this.shadowRoot,t),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */function td(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function tf(e,t,r,n){function i(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){e.done?r(e.value):i(e.value).then(s,a)}l((n=n.apply(e,t||[])).next())})}for(var tp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tm="undefined"==typeof Uint8Array?[]:new Uint8Array(256),tg=0;tg>2]+tp[(3&r[t])<<4|r[t+1]>>4]+tp[(15&r[t+1])<<2|r[t+2]>>6]+tp[63&r[t+2]];return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i};let ty=new Map;function tE(e,t){let r=ty.get(e);return r||(r=new Map,ty.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}let t_=(e,t,r)=>{if(!e||!(tT(e,t)||"object"==typeof e))return;let n=tE(r,e.constructor.name),i=n.indexOf(e);return -1===i&&(i=n.length,n.push(e)),i};function tb(e,t,r){if(e instanceof Array)return e.map(e=>tb(e,t,r));if(null===e);else if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};else if(e instanceof ArrayBuffer)return{rr_type:e.constructor.name,base64:tv(e)};else if(e instanceof DataView)return{rr_type:e.constructor.name,args:[tb(e.buffer,t,r),e.byteOffset,e.byteLength]};else if(e instanceof HTMLImageElement){let t=e.constructor.name,{src:r}=e;return{rr_type:t,src:r}}else if(e instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:e.toDataURL()};else if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[tb(e.data,t,r),e.width,e.height]};else if(tT(e,t)||"object"==typeof e)return{rr_type:e.constructor.name,index:t_(e,t,r)};return e}let tA=(e,t,r)=>e.map(e=>tb(e,t,r)),tT=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof t[e]).find(r=>e instanceof t[r]);function tC(e,t,r,n){let i=[];for(let o of Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype))try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[o])continue;let s=eu(t.CanvasRenderingContext2D.prototype,o,function(i){return function(...s){return em(this.canvas,r,n,!0)||setTimeout(()=>{let r=tA(s,t,this);e(this.canvas,{type:eB["2D"],property:o,args:r})},0),i.apply(this,s)}});i.push(s)}catch(n){let r=el(t.CanvasRenderingContext2D.prototype,o,{set(t){e(this.canvas,{type:eB["2D"],property:o,args:[t],setter:!0})}});i.push(r)}return()=>{i.forEach(e=>e())}}function tS(e){return"experimental-webgl"===e?"webgl":e}function tw(e,t,r,n){let i=[];try{let o=eu(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(i,...o){if(!em(this,t,r,!0)){let e=tS(i);if("__context"in this||(this.__context=e),n&&["webgl","webgl2"].includes(e)){if(o[0]&&"object"==typeof o[0]){let e=o[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else o.splice(0,1,{preserveDrawingBuffer:!0})}}return e.apply(this,[i,...o])}});i.push(o)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{i.forEach(e=>e())}}function tx(e,t,r,n,i,o,s){let a=[];for(let o of Object.getOwnPropertyNames(e))if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(o))try{if("function"!=typeof e[o])continue;let l=eu(e,o,function(e){return function(...a){let l=e.apply(this,a);if(t_(l,s,this),"tagName"in this.canvas&&!em(this.canvas,n,i,!0)){let e=tA(a,s,this),n={type:t,property:o,args:e};r(this.canvas,n)}return l}});a.push(l)}catch(i){let n=el(e,o,{set(e){r(this.canvas,{type:t,property:o,args:[e],setter:!0})}});a.push(n)}return a}function tR(e,t,r,n,i){let o=[];return o.push(...tx(t.WebGLRenderingContext.prototype,eB.WebGL,e,r,n,i,t)),void 0!==t.WebGL2RenderingContext&&o.push(...tx(t.WebGL2RenderingContext.prototype,eB.WebGL2,e,r,n,i,t)),()=>{o.forEach(e=>e())}}function tk(e,t){var r=void 0===t?null:t,n=e.toString().split("\n");n.pop(),n.shift();for(var i=n[0].search(/\S/),o=/(['"])__worker_loader_strict__(['"])/g,s=0,a=n.length;s>2]+t[(3&n[r])<<4|n[r+1]>>4]+t[(15&n[r+1])<<2|n[r+2]>>6]+t[63&n[r+2]];return i%3==2?o=o.substring(0,o.length-1)+"=":i%3==1&&(o=o.substring(0,o.length-2)+"=="),o};let o=new Map,s=new Map;function a(t,r,n){return e(this,void 0,void 0,function*(){let e=`${t}-${r}`;if(!("OffscreenCanvas"in globalThis))return"";{if(s.has(e))return s.get(e);let o=new OffscreenCanvas(t,r);o.getContext("2d");let a=yield o.convertToBlob(n),l=i((yield a.arrayBuffer()));return s.set(e,l),l}})}let l=self;l.onmessage=function(t){return e(this,void 0,void 0,function*(){if(!("OffscreenCanvas"in globalThis))return l.postMessage({id:t.data.id});{let{id:e,bitmap:r,width:n,height:s,dataURLOptions:u}=t.data,c=a(n,s,u),h=new OffscreenCanvas(n,s);h.getContext("2d").drawImage(r,0,0),r.close();let d=yield h.convertToBlob(u),f=d.type,p=i((yield d.arrayBuffer()));if(!o.has(e)&&(yield c)===p)return o.set(e,p),l.postMessage({id:e});if(o.get(e)===p)return l.postMessage({id:e});l.postMessage({id:e,type:f,base64:p,width:n,height:s}),o.set(e,p)}})}}()},0);class tO{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=(e,t)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)};let{sampling:t="all",win:r,blockClass:n,blockSelector:i,recordCanvas:o,dataURLOptions:s}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,o&&"all"===t&&this.initCanvasMutationObserver(r,n,i),o&&"number"==typeof t&&this.initCanvasFPSObserver(t,r,n,i,{dataURLOptions:s})}initCanvasFPSObserver(e,t,r,n,i){let o;let s=tw(t,r,n,!0),a=new Map,l=new tI;l.onmessage=e=>{let{id:t}=e.data;if(a.set(t,!1),!("base64"in e.data))return;let{base64:r,type:n,width:i,height:o}=e.data;this.mutationCb({id:t,type:eB["2D"],commands:[{property:"clearRect",args:[0,0,i,o]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:n}]},0,0]}]})};let u=1e3/e,c=0,h=()=>{let e=[];return t.document.querySelectorAll("canvas").forEach(t=>{em(t,r,n,!0)||e.push(t)}),e},d=e=>{if(c&&e-ctf(this,void 0,void 0,function*(){var t;let r=this.mirror.getId(e);if(a.get(r)||0===e.width||0===e.height)return;if(a.set(r,!0),["webgl","webgl2"].includes(e.__context)){let r=e.getContext(e.__context);(null===(t=null==r?void 0:r.getContextAttributes())||void 0===t?void 0:t.preserveDrawingBuffer)===!1&&r.clear(r.COLOR_BUFFER_BIT)}let n=yield createImageBitmap(e);l.postMessage({id:r,bitmap:n,width:e.width,height:e.height,dataURLOptions:i.dataURLOptions},[n])})),o=requestAnimationFrame(d)};o=requestAnimationFrame(d),this.resetObservers=()=>{s(),cancelAnimationFrame(o)}}initCanvasMutationObserver(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let n=tw(e,t,r,!1),i=tC(this.processMutation.bind(this),e,t,r),o=tR(this.processMutation.bind(this),e,t,r,this.mirror);this.resetObservers=()=>{n(),i(),o()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{let r=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,r)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;let r=this.pendingCanvasMutations.get(e);if(!r||-1===t)return;let n=r.map(e=>td(e,["type"])),{type:i}=r[0];this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations.delete(e)}}class tD{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new eC,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;let r={id:t,styleIds:[]},n=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),n.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:f(e),index:t}))})),r.styleIds.push(e)}n.length>0&&(r.styles=n),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class tN{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){requestAnimationFrame(()=>{this.clear(),this.loop&&this.periodicallyClear()})}inOtherBuffer(e,t){let r=this.nodeMap.get(e);return r&&Array.from(r).some(e=>e!==t)}add(e,t){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}function tP(e){return Object.assign(Object.assign({},e),{timestamp:ec()})}let tM=!1,tB=y();function tU(e={}){let t;let{emit:r,checkoutEveryNms:n,checkoutEveryNth:a,blockClass:l="rr-block",blockSelector:u=null,ignoreClass:c="rr-ignore",ignoreSelector:h=null,maskTextClass:d="rr-mask",maskTextSelector:f=null,inlineStylesheet:p=!0,maskAllInputs:m,maskInputOptions:g,slimDOMOptions:v,maskInputFn:y,maskTextFn:E,hooks:_,packFn:b,sampling:A={},dataURLOptions:T={},mousemoveWait:C,recordDOM:S=!0,recordCanvas:w=!1,recordCrossOriginIframes:x=!1,recordAfter:R="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:k=!1,collectFonts:L=!1,inlineImages:I=!1,plugins:O,keepIframeSrcFn:D=()=>!1,ignoreCSSAttributes:N=new Set([]),errorHandler:P}=e;eq(P);let M=!x||window.parent===window,B=!1;if(!M)try{window.parent.document&&(B=!1)}catch(e){B=!0}if(M&&!r)throw Error("emit function is required");void 0!==C&&void 0===A.mousemove&&(A.mousemove=C),tB.reset();let U=!0===m?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==g?g:{password:!0},F=!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===v,headMetaDescKeywords:"all"===v}:v||{};e_();let j=0,K=e=>{for(let t of O||[])t.eventProcessor&&(e=t.eventProcessor(e));return b&&!B&&(e=b(e)),e};i=(e,i)=>{var s;if((null===(s=eY[0])||void 0===s?void 0:s.isFrozen())&&e.type!==eD.FullSnapshot&&!(e.type===eD.IncrementalSnapshot&&e.data.source===eN.Mutation)&&eY.forEach(e=>e.unfreeze()),M)null==r||r(K(e),i);else if(B){let t={type:"rrweb",event:K(e),origin:window.location.origin,isCheckout:i};window.parent.postMessage(t,"*")}if(e.type===eD.FullSnapshot)t=e,j=0;else if(e.type===eD.IncrementalSnapshot){if(e.data.source===eN.Mutation&&e.data.isAttachIframe)return;j++;let r=a&&j>=a,i=n&&e.timestamp-t.timestamp>n;(r||i)&&o(!0)}};let V=e=>{i(tP({type:eD.IncrementalSnapshot,data:Object.assign({source:eN.Mutation},e)}))},H=e=>i(tP({type:eD.IncrementalSnapshot,data:Object.assign({source:eN.Scroll},e)})),z=e=>i(tP({type:eD.IncrementalSnapshot,data:Object.assign({source:eN.CanvasMutation},e)})),G=new tD({mutationCb:V,adoptedStyleSheetCb:e=>i(tP({type:eD.IncrementalSnapshot,data:Object.assign({source:eN.AdoptedStyleSheet},e)}))}),q=new tc({mirror:tB,mutationCb:V,stylesheetManager:G,recordCrossOriginIframes:x,wrappedEmit:i});for(let e of O||[])e.getMirror&&e.getMirror({nodeMirror:tB,crossOriginIframeMirror:q.crossOriginIframeMirror,crossOriginIframeStyleMirror:q.crossOriginIframeStyleMirror});let W=new tN;s=new tO({recordCanvas:w,mutationCb:z,win:window,blockClass:l,blockSelector:u,mirror:tB,sampling:A.canvas,dataURLOptions:T});let X=new th({mutationCb:V,scrollCb:H,bypassOptions:{blockClass:l,blockSelector:u,maskTextClass:d,maskTextSelector:f,inlineStylesheet:p,maskInputOptions:U,dataURLOptions:T,maskTextFn:E,maskInputFn:y,recordCanvas:w,inlineImages:I,sampling:A,slimDOMOptions:F,iframeManager:q,stylesheetManager:G,canvasManager:s,keepIframeSrcFn:D,processedNodeManager:W},mirror:tB});o=(e=!1)=>{if(!S)return;i(tP({type:eD.Meta,data:{href:window.location.href,width:ef(),height:ed()}}),e),G.reset(),X.init(),eY.forEach(e=>e.lock());let t=en(document,{mirror:tB,blockClass:l,blockSelector:u,maskTextClass:d,maskTextSelector:f,inlineStylesheet:p,maskAllInputs:U,maskTextFn:E,slimDOM:F,dataURLOptions:T,recordCanvas:w,inlineImages:I,onSerialize:e=>{eb(e,tB)&&q.addIframe(e),eA(e,tB)&&G.trackLinkElement(e),eT(e)&&X.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{q.attachIframe(e,t),X.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{G.attachLinkElement(e,t)},keepIframeSrcFn:D});if(!t)return console.warn("Failed to snapshot the document");i(tP({type:eD.FullSnapshot,data:{node:t,initialOffset:eh(window)}}),e),eY.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&G.adoptStyleSheets(document.adoptedStyleSheets,tB.getId(document))};try{let e=[],t=e=>{var t;return eX(ts)({mutationCb:V,mousemoveCb:(e,t)=>i(tP({type:eD.IncrementalSnapshot,data:{source:t,positions:e}})),mouseInteractionCb:e=>i(tP({type:eD.IncrementalSnapshot,data:Object.assign({source:eN.MouseInteraction},e)})),scrollCb:H,viewportResizeCb:e=>i(tP({type:eD.IncrementalSnapshot,data:Object.assign({source:eN.ViewportResize},e)})),inputCb:e=>i(tP({type:eD.IncrementalSnapshot,data:Object.assign({source:eN.Input},e)})),mediaInteractionCb:e=>i(tP({type:eD.IncrementalSnapshot,data:Object.assign({source:eN.MediaInteraction},e)})),styleSheetRuleCb:e=>i(tP({type:eD.IncrementalSnapshot,data:Object.assign({source:eN.StyleSheetRule},e)})),styleDeclarationCb:e=>i(tP({type:eD.IncrementalSnapshot,data:Object.assign({source:eN.StyleDeclaration},e)})),canvasMutationCb:z,fontCb:e=>i(tP({type:eD.IncrementalSnapshot,data:Object.assign({source:eN.Font},e)})),selectionCb:e=>{i(tP({type:eD.IncrementalSnapshot,data:Object.assign({source:eN.Selection},e)}))},customElementCb:e=>{i(tP({type:eD.IncrementalSnapshot,data:Object.assign({source:eN.CustomElement},e)}))},blockClass:l,ignoreClass:c,ignoreSelector:h,maskTextClass:d,maskTextSelector:f,maskInputOptions:U,inlineStylesheet:p,sampling:A,recordDOM:S,recordCanvas:w,inlineImages:I,userTriggeredOnInput:k,collectFonts:L,doc:e,maskInputFn:y,maskTextFn:E,keepIframeSrcFn:D,blockSelector:u,slimDOMOptions:F,dataURLOptions:T,mirror:tB,iframeManager:q,stylesheetManager:G,shadowDomManager:X,processedNodeManager:W,canvasManager:s,ignoreCSSAttributes:N,plugins:(null===(t=null==O?void 0:O.filter(e=>e.observer))||void 0===t?void 0:t.map(e=>({observer:e.observer,options:e.options,callback:t=>i(tP({type:eD.Plugin,data:{plugin:e.name,payload:t}}))})))||[]},_)};q.addLoadListener(r=>{try{e.push(t(r.contentDocument))}catch(e){console.warn(e)}});let r=()=>{o(),e.push(t(document)),tM=!0};return"interactive"===document.readyState||"complete"===document.readyState?r():(e.push(ei("DOMContentLoaded",()=>{i(tP({type:eD.DomContentLoaded,data:{}})),"DOMContentLoaded"===R&&r()})),e.push(ei("load",()=>{i(tP({type:eD.Load,data:{}})),"load"===R&&r()},window))),()=>{e.forEach(e=>e()),W.destroy(),tM=!1,eW()}}catch(e){console.warn(e)}}tU.addCustomEvent=(e,t)=>{if(!tM)throw Error("please add custom event after start recording");i(tP({type:eD.Custom,data:{tag:e,payload:t}}))},tU.freezePage=()=>{eY.forEach(e=>e.freeze())},tU.takeFullSnapshot=e=>{if(!tM)throw Error("please take full snapshot after start recording");o(e)},tU.mirror=tB;var tF=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(tF||{}),tj=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(tj||{}),tK={DEBUG:!1,LIB_VERSION:"2.54.0"};if("undefined"==typeof window){var tV={hostname:""};eL={navigator:{userAgent:""},document:{location:tV,referrer:""},screen:{width:0,height:0},location:tV}}else eL=window;var tH=864e5,tz=Array.prototype,t$=Function.prototype,tG=Object.prototype,tq=tz.slice,tW=tG.toString,tX=tG.hasOwnProperty,tY=eL.console,tQ=eL.navigator,tZ=eL.document,tJ=eL.opera,t0=eL.screen,t1=tQ.userAgent,t2=t$.bind,t3=tz.forEach,t4=tz.indexOf,t5=tz.map,t6=Array.isArray,t7={},t8={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},t9={log:function(){if(tK.DEBUG&&!t8.isUndefined(tY)&&tY)try{tY.log.apply(tY,arguments)}catch(e){t8.each(arguments,function(e){tY.log(e)})}},warn:function(){if(tK.DEBUG&&!t8.isUndefined(tY)&&tY){var e=["Mixpanel warning:"].concat(t8.toArray(arguments));try{tY.warn.apply(tY,e)}catch(t){t8.each(e,function(e){tY.warn(e)})}}},error:function(){if(tK.DEBUG&&!t8.isUndefined(tY)&&tY){var e=["Mixpanel error:"].concat(t8.toArray(arguments));try{tY.error.apply(tY,e)}catch(t){t8.each(e,function(e){tY.error(e)})}}},critical:function(){if(!t8.isUndefined(tY)&&tY){var e=["Mixpanel error:"].concat(t8.toArray(arguments));try{tY.error.apply(tY,e)}catch(t){t8.each(e,function(e){tY.error(e)})}}}},re=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(t9,arguments)}},rt=function(e){return{log:re(t9.log,e),error:re(t9.error,e),critical:re(t9.critical,e)}};t8.bind=function(e,t){var r,n;if(t2&&e.bind===t2)return t2.apply(e,tq.call(arguments,1));if(!t8.isFunction(e))throw TypeError();return r=tq.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(tq.call(arguments)));var i={};i.prototype=e.prototype;var o=new i;i.prototype=null;var s=e.apply(o,r.concat(tq.call(arguments)));return Object(s)===s?s:o}},t8.each=function(e,t,r){if(null!=e){if(t3&&e.forEach===t3)e.forEach(t,r);else if(e.length===+e.length){for(var n=0,i=e.length;n0&&(t[r]=e)}),t},t8.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):t8.isArray(e)?(r=[],t8.each(e,function(e){r.push(t8.truncate(e,t))})):t8.isObject(e)?(r={},t8.each(e,function(e,n){r[n]=t8.truncate(e,t)})):r=e,r},t8.JSONEncode=function(){return function(e){var t=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,function(e){var t=r[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'},r=function(e,n){var i="",o=" ",s=0,a="",l="",u=0,c=i,h=[],d=n[e];switch(d&&"object"==typeof d&&"function"==typeof d.toJSON&&(d=d.toJSON(e)),typeof d){case"string":return t(d);case"number":return isFinite(d)?String(d):"null";case"boolean":case"null":return String(d);case"object":if(!d)return"null";if(i+=o,h=[],"[object Array]"===tW.apply(d)){for(s=0,u=d.length;s="0"&&t<="9";)r+=t,s();if("."===t)for(r+=".";s()&&t>="0"&&t<="9";)r+=t;if("e"===t||"E"===t)for(r+=t,s(),("-"===t||"+"===t)&&(r+=t,s());t>="0"&&t<="9";)r+=t,s();if(isFinite(e=+r))return e;o("Bad number")},l=function(){var e,r,n,a="";if('"'===t)for(;s();){if('"'===t)return s(),a;if("\\"===t){if(s(),"u"===t){for(r=0,n=0;r<4&&isFinite(e=parseInt(s(),16));r+=1)n=16*n+e;a+=String.fromCharCode(n)}else if("string"==typeof i[t])a+=i[t];else break}else a+=t}o("Bad string")},u=function(){for(;t&&t<=" ";)s()},c=function(){switch(t){case"t":return s("t"),s("r"),s("u"),s("e"),!0;case"f":return s("f"),s("a"),s("l"),s("s"),s("e"),!1;case"n":return s("n"),s("u"),s("l"),s("l"),null}o('Unexpected "'+t+'"')},h=function(){var e=[];if("["===t){if(s("["),u(),"]"===t)return s("]"),e;for(;t;){if(e.push(n()),u(),"]"===t)return s("]"),e;s(","),u()}}o("Bad array")},d=function(){var e,r={};if("{"===t){if(s("{"),u(),"}"===t)return s("}"),r;for(;t;){if(e=l(),u(),s(":"),Object.hasOwnProperty.call(r,e)&&o('Duplicate key "'+e+'"'),r[e]=n(),u(),"}"===t)return s("}"),r;s(","),u()}}o("Bad object")};return n=function(){switch(u(),t){case"{":return d();case"[":return h();case'"':return l();case"-":return a();default:return t>="0"&&t<="9"?a():c()}},function(i){var s;return r=i,e=0,t=" ",s=n(),u(),t&&o("Syntax error"),s}}(),t8.base64Encode=function(e){var t,r,n,i,o,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=0,l=0,u="",c=[];if(!e)return e;e=t8.utf8Encode(e);do t=(o=e.charCodeAt(a++)<<16|e.charCodeAt(a++)<<8|e.charCodeAt(a++))>>18&63,r=o>>12&63,n=o>>6&63,i=63&o,c[l++]=s.charAt(t)+s.charAt(r)+s.charAt(n)+s.charAt(i);while(a127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==a&&(r>t&&(i+=e.substring(t,r)),i+=a,t=r=n+1)}return r>t&&(i+=e.substring(t,e.length)),i},t8.UUID=function(){var e=function(){var e,t=1*new Date;if(eL.performance&&eL.performance.now)e=eL.performance.now();else for(e=0;t==1*new Date;)e++;return t.toString(16)+Math.floor(e).toString(16)},t=function(){return Math.random().toString(16).replace(".","")},r=function(){var e,t,r=t1,n=[],i=0;function o(e,t){var r,i=0;for(r=0;r=4&&(i=o(i,n),n=[]);return n.length>0&&(i=o(i,n)),i.toString(16)};return function(){var n=(t0.height*t0.width).toString(16);return e()+"-"+t()+"-"+r()+"-"+n+"-"+e()}}();var rr=["ahrefsbot","ahrefssiteaudit","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandexbot","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];t8.isBlockedUA=function(e){var t;for(t=0,e=e.toLowerCase();t=0}function n(t){if(!tZ.getElementsByTagName)return[];var n=t.split(" "),i=[tZ];for(p=0;p-1){h=(c=u.split("#"))[0];var o=c[1],s=tZ.getElementById(o);if(!s||h&&s.nodeName.toLowerCase()!=h)return[];i=[s];continue}if(u.indexOf(".")>-1){h=(c=u.split("."))[0];var a=c[1];for(h||(h="*"),d=[],f=0,m=0;m-1};break;default:E=function(e){return e.getAttribute(_)}}for(m=0,i=[],y=0;m=3?t[2]:""},currentUrl:function(){return eL.location.href},properties:function(e){return"object"!=typeof e&&(e={}),t8.extend(t8.strip_empty_properties({$os:t8.info.os(),$browser:t8.info.browser(t1,tQ.vendor,tJ),$referrer:tZ.referrer,$referring_domain:t8.info.referringDomain(tZ.referrer),$device:t8.info.device(t1)}),{$current_url:t8.info.currentUrl(),$browser_version:t8.info.browserVersion(t1,tQ.vendor,tJ),$screen_height:t0.height,$screen_width:t0.width,mp_lib:"web",$lib_version:tK.LIB_VERSION,$insert_id:rl(),time:t8.timestamp()/1e3},t8.strip_empty_properties(e))},people_properties:function(){return t8.extend(t8.strip_empty_properties({$os:t8.info.os(),$browser:t8.info.browser(t1,tQ.vendor,tJ)}),{$browser_version:t8.info.browserVersion(t1,tQ.vendor,tJ)})},mpPageViewProperties:function(){return t8.strip_empty_properties({current_page_title:tZ.title,current_domain:eL.location.hostname,current_url_path:eL.location.pathname,current_url_protocol:eL.location.protocol,current_url_search:eL.location.search})}};var rl=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},ru=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,rc=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,rh=function(e){var t=rc,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=ru);var i=e.match(t);return i?i[0]:""},rd=null,rf=null;"undefined"!=typeof JSON&&(rd=JSON.stringify,rf=JSON.parse),rd=rd||t8.JSONEncode,rf=rf||t8.JSONDecode,t8.toArray=t8.toArray,t8.isObject=t8.isObject,t8.JSONEncode=t8.JSONEncode,t8.JSONDecode=t8.JSONDecode,t8.isBlockedUA=t8.isBlockedUA,t8.isEmptyObject=t8.isEmptyObject,t8.info=t8.info,t8.info.device=t8.info.device,t8.info.browser=t8.info.browser,t8.info.browserVersion=t8.info.browserVersion,t8.info.properties=t8.info.properties;var rp="__mp_opt_in_out_";function rm(e,t){rx(!0,e,t)}function rg(e,t){rx(!1,e,t)}function rv(e,t){return"1"===rS(e,t)}function ry(e,t){if(rw(t))return t9.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var r="0"===rS(e,t);return r&&t9.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function rE(e){return rR(e,function(e){return this.get_config(e)})}function r_(e){return rR(e,function(e){return this._get_config(e)})}function rb(e){return rR(e,function(e){return this._get_config(e)})}function rA(e,t){rT(t=t||{}).remove(rC(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function rT(e){return"localStorage"===(e=e||{}).persistenceType?t8.localStorage:t8.cookie}function rC(e,t){return((t=t||{}).persistencePrefix||rp)+e}function rS(e,t){return rT(t).get(rC(e,t))}function rw(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||eL,r=t.navigator||{},n=!1;return t8.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],function(e){t8.includes([!0,1,"1","yes"],e)&&(n=!0)}),n}function rx(e,t,r){if(!t8.isString(t)||!t.length){t9.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token");return}rT(r=r||{}).set(rC(t,r),e?1:0,t8.isNumber(r.cookieExpiration)?r.cookieExpiration:null,!!r.crossSubdomainCookie,!!r.secureCookie,!!r.crossSiteCookie,r.cookieDomain),r.track&&e&&r.track(r.trackEventName||"$opt_in",r.trackProperties,{send_immediately:!0})}function rR(e,t){return function(){var r=!1;try{var n=t.call(this,"token"),i=t.call(this,"ignore_dnt"),o=t.call(this,"opt_out_tracking_persistence_type"),s=t.call(this,"opt_out_tracking_cookie_prefix"),a=t.call(this,"window");n&&(r=ry(n,{ignoreDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(e){t9.error("Unexpected error when checking tracking opt-out status: "+e)}if(!r)return e.apply(this,arguments);var l=arguments[arguments.length-1];"function"==typeof l&&l(0)}}var rk=rt("lock"),rL=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3};rL.prototype.withLock=function(e,t,r){r||"function"==typeof t||(r=t,t=null);var n=r||new Date().getTime()+"|"+Math.random(),i=new Date().getTime(),o=this.storageKey,s=this.pollIntervalMS,a=this.timeoutMS,l=this.storage,u=o+":X",c=o+":Y",h=o+":Z",d=function(e){t&&t(e)},f=function(e){if(new Date().getTime()-i>a){rk.error("Timeout waiting for mutex on "+o+"; clearing lock. ["+n+"]"),l.removeItem(h),l.removeItem(c),g();return}setTimeout(function(){try{e()}catch(e){d(e)}},s*(Math.random()+.1))},p=function(e,t){e()?t():f(function(){p(e,t)})},m=function(){var e=l.getItem(c);if(e&&e!==n)return!1;if(l.setItem(c,n),l.getItem(c)===n)return!0;if(!ri(l,!0))throw Error("localStorage support dropped while acquiring lock");return!1},g=function(){l.setItem(u,n),p(m,function(){if(l.getItem(u)===n){v();return}f(function(){if(l.getItem(c)!==n){g();return}p(function(){return!l.getItem(h)},v)})})},v=function(){l.setItem(h,"1");try{e()}finally{l.removeItem(h),l.getItem(c)===n&&l.removeItem(c),l.getItem(u)===n&&l.removeItem(u)}};try{if(ri(l,!0))g();else throw Error("localStorage support check failed")}catch(e){d(e)}};var rI=rt("batch"),rO=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.reportError=t.errorReporter||t8.bind(rI.error,rI),this.lock=new rL(e,{storage:this.storage}),this.usePersistence=t.usePersistence,this.pid=t.pid||null,this.memQueue=[]};rO.prototype.enqueue=function(e,t,r){var n={id:rl(),flushAfter:new Date().getTime()+2*t,payload:e};this.usePersistence?this.lock.withLock(t8.bind(function(){var t;try{var i=this.readFromStorage();i.push(n),(t=this.saveToStorage(i))&&this.memQueue.push(n)}catch(r){this.reportError("Error enqueueing item",e),t=!1}r&&r(t)},this),t8.bind(function(e){this.reportError("Error acquiring storage lock",e),r&&r(!1)},this),this.pid):(this.memQueue.push(n),r&&r(!0))},rO.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);if(this.usePersistence&&t.lengtho.flushAfter&&!n[o.id]&&(o.orphaned=!0,t.push(o),t.length>=e))break}}}return t};var rD=function(e,t){var r=[];return t8.each(e,function(e){e.id&&!t[e.id]&&r.push(e)}),r};rO.prototype.removeItemsByID=function(e,t){var r={};if(t8.each(e,function(e){r[e]=!0}),this.memQueue=rD(this.memQueue,r),this.usePersistence){var n=t8.bind(function(){var t;try{var n=this.readFromStorage();if(n=rD(n,r),t=this.saveToStorage(n)){n=this.readFromStorage();for(var i=0;i5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[n]}),r=!1):this.reportError("[dupe] found item with no ID",{item:e}),r&&s.push(t)}a[e.id]=t},this),s.length<1){this.resetFlush();return}this.requestInProgress=!0;var l=t8.bind(function(s){this.requestInProgress=!1;try{var l=!1;if(e.unloading)this.queue.updatePayloads(a);else if(t8.isObject(s)&&"timeout"===s.error&&new Date().getTime()-r>=t)this.reportError("Network timeout; retrying"),this.flush();else if(t8.isObject(s)&&(s.httpStatusCode>=500||429===s.httpStatusCode||"timeout"===s.error)){var u=2*this.flushInterval;s.retryAfter&&(u=1e3*parseInt(s.retryAfter,10)||u),u=Math.min(rP,u),this.reportError("Error; retry in "+u+" ms"),this.scheduleFlush(u)}else if(t8.isObject(s)&&413===s.httpStatusCode){if(i.length>1){var c=Math.max(1,Math.floor(n/2));this.batchSize=Math.min(this.batchSize,c,i.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush()}else this.reportError("Single-event request too large; dropping",i),this.resetBatchSize(),l=!0}else l=!0;l&&(this.queue.removeItemsByID(t8.map(i,function(e){return e.id}),t8.bind(function(e){e?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!o?this.resetFlush():this.flush()):(this.reportError("Failed to remove items from queue"),++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush())},this)),t8.each(i,t8.bind(function(e){var t=e.id;t?(this.itemIdsSentSuccessfully[t]=this.itemIdsSentSuccessfully[t]||0,this.itemIdsSentSuccessfully[t]++,this.itemIdsSentSuccessfully[t]>5&&this.reportError("[dupe] item ID sent too many times",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError("[dupe] found item with no ID while removing",{item:e})},this)))}catch(e){this.reportError("Error handling API response",e),this.resetFlush()}},this),u={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};e.unloading&&(u.transport="sendBeacon"),rM.log("MIXPANEL REQUEST:",s),this.sendRequest(s,u,l)}catch(e){this.reportError("Error flushing request queue",e),this.resetFlush()}},rB.prototype.reportError=function(e,t){if(rM.error.apply(rM.error,arguments),this.errorReporter)try{t instanceof Error||(t=Error(e)),this.errorReporter(e,t)}catch(e){rM.error(e)}};var rU=rt("recorder"),rF=eL.CompressionStream,rj={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},rK=new Set([tj.MouseMove,tj.MouseInteraction,tj.Scroll,tj.ViewportResize,tj.Input,tj.TouchMove,tj.MediaInteraction,tj.Drag,tj.Selection]);function rV(e){return e.type===tF.IncrementalSnapshot&&rK.has(e.source)}var rH=function(e){this._mixpanel=e,this._stopRecording=null,this.recEvents=[],this.seqNo=0,this.replayId=null,this.replayStartTime=null,this.sendBatchId=null,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=tH,this._initBatcher()};rH.prototype._initBatcher=function(){this.batcher=new rB("__mprec",{libConfig:rj,sendRequestFunc:t8.bind(this.flushEventsWithOptOut,this),errorReporter:t8.bind(this.reportError,this),flushOnlyOnInterval:!0,usePersistence:!1})},rH.prototype.get_config=function(e){return this._mixpanel.get_config(e)},rH.prototype.startRecording=function(){if(null!==this._stopRecording){rU.log("Recording already in progress, skipping startRecording.");return}this.recordMaxMs=this.get_config("record_max_ms"),this.recordMaxMs>tH&&(this.recordMaxMs=tH,rU.critical("record_max_ms cannot be greater than "+tH+"ms. Capping value.")),this.recEvents=[],this.seqNo=0,this.replayStartTime=null,this.replayId=t8.UUID(),this.batcher.start();var e=t8.bind(function(){clearTimeout(this.idleTimeoutId),this.idleTimeoutId=setTimeout(t8.bind(function(){rU.log("Idle timeout reached, restarting recording."),this.resetRecording()},this),this.get_config("record_idle_timeout_ms"))},this);this._stopRecording=tU({emit:t8.bind(function(t){this.batcher.enqueue(t),rV(t)&&e()},this),blockClass:this.get_config("record_block_class"),blockSelector:this.get_config("record_block_selector"),collectFonts:this.get_config("record_collect_fonts"),inlineImages:this.get_config("record_inline_images"),maskAllInputs:!0,maskTextClass:this.get_config("record_mask_text_class"),maskTextSelector:this.get_config("record_mask_text_selector")}),e(),this.maxTimeoutId=setTimeout(t8.bind(this.resetRecording,this),this.recordMaxMs)},rH.prototype.resetRecording=function(){this.stopRecording(),this.startRecording()},rH.prototype.stopRecording=function(){null!==this._stopRecording&&(this._stopRecording(),this._stopRecording=null),this.batcher.flush(),this.replayId=null,clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId)},rH.prototype.flushEventsWithOptOut=function(e,t,r){this._flushEvents(e,t,r,t8.bind(this._onOptOut,this))},rH.prototype._onOptOut=function(e){0===e&&(this.recEvents=[],this.stopRecording())},rH.prototype._sendRequest=function(e,t,r){var n=t8.bind(function(e,t){200===e.status&&this.seqNo++,r({status:0,httpStatusCode:e.status,responseBody:t,retryAfter:e.headers.get("Retry-After")})},this);eL.fetch(this.get_config("api_host")+"/"+this.get_config("api_routes").record+"?"+new URLSearchParams(e),{method:"POST",headers:{Authorization:"Basic "+btoa(this.get_config("token")+":"),"Content-Type":"application/octet-stream"},body:t}).then(function(e){e.json().then(function(t){n(e,t)}).catch(function(e){r({error:e})})}).catch(function(e){r({error:e})})},rH.prototype._flushEvents=rE(function(e,t,r){let n=e.length;if(n>0){var i=e[0].timestamp;0===this.seqNo&&(this.replayStartTime=i);var o=e[n-1].timestamp-this.replayStartTime,s={distinct_id:String(this._mixpanel.get_distinct_id()),seq:this.seqNo,batch_start_time:i/1e3,replay_id:this.replayId,replay_length_ms:o,replay_start_time:this.replayStartTime/1e3},a=t8.JSONEncode(e),l=this._mixpanel.get_property("$device_id");l&&(s.$device_id=l);var u=this._mixpanel.get_property("$user_id");u&&(s.$user_id=u),rF?new Response(new Blob([a],{type:"application/json"}).stream().pipeThrough(new rF("gzip"))).blob().then(t8.bind(function(e){s.format="gzip",this._sendRequest(s,e,r)},this)):(s.format="body",this._sendRequest(s,a,r))}}),rH.prototype.reportError=function(e,t){rU.error.apply(rU.error,arguments);try{t||e instanceof Error||(e=Error(e)),this.get_config("error_reporter")(e,t)}catch(e){rU.error(e)}},eL.__mp_recorder=rH;var rz=function(){};rz.prototype.create_properties=function(){},rz.prototype.event_handler=function(){},rz.prototype.after_track_handler=function(){},rz.prototype.init=function(e){return this.mp=e,this},rz.prototype.track=function(e,t,r,n){var i=this,o=t8.dom_query(e);if(0===o.length){t9.error("The DOM query ("+e+") returned 0 elements");return}return t8.each(o,function(e){t8.register_event(e,this.override_event,function(e){var o={},s=i.create_properties(r,this),a=i.mp.get_config("track_links_timeout");i.event_handler(e,this,o),window.setTimeout(i.track_callback(n,s,o,!0),a),i.mp.track(t,s,i.track_callback(n,s,o))})},this),!0},rz.prototype.track_callback=function(e,t,r,n){n=n||!1;var i=this;return function(){!r.callback_fired&&(r.callback_fired=!0,e&&!1===e(n,t)||i.after_track_handler(t,r,n))}},rz.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):t8.extend({},e)};var r$=function(){this.override_event="click"};t8.inherit(r$,rz),r$.prototype.create_properties=function(e,t){var r=r$.superclass.create_properties.apply(this,arguments);return t.href&&(r.url=t.href),r},r$.prototype.event_handler=function(e,t,r){r.new_tab=2===e.which||e.metaKey||e.ctrlKey||"_blank"===t.target,r.href=t.href,r.new_tab||e.preventDefault()},r$.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var rG=function(){this.override_event="submit"};t8.inherit(rG,rz),rG.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},rG.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var rq="$set",rW="$set_once",rX="$unset",rY="$add",rQ="$append",rZ="$union",rJ="$remove",r0="$delete",r1={set_action:function(e,t){var r={},n={};return t8.isObject(e)?t8.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[rq]=n,r},unset_action:function(e){var t={},r=[];return t8.isArray(e)||(e=[e]),t8.each(e,function(e){this._is_reserved_property(e)||r.push(e)},this),t[rX]=r,t},set_once_action:function(e,t){var r={},n={};return t8.isObject(e)?t8.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[rW]=n,r},union_action:function(e,t){var r={},n={};return t8.isObject(e)?t8.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=t8.isArray(e)?e:[e])},this):n[e]=t8.isArray(t)?t:[t],r[rZ]=n,r},append_action:function(e,t){var r={},n={};return t8.isObject(e)?t8.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[rQ]=n,r},remove_action:function(e,t){var r={},n={};return t8.isObject(e)?t8.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[rJ]=n,r},delete_action:function(){var e={};return e[r0]="",e}},r2=function(){};t8.extend(r2.prototype,r1),r2.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},r2.prototype.set=rb(function(e,t,r){var n=this.set_action(e,t);return t8.isObject(e)&&(r=t),this._send_request(n,r)}),r2.prototype.set_once=rb(function(e,t,r){var n=this.set_once_action(e,t);return t8.isObject(e)&&(r=t),this._send_request(n,r)}),r2.prototype.unset=rb(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),r2.prototype.union=rb(function(e,t,r){t8.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),r2.prototype.delete=rb(function(e){var t=this.delete_action();return this._send_request(t,e)}),r2.prototype.remove=rb(function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)}),r2.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var r=t8.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,endpoint:this._get_config("api_host")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)},r2.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},r2.prototype._get_config=function(e){return this._mixpanel.get_config(e)},r2.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},r2.prototype.remove=r2.prototype.remove,r2.prototype.set=r2.prototype.set,r2.prototype.set_once=r2.prototype.set_once,r2.prototype.union=r2.prototype.union,r2.prototype.unset=r2.prototype.unset,r2.prototype.toString=r2.prototype.toString;var r3=function(){};t8.extend(r3.prototype,r1),r3.prototype._init=function(e){this._mixpanel=e},r3.prototype.set=r_(function(e,t,r){var n=this.set_action(e,t);return t8.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),n[rq]=t8.extend({},t8.info.people_properties(),n[rq]),this._send_request(n,r)}),r3.prototype.set_once=r_(function(e,t,r){var n=this.set_once_action(e,t);return t8.isObject(e)&&(r=t),this._send_request(n,r)}),r3.prototype.unset=r_(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),r3.prototype.increment=r_(function(e,t,r){var n={},i={};return t8.isObject(e)?(t8.each(e,function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e))){t9.error("Invalid increment value passed to mixpanel.people.increment - must be a number");return}i[t]=e}},this),r=t):(t8.isUndefined(t)&&(t=1),i[e]=t),n[rY]=i,this._send_request(n,r)}),r3.prototype.append=r_(function(e,t,r){t8.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)}),r3.prototype.remove=r_(function(e,t,r){t8.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)}),r3.prototype.union=r_(function(e,t,r){t8.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),r3.prototype.track_charge=r_(function(e,t,r){if(!t8.isNumber(e)&&isNaN(e=parseFloat(e))){t9.error("Invalid value passed to mixpanel.people.track_charge - must be a number");return}return this.append("$transactions",t8.extend({$amount:e},t),r)}),r3.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},r3.prototype.delete_user=function(){if(!this._identify_called()){t9.error("mixpanel.people.delete_user() requires you to call identify() first");return}var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)},r3.prototype.toString=function(){return this._mixpanel.toString()+".people"},r3.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var r=this._mixpanel.get_property("$device_id"),n=this._mixpanel.get_property("$user_id"),i=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e.$device_id=r),n&&(e.$user_id=n),i&&(e.$had_persisted_distinct_id=i);var o=t8.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:o,endpoint:this._get_config("api_host")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),t8.isUndefined(t)||t(this._get_config("verbose")?{status:-1,error:null}:-1),t8.truncate(o,255))},r3.prototype._get_config=function(e){return this._mixpanel.get_config(e)},r3.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},r3.prototype._enqueue=function(e){rq in e?this._mixpanel.persistence._add_to_people_queue(rq,e):rW in e?this._mixpanel.persistence._add_to_people_queue(rW,e):rX in e?this._mixpanel.persistence._add_to_people_queue(rX,e):rY in e?this._mixpanel.persistence._add_to_people_queue(rY,e):rQ in e?this._mixpanel.persistence._add_to_people_queue(rQ,e):rJ in e?this._mixpanel.persistence._add_to_people_queue(rJ,e):rZ in e?this._mixpanel.persistence._add_to_people_queue(rZ,e):t9.error("Invalid call to _enqueue():",e)},r3.prototype._flush_one_queue=function(e,t,r,n){var i=this,o=t8.extend({},this._mixpanel.persistence.load_queue(e)),s=o;!t8.isUndefined(o)&&t8.isObject(o)&&!t8.isEmptyObject(o)&&(i._mixpanel.persistence._pop_from_people_queue(e,o),i._mixpanel.persistence.save(),n&&(s=n(o)),t.call(i,s,function(t,n){0===t&&i._mixpanel.persistence._add_to_people_queue(e,o),t8.isUndefined(r)||r(t,n)}))},r3.prototype._flush=function(e,t,r,n,i,o,s){var a=this;this._flush_one_queue(rq,this.set,e),this._flush_one_queue(rW,this.set_once,n),this._flush_one_queue(rX,this.unset,o,function(e){return t8.keys(e)}),this._flush_one_queue(rY,this.increment,t),this._flush_one_queue(rZ,this.union,i);var l=this._mixpanel.persistence.load_queue(rQ);if(!t8.isUndefined(l)&&t8.isArray(l)&&l.length)for(var u,c=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(rQ,u),t8.isUndefined(r)||r(e,t)},h=l.length-1;h>=0;h--)u=(l=this._mixpanel.persistence.load_queue(rQ)).pop(),a._mixpanel.persistence.save(),t8.isEmptyObject(u)||a.append(u,c);var d=this._mixpanel.persistence.load_queue(rJ);if(!t8.isUndefined(d)&&t8.isArray(d)&&d.length)for(var f,p=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(rJ,f),t8.isUndefined(s)||s(e,t)},m=d.length-1;m>=0;m--)f=(d=this._mixpanel.persistence.load_queue(rJ)).pop(),a._mixpanel.persistence.save(),t8.isEmptyObject(f)||a.remove(f,p)},r3.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},r3.prototype.set=r3.prototype.set,r3.prototype.set_once=r3.prototype.set_once,r3.prototype.unset=r3.prototype.unset,r3.prototype.increment=r3.prototype.increment,r3.prototype.append=r3.prototype.append,r3.prototype.remove=r3.prototype.remove,r3.prototype.union=r3.prototype.union,r3.prototype.track_charge=r3.prototype.track_charge,r3.prototype.clear_charges=r3.prototype.clear_charges,r3.prototype.delete_user=r3.prototype.delete_user,r3.prototype.toString=r3.prototype.toString;var r4="__mps",r5="__mpso",r6="__mpus",r7="__mpa",r8="__mpap",r9="__mpr",ne="__mpu",nt="$people_distinct_id",nr="__alias",nn="__timers",ni=[r4,r5,r6,r7,r8,r9,ne,nt,nr,nn],no=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;"cookie"!==t&&"localStorage"!==t&&(t9.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&t8.localStorage.is_supported()?this.storage=t8.localStorage:this.storage=t8.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};no.prototype.properties=function(){var e={};return this.load(),t8.each(this.props,function(t,r){t8.include(ni,r)||(e[r]=t)}),e},no.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=t8.extend({},e))}},no.prototype.upgrade=function(){var e,t;this.storage===t8.localStorage?(e=t8.cookie.parse(this.name),t8.cookie.remove(this.name),t8.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===t8.cookie&&(t=t8.localStorage.parse(this.name),t8.localStorage.remove(this.name),t&&this.register_once(t))},no.prototype.save=function(){this.disabled||this.storage.set(this.name,t8.JSONEncode(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},no.prototype.load_prop=function(e){return this.load(),this.props[e]},no.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},no.prototype.clear=function(){this.remove(),this.props={}},no.prototype.register_once=function(e,t,r){return!!t8.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),t8.each(e,function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)},this),this.save(),!0)},no.prototype.register=function(e,t){return!!t8.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),t8.extend(this.props,e),this.save(),!0)},no.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},no.prototype.update_search_keyword=function(e){this.register(t8.info.searchInfo(e))},no.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:t8.info.referringDomain(e)||"$direct"},"")},no.prototype.get_referrer_info=function(){return t8.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},no.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)},no.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},no.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},no.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},no.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},no.prototype.get_cross_subdomain=function(){return this.cross_subdomain},no.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},no.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],i=this._get_or_create_queue(rq),o=this._get_or_create_queue(rW),s=this._get_or_create_queue(rX),a=this._get_or_create_queue(rY),l=this._get_or_create_queue(rZ),u=this._get_or_create_queue(rJ,[]),c=this._get_or_create_queue(rQ,[]);r===r4?(t8.extend(i,n),this._pop_from_people_queue(rY,n),this._pop_from_people_queue(rZ,n),this._pop_from_people_queue(rX,n)):r===r5?(t8.each(n,function(e,t){t in o||(o[t]=e)}),this._pop_from_people_queue(rX,n)):r===r6?t8.each(n,function(e){t8.each([i,o,a,l],function(t){e in t&&delete t[e]}),t8.each(c,function(t){e in t&&delete t[e]}),s[e]=!0}):r===r7?(t8.each(n,function(e,t){t in i?i[t]+=e:(t in a||(a[t]=0),a[t]+=e)},this),this._pop_from_people_queue(rX,n)):r===ne?(t8.each(n,function(e,t){t8.isArray(e)&&(t in l||(l[t]=[]),l[t]=l[t].concat(e))}),this._pop_from_people_queue(rX,n)):r===r9?(u.push(n),this._pop_from_people_queue(rQ,n)):r===r8&&(c.push(n),this._pop_from_people_queue(rX,n)),t9.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),t9.log(t),this.save()},no.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];t8.isUndefined(r)||t8.each(t,function(t,n){e===rQ||e===rJ?t8.each(r,function(e){e[n]===t&&delete e[n]}):delete r[n]},this)},no.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},no.prototype._get_queue_key=function(e){return e===rq?r4:e===rW?r5:e===rX?r6:e===rY?r7:e===rQ?r8:e===rJ?r9:e===rZ?ne:void t9.error("Invalid queue:",e)},no.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=t8.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)},no.prototype.set_event_timer=function(e,t){var r=this.load_prop(nn)||{};r[e]=t,this.props[nn]=r,this.save()},no.prototype.remove_event_timer=function(e){var t=(this.load_prop(nn)||{})[e];return t8.isUndefined(t)||(delete this.props[nn][e],this.save()),t};var ns=function(e,t){throw Error(e+" not available in this build.")},na=0,nl=1,nu=function(e){return e},nc=function(){},nh="mixpanel",nd="base64",nf="json",np="$device:",nm=eL.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,ng=!nm&&-1===t1.indexOf("MSIE")&&-1===t1.indexOf("Mozilla"),nv=null;tQ.sendBeacon&&(nv=function(){return tQ.sendBeacon.apply(tQ,arguments)});var ny={track:"track/",engage:"engage/",groups:"groups/",record:"record/"},nE={api_host:"https://api-js.mixpanel.com",api_routes:ny,api_method:"POST",api_transport:"XHR",api_payload_format:nd,app_host:"https://mixpanel.com",cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:nc,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:nc,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_block_class:RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video",record_collect_fonts:!1,record_idle_timeout_ms:18e5,record_inline_images:!1,record_mask_text_class:RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),record_mask_text_selector:"*",record_max_ms:tH,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},n_=!1,nb=function(){},nA=function(e,t,r){var n,i=r===nh?eO:eO[r];if(i&&eI===na)n=i;else{if(i&&!t8.isArray(i)){t9.error("You have already initialized "+r);return}n=new nb}if(n._cached_groups={},n._init(e,t,r),n.people=new r3,n.people._init(n),!n.get_config("skip_first_touch_marketing")){var o=t8.info.campaignParams(null),s={},a=!1;t8.each(o,function(e,t){s["initial_"+t]=e,e&&(a=!0)}),a&&n.people.set_once(s)}return tK.DEBUG=tK.DEBUG||n.get_config("debug"),!t8.isUndefined(i)&&t8.isArray(i)&&(n._execute_array.call(n.people,i.people),n._execute_array(i)),n};nb.prototype.init=function(e,t,r){if(t8.isUndefined(r)){this.report_error("You must name your new library: init(token, config, name)");return}if(r===nh){this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");return}var n=nA(e,t,r);return eO[r]=n,n._loaded(),n},nb.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var n={};if(!("api_payload_format"in t)&&(t.api_host||nE.api_host).match(/\.mixpanel\.com/)&&(n.api_payload_format=nf),this.set_config(t8.extend({},nE,n,t,{name:r,token:e,callback_fn:(r===nh?r:nh+"."+r)+"._jsc"})),this._jsc=nc,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests){if(t8.localStorage.is_supported(!0)&&nm){if(this.init_batchers(),nv&&eL.addEventListener){var i=t8.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);eL.addEventListener("pagehide",function(e){e.persisted&&i()}),eL.addEventListener("visibilitychange",function(){"hidden"===tZ.visibilityState&&i()})}}else this._batch_requests=!1,t9.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),t8.each(this.get_batcher_configs(),function(e){t9.log("Clearing batch queue "+e.queue_key),t8.localStorage.remove(e.queue_key)})}this.persistence=this.cookie=new no(this.config),this.unpersisted_superprops={},this._gdpr_init();var o=t8.UUID();this.get_distinct_id()||this.register_once({distinct_id:np+o,$device_id:o},"");var s=this.get_config("track_pageview");s&&this._init_url_change_tracking(s),this.get_config("record_sessions_percent")>0&&100*Math.random()<=this.get_config("record_sessions_percent")&&this.start_session_recording()},nb.prototype.start_session_recording=rE(function(){if(!eL.MutationObserver){t9.critical("Browser does not support MutationObserver; skipping session recording");return}var e=t8.bind(function(){this._recorder=this._recorder||new eL.__mp_recorder(this),this._recorder.startRecording()},this);t8.isUndefined(eL.__mp_recorder)?ns(this.get_config("recorder_src"),e):e()}),nb.prototype.stop_session_recording=function(){this._recorder?this._recorder.stopRecording():t9.critical("Session recorder module not loaded")},nb.prototype.get_session_recording_properties=function(){var e={};if(this._recorder){var t=this._recorder.replayId;t&&(e.$mp_replay_id=t)}return e},nb.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=t8.info.campaignParams(null);t8.each(e,(function(e,t){this.unregister(t)}).bind(this))}},nb.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(tZ.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(t8.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(tZ.referrer)},nb.prototype._dom_loaded=function(){t8.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||t8.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},nb.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!n_)return this.__dom_loaded_queue.push([e,t]),!1;var r=new e().init(this);return r.track.apply(r,t)},nb.prototype._init_url_change_tracking=function(e){var t="";if(this.track_pageview()&&(t=t8.info.currentUrl()),t8.include(["full-url","url-with-path-and-query-string","url-with-path"],e)){eL.addEventListener("popstate",function(){eL.dispatchEvent(new Event("mp_locationchange"))}),eL.addEventListener("hashchange",function(){eL.dispatchEvent(new Event("mp_locationchange"))});var r=eL.history.pushState;"function"==typeof r&&(eL.history.pushState=function(e,t,n){r.call(eL.history,e,t,n),eL.dispatchEvent(new Event("mp_locationchange"))});var n=eL.history.replaceState;"function"==typeof n&&(eL.history.replaceState=function(e,t,r){n.call(eL.history,e,t,r),eL.dispatchEvent(new Event("mp_locationchange"))}),eL.addEventListener("mp_locationchange",(function(){var r=t8.info.currentUrl(),n=!1;"full-url"===e?n=r!==t:"url-with-path-and-query-string"===e?n=r.split("#")[0]!==t.split("#")[0]:"url-with-path"===e&&(n=r.split("#")[0].split("?")[0]!==t.split("#")[0].split("?")[0]),n&&this.track_pageview()&&(t=r)}).bind(this))}},nb.prototype._prepare_callback=function(e,t){if(t8.isUndefined(e))return null;if(nm)return function(r){e(r,t)};var r=this._jsc,n=""+Math.floor(1e8*Math.random()),i=this.get_config("callback_fn")+"["+n+"]";return r[n]=function(i){delete r[n],e(i,t)},i},nb.prototype._send_request=function(e,t,r,n){var i=!0;if(ng)return this.__request_queue.push(arguments),i;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;!n&&(t8.isFunction(r)||"string"==typeof r)&&(n=r,r=null),r=t8.extend(o,r||{}),nm||(r.method="GET");var a="POST"===r.method,l=nv&&a&&"sendbeacon"===r.transport.toLowerCase(),u=r.verbose;t.verbose&&(u=!0),this.get_config("test")&&(t.test=1),u&&(t.verbose=1),this.get_config("img")&&(t.img=1),!nm&&(n?t.callback=n:(u||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=new Date().getTime().toString(),a&&(s="data="+encodeURIComponent(t.data),delete t.data),e+="?"+t8.HTTPBuildQuery(t);var c=this;if("img"in t){var h=tZ.createElement("img");h.src=e,tZ.body.appendChild(h)}else if(l){try{i=nv(e,s)}catch(e){c.report_error(e),i=!1}try{n&&n(i?1:0)}catch(e){c.report_error(e)}}else if(nm)try{var d=new XMLHttpRequest;d.open(r.method,e,!0);var f=this.get_config("xhr_headers");if(a&&(f["Content-Type"]="application/x-www-form-urlencoded"),t8.each(f,function(e,t){d.setRequestHeader(t,e)}),r.timeout_ms&&void 0!==d.timeout){d.timeout=r.timeout_ms;var p=new Date().getTime()}d.withCredentials=!0,d.onreadystatechange=function(){if(4===d.readyState){if(200===d.status){if(n){if(u){try{e=t8.JSONDecode(d.responseText)}catch(t){if(c.report_error(t),!r.ignore_json_errors)return;e=d.responseText}n(e)}else n(Number(d.responseText))}}else if(t=d.timeout&&!d.status&&new Date().getTime()-p>=d.timeout?"timeout":"Bad HTTP status: "+d.status+" "+d.statusText,c.report_error(t),n){if(u){var e,t,i=d.responseHeaders||{};n({status:0,httpStatusCode:d.status,error:t,retryAfter:i["Retry-After"]})}else n(0)}}},d.send(s)}catch(e){c.report_error(e),i=!1}else{var m=tZ.createElement("script");m.type="text/javascript",m.async=!0,m.defer=!0,m.src=e;var g=tZ.getElementsByTagName("script")[0];g.parentNode.insertBefore(m,g)}return i},nb.prototype._execute_array=function(e){var t,r=[],n=[],i=[];t8.each(e,function(e){e&&(t=e[0],t8.isArray(t)?i.push(e):"function"==typeof e?e.call(this):t8.isArray(e)&&"alias"===t?r.push(e):t8.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?i.push(e):n.push(e))},this);var o=function(e,t){t8.each(e,function(e){if(t8.isArray(e[0])){var r=t;t8.each(e,function(e){r=r[e[0]].apply(r,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};o(r,this),o(n,this),o(i,this)},nb.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},nb.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token"),t=this.get_config("api_routes");return this._batcher_configs=this._batcher_configs||{events:{type:"events",endpoint:"/"+t.track,queue_key:e+"_ev"},people:{type:"people",endpoint:"/"+t.engage,queue_key:e+"_pp"},groups:{type:"groups",endpoint:"/"+t.groups,queue_key:e+"_gr"}},this._batcher_configs},nb.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=t8.bind(function(e){return new rB(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:t8.bind(function(t,r,n){this._send_request(this.get_config("api_host")+e.endpoint,this._encode_data_for_request(t),r,this._prepare_callback(n,t))},this),beforeSendHook:t8.bind(function(t){return this._run_hook("before_send_"+e.type,t)},this),stopAllBatchingFunc:t8.bind(this.stop_batch_senders,this),usePersistence:!0})},this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},nb.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,t8.each(this.request_batchers,function(e){e.start()}))},nb.prototype.stop_batch_senders=function(){this._batch_requests=!1,t8.each(this.request_batchers,function(e){e.stop(),e.clear()})},nb.prototype.push=function(e){this._execute_array([e])},nb.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},nb.prototype._encode_data_for_request=function(e){var t=t8.JSONEncode(e);return this.get_config("api_payload_format")===nd&&(t=t8.base64Encode(t)),{data:t}},nb.prototype._track_or_batch=function(e,t){var r=t8.truncate(e.data,255),n=e.endpoint,i=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};t=t||nc;var a=!0,l=t8.bind(function(){return(s.skip_hooks||(r=this._run_hook("before_send_"+e.type,r)),r)?(t9.log("MIXPANEL REQUEST:"),t9.log(r),this._send_request(n,this._encode_data_for_request(r),s,this._prepare_callback(t,r))):null},this);return this._batch_requests&&!o?i.enqueue(r,function(e){e?t(1,r):l()}):a=l(),a&&r},nb.prototype.track=rE(function(e,t,r,n){n||"function"!=typeof r||(n=r,r=null);var i=(r=r||{}).transport;i&&(r.transport=i);var o=r.send_immediately;if("function"!=typeof n&&(n=nc),t8.isUndefined(e)){this.report_error("No event name provided to mixpanel.track");return}if(this._event_is_disabled(e)){n(0);return}(t=t8.extend({},t)).token=this.get_config("token");var s=this.persistence.remove_event_timer(e);if(!t8.isUndefined(s)){var a=new Date().getTime()-s;t.$duration=parseFloat((a/1e3).toFixed(3))}this._set_default_superprops();var l=this.get_config("track_marketing")?t8.info.marketingParams():{};t=t8.extend({},t8.info.properties({mp_loader:this.get_config("mp_loader")}),l,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var u=this.get_config("property_blacklist");t8.isArray(u)?t8.each(u,function(e){delete t[e]}):this.report_error("Invalid value for property_blacklist config: "+u);var c={event:e,properties:t};return this._track_or_batch({type:"events",data:c,endpoint:this.get_config("api_host")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:o,send_request_options:r},n)}),nb.prototype.set_group=rE(function(e,t,r){t8.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this.people.set(e,t,r)}),nb.prototype.add_group=rE(function(e,t,r){var n=this.get_property(e),i={};return void 0===n?(i[e]=[t],this.register(i)):-1===n.indexOf(t)&&(n.push(t),i[e]=n,this.register(i)),this.people.union(e,t,r)}),nb.prototype.remove_group=rE(function(e,t,r){var n=this.get_property(e);if(void 0!==n){var i=n.indexOf(t);i>-1&&(n.splice(i,1),this.register({group_key:n})),0===n.length&&this.unregister(e)}return this.people.remove(e,t,r)}),nb.prototype.track_with_groups=rE(function(e,t,r,n){var i=t8.extend({},t||{});return t8.each(r,function(e,t){null!=e&&(i[t]=e)}),this.track(e,i,n)}),nb.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},nb.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},nb.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),n=this._cached_groups[r];return(void 0===n||n._group_key!==e||n._group_id!==t)&&((n=new r2)._init(this,e,t),this._cached_groups[r]=n),n},nb.prototype.track_pageview=rE(function(e,t){"object"!=typeof e&&(e={});var r=(t=t||{}).event_name||"$mp_web_page_view",n=t8.extend(t8.info.mpPageViewProperties(),t8.info.campaignParams(),t8.info.clickParams()),i=t8.extend({},n,e);return this.track(r,i)}),nb.prototype.track_links=function(){return this._track_dom.call(this,r$,arguments)},nb.prototype.track_forms=function(){return this._track_dom.call(this,rG,arguments)},nb.prototype.time_event=function(e){if(t8.isUndefined(e)){this.report_error("No event name provided to mixpanel.time_event");return}this._event_is_disabled(e)||this.persistence.set_event_timer(e,new Date().getTime())};var nT={persistent:!0},nC=function(e){var t;return t=t8.isObject(e)?e:t8.isUndefined(e)?{}:{days:e},t8.extend({},nT,t)};nb.prototype.register=function(e,t){var r=nC(t);r.persistent?this.persistence.register(e,r.days):t8.extend(this.unpersisted_superprops,e)},nb.prototype.register_once=function(e,t,r){var n=nC(r);n.persistent?this.persistence.register_once(e,t,n.days):(void 0===t&&(t="None"),t8.each(e,function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)},this))},nb.prototype.unregister=function(e,t){(t=nC(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]},nb.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},nb.prototype.identify=function(e,t,r,n,i,o,s,a){var l=this.get_distinct_id();if(e&&l!==e){if("string"==typeof e&&0===e.indexOf(np))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var u=l;this.register_once({$had_persisted_distinct_id:!0,$device_id:u},"")}e!==l&&e!==this.get_property(nr)&&(this.unregister(nr),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,n,i,o,s,a),e!==l&&this.track("$identify",{distinct_id:e,$anon_distinct_id:l},{skip_hooks:!0})},nb.prototype.reset=function(){this.persistence.clear(),this._flags.identify_called=!1;var e=t8.UUID();this.register_once({distinct_id:np+e,$device_id:e},"")},nb.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},nb.prototype.alias=function(e,t){if(e===this.get_property(nt))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return(t8.isUndefined(t)&&(t=this.get_distinct_id()),e!==t)?(this._register_single(nr,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},function(){r.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},nb.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},nb.prototype.set_config=function(e){t8.isObject(e)&&(t8.extend(this.config,e),e.batch_size&&t8.each(this.request_batchers,function(e){e.resetBatchSize()}),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),tK.DEBUG=tK.DEBUG||this.get_config("debug"))},nb.prototype.get_config=function(e){return this.config[e]},nb.prototype._run_hook=function(e){var t=(this.config.hooks[e]||nu).apply(this,tq.call(arguments,1));return void 0===t&&(this.report_error(e+" hook did not return a value"),t=null),t},nb.prototype.get_property=function(e){return this.persistence.load_prop([e])},nb.prototype.toString=function(){var e=this.get_config("name");return e!==nh&&(e=nh+"."+e),e},nb.prototype._event_is_disabled=function(e){return t8.isBlockedUA(t1)||this._flags.disable_all_events||t8.include(this.__disabled_events,e)},nb.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&t8.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):!this.has_opted_in_tracking()&&(this.get_config("opt_out_tracking_by_default")||t8.cookie.get("mp_optout"))&&(t8.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},nb.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else{if(!e||!e.enable_persistence)return;t=!1}this.get_config("disable_persistence")||this.persistence.disabled===t||this.persistence.set_disabled(t),t?this.stop_batch_senders():this._batchers_were_started&&this.start_batch_senders()},nb.prototype._gdpr_call_func=function(e,t){return t=t8.extend({track:t8.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),t8.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})},nb.prototype.opt_in_tracking=function(e){e=t8.extend({enable_persistence:!0},e),this._gdpr_call_func(rm,e),this._gdpr_update_persistence(e)},nb.prototype.opt_out_tracking=function(e){(e=t8.extend({clear_persistence:!0,delete_user:!0},e)).delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(rg,e),this._gdpr_update_persistence(e)},nb.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(rv,e)},nb.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(ry,e)},nb.prototype.clear_opt_in_out_tracking=function(e){e=t8.extend({enable_persistence:!0},e),this._gdpr_call_func(rA,e),this._gdpr_update_persistence(e)},nb.prototype.report_error=function(e,t){t9.error.apply(t9.error,arguments);try{t||e instanceof Error||(e=Error(e)),this.get_config("error_reporter")(e,t)}catch(e){t9.error(e)}},nb.prototype.init=nb.prototype.init,nb.prototype.reset=nb.prototype.reset,nb.prototype.disable=nb.prototype.disable,nb.prototype.time_event=nb.prototype.time_event,nb.prototype.track=nb.prototype.track,nb.prototype.track_links=nb.prototype.track_links,nb.prototype.track_forms=nb.prototype.track_forms,nb.prototype.track_pageview=nb.prototype.track_pageview,nb.prototype.register=nb.prototype.register,nb.prototype.register_once=nb.prototype.register_once,nb.prototype.unregister=nb.prototype.unregister,nb.prototype.identify=nb.prototype.identify,nb.prototype.alias=nb.prototype.alias,nb.prototype.name_tag=nb.prototype.name_tag,nb.prototype.set_config=nb.prototype.set_config,nb.prototype.get_config=nb.prototype.get_config,nb.prototype.get_property=nb.prototype.get_property,nb.prototype.get_distinct_id=nb.prototype.get_distinct_id,nb.prototype.toString=nb.prototype.toString,nb.prototype.opt_out_tracking=nb.prototype.opt_out_tracking,nb.prototype.opt_in_tracking=nb.prototype.opt_in_tracking,nb.prototype.has_opted_out_tracking=nb.prototype.has_opted_out_tracking,nb.prototype.has_opted_in_tracking=nb.prototype.has_opted_in_tracking,nb.prototype.clear_opt_in_out_tracking=nb.prototype.clear_opt_in_out_tracking,nb.prototype.get_group=nb.prototype.get_group,nb.prototype.set_group=nb.prototype.set_group,nb.prototype.add_group=nb.prototype.add_group,nb.prototype.remove_group=nb.prototype.remove_group,nb.prototype.track_with_groups=nb.prototype.track_with_groups,nb.prototype.start_batch_senders=nb.prototype.start_batch_senders,nb.prototype.stop_batch_senders=nb.prototype.stop_batch_senders,nb.prototype.start_session_recording=nb.prototype.start_session_recording,nb.prototype.stop_session_recording=nb.prototype.stop_session_recording,nb.prototype.get_session_recording_properties=nb.prototype.get_session_recording_properties,nb.prototype.DEFAULT_API_ROUTES=ny,no.prototype.properties=no.prototype.properties,no.prototype.update_search_keyword=no.prototype.update_search_keyword,no.prototype.update_referrer_info=no.prototype.update_referrer_info,no.prototype.get_cross_subdomain=no.prototype.get_cross_subdomain,no.prototype.clear=no.prototype.clear;var nS={},nw=function(){t8.each(nS,function(e,t){t!==nh&&(eO[t]=e)}),eO._=t8},nx=function(){eO.init=function(e,t,r){if(r)return eO[r]||(eO[r]=nS[r]=nA(e,t,r),eO[r]._loaded()),eO[r];var n=eO;nS[nh]?n=nS[nh]:e&&((n=nA(e,t,nh))._loaded(),nS[nh]=n),eO=n,eI===nl&&(eL[nh]=eO),nw()}},nR=function(){function e(){e.done||(e.done=!0,n_=!0,ng=!1,t8.each(nS,function(e){e._dom_loaded()}))}function t(){try{tZ.documentElement.doScroll("left")}catch(e){setTimeout(t,1);return}e()}if(tZ.addEventListener)"complete"===tZ.readyState?e():tZ.addEventListener("DOMContentLoaded",e,!1);else if(tZ.attachEvent){tZ.attachEvent("onreadystatechange",e);var r=!1;try{r=null===eL.frameElement}catch(e){}tZ.documentElement.doScroll&&r&&t()}t8.register_event(eL,"load",e,!0)},nk=function(e){return ns=e,eI=na,eO=new nb,nx(),eO.init(),nR(),eO}(function(e,t){t()});e.exports=nk},58449:(e,t,r)=>{"use strict";e.exports=r(45979)},45979:(e,t,r)=>{"use strict";n={value:!0};var n,i,o=r(86326),s=(i=o)&&"object"==typeof i&&"default"in i?i.default:i;function a(e,t){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function l(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}!function(e,t){void 0===t&&(t={});var r=t.insertAt;if("undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===r&&n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}('.multiSelectContainer,.multiSelectContainer *,.multiSelectContainer :after,.multiSelectContainer :before{box-sizing:border-box}.multiSelectContainer{position:relative;text-align:left;width:100%}.disable_ms{opacity:.5;pointer-events:none}.display-none{display:none}.searchWrapper{border:1px solid #ccc;border-radius:4px;min-height:22px;padding:5px;position:relative}.multiSelectContainer input{background:transparent;border:none;margin-top:3px}.multiSelectContainer input:focus{outline:none}.chip{align-items:center;background:#0096fb;border-radius:11px;color:#fff;display:inline-flex;font-size:13px;line-height:19px;margin-bottom:5px;margin-right:5px;padding:4px 10px}.chip,.singleChip{white-space:nowrap}.singleChip{background:none;border-radius:none;color:inherit}.singleChip i{display:none}.closeIcon{cursor:pointer;float:right;height:13px;margin-left:5px;width:13px}.optionListContainer{background:#fff;border-radius:4px;margin-top:1px;position:absolute;width:100%;z-index:2}.multiSelectContainer ul{border:1px solid #ccc;border-radius:4px;display:block;margin:0;max-height:250px;overflow-y:auto;padding:0}.multiSelectContainer li{padding:10px}.multiSelectContainer li:hover{background:#0096fb;color:#fff;cursor:pointer}.checkbox{margin-right:10px}.disableSelection{opacity:.5;pointer-events:none}.highlightOption{background:#0096fb;color:#fff}.displayBlock{display:block}.displayNone{display:none}.notFound{display:block;padding:10px}.singleSelect{padding-right:20px}li.groupHeading{color:#908e8e;padding:5px 15px;pointer-events:none}li.groupChildEle{padding-left:30px}.icon_down_dir{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:14px}.icon_down_dir:before{content:"\\e803"}.custom-close{display:flex}');var u={circle:"data:image/svg+xml,%3Csvg%20height%3D%22512px%22%20id%3D%22Layer_1%22%20style%3D%22enable-background%3Anew%200%200%20512%20512%3B%22%20version%3D%221.1%22%20viewBox%3D%220%200%20512%20512%22%20width%3D%22512px%22%20xml%3Aspace%3D%22preserve%22%20%20%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Cstyle%20type%3D%22text%2Fcss%22%3E%20%20%20%20%20%20%20%20.st0%7B%20%20%20%20%20%20%20%20%20%20%20%20fill%3A%23fff%3B%20%20%20%20%20%20%20%20%7D%20%3C%2Fstyle%3E%20%20%20%20%3Cg%3E%20%20%20%20%20%20%20%20%3Cpath%20class%3D%22st0%22%20d%3D%22M256%2C33C132.3%2C33%2C32%2C133.3%2C32%2C257c0%2C123.7%2C100.3%2C224%2C224%2C224c123.7%2C0%2C224-100.3%2C224-224C480%2C133.3%2C379.7%2C33%2C256%2C33z%20%20%20%20M364.3%2C332.5c1.5%2C1.5%2C2.3%2C3.5%2C2.3%2C5.6c0%2C2.1-0.8%2C4.2-2.3%2C5.6l-21.6%2C21.7c-1.6%2C1.6-3.6%2C2.3-5.6%2C2.3c-2%2C0-4.1-0.8-5.6-2.3L256%2C289.8%20%20%20l-75.4%2C75.7c-1.5%2C1.6-3.6%2C2.3-5.6%2C2.3c-2%2C0-4.1-0.8-5.6-2.3l-21.6-21.7c-1.5-1.5-2.3-3.5-2.3-5.6c0-2.1%2C0.8-4.2%2C2.3-5.6l75.7-76%20%20%20l-75.9-75c-3.1-3.1-3.1-8.2%2C0-11.3l21.6-21.7c1.5-1.5%2C3.5-2.3%2C5.6-2.3c2.1%2C0%2C4.1%2C0.8%2C5.6%2C2.3l75.7%2C74.7l75.7-74.7%20%20%20c1.5-1.5%2C3.5-2.3%2C5.6-2.3c2.1%2C0%2C4.1%2C0.8%2C5.6%2C2.3l21.6%2C21.7c3.1%2C3.1%2C3.1%2C8.2%2C0%2C11.3l-75.9%2C75L364.3%2C332.5z%22%2F%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E",circle2:"data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%2096%2096%22%20%20%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%20%20%20%20%3Cstyle%20type%3D%22text%2Fcss%22%3E%20%20%20%20%20%20%20%20.st0%7B%20%20%20%20%20%20%20%20%20%20%20%20fill%3A%23fff%3B%20%20%20%20%20%20%20%20%7D%20%3C%2Fstyle%3E%20%20%20%20%3Cg%3E%20%20%20%20%20%20%20%20%3Cpath%20class%3D%22st0%22%20d%3D%22M48%2C0A48%2C48%2C0%2C1%2C0%2C96%2C48%2C48.0512%2C48.0512%2C0%2C0%2C0%2C48%2C0Zm0%2C84A36%2C36%2C0%2C1%2C1%2C84%2C48%2C36.0393%2C36.0393%2C0%2C0%2C1%2C48%2C84Z%22%2F%3E%20%20%20%20%20%20%20%20%3Cpath%20class%3D%22st0%22%20d%3D%22M64.2422%2C31.7578a5.9979%2C5.9979%2C0%2C0%2C0-8.4844%2C0L48%2C39.5156l-7.7578-7.7578a5.9994%2C5.9994%2C0%2C0%2C0-8.4844%2C8.4844L39.5156%2C48l-7.7578%2C7.7578a5.9994%2C5.9994%2C0%2C1%2C0%2C8.4844%2C8.4844L48%2C56.4844l7.7578%2C7.7578a5.9994%2C5.9994%2C0%2C0%2C0%2C8.4844-8.4844L56.4844%2C48l7.7578-7.7578A5.9979%2C5.9979%2C0%2C0%2C0%2C64.2422%2C31.7578Z%22%2F%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E",close:"data:image/svg+xml,%3Csvg%20height%3D%22135.467mm%22%20style%3D%22shape-rendering%3AgeometricPrecision%3B%20text-rendering%3AgeometricPrecision%3B%20image-rendering%3AoptimizeQuality%3B%20fill-rule%3Aevenodd%3B%20clip-rule%3Aevenodd%22%20viewBox%3D%220%200%2013547%2013547%22%20width%3D%22135.467mm%22%20xml%3Aspace%3D%22preserve%22%20%20%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Cstyle%20type%3D%22text%2Fcss%22%3E%20%20%20%20%20%20%20%20%20%20%20%20.fil0%20%7Bfill%3Anone%7D%20%20%20%20%20%20%20%20%20%20%20%20.fil1%20%7Bfill%3A%23fff%7D%20%20%20%20%20%20%20%20%3C%2Fstyle%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22Ebene_x0020_1%22%3E%20%20%20%20%20%20%20%20%3Cpolygon%20class%3D%22fil0%22%20points%3D%220%2C0%2013547%2C0%2013547%2C13547%200%2C13547%20%22%2F%3E%20%20%20%20%20%20%20%20%3Cpath%20class%3D%22fil1%22%20d%3D%22M714%2012832l12118%200%200%20-12117%20-12118%200%200%2012117zm4188%20-2990l1871%20-1871%201871%201871%201197%20-1197%20-1871%20-1871%201871%20-1871%20-1197%20-1197%20-1871%201871%20-1871%20-1871%20-1197%201197%201871%201871%20-1871%201871%201197%201197z%22%2F%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E",cancel:"data:image/svg+xml,%3Csvg%20height%3D%22512px%22%20id%3D%22Layer_1%22%20style%3D%22enable-background%3Anew%200%200%20512%20512%3B%22%20version%3D%221.1%22%20viewBox%3D%220%200%20512%20512%22%20width%3D%22512px%22%20xml%3Aspace%3D%22preserve%22%20%20%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Cstyle%20type%3D%22text%2Fcss%22%3E%20%20%20%20%20%20%20%20.st0%7B%20%20%20%20%20%20%20%20%20%20%20%20fill%3A%23fff%3B%20%20%20%20%20%20%20%20%7D%20%3C%2Fstyle%3E%20%20%20%20%3Cpath%20class%3D%22st0%22%20d%3D%22M443.6%2C387.1L312.4%2C255.4l131.5-130c5.4-5.4%2C5.4-14.2%2C0-19.6l-37.4-37.6c-2.6-2.6-6.1-4-9.8-4c-3.7%2C0-7.2%2C1.5-9.8%2C4%20%20L256%2C197.8L124.9%2C68.3c-2.6-2.6-6.1-4-9.8-4c-3.7%2C0-7.2%2C1.5-9.8%2C4L68%2C105.9c-5.4%2C5.4-5.4%2C14.2%2C0%2C19.6l131.5%2C130L68.4%2C387.1%20%20c-2.6%2C2.6-4.1%2C6.1-4.1%2C9.8c0%2C3.7%2C1.4%2C7.2%2C4.1%2C9.8l37.4%2C37.6c2.7%2C2.7%2C6.2%2C4.1%2C9.8%2C4.1c3.5%2C0%2C7.1-1.3%2C9.8-4.1L256%2C313.1l130.7%2C131.1%20%20c2.7%2C2.7%2C6.2%2C4.1%2C9.8%2C4.1c3.5%2C0%2C7.1-1.3%2C9.8-4.1l37.4-37.6c2.6-2.6%2C4.1-6.1%2C4.1-9.8C447.7%2C393.2%2C446.2%2C389.7%2C443.6%2C387.1z%22%2F%3E%3C%2Fsvg%3E"};function c(e){var t,r,n=o.useRef(null);return r=e.outsideClick,o.useEffect(function(){function e(e){t.current&&!t.current.contains(e.target)&&r()}return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}},[t=n]),s.createElement("div",{ref:n},e.children)}var h=function(e){function t(t){var r;return(r=e.call(this,t)||this).state={inputValue:"",options:t.options,filteredOptions:t.options,unfilteredOptions:t.options,selectedValues:Object.assign([],t.selectedValues),preSelectedValues:Object.assign([],t.selectedValues),toggleOptionsList:!1,highlightOption:t.avoidHighlightFirstOption?-1:0,showCheckbox:t.showCheckbox,keepSearchTerm:t.keepSearchTerm,groupedObject:[],closeIconType:u[t.closeIcon]||u.circle},r.optionTimeout=null,r.searchWrapper=s.createRef(),r.searchBox=s.createRef(),r.onChange=r.onChange.bind(l(r)),r.onKeyPress=r.onKeyPress.bind(l(r)),r.onFocus=r.onFocus.bind(l(r)),r.onBlur=r.onBlur.bind(l(r)),r.renderMultiselectContainer=r.renderMultiselectContainer.bind(l(r)),r.renderSelectedList=r.renderSelectedList.bind(l(r)),r.onRemoveSelectedItem=r.onRemoveSelectedItem.bind(l(r)),r.toggelOptionList=r.toggelOptionList.bind(l(r)),r.onArrowKeyNavigation=r.onArrowKeyNavigation.bind(l(r)),r.onSelectItem=r.onSelectItem.bind(l(r)),r.filterOptionsByInput=r.filterOptionsByInput.bind(l(r)),r.removeSelectedValuesFromOptions=r.removeSelectedValuesFromOptions.bind(l(r)),r.isSelectedValue=r.isSelectedValue.bind(l(r)),r.fadeOutSelection=r.fadeOutSelection.bind(l(r)),r.isDisablePreSelectedValues=r.isDisablePreSelectedValues.bind(l(r)),r.renderGroupByOptions=r.renderGroupByOptions.bind(l(r)),r.renderNormalOption=r.renderNormalOption.bind(l(r)),r.listenerCallback=r.listenerCallback.bind(l(r)),r.resetSelectedValues=r.resetSelectedValues.bind(l(r)),r.getSelectedItems=r.getSelectedItems.bind(l(r)),r.getSelectedItemsCount=r.getSelectedItemsCount.bind(l(r)),r.hideOnClickOutside=r.hideOnClickOutside.bind(l(r)),r.onCloseOptionList=r.onCloseOptionList.bind(l(r)),r.isVisible=r.isVisible.bind(l(r)),r}n=e,(r=t).prototype=Object.create(n.prototype),r.prototype.constructor=r,a(r,n);var r,n,i=t.prototype;return i.initialSetValue=function(){var e=this.props,t=e.groupBy,r=this.state.options;e.showCheckbox||e.singleSelect||this.removeSelectedValuesFromOptions(!1),t&&this.groupByOptions(r)},i.resetSelectedValues=function(){var e=this,t=this.state.unfilteredOptions;return new Promise(function(r){e.setState({selectedValues:[],preSelectedValues:[],options:t,filteredOptions:t},function(){r(),e.initialSetValue()})})},i.getSelectedItems=function(){return this.state.selectedValues},i.getSelectedItemsCount=function(){return this.state.selectedValues.length},i.componentDidMount=function(){this.initialSetValue(),this.searchWrapper.current.addEventListener("click",this.listenerCallback)},i.componentDidUpdate=function(e){var t=this.props,r=t.options,n=t.selectedValues,i=e.selectedValues;JSON.stringify(e.options)!==JSON.stringify(r)&&this.setState({options:r,filteredOptions:r,unfilteredOptions:r},this.initialSetValue),JSON.stringify(i)!==JSON.stringify(n)&&this.setState({selectedValues:Object.assign([],n),preSelectedValues:Object.assign([],n)},this.initialSetValue)},i.listenerCallback=function(){this.searchBox.current.focus()},i.componentWillUnmount=function(){this.optionTimeout&&clearTimeout(this.optionTimeout),this.searchWrapper.current.removeEventListener("click",this.listenerCallback)},i.removeSelectedValuesFromOptions=function(e){var t=this.props,r=t.isObject,n=t.displayValue,i=t.groupBy,o=this.state,s=o.selectedValues,a=void 0===s?[]:s,l=o.unfilteredOptions;if(!e&&i&&this.groupByOptions(o.options),a.length||e){if(r){var u=l.filter(function(e){return -1===a.findIndex(function(t){return t[n]===e[n]})});return i&&this.groupByOptions(u),void this.setState({options:u,filteredOptions:u},this.filterOptionsByInput)}var c=l.filter(function(e){return -1===a.indexOf(e)});this.setState({options:c,filteredOptions:c},this.filterOptionsByInput)}},i.groupByOptions=function(e){var t=this.props.groupBy,r=e.reduce(function(e,r){var n=r[t]||"Others";return e[n]=e[n]||[],e[n].push(r),e},Object.create({}));this.setState({groupedObject:r})},i.onChange=function(e){var t=this.props.onSearch;this.setState({inputValue:e.target.value},this.filterOptionsByInput),t&&t(e.target.value)},i.onKeyPress=function(e){var t=this.props.onKeyPressFn;t&&t(e,e.target.value)},i.filterOptionsByInput=function(){var e,t=this,r=this.state,n=r.inputValue,i=this.props,o=i.displayValue;e=r.filteredOptions.filter(i.isObject?function(e){return t.matchValues(e[o],n)}:function(e){return t.matchValues(e,n)}),this.groupByOptions(e),this.setState({options:e})},i.matchValues=function(e,t){return this.props.caseSensitiveSearch?e.indexOf(t)>-1:e.toLowerCase?e.toLowerCase().indexOf(t.toLowerCase())>-1:e.toString().indexOf(t)>-1},i.onArrowKeyNavigation=function(e){var t=this.state,r=t.options,n=t.highlightOption,i=t.toggleOptionsList,o=t.selectedValues;if(8!==e.keyCode||t.inputValue||this.props.disablePreSelectedValues||!o.length||this.onRemoveSelectedItem(o.length-1),r.length){if(38===e.keyCode)this.setState(n>0?function(e){return{highlightOption:e.highlightOption-1}}:{highlightOption:r.length-1});else if(40===e.keyCode)this.setState(n0:n.filter(function(t){return t===e}).length>0},i.renderOptionList=function(){var e=this.props,t=e.groupBy,r=e.style,n=e.emptyRecordMsg,i=e.loadingMessage,o=void 0===i?"loading...":i,a=this.state.options;return e.loading?s.createElement("ul",{className:"optionContainer",style:r.optionContainer},"string"==typeof o&&s.createElement("span",{style:r.loadingMessage,className:"notFound"},o),"string"!=typeof o&&o):s.createElement("ul",{className:"optionContainer",style:r.optionContainer},0===a.length&&s.createElement("span",{style:r.notFound,className:"notFound"},n),t?this.renderGroupByOptions():this.renderNormalOption())},i.renderGroupByOptions=function(){var e=this,t=this.props,r=t.isObject,n=void 0!==r&&r,i=t.displayValue,o=t.showCheckbox,a=t.style,l=t.singleSelect,u=this.state.groupedObject;return Object.keys(u).map(function(t){return s.createElement(s.Fragment,{key:t},s.createElement("li",{className:"groupHeading",style:a.groupHeading},t),u[t].map(function(t,r){var u=e.isSelectedValue(t);return s.createElement("li",{key:"option"+r,style:a.option,className:"groupChildEle option "+(u?"selected":"")+" "+(e.fadeOutSelection(t)?"disableSelection":"")+" "+(e.isDisablePreSelectedValues(t)?"disableSelection":""),onClick:function(){return e.onSelectItem(t)}},o&&!l&&s.createElement("input",{type:"checkbox",className:"checkbox",readOnly:!0,checked:u}),e.props.optionValueDecorator(n?t[i]:(t||"").toString(),t))}))})},i.renderNormalOption=function(){var e=this,t=this.props,r=t.isObject,n=void 0!==r&&r,i=t.displayValue,o=t.showCheckbox,a=t.style,l=t.singleSelect,u=this.state.highlightOption;return this.state.options.map(function(t,r){var c=e.isSelectedValue(t);return s.createElement("li",{key:"option"+r,style:a.option,className:"option "+(c?"selected":"")+" "+(u===r?"highlightOption highlight":"")+" "+(e.fadeOutSelection(t)?"disableSelection":"")+" "+(e.isDisablePreSelectedValues(t)?"disableSelection":""),onClick:function(){return e.onSelectItem(t)}},o&&!l&&s.createElement("input",{type:"checkbox",readOnly:!0,className:"checkbox",checked:c}),e.props.optionValueDecorator(n?t[i]:(t||"").toString(),t))})},i.renderSelectedList=function(){var e=this,t=this.props,r=t.isObject,n=void 0!==r&&r,i=t.displayValue,o=t.style,a=t.singleSelect,l=t.customCloseIcon,u=this.state,c=u.closeIconType;return u.selectedValues.map(function(t,r){return s.createElement("span",{className:"chip "+(a&&"singleChip")+" "+(e.isDisablePreSelectedValues(t)&&"disableSelection"),key:r,style:o.chips},e.props.selectedValueDecorator(n?t[i]:(t||"").toString(),t),!e.isDisablePreSelectedValues(t)&&(l?s.createElement("i",{className:"custom-close",onClick:function(){return e.onRemoveSelectedItem(t)}},l):s.createElement("img",{className:"icon_cancel closeIcon",src:c,onClick:function(){return e.onRemoveSelectedItem(t)}})))})},i.isDisablePreSelectedValues=function(e){var t=this.props,r=t.displayValue,n=this.state.preSelectedValues;return!(!t.disablePreSelectedValues||!n.length)&&(t.isObject?n.filter(function(t){return t[r]===e[r]}).length>0:n.filter(function(t){return t===e}).length>0)},i.fadeOutSelection=function(e){var t=this.props,r=t.selectionLimit;if(!t.singleSelect){var n=this.state.selectedValues;return -1!=r&&r==n.length&&(r==n.length?!t.showCheckbox||!this.isSelectedValue(e):void 0)}},i.toggelOptionList=function(){this.setState({toggleOptionsList:!this.state.toggleOptionsList,highlightOption:this.props.avoidHighlightFirstOption?-1:0})},i.onCloseOptionList=function(){this.setState({toggleOptionsList:!1,highlightOption:this.props.avoidHighlightFirstOption?-1:0,inputValue:""})},i.onFocus=function(){this.state.toggleOptionsList?clearTimeout(this.optionTimeout):this.toggelOptionList()},i.onBlur=function(){this.setState({inputValue:""},this.filterOptionsByInput),this.optionTimeout=setTimeout(this.onCloseOptionList,250)},i.isVisible=function(e){return!!e&&!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},i.hideOnClickOutside=function(){var e=this,t=document.getElementsByClassName("multiselect-container")[0];document.addEventListener("click",function(r){t&&!t.contains(r.target)&&e.isVisible(t)&&e.toggelOptionList()})},i.renderMultiselectContainer=function(){var e=this.state,t=e.inputValue,r=e.toggleOptionsList,n=e.selectedValues,i=this.props,o=i.placeholder,a=i.style,l=i.singleSelect,u=i.id,c=i.name,h=i.hidePlaceholder,d=i.disable,f=i.showArrow,p=i.customArrow;return s.createElement("div",{className:"multiselect-container multiSelectContainer "+(d?"disable_ms":"")+" "+(i.className||""),id:u||"multiselectContainerReact",style:a.multiselectContainer},s.createElement("div",{className:"search-wrapper searchWrapper "+(l?"singleSelect":""),ref:this.searchWrapper,style:a.searchBox,onClick:l?this.toggelOptionList:function(){}},!i.hideSelectedList&&this.renderSelectedList(),s.createElement("input",{type:"text",ref:this.searchBox,className:"searchBox "+(l&&n.length?"display-none":""),id:(u||"search")+"_input",name:(c||"search_name")+"_input",onChange:this.onChange,onKeyPress:this.onKeyPress,value:t,onFocus:this.onFocus,onBlur:this.onBlur,placeholder:l&&n.length||h&&n.length?"":o,onKeyDown:this.onArrowKeyNavigation,style:a.inputField,autoComplete:"off",disabled:l||d}),(l||f)&&s.createElement(s.Fragment,null,p?s.createElement("span",{className:"icon_down_dir"},p):s.createElement("img",{src:"data:image/svg+xml,%3Csvg%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%20width%3D%2232%22%20%20%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%20%20%20%20%3Cg%20id%3D%22background%22%3E%20%20%20%20%20%20%20%20%3Crect%20fill%3D%22none%22%20height%3D%2232%22%20width%3D%2232%22%2F%3E%20%20%20%20%3C%2Fg%3E%20%20%20%20%3Cg%20id%3D%22arrow_x5F_down%22%3E%20%20%20%20%20%20%20%20%3Cpolygon%20points%3D%222.002%2C10%2016.001%2C24%2030.002%2C10%20%20%22%2F%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E",className:"icon_cancel icon_down_dir"}))),s.createElement("div",{className:"optionListContainer "+(r?"displayBlock":"displayNone"),onMouseDown:function(e){e.preventDefault()}},this.renderOptionList()))},i.render=function(){return s.createElement(c,{outsideClick:this.onCloseOptionList},this.renderMultiselectContainer())},t}(s.Component);h.defaultProps={options:[],disablePreSelectedValues:!1,selectedValues:[],isObject:!0,displayValue:"model",showCheckbox:!1,selectionLimit:-1,placeholder:"Select",groupBy:"",style:{},emptyRecordMsg:"No Options Available",onSelect:function(){},onRemove:function(){},onKeyPressFn:function(){},closeIcon:"circle2",singleSelect:!1,caseSensitiveSearch:!1,id:"",name:"",closeOnSelect:!0,avoidHighlightFirstOption:!1,hidePlaceholder:!1,showArrow:!1,keepSearchTerm:!1,customCloseIcon:"",className:"",customArrow:void 0,selectedValueDecorator:function(e){return e},optionValueDecorator:function(e){return e}},n=h,t.default=h},31523:(e,t,r)=>{"use strict";r.d(t,{tH:()=>s});var n=r(86326);let i=(0,n.createContext)(null),o={didCatch:!1,error:null};class s extends n.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=o}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){let{error:e}=this.state;if(null!==e){for(var t,r,n=arguments.length,i=Array(n),s=0;s0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some((e,r)=>!Object.is(e,t[r]))}},97926:(e,t,r)=>{"use strict";r.d(t,{E9:()=>o,Mi:()=>n,pN:()=>i,xi:()=>s});var n="right-scroll-bar-position",i="width-before-scroll-bar",o="with-scroll-bars-hidden",s="--removed-body-scroll-bar-size"},75474:(e,t,r)=>{"use strict";r.d(t,{jp:()=>m});var n=r(86326),i=r(16347),o=r(97926),s={left:0,top:0,right:0,gap:0},a=function(e){return parseInt(e||"",10)||0},l=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[a(r),a(n),a(i)]},u=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return s;var t=l(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},c=(0,i.T0)(),h="data-scroll-locked",d=function(e,t,r,n){var i=e.left,s=e.top,a=e.right,l=e.gap;return void 0===r&&(r="margin"),"\n .".concat(o.E9," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(l,"px ").concat(n,";\n }\n body[").concat(h,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(s,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(l,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(o.Mi," {\n right: ").concat(l,"px ").concat(n,";\n }\n \n .").concat(o.pN," {\n margin-right: ").concat(l,"px ").concat(n,";\n }\n \n .").concat(o.Mi," .").concat(o.Mi," {\n right: 0 ").concat(n,";\n }\n \n .").concat(o.pN," .").concat(o.pN," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(h,"] {\n ").concat(o.xi,": ").concat(l,"px;\n }\n")},f=function(){var e=parseInt(document.body.getAttribute(h)||"0",10);return isFinite(e)?e:0},p=function(){n.useEffect(function(){return document.body.setAttribute(h,(f()+1).toString()),function(){var e=f()-1;e<=0?document.body.removeAttribute(h):document.body.setAttribute(h,e.toString())}},[])},m=function(e){var t=e.noRelative,r=e.noImportant,i=e.gapMode,o=void 0===i?"margin":i;p();var s=n.useMemo(function(){return u(o)},[o]);return n.createElement(c,{styles:d(s,!t,o,r?"":"!important")})}},39059:(e,t,r)=>{"use strict";r.d(t,{A:()=>U});var n=r(55823),i=r(86326),o=r(97926),s=r(86752),a=(0,r(55291).f)(),l=function(){},u=i.forwardRef(function(e,t){var r=i.useRef(null),o=i.useState({onScrollCapture:l,onWheelCapture:l,onTouchMoveCapture:l}),u=o[0],c=o[1],h=e.forwardProps,d=e.children,f=e.className,p=e.removeScrollBar,m=e.enabled,g=e.shards,v=e.sideCar,y=e.noIsolation,E=e.inert,_=e.allowPinchZoom,b=e.as,A=void 0===b?"div":b,T=e.gapMode,C=(0,n.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,w=(0,s.S)([r,t]),x=(0,n.Cl)((0,n.Cl)({},C),u);return i.createElement(i.Fragment,null,m&&i.createElement(S,{sideCar:a,removeScrollBar:p,shards:g,noIsolation:y,inert:E,setCallbacks:c,allowPinchZoom:!!_,lockRef:r,gapMode:T}),h?i.cloneElement(i.Children.only(d),(0,n.Cl)((0,n.Cl)({},x),{ref:w})):i.createElement(A,(0,n.Cl)({},x,{className:f,ref:w}),d))});u.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},u.classNames={fullWidth:o.pN,zeroRight:o.Mi};var c=r(11289),h=r(75474),d=r(16347),f=!1;if("undefined"!=typeof window)try{var p=Object.defineProperty({},"passive",{get:function(){return f=!0,!0}});window.addEventListener("test",p,p),window.removeEventListener("test",p,p)}catch(e){f=!1}var m=!!f&&{passive:!1},g=function(e){return"TEXTAREA"===e.tagName},v=function(e,t){var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&!g(e)&&"visible"===r[t])},y=function(e){return v(e,"overflowY")},E=function(e){return v(e,"overflowX")},_=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),T(e,n)){var i=C(e,n);if(i[1]>i[2])return!0}n=n.parentNode}while(n&&n!==r.body)return!1},b=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},A=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},T=function(e,t){return"v"===e?y(t):E(t)},C=function(e,t){return"v"===e?b(t):A(t)},S=function(e,t){return"h"===e&&"rtl"===t?-1:1},w=function(e,t,r,n,i){var o=S(e,window.getComputedStyle(t).direction),s=o*n,a=r.target,l=t.contains(a),u=!1,c=s>0,h=0,d=0;do{var f=C(e,a),p=f[0],m=f[1]-f[2]-o*p;(p||m)&&T(e,a)&&(h+=m,d+=p),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a))return c&&(i&&1>Math.abs(h)||!i&&s>h)?u=!0:!c&&(i&&1>Math.abs(d)||!i&&-s>d)&&(u=!0),u},x=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},R=function(e){return[e.deltaX,e.deltaY]},k=function(e){return e&&"current"in e?e.current:e},L=function(e,t){return e[0]===t[0]&&e[1]===t[1]},I=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},O=0,D=[];function N(e){var t=i.useRef([]),r=i.useRef([0,0]),o=i.useRef(),s=i.useState(O++)[0],a=i.useState(d.T0)[0],l=i.useRef(e);i.useEffect(function(){l.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var t=(0,n.fX)([e.lockRef.current],(e.shards||[]).map(k),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var u=i.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!l.current.allowPinchZoom;var n,i=x(e),s=r.current,a="deltaX"in e?e.deltaX:s[0]-i[0],u="deltaY"in e?e.deltaY:s[1]-i[1],c=e.target,h=Math.abs(a)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===h&&"range"===c.type)return!1;var d=_(h,c);if(!d)return!0;if(d?n=h:(n="v"===h?"h":"v",d=_(h,c)),!d)return!1;if(!o.current&&"changedTouches"in e&&(a||u)&&(o.current=n),!n)return!0;var f=o.current||n;return w(f,t,e,"h"===f?a:u,!0)},[]),c=i.useCallback(function(e){var r=e;if(D.length&&D[D.length-1]===a){var n="deltaY"in r?R(r):x(r),i=t.current.filter(function(e){return e.name===r.type&&(e.target===r.target||r.target===e.shadowParent)&&L(e.delta,n)})[0];if(i&&i.should){r.cancelable&&r.preventDefault();return}if(!i){var o=(l.current.shards||[]).map(k).filter(Boolean).filter(function(e){return e.contains(r.target)});(o.length>0?u(r,o[0]):!l.current.noIsolation)&&r.cancelable&&r.preventDefault()}}},[]),f=i.useCallback(function(e,r,n,i){var o={name:e,delta:r,target:n,should:i,shadowParent:P(n)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),p=i.useCallback(function(e){r.current=x(e),o.current=void 0},[]),g=i.useCallback(function(t){f(t.type,R(t),t.target,u(t,e.lockRef.current))},[]),v=i.useCallback(function(t){f(t.type,x(t),t.target,u(t,e.lockRef.current))},[]);i.useEffect(function(){return D.push(a),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:v}),document.addEventListener("wheel",c,m),document.addEventListener("touchmove",c,m),document.addEventListener("touchstart",p,m),function(){D=D.filter(function(e){return e!==a}),document.removeEventListener("wheel",c,m),document.removeEventListener("touchmove",c,m),document.removeEventListener("touchstart",p,m)}},[]);var y=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(a,{styles:I(s)}):null,y?i.createElement(h.jp,{gapMode:e.gapMode}):null)}function P(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}let M=(0,c.m)(a,N);var B=i.forwardRef(function(e,t){return i.createElement(u,(0,n.Cl)({},e,{ref:t,sideCar:M}))});B.classNames=u.classNames;let U=B},4194:(e,t,r)=>{"use strict";r.d(t,{N_:()=>W,Ys:()=>k,ok:()=>Y,pg:()=>V});var n,i,o,s,a=r(86326),l=r(35623),u=r(42277),c=r(15010);/** * React Router DOM v6.25.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}let f="get",p="application/x-www-form-urlencoded";function m(e){return null!=e&&"string"==typeof e.tagName}function g(e){return m(e)&&"button"===e.tagName.toLowerCase()}function v(e){return m(e)&&"form"===e.tagName.toLowerCase()}function y(e){return m(e)&&"input"===e.tagName.toLowerCase()}function E(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function _(e,t){return 0===e.button&&(!t||"_self"===t)&&!E(e)}function b(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(e=>[r,e]):[[r,n]])},[]))}function A(e,t){let r=b(e);return t&&t.forEach((e,n)=>{r.has(n)||t.getAll(n).forEach(e=>{r.append(n,e)})}),r}let T=null;function C(){if(null===T)try{new FormData(document.createElement("form"),0),T=!1}catch(e){T=!0}return T}let S=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function w(e){return null==e||S.has(e)?e:null}let x=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],R="6";try{window.__reactRouterVersion=R}catch(e){}function k(e,t){return(0,c.aE)({basename:null==t?void 0:t.basename,future:h({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,c.zR)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||L(),routes:e,mapRouteProperties:u.wE,unstable_dataStrategy:null==t?void 0:t.unstable_dataStrategy,unstable_patchRoutesOnMiss:null==t?void 0:t.unstable_patchRoutesOnMiss,window:null==t?void 0:t.window}).initialize()}function L(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=h({},t,{errors:I(t.errors)})),t}function I(e){if(!e)return null;let t=Object.entries(e),r={};for(let[e,n]of t)if(n&&"RouteErrorResponse"===n.__type)r[e]=new c.VV(n.status,n.statusText,n.data,!0===n.internal);else if(n&&"Error"===n.__type){if(n.__subType){let t=window[n.__subType];if("function"==typeof t)try{let i=new t(n.message);i.stack="",r[e]=i}catch(e){}}if(null==r[e]){let t=Error(n.message);t.stack="",r[e]=t}}else r[e]=n;return r}let O=a.createContext({isTransitioning:!1}),D=a.createContext(new Map),N="startTransition",P=(n||(n=r.t(a,2)))[N],M="flushSync",B=(i||(i=r.t(l,2)))[M],U="useId";function F(e){P?P(e):e()}function j(e){B?B(e):e()}(n||(n=r.t(a,2)))[U];class K{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}})}}function V(e){let{fallbackElement:t,router:r,future:n}=e,[i,o]=a.useState(r.state),[s,l]=a.useState(),[c,h]=a.useState({isTransitioning:!1}),[d,f]=a.useState(),[p,m]=a.useState(),[g,v]=a.useState(),y=a.useRef(new Map),{v7_startTransition:E}=n||{},_=a.useCallback(e=>{E?F(e):e()},[E]),b=a.useCallback((e,t)=>{let{deletedFetchers:n,unstable_flushSync:i,unstable_viewTransitionOpts:s}=t;n.forEach(e=>y.current.delete(e)),e.fetchers.forEach((e,t)=>{void 0!==e.data&&y.current.set(t,e.data)});let a=null==r.window||null==r.window.document||"function"!=typeof r.window.document.startViewTransition;if(!s||a){i?j(()=>o(e)):_(()=>o(e));return}if(i){j(()=>{p&&(d&&d.resolve(),p.skipTransition()),h({isTransitioning:!0,flushSync:!0,currentLocation:s.currentLocation,nextLocation:s.nextLocation})});let t=r.window.document.startViewTransition(()=>{j(()=>o(e))});t.finished.finally(()=>{j(()=>{f(void 0),m(void 0),l(void 0),h({isTransitioning:!1})})}),j(()=>m(t));return}p?(d&&d.resolve(),p.skipTransition(),v({state:e,currentLocation:s.currentLocation,nextLocation:s.nextLocation})):(l(e),h({isTransitioning:!0,flushSync:!1,currentLocation:s.currentLocation,nextLocation:s.nextLocation}))},[r.window,p,d,y,_]);a.useLayoutEffect(()=>r.subscribe(b),[r,b]),a.useEffect(()=>{c.isTransitioning&&!c.flushSync&&f(new K)},[c]),a.useEffect(()=>{if(d&&s&&r.window){let e=s,t=d.promise,n=r.window.document.startViewTransition(async()=>{_(()=>o(e)),await t});n.finished.finally(()=>{f(void 0),m(void 0),l(void 0),h({isTransitioning:!1})}),m(n)}},[_,s,d,r.window]),a.useEffect(()=>{d&&s&&i.location.key===s.location.key&&d.resolve()},[d,p,i.location,s]),a.useEffect(()=>{!c.isTransitioning&&g&&(l(g.state),h({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),v(void 0))},[c.isTransitioning,g]),a.useEffect(()=>{},[]);let A=a.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:e=>r.navigate(e),push:(e,t,n)=>r.navigate(e,{state:t,preventScrollReset:null==n?void 0:n.preventScrollReset}),replace:(e,t,n)=>r.navigate(e,{replace:!0,state:t,preventScrollReset:null==n?void 0:n.preventScrollReset})}),[r]),T=r.basename||"/",C=a.useMemo(()=>({router:r,navigator:A,static:!1,basename:T}),[r,A,T]),S=a.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return a.createElement(a.Fragment,null,a.createElement(u.sp.Provider,{value:C},a.createElement(u.Rq.Provider,{value:i},a.createElement(D.Provider,{value:y.current},a.createElement(O.Provider,{value:c},a.createElement(u.Ix,{basename:T,location:i.location,navigationType:i.historyAction,navigator:A,future:S},i.initialized||r.future.v7_partialHydration?a.createElement(H,{routes:r.routes,future:r.future,state:i}):t))))),null)}let H=a.memo(z);function z(e){let{routes:t,future:r,state:n}=e;return(0,u.ph)(t,void 0,n,r)}let G="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,q=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,W=a.forwardRef(function(e,t){let r,{onClick:n,relative:i,reloadDocument:o,replace:s,state:l,target:f,to:p,preventScrollReset:m,unstable_viewTransition:g}=e,v=d(e,x),{basename:y}=a.useContext(u.jb),E=!1;if("string"==typeof p&&q.test(p)&&(r=p,G))try{let e=new URL(window.location.href),t=new URL(p.startsWith("//")?e.protocol+p:p),r=(0,c.pb)(t.pathname,y);t.origin===e.origin&&null!=r?p=r+t.search+t.hash:E=!0}catch(e){}let _=(0,u.$P)(p,{relative:i}),b=X(p,{replace:s,state:l,target:f,preventScrollReset:m,relative:i,unstable_viewTransition:g});function A(e){n&&n(e),e.defaultPrevented||b(e)}return a.createElement("a",h({},v,{href:r||_,onClick:E||o?n:A,ref:t,target:f}))});function X(e,t){let{target:r,replace:n,state:i,preventScrollReset:o,relative:s,unstable_viewTransition:l}=void 0===t?{}:t,h=(0,u.Zp)(),d=(0,u.zy)(),f=(0,u.x$)(e,{relative:s});return a.useCallback(t=>{_(t,r)&&(t.preventDefault(),h(e,{replace:void 0!==n?n:(0,c.AO)(d)===(0,c.AO)(f),state:i,preventScrollReset:o,relative:s,unstable_viewTransition:l}))},[d,h,f,n,i,r,e,o,s,l])}function Y(e){let t=a.useRef(b(e)),r=a.useRef(!1),n=(0,u.zy)(),i=a.useMemo(()=>A(n.search,r.current?null:t.current),[n.search]),o=(0,u.Zp)(),s=a.useCallback((e,t)=>{let n=b("function"==typeof e?e(i):e);r.current=!0,o("?"+n,t)},[o,i]);return[i,s]}!function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"}(o||(o={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(s||(s={}));let Q=0},42277:(e,t,r)=>{"use strict";r.d(t,{$P:()=>p,AV:()=>X,C5:()=>H,Ix:()=>q,LG:()=>B,Rq:()=>l,UX:()=>d,Zp:()=>E,bg:()=>Q,g:()=>T,jb:()=>c,ph:()=>S,r5:()=>U,sp:()=>a,sv:()=>z,wE:()=>Y,wQ:()=>v,x$:()=>C,yN:()=>h,zy:()=>g});var n,i=r(86326),o=r(15010);/** * React Router v6.25.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t{h.current=!0}),i.useCallback(function(r,i){if(void 0===i&&(i={}),!h.current)return;if("number"==typeof r){n.go(r);return}let s=(0,o.Gh)(r,JSON.parse(u),l,"path"===i.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:(0,o.HS)([t,s.pathname])),(i.replace?n.replace:n.push)(s,i.state,i)},[t,n,u,l,e])}let b=i.createContext(null);function A(e){let t=i.useContext(d).outlet;return t?i.createElement(b.Provider,{value:e},t):t}function T(){let{matches:e}=i.useContext(d),t=e[e.length-1];return t?t.params:{}}function C(e,t){let{relative:r}=void 0===t?{}:t,{future:n}=i.useContext(c),{matches:s}=i.useContext(d),{pathname:a}=g(),l=JSON.stringify((0,o.yD)(s,n.v7_relativeSplatPath));return i.useMemo(()=>(0,o.Gh)(e,JSON.parse(l),a,"path"===r),[e,l,a,r])}function S(e,t,r,n){let a;m()||(0,o.Oi)(!1);let{navigator:l}=i.useContext(c),{matches:u}=i.useContext(d),f=u[u.length-1],p=f?f.params:{};f&&f.pathname;let v=f?f.pathnameBase:"/";f&&f.route;let y=g();if(t){var E;let e="string"==typeof t?(0,o.Rr)(t):t;"/"===v||(null==(E=e.pathname)?void 0:E.startsWith(v))||(0,o.Oi)(!1),a=e}else a=y;let _=a.pathname||"/",b=_;if("/"!==v){let e=v.replace(/^\//,"").split("/");b="/"+_.replace(/^\//,"").split("/").slice(e.length).join("/")}let A=(0,o.ue)(e,{pathname:b}),T=L(A&&A.map(e=>Object.assign({},e,{params:Object.assign({},p,e.params),pathname:(0,o.HS)([v,l.encodeLocation?l.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?v:(0,o.HS)([v,l.encodeLocation?l.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),u,r,n);return t&&T?i.createElement(h.Provider,{value:{location:s({pathname:"/",search:"",hash:"",state:null,key:"default"},a),navigationType:o.rc.Pop}},T):T}function w(){let e=U(),t=(0,o.pX)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},s=null;return i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},t),r?i.createElement("pre",{style:n},r):null,s)}let x=i.createElement(w,null);class R extends i.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?i.createElement(d.Provider,{value:this.props.routeContext},i.createElement(f.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function k(e){let{routeContext:t,match:r,children:n}=e,o=i.useContext(a);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),i.createElement(d.Provider,{value:t},n)}function L(e,t,r,n){var s,a;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===n&&(n=null),null==e){if(null==(a=r)||!a.errors)return null;e=r.matches}let l=e,u=null==(s=r)?void 0:s.errors;if(null!=u){let e=l.findIndex(e=>e.route.id&&(null==u?void 0:u[e.route.id])!==void 0);e>=0||(0,o.Oi)(!1),l=l.slice(0,Math.min(l.length,e+1))}let c=!1,h=-1;if(r&&n&&n.v7_partialHydration)for(let e=0;e=0?l.slice(0,h+1):[l[0]];break}}}return l.reduceRight((e,n,o)=>{let s;let a=!1,d=null,f=null;r&&(s=u&&n.route.id?u[n.route.id]:void 0,d=n.route.errorElement||x,c&&(h<0&&0===o?(K("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),a=!0,f=null):h===o&&(a=!0,f=n.route.hydrateFallbackElement||null)));let p=t.concat(l.slice(0,o+1)),m=()=>{let t;return t=s?d:a?f:n.route.Component?i.createElement(n.route.Component,null):n.route.element?n.route.element:e,i.createElement(k,{match:n,routeContext:{outlet:e,matches:p,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===o)?i.createElement(R,{location:r.location,revalidation:r.revalidation,component:d,error:s,children:m(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):m()},null)}var I=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(I||{}),O=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(O||{});function D(e){let t=i.useContext(a);return t||(0,o.Oi)(!1),t}function N(e){let t=i.useContext(l);return t||(0,o.Oi)(!1),t}function P(e){let t=i.useContext(d);return t||(0,o.Oi)(!1),t}function M(e){let t=P(e),r=t.matches[t.matches.length-1];return r.route.id||(0,o.Oi)(!1),r.route.id}function B(){let e=N(O.UseLoaderData),t=M(O.UseLoaderData);if(e.errors&&null!=e.errors[t]){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")");return}return e.loaderData[t]}function U(){var e;let t=i.useContext(f),r=N(O.UseRouteError),n=M(O.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[n]}function F(){let{router:e}=D(I.UseNavigateStable),t=M(O.UseNavigateStable),r=i.useRef(!1);return y(()=>{r.current=!0}),i.useCallback(function(n,i){void 0===i&&(i={}),r.current&&("number"==typeof n?e.navigate(n):e.navigate(n,s({fromRouteId:t},i)))},[e,t])}let j={};function K(e,t,r){t||j[e]||(j[e]=!0)}let V="startTransition";function H(e){let{to:t,replace:r,state:n,relative:s}=e;m()||(0,o.Oi)(!1);let{future:a,static:l}=i.useContext(c),{matches:u}=i.useContext(d),{pathname:h}=g(),f=E(),p=JSON.stringify((0,o.Gh)(t,(0,o.yD)(u,a.v7_relativeSplatPath),h,"path"===s));return i.useEffect(()=>f(JSON.parse(p),{replace:r,state:n,relative:s}),[f,p,s,r,n]),null}function z(e){return A(e.context)}function G(e){(0,o.Oi)(!1)}function q(e){let{basename:t="/",children:r=null,location:n,navigationType:a=o.rc.Pop,navigator:l,static:u=!1,future:d}=e;m()&&(0,o.Oi)(!1);let f=t.replace(/^\/*/,"/"),p=i.useMemo(()=>({basename:f,navigator:l,static:u,future:s({v7_relativeSplatPath:!1},d)}),[f,d,l,u]);"string"==typeof n&&(n=(0,o.Rr)(n));let{pathname:g="/",search:v="",hash:y="",state:E=null,key:_="default"}=n,b=i.useMemo(()=>{let e=(0,o.pb)(g,f);return null==e?null:{location:{pathname:e,search:v,hash:y,state:E,key:_},navigationType:a}},[f,g,v,y,E,_,a]);return null==b?null:i.createElement(c.Provider,{value:p},i.createElement(h.Provider,{children:r,value:b}))}(n||(n=r.t(i,2)))[V];var W=function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e}(W||{});function X(e,t){void 0===t&&(t=[]);let r=[];return i.Children.forEach(e,(e,n)=>{if(!i.isValidElement(e))return;let s=[...t,n];if(e.type===i.Fragment){r.push.apply(r,X(e.props.children,s));return}e.type!==G&&(0,o.Oi)(!1),e.props.index&&e.props.children&&(0,o.Oi)(!1);let a={id:e.props.id||s.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=X(e.props.children,s)),r.push(a)}),r}function Y(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:i.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:i.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:i.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function Q(e,t){return(0,o.aE)({basename:null==t?void 0:t.basename,future:s({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,o.sC)({initialEntries:null==t?void 0:t.initialEntries,initialIndex:null==t?void 0:t.initialIndex}),hydrationData:null==t?void 0:t.hydrationData,routes:e,mapRouteProperties:Y,unstable_dataStrategy:null==t?void 0:t.unstable_dataStrategy,unstable_patchRoutesOnMiss:null==t?void 0:t.unstable_patchRoutesOnMiss}).initialize()}new Promise(()=>{}),i.Component},16347:(e,t,r)=>{"use strict";r.d(t,{T0:()=>h});var n,i=r(86326),o=function(){return n||r.nc};function s(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=o();return t&&e.setAttribute("nonce",t),e}function a(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function l(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}var u=function(){var e=0,t=null;return{add:function(r){0==e&&(t=s())&&(a(t,r),l(t)),e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},c=function(){var e=u();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},h=function(){var e=c();return function(t){return e(t.styles,t.dynamic),null}}},85651:(e,t,r)=>{"use strict";r.d(t,{p:()=>y});var n=r(86326);let i=0,o=1,s=2,a=3,l=4,u=5,c=6,h=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],d=e=>({_s:e,status:h[e],isEnter:el}),f=e=>e?c:u,p=(e,t)=>{switch(e){case o:case i:return s;case l:case a:return f(t)}},m=e=>"object"==typeof e?[e.enter,e.exit]:[e,e],g=(e,t)=>setTimeout(()=>{isNaN(document.body.offsetTop)||e(t+1)},0),v=(e,t,r,n,i)=>{clearTimeout(n.current);let o=d(e);t(o),r.current=o,i&&i({current:o})},y=({enter:e=!0,exit:t=!0,preEnter:r,preExit:u,timeout:c,initialEntered:h,mountOnEnter:y,unmountOnExit:E,onStateChange:_}={})=>{let[b,A]=(0,n.useState)(()=>d(h?s:f(y))),T=(0,n.useRef)(b),C=(0,n.useRef)(),[S,w]=m(c),x=(0,n.useCallback)(()=>{let e=p(T.current._s,E);e&&v(e,A,T,C,_)},[_,E]),R=(0,n.useCallback)(n=>{let c=e=>{switch(v(e,A,T,C,_),e){case o:S>=0&&(C.current=setTimeout(x,S));break;case l:w>=0&&(C.current=setTimeout(x,w));break;case i:case a:C.current=g(c,e)}},h=T.current.isEnter;"boolean"!=typeof n&&(n=!h),n?h||c(e?r?i:o:s):h&&c(t?u?a:l:f(E))},[x,_,e,t,r,u,S,w,E]);return(0,n.useEffect)(()=>()=>clearTimeout(C.current),[]),[b,R,x]}},81856:(e,t,r)=>{"use strict";/**! * Sortable 1.15.2 * @author RubaXa * @author owenm * @license MIT */function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(i[r]=e[r]);return i}function u(e,t){if(null==e)return{};var r,n,i=l(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);rtm});var h="1.15.2";function d(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var f=d(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),p=d(/Edge/i),m=d(/firefox/i),g=d(/safari/i)&&!d(/chrome/i)&&!d(/android/i),v=d(/iP(ad|od|hone)/i),y=d(/chrome/i)&&d(/android/i),E={capture:!1,passive:!1};function _(e,t,r){e.addEventListener(t,r,!f&&E)}function b(e,t,r){e.removeEventListener(t,r,!f&&E)}function A(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){}return!1}}function T(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function C(e,t,r,n){if(e){r=r||document;do{if(null!=t&&(">"===t[0]?e.parentNode===r&&A(e,t):A(e,t))||n&&e===r)return e;if(e===r)break}while(e=T(e))}return null}var S=/\s+/g;function w(e,t,r){if(e&&t){if(e.classList)e.classList[r?"add":"remove"](t);else{var n=(" "+e.className+" ").replace(S," ").replace(" "+t+" "," ");e.className=(n+(r?" "+t:"")).replace(S," ")}}}function x(e,t,r){var n=e&&e.style;if(n){if(void 0===r)return document.defaultView&&document.defaultView.getComputedStyle?r=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(r=e.currentStyle),void 0===t?r:r[t];t in n||-1!==t.indexOf("webkit")||(t="-webkit-"+t),n[t]=r+("string"==typeof r?"":"px")}}function R(e,t){var r="";if("string"==typeof e)r=e;else do{var n=x(e,"transform");n&&"none"!==n&&(r=n+" "+r)}while(!t&&(e=e.parentNode))var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(r)}function k(e,t,r){if(e){var n=e.getElementsByTagName(t),i=0,o=n.length;if(r)for(;i=o:i<=o))return n;if(n===L())break;n=U(n,!1)}return!1}function D(e,t,r,n){for(var i=0,o=0,s=e.children;o2&&void 0!==arguments[2]?arguments[2]:{},n=r.evt,o=u(r,et);J.pluginEvent.bind(eQ)(e,t,i({dragEl:eo,parentEl:es,ghostEl:ea,rootEl:el,nextEl:eu,lastDownEl:ec,cloneEl:eh,cloneHidden:ed,dragStarted:eS,putSortable:ey,activeSortable:eQ.active,originalEvent:n,oldIndex:ef,oldDraggableIndex:em,newIndex:ep,newDraggableIndex:eg,hideGhostForTarget:eq,unhideGhostForTarget:eW,cloneNowHidden:function(){ed=!0},cloneNowShown:function(){ed=!1},dispatchSortableEvent:function(e){en({sortable:t,name:e,originalEvent:n})}},o))};function en(e){ee(i({putSortable:ey,cloneEl:eh,targetEl:eo,rootEl:el,oldIndex:ef,oldDraggableIndex:em,newIndex:ep,newDraggableIndex:eg},e))}var ei,eo,es,ea,el,eu,ec,eh,ed,ef,ep,em,eg,ev,ey,eE,e_,eb,eA,eT,eC,eS,ew,ex,eR,ek,eL=!1,eI=!1,eO=[],eD=!1,eN=!1,eP=[],eM=!1,eB=[],eU="undefined"!=typeof document,eF=v,ej=p||f?"cssFloat":"float",eK=eU&&!y&&!v&&"draggable"in document.createElement("div"),eV=function(){if(eU){if(f)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),eH=function(e,t){var r=x(e),n=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),i=D(e,0,t),o=D(e,1,t),s=i&&x(i),a=o&&x(o),l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+I(i).width,u=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+I(o).width;if("flex"===r.display)return"column"===r.flexDirection||"column-reverse"===r.flexDirection?"vertical":"horizontal";if("grid"===r.display)return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&s.float&&"none"!==s.float){var c="left"===s.float?"left":"right";return o&&("both"===a.clear||a.clear===c)?"vertical":"horizontal"}return i&&("block"===s.display||"flex"===s.display||"table"===s.display||"grid"===s.display||l>=n&&"none"===r[ej]||o&&"none"===r[ej]&&l+u>n)?"vertical":"horizontal"},ez=function(e,t,r){var n=r?e.left:e.top,i=r?e.right:e.bottom,o=r?e.width:e.height,s=r?t.left:t.top,a=r?t.right:t.bottom,l=r?t.width:t.height;return n===s||i===a||n+o/2===s+l/2},e$=function(e,t){var r;return eO.some(function(n){var i=n[q].options.emptyInsertThreshold;if(!(!i||N(n))){var o=I(n),s=e>=o.left-i&&e<=o.right+i,a=t>=o.top-i&&t<=o.bottom+i;if(s&&a)return r=n}}),r},eG=function(e){function t(e,r){return function(n,i,o,s){var a=n.options.group.name&&i.options.group.name&&n.options.group.name===i.options.group.name;if(null==e&&(r||a))return!0;if(null==e||!1===e)return!1;if(r&&"clone"===e)return e;if("function"==typeof e)return t(e(n,i,o,s),r)(n,i,o,s);var l=(r?n:i).options.group.name;return!0===e||"string"==typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var r={},n=e.group;n&&"object"==o(n)||(n={name:n}),r.name=n.name,r.checkPull=t(n.pull,!0),r.checkPut=t(n.put),r.revertClone=n.revertClone,e.group=r},eq=function(){!eV&&ea&&x(ea,"display","none")},eW=function(){!eV&&ea&&x(ea,"display","")};eU&&!y&&document.addEventListener("click",function(e){if(eI)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),eI=!1,!1},!0);var eX=function(e){if(eo){var t=e$((e=e.touches?e.touches[0]:e).clientX,e.clientY);if(t){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]=e[n]);r.target=r.rootEl=t,r.preventDefault=void 0,r.stopPropagation=void 0,t[q]._onDragOver(r)}}},eY=function(e){eo&&eo.parentNode[q]._isOutsideThisEl(e.target)};function eQ(e,t){if(!(e&&e.nodeType&&1===e.nodeType))throw"Sortable: `el` must be an HTMLElement, not ".concat(({}).toString.call(e));this.el=e,this.options=t=a({},t),e[q]=this;var r={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return eH(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==eQ.supportPointer&&"PointerEvent"in window&&!g,emptyInsertThreshold:5};for(var n in J.initializePlugins(this,e,r),r)n in t||(t[n]=r[n]);for(var i in eG(t),this)"_"===i.charAt(0)&&"function"==typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!t.forceFallback&&eK,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?_(e,"pointerdown",this._onTapStart):(_(e,"mousedown",this._onTapStart),_(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(_(e,"dragover",this),_(e,"dragenter",this)),eO.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),a(this,W())}function eZ(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function eJ(e,t,r,n,i,o,s,a){var l,u,c=e[q],h=c.options.onMove;return!window.CustomEvent||f||p?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=r,l.draggedRect=n,l.related=i||t,l.relatedRect=o||I(t),l.willInsertAfter=a,l.originalEvent=s,e.dispatchEvent(l),h&&(u=h.call(c,l,s)),u}function e0(e){e.draggable=!1}function e1(){eM=!1}function e2(e,t,r){var n=I(D(r.el,0,r.options,!0)),i=G(r.el,r.options,ea),o=10;return t?e.clientXi.right+o||e.clientY>n.bottom&&e.clientX>n.left:e.clientY>i.bottom+o||e.clientX>n.right&&e.clientY>n.top}function e4(e,t,r,n,i,o,s,a){var l=n?e.clientY:e.clientX,u=n?r.height:r.width,c=n?r.top:r.left,h=n?r.bottom:r.right,d=!1;if(!s){if(a&&eRc+u*o/2:lh-eR)return-ex}else if(l>c+u*(1-i)/2&&lh-u*o/2)?l>c+u/2?1:-1:0}function e5(e){return P(eo)=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){eo&&e0(eo),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;b(e,"mouseup",this._disableDelayedDrag),b(e,"touchend",this._disableDelayedDrag),b(e,"touchcancel",this._disableDelayedDrag),b(e,"mousemove",this._delayedDragTouchMoveHandler),b(e,"touchmove",this._delayedDragTouchMoveHandler),b(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?_(document,"pointermove",this._onTouchMove):t?_(document,"touchmove",this._onTouchMove):_(document,"mousemove",this._onTouchMove):(_(eo,"dragend",this),_(el,"dragstart",this._onDragStart));try{document.selection?e8(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(eL=!1,el&&eo){er("dragStarted",this,{evt:t}),this.nativeDraggable&&_(document,"dragover",eY);var r=this.options;e||w(eo,r.dragClass,!1),w(eo,r.ghostClass,!0),eQ.active=this,e&&this._appendGhost(),en({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(e_){this._lastX=e_.clientX,this._lastY=e_.clientY,eq();for(var e=document.elementFromPoint(e_.clientX,e_.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(e_.clientX,e_.clientY))!==t;)t=e;if(eo.parentNode[q]._isOutsideThisEl(e),t)do{if(t[q]){var r=void 0;if((r=t[q]._onDragOver({clientX:e_.clientX,clientY:e_.clientY,target:e,rootEl:t}))&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode)eW()}},_onTouchMove:function(e){if(eE){var t=this.options,r=t.fallbackTolerance,n=t.fallbackOffset,i=e.touches?e.touches[0]:e,o=ea&&R(ea,!0),s=ea&&o&&o.a,a=ea&&o&&o.d,l=eF&&ek&&M(ek),u=(i.clientX-eE.clientX+n.x)/(s||1)+(l?l[0]-eP[0]:0)/(s||1),c=(i.clientY-eE.clientY+n.y)/(a||1)+(l?l[1]-eP[1]:0)/(a||1);if(!eQ.active&&!eL){if(r&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))=0&&(en({rootEl:es,name:"add",toEl:es,fromEl:el,originalEvent:e}),en({sortable:this,name:"remove",toEl:es,originalEvent:e}),en({rootEl:es,name:"sort",toEl:es,fromEl:el,originalEvent:e}),en({sortable:this,name:"sort",toEl:es,originalEvent:e})),ey&&ey.save()):ep!==ef&&ep>=0&&(en({sortable:this,name:"update",toEl:es,originalEvent:e}),en({sortable:this,name:"sort",toEl:es,originalEvent:e})),eQ.active&&((null==ep||-1===ep)&&(ep=ef,eg=em),en({sortable:this,name:"end",toEl:es,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){er("nulling",this),el=eo=es=ea=eu=eh=ec=ed=eE=e_=eS=ep=eg=ef=em=ew=ex=ey=ev=eQ.dragged=eQ.ghost=eQ.clone=eQ.active=null,eB.forEach(function(e){e.checked=!0}),eB.length=eb=eA=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":eo&&(this._onDragOver(e),eZ(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],r=this.el.children,n=0,i=r.length,o=this.options;n{let t=/^[-+]?0x[a-fA-F0-9]+$/,r=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);let n={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function i(e,s={}){if(s=Object.assign({},n,s),!e||"string"!=typeof e)return e;let a=e.trim();if(void 0!==s.skipLike&&s.skipLike.test(a))return e;if(s.hex&&t.test(a))return Number.parseInt(a,16);{let t=r.exec(a);if(!t)return e;{let r=t[1],n=t[2],i=o(t[3]),l=t[4]||t[6];if(!s.leadingZeros&&n.length>0&&r&&"."!==a[2])return e;{if(!s.leadingZeros&&n.length>0&&!r&&"."!==a[1])return e;let t=Number(a),o=""+t;return -1!==o.search(/[eE]/)||l?s.eNotation?t:e:-1!==a.indexOf(".")?"0"===o&&""===i?t:o===i?t:r&&o==="-"+i?t:e:n?i===o?t:r+i===o?t:e:a===o?t:a===r+o?t:e}}}}function o(e){return e&&-1!==e.indexOf(".")&&("."===(e=e.replace(/0+$/,""))?e="0":"."===e[0]?e="0"+e:"."===e[e.length-1]&&(e=e.substr(0,e.length-1))),e}e.exports=i},86752:(e,t,r)=>{"use strict";r.d(t,{S:()=>l});var n=r(86326);function i(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}function o(e,t){var r=(0,n.useState)(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(value){var n=r.value;n!==value&&(r.value=value,r.callback(value,n))}}}})[0];return r.callback=t,r.facade}var s="undefined"!=typeof window?n.useLayoutEffect:n.useEffect,a=new WeakMap;function l(e,t){var r=o(t||null,function(t){return e.forEach(function(e){return i(e,t)})});return s(function(){var t=a.get(r);if(t){var n=new Set(t),o=new Set(e),s=r.current;n.forEach(function(e){o.has(e)||i(e,null)}),o.forEach(function(e){n.has(e)||i(e,s)})}a.set(r,e)},[e]),r}},11289:(e,t,r)=>{"use strict";r.d(t,{m:()=>s});var n=r(55823),i=r(86326),o=function(e){var t=e.sideCar,r=(0,n.Tt)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw Error("Sidecar medium not found");return i.createElement(o,(0,n.Cl)({},r))};function s(e,t){return e.useMedium(t),o}o.isSideCarExport=!0},55291:(e,t,r)=>{"use strict";r.d(t,{f:()=>s});var n=r(55823);function i(e){return e}function o(e,t){void 0===t&&(t=i);var r=[],n=!1;return{read:function(){if(n)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(e){var i=t(e,n);return r.push(i),function(){r=r.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var i=r;r=[],i.forEach(e),t=r}var o=function(){var r=t;t=[],r.forEach(e)},s=function(){return Promise.resolve().then(o)};s(),r={push:function(e){t.push(e),s()},filter:function(e){return t=t.filter(e),r}}}}}function s(e){void 0===e&&(e={});var t=o(null);return t.options=(0,n.Cl)({async:!0,ssr:!1},e),t}},76785:(e,t,r)=>{"use strict";/** * @license React * use-sync-external-store-shim.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var n=r(86326);function i(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var o="function"==typeof Object.is?Object.is:i,s=n.useState,a=n.useEffect,l=n.useLayoutEffect,u=n.useDebugValue;function c(e,t){var r=t(),n=s({inst:{value:r,getSnapshot:t}}),i=n[0].inst,o=n[1];return l(function(){i.value=r,i.getSnapshot=t,h(i)&&o({inst:i})},[e,r,t]),a(function(){return h(i)&&o({inst:i}),e(function(){h(i)&&o({inst:i})})},[e]),u(r),r}function h(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!o(e,r)}catch(e){return!0}}function d(e,t){return t()}var f="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?d:c;t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:f},73634:(e,t,r)=>{"use strict";e.exports=r(76785)},51956:(e,t,r)=>{"use strict";var n=r(77639);r(96187),e.exports=n},73458:(e,t,r)=>{"use strict";r(6558),r(72384);var n=r(93625),i=r(321),o=r(79747).Promise,s=o.withResolvers;e.exports=function(){return n(s,i(this)?this:o)}},18675:(e,t,r)=>{"use strict";r(20281)},20281:(e,t,r)=>{"use strict";var n=r(51956);e.exports=n},54334:(e,t,r)=>{"use strict";var n=r(321),i=r(68379),o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(i(e)+" is not a function")}},73112:(e,t,r)=>{"use strict";var n=r(51441),i=r(68379),o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(i(e)+" is not a constructor")}},30878:(e,t,r)=>{"use strict";var n=r(91417),i=String,o=TypeError;e.exports=function(e){if(n(e))return e;throw new o("Can't set "+i(e)+" as a prototype")}},55755:(e,t,r)=>{"use strict";var n=r(37837),i=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw new i("Incorrect invocation")}},10659:(e,t,r)=>{"use strict";var n=r(94102),i=String,o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(i(e)+" is not an object")}},56749:(e,t,r)=>{"use strict";var n=r(28969),i=r(6526),o=r(88770),s=function(e){return function(t,r,s){var a,l=n(t),u=o(l);if(0===u)return!e&&-1;var c=i(s,u);if(e&&r!=r){for(;u>c;)if((a=l[c++])!=a)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===r)return e||c||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},24540:(e,t,r)=>{"use strict";var n=r(2484);e.exports=n([].slice)},99976:(e,t,r)=>{"use strict";var n=r(54175)("iterator"),i=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){i=!0}};s[n]=function(){return this},Array.from(s,function(){throw 2})}catch(e){}e.exports=function(e,t){try{if(!t&&!i)return!1}catch(e){return!1}var r=!1;try{var o={};o[n]=function(){return{next:function(){return{done:r=!0}}}},e(o)}catch(e){}return r}},72748:(e,t,r)=>{"use strict";var n=r(2484),i=n({}.toString),o=n("".slice);e.exports=function(e){return o(i(e),8,-1)}},35719:(e,t,r)=>{"use strict";var n=r(37928),i=r(321),o=r(72748),s=r(54175)("toStringTag"),a=Object,l="Arguments"===o(function(){return arguments}()),u=function(e,t){try{return e[t]}catch(e){}};e.exports=n?o:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=u(t=a(e),s))?r:l?o(t):"Object"===(n=o(t))&&i(t.callee)?"Arguments":n}},81704:(e,t,r)=>{"use strict";var n=r(44461),i=r(99467),o=r(33071),s=r(86005);e.exports=function(e,t,r){for(var a=i(t),l=s.f,u=o.f,c=0;c{"use strict";var n=r(92128),i=r(86005),o=r(25936);e.exports=n?function(e,t,r){return i.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},25936:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},56038:(e,t,r)=>{"use strict";var n=r(9455),i=r(86005);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),i.f(e,t,r)}},25236:(e,t,r)=>{"use strict";var n=r(321),i=r(86005),o=r(9455),s=r(21941);e.exports=function(e,t,r,a){a||(a={});var l=a.enumerable,u=void 0!==a.name?a.name:t;if(n(r)&&o(r,u,a),a.global)l?e[t]=r:s(t,r);else{try{a.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=r:i.f(e,t,{value:r,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},21941:(e,t,r)=>{"use strict";var n=r(25927),i=Object.defineProperty;e.exports=function(e,t){try{i(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},92128:(e,t,r)=>{"use strict";var n=r(42675);e.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},84451:(e,t,r)=>{"use strict";var n=r(25927),i=r(94102),o=n.document,s=i(o)&&i(o.createElement);e.exports=function(e){return s?o.createElement(e):{}}},97102:(e,t,r)=>{"use strict";var n=r(76712),i=r(23476);e.exports=!n&&!i&&"object"==typeof window&&"object"==typeof document},76712:e=>{"use strict";e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},81816:(e,t,r)=>{"use strict";var n=r(84220);e.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},90571:(e,t,r)=>{"use strict";var n=r(84220);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},23476:(e,t,r)=>{"use strict";var n=r(25927),i=r(72748);e.exports="process"===i(n.process)},88825:(e,t,r)=>{"use strict";var n=r(84220);e.exports=/web0s(?!.*chrome)/i.test(n)},84220:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},84144:(e,t,r)=>{"use strict";var n,i,o=r(25927),s=r(84220),a=o.process,l=o.Deno,u=a&&a.versions||l&&l.version,c=u&&u.v8;c&&(i=(n=c.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&s&&(!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/))&&(i=+n[1]),e.exports=i},58563:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},88810:(e,t,r)=>{"use strict";var n=r(25927),i=r(33071).f,o=r(70671),s=r(25236),a=r(21941),l=r(81704),u=r(92360);e.exports=function(e,t){var r,c,h,d,f,p=e.target,m=e.global,g=e.stat;if(r=m?n:g?n[p]||a(p,{}):n[p]&&n[p].prototype)for(c in t){if(d=t[c],h=e.dontCallGetSet?(f=i(r,c))&&f.value:r[c],!u(m?c:p+(g?".":"#")+c,e.forced)&&void 0!==h){if(typeof d==typeof h)continue;l(d,h)}(e.sham||h&&h.sham)&&o(d,"sham",!0),s(r,c,d,e)}}},42675:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},50133:(e,t,r)=>{"use strict";var n=r(33588),i=Function.prototype,o=i.apply,s=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?s.bind(o):function(){return s.apply(o,arguments)})},29004:(e,t,r)=>{"use strict";var n=r(71904),i=r(54334),o=r(33588),s=n(n.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?s(e,t):function(){return e.apply(t,arguments)}}},33588:(e,t,r)=>{"use strict";var n=r(42675);e.exports=!n(function(){var e=(function(){}).bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},93625:(e,t,r)=>{"use strict";var n=r(33588),i=Function.prototype.call;e.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},64690:(e,t,r)=>{"use strict";var n=r(92128),i=r(44461),o=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,a=i(o,"name"),l=a&&"something"===(function(){}).name,u=a&&(!n||n&&s(o,"name").configurable);e.exports={EXISTS:a,PROPER:l,CONFIGURABLE:u}},18438:(e,t,r)=>{"use strict";var n=r(2484),i=r(54334);e.exports=function(e,t,r){try{return n(i(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},71904:(e,t,r)=>{"use strict";var n=r(72748),i=r(2484);e.exports=function(e){if("Function"===n(e))return i(e)}},2484:(e,t,r)=>{"use strict";var n=r(33588),i=Function.prototype,o=i.call,s=n&&i.bind.bind(o,o);e.exports=n?s:function(e){return function(){return o.apply(e,arguments)}}},33163:(e,t,r)=>{"use strict";var n=r(25927),i=r(321),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(n[e]):n[e]&&n[e][t]}},74951:(e,t,r)=>{"use strict";var n=r(35719),i=r(39538),o=r(59601),s=r(56609),a=r(54175)("iterator");e.exports=function(e){if(!o(e))return i(e,a)||i(e,"@@iterator")||s[n(e)]}},56221:(e,t,r)=>{"use strict";var n=r(93625),i=r(54334),o=r(10659),s=r(68379),a=r(74951),l=TypeError;e.exports=function(e,t){var r=arguments.length<2?a(e):t;if(i(r))return o(n(r,e));throw new l(s(e)+" is not iterable")}},39538:(e,t,r)=>{"use strict";var n=r(54334),i=r(59601);e.exports=function(e,t){var r=e[t];return i(r)?void 0:n(r)}},25927:function(e){"use strict";var t=function(e){return e&&e.Math===Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof global&&global)||t("object"==typeof this&&this)||function(){return this}()||Function("return this")()},44461:(e,t,r)=>{"use strict";var n=r(2484),i=r(68649),o=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},16617:e=>{"use strict";e.exports={}},51929:e=>{"use strict";e.exports=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(e){}}},27073:(e,t,r)=>{"use strict";var n=r(33163);e.exports=n("document","documentElement")},14113:(e,t,r)=>{"use strict";var n=r(92128),i=r(42675),o=r(84451);e.exports=!n&&!i(function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},20051:(e,t,r)=>{"use strict";var n=r(2484),i=r(42675),o=r(72748),s=Object,a=n("".split);e.exports=i(function(){return!s("z").propertyIsEnumerable(0)})?function(e){return"String"===o(e)?a(e,""):s(e)}:s},42718:(e,t,r)=>{"use strict";var n=r(2484),i=r(321),o=r(32921),s=n(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return s(e)}),e.exports=o.inspectSource},16369:(e,t,r)=>{"use strict";var n,i,o,s=r(48434),a=r(25927),l=r(94102),u=r(70671),c=r(44461),h=r(32921),d=r(93779),f=r(16617),p="Object already initialized",m=a.TypeError,g=a.WeakMap,v=function(e){return o(e)?i(e):n(e,{})},y=function(e){return function(t){var r;if(!l(t)||(r=i(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return r}};if(s||h.state){var E=h.state||(h.state=new g);E.get=E.get,E.has=E.has,E.set=E.set,n=function(e,t){if(E.has(e))throw new m(p);return t.facade=e,E.set(e,t),t},i=function(e){return E.get(e)||{}},o=function(e){return E.has(e)}}else{var _=d("state");f[_]=!0,n=function(e,t){if(c(e,_))throw new m(p);return t.facade=e,u(e,_,t),t},i=function(e){return c(e,_)?e[_]:{}},o=function(e){return c(e,_)}}e.exports={set:n,get:i,has:o,enforce:v,getterFor:y}},53709:(e,t,r)=>{"use strict";var n=r(54175),i=r(56609),o=n("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||s[o]===e)}},321:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},51441:(e,t,r)=>{"use strict";var n=r(2484),i=r(42675),o=r(321),s=r(35719),a=r(33163),l=r(42718),u=function(){},c=a("Reflect","construct"),h=/^\s*(?:class|function)\b/,d=n(h.exec),f=!h.test(u),p=function(e){if(!o(e))return!1;try{return c(u,[],e),!0}catch(e){return!1}},m=function(e){if(!o(e))return!1;switch(s(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!d(h,l(e))}catch(e){return!0}};m.sham=!0,e.exports=!c||i(function(){var e;return p(p.call)||!p(Object)||!p(function(){e=!0})||e})?m:p},92360:(e,t,r)=>{"use strict";var n=r(42675),i=r(321),o=/#|\.prototype\./,s=function(e,t){var r=l[a(e)];return r===c||r!==u&&(i(t)?n(t):!!t)},a=s.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=s.data={},u=s.NATIVE="N",c=s.POLYFILL="P";e.exports=s},59601:e=>{"use strict";e.exports=function(e){return null==e}},94102:(e,t,r)=>{"use strict";var n=r(321);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},91417:(e,t,r)=>{"use strict";var n=r(94102);e.exports=function(e){return n(e)||null===e}},36007:e=>{"use strict";e.exports=!1},73401:(e,t,r)=>{"use strict";var n=r(33163),i=r(321),o=r(37837),s=r(23316),a=Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return i(t)&&o(t.prototype,a(e))}},71072:(e,t,r)=>{"use strict";var n=r(29004),i=r(93625),o=r(10659),s=r(68379),a=r(53709),l=r(88770),u=r(37837),c=r(56221),h=r(74951),d=r(91151),f=TypeError,p=function(e,t){this.stopped=e,this.result=t},m=p.prototype;e.exports=function(e,t,r){var g,v,y,E,_,b,A,T=r&&r.that,C=!!(r&&r.AS_ENTRIES),S=!!(r&&r.IS_RECORD),w=!!(r&&r.IS_ITERATOR),x=!!(r&&r.INTERRUPTED),R=n(t,T),k=function(e){return g&&d(g,"normal",e),new p(!0,e)},L=function(e){return C?(o(e),x?R(e[0],e[1],k):R(e[0],e[1])):x?R(e,k):R(e)};if(S)g=e.iterator;else if(w)g=e;else{if(!(v=h(e)))throw new f(s(e)+" is not iterable");if(a(v)){for(y=0,E=l(e);E>y;y++)if((_=L(e[y]))&&u(m,_))return _;return new p(!1)}g=c(e,v)}for(b=S?e.next:g.next;!(A=i(b,g)).done;){try{_=L(A.value)}catch(e){d(g,"throw",e)}if("object"==typeof _&&_&&u(m,_))return _}return new p(!1)}},91151:(e,t,r)=>{"use strict";var n=r(93625),i=r(10659),o=r(39538);e.exports=function(e,t,r){var s,a;i(e);try{if(!(s=o(e,"return"))){if("throw"===t)throw r;return r}s=n(s,e)}catch(e){a=!0,s=e}if("throw"===t)throw r;if(a)throw s;return i(s),r}},56609:e=>{"use strict";e.exports={}},88770:(e,t,r)=>{"use strict";var n=r(13026);e.exports=function(e){return n(e.length)}},9455:(e,t,r)=>{"use strict";var n=r(2484),i=r(42675),o=r(321),s=r(44461),a=r(92128),l=r(64690).CONFIGURABLE,u=r(42718),c=r(16369),h=c.enforce,d=c.get,f=String,p=Object.defineProperty,m=n("".slice),g=n("".replace),v=n([].join),y=a&&!i(function(){return 8!==p(function(){},"length",{value:8}).length}),E=String(String).split("String"),_=e.exports=function(e,t,r){"Symbol("===m(f(t),0,7)&&(t="["+g(f(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!s(e,"name")||l&&e.name!==t)&&(a?p(e,"name",{value:t,configurable:!0}):e.name=t),y&&r&&s(r,"arity")&&e.length!==r.arity&&p(e,"length",{value:r.arity});try{r&&s(r,"constructor")&&r.constructor?a&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=h(e);return s(n,"source")||(n.source=v(E,"string"==typeof t?t:"")),e};Function.prototype.toString=_(function(){return o(this)&&d(this).source||u(this)},"toString")},24049:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},76559:(e,t,r)=>{"use strict";var n,i,o,s,a,l=r(25927),u=r(46977),c=r(29004),h=r(6781).set,d=r(81661),f=r(90571),p=r(81816),m=r(88825),g=r(23476),v=l.MutationObserver||l.WebKitMutationObserver,y=l.document,E=l.process,_=l.Promise,b=u("queueMicrotask");if(!b){var A=new d,T=function(){var e,t;for(g&&(e=E.domain)&&e.exit();t=A.get();)try{t()}catch(e){throw A.head&&n(),e}e&&e.enter()};f||g||m||!v||!y?!p&&_&&_.resolve?((s=_.resolve(void 0)).constructor=_,a=c(s.then,s),n=function(){a(T)}):g?n=function(){E.nextTick(T)}:(h=c(h,l),n=function(){h(T)}):(i=!0,o=y.createTextNode(""),new v(T).observe(o,{characterData:!0}),n=function(){o.data=i=!i}),b=function(e){A.head||n(),A.add(e)}}e.exports=b},81031:(e,t,r)=>{"use strict";var n=r(54334),i=TypeError,o=function(e){var t,r;this.promise=new e(function(e,n){if(void 0!==t||void 0!==r)throw new i("Bad Promise constructor");t=e,r=n}),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new o(e)}},86005:(e,t,r)=>{"use strict";var n=r(92128),i=r(14113),o=r(30706),s=r(10659),a=r(91261),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,h="enumerable",d="configurable",f="writable";t.f=n?o?function(e,t,r){if(s(e),t=a(t),s(r),"function"==typeof e&&"prototype"===t&&"value"in r&&f in r&&!r[f]){var n=c(e,t);n&&n[f]&&(e[t]=r.value,r={configurable:d in r?r[d]:n[d],enumerable:h in r?r[h]:n[h],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(s(e),t=a(t),s(r),i)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new l("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},33071:(e,t,r)=>{"use strict";var n=r(92128),i=r(93625),o=r(7769),s=r(25936),a=r(28969),l=r(91261),u=r(44461),c=r(14113),h=Object.getOwnPropertyDescriptor;t.f=n?h:function(e,t){if(e=a(e),t=l(t),c)try{return h(e,t)}catch(e){}if(u(e,t))return s(!i(o.f,e,t),e[t])}},24956:(e,t,r)=>{"use strict";var n=r(4792),i=r(58563).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},9073:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},37837:(e,t,r)=>{"use strict";var n=r(2484);e.exports=n({}.isPrototypeOf)},4792:(e,t,r)=>{"use strict";var n=r(2484),i=r(44461),o=r(28969),s=r(56749).indexOf,a=r(16617),l=n([].push);e.exports=function(e,t){var r,n=o(e),u=0,c=[];for(r in n)!i(a,r)&&i(n,r)&&l(c,r);for(;t.length>u;)i(n,r=t[u++])&&(~s(c,r)||l(c,r));return c}},7769:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!r.call({1:2},1);t.f=i?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},31715:(e,t,r)=>{"use strict";var n=r(18438),i=r(94102),o=r(64834),s=r(30878);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return o(r),s(n),i(r)&&(t?e(r,n):r.__proto__=n),r}}():void 0)},65514:(e,t,r)=>{"use strict";var n=r(93625),i=r(321),o=r(94102),s=TypeError;e.exports=function(e,t){var r,a;if("string"===t&&i(r=e.toString)&&!o(a=n(r,e))||i(r=e.valueOf)&&!o(a=n(r,e))||"string"!==t&&i(r=e.toString)&&!o(a=n(r,e)))return a;throw new s("Can't convert object to primitive value")}},99467:(e,t,r)=>{"use strict";var n=r(33163),i=r(2484),o=r(24956),s=r(9073),a=r(10659),l=i([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(a(e)),r=s.f;return r?l(t,r(e)):t}},79747:(e,t,r)=>{"use strict";var n=r(25927);e.exports=n},93443:e=>{"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},87032:(e,t,r)=>{"use strict";var n=r(25927),i=r(95034),o=r(321),s=r(92360),a=r(42718),l=r(54175),u=r(97102),c=r(76712),h=r(36007),d=r(84144),f=i&&i.prototype,p=l("species"),m=!1,g=o(n.PromiseRejectionEvent),v=s("Promise",function(){var e=a(i),t=e!==String(i);if(!t&&66===d||h&&!(f.catch&&f.finally))return!0;if(!d||d<51||!/native code/.test(e)){var r=new i(function(e){e(1)}),n=function(e){e(function(){},function(){})};if((r.constructor={})[p]=n,!(m=r.then(function(){}) instanceof n))return!0}return!t&&(u||c)&&!g});e.exports={CONSTRUCTOR:v,REJECTION_EVENT:g,SUBCLASSING:m}},95034:(e,t,r)=>{"use strict";var n=r(25927);e.exports=n.Promise},6794:(e,t,r)=>{"use strict";var n=r(10659),i=r(94102),o=r(81031);e.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t;var r=o.f(e);return(0,r.resolve)(t),r.promise}},80341:(e,t,r)=>{"use strict";var n=r(95034),i=r(99976),o=r(87032).CONSTRUCTOR;e.exports=o||!i(function(e){n.all(e).then(void 0,function(){})})},81661:e=>{"use strict";var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=t},64834:(e,t,r)=>{"use strict";var n=r(59601),i=TypeError;e.exports=function(e){if(n(e))throw new i("Can't call method on "+e);return e}},46977:(e,t,r)=>{"use strict";var n=r(25927),i=r(92128),o=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!i)return n[e];var t=o(n,e);return t&&t.value}},80461:(e,t,r)=>{"use strict";var n=r(33163),i=r(56038),o=r(54175),s=r(92128),a=o("species");e.exports=function(e){var t=n(e);s&&t&&!t[a]&&i(t,a,{configurable:!0,get:function(){return this}})}},98819:(e,t,r)=>{"use strict";var n=r(86005).f,i=r(44461),o=r(54175)("toStringTag");e.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!i(e,o)&&n(e,o,{configurable:!0,value:t})}},93779:(e,t,r)=>{"use strict";var n=r(76445),i=r(42868),o=n("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},32921:(e,t,r)=>{"use strict";var n=r(36007),i=r(25927),o=r(21941),s="__core-js_shared__",a=e.exports=i[s]||o(s,{});(a.versions||(a.versions=[])).push({version:"3.37.1",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},76445:(e,t,r)=>{"use strict";var n=r(32921);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},3985:(e,t,r)=>{"use strict";var n=r(10659),i=r(73112),o=r(59601),s=r(54175)("species");e.exports=function(e,t){var r,a=n(e).constructor;return void 0===a||o(r=n(a)[s])?t:i(r)}},46891:(e,t,r)=>{"use strict";var n=r(84144),i=r(42675),o=r(25927).String;e.exports=!!Object.getOwnPropertySymbols&&!i(function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e) instanceof Symbol)||!Symbol.sham&&n&&n<41})},6781:(e,t,r)=>{"use strict";var n,i,o,s,a=r(25927),l=r(50133),u=r(29004),c=r(321),h=r(44461),d=r(42675),f=r(27073),p=r(24540),m=r(84451),g=r(90464),v=r(90571),y=r(23476),E=a.setImmediate,_=a.clearImmediate,b=a.process,A=a.Dispatch,T=a.Function,C=a.MessageChannel,S=a.String,w=0,x={},R="onreadystatechange";d(function(){n=a.location});var k=function(e){if(h(x,e)){var t=x[e];delete x[e],t()}},L=function(e){return function(){k(e)}},I=function(e){k(e.data)},O=function(e){a.postMessage(S(e),n.protocol+"//"+n.host)};E&&_||(E=function(e){g(arguments.length,1);var t=c(e)?e:T(e),r=p(arguments,1);return x[++w]=function(){l(t,void 0,r)},i(w),w},_=function(e){delete x[e]},y?i=function(e){b.nextTick(L(e))}:A&&A.now?i=function(e){A.now(L(e))}:C&&!v?(s=(o=new C).port2,o.port1.onmessage=I,i=u(s.postMessage,s)):a.addEventListener&&c(a.postMessage)&&!a.importScripts&&n&&"file:"!==n.protocol&&!d(O)?(i=O,a.addEventListener("message",I,!1)):i=R in m("script")?function(e){f.appendChild(m("script"))[R]=function(){f.removeChild(this),k(e)}}:function(e){setTimeout(L(e),0)}),e.exports={set:E,clear:_}},6526:(e,t,r)=>{"use strict";var n=r(7391),i=Math.max,o=Math.min;e.exports=function(e,t){var r=n(e);return r<0?i(r+t,0):o(r,t)}},28969:(e,t,r)=>{"use strict";var n=r(20051),i=r(64834);e.exports=function(e){return n(i(e))}},7391:(e,t,r)=>{"use strict";var n=r(24049);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},13026:(e,t,r)=>{"use strict";var n=r(7391),i=Math.min;e.exports=function(e){var t=n(e);return t>0?i(t,9007199254740991):0}},68649:(e,t,r)=>{"use strict";var n=r(64834),i=Object;e.exports=function(e){return i(n(e))}},90573:(e,t,r)=>{"use strict";var n=r(93625),i=r(94102),o=r(73401),s=r(39538),a=r(65514),l=r(54175),u=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var r,l=s(e,c);if(l){if(void 0===t&&(t="default"),!i(r=n(l,e,t))||o(r))return r;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},91261:(e,t,r)=>{"use strict";var n=r(90573),i=r(73401);e.exports=function(e){var t=n(e,"string");return i(t)?t:t+""}},37928:(e,t,r)=>{"use strict";var n=r(54175)("toStringTag"),i={};i[n]="z",e.exports="[object z]"===String(i)},68379:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},42868:(e,t,r)=>{"use strict";var n=r(2484),i=0,o=Math.random(),s=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++i+o,36)}},23316:(e,t,r)=>{"use strict";var n=r(46891);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},30706:(e,t,r)=>{"use strict";var n=r(92128),i=r(42675);e.exports=n&&i(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},90464:e=>{"use strict";var t=TypeError;e.exports=function(e,r){if(e{"use strict";var n=r(25927),i=r(321),o=n.WeakMap;e.exports=i(o)&&/native code/.test(String(o))},54515:(e,t,r)=>{"use strict";var n=r(79747),i=r(44461),o=r(3291),s=r(86005).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});i(t,e)||s(t,e,{value:o.f(e)})}},3291:(e,t,r)=>{"use strict";var n=r(54175);t.f=n},54175:(e,t,r)=>{"use strict";var n=r(25927),i=r(76445),o=r(44461),s=r(42868),a=r(46891),l=r(23316),u=n.Symbol,c=i("wks"),h=l?u.for||u:u&&u.withoutSetter||s;e.exports=function(e){return o(c,e)||(c[e]=a&&o(u,e)?u[e]:h("Symbol."+e)),c[e]}},75143:(e,t,r)=>{"use strict";var n=r(88810),i=r(93625),o=r(54334),s=r(81031),a=r(93443),l=r(71072);n({target:"Promise",stat:!0,forced:r(80341)},{all:function(e){var t=this,r=s.f(t),n=r.resolve,u=r.reject,c=a(function(){var r=o(t.resolve),s=[],a=0,c=1;l(e,function(e){var o=a++,l=!1;c++,i(r,t,e).then(function(e){!l&&(l=!0,s[o]=e,--c||n(s))},u)}),--c||n(s)});return c.error&&u(c.value),r.promise}})},70383:(e,t,r)=>{"use strict";var n=r(88810),i=r(36007),o=r(87032).CONSTRUCTOR,s=r(95034),a=r(33163),l=r(321),u=r(25236),c=s&&s.prototype;if(n({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(e){return this.then(void 0,e)}}),!i&&l(s)){var h=a("Promise").prototype.catch;c.catch!==h&&u(c,"catch",h,{unsafe:!0})}},68808:(e,t,r)=>{"use strict";var n,i,o,s,a=r(88810),l=r(36007),u=r(23476),c=r(25927),h=r(93625),d=r(25236),f=r(31715),p=r(98819),m=r(80461),g=r(54334),v=r(321),y=r(94102),E=r(55755),_=r(3985),b=r(6781).set,A=r(76559),T=r(51929),C=r(93443),S=r(81661),w=r(16369),x=r(95034),R=r(87032),k=r(81031),L="Promise",I=R.CONSTRUCTOR,O=R.REJECTION_EVENT,D=R.SUBCLASSING,N=w.getterFor(L),P=w.set,M=x&&x.prototype,B=x,U=M,F=c.TypeError,j=c.document,K=c.process,V=k.f,H=V,z=!!(j&&j.createEvent&&c.dispatchEvent),G="unhandledrejection",q="rejectionhandled",W=0,X=1,Y=2,Q=1,Z=2,J=function(e){var t;return!!(y(e)&&v(t=e.then))&&t},ee=function(e,t){var r,n,i,o=t.value,s=t.state===X,a=s?e.ok:e.fail,l=e.resolve,u=e.reject,c=e.domain;try{a?(s||(t.rejection===Z&&eo(t),t.rejection=Q),!0===a?r=o:(c&&c.enter(),r=a(o),c&&(c.exit(),i=!0)),r===e.promise?u(new F("Promise-chain cycle")):(n=J(r))?h(n,r,l,u):l(r)):u(o)}catch(e){c&&!i&&c.exit(),u(e)}},et=function(e,t){e.notified||(e.notified=!0,A(function(){for(var r,n=e.reactions;r=n.get();)ee(r,e);e.notified=!1,t&&!e.rejection&&en(e)}))},er=function(e,t,r){var n,i;z?((n=j.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),c.dispatchEvent(n)):n={promise:t,reason:r},!O&&(i=c["on"+e])?i(n):e===G&&T("Unhandled promise rejection",r)},en=function(e){h(b,c,function(){var t,r=e.facade,n=e.value;if(ei(e)&&(t=C(function(){u?K.emit("unhandledRejection",n,r):er(G,r,n)}),e.rejection=u||ei(e)?Z:Q,t.error))throw t.value})},ei=function(e){return e.rejection!==Q&&!e.parent},eo=function(e){h(b,c,function(){var t=e.facade;u?K.emit("rejectionHandled",t):er(q,t,e.value)})},es=function(e,t,r){return function(n){e(t,n,r)}},ea=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=Y,et(e,!0))},el=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw new F("Promise can't be resolved itself");var n=J(t);n?A(function(){var r={done:!1};try{h(n,t,es(el,r,e),es(ea,r,e))}catch(t){ea(r,t,e)}}):(e.value=t,e.state=X,et(e,!1))}catch(t){ea({done:!1},t,e)}}};if(I&&(U=(B=function(e){E(this,U),g(e),h(n,this);var t=N(this);try{e(es(el,t),es(ea,t))}catch(e){ea(t,e)}}).prototype,(n=function(e){P(this,{type:L,done:!1,notified:!1,parent:!1,reactions:new S,rejection:!1,state:W,value:void 0})}).prototype=d(U,"then",function(e,t){var r=N(this),n=V(_(this,B));return r.parent=!0,n.ok=!v(e)||e,n.fail=v(t)&&t,n.domain=u?K.domain:void 0,r.state===W?r.reactions.add(n):A(function(){ee(n,r)}),n.promise}),i=function(){var e=new n,t=N(e);this.promise=e,this.resolve=es(el,t),this.reject=es(ea,t)},k.f=V=function(e){return e===B||e===o?new i(e):H(e)},!l&&v(x)&&M!==Object.prototype)){s=M.then,D||d(M,"then",function(e,t){var r=this;return new B(function(e,t){h(s,r,e,t)}).then(e,t)},{unsafe:!0});try{delete M.constructor}catch(e){}f&&f(M,U)}a({global:!0,constructor:!0,wrap:!0,forced:I},{Promise:B}),p(B,L,!1,!0),m(L)},6558:(e,t,r)=>{"use strict";r(68808),r(75143),r(70383),r(12035),r(92173),r(72148)},12035:(e,t,r)=>{"use strict";var n=r(88810),i=r(93625),o=r(54334),s=r(81031),a=r(93443),l=r(71072);n({target:"Promise",stat:!0,forced:r(80341)},{race:function(e){var t=this,r=s.f(t),n=r.reject,u=a(function(){var s=o(t.resolve);l(e,function(e){i(s,t,e).then(r.resolve,n)})});return u.error&&n(u.value),r.promise}})},92173:(e,t,r)=>{"use strict";var n=r(88810),i=r(81031);n({target:"Promise",stat:!0,forced:r(87032).CONSTRUCTOR},{reject:function(e){var t=i.f(this);return(0,t.reject)(e),t.promise}})},72148:(e,t,r)=>{"use strict";var n=r(88810),i=r(33163),o=r(36007),s=r(95034),a=r(87032).CONSTRUCTOR,l=r(6794),u=i("Promise"),c=o&&!a;n({target:"Promise",stat:!0,forced:o||a},{resolve:function(e){return l(c&&this===u?s:this,e)}})},72384:(e,t,r)=>{"use strict";var n=r(88810),i=r(81031);n({target:"Promise",stat:!0},{withResolvers:function(){var e=i.f(this);return{promise:e.promise,resolve:e.resolve,reject:e.reject}}})},96187:(e,t,r)=>{"use strict";r(72384)},58718:(e,t,r)=>{"use strict";var n=r(25927),i=r(54515),o=r(86005).f,s=r(33071).f,a=n.Symbol;if(i("asyncDispose"),a){var l=s(a,"asyncDispose");l.enumerable&&l.configurable&&l.writable&&o(a,"asyncDispose",{value:l.value,enumerable:!1,configurable:!1,writable:!1})}},9415:(e,t,r)=>{"use strict";var n=r(25927),i=r(54515),o=r(86005).f,s=r(33071).f,a=n.Symbol;if(i("dispose"),a){var l=s(a,"dispose");l.enumerable&&l.configurable&&l.writable&&o(a,"dispose",{value:l.value,enumerable:!1,configurable:!1,writable:!1})}},77639:(e,t,r)=>{"use strict";var n=r(73458);e.exports=n},8325:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function o(e){var t=i(e,"string");return"symbol"==n(t)?t:t+""}function s(e,t,r){return(t=o(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{A:()=>s})},77940:(e,t,r)=>{"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;tn})},85620:(e,t,r)=>{"use strict";r.d(t,{a:()=>u,b:()=>h});var n=Object.create,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,a=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),c=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of s(t))l.call(e,a)||a===r||i(e,a,{get:()=>t[a],enumerable:!(n=o(t,a))||n.enumerable});return e},h=(e,t,r)=>(r=null!=e?n(a(e)):{},c(!t&&e&&e.__esModule?r:i(r,"default",{value:e,enumerable:!0}),e))},50804:(e,t,r)=>{"use strict";r.d(t,{a:()=>ty,b:()=>tE,c:()=>t_,d:()=>tS,e:()=>tY,f:()=>tQ,g:()=>tZ,h:()=>tJ,i:()=>t0,j:()=>t1});var n={},i=function(e,t,r,i,o){var s=new Worker(n[t]||(n[t]=URL.createObjectURL(new Blob([e+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return s.onmessage=function(e){var t=e.data,r=t.$e$;if(r){var n=Error(r[0]);n.code=r[1],n.stack=r[2],o(n,null)}else o(null,t)},s.postMessage(r,i),s},o=Uint8Array,s=Uint16Array,a=Int32Array,l=new o([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),u=new o([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),c=new o([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),h=function(e,t){for(var r=new s(31),n=0;n<31;++n)r[n]=t+=1<>1|(21845&y)<<1))>>2|(13107&v)<<2))>>4|(3855&v)<<4,g[y]=((65280&v)>>8|(255&v)<<8)>>1;var v,y,E=function(e,t,r){for(var n,i=e.length,o=0,a=new s(t);o>u]=c}else for(n=new s(i),o=0;o>15-e[o]);return n},_=new o(288);for(y=0;y<144;++y)_[y]=8;for(y=144;y<256;++y)_[y]=9;for(y=256;y<280;++y)_[y]=7;for(y=280;y<288;++y)_[y]=8;var y,b=new o(32);for(y=0;y<32;++y)b[y]=5;var y,A=E(_,9,1),T=E(b,5,1),C=function(e){for(var t=e[0],r=1;rt&&(t=e[r]);return t},S=function(e,t,r){var n=t/8|0;return(e[n]|e[n+1]<<8)>>(7&t)&r},w=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(7&t)},x=function(e){return(e+7)/8|0},R=function(e,t,r){return(null==t||t<0)&&(t=0),(null==r||r>e.length)&&(r=e.length),new o(e.subarray(t,r))},k=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],L=function(e,t,r){var n=Error(t||k[e]);if(n.code=e,Error.captureStackTrace&&Error.captureStackTrace(n,L),!r)throw n;return n},I=function(e,t,r,n){var i=e.length,s=n?n.length:0;if(!i||t.f&&!t.l)return r||new o(0);var a=!r,h=a||2!=t.i,d=t.i;a&&(r=new o(3*i));var p=function(e){var t=r.length;if(e>t){var n=new o(Math.max(2*t,e));n.set(r),r=n}},g=t.f||0,v=t.p||0,y=t.b||0,_=t.l,b=t.d,k=t.m,I=t.n,O=8*i;do{if(!_){g=S(e,v,1);var D=S(e,v+1,3);if(v+=3,D){if(1==D)_=A,b=T,k=9,I=5;else if(2==D){var N=S(e,v,31)+257,P=S(e,v+10,15)+4,M=N+S(e,v+5,31)+1;v+=14;for(var B=new o(M),U=new o(19),F=0;F>4;if(z<16)B[F++]=z;else{var G=0,q=0;for(16==z?(q=3+S(e,v,3),v+=2,G=B[F-1]):17==z?(q=3+S(e,v,7),v+=3):18==z&&(q=11+S(e,v,127),v+=7);q--;)B[F++]=G}}var W=B.subarray(0,N),X=B.subarray(N);k=C(W),I=C(X),_=E(W,k,1),b=E(X,I,1)}else L(1)}else{var z=x(v)+4,Y=e[z-4]|e[z-3]<<8,Q=z+Y;if(Q>i){d&&L(0);break}h&&p(y+Y),r.set(e.subarray(z,Q),y),t.b=y+=Y,t.p=v=8*Q,t.f=g;continue}if(v>O){d&&L(0);break}}h&&p(y+131072);for(var Z=(1<>4;if((v+=15&G)>O){d&&L(0);break}if(G||L(2),et<256)r[y++]=et;else if(256==et){ee=v,_=null;break}else{var er=et-254;if(et>264){var F=et-257,en=l[F];er=S(e,v,(1<>4;ei||L(3),v+=15&ei;var X=m[eo];if(eo>3){var en=u[eo];X+=w(e,v)&(1<O){d&&L(0);break}h&&p(y+131072);var es=y+er;if(y>>0},z=function(e,t){return H(e,t)+4294967296*H(e,t+4)};function G(e,t,r){return r||(r=t,t={}),"function"!=typeof r&&L(7),K(e,t,[U],function(e){return F(q(e.data[0],j(e.data[1])))},1,r)}function q(e,t){return I(e,{i:2},t&&t.out,t&&t.dictionary)}var W="u">typeof TextDecoder&&new TextDecoder,X=0;try{W.decode(O,{stream:!0}),X=1}catch{}var Y=function(e){for(var t="",r=0;;){var n=e[r++],i=(n>127)+(n>223)+(n>239);if(r+i>e.length)return{s:t,r:R(e,r-1)};i?3==i?t+=String.fromCharCode(55296|(n=((15&n)<<18|(63&e[r++])<<12|(63&e[r++])<<6|63&e[r++])-65536)>>10,56320|1023&n):1&i?t+=String.fromCharCode((31&n)<<6|63&e[r++]):t+=String.fromCharCode((15&n)<<12|(63&e[r++])<<6|63&e[r++]):t+=String.fromCharCode(n)}};function Q(e,t){if(t){for(var r="",n=0;n65558)return a(L(13,0,1),null),i;var u=V(e,l+8);if(u){var c=u,h=H(e,l+16),d=4294967295==h||65535==c;if(d){var f=H(e,l-12);(d=101075792==H(e,f))&&(c=u=H(e,f+32),h=H(e,f+48))}for(var p=t&&t.filter,m=function(t){var r=J(e,h,d),l=r[0],c=r[1],f=r[2],m=r[3],g=r[4],v=Z(e,r[5]);h=g;var y=function(e,t){e?(i(),a(e,null)):(t&&(s[m]=t),--u||a(null,s))};if(!p||p({name:m,size:c,originalSize:f,compression:l})){if(l){if(8==l){var E=e.subarray(v,v+c);if(c<32e4)try{y(null,q(E,{out:new o(f)}))}catch(e){y(e,null)}else n.push(G(E,{size:f},y))}else y(L(14,"unknown compression type "+l,1),null)}else y(null,R(e,v,v+c))}else y(null,null)},g=0;g{if(t.path){let r=t.path.map(({key:e})=>e).join(".");e.nested[r]=[...e.nested[r]||[],t.message]}else e.root=[...e.root||[],t.message];return e},{nested:{}})}var ei=class extends Error{issues;constructor(e){super(e[0].message),this.name="ValiError",this.issues=e}};function eo(e,t){return{reason:null==e?void 0:e.reason,validation:t.validation,origin:(null==e?void 0:e.origin)||"value",message:t.message,input:t.input,abortEarly:null==e?void 0:e.abortEarly,abortPipeEarly:null==e?void 0:e.abortPipeEarly}}function es(e,t){return{reason:t,origin:null==e?void 0:e.origin,abortEarly:null==e?void 0:e.abortEarly,abortPipeEarly:null==e?void 0:e.abortPipeEarly}}function ea(e,t,r,n){if(!t||!t.length)return{output:e};let i,o,s=e;for(let e of t){let t=e(s);if(t.issue){let e=eo(i=i||es(r,n),t.issue);if(o?o.push(e):o=[e],i.abortEarly||i.abortPipeEarly)break}else s=t.output}return o?{issues:o}:{output:s}}function el(e,t){return e&&"string"!=typeof e?[void 0,e]:[e,t]}function eu(e,t,r,n,i,o){return{issues:[{reason:t,validation:r,origin:(null==e?void 0:e.origin)||"value",message:n,input:i,issues:o,abortEarly:null==e?void 0:e.abortEarly,abortPipeEarly:null==e?void 0:e.abortPipeEarly}]}}function ec(e=[]){return{schema:"any",async:!1,_parse:(t,r)=>ea(t,e,r,"any")}}function eh(e,t,r){let[n,i]=el(t,r);return{schema:"array",array:{item:e},async:!1,_parse(t,r){if(!Array.isArray(t))return eu(r,"type","array",n||"Invalid type",t);let o,s=[];for(let n=0;n"boolean"!=typeof e?eu(t,"type","boolean",r||"Invalid type",e):ea(e,n,t,"boolean")}}function ef(e,t){return{schema:"literal",literal:e,async:!1,_parse:(r,n)=>r!==e?eu(n,"type","literal",t||"Invalid type",r):{output:r}}}function ep(e,t){return{schema:"native_enum",nativeEnum:e,async:!1,_parse:(r,n)=>Object.values(e).includes(r)?{output:r}:eu(n,"type","native_enum",t||"Invalid type",r)}}function em(e,t){let[r,n]=el(e,t);return{schema:"number",async:!1,_parse:(e,t)=>"number"!=typeof e?eu(t,"type","number",r||"Invalid type",e):ea(e,n,t,"number")}}function eg(e,t,r){let[n,i]=el(t,r),o;return{schema:"object",object:e,async:!1,_parse(t,r){if(!t||"object"!=typeof t)return eu(r,"type","object",n||"Invalid type",t);o=o||Object.entries(e);let s,a={};for(let[e,n]of o){let i=t[e],o=n._parse(i,r);if(o.issues){let n={schema:"object",input:t,key:e,value:i};for(let e of o.issues)e.path?e.path.unshift(n):e.path=[n],null==s||s.push(e);if(s||(s=o.issues),null!=r&&r.abortEarly)break}else a[e]=o.output}return s?{issues:s}:ea(a,i,r,"object")}}}function ev(e){return{schema:"optional",wrapped:e,async:!1,_parse:(t,r)=>void 0===t?{output:t}:e._parse(t,r)}}function ey(e,t){let[r,n]=el(e,t);return{schema:"string",async:!1,_parse:(e,t)=>"string"!=typeof e?eu(t,"type","string",r||"Invalid type",e):ea(e,n,t,"string")}}function eE(e,t,r,n){if("object"==typeof t&&!Array.isArray(t)){let[i,o]=el(r,n);return[e,t,i,o]}let[i,o]=el(t,r);return[ey(),e,i,o]}var e_=["__proto__","prototype","constructor"];function eb(e,t,r,n){let[i,o,s,a]=eE(e,t,r,n);return{schema:"record",record:{key:i,value:o},async:!1,_parse(e,t){if(!e||"object"!=typeof e)return eu(t,"type","record",s||"Invalid type",e);let r,n={};for(let[s,a]of Object.entries(e))if(!e_.includes(s)){let l,u=i._parse(s,{origin:"key",abortEarly:null==t?void 0:t.abortEarly,abortPipeEarly:null==t?void 0:t.abortPipeEarly});if(u.issues){for(let t of(l={schema:"record",input:e,key:s,value:a},u.issues))t.path=[l],null==r||r.push(t);if(r||(r=u.issues),null!=t&&t.abortEarly)break}let c=o._parse(a,t);if(c.issues){for(let t of(l=l||{schema:"record",input:e,key:s,value:a},c.issues))t.path?t.path.unshift(l):t.path=[l],null==r||r.push(t);if(r||(r=c.issues),null!=t&&t.abortEarly)break}u.issues||c.issues||(n[u.output]=c.output)}return r?{issues:r}:ea(n,a,t,"record")}}}function eA(e,t,r){if("object"==typeof e&&!Array.isArray(e)){let[n,i]=el(t,r);return[e,n,i]}let[n,i]=el(e,t);return[void 0,n,i]}function eT(e,t,r,n){let[i,o,s]=eA(t,r,n);return{schema:"tuple",tuple:{items:e,rest:i},async:!1,_parse(t,r){if(!Array.isArray(t)||!i&&e.length!==t.length||i&&e.length>t.length)return eu(r,"type","tuple",o||"Invalid type",t);let n,a=[];for(let i=0;i({...e,...t.object}),{}),n,i)}function ew(e,t,r,n){let[i,o]=el(r,n);return eg(Object.entries(e.object).reduce((e,[r,n])=>t.includes(r)?e:{...e,[r]:n},{}),i,o)}function ex(e,t,r){let n=e._parse(t,r);return n.issues?{success:!1,error:new ei(n.issues),issues:n.issues}:{success:!0,data:n.output,output:n.output}}function eR(e,t){return r=>r>e?{issue:{validation:"max_value",message:t||"Invalid value",input:r}}:{output:r}}function ek(e,t){return r=>rt in e?eI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,eB=(e,t)=>function(){return t||(0,e[eD(e)[0]])((t={exports:{}}).exports,t),t.exports},eU=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of eD(t))eP.call(e,i)||i===r||eI(e,i,{get:()=>t[i],enumerable:!(n=eO(t,i))||n.enumerable});return e},eF=(e,t,r)=>(r=null!=e?eL(eN(e)):{},eU(!t&&e&&e.__esModule?r:eI(r,"default",{value:e,enumerable:!0}),e)),ej=(e,t,r)=>(eM(e,"symbol"!=typeof t?t+"":t,r),r),eK=eB({"../../node_modules/.pnpm/@rgba-image+copy@0.1.3/node_modules/@rgba-image/copy/dist/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.copy=void 0;var t=(e,t,r=0,n=0,i=e.width-r,o=e.height-n,s=0,a=0)=>{if(r|=0,n|=0,o|=0,s|=0,a|=0,(i|=0)<=0||o<=0)return;let l=new Uint32Array(e.data.buffer),u=new Uint32Array(t.data.buffer);for(let c=0;c=e.height)continue;let h=a+c;if(!(h<0||h>=t.height))for(let n=0;n=e.width)continue;let a=s+n;if(a<0||a>=t.width)continue;let c=o*e.width+i;u[h*t.width+a]=l[c]}}};e.copy=t}}),eV=eB({"../../node_modules/.pnpm/@rgba-image+create-image@0.1.1/node_modules/@rgba-image/create-image/dist/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CreateImageFactory=(e=[0,0,0,0],t=4)=>{if(isNaN(t=Math.floor(t))||t<1)throw TypeError("channels should be a positive non-zero number");if(!("length"in e)||e.length0===e);return(n,i,o)=>{if(void 0===n||void 0===i)throw TypeError("Not enough arguments");if(n=Math.floor(n),i=Math.floor(i),isNaN(n)||n<1||isNaN(i)||i<1)throw TypeError("Index or size is negative or greater than the allowed amount");let s=n*i*t;if(void 0===o&&(o=new Uint8ClampedArray(s)),o instanceof Uint8ClampedArray){if(o.length!==s)throw TypeError("Index or size is negative or greater than the allowed amount");if(!r)for(let r=0;r{if(e<=-t||e>=t||0==e)return 0;let r=e*Math.PI;return Math.sin(r)/r*Math.sin(r/t)/(r/t)},n=e=>Math.round(e*((1<{let a=s?2:3,l=1/i,u=Math.min(1,i),c=a/u,h=new Int16Array((Math.floor((c+1)*2)+2)*t),d=0;for(let i=0;i>1]+=n(1-_);let b=0;for(;b0&&0===v[A];)A--;let T=f+b,C=A-b+1;h[d++]=T,h[d++]=C,h.set(v.subarray(b,A+1),d),d+=C}return h};e.filters=i}}),ez=eB({"../../node_modules/.pnpm/@rgba-image+lanczos@0.1.1/node_modules/@rgba-image/lanczos/dist/convolve.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.convolve=void 0;var t=14,r=(e,r,n,i,o,s)=>{let a=0,l=0;for(let u=0;u0;t--){let t=s[c++];o=o+t*e[n]|0,u=u+t*e[n+1]|0,h=h+t*e[n+2]|0,d=d+t*e[n+3]|0,n=n+4|0}r[l]=o+8192>>t,r[l+1]=u+8192>>t,r[l+2]=h+8192>>t,r[l+3]=d+8192>>t,l=l+4*i|0}l=(u+1)*4|0,a=(u+1)*n*4|0}};e.convolve=r}}),e$=eB({"../../node_modules/.pnpm/@rgba-image+lanczos@0.1.1/node_modules/@rgba-image/lanczos/dist/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.lanczos2=e.lanczos=void 0;var t=eK(),r=eV(),n=eH(),i=ez(),o=(e,t,r=!1)=>{let o=t.width/e.width,s=t.height/e.height,a=n.filters(e.width,t.width,o,0,r),l=n.filters(e.height,t.height,s,0,r),u=new Uint8ClampedArray(t.width*e.height*4);i.convolve(e.data,u,e.width,e.height,t.width,a),i.convolve(u,t.data,e.height,t.width,t.height,l)},s=(e,n,i=0,s=0,a=e.width-i,l=e.height-s,u=0,c=0,h=n.width-u,d=n.height-c)=>{if(i|=0,s|=0,l|=0,u|=0,c|=0,h|=0,d|=0,(a|=0)<=0||l<=0||h<=0||d<=0)return;if(0===i&&0===s&&a===e.width&&l===e.height&&0===u&&0===c&&h===n.width&&d===n.height){o(e,n);return}let f=r.createImage(a,l),p=r.createImage(h,d);t.copy(e,f,i,s),o(f,p),t.copy(p,n,0,0,p.width,p.height,u,c)};e.lanczos=s;var a=(e,n,i=0,s=0,a=e.width-i,l=e.height-s,u=0,c=0,h=n.width-u,d=n.height-c)=>{if(i|=0,s|=0,l|=0,u|=0,c|=0,h|=0,d|=0,(a|=0)<=0||l<=0||h<=0||d<=0)return;if(0===i&&0===s&&a===e.width&&l===e.height&&0===u&&0===c&&h===n.width&&d===n.height){o(e,n,!0);return}let f=r.createImage(a,l),p=r.createImage(h,d);t.copy(e,f,i,s),o(f,p,!0),t.copy(p,n,0,0,p.width,p.height,u,c)};e.lanczos2=a}}),eG=(e=>(e.Bounce="bounce",e.Normal="normal",e))(eG||{}),eq=ep(eG),eW=eg({autoplay:ev(ed()),defaultTheme:ev(ey()),direction:ev(eC([ef(1),ef(-1)])),hover:ev(ed()),id:ey(),intermission:ev(em()),loop:ev(eC([ed(),em()])),playMode:ev(eq),speed:ev(em()),themeColor:ev(ey())}),eX=eg({animations:eh(ey()),id:ey()}),eY=eg({activeAnimationId:ev(ey()),animations:eh(eW),author:ev(ey()),custom:ev(eb(ey(),ec())),description:ev(ey()),generator:ev(ey()),keywords:ev(ey()),revision:ev(em()),themes:ev(eh(eX)),states:ev(eh(ey())),version:ev(ey())}),eQ=ew(eW,["id"]),eZ=eg({state:ey()}),eJ=eZ,e0=eS([eZ,eg({ms:em()})]),e1=eS([eZ,eg({count:em()})]),e2=eZ,e3=eZ,e4=eZ,e5=eS([eZ,eg({threshold:ev(eh(em([ek(0),eR(1)])))})]),e6=eg({onAfter:ev(e0),onClick:ev(eJ),onComplete:ev(e4),onEnter:ev(e1),onMouseEnter:ev(e2),onMouseLeave:ev(e3),onShow:ev(e5)}),e7=eS([eQ,eg({playOnScroll:ev(eT([em([ek(0),eR(1)]),em([ek(0),eR(1)])])),segments:ev(eC([eT([em(),em()]),ey()]))})]);eS([e6,eg({animationId:ev(ey()),playbackSettings:e7})]);var e8={jpeg:"image/jpeg",png:"image/png",gif:"image/gif",bmp:"image/bmp",svg:"image/svg+xml",webp:"image/webp",mpeg:"audio/mpeg",mp3:"audio/mp3"},e9={jpeg:[255,216,255],png:[137,80,78,71,13,10,26,10],gif:[71,73,70],bmp:[66,77],webp:[82,73,70,70,87,69,66,80],svg:[60,63,120],mp3:[73,68,51,3,0,0,0,0],mpeg:[73,68,51,3,0,0,0,0]},te=e=>{let t=null,r=[];if(!e)return null;let n=e.substring(e.indexOf(",")+1),i=new Uint8Array((t=typeof window>"u"?Buffer.from(n,"base64").toString("binary"):atob(n)).length);for(let e=0;ee===t[r]))return e8[e]}return null},tt=class extends Error{constructor(e,t){super(e),ej(this,"code"),this.name="[dotlottie-js]",this.code=t}};function tr(e){let t;if(typeof window>"u")t=Buffer.from(e).toString("base64");else{let r=Array.prototype.map.call(e,e=>String.fromCharCode(e)).join("");t=window.btoa(r)}return`data:${te(t)};base64,${t}`}function tn(e){return"w"in e&&"h"in e&&!("xt"in e)&&"p"in e}function ti(e){return!("h"in e)&&!("w"in e)&&"p"in e&&"e"in e&&"u"in e&&"id"in e}async function to(e,t=()=>!0){if(!(e instanceof Uint8Array))throw new tt("DotLottie not found","INVALID_DOTLOTTIE");return await new Promise((r,n)=>{er(e,{filter:t},(e,t)=>{e&&n(e),r(t)})})}async function ts(e,t,r){if(!(e instanceof Uint8Array))throw new tt("DotLottie not found","INVALID_DOTLOTTIE");return(await to(e,e=>e.name===t&&(!r||r(e))))[t]}async function ta(e){let t="manifest.json",r=(await to(e,e=>e.name===t))[t];if(!(typeof r>"u"))return JSON.parse(Q(r,!1))}async function tl(e){if(!(e instanceof Uint8Array))return{success:!1,error:"DotLottie not found"};let t=await ta(e);if(typeof t>"u")return{success:!1,error:"Invalid .lottie file, manifest.json is missing"};let r=ex(eY,t);return r.success?{success:!0}:{success:!1,error:`Invalid .lottie file, manifest.json structure is invalid, ${JSON.stringify(en(r.error).nested,null,2)}`}}async function tu(e){let t=new Uint8Array(e),r=await tl(t);if(r.error)throw new tt(r.error,"INVALID_DOTLOTTIE");return t}async function tc(e,t){let r=await to(e,e=>{let r=e.name.replace("audio/","");return e.name.startsWith("audio/")&&(!t||t({...e,name:r}))}),n={};for(let e in r){let t=r[e];t instanceof Uint8Array&&(n[e.replace("audio/","")]=tr(t))}return n}async function th(e,t){var r;let n=new Map;for(let[e,i]of Object.entries(t))for(let t of i.assets||[])if(ti(t)){let i=t.p;n.has(i)||n.set(i,new Set),null==(r=n.get(i))||r.add(e)}let i=await tc(e,e=>n.has(e.name));for(let[e,r]of n){let n=i[e];if(n)for(let i of r){let r=t[i];for(let t of(null==r?void 0:r.assets)||[])ti(t)&&t.p===e&&(t.p=n,t.u="",t.e=1)}}}async function td(e,t){let r=await to(e,e=>{let r=e.name.replace("images/","");return e.name.startsWith("images/")&&(!t||t({...e,name:r}))}),n={};for(let e in r){let t=r[e];t instanceof Uint8Array&&(n[e.replace("images/","")]=tr(t))}return n}async function tf(e,t){var r;let n=new Map;for(let[e,i]of Object.entries(t))for(let t of i.assets||[])if(tn(t)){let i=t.p;n.has(i)||n.set(i,new Set),null==(r=n.get(i))||r.add(e)}let i=await td(e,e=>n.has(e.name));for(let[e,r]of n){let n=i[e];if(n)for(let i of r){let r=t[i];for(let t of(null==r?void 0:r.assets)||[])tn(t)&&t.p===e&&(t.p=n,t.u="",t.e=1)}}}async function tp(e,t,{inlineAssets:r}={},n){let i=`animations/${t}.json`,o=await ts(e,i,n);if(typeof o>"u")return;let s=JSON.parse(Q(o,!1));if(!r)return s;let a={[t]:s};return await tf(e,a),await th(e,a),s}async function tm(e,t,r){let n=`themes/${t}.json`,i=await ts(e,n,r);if(!(typeof i>"u"))return JSON.parse(Q(i,!1))}async function tg(e,t){let r={},n=await to(e,e=>{let r=e.name.replace("states/","").replace(".json","");return e.name.startsWith("states/")&&(!t||t({...e,name:r}))});for(let e in n){let t=n[e];t instanceof Uint8Array&&(r[e.replace("states/","").replace(".json","")]=Q(t,!1))}return r}async function tv(e,t,r){let n=`states/${t}.json`,i=await ts(e,n,r);return typeof i>"u"?void 0:JSON.parse(Q(i,!1))}function ty(e,t="dotLottie-common"){return Error(`[${t}]: ${e}`)}function tE(e,t="dotLottie-common",...r){console.error(`[${t}]:`,e,...r)}function t_(e,t="dotLottie-common",...r){console.warn(`[${t}]:`,e,...r)}function tb(e=""){let t=e.trim(),r=t.lastIndexOf("/"),n=t.substring(r+1),i=n.indexOf(".");return -1!==i?n.substring(0,i):n}function tA(e){return["v","ip","op","layers","fr","w","h"].every(t=>Object.prototype.hasOwnProperty.call(e,t))}function tT(e){let t=e.assets;return!!t&&t.some(e=>ti(e))}function tC(e){try{let t=JSON.parse(e);return tA(t)}catch{return!1}}function tS(e,t){let r=Object.keys(e).find(r=>e[r]===t);if(void 0===r)throw Error("Value not found in the object.");return r}function tw(e){return JSON.parse(JSON.stringify(e))}eF(e$());var tx=class{_dotLottie;_animationsMap=new Map;_themeMap=new Map;_stateMachinesMap=new Map;_manifest;get dotLottie(){return this._dotLottie}get animationsMap(){return this._animationsMap}get themeMap(){return this._themeMap}get stateMachinesMap(){return this._stateMachinesMap}get manifest(){return this._manifest}async loadFromUrl(e){let t=await fetch(e,{method:"GET",mode:"cors"});if(!t.ok)throw Error(`Failed to load dotLottie from ${e} with status ${t.status}`);let r=t.headers.get("content-type");if(null!=r&&r.includes("application/json")){let r=await t.json();if(!tA(r))throw Error(`Invalid lottie JSON at ${e}`);let n=tb(e);this._animationsMap.set(n,r);let i={activeAnimationId:n,animations:[{id:n}]};this._manifest=i}else{this._dotLottie=await tu(await t.arrayBuffer());let e=await ta(this._dotLottie);if(!e)throw Error("Manifest not found");this._manifest=e}}loadFromLottieJSON(e){if(!tA(e))throw Error("Invalid lottie JSON");let t="my-animation";this._animationsMap.set(t,e);let r={activeAnimationId:t,animations:[{id:t}]};this._manifest=r}async loadFromArrayBuffer(e){this._dotLottie=await tu(e);let t=await ta(this._dotLottie);if(!t)throw Error("Manifest not found");this._manifest=t}async getAnimation(e){if(this._animationsMap.get(e))return this._animationsMap.get(e);if(!this._dotLottie)return;let t=await tp(this._dotLottie,e,{inlineAssets:!0});return t&&this._animationsMap.set(e,t),t}async getTheme(e){if(this._themeMap.get(e))return this._themeMap.get(e);if(!this._dotLottie)return;let t=await tm(this._dotLottie,e);return t&&this._themeMap.set(e,t),t}async getStateMachines(){if(!this._dotLottie)return;let e=await tg(this._dotLottie);for(let t in e)if(t){let r=e[t];if(r){let e=JSON.parse(r);if(e){let t=e.descriptor.id;this._stateMachinesMap.get(t)||this._stateMachinesMap.set(t,e)}}}return Array.from(this._stateMachinesMap.values())}async getStateMachine(e){if(this._stateMachinesMap.get(e))return this._stateMachinesMap.get(e);if(!this._dotLottie)return;let t=await tv(this._dotLottie,e);return t&&this._stateMachinesMap.set(t.descriptor.id,t),t}};function tR(){throw Error("Cycle detected")}function tk(){if(tO>1)tO--;else{for(var e,t=!1;void 0!==tI;){var r=tI;for(tI=void 0,tD++;void 0!==r;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&tU(r))try{r.c()}catch(r){t||(e=r,t=!0)}r=n}}if(tD=0,tO--,t)throw e}}var tL=void 0,tI=void 0,tO=0,tD=0,tN=0;function tP(e){if(void 0!==tL){var t=e.n;if(void 0===t||t.t!==tL)return t={i:0,S:e,p:tL.s,n:void 0,t:tL,e:void 0,x:void 0,r:t},void 0!==tL.s&&(tL.s.n=t),tL.s=t,e.n=t,32&tL.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=tL.s,t.n=void 0,tL.s.n=t,tL.s=t),t}}function tM(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function tB(e){return new tM(e)}function tU(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function tF(e){for(var t=e.s;void 0!==t;t=t.n){var r=t.S.n;if(void 0!==r&&(t.r=r),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function tj(e){for(var t=e.s,r=void 0;void 0!==t;){var n=t.p;-1===t.i?(t.S.U(t),void 0!==n&&(n.n=t.n),void 0!==t.n&&(t.n.p=n)):r=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=n}e.s=r}function tK(e){tM.call(this,void 0),this.x=e,this.s=void 0,this.g=tN-1,this.f=4}function tV(e){var t=e.u;if(e.u=void 0,"function"==typeof t){tO++;var r=tL;tL=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,tH(e),t}finally{tL=r,tk()}}}function tH(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,tV(e)}function tz(e){if(tL!==this)throw Error("Out-of-order effect");tj(this),tL=e,this.f&=-2,8&this.f&&tH(this),tk()}function t$(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function tG(e){var t=new t$(e);try{t.c()}catch(e){throw t.d(),e}return t.d.bind(t)}tM.prototype.h=function(){return!0},tM.prototype.S=function(e){this.t!==e&&void 0===e.e&&(e.x=this.t,void 0!==this.t&&(this.t.e=e),this.t=e)},tM.prototype.U=function(e){if(void 0!==this.t){var t=e.e,r=e.x;void 0!==t&&(t.x=r,e.e=void 0),void 0!==r&&(r.e=t,e.x=void 0),e===this.t&&(this.t=r)}},tM.prototype.subscribe=function(e){var t=this;return tG(function(){var r=t.value,n=32&this.f;this.f&=-33;try{e(r)}finally{this.f|=n}})},tM.prototype.valueOf=function(){return this.value},tM.prototype.toString=function(){return this.value+""},tM.prototype.toJSON=function(){return this.value},tM.prototype.peek=function(){return this.v},Object.defineProperty(tM.prototype,"value",{get:function(){var e=tP(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(tL instanceof tK&&function(){throw Error("Computed cannot have side-effects")}(),e!==this.v){tD>100&&tR(),this.v=e,this.i++,tN++,tO++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{tk()}}}}),(tK.prototype=new tM).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===tN))return!0;if(this.g=tN,this.f|=1,this.i>0&&!tU(this))return this.f&=-2,!0;var e=tL;try{tF(this),tL=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return tL=e,tj(this),this.f&=-2,!0},tK.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}tM.prototype.S.call(this,e)},tK.prototype.U=function(e){if(void 0!==this.t&&(tM.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},tK.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},tK.prototype.peek=function(){if(this.h()||tR(),16&this.f)throw this.v;return this.v},Object.defineProperty(tK.prototype,"value",{get:function(){1&this.f&&tR();var e=tP(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),t$.prototype.c=function(){var e=this.S();try{if(8&this.f||void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.u=t)}finally{e()}},t$.prototype.S=function(){1&this.f&&tR(),this.f|=1,this.f&=-9,tV(this),tF(this),tO++;var e=tL;return tL=this,tz.bind(this,e)},t$.prototype.N=function(){2&this.f||(this.f|=2,this.o=tI,tI=this)},t$.prototype.d=function(){this.f|=8,1&this.f||tH(this)};var tq=class{_state;_prevState;constructor(e){this._prevState=e,this._state=tB(e)}setState(e){this._prevState=this._state.value,this._state.value=e}subscribe(e){return this._state.subscribe(t=>e(t,this._prevState))}};async function tW(e,t){let[{DotLottieStateMachineManager:n}]=await Promise.all([r.e(6902).then(r.bind(r,76080))]);if(!e.length)throw ty("No state machines available inside this .lottie!");return new n(e,t)}var tX={dependencies:{"@dotlottie/dotlottie-js":"^0.7.0","@preact/signals-core":"^1.2.3",howler:"^2.2.3","lottie-web":"^5.12.2",xstate:"^4.38.1"}},tY=(e=>(e.Complete="complete",e.DataFail="data_fail",e.DataReady="data_ready",e.Error="error",e.Frame="frame",e.Freeze="freeze",e.LoopComplete="loopComplete",e.Pause="pause",e.Play="play",e.Ready="ready",e.Stop="stop",e.VisibilityChange="visibilityChange",e))(tY||{}),tQ=(e=>(e.Completed="completed",e.Error="error",e.Fetching="fetching",e.Frozen="frozen",e.Initial="initial",e.Loading="loading",e.Paused="paused",e.Playing="playing",e.Ready="ready",e.Stopped="stopped",e))(tQ||{}),tZ=(e=>(e.Bounce="bounce",e.Normal="normal",e))(tZ||{}),tJ={autoplay:!1,direction:1,hover:!1,intermission:0,loop:!1,playMode:"normal",speed:1,defaultTheme:""},t0={activeStateId:"",autoplay:!1,currentState:"initial",frame:0,seeker:0,direction:1,hover:!1,loop:!1,playMode:"normal",speed:1,background:"transparent",intermission:0,currentAnimationId:void 0,visibilityPercentage:0},t1=class{_lottie;_src;_animationConfig;_prevUserPlaybackOptions={};_userPlaybackOptions;_hover=!1;_loop=!1;_counter=0;_intermission=0;_counterInterval=null;_container=null;_name;_mode="normal";_background="transparent";_animation;_defaultTheme;_activeAnimationId;_currentAnimationId;_testId;_listeners=new Map;_currentState="initial";_stateBeforeFreeze="initial";state=new tq(t0);_light=!1;_worker=!1;_dotLottieLoader=new tx;_activeStateId;_inInteractiveMode=!1;_scrollTicking=!1;_scrollCallback=void 0;_onShowIntersectionObserver=void 0;_visibilityPercentage=0;_audios=[];_stateMachineManager;constructor(e,t,r){"string"==typeof e?this._src=e:this._src=tw(e),null!=r&&r.testId&&(this._testId=r.testId),this._defaultTheme=(null==r?void 0:r.defaultTheme)||"",this._userPlaybackOptions=this._validatePlaybackOptions(r||{}),"string"==typeof(null==r?void 0:r.activeAnimationId)&&(this._activeAnimationId=r.activeAnimationId),this._container=t||null,"string"==typeof(null==r?void 0:r.background)&&this.setBackground(r.background),"u">typeof(null==r?void 0:r.activeStateId)&&(this._activeStateId=r.activeStateId);let{rendererSettings:n,...i}=r||{};this._animationConfig={loop:!1,autoplay:!1,renderer:"svg",rendererSettings:{clearCanvas:!0,progressiveLoad:!0,hideOnTransparent:!0,filterSize:{width:"200%",height:"200%",x:"-50%",y:"-50%"},...n},...i},null!=r&&r.light&&(this._light=r.light),null!=r&&r.worker&&(this._worker=r.worker),this._listenToHover(),this._listenToVisibilityChange()}_listenToHover(){var e,t,r,n;let i=()=>{this._hover&&"playing"!==this.currentState&&this.play()},o=()=>{this._hover&&"playing"===this.currentState&&this.stop()};null==(e=this._container)||e.removeEventListener("mouseenter",i),null==(t=this._container)||t.removeEventListener("mouseleave",o),null==(r=this._container)||r.addEventListener("mouseleave",o),null==(n=this._container)||n.addEventListener("mouseenter",i)}_onVisibilityChange(){!this._lottie||typeof document>"u"||(document.hidden&&"playing"===this.currentState?this.freeze():"frozen"===this.currentState&&this.unfreeze())}_listenToVisibilityChange(){"u">typeof document&&"u">typeof document.hidden&&document.addEventListener("visibilitychange",()=>this._onVisibilityChange())}_getOption(e){var t;if("u">typeof this._userPlaybackOptions[e])return this._userPlaybackOptions[e];let r=null==(t=this._dotLottieLoader.manifest)?void 0:t.animations.find(e=>e.id===this._currentAnimationId);return r&&"u">typeof r[e]?r[e]:tJ[e]}_getPlaybackOptions(){let e={};for(let t in tJ)"u">typeof tJ[t]&&(e[t]=this._getOption(t));return e}_setPlayerState(e){var t,r,n;let i=e(this._getPlaybackOptions());try{eQ._parse(i)}catch{t_(`Invalid PlaybackOptions, ${JSON.stringify(i,null,2)}`);return}"u">typeof i.defaultTheme&&(this._defaultTheme=i.defaultTheme),"u">typeof i.playMode&&(this._mode=i.playMode),"u">typeof i.intermission&&(this._intermission=i.intermission),"u">typeof i.hover&&(this._hover=i.hover),"u">typeof i.loop&&(this.clearCountTimer(),this._loop=i.loop,this._counter=0,null==(t=this._lottie)||t.setLoop("number"==typeof i.loop||i.loop)),"u">typeof i.speed&&(null==(r=this._lottie)||r.setSpeed(i.speed)),"u">typeof i.autoplay&&this._lottie&&(this._lottie.autoplay=i.autoplay),"u">typeof i.direction&&(null==(n=this._lottie)||n.setDirection(i.direction))}_getOptionsFromAnimation(e){let{id:t,...r}=e;return{...tJ,...r}}_updateTestData(){this._testId&&this._lottie&&(window.dotLottiePlayer||(window.dotLottiePlayer={[this._testId]:{}}),window.dotLottiePlayer[this._testId]={direction:this._lottie.playDirection,currentState:this._currentState,loop:this.loop,mode:this._mode,speed:this._lottie.playSpeed})}setContainer(e){e!==this._container&&(this._container=e,this.setBackground(this._background),this._listenToHover())}get currentState(){return this._currentState}clearCountTimer(){this._counterInterval&&clearInterval(this._counterInterval)}setCurrentState(e){this._currentState=e,this._notify(),this._updateTestData()}static isPathJSON(e){var t;return(null==(t=e.split(".").pop())?void 0:t.toLowerCase())==="json"}get src(){return this._src}updateSrc(e){this._src!==e&&("string"==typeof e?this._src=e:this._src=tw(e),this._activeAnimationId=void 0,this._currentAnimationId=void 0,this.load())}get intermission(){return this._intermission}get hover(){return this._hover}setHover(e){"boolean"==typeof e&&(this._hover=e,this._userPlaybackOptions.hover=e,this._notify())}setIntermission(e){this._intermission=e,this._userPlaybackOptions.intermission=e,this._notify()}get mode(){return this._mode}get animations(){return this._dotLottieLoader.animationsMap}get themes(){return this._dotLottieLoader.themeMap}setMode(e){"string"==typeof e&&(this._mode=e,this._userPlaybackOptions.playMode=e,this._setPlayerState(()=>({playMode:e})),this._notify(),this._updateTestData())}get container(){if(this._container)return this._container}goToAndPlay(e,t,r){if(!this._lottie||["loading"].includes(this._currentState)){t_("goToAndPlay() Can't use whilst loading.");return}this._lottie.goToAndPlay(e,t,r),this.setCurrentState("playing")}goToAndStop(e,t,r){if(!this._lottie||["loading"].includes(this._currentState)){t_("goToAndStop() Can't use whilst loading.");return}this._lottie.goToAndStop(e,t,r),this.setCurrentState("stopped")}seek(e){if(!this._lottie||["loading"].includes(this._currentState)){t_("seek() Can't use whilst loading.");return}let t=e;"number"==typeof t&&(t=Math.round(t));let r=/^(\d+)(%?)$/u.exec(t.toString());if(!r)return;let n="%"===r[2]?this.totalFrames*Number(r[1])/100:r[1];void 0!==n&&(this._lottie.goToAndPlay(n,!0),"playing"===this.currentState?this.play():"frozen"===this.currentState?this.freeze():this.pause())}_areNumbersInRange(e,t){return e>=0&&e<=1&&t>=0&&t<=1}_updatePosition(e,t,r){let[n,i]=null!=e?e:[0,this.totalFrames-1],[o,s]=null!=t?t:[0,1];if(!this._areNumbersInRange(o,s)){tE("threshold values must be between 0 and 1");return}if(this.container){let{height:e,top:t}=this.container.getBoundingClientRect(),a=(window.innerHeight-t)/(window.innerHeight+e),l=n+Math.round((a-o)/(s-o)*(i-n));r&&r(a),this.goToAndStop(l,!0),(l>=i||a>=s)&&this._handleAnimationComplete()}this._scrollTicking=!1}_requestTick(e,t,r){this._scrollTicking||(requestAnimationFrame(()=>this._updatePosition(e,t,r)),this._scrollTicking=!0)}playOnScroll(e){this.stop(),this._scrollCallback&&this.stopPlayOnScroll(),this._scrollCallback=()=>this._requestTick(null==e?void 0:e.segments,null==e?void 0:e.threshold,null==e?void 0:e.positionCallback),window.addEventListener("scroll",this._scrollCallback)}stopPlayOnScroll(){this._scrollCallback&&(window.removeEventListener("scroll",this._scrollCallback),this._scrollCallback=void 0)}stopPlayOnShow(){this._onShowIntersectionObserver&&(this._onShowIntersectionObserver.disconnect(),this._onShowIntersectionObserver=void 0)}addIntersectionObserver(e){if(!this.container)throw ty("Can't play on show, player container element not available.");let t={root:null,rootMargin:"0px",threshold:null!=e&&e.threshold?e.threshold:[0,1]},r=t=>{t.forEach(t=>{var r,n;this._visibilityPercentage=100*t.intersectionRatio,t.isIntersecting?(null!=e&&e.callbackOnIntersect&&e.callbackOnIntersect(this._visibilityPercentage),null==(r=this._container)||r.dispatchEvent(new Event("visibilityChange"))):null!=e&&e.callbackOnIntersect&&(e.callbackOnIntersect(0),null==(n=this._container)||n.dispatchEvent(new Event("visibilityChange")))})};this._onShowIntersectionObserver=new IntersectionObserver(r,t),this._onShowIntersectionObserver.observe(this.container)}playOnShow(e){var t;if(this.stop(),!this.container)throw ty("Can't play on show, player container element not available.");this._onShowIntersectionObserver&&this.stopPlayOnShow(),this.addIntersectionObserver({threshold:null!=(t=null==e?void 0:e.threshold)?t:[],callbackOnIntersect:e=>{0===e?this.pause():this.play()}})}_validatePlaybackOptions(e){if(!e)return{};let t={};for(let[r,n]of Object.entries(e))switch(r){case"autoplay":"boolean"==typeof n&&(t.autoplay=n);break;case"direction":"number"==typeof n&&[1,-1].includes(n)&&(t.direction=n);break;case"loop":("boolean"==typeof n||"number"==typeof n)&&(t.loop=n);break;case"playMode":"string"==typeof n&&["normal","bounce"].includes(n)&&(t.playMode=n);break;case"speed":"number"==typeof n&&(t.speed=n);break;case"themeColor":"string"==typeof n&&(t.themeColor=n);break;case"hover":"boolean"==typeof n&&(t.hover=n);break;case"intermission":"number"==typeof n&&(t.intermission=n);break;case"defaultTheme":"string"==typeof n&&(t.defaultTheme=n)}return this._requireValidPlaybackOptions(t),t}_requireAnimationsInTheManifest(){var e;if(!(null!=(e=this._dotLottieLoader.manifest)&&e.animations.length))throw ty("No animations found in manifest.")}_requireAnimationsToBeLoaded(){if(0===this._dotLottieLoader.animationsMap.size)throw ty("No animations have been loaded.")}async play(e,t){var r,n;if(["initial","loading"].includes(this._currentState)){t_("Player unable to play whilst loading.");return}if(this._requireAnimationsInTheManifest(),this._requireAnimationsToBeLoaded(),this._lottie&&!e){-1===this._lottie.playDirection&&0===this._lottie.currentFrame?this._lottie.goToAndPlay(this._lottie.totalFrames,!0):this._lottie.play(),this.setCurrentState("playing");return}if("number"==typeof e){let n=null==(r=this._dotLottieLoader.manifest)?void 0:r.animations[e];if(!n)throw ty("animation not found.");"function"==typeof t?await this.render({id:n.id,...t(this._getPlaybackOptions(),this._getOptionsFromAnimation(n))}):await this.render({id:n.id})}if("string"==typeof e){let r=null==(n=this._dotLottieLoader.manifest)?void 0:n.animations.find(t=>t.id===e);if(!r)throw ty("animation not found.");"function"==typeof t?await this.render({id:r.id,...t(this._getPlaybackOptions(),this._getOptionsFromAnimation(r))}):await this.render({id:r.id})}}playSegments(e,t){if(!this._lottie||["loading"].includes(this._currentState)){t_("playSegments() Can't use whilst loading.");return}this._lottie.playSegments(e,t),this.setCurrentState("playing")}resetSegments(e){if(!this._lottie||["loading"].includes(this._currentState)){t_("resetSegments() Can't use whilst loading.");return}this._lottie.resetSegments(e)}togglePlay(){"playing"===this.currentState?this.pause():this.play()}_getAnimationByIdOrIndex(e){var t,r;if(this._requireAnimationsInTheManifest(),this._requireAnimationsToBeLoaded(),"number"==typeof e){let r=null==(t=this._dotLottieLoader.manifest)?void 0:t.animations[e];if(!r)throw ty("animation not found.");return r}if("string"==typeof e){let t=null==(r=this._dotLottieLoader.manifest)?void 0:r.animations.find(t=>t.id===e);if(!t)throw ty("animation not found.");return t}throw ty("first param must be a number or string")}get activeAnimationId(){return this._getActiveAnimationId()}get currentAnimationId(){return this._currentAnimationId}get activeStateId(){return this._activeStateId}async _startInteractivity(e){if(!this._inInteractiveMode){tE("Can't start interactivity. Not in interactive mode. Call enterInteractiveMode(stateId: string) to start.");return}if(0===this._dotLottieLoader.stateMachinesMap.size&&await this._dotLottieLoader.getStateMachines(),0===this._dotLottieLoader.stateMachinesMap.size)throw ty("No interactivity states are available.");if("undefined"===e)throw ty("stateId is not specified.");this._stateMachineManager||(this._stateMachineManager=await tW(Array.from(this._dotLottieLoader.stateMachinesMap.values()),this)),this._stateMachineManager.start(e)}enterInteractiveMode(e){var t;if(e)this._inInteractiveMode||(this._prevUserPlaybackOptions={...this._userPlaybackOptions}),this._inInteractiveMode&&(null==(t=this._stateMachineManager)||t.stop()),this._activeStateId=e,this._inInteractiveMode=!0,this._startInteractivity(e);else throw ty("stateId must be a non-empty string.")}exitInteractiveMode(){var e;this._inInteractiveMode&&(this._inInteractiveMode=!1,this._activeStateId="",null==(e=this._stateMachineManager)||e.stop(),this._userPlaybackOptions={},this._userPlaybackOptions={...this._prevUserPlaybackOptions},this._prevUserPlaybackOptions={},this.reset())}reset(){var e;let t=this._getActiveAnimationId(),r=null==(e=this._dotLottieLoader.manifest)?void 0:e.animations.find(e=>e.id===t);if(this._inInteractiveMode&&this.exitInteractiveMode(),!r)throw ty("animation not found.");this.play(t)}previous(e){if(!this._dotLottieLoader.manifest||!this._dotLottieLoader.manifest.animations.length)throw ty("manifest not found.");if(this._inInteractiveMode){t_("previous() is not supported in interactive mode.");return}let t=this._dotLottieLoader.manifest.animations.findIndex(e=>e.id===this._currentAnimationId);if(-1===t)throw ty("animation not found.");let r=this._dotLottieLoader.manifest.animations[(t-1+this._dotLottieLoader.manifest.animations.length)%this._dotLottieLoader.manifest.animations.length];if(!r||!r.id)throw ty("animation not found.");"function"==typeof e?this.render({id:r.id,...e(this._getPlaybackOptions(),this._getOptionsFromAnimation(r))}):this.render({id:r.id})}next(e){if(!this._dotLottieLoader.manifest||!this._dotLottieLoader.manifest.animations.length)throw ty("manifest not found.");if(this._inInteractiveMode){t_("next() is not supported in interactive mode.");return}let t=this._dotLottieLoader.manifest.animations.findIndex(e=>e.id===this._currentAnimationId);if(-1===t)throw ty("animation not found.");let r=this._dotLottieLoader.manifest.animations[(t+1)%this._dotLottieLoader.manifest.animations.length];if(!r||!r.id)throw ty("animation not found.");"function"==typeof e?this.render({id:r.id,...e(this._getPlaybackOptions(),this._getOptionsFromAnimation(r))}):this.render({id:r.id})}getManifest(){return this._dotLottieLoader.manifest}resize(){if(!this._lottie||["loading"].includes(this._currentState)){t_("resize() Can't use whilst loading.");return}this._lottie.resize()}stop(){if(!this._lottie||["loading"].includes(this._currentState)){t_("stop() Can't use whilst loading.");return}this.clearCountTimer(),this._counter=0,this._setPlayerState(()=>({direction:this._getOption("direction")})),this._lottie.stop(),this.setCurrentState("stopped")}pause(){if(!this._lottie||["loading"].includes(this._currentState)){t_("pause() Can't use whilst loading.");return}this.clearCountTimer(),this._lottie.pause(),this.setCurrentState("paused")}freeze(){if(!this._lottie||["loading"].includes(this._currentState)){t_("freeze() Can't use whilst loading.");return}"frozen"!==this.currentState&&(this._stateBeforeFreeze=this.currentState),this._lottie.pause(),this.setCurrentState("frozen")}unfreeze(){if(!this._lottie||["loading"].includes(this._currentState)){t_("unfreeze() Can't use whilst loading.");return}"playing"===this._stateBeforeFreeze?this.play():this.pause()}destroy(){var e,t;null!=(e=this._container)&&e.__lottie&&(this._container.__lottie.destroy(),this._container.__lottie=null),this._audios.length&&(this._audios.forEach(e=>{e.unload()}),this._audios=[]),this.clearCountTimer(),"u">typeof document&&document.removeEventListener("visibilitychange",()=>this._onVisibilityChange()),this._counter=0,null==(t=this._lottie)||t.destroy(),this._lottie=void 0}getAnimationInstance(){return this._lottie}static getLottieWebVersion(){return`${tX.dependencies["lottie-web"]}`}addEventListener(e,t){var r,n,i;this._listeners.has(e)||this._listeners.set(e,new Set),null==(r=this._listeners.get(e))||r.add(t);try{"complete"===e?null==(n=this._container)||n.addEventListener(e,t):null==(i=this._lottie)||i.addEventListener(e,t)}catch(e){tE(`addEventListener ${e}`)}}getState(){var e,t,r,n,i,o,s;return{autoplay:null!=(t=null==(e=this._lottie)?void 0:e.autoplay)&&t,currentState:this._currentState,frame:this._frame,visibilityPercentage:this._visibilityPercentage,seeker:this._seeker,direction:null!=(n=null==(r=this._lottie)?void 0:r.playDirection)?n:1,hover:this._hover,loop:this._loop||!1,playMode:this._mode,speed:null!=(o=null==(i=this._lottie)?void 0:i.playSpeed)?o:1,background:this._background,intermission:this._intermission,defaultTheme:this._defaultTheme,currentAnimationId:this._currentAnimationId,activeStateId:null!=(s=this._activeStateId)?s:""}}_notify(){this.state.setState(this.getState())}get totalFrames(){var e;return(null==(e=this._lottie)?void 0:e.totalFrames)||0}get direction(){return this._lottie?this._lottie.playDirection:1}setDirection(e){this._requireValidDirection(e),this._setPlayerState(()=>({direction:e})),this._userPlaybackOptions.direction=e}get speed(){var e;return(null==(e=this._lottie)?void 0:e.playSpeed)||1}setSpeed(e){this._requireValidSpeed(e),this._setPlayerState(()=>({speed:e})),this._userPlaybackOptions.speed=e}get autoplay(){var e,t;return null!=(t=null==(e=this._lottie)?void 0:e.autoplay)&&t}setAutoplay(e){if(this._requireValidAutoplay(e),!this._lottie||["loading"].includes(this._currentState)){t_("setAutoplay() Can't use whilst loading.");return}this._setPlayerState(()=>({autoplay:e})),this._userPlaybackOptions.autoplay=e}toggleAutoplay(){if(!this._lottie||["loading"].includes(this._currentState)){t_("toggleAutoplay() Can't use whilst loading.");return}this.setAutoplay(!this._lottie.autoplay)}get defaultTheme(){return this._defaultTheme}setDefaultTheme(e){this._setPlayerState(()=>({defaultTheme:e})),this._userPlaybackOptions.defaultTheme=e,this._animation&&this.render()}get loop(){return this._loop}setLoop(e){this._requireValidLoop(e),this._setPlayerState(()=>({loop:e})),this._userPlaybackOptions.loop=e}toggleLoop(){if(!this._lottie||["loading"].includes(this._currentState)){t_("toggleLoop() Can't use whilst loading.");return}this.setLoop(!this._loop)}get background(){return this._background}setBackground(e){this._requireValidBackground(e),this._background=e,this._container&&(this._container.style.backgroundColor=e)}get _frame(){return this._lottie?"completed"===this.currentState?-1===this.direction?0:this._lottie.totalFrames:this._lottie.currentFrame:0}get _seeker(){return this._lottie?this._frame/this._lottie.totalFrames*100:0}async revertToManifestValues(e){var t;let r;r=Array.isArray(e)&&0!==e.length?e:["autoplay","defaultTheme","direction","hover","intermission","loop","playMode","speed","activeAnimationId"];let n=!1;if(r.includes("activeAnimationId")){let e=null==(t=this._dotLottieLoader.manifest)?void 0:t.activeAnimationId,r=this._getAnimationByIdOrIndex(e||0);this._activeAnimationId=e,await this._setCurrentAnimation(r.id),n=!0}r.forEach(e=>{switch(e){case"autoplay":delete this._userPlaybackOptions.autoplay,this.setAutoplay(this._getOption("autoplay"));break;case"defaultTheme":delete this._userPlaybackOptions.defaultTheme,this.setDefaultTheme(this._getOption("defaultTheme"));break;case"direction":delete this._userPlaybackOptions.direction,this.setDirection(this._getOption("direction"));break;case"hover":delete this._userPlaybackOptions.hover,this.setHover(this._getOption("hover"));break;case"intermission":delete this._userPlaybackOptions.intermission,this.setIntermission(this._getOption("intermission"));break;case"loop":delete this._userPlaybackOptions.loop,this.setLoop(this._getOption("loop"));break;case"playMode":delete this._userPlaybackOptions.playMode,this.setMode(this._getOption("playMode")),this.setDirection(this._getOption("direction"));break;case"speed":delete this._userPlaybackOptions.speed,this.setSpeed(this._getOption("speed"))}}),n&&this.render()}removeEventListener(e,t){var r,n,i;try{"complete"===e?null==(r=this._container)||r.removeEventListener(e,t):null==(n=this._lottie)||n.removeEventListener(e,t),null==(i=this._listeners.get(e))||i.delete(t)}catch(e){tE("removeEventListener",e)}}_handleAnimationComplete(){var e;"number"==typeof this._loop&&this.stop();let t=-1===this.direction?0:this.totalFrames-1;this.goToAndStop(t,!0),this._counter=0,this.clearCountTimer(),this.setCurrentState("completed"),null==(e=this._container)||e.dispatchEvent(new Event("complete"))}addEventListeners(){var e;if(!this._lottie||["loading"].includes(this._currentState)){t_("addEventListeners() Can't use whilst loading.");return}for(let[t,r]of(this._lottie.addEventListener("enterFrame",()=>{var e;if(!this._lottie){t_("enterFrame event : Lottie is undefined.");return}0===Math.floor(this._lottie.currentFrame)&&-1===this.direction&&(null==(e=this._container)||e.dispatchEvent(new Event("complete")),this.loop||this.setCurrentState("completed")),this._notify()}),this._lottie.addEventListener("loopComplete",()=>{var e;if(!this._lottie){t_("loopComplete event : Lottie is undefined.");return}null==(e=this._container)||e.dispatchEvent(new Event("loopComplete")),this.intermission>0&&this.pause();let t=this._lottie.playDirection;if("number"==typeof this._loop&&this._loop>0&&(this._counter+="bounce"===this._mode?.5:1,this._counter>=this._loop)){this._handleAnimationComplete();return}"bounce"===this._mode&&"number"==typeof t&&(t=-1*Number(t));let r=-1===t?this._lottie.totalFrames-1:0;this.intermission?(this.goToAndPlay(r,!0),this.pause(),this._counterInterval=window.setTimeout(()=>{this._lottie&&(this._setPlayerState(()=>({direction:t})),this.goToAndPlay(r,!0))},this._intermission)):(this._setPlayerState(()=>({direction:t})),this.goToAndPlay(-1===t?this.totalFrames-1:0,!0))}),this._lottie.addEventListener("complete",()=>{if(this._lottie&&!1===this._loop&&"bounce"===this._mode){if(this._counter+=.5,this._counter>=1){this._handleAnimationComplete();return}this._counterInterval=window.setTimeout(()=>{if(!this._lottie)return;let e=this._lottie.playDirection;"bounce"===this._mode&&"number"==typeof e&&(e=-1*Number(e));let t=-1===e?this.totalFrames-1:0;this._setPlayerState(()=>({direction:e})),this.goToAndPlay(t,!0)},this._intermission)}else this._handleAnimationComplete()}),this._listeners))if("complete"===t)for(let n of r)null==(e=this._container)||e.addEventListener(t,n);else for(let e of r)this._lottie.addEventListener(t,e)}async _setCurrentAnimation(e){this._currentState="loading";let t=await this._dotLottieLoader.getAnimation(e);this._currentAnimationId=e,this._animation=t,this._currentState="ready"}async _getAudioFactory(){if(this._animation&&tT(this._animation)){let{DotLottieAudio:e}=await r.e(6902).then(r.bind(r,38027));return t=>{let r=new e({src:[t]});return this._audios.push(r),r}}return null}async render(e){var t,r,n,i,o,s,a,l,u,c,h,d,f,p,m,g,v,y;if(null!=e&&e.id)await this._setCurrentAnimation(e.id);else if(!this._animation)throw ty("no animation selected");let E=null!=(t=tJ.loop)&&t,_=null!=(r=tJ.autoplay)&&r,b=null!=(n=tJ.playMode)?n:"normal",A=null!=(i=tJ.intermission)?i:0,T=null!=(o=tJ.hover)&&o,C=null!=(s=tJ.direction)?s:1,S=null!=(a=tJ.speed)?a:1,w=null!=(l=tJ.defaultTheme)?l:"";E=null!=(u=null==e?void 0:e.loop)?u:this._getOption("loop"),_=null!=(c=null==e?void 0:e.autoplay)?c:this._getOption("autoplay"),b=null!=(h=null==e?void 0:e.playMode)?h:this._getOption("playMode"),A=null!=(d=null==e?void 0:e.intermission)?d:this._getOption("intermission"),T=null!=(f=null==e?void 0:e.hover)?f:this._getOption("hover"),C=null!=(p=null==e?void 0:e.direction)?p:this._getOption("direction"),S=null!=(m=null==e?void 0:e.speed)?m:this._getOption("speed"),w=null!=(g=null==e?void 0:e.defaultTheme)?g:this._getOption("defaultTheme");let x={...this._animationConfig,autoplay:!T&&_,loop:"number"==typeof E||E,renderer:this._worker?"svg":null!=(v=this._animationConfig.renderer)?v:"svg"},[R,k,L]=await Promise.all([this._dotLottieLoader.getTheme(w),this._getLottiePlayerInstance(),this._getAudioFactory()]);if(R&&this._animation?(this._animation=tw(this._animation),this._animation.slots=R):this._animation=await this._dotLottieLoader.getAnimation(null!=(y=this._currentAnimationId)?y:""),this._activeStateId&&!this._inInteractiveMode){this.enterInteractiveMode(this._activeStateId);return}this.destroy(),this._setPlayerState(()=>({defaultTheme:w,playMode:b,intermission:A,hover:T,loop:E})),L?this._lottie=k.loadAnimation({...x,container:this._container,animationData:this._animation,audioFactory:L}):this._lottie=k.loadAnimation({...x,container:this._container,animationData:this._animation}),typeof this._lottie.resetSegments>"u"&&(this._lottie.resetSegments=()=>{var e;null==(e=this._lottie)||e.playSegments([0,this._lottie.totalFrames],!0)}),this.addEventListeners(),this._container&&(this._container.__lottie=this._lottie),this._setPlayerState(()=>({direction:C,speed:S})),_&&!T&&(!1===E&&-1===C?this.play():this.setCurrentState("playing")),this._updateTestData()}async _getLottiePlayerInstance(){var e;let t=null!=(e=this._animationConfig.renderer)?e:"svg",n;if(this._worker)return"svg"!==t&&t_("Worker is only supported with svg renderer. Change or remove renderer prop to get rid of this warning."),(n=await r.e(6902).then(r.bind(r,50525))).default;switch(t){case"svg":n=this._light?await r.e(6902).then(r.bind(r,78153)):await r.e(6902).then(r.bind(r,17703));break;case"canvas":n=this._light?await r.e(6902).then(r.bind(r,1658)):await r.e(6902).then(r.bind(r,89110));break;case"html":n=this._light?await r.e(6902).then(r.bind(r,54776)):await r.e(6902).then(r.bind(r,92028));break;default:throw Error(`Invalid renderer: ${t}`)}return n.default}_getActiveAnimationId(){var e,t,r,n;let i=this._dotLottieLoader.manifest;return null!=(n=null!=(r=null!=(e=this._activeAnimationId)?e:null==i?void 0:i.activeAnimationId)?r:null==(t=null==i?void 0:i.animations[0])?void 0:t.id)?n:void 0}async load(e){if("loading"===this._currentState){t_("Loading in progress..");return}try{if(this.setCurrentState("loading"),"string"==typeof this._src){if(tC(this._src)){let e=JSON.parse(this._src);this._dotLottieLoader.loadFromLottieJSON(e)}else{let e=new URL(this._src,window.location.href);await this._dotLottieLoader.loadFromUrl(e.toString())}}else if("object"==typeof this._src&&tA(this._src))this._dotLottieLoader.loadFromLottieJSON(this._src);else throw ty("Invalid src provided");if(!this._dotLottieLoader.manifest)throw ty("No manifest found");let t=this._getActiveAnimationId();if(!t)throw ty("No active animation found");await this._setCurrentAnimation(t),await this.render(e)}catch(e){this.setCurrentState("error"),e instanceof Error&&tE(`Error loading animation: ${e.message}`)}}setErrorState(e){this.setCurrentState("error"),tE(e)}_requireValidDirection(e){if(-1!==e&&1!==e)throw ty("Direction can only be -1 (backwards) or 1 (forwards)")}_requireValidIntermission(e){if(e<0||!Number.isInteger(e))throw ty("intermission must be a positive number")}_requireValidLoop(e){if("number"==typeof e&&(!Number.isInteger(e)||e<0))throw ty("loop must be a positive number or boolean")}_requireValidSpeed(e){if("number"!=typeof e)throw ty("speed must be a number")}_requireValidBackground(e){if("string"!=typeof e)throw ty("background must be a string")}_requireValidAutoplay(e){if("boolean"!=typeof e)throw ty("autoplay must be a boolean")}_requireValidPlaybackOptions(e){e.direction&&this._requireValidDirection(e.direction),e.intermission&&this._requireValidIntermission(e.intermission),e.loop&&this._requireValidLoop(e.loop),e.speed&&this._requireValidSpeed(e.speed)}}},94145:(e,t,r)=>{"use strict";r.d(t,{a:()=>o});var n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=(e,t,r,o)=>{for(var s,a=o>1?void 0:o?i(t,r):t,l=e.length-1;l>=0;l--)(s=e[l])&&(a=(o?s(t,r,a):s(a))||a);return o&&a&&n(t,r,a),a}},14801:(e,t,r)=>{"use strict";var n,i,o,s,a=window,l=a.ShadowRoot&&(void 0===a.ShadyCSS||a.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,u=Symbol(),c=new WeakMap,h=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==u)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(l&&void 0===e){let r=void 0!==t&&1===t.length;r&&(e=c.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&c.set(t,e))}return e}toString(){return this.cssText}},d=e=>new h("string"==typeof e?e:e+"",void 0,u),f=(e,...t)=>new h(1===e.length?e[0]:t.reduce((t,r,n)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+e[n+1],e[0]),e,u),p=(e,t)=>{l?e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(t=>{let r=document.createElement("style"),n=a.litNonce;void 0!==n&&r.setAttribute("nonce",n),r.textContent=t.cssText,e.appendChild(r)})},m=l?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(let r of e.cssRules)t+=r.cssText;return d(t)})(e):e,g=window,v=g.trustedTypes,y=v?v.emptyScript:"",E=g.reactiveElementPolyfillSupport,_={toAttribute(e,t){switch(t){case Boolean:e=e?y:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=null!==e;break;case Number:r=null===e?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},b=(e,t)=>t!==e&&(t==t||e==e),A={attribute:!0,type:String,converter:_,reflect:!1,hasChanged:b},T="finalized",C=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();let e=[];return this.elementProperties.forEach((t,r)=>{let n=this._$Ep(r,t);void 0!==n&&(this._$Ev.set(n,r),e.push(n))}),e}static createProperty(e,t=A){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){let r="symbol"==typeof e?Symbol():"__"+e,n=this.getPropertyDescriptor(e,r,t);void 0!==n&&Object.defineProperty(this.prototype,e,n)}}static getPropertyDescriptor(e,t,r){return{get(){return this[t]},set(n){let i=this[e];this[t]=n,this.requestUpdate(e,i,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||A}static finalize(){if(this.hasOwnProperty(T))return!1;this[T]=!0;let e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let e=this.properties;for(let t of[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)])this.createProperty(t,e[t])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){let t=[];if(Array.isArray(e))for(let r of new Set(e.flat(1/0).reverse()))t.unshift(m(r));else void 0!==e&&t.push(m(e));return t}static _$Ep(e,t){let r=t.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof e?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach(e=>e(this))}addController(e){var t,r;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(r=e.hostConnected)||void 0===r||r.call(e))}removeController(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;let t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return p(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach(e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)})}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$ES)||void 0===e||e.forEach(e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)})}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EO(e,t,r=A){var n;let i=this.constructor._$Ep(e,r);if(void 0!==i&&!0===r.reflect){let o=((null===(n=r.converter)||void 0===n?void 0:n.toAttribute)!==void 0?r.converter:_).toAttribute(t,r.type);this._$El=e,null==o?this.removeAttribute(i):this.setAttribute(i,o),this._$El=null}}_$AK(e,t){var r;let n=this.constructor,i=n._$Ev.get(e);if(void 0!==i&&this._$El!==i){let e=n.getPropertyOptions(i),o="function"==typeof e.converter?{fromAttribute:e.converter}:(null===(r=e.converter)||void 0===r?void 0:r.fromAttribute)!==void 0?e.converter:_;this._$El=i,this[i]=o.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,r){let n=!0;void 0!==e&&(((r=r||this.constructor.getPropertyOptions(e)).hasChanged||b)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===r.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,r))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}let e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((e,t)=>this[t]=e),this._$Ei=void 0);let t=!1,r=this._$AL;try{(t=this.shouldUpdate(r))?(this.willUpdate(r),null===(e=this._$ES)||void 0===e||e.forEach(e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)}),this.update(r)):this._$Ek()}catch(e){throw t=!1,this._$Ek(),e}t&&this._$AE(r)}willUpdate(e){}_$AE(e){var t;null===(t=this._$ES)||void 0===t||t.forEach(e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach((e,t)=>this._$EO(t,this[t],e)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};C[T]=!0,C.elementProperties=new Map,C.elementStyles=[],C.shadowRootOptions={mode:"open"},null==E||E({ReactiveElement:C}),(null!==(s=g.reactiveElementVersions)&&void 0!==s?s:g.reactiveElementVersions=[]).push("1.6.3");var S,w=window,x=w.trustedTypes,R=x?x.createPolicy("lit-html",{createHTML:e=>e}):void 0,k="$lit$",L=`lit$${(Math.random()+"").slice(9)}$`,I="?"+L,O=`<${I}>`,D=document,N=()=>D.createComment(""),P=e=>null===e||"object"!=typeof e&&"function"!=typeof e,M=Array.isArray,B=e=>M(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]),U=`[ \f\r]`,F=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,j=/-->/g,K=/>/g,V=RegExp(`>|${U}(?:([^\\s"'>=/]+)(${U}*=${U}*(?:[^ \f\r"'\`<>=]|("|')|))|$)`,"g"),H=/'/g,z=/"/g,G=/^(?:script|style|textarea|title)$/i,q=(e,...t)=>({_$litType$:1,strings:e,values:t}),W=Symbol.for("lit-noChange"),X=Symbol.for("lit-nothing"),Y=new WeakMap,Q=D.createTreeWalker(D,129,null,!1);function Z(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==R?R.createHTML(t):t}var J=(e,t)=>{let r=e.length-1,n=[],i,o=2===t?"":"",s=F;for(let t=0;t"===l[0]?(s=null!=i?i:F,u=-1):void 0===l[1]?u=-2:(u=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?V:'"'===l[3]?z:H):s===z||s===H?s=V:s===j||s===K?s=F:(s=V,i=void 0);let h=s===V&&e[t+1].startsWith("/>")?" ":"";o+=s===F?r+O:u>=0?(n.push(a),r.slice(0,u)+k+r.slice(u)+L+h):r+L+(-2===u?(n.push(void 0),t):h)}return[Z(e,o+(e[r]||"")+(2===t?"":"")),n]},ee=class e{constructor({strings:t,_$litType$:r},n){let i;this.parts=[];let o=0,s=0,a=t.length-1,l=this.parts,[u,c]=J(t,r);if(this.el=e.createElement(u,n),Q.currentNode=this.el.content,2===r){let e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(i=Q.nextNode())&&l.length0){i.textContent=x?x.emptyScript:"";for(let r=0;r2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=X}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,r,n){let i=this.strings,o=!1;if(void 0===i)(o=!P(e=et(this,e,t,0))||e!==this._$AH&&e!==W)&&(this._$AH=e);else{let n=e,s,a;for(e=i[0],s=0;s{var n,i;let o=null!==(n=null==r?void 0:r.renderBefore)&&void 0!==n?n:t,s=o._$litPart$;if(void 0===s){let e=null!==(i=null==r?void 0:r.renderBefore)&&void 0!==i?i:null;o._$litPart$=s=new en(t.insertBefore(N(),e),e,void 0,null!=r?r:{})}return s._$AI(e),s},ed=class extends C{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;let r=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.renderBefore=r.firstChild),r}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=eh(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}render(){return W}};ed.finalized=!0,ed._$litElement$=!0,null===(n=globalThis.litElementHydrateSupport)||void 0===n||n.call(globalThis,{LitElement:ed});var ef=globalThis.litElementPolyfillSupport;null==ef||ef({LitElement:ed}),(null!==(i=globalThis.litElementVersions)&&void 0!==i?i:globalThis.litElementVersions=[]).push("3.3.3");var ep=f` @font-face { font-family: 'Karla'; font-weight: regular; src: url('./fonts/Karla-regular.woff') format('woff'); } :host { --lottie-player-toolbar-height: 35px; --lottie-player-toolbar-background-color: transparent; --lottie-player-toolbar-hover-background-color: #f3f6f8; --lottie-player-toolbar-icon-color: #20272c; --lottie-player-toolbar-icon-hover-color: #f3f6f8; --lottie-player-toolbar-icon-active-color: #00ddb3; --lottie-player-seeker-track-color: #00ddb3; --lottie-player-seeker-accent-color: #00c1a2; --lottie-player-seeker-thumb-color: #00c1a2; --lottie-player-options-separator: #d9e0e6; display: block; width: 100%; height: 100%; font-family: 'Karla', sans-serif; font-style: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } :host * { box-sizing: border-box; } .active { color: var(--lottie-player-toolbar-icon-active-color) !important; } .main { position: relative; display: flex; flex-direction: column; height: 100%; width: 100%; } .animation { position: relative; width: 100%; height: 100%; display: flex; } .animation.controls { height: calc(100% - var(--lottie-player-toolbar-height)); } .toolbar { display: flex; align-items: center; justify-items: center; background-color: var(--lottie-player-toolbar-background-color); margin: 0 8px; height: var(--lottie-player-toolbar-height); } .btn-spacing-left { margin-right: 4px; margin-left: 8px; } .btn-spacing-center { margin-right: 4px; margin-left: 4px; } .btn-spacing-right { margin-right: 8px; margin-left: 4px; } .toolbar button { color: #20272c; cursor: pointer; fill: var(--lottie-player-toolbar-icon-color); display: flex; background: none; border: 0px; border-radius: 4px; padding: 4px; outline: none; width: 24px; height: 24px; align-items: center; } .toolbar button:hover { background-color: var(--lottie-player-toolbar-icon-hover-color); border-style: solid; border-radius: 2px; } .toolbar button.active { fill: var(--lottie-player-toolbar-icon-active-color); } .toolbar button.active:hover { fill: var(--lottie-player-toolbar-icon-hover-color); border-radius: 4px; } .toolbar button:focus-visible { outline: 2px solid var(--lottie-player-toolbar-icon-active-color); border-radius: 4px; box-sizing: border-box; } .toolbar button svg { width: 16px; height: 16px; } .toolbar button.disabled svg { display: none; } .popover { position: absolute; bottom: 40px; left: calc(100% - 239px); width: 224px; min-height: 84px; max-height: 300px; background-color: #ffffff; box-shadow: 0px 8px 48px 0px rgba(243, 246, 248, 0.15), 0px 8px 16px 0px rgba(61, 72, 83, 0.16), 0px 0px 1px 0px rgba(61, 72, 83, 0.36); border-radius: 8px; padding: 8px; z-index: 100; overflow-y: scroll; scrollbar-width: none; } .popover:focus-visible { outline: 2px solid var(--lottie-player-toolbar-icon-active-color); border-radius: 4px; box-sizing: border-box; } .popover::-webkit-scrollbar { width: 0px; } .popover-button { background: none; border: none; font-family: inherit; width: 100%; flex-direction: row; cursor: pointer; height: 32px; color: #20272c; justify-content: space-between; display: flex; padding: 4px 8px; align-items: flex-start; gap: 8px; align-self: stretch; border-radius: 4px; } .popover-button:focus-visible { outline: 2px solid var(--lottie-player-toolbar-icon-active-color); border-radius: 4px; box-sizing: border-box; } .popover-button:hover { background-color: var(--lottie-player-toolbar-hover-background-color); } .popover-button-text { display: flex; color: #20272c; flex-direction: column; align-self: stretch; justify-content: center; font-family: inherit; font-size: 14px; font-style: normal; font-weight: 400; line-height: 150%; letter-spacing: -0.28px; } .reset-btn { font-size: 12px; cursor: pointer; font-family: inherit; background: none; border: none; font-weight: 400; line-height: 18px; letter-spacing: 0em; text-align: left; color: #63727e; padding: 0; width: 31px; height: 18px; } .reset-btn:focus-visible { outline: 2px solid var(--lottie-player-toolbar-icon-active-color); border-radius: 4px; box-sizing: border-box; } .reset-btn:hover { color: #20272c; } .option-title-button { display: flex; flex-direction: row; width: 100%; height: 32px; align-items: center; gap: 4px; align-self: stretch; cursor: pointer; color: var(--lottie-player-toolbar-icon-color); border: none; background: none; padding: 4px; font-family: inherit; font-size: 16px; font-weight: 700; line-height: 150%; letter-spacing: -0.32px; } .option-title-button.themes { width: auto; padding: 0; } .option-title-button:hover { background-color: var(--lottie-player-toolbar-icon-hover-color); } .option-title-themes-row { display: flex; align-items: center; gap: 8px; flex: 1 0 0; } .option-title-themes-row:hover { background-color: var(--lottie-player-toolbar-icon-hover-color); } .option-title-button:focus-visible { outline: 2px solid var(--lottie-player-toolbar-icon-active-color); border-radius: 4px; box-sizing: border-box; } .option-title-text { font-size: 16px; font-style: normal; font-weight: 700; line-height: 150%; letter-spacing: -0.32px; } .option-title-separator { margin: 8px -8px; border-bottom: 1px solid var(--lottie-player-options-separator); } .option-title-chevron { display: flex; padding: 4px; border-radius: 8px; justify-content: center; align-items: center; gap: 8px; } .option-row { display: flex; flex-direction: column; } .option-row > ul { padding: 0; margin: 0; } .option-button { width: 100%; background: none; border: none; font-family: inherit; display: flex; padding: 4px 8px; color: #20272c; overflow: hidden; align-items: center; gap: 8px; align-self: stretch; cursor: pointer; height: 32px; font-family: inherit; font-size: 14px; border-radius: 4px; } .option-button:hover { background-color: var(--lottie-player-toolbar-hover-background-color); } .option-button:focus-visible { outline: 2px solid var(--lottie-player-toolbar-icon-active-color); border-radius: 4px; box-sizing: border-box; } .option-tick { display: flex; width: 24px; height: 24px; align-items: flex-start; gap: 8px; } .seeker { height: 4px; width: 95%; outline: none; -webkit-appearance: none; -moz-apperance: none; border-radius: 9999px; cursor: pointer; background-image: linear-gradient( to right, rgb(0, 221, 179) calc(var(--seeker) * 1%), rgb(217, 224, 230) calc(var(--seeker) * 1%) ); } .seeker.to-left { background-image: linear-gradient( to right, rgb(217, 224, 230) calc(var(--seeker) * 1%), rgb(0, 221, 179) calc(var(--seeker) * 1%) ); } .seeker::-webkit-slider-runnable-track:focus-visible { color: #f07167; accent-color: #00ddb3; } .seeker::-webkit-slider-runnable-track { width: 100%; height: 5px; cursor: pointer; } .seeker::-webkit-slider-thumb { -webkit-appearance: none; height: 16px; width: 16px; border-radius: 50%; background: var(--lottie-player-seeker-thumb-color); cursor: pointer; margin-top: -5px; } .seeker:focus-visible::-webkit-slider-thumb { background: var(--lottie-player-seeker-thumb-color); outline: 2px solid var(--lottie-player-seeker-track-color); border: 1.5px solid #ffffff; } .seeker::-webkit-slider-thumb:hover { background: #019d91; } .seeker::-moz-range-thumb { appearance: none; height: 16px; width: 16px; border-radius: 50%; background: var(--lottie-player-seeker-thumb-color); cursor: pointer; margin-top: -5px; border-color: transparent; } .seeker:focus-visible::-moz-range-thumb { background: var(--lottie-player-seeker-thumb-color); outline: 2px solid var(--lottie-player-seeker-track-color); border: 1.5px solid #ffffff; } .error { display: flex; justify-content: center; margin: auto; height: 100%; align-items: center; } `,em=r(50804);/*! Bundled license information: @lit/reactive-element/css-tag.js: (** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: BSD-3-Clause *) @lit/reactive-element/reactive-element.js: (** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause *) lit-html/lit-html.js: (** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause *) lit-element/lit-element.js: (** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause *) lit-html/is-server.js: (** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: BSD-3-Clause *) */r(85620);var eg=r(94145),ev=(e,t)=>"method"!==t.kind||!t.descriptor||"value"in t.descriptor?{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(r){r.createProperty(t.key,e)}}:{...t,finisher(r){r.createProperty(t.key,e)}},ey=(e,t,r)=>{t.constructor.createProperty(r,e)};function eE(e){return(t,r)=>void 0!==r?ey(e,t,r):ev(e,t)}function e_(e){return eE({...e,state:!0})}var eb=({finisher:e,descriptor:t})=>(r,n)=>{var i;if(void 0===n){let n=null!==(i=r.originalKey)&&void 0!==i?i:r.key,o=null!=t?{kind:"method",placement:"prototype",key:n,descriptor:t(r.key)}:{...r,key:n};return null!=e&&(o.finisher=function(t){e(t,n)}),o}{let i=r.constructor;void 0!==t&&Object.defineProperty(r,n,t(n)),null==e||e(i,n)}};function eA(e,t){return eb({descriptor:r=>{let n={get(){var t,r;return null!==(r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e))&&void 0!==r?r:null},enumerable:!0,configurable:!0};if(t){let t="symbol"==typeof r?Symbol():"__"+r;n.get=function(){var r,n;return void 0===this[t]&&(this[t]=null!==(n=null===(r=this.renderRoot)||void 0===r?void 0:r.querySelector(e))&&void 0!==n?n:null),this[t]}}return n}})}(null===(o=window.HTMLSlotElement)||void 0===o?void 0:o.prototype.assignedElements)!=null||((e,t)=>e.assignedNodes(t).filter(e=>e.nodeType===Node.ELEMENT_NODE));var eT={version:"2.7.12"},eC="dotlottie-player",eS=class extends ed{defaultTheme="";container;playMode=em.g.Normal;autoplay=!1;background="transparent";controls=!1;direction=1;hover=!1;loop;renderer="svg";speed=1;src;intermission=0;activeAnimationId=null;light=!1;worker=!1;activeStateId;_seeker=0;_dotLottieCommonPlayer;_io;_loop;_renderer="svg";_unsubscribeListeners;_hasMultipleAnimations=!1;_hasMultipleThemes=!1;_hasMultipleStates=!1;_popoverIsOpen=!1;_animationsTabIsOpen=!1;_statesTabIsOpen=!1;_styleTabIsOpen=!1;_themesForCurrentAnimation=[];_statesForCurrentAnimation=[];_parseLoop(e){let t=parseInt(e,10);return Number.isInteger(t)&&t>0?(this._loop=t,t):"string"==typeof e&&["true","false"].includes(e)?(this._loop="true"===e,this._loop):((0,em.c)("loop must be a positive integer or a boolean"),!1)}_handleSeekChange(e){let t=e.currentTarget;try{let e=parseInt(t.value,10);if(!this._dotLottieCommonPlayer)return;let r=e/100*this._dotLottieCommonPlayer.totalFrames;this.seek(r)}catch{throw(0,em.a)("Error while seeking animation")}}_initListeners(){let e=this._dotLottieCommonPlayer;if(void 0===e){(0,em.c)("player not initialized - cannot add event listeners","dotlottie-player-component");return}this._unsubscribeListeners=e.state.subscribe((e,t)=>{this._seeker=e.seeker,this.requestUpdate(),t.currentState!==e.currentState&&this.dispatchEvent(new CustomEvent(e.currentState)),this.dispatchEvent(new CustomEvent(em.e.Frame,{detail:{frame:e.frame,seeker:e.seeker}})),this.dispatchEvent(new CustomEvent(em.e.VisibilityChange,{detail:{visibilityPercentage:e.visibilityPercentage}}))}),e.addEventListener("complete",()=>{this.dispatchEvent(new CustomEvent(em.e.Complete))}),e.addEventListener("loopComplete",()=>{this.dispatchEvent(new CustomEvent(em.e.LoopComplete))}),e.addEventListener("DOMLoaded",()=>{let e=this.getManifest();e&&e.themes&&(this._themesForCurrentAnimation=e.themes.filter(e=>e.animations.includes(this.getCurrentAnimationId()||""))),e&&e.states&&(this._hasMultipleStates=e.states.length>0,this._statesForCurrentAnimation=[],e.states.forEach(e=>{this._statesForCurrentAnimation.push(e)})),this.dispatchEvent(new CustomEvent(em.e.Ready))}),e.addEventListener("data_ready",()=>{this.dispatchEvent(new CustomEvent(em.e.DataReady))}),e.addEventListener("data_failed",()=>{this.dispatchEvent(new CustomEvent(em.e.DataFail))}),window&&window.addEventListener("click",e=>this._clickOutListener(e))}async load(e,t,r){if(!this.shadowRoot)return;this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.destroy(),this._dotLottieCommonPlayer=new em.j(e,this.container,{rendererSettings:null!=t?t:{scaleMode:"noScale",clearCanvas:!0,progressiveLoad:!0,hideOnTransparent:!0},hover:this.hasAttribute("hover")?this.hover:void 0,renderer:this.hasAttribute("renderer")?this._renderer:void 0,loop:this.hasAttribute("loop")?this._loop:void 0,direction:this.hasAttribute("direction")?1===this.direction?1:-1:void 0,speed:this.hasAttribute("speed")?this.speed:void 0,intermission:this.hasAttribute("intermission")?Number(this.intermission):void 0,playMode:this.hasAttribute("playMode")?this.playMode:void 0,autoplay:this.hasAttribute("autoplay")?this.autoplay:void 0,activeAnimationId:this.hasAttribute("activeAnimationId")?this.activeAnimationId:void 0,defaultTheme:this.hasAttribute("defaultTheme")?this.defaultTheme:void 0,light:this.light,worker:this.worker,activeStateId:this.hasAttribute("activeStateId")?this.activeStateId:void 0}),await this._dotLottieCommonPlayer.load(r);let n=this.getManifest();this._hasMultipleAnimations=this.animationCount()>1,n&&(n.themes&&(this._themesForCurrentAnimation=n.themes.filter(e=>e.animations.includes(this.getCurrentAnimationId()||"")),this._hasMultipleThemes=n.themes.length>0),n.states&&(this._hasMultipleStates=n.states.length>0,this._statesForCurrentAnimation=[],n.states.forEach(e=>{this._statesForCurrentAnimation.push(e)}))),this._initListeners()}getCurrentAnimationId(){var e;return null==(e=this._dotLottieCommonPlayer)?void 0:e.currentAnimationId}animationCount(){var e;return this._dotLottieCommonPlayer&&(null==(e=this._dotLottieCommonPlayer.getManifest())?void 0:e.animations.length)||0}animations(){if(!this._dotLottieCommonPlayer)return[];let e=this._dotLottieCommonPlayer.getManifest();return(null==e?void 0:e.animations.map(e=>e.id))||[]}currentAnimation(){return this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.currentAnimationId?this._dotLottieCommonPlayer.currentAnimationId:""}getState(){return this._dotLottieCommonPlayer?this._dotLottieCommonPlayer.getState():em.i}getManifest(){var e;return null==(e=this._dotLottieCommonPlayer)?void 0:e.getManifest()}getLottie(){var e;return null==(e=this._dotLottieCommonPlayer)?void 0:e.getAnimationInstance()}getVersions(){return{lottieWebVersion:em.j.getLottieWebVersion(),dotLottiePlayerVersion:`${eT.version}`}}previous(e){var t;null==(t=this._dotLottieCommonPlayer)||t.previous(e)}next(e){var t;null==(t=this._dotLottieCommonPlayer)||t.next(e)}reset(){var e;null==(e=this._dotLottieCommonPlayer)||e.reset()}play(e,t){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.play(e,t)}pause(){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.pause()}stop(){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.stop()}playOnShow(e){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.playOnShow(e)}stopPlayOnShow(){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.stopPlayOnShow()}playOnScroll(e){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.playOnScroll(e)}stopPlayOnScroll(){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.stopPlayOnScroll()}seek(e){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.seek(e)}snapshot(e=!0){if(!this.shadowRoot)return"";let t=this.shadowRoot.querySelector(".animation svg"),r=new XMLSerializer().serializeToString(t);if(e){let e=document.createElement("a");e.href=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(r)}`,e.download=`download_${this._seeker}.svg`,document.body.appendChild(e),e.click(),document.body.removeChild(e)}return r}setTheme(e){var t;null==(t=this._dotLottieCommonPlayer)||t.setDefaultTheme(e)}themes(){var e;if(!this._dotLottieCommonPlayer)return[];let t=this._dotLottieCommonPlayer.getManifest();return(null==(e=null==t?void 0:t.themes)?void 0:e.map(e=>e.id))||[]}getDefaultTheme(){return this._dotLottieCommonPlayer?this._dotLottieCommonPlayer.defaultTheme:""}getActiveStateMachine(){return this._dotLottieCommonPlayer?this._dotLottieCommonPlayer.activeStateId:""}_freeze(){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.freeze()}setSpeed(e=1){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.setSpeed(e)}setDirection(e){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.setDirection(e)}setLooping(e){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.setLoop(e)}isLooping(){return!!this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.loop}togglePlay(){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.togglePlay()}toggleLooping(){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.toggleLoop()}setPlayMode(e){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.setMode(e)}enterInteractiveMode(e){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.enterInteractiveMode(e)}exitInteractiveMode(){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.exitInteractiveMode()}revertToManifestValues(e){var t;null==(t=this._dotLottieCommonPlayer)||t.revertToManifestValues(e)}static get styles(){return ep}async firstUpdated(){var e;this.container=null==(e=this.shadowRoot)?void 0:e.querySelector("#animation"),"IntersectionObserver"in window&&(this._io=new IntersectionObserver(e=>{var t,r;void 0!==e[0]&&e[0].isIntersecting?(null==(t=this._dotLottieCommonPlayer)?void 0:t.currentState)===em.f.Frozen&&this.play():(null==(r=this._dotLottieCommonPlayer)?void 0:r.currentState)===em.f.Playing&&this._freeze()}),this._io.observe(this.container)),this.loop?this._parseLoop(this.loop):this.hasAttribute("loop")&&this._parseLoop("true"),"svg"===this.renderer?this._renderer="svg":"canvas"===this.renderer?this._renderer="canvas":"html"===this.renderer&&(this._renderer="html"),this.src&&await this.load(this.src)}disconnectedCallback(){var e,t;this._io&&(this._io.disconnect(),this._io=void 0),null==(e=this._dotLottieCommonPlayer)||e.destroy(),null==(t=this._unsubscribeListeners)||t.call(this),window&&window.removeEventListener("click",e=>this._clickOutListener(e))}_clickOutListener(e){!e.composedPath().some(e=>e instanceof HTMLElement&&(e.classList.contains("popover")||"lottie-animation-options"===e.id))&&this._popoverIsOpen&&(this._popoverIsOpen=!1,this.requestUpdate())}renderControls(){var e,t,r,n,i;let o=(null==(e=this._dotLottieCommonPlayer)?void 0:e.currentState)===em.f.Playing,s=(null==(t=this._dotLottieCommonPlayer)?void 0:t.currentState)===em.f.Paused;return q`
${this._hasMultipleAnimations?q` `:q``} ${this._hasMultipleAnimations?q` `:q``} this._handleSeekChange(e)} @mousedown=${()=>{this._freeze()}} @mouseup=${()=>{var e;null==(e=this._dotLottieCommonPlayer)||e.unfreeze()}} aria-valuemin="1" aria-valuemax="100" role="slider" aria-valuenow=${this._seeker} aria-label="lottie-seek-input" style=${`--seeker: ${this._seeker}`} /> ${this._hasMultipleAnimations||this._hasMultipleThemes||this._hasMultipleStates?q` `:q``}
${this._popoverIsOpen?q`
${this._animationsTabIsOpen||this._styleTabIsOpen||this._statesTabIsOpen?q``:q` `} ${!this._hasMultipleThemes||this._styleTabIsOpen||this._animationsTabIsOpen||this._statesTabIsOpen?"":q` `} ${!this._hasMultipleStates||this._styleTabIsOpen||this._animationsTabIsOpen||this._statesTabIsOpen?"":q` `} ${this._animationsTabIsOpen?q`
    ${this.animations().map(e=>q`
  • `)}
`:q``} ${this._styleTabIsOpen?q`
`}
    ${this._themesForCurrentAnimation.map(e=>q`
  • `)}
`:q``} ${this._statesTabIsOpen?q`
    ${this._statesForCurrentAnimation.map(e=>q`
  • `)}
`:q``}
`:q``} `}render(){var e;let t=this.controls?"main controls":"main",r=this.controls?"animation controls":"animation";return q` `}};(0,eg.a)([eE({type:String})],eS.prototype,"defaultTheme",2),(0,eg.a)([eA("#animation")],eS.prototype,"container",2),(0,eg.a)([eE()],eS.prototype,"playMode",2),(0,eg.a)([eE({type:Boolean})],eS.prototype,"autoplay",2),(0,eg.a)([eE({type:String})],eS.prototype,"background",2),(0,eg.a)([eE({type:Boolean})],eS.prototype,"controls",2),(0,eg.a)([eE({type:Number})],eS.prototype,"direction",2),(0,eg.a)([eE({type:Boolean})],eS.prototype,"hover",2),(0,eg.a)([eE({type:String})],eS.prototype,"loop",2),(0,eg.a)([eE({type:String})],eS.prototype,"renderer",2),(0,eg.a)([eE({type:Number})],eS.prototype,"speed",2),(0,eg.a)([eE({type:String})],eS.prototype,"src",2),(0,eg.a)([eE()],eS.prototype,"intermission",2),(0,eg.a)([eE({type:String})],eS.prototype,"activeAnimationId",2),(0,eg.a)([eE({type:Boolean})],eS.prototype,"light",2),(0,eg.a)([eE({type:Boolean})],eS.prototype,"worker",2),(0,eg.a)([eE({type:String})],eS.prototype,"activeStateId",2),(0,eg.a)([e_()],eS.prototype,"_seeker",2),customElements.get(eC)||customElements.define(eC,eS)},41507:(e,t,r)=>{"use strict";r.d(t,{UE:()=>eV,RK:()=>eB,ll:()=>eP,rD:()=>e$,UU:()=>eF,jD:()=>eK,mG:()=>eH,ER:()=>ez,cY:()=>eM,BN:()=>eU,Ej:()=>ej});let n=["top","right","bottom","left"],i=["start","end"],o=n.reduce((e,t)=>e.concat(t,t+"-"+i[0],t+"-"+i[1]),[]),s=Math.min,a=Math.max,l=Math.round,u=Math.floor,c=e=>({x:e,y:e}),h={left:"right",right:"left",bottom:"top",top:"bottom"},d={start:"end",end:"start"};function f(e,t,r){return a(e,s(t,r))}function p(e,t){return"function"==typeof e?e(t):e}function m(e){return e.split("-")[0]}function g(e){return e.split("-")[1]}function v(e){return"x"===e?"y":"x"}function y(e){return"y"===e?"height":"width"}function E(e){return["top","bottom"].includes(m(e))?"y":"x"}function _(e){return v(E(e))}function b(e,t,r){void 0===r&&(r=!1);let n=g(e),i=_(e),o=y(i),s="x"===i?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=w(s)),[s,w(s)]}function A(e){let t=w(e);return[T(e),t,T(t)]}function T(e){return e.replace(/start|end/g,e=>d[e])}function C(e,t,r){let n=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":if(r)return t?i:n;return t?n:i;case"left":case"right":return t?o:s;default:return[]}}function S(e,t,r,n){let i=g(e),o=C(m(e),"start"===r,n);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(T)))),o}function w(e){return e.replace(/left|right|bottom|top/g,e=>h[e])}function x(e){return{top:0,right:0,bottom:0,left:0,...e}}function R(e){return"number"!=typeof e?x(e):{top:e,right:e,bottom:e,left:e}}function k(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function L(e,t,r){let n,{reference:i,floating:o}=e,s=E(t),a=_(t),l=y(a),u=m(t),c="y"===s,h=i.x+i.width/2-o.width/2,d=i.y+i.height/2-o.height/2,f=i[l]/2-o[l]/2;switch(u){case"top":n={x:h,y:i.y-o.height};break;case"bottom":n={x:h,y:i.y+i.height};break;case"right":n={x:i.x+i.width,y:d};break;case"left":n={x:i.x-o.width,y:d};break;default:n={x:i.x,y:i.y}}switch(g(t)){case"start":n[a]-=f*(r&&c?-1:1);break;case"end":n[a]+=f*(r&&c?-1:1)}return n}let I=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:s}=r,a=o.filter(Boolean),l=await (null==s.isRTL?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:h}=L(u,n,l),d=n,f={},p=0;for(let r=0;r({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:i,rects:o,platform:a,elements:l,middlewareData:u}=t,{element:c,padding:h=0}=p(e,t)||{};if(null==c)return{};let d=R(h),m={x:r,y:n},v=_(i),E=y(v),b=await a.getDimensions(c),A="y"===v,T=A?"top":"left",C=A?"bottom":"right",S=A?"clientHeight":"clientWidth",w=o.reference[E]+o.reference[v]-m[v]-o.floating[E],x=m[v]-o.reference[v],k=await (null==a.getOffsetParent?void 0:a.getOffsetParent(c)),L=k?k[S]:0;L&&await (null==a.isElement?void 0:a.isElement(k))||(L=l.floating[S]||o.floating[E]);let I=w/2-x/2,O=L/2-b[E]/2-1,D=s(d[T],O),N=s(d[C],O),P=D,M=L-b[E]-N,B=L/2-b[E]/2+I,U=f(P,B,M),F=!u.arrow&&null!=g(i)&&B!==U&&o.reference[E]/2-(Bg(t)===e),...r.filter(t=>g(t)!==e)]:r.filter(e=>m(e)===e)).filter(r=>!e||g(r)===e||!!t&&T(r)!==r)}let P=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,i;let{rects:s,middlewareData:a,placement:l,platform:u,elements:c}=t,{crossAxis:h=!1,alignment:d,allowedPlacements:f=o,autoAlignment:v=!0,...y}=p(e,t),E=void 0!==d||f===o?N(d||null,v,f):f,_=await O(t,y),A=(null==(r=a.autoPlacement)?void 0:r.index)||0,T=E[A];if(null==T)return{};let C=b(T,s,await (null==u.isRTL?void 0:u.isRTL(c.floating)));if(l!==T)return{reset:{placement:E[0]}};let S=[_[m(T)],_[C[0]],_[C[1]]],w=[...(null==(n=a.autoPlacement)?void 0:n.overflows)||[],{placement:T,overflows:S}],x=E[A+1];if(x)return{data:{index:A+1,overflows:w},reset:{placement:x}};let R=w.map(e=>{let t=g(e.placement);return[e.placement,t&&h?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),k=(null==(i=R.filter(e=>e[2].slice(0,g(e[0])?2:3).every(e=>e<=0))[0])?void 0:i[0])||R[0][0];return k!==l?{data:{index:A+1,overflows:w},reset:{placement:k}}:{}}}},M=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n,i,o,s;let{placement:a,middlewareData:l,rects:u,initialPlacement:c,platform:h,elements:d}=t,{mainAxis:f=!0,crossAxis:g=!0,fallbackPlacements:v,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:_="none",flipAlignment:T=!0,...C}=p(e,t);if(null!=(r=l.arrow)&&r.alignmentOffset)return{};let x=m(a),R=E(c),k=m(c)===c,L=await (null==h.isRTL?void 0:h.isRTL(d.floating)),I=v||(k||!T?[w(c)]:A(c)),D="none"!==_;!v&&D&&I.push(...S(c,T,_,L));let N=[c,...I],P=await O(t,C),M=[],B=(null==(n=l.flip)?void 0:n.overflows)||[];if(f&&M.push(P[x]),g){let e=b(a,u,L);M.push(P[e[0]],P[e[1]])}if(B=[...B,{placement:a,overflows:M}],!M.every(e=>e<=0)){let e=((null==(i=l.flip)?void 0:i.index)||0)+1,t=N[e];if(t)return{data:{index:e,overflows:B},reset:{placement:t}};let r=null==(o=B.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!r)switch(y){case"bestFit":{let e=null==(s=B.filter(e=>{if(D){let t=E(e.placement);return t===R||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:s[0];e&&(r=e);break}case"initialPlacement":r=c}if(a!==r)return{reset:{placement:r}}}return{}}}};function B(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function U(e){return n.some(t=>e[t]>=0)}let F=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r}=t,{strategy:n="referenceHidden",...i}=p(e,t);switch(n){case"referenceHidden":{let e=B(await O(t,{...i,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:U(e)}}}case"escaped":{let e=B(await O(t,{...i,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:U(e)}}}default:return{}}}}};function j(e){let t=s(...e.map(e=>e.left)),r=s(...e.map(e=>e.top));return{x:t,y:r,width:a(...e.map(e=>e.right))-t,height:a(...e.map(e=>e.bottom))-r}}function K(e){let t=e.slice().sort((e,t)=>e.y-t.y),r=[],n=null;for(let e=0;en.height/2?r.push([i]):r[r.length-1].push(i),n=i}return r.map(e=>k(j(e)))}let V=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){let{placement:r,elements:n,rects:i,platform:o,strategy:l}=t,{padding:u=2,x:c,y:h}=p(e,t),d=Array.from(await (null==o.getClientRects?void 0:o.getClientRects(n.reference))||[]),f=K(d),g=k(j(d)),v=R(u);function y(){if(2===f.length&&f[0].left>f[1].right&&null!=c&&null!=h)return f.find(e=>c>e.left-v.left&&ce.top-v.top&&h=2){if("y"===E(r)){let e=f[0],t=f[f.length-1],n="top"===m(r),i=e.top,o=t.bottom,s=n?e.left:t.left,a=n?e.right:t.right,l=a-s,u=o-i;return{top:i,bottom:o,left:s,right:a,width:l,height:u,x:s,y:i}}let e="left"===m(r),t=a(...f.map(e=>e.right)),n=s(...f.map(e=>e.left)),i=f.filter(r=>e?r.left===n:r.right===t),o=i[0].top,l=i[i.length-1].bottom,u=n,c=t,h=c-u,d=l-o;return{top:o,bottom:l,left:u,right:c,width:h,height:d,x:u,y:o}}return g}let _=await o.getElementRects({reference:{getBoundingClientRect:y},floating:n.floating,strategy:l});return i.reference.x!==_.reference.x||i.reference.y!==_.reference.y||i.reference.width!==_.reference.width||i.reference.height!==_.reference.height?{reset:{rects:_}}:{}}}};async function H(e,t){let{placement:r,platform:n,elements:i}=e,o=await (null==n.isRTL?void 0:n.isRTL(i.floating)),s=m(r),a=g(r),l="y"===E(r),u=["left","top"].includes(s)?-1:1,c=o&&l?-1:1,h=p(t,e),{mainAxis:d,crossAxis:f,alignmentAxis:v}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return a&&"number"==typeof v&&(f="end"===a?-1*v:v),l?{x:f*c,y:d*u}:{x:d*u,y:f*c}}let z=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;let{x:i,y:o,placement:s,middlewareData:a}=t,l=await H(t,e);return s===(null==(r=a.offset)?void 0:r.placement)&&null!=(n=a.arrow)&&n.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}},G=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...l}=p(e,t),u={x:r,y:n},c=await O(t,l),h=E(m(i)),d=v(h),g=u[d],y=u[h];if(o){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",r=g+c[e],n=g-c[t];g=f(r,g,n)}if(s){let e="y"===h?"top":"left",t="y"===h?"bottom":"right",r=y+c[e],n=y-c[t];y=f(r,y,n)}let _=a.fn({...t,[d]:g,[h]:y});return{..._,data:{x:_.x-r,y:_.y-n}}}}},q=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:r,y:n,placement:i,rects:o,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=p(e,t),c={x:r,y:n},h=E(i),d=v(h),f=c[d],g=c[h],y=p(a,t),_="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){let e="y"===d?"height":"width",t=o.reference[d]-o.floating[e]+_.mainAxis,r=o.reference[d]+o.reference[e]-_.mainAxis;fr&&(f=r)}if(u){var b,A;let e="y"===d?"width":"height",t=["top","left"].includes(m(i)),r=o.reference[h]-o.floating[e]+(t&&(null==(b=s.offset)?void 0:b[h])||0)+(t?0:_.crossAxis),n=o.reference[h]+o.reference[e]+(t?0:(null==(A=s.offset)?void 0:A[h])||0)-(t?_.crossAxis:0);gn&&(g=n)}return{[d]:f,[h]:g}}}},W=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){let r,n;let{placement:i,rects:o,platform:l,elements:u}=t,{apply:c=()=>{},...h}=p(e,t),d=await O(t,h),f=m(i),v=g(i),y="y"===E(i),{width:_,height:b}=o.floating;"top"===f||"bottom"===f?(r=f,n=v===(await (null==l.isRTL?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(n=f,r="end"===v?"top":"bottom");let A=b-d.top-d.bottom,T=_-d.left-d.right,C=s(b-d[r],A),S=s(_-d[n],T),w=!t.middlewareData.shift,x=C,R=S;if(y?R=v||w?s(S,T):T:x=v||w?s(C,A):A,w&&!v){let e=a(d.left,0),t=a(d.right,0),r=a(d.top,0),n=a(d.bottom,0);y?R=_-2*(0!==e||0!==t?e+t:a(d.left,d.right)):x=b-2*(0!==r||0!==n?r+n:a(d.top,d.bottom))}await c({...t,availableWidth:R,availableHeight:x});let k=await l.getDimensions(u.floating);return _!==k.width||b!==k.height?{reset:{rects:!0}}:{}}}};function X(e){return Z(e)?(e.nodeName||"").toLowerCase():"#document"}function Y(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Q(e){var t;return null==(t=(Z(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Z(e){return e instanceof Node||e instanceof Y(e).Node}function J(e){return e instanceof Element||e instanceof Y(e).Element}function ee(e){return e instanceof HTMLElement||e instanceof Y(e).HTMLElement}function et(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Y(e).ShadowRoot)}function er(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=eu(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(i)}function en(e){return["table","td","th"].includes(X(e))}function ei(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function eo(e){let t=ea(),r=J(e)?eu(e):e;return"none"!==r.transform||"none"!==r.perspective||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||["transform","perspective","filter"].some(e=>(r.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(r.contain||"").includes(e))}function es(e){let t=eh(e);for(;ee(t)&&!el(t);){if(eo(t))return t;if(ei(t))break;t=eh(t)}return null}function ea(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function el(e){return["html","body","#document"].includes(X(e))}function eu(e){return Y(e).getComputedStyle(e)}function ec(e){return J(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function eh(e){if("html"===X(e))return e;let t=e.assignedSlot||e.parentNode||et(e)&&e.host||Q(e);return et(t)?t.host:t}function ed(e){let t=eh(e);return el(t)?e.ownerDocument?e.ownerDocument.body:e.body:ee(t)&&er(t)?t:ed(t)}function ef(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let i=ed(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),s=Y(i);return o?t.concat(s,s.visualViewport||[],er(i)?i:[],s.frameElement&&r?ef(s.frameElement):[]):t.concat(i,ef(i,[],r))}function ep(e){let t=eu(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=ee(e),o=i?e.offsetWidth:r,s=i?e.offsetHeight:n,a=l(r)!==o||l(n)!==s;return a&&(r=o,n=s),{width:r,height:n,$:a}}function em(e){return J(e)?e:e.contextElement}function eg(e){let t=em(e);if(!ee(t))return c(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:o}=ep(t),s=(o?l(r.width):r.width)/n,a=(o?l(r.height):r.height)/i;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}let ev=c(0);function ey(e){let t=Y(e);return ea()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ev}function eE(e,t,r){return void 0===t&&(t=!1),!!r&&(!t||r===Y(e))&&t}function e_(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);let i=e.getBoundingClientRect(),o=em(e),s=c(1);t&&(n?J(n)&&(s=eg(n)):s=eg(e));let a=eE(o,r,n)?ey(o):c(0),l=(i.left+a.x)/s.x,u=(i.top+a.y)/s.y,h=i.width/s.x,d=i.height/s.y;if(o){let e=Y(o),t=n&&J(n)?Y(n):n,r=e,i=r.frameElement;for(;i&&n&&t!==r;){let e=eg(i),t=i.getBoundingClientRect(),n=eu(i),o=t.left+(i.clientLeft+parseFloat(n.paddingLeft))*e.x,s=t.top+(i.clientTop+parseFloat(n.paddingTop))*e.y;l*=e.x,u*=e.y,h*=e.x,d*=e.y,l+=o,u+=s,i=(r=Y(i)).frameElement}}return k({width:h,height:d,x:l,y:u})}function eb(e){return e_(Q(e)).left+ec(e).scrollLeft}function eA(e){let t=Q(e),r=ec(e),n=e.ownerDocument.body,i=a(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=a(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),s=-r.scrollLeft+eb(e),l=-r.scrollTop;return"rtl"===eu(n).direction&&(s+=a(t.clientWidth,n.clientWidth)-i),{width:i,height:o,x:s,y:l}}function eT(e,t){let r=Y(e),n=Q(e),i=r.visualViewport,o=n.clientWidth,s=n.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;let e=ea();(!e||e&&"fixed"===t)&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a,y:l}}function eC(e,t){let r=e_(e,!0,"fixed"===t),n=r.top+e.clientTop,i=r.left+e.clientLeft,o=ee(e)?eg(e):c(1),s=e.clientWidth*o.x;return{width:s,height:e.clientHeight*o.y,x:i*o.x,y:n*o.y}}function eS(e,t,r){let n;if("viewport"===t)n=eT(e,r);else if("document"===t)n=eA(Q(e));else if(J(t))n=eC(t,r);else{let r=ey(e);n={...t,x:t.x-r.x,y:t.y-r.y}}return k(n)}function ew(e,t){let r=eh(e);return!(r===t||!J(r)||el(r))&&("fixed"===eu(r).position||ew(r,t))}function ex(e,t){let r=t.get(e);if(r)return r;let n=ef(e,[],!1).filter(e=>J(e)&&"body"!==X(e)),i=null,o="fixed"===eu(e).position,s=o?eh(e):e;for(;J(s)&&!el(s);){let t=eu(s),r=eo(s);r||"fixed"!==t.position||(i=null),(o?!r&&!i:!r&&"static"===t.position&&!!i&&["absolute","fixed"].includes(i.position)||er(s)&&!r&&ew(e,s))?n=n.filter(e=>e!==s):i=t,s=eh(s)}return t.set(e,n),n}function eR(e,t,r){let n=ee(t),i=Q(t),o="fixed"===r,s=e_(e,!0,o,t),a={scrollLeft:0,scrollTop:0},l=c(0);if(n||!n&&!o){if(("body"!==X(t)||er(i))&&(a=ec(t)),n){let e=e_(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=eb(i))}return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function ek(e){return"static"===eu(e).position}function eL(e,t){return ee(e)&&"fixed"!==eu(e).position?t?t(e):e.offsetParent:null}function eI(e,t){let r=Y(e);if(ei(e))return r;if(!ee(e)){let t=eh(e);for(;t&&!el(t);){if(J(t)&&!ek(t))return t;t=eh(t)}return r}let n=eL(e,t);for(;n&&en(n)&&ek(n);)n=eL(n,t);return n&&el(n)&&ek(n)&&!eo(n)?r:n||es(e)||r}let eO=async function(e){let t=this.getOffsetParent||eI,r=this.getDimensions,n=await r(e.floating);return{reference:eR(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},eD={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,o="fixed"===i,s=Q(n),a=!!t&&ei(t.floating);if(n===s||a&&o)return r;let l={scrollLeft:0,scrollTop:0},u=c(1),h=c(0),d=ee(n);if((d||!d&&!o)&&(("body"!==X(n)||er(s))&&(l=ec(n)),ee(n))){let e=e_(n);u=eg(n),h.x=e.x+n.clientLeft,h.y=e.y+n.clientTop}return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+h.x,y:r.y*u.y-l.scrollTop*u.y+h.y}},getDocumentElement:Q,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,o=[..."clippingAncestors"===r?ei(t)?[]:ex(t,this._c):[].concat(r),n],l=o[0],u=o.reduce((e,r)=>{let n=eS(t,r,i);return e.top=a(n.top,e.top),e.right=s(n.right,e.right),e.bottom=s(n.bottom,e.bottom),e.left=a(n.left,e.left),e},eS(t,l,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:eI,getElementRects:eO,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=ep(e);return{width:t,height:r}},getScale:eg,isElement:J,isRTL:function(e){return"rtl"===eu(e).direction}};function eN(e,t){let r,n=null,i=Q(e);function o(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}function l(c,h){void 0===c&&(c=!1),void 0===h&&(h=1),o();let{left:d,top:f,width:p,height:m}=e.getBoundingClientRect();if(c||t(),!p||!m)return;let g=u(f),v={rootMargin:-g+"px "+-u(i.clientWidth-(d+p))+"px "+-u(i.clientHeight-(f+m))+"px "+-u(d)+"px",threshold:a(0,s(1,h))||1},y=!0;function E(e){let t=e[0].intersectionRatio;if(t!==h){if(!y)return l();t?l(!1,t):r=setTimeout(()=>{l(!1,1e-7)},1e3)}y=!1}try{n=new IntersectionObserver(E,{...v,root:i.ownerDocument})}catch(e){n=new IntersectionObserver(E,v)}n.observe(e)}return l(!0),o}function eP(e,t,r,n){let i;void 0===n&&(n={});let{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:u=!1}=n,c=em(e),h=o||s?[...c?ef(c):[],...ef(t)]:[];h.forEach(e=>{o&&e.addEventListener("scroll",r,{passive:!0}),s&&e.addEventListener("resize",r)});let d=c&&l?eN(c,r):null,f=-1,p=null;a&&(p=new ResizeObserver(e=>{let[n]=e;n&&n.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),r()}),c&&!u&&p.observe(c),p.observe(t));let m=u?e_(e):null;function g(){let t=e_(e);m&&(t.x!==m.x||t.y!==m.y||t.width!==m.width||t.height!==m.height)&&r(),m=t,i=requestAnimationFrame(g)}return u&&g(),r(),()=>{var e;h.forEach(e=>{o&&e.removeEventListener("scroll",r),s&&e.removeEventListener("resize",r)}),null==d||d(),null==(e=p)||e.disconnect(),p=null,u&&cancelAnimationFrame(i)}}let eM=z,eB=P,eU=G,eF=M,ej=W,eK=F,eV=D,eH=V,ez=q,e$=(e,t,r)=>{let n=new Map,i={platform:eD,...r},o={...i.platform,_c:n};return I(e,t,{...i,platform:o})}},31980:(e,t,r)=>{"use strict";r.d(t,{Jb:()=>i,vA:()=>n.vA,EW:()=>n.EW,QZ:()=>n.QZ,vP:()=>n.vP});var n=r(65282);/** * @license * Copyright 2023 Google LLC * SPDX-License-Identifier: BSD-3-Clause */function i(e){return class extends e{performUpdate(){var e;if(!1===this.isUpdatePending)return;null===(e=this._$Oo)||void 0===e||e.call(this);let t=!0;this._$Oo=(0,n.QZ)(()=>{t?(t=!1,super.performUpdate()):this.requestUpdate()})}connectedCallback(){super.connectedCallback(),this.requestUpdate()}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Oo)||void 0===e||e.call(this)}}}var o=r(24465),s=r(55572);/** * @license * Copyright 2023 Google LLC * SPDX-License-Identifier: BSD-3-Clause */let a=(0,o.u$)(class extends s.Kq{render(e){var t;if(e!==this._$Oi){null===(t=this._$Oo)||void 0===t||t.call(this),this._$Oi=e;let r=!0;this._$Oo=e.subscribe(e=>{!1===r&&this.setValue(e)}),r=!1}return e.peek()}disconnected(){var e;null===(e=this._$Oo)||void 0===e||e.call(this)}reconnected(){var e;this._$Oo=null===(e=this._$Oi)||void 0===e?void 0:e.subscribe(e=>{this.setValue(e)})}});var l=r(89167);/** * @license * Copyright 2023 Google LLC * SPDX-License-Identifier: BSD-3-Clause */let u=e=>(t,...r)=>e(t,...r.map(e=>e instanceof n.HN?a(e):e));u(l.qy),u(l.JW)},99603:(e,t,r)=>{"use strict";r.d(t,{DT:()=>l,Fg:()=>c,q6:()=>i,Gt:()=>u});/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause */class n extends Event{constructor(e,t,r){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.callback=t,this.subscribe=r??!1}}/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause */function i(e){return e}/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause */class o{constructor(e,t,r,n){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(e,t)=>{this.unsubscribe&&(this.unsubscribe!==t&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=e,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(e,t)),this.unsubscribe=t},this.host=e,void 0!==t.context){let e=t;this.context=e.context,this.callback=e.callback,this.subscribe=e.subscribe??!1}else this.context=t,this.callback=r,this.subscribe=n??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new n(this.context,this.t,this.subscribe))}}/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause */class s{get value(){return this.o}set value(e){this.setValue(e)}setValue(e,t=!1){let r=t||!Object.is(e,this.o);this.o=e,r&&this.updateObservers()}constructor(e){this.subscriptions=new Map,this.updateObservers=()=>{for(let[e,{disposer:t}]of this.subscriptions)e(this.o,t)},void 0!==e&&(this.value=e)}addCallback(e,t,r){if(!r)return void e(this.value);this.subscriptions.has(e)||this.subscriptions.set(e,{disposer:()=>{this.subscriptions.delete(e)},consumerHost:t});let{disposer:n}=this.subscriptions.get(e);e(this.value,n)}clearCallbacks(){this.subscriptions.clear()}}/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause */class a extends Event{constructor(e){super("context-provider",{bubbles:!0,composed:!0}),this.context=e}}class l extends s{constructor(e,t,r){super(void 0!==t.context?t.initialValue:r),this.onContextRequest=e=>{let t=e.composedPath()[0];e.context===this.context&&t!==this.host&&(e.stopPropagation(),this.addCallback(e.callback,t,e.subscribe))},this.onProviderRequest=e=>{let t=e.composedPath()[0];if(e.context!==this.context||t===this.host)return;let r=new Set;for(let[e,{consumerHost:t}]of this.subscriptions)r.has(e)||(r.add(e),t.dispatchEvent(new n(this.context,e,!0)));e.stopPropagation()},this.host=e,void 0!==t.context?this.context=t.context:this.context=t,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new a(this.context))}}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */function u({context:e}){return(t,r)=>{let n=new WeakMap;if("object"==typeof r)return r.addInitializer(function(){n.set(this,new l(this,{context:e}))}),{get(){return t.get.call(this)},set(e){return n.get(this)?.setValue(e),t.set.call(this,e)},init(e){return n.get(this)?.setValue(e),e}};{let i;t.constructor.addInitializer(t=>{n.set(t,new l(t,{context:e}))});let o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){let e=new WeakMap;i={get(){return e.get(this)},set(t){n.get(this).setValue(t),e.set(this,t)},configurable:!0,enumerable:!0}}else{let e=o.set;i={...o,set(t){n.get(this).setValue(t),e?.call(this,t)}}}return void Object.defineProperty(t,r,i)}}}/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: BSD-3-Clause */function c({context:e,subscribe:t}){return(r,n)=>{"object"==typeof n?n.addInitializer(function(){new o(this,{context:e,callback:e=>{r.set.call(this,e)},subscribe:t})}):r.constructor.addInitializer(r=>{new o(r,{context:e,callback:e=>{r[n]=e},subscribe:t})})}}},20934:(e,t,r)=>{"use strict";r.d(t,{BO:()=>a,mN:()=>w,AH:()=>u,W3:()=>T,Ec:()=>C,iz:()=>l});/** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: BSD-3-Clause */let n=globalThis,i=n.ShadowRoot&&(void 0===n.ShadyCSS||n.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,o=Symbol(),s=new WeakMap;class a{constructor(e,t,r){if(this._$cssResult$=!0,r!==o)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(i&&void 0===e){let r=void 0!==t&&1===t.length;r&&(e=s.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&s.set(t,e))}return e}toString(){return this.cssText}}let l=e=>new a("string"==typeof e?e:e+"",void 0,o),u=(e,...t)=>new a(1===e.length?e[0]:t.reduce((t,r,n)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+e[n+1],e[0]),e,o),c=(e,t)=>{if(i)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let r of t){let t=document.createElement("style"),i=n.litNonce;void 0!==i&&t.setAttribute("nonce",i),t.textContent=r.cssText,e.appendChild(t)}},h=i?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(let r of e.cssRules)t+=r.cssText;return l(t)})(e):e,{is:d,defineProperty:f,getOwnPropertyDescriptor:p,getOwnPropertyNames:m,getOwnPropertySymbols:g,getPrototypeOf:v}=Object,y=globalThis,E=y.trustedTypes,_=E?E.emptyScript:"",b=y.reactiveElementPolyfillSupport,A=(e,t)=>e,T={toAttribute(e,t){switch(t){case Boolean:e=e?_:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=null!==e;break;case Number:r=null===e?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(e){r=null}}return r}},C=(e,t)=>!d(e,t),S={attribute:!0,type:String,converter:T,reflect:!1,hasChanged:C};Symbol.metadata??=Symbol("metadata"),y.litPropertyMetadata??=new WeakMap;class w extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=S){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){let r=Symbol(),n=this.getPropertyDescriptor(e,r,t);void 0!==n&&f(this.prototype,e,n)}}static getPropertyDescriptor(e,t,r){let{get:n,set:i}=p(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get(){return n?.call(this)},set(t){let o=n?.call(this);i.call(this,t),this.requestUpdate(e,o,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??S}static _$Ei(){if(this.hasOwnProperty(A("elementProperties")))return;let e=v(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(A("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(A("properties"))){let e=this.properties;for(let t of[...m(e),...g(e)])this.createProperty(t,e[t])}let e=this[Symbol.metadata];if(null!==e){let t=litPropertyMetadata.get(e);if(void 0!==t)for(let[e,r]of t)this.elementProperties.set(e,r)}for(let[e,t]of(this._$Eh=new Map,this.elementProperties)){let r=this._$Eu(e,t);void 0!==r&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e))for(let r of new Set(e.flat(1/0).reverse()))t.unshift(h(r));else void 0!==e&&t.push(h(e));return t}static _$Eu(e,t){let r=t.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map;for(let t of this.constructor.elementProperties.keys())this.hasOwnProperty(t)&&(e.set(t,this[t]),delete this[t]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return c(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EC(e,t){let r=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,r);if(void 0!==n&&!0===r.reflect){let i=(void 0!==r.converter?.toAttribute?r.converter:T).toAttribute(t,r.type);this._$Em=e,null==i?this.removeAttribute(n):this.setAttribute(n,i),this._$Em=null}}_$AK(e,t){let r=this.constructor,n=r._$Eh.get(e);if(void 0!==n&&this._$Em!==n){let e=r.getPropertyOptions(n),i="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:T;this._$Em=n,this[n]=i.fromAttribute(t,e.type),this._$Em=null}}requestUpdate(e,t,r){if(void 0!==e){if(!((r??=this.constructor.getPropertyOptions(e)).hasChanged??C)(this[e],t))return;this.P(e,t,r)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(e,t,r){this._$AL.has(e)||this._$AL.set(e,t),!0===r.reflect&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[t,r]of e)!0!==r.wrapped||this._$AL.has(t)||void 0===this[t]||this.P(t,this[t],r)}let e=!1,t=this._$AL;try{(e=this.shouldUpdate(t))?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(e=>this._$EC(e,this[e])),this._$EU()}updated(e){}firstUpdated(e){}}w.elementStyles=[],w.shadowRootOptions={mode:"open"},w[A("elementProperties")]=new Map,w[A("finalized")]=new Map,b?.({ReactiveElement:w}),(y.reactiveElementVersions??=[]).push("2.0.4")},74886:(e,t,r)=>{"use strict";let n;r.d(t,{Xs:()=>_});var i=r(36870),o=r(86326);let s=({as:e="div",...t},r)=>(0,i.jsx)(e,{...t,ref:r}),a=(0,o.forwardRef)(s),l="https://challenges.cloudflare.com/turnstile/v0/api.js",u="cf-turnstile-script",c="cf-turnstile",h="onloadTurnstileCallback",d=e=>!!document.getElementById(e),f=({render:e="explicit",onLoadCallbackName:t=h,scriptOptions:{nonce:r="",defer:n=!0,async:i=!0,id:o="",appendTo:s,onError:a,crossOrigin:c=""}={}})=>{let f=o||u;if(d(f))return;let p=document.createElement("script");p.id=f,p.src=`${l}?onload=${t}&render=${e}`,document.querySelector(`script[src="${p.src}"]`)||(p.defer=!!n,p.async=!!i,r&&(p.nonce=r),c&&(p.crossOrigin=c),a&&(p.onerror=a,delete window[t]),("body"===s?document.body:document.getElementsByTagName("head")[0]).appendChild(p))},p={normal:{width:300,height:65},compact:{width:130,height:120},invisible:{width:0,height:0,overflow:"hidden"},auto:{},interactionOnly:{width:"fit-content",height:"auto",display:"flex"}};function m(e){let t;return"invisible"!==e&&"auto"!==e&&(t=e),t}function g(e=u){let[t,r]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{let t=()=>{d(e)&&r(!0)},n=new MutationObserver(t);return n.observe(document,{childList:!0,subtree:!0}),t(),()=>{n.disconnect()}},[e]),t}let v="unloaded",y=new Promise((e,t)=>{n={resolve:e,reject:t},"ready"===v&&e(void 0)}),E=(e=h)=>("unloaded"===v&&(v="loading",window[e]=()=>{n.resolve(),v="ready",delete window[e]}),y),_=(0,o.forwardRef)((e,t)=>{let{scriptOptions:r,options:n={},siteKey:s,onWidgetLoad:l,onSuccess:d,onExpire:y,onError:_,onBeforeInteractive:b,onAfterInteractive:A,onUnsupported:T,onLoadScript:C,id:S,style:w,as:x="div",injectScript:R=!0,...k}=e,L=n.size||"normal",[I,O]=(0,o.useState)("execute"===n.execution?p.invisible:"interaction-only"===n.appearance?p.interactionOnly:p[L]),D=(0,o.useRef)(null),[N,P]=(0,o.useState)(!1),M=(0,o.useRef)(),B=(0,o.useRef)(!1),U=S||c,F=r?.id||u,j=g(F),K=r?.onLoadCallbackName||h,V=n.appearance||"always",H=(0,o.useMemo)(()=>({sitekey:s,action:n.action,cData:n.cData,callback:e=>{B.current=!0,d?.(e)},"error-callback":_,"expired-callback":y,"before-interactive-callback":b,"after-interactive-callback":A,"unsupported-callback":T,theme:n.theme||"auto",language:n.language||"auto",tabindex:n.tabIndex,"response-field":n.responseField,"response-field-name":n.responseFieldName,size:m(L),retry:n.retry||"auto","retry-interval":n.retryInterval||8e3,"refresh-expired":n.refreshExpired||"auto",execution:n.execution||"render",appearance:n.appearance||"always"}),[n.action,n.appearance,n.cData,n.execution,n.language,n.refreshExpired,n.responseField,n.responseFieldName,n.retry,n.retryInterval,n.tabIndex,n.theme,s,L]),z=(0,o.useCallback)(()=>"undefined"!=typeof window&&!!window.turnstile,[]);return(0,o.useEffect)(function(){R&&!N&&f({onLoadCallbackName:K,scriptOptions:{...r,id:F}})},[R,N,r,F]),(0,o.useEffect)(function(){"ready"!==v&&E(K).then(()=>P(!0)).catch(console.error)},[]),(0,o.useEffect)(function(){if(!D.current||!N)return;let e=!1;return(async()=>{if(e||!D.current)return;let t=window.turnstile.render(D.current,H);M.current=t,M.current&&l?.(M.current)})(),()=>{e=!0,M.current&&(window.turnstile.remove(M.current),B.current=!1)}},[U,N,H]),(0,o.useImperativeHandle)(t,()=>{let{turnstile:e}=window;return{getResponse(){if(!e?.getResponse||!M.current||!z()){console.warn("Turnstile has not been loaded");return}return e.getResponse(M.current)},getResponsePromise:async(e=3e4,t=100)=>new Promise((r,n)=>{let i;let o=async()=>{if(B.current&&window.turnstile&&M.current)try{let e=window.turnstile.getResponse(M.current);if(i&&clearTimeout(i),e)return r(e);return n(Error("No response received"))}catch(e){return i&&clearTimeout(i),console.warn("Failed to get response",e),n(Error("Failed to get response"))}i||(i=setTimeout(()=>{i&&clearTimeout(i),n(Error("Timeout"))},e)),await new Promise(e=>setTimeout(e,t)),await o()};o()}),reset(){if(!e?.reset||!M.current||!z()){console.warn("Turnstile has not been loaded");return}"execute"===n.execution&&O(p.invisible);try{B.current=!1,e.reset(M.current)}catch(e){console.warn(`Failed to reset Turnstile widget ${M}`,e)}},remove(){if(!e?.remove||!M.current||!z()){console.warn("Turnstile has not been loaded");return}O(p.invisible),B.current=!1,e.remove(M.current),M.current=null},render(){if(!e?.render||!D.current||!z()||M.current){console.warn("Turnstile has not been loaded or container not found");return}let t=e.render(D.current,H);return M.current=t,M.current&&l?.(M.current),"execute"!==n.execution&&O(p[L]),t},execute(){if("execute"!==n.execution){console.warn('Execution mode is not set to "execute"');return}if(!e?.execute||!D.current||!M.current||!z()){console.warn("Turnstile has not been loaded or container not found");return}e.execute(D.current,H),O(p[L])},isExpired(){if(!e?.isExpired||!M.current||!z()){console.warn("Turnstile has not been loaded");return}return e.isExpired(M.current)}}},[M,n.execution,L,H,D,z,N,l]),(0,o.useEffect)(()=>{j&&!N&&window.turnstile&&P(!0)},[N,j]),(0,o.useEffect)(()=>{O("execute"===n.execution?p.invisible:"interaction-only"===V?p.interactionOnly:p[L])},[n.execution,L,V]),(0,o.useEffect)(()=>{j&&"function"==typeof C&&C()},[j]),(0,i.jsx)(a,{ref:D,as:x,id:U,style:{...I,...w},...k})});_.displayName="Turnstile"},46225:(e,t,r)=>{"use strict";function n(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}r.d(t,{m:()=>n})},94307:(e,t,r)=>{"use strict";r.d(t,{H4:()=>A,_V:()=>b,bL:()=>_});var n=r(86326),i=r(40849),o=r(88547),s=r(72356),a=r(70407),l=r(36870),u="Avatar",[c,h]=(0,i.A)(u),[d,f]=c(u),p=n.forwardRef((e,t)=>{let{__scopeAvatar:r,...i}=e,[o,s]=n.useState("idle");return(0,l.jsx)(d,{scope:r,imageLoadingStatus:o,onImageLoadingStatusChange:s,children:(0,l.jsx)(a.sG.span,{...i,ref:t})})});p.displayName=u;var m="AvatarImage",g=n.forwardRef((e,t)=>{let{__scopeAvatar:r,src:n,onLoadingStatusChange:i=()=>{},...u}=e,c=f(m,r),h=E(n),d=(0,o.c)(e=>{i(e),c.onImageLoadingStatusChange(e)});return(0,s.N)(()=>{"idle"!==h&&d(h)},[h,d]),"loaded"===h?(0,l.jsx)(a.sG.img,{...u,ref:t,src:n}):null});g.displayName=m;var v="AvatarFallback",y=n.forwardRef((e,t)=>{let{__scopeAvatar:r,delayMs:i,...o}=e,s=f(v,r),[u,c]=n.useState(void 0===i);return n.useEffect(()=>{if(void 0!==i){let e=window.setTimeout(()=>c(!0),i);return()=>window.clearTimeout(e)}},[i]),u&&"loaded"!==s.imageLoadingStatus?(0,l.jsx)(a.sG.span,{...o,ref:t}):null});function E(e){let[t,r]=n.useState("idle");return(0,s.N)(()=>{if(!e){r("error");return}let t=!0,n=new window.Image,i=e=>()=>{t&&r(e)};return r("loading"),n.onload=i("loaded"),n.onerror=i("error"),n.src=e,()=>{t=!1}},[e]),t}y.displayName=v;var _=p,b=g,A=y},55137:(e,t,r)=>{"use strict";r.d(t,{UC:()=>x,bL:()=>S,l9:()=>w});var n=r(86326),i=r(46225),o=r(40849),s=r(33291),a=r(72356),l=r(67923),u=r(70407),c=r(57391),h=r(58999),d=r(36870),f="Collapsible",[p,m]=(0,o.A)(f),[g,v]=p(f),y=n.forwardRef((e,t)=>{let{__scopeCollapsible:r,open:i,defaultOpen:o,disabled:a,onOpenChange:l,...c}=e,[f=!1,p]=(0,s.i)({prop:i,defaultProp:o,onChange:l});return(0,d.jsx)(g,{scope:r,disabled:a,contentId:(0,h.B)(),open:f,onOpenToggle:n.useCallback(()=>p(e=>!e),[p]),children:(0,d.jsx)(u.sG.div,{"data-state":C(f),"data-disabled":a?"":void 0,...c,ref:t})})});y.displayName=f;var E="CollapsibleTrigger",_=n.forwardRef((e,t)=>{let{__scopeCollapsible:r,...n}=e,o=v(E,r);return(0,d.jsx)(u.sG.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":C(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:t,onClick:(0,i.m)(e.onClick,o.onOpenToggle)})});_.displayName=E;var b="CollapsibleContent",A=n.forwardRef((e,t)=>{let{forceMount:r,...n}=e,i=v(b,e.__scopeCollapsible);return(0,d.jsx)(c.C,{present:r||i.open,children:({present:e})=>(0,d.jsx)(T,{...n,ref:t,present:e})})});A.displayName=b;var T=n.forwardRef((e,t)=>{let{__scopeCollapsible:r,present:i,children:o,...s}=e,c=v(b,r),[h,f]=n.useState(i),p=n.useRef(null),m=(0,l.s)(t,p),g=n.useRef(0),y=g.current,E=n.useRef(0),_=E.current,A=c.open||h,T=n.useRef(A),S=n.useRef();return n.useEffect(()=>{let e=requestAnimationFrame(()=>T.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,a.N)(()=>{let e=p.current;if(e){S.current=S.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();g.current=t.height,E.current=t.width,T.current||(e.style.transitionDuration=S.current.transitionDuration,e.style.animationName=S.current.animationName),f(i)}},[c.open,i]),(0,d.jsx)(u.sG.div,{"data-state":C(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!A,...s,ref:m,style:{"--radix-collapsible-content-height":y?`${y}px`:void 0,"--radix-collapsible-content-width":_?`${_}px`:void 0,...e.style},children:A&&o})});function C(e){return e?"open":"closed"}var S=y,w=_,x=A},83306:(e,t,r)=>{"use strict";r.d(t,{N:()=>l});var n=r(86326),i=r(40849),o=r(67923),s=r(74614),a=r(36870);function l(e){let t=e+"CollectionProvider",[r,l]=(0,i.A)(t),[u,c]=r(t,{collectionRef:{current:null},itemMap:new Map}),h=e=>{let{scope:t,children:r}=e,i=n.useRef(null),o=n.useRef(new Map).current;return(0,a.jsx)(u,{scope:t,itemMap:o,collectionRef:i,children:r})};h.displayName=t;let d=e+"CollectionSlot",f=n.forwardRef((e,t)=>{let{scope:r,children:n}=e,i=c(d,r),l=(0,o.s)(t,i.collectionRef);return(0,a.jsx)(s.DX,{ref:l,children:n})});f.displayName=d;let p=e+"CollectionItemSlot",m="data-radix-collection-item",g=n.forwardRef((e,t)=>{let{scope:r,children:i,...l}=e,u=n.useRef(null),h=(0,o.s)(t,u),d=c(p,r);return n.useEffect(()=>(d.itemMap.set(u,{ref:u,...l}),()=>void d.itemMap.delete(u))),(0,a.jsx)(s.DX,{[m]:"",ref:h,children:i})});return g.displayName=p,[{Provider:h,Slot:f,ItemSlot:g},function(t){let r=c(e+"CollectionConsumer",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${m}]`));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},l]}},67923:(e,t,r)=>{"use strict";r.d(t,{s:()=>s,t:()=>o});var n=r(86326);function i(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function o(...e){return t=>e.forEach(e=>i(e,t))}function s(...e){return n.useCallback(o(...e),e)}},40849:(e,t,r)=>{"use strict";r.d(t,{A:()=>s,q:()=>o});var n=r(86326),i=r(36870);function o(e,t){let r=n.createContext(t);function o(e){let{children:t,...o}=e,s=n.useMemo(()=>o,Object.values(o));return(0,i.jsx)(r.Provider,{value:s,children:t})}function s(i){let o=n.useContext(r);if(o)return o;if(void 0!==t)return t;throw Error(`\`${i}\` must be used within \`${e}\``)}return o.displayName=e+"Provider",[o,s]}function s(e,t=[]){let r=[];function o(t,o){let s=n.createContext(o),a=r.length;function l(t){let{scope:r,children:o,...l}=t,u=r?.[e][a]||s,c=n.useMemo(()=>l,Object.values(l));return(0,i.jsx)(u.Provider,{value:c,children:o})}function u(r,i){let l=i?.[e][a]||s,u=n.useContext(l);if(u)return u;if(void 0!==o)return o;throw Error(`\`${r}\` must be used within \`${t}\``)}return r=[...r,o],l.displayName=t+"Provider",[l,u]}let l=()=>{let t=r.map(e=>n.createContext(e));return function(r){let i=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:i}}),[r,i])}};return l.scopeName=e,[o,a(l,...t)]}function a(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=r.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}},53978:(e,t,r)=>{"use strict";r.d(t,{UC:()=>er,VY:()=>ei,ZL:()=>ee,bL:()=>J,bm:()=>eo,hE:()=>en,hJ:()=>et,zM:()=>w});var n=r(86326),i=r(46225),o=r(67923),s=r(40849),a=r(58999),l=r(33291),u=r(78016),c=r(23543),h=r(49260),d=r(57391),f=r(70407),p=r(41515),m=r(39059),g=r(15031),v=r(74614),y=r(36870),E="Dialog",[_,b]=(0,s.A)(E),[A,T]=_(E),C=e=>{let{__scopeDialog:t,children:r,open:i,defaultOpen:o,onOpenChange:s,modal:u=!0}=e,c=n.useRef(null),h=n.useRef(null),[d=!1,f]=(0,l.i)({prop:i,defaultProp:o,onChange:s});return(0,y.jsx)(A,{scope:t,triggerRef:c,contentRef:h,contentId:(0,a.B)(),titleId:(0,a.B)(),descriptionId:(0,a.B)(),open:d,onOpenChange:f,onOpenToggle:n.useCallback(()=>f(e=>!e),[f]),modal:u,children:r})};C.displayName=E;var S="DialogTrigger",w=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,s=T(S,r),a=(0,o.s)(t,s.triggerRef);return(0,y.jsx)(f.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":G(s.open),...n,ref:a,onClick:(0,i.m)(e.onClick,s.onOpenToggle)})});w.displayName=S;var x="DialogPortal",[R,k]=_(x,{forceMount:void 0}),L=e=>{let{__scopeDialog:t,forceMount:r,children:i,container:o}=e,s=T(x,t);return(0,y.jsx)(R,{scope:t,forceMount:r,children:n.Children.map(i,e=>(0,y.jsx)(d.C,{present:r||s.open,children:(0,y.jsx)(h.Z,{asChild:!0,container:o,children:e})}))})};L.displayName=x;var I="DialogOverlay",O=n.forwardRef((e,t)=>{let r=k(I,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,o=T(I,e.__scopeDialog);return o.modal?(0,y.jsx)(d.C,{present:n||o.open,children:(0,y.jsx)(D,{...i,ref:t})}):null});O.displayName=I;var D=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,i=T(I,r);return(0,y.jsx)(m.A,{as:v.DX,allowPinchZoom:!0,shards:[i.contentRef],children:(0,y.jsx)(f.sG.div,{"data-state":G(i.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),N="DialogContent",P=n.forwardRef((e,t)=>{let r=k(N,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,o=T(N,e.__scopeDialog);return(0,y.jsx)(d.C,{present:n||o.open,children:o.modal?(0,y.jsx)(M,{...i,ref:t}):(0,y.jsx)(B,{...i,ref:t})})});P.displayName=N;var M=n.forwardRef((e,t)=>{let r=T(N,e.__scopeDialog),s=n.useRef(null),a=(0,o.s)(t,r.contentRef,s);return n.useEffect(()=>{let e=s.current;if(e)return(0,g.Eq)(e)},[]),(0,y.jsx)(U,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.m)(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:(0,i.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:(0,i.m)(e.onFocusOutside,e=>e.preventDefault())})}),B=n.forwardRef((e,t)=>{let r=T(N,e.__scopeDialog),i=n.useRef(!1),o=n.useRef(!1);return(0,y.jsx)(U,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(i.current||r.triggerRef.current?.focus(),t.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(i.current=!0,"pointerdown"!==t.detail.originalEvent.type||(o.current=!0));let n=t.target;r.triggerRef.current?.contains(n)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),U=n.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:a,...l}=e,h=T(N,r),d=n.useRef(null),f=(0,o.s)(t,d);return(0,p.Oh)(),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(c.n,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:a,children:(0,y.jsx)(u.qW,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":G(h.open),...l,ref:f,onDismiss:()=>h.onOpenChange(!1)})}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(Y,{titleId:h.titleId}),(0,y.jsx)(Z,{contentRef:d,descriptionId:h.descriptionId})]})]})}),F="DialogTitle",j=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,i=T(F,r);return(0,y.jsx)(f.sG.h2,{id:i.titleId,...n,ref:t})});j.displayName=F;var K="DialogDescription",V=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,i=T(K,r);return(0,y.jsx)(f.sG.p,{id:i.descriptionId,...n,ref:t})});V.displayName=K;var H="DialogClose",z=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=T(H,r);return(0,y.jsx)(f.sG.button,{type:"button",...n,ref:t,onClick:(0,i.m)(e.onClick,()=>o.onOpenChange(!1))})});function G(e){return e?"open":"closed"}z.displayName=H;var q="DialogTitleWarning",[W,X]=(0,s.q)(q,{contentName:N,titleName:F,docsSlug:"dialog"}),Y=({titleId:e})=>{let t=X(q),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return n.useEffect(()=>{e&&!document.getElementById(e)&&console.error(r)},[r,e]),null},Q="DialogDescriptionWarning",Z=({contentRef:e,descriptionId:t})=>{let r=X(Q),i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${r.contentName}}.`;return n.useEffect(()=>{let r=e.current?.getAttribute("aria-describedby");t&&r&&!document.getElementById(t)&&console.warn(i)},[i,e,t]),null},J=C,ee=L,et=O,er=P,en=j,ei=V,eo=z},69263:(e,t,r)=>{"use strict";r.d(t,{jH:()=>o});var n=r(86326);r(36870);var i=n.createContext(void 0);function o(e){let t=n.useContext(i);return e||t||"ltr"}},78016:(e,t,r)=>{"use strict";r.d(t,{qW:()=>g});var n,i=r(86326),o=r(46225),s=r(70407),a=r(67923),l=r(88547);function u(e,t=globalThis?.document){let r=(0,l.c)(e);i.useEffect(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}var c=r(36870),h="DismissableLayer",d="dismissableLayer.update",f="dismissableLayer.pointerDownOutside",p="dismissableLayer.focusOutside",m=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),g=i.forwardRef((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:l,onPointerDownOutside:h,onFocusOutside:f,onInteractOutside:p,onDismiss:g,...v}=e,b=i.useContext(m),[A,T]=i.useState(null),C=A?.ownerDocument??globalThis?.document,[,S]=i.useState({}),w=(0,a.s)(t,e=>T(e)),x=Array.from(b.layers),[R]=[...b.layersWithOutsidePointerEventsDisabled].slice(-1),k=x.indexOf(R),L=A?x.indexOf(A):-1,I=b.layersWithOutsidePointerEventsDisabled.size>0,O=L>=k,D=y(e=>{let t=e.target,r=[...b.branches].some(e=>e.contains(t));!O||r||(h?.(e),p?.(e),e.defaultPrevented||g?.())},C),N=E(e=>{let t=e.target;[...b.branches].some(e=>e.contains(t))||(f?.(e),p?.(e),e.defaultPrevented||g?.())},C);return u(e=>{L!==b.layers.size-1||(l?.(e),!e.defaultPrevented&&g&&(e.preventDefault(),g()))},C),i.useEffect(()=>{if(A)return r&&(0===b.layersWithOutsidePointerEventsDisabled.size&&(n=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),b.layersWithOutsidePointerEventsDisabled.add(A)),b.layers.add(A),_(),()=>{r&&1===b.layersWithOutsidePointerEventsDisabled.size&&(C.body.style.pointerEvents=n)}},[A,C,r,b]),i.useEffect(()=>()=>{A&&(b.layers.delete(A),b.layersWithOutsidePointerEventsDisabled.delete(A),_())},[A,b]),i.useEffect(()=>{let e=()=>S({});return document.addEventListener(d,e),()=>document.removeEventListener(d,e)},[]),(0,c.jsx)(s.sG.div,{...v,ref:w,style:{pointerEvents:I?O?"auto":"none":void 0,...e.style},onFocusCapture:(0,o.m)(e.onFocusCapture,N.onFocusCapture),onBlurCapture:(0,o.m)(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:(0,o.m)(e.onPointerDownCapture,D.onPointerDownCapture)})});g.displayName=h;var v="DismissableLayerBranch";function y(e,t=globalThis?.document){let r=(0,l.c)(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!n.current){let n=function(){b(f,r,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=n,t.addEventListener("click",o.current,{once:!0})):n()}else t.removeEventListener("click",o.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function E(e,t=globalThis?.document){let r=(0,l.c)(e),n=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!n.current&&b(p,r,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function _(){let e=new CustomEvent(d);document.dispatchEvent(e)}function b(e,t,r,{discrete:n}){let i=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?(0,s.hO)(i,o):i.dispatchEvent(o)}i.forwardRef((e,t)=>{let r=i.useContext(m),n=i.useRef(null),o=(0,a.s)(t,n);return i.useEffect(()=>{let e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,c.jsx)(s.sG.div,{...e,ref:o})}).displayName=v},43151:(e,t,r)=>{"use strict";r.d(t,{UC:()=>tx,q7:()=>tR,ZL:()=>tw,bL:()=>tC,wv:()=>tk,Pb:()=>tL,G5:()=>tO,ZP:()=>tI,l9:()=>tS});var n=r(86326),i=r(46225),o=r(67923),s=r(40849),a=r(33291),l=r(70407),u=r(83306),c=r(69263),h=r(78016),d=r(41515),f=r(23543),p=r(58999),m=r(23175),g=r(49260),v=r(57391),y=r(11682),E=r(74614),_=r(88547),b=r(15031),A=r(39059),T=r(36870),C=["Enter"," "],S=["ArrowUp","PageDown","End"],w=["ArrowDown","PageUp","Home",...S],x={ltr:[...C,"ArrowRight"],rtl:[...C,"ArrowLeft"]},R={ltr:["ArrowLeft"],rtl:["ArrowRight"]},k="Menu",[L,I,O]=(0,u.N)(k),[D,N]=(0,s.A)(k,[O,m.Bk,y.RG]),P=(0,m.Bk)(),M=(0,y.RG)(),[B,U]=D(k),[F,j]=D(k),K=e=>{let{__scopeMenu:t,open:r=!1,children:i,dir:o,onOpenChange:s,modal:a=!0}=e,l=P(t),[u,h]=n.useState(null),d=n.useRef(!1),f=(0,_.c)(s),p=(0,c.jH)(o);return n.useEffect(()=>{let e=()=>{d.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>d.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,T.jsx)(m.bL,{...l,children:(0,T.jsx)(B,{scope:t,open:r,onOpenChange:f,content:u,onContentChange:h,children:(0,T.jsx)(F,{scope:t,onClose:n.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:p,modal:a,children:i})})})};K.displayName=k;var V="MenuAnchor",H=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,i=P(r);return(0,T.jsx)(m.Mz,{...i,...n,ref:t})});H.displayName=V;var z="MenuPortal",[G,q]=D(z,{forceMount:void 0}),W=e=>{let{__scopeMenu:t,forceMount:r,children:n,container:i}=e,o=U(z,t);return(0,T.jsx)(G,{scope:t,forceMount:r,children:(0,T.jsx)(v.C,{present:r||o.open,children:(0,T.jsx)(g.Z,{asChild:!0,container:i,children:n})})})};W.displayName=z;var X="MenuContent",[Y,Q]=D(X),Z=n.forwardRef((e,t)=>{let r=q(X,e.__scopeMenu),{forceMount:n=r.forceMount,...i}=e,o=U(X,e.__scopeMenu),s=j(X,e.__scopeMenu);return(0,T.jsx)(L.Provider,{scope:e.__scopeMenu,children:(0,T.jsx)(v.C,{present:n||o.open,children:(0,T.jsx)(L.Slot,{scope:e.__scopeMenu,children:s.modal?(0,T.jsx)(J,{...i,ref:t}):(0,T.jsx)(ee,{...i,ref:t})})})})}),J=n.forwardRef((e,t)=>{let r=U(X,e.__scopeMenu),s=n.useRef(null),a=(0,o.s)(t,s);return n.useEffect(()=>{let e=s.current;if(e)return(0,b.Eq)(e)},[]),(0,T.jsx)(et,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:(0,i.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),ee=n.forwardRef((e,t)=>{let r=U(X,e.__scopeMenu);return(0,T.jsx)(et,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),et=n.forwardRef((e,t)=>{let{__scopeMenu:r,loop:s=!1,trapFocus:a,onOpenAutoFocus:l,onCloseAutoFocus:u,disableOutsidePointerEvents:c,onEntryFocus:p,onEscapeKeyDown:g,onPointerDownOutside:v,onFocusOutside:_,onInteractOutside:b,onDismiss:C,disableOutsideScroll:x,...R}=e,k=U(X,r),L=j(X,r),O=P(r),D=M(r),N=I(r),[B,F]=n.useState(null),K=n.useRef(null),V=(0,o.s)(t,K,k.onContentChange),H=n.useRef(0),z=n.useRef(""),G=n.useRef(0),q=n.useRef(null),W=n.useRef("right"),Q=n.useRef(0),Z=x?A.A:n.Fragment,J=x?{as:E.DX,allowPinchZoom:!0}:void 0,ee=e=>{let t=z.current+e,r=N().filter(e=>!e.disabled),n=document.activeElement,i=r.find(e=>e.ref.current===n)?.textValue,o=eF(r.map(e=>e.textValue),t,i),s=r.find(e=>e.textValue===o)?.ref.current;!function e(t){z.current=t,window.clearTimeout(H.current),""!==t&&(H.current=window.setTimeout(()=>e(""),1e3))}(t),s&&setTimeout(()=>s.focus())};n.useEffect(()=>()=>window.clearTimeout(H.current),[]),(0,d.Oh)();let et=n.useCallback(e=>W.current===q.current?.side&&eK(e,q.current?.area),[]);return(0,T.jsx)(Y,{scope:r,searchRef:z,onItemEnter:n.useCallback(e=>{et(e)&&e.preventDefault()},[et]),onItemLeave:n.useCallback(e=>{et(e)||(K.current?.focus(),F(null))},[et]),onTriggerLeave:n.useCallback(e=>{et(e)&&e.preventDefault()},[et]),pointerGraceTimerRef:G,onPointerGraceIntentChange:n.useCallback(e=>{q.current=e},[]),children:(0,T.jsx)(Z,{...J,children:(0,T.jsx)(f.n,{asChild:!0,trapped:a,onMountAutoFocus:(0,i.m)(l,e=>{e.preventDefault(),K.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:(0,T.jsx)(h.qW,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:g,onPointerDownOutside:v,onFocusOutside:_,onInteractOutside:b,onDismiss:C,children:(0,T.jsx)(y.bL,{asChild:!0,...D,dir:L.dir,orientation:"vertical",loop:s,currentTabStopId:B,onCurrentTabStopIdChange:F,onEntryFocus:(0,i.m)(p,e=>{L.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,T.jsx)(m.UC,{role:"menu","aria-orientation":"vertical","data-state":eN(k.open),"data-radix-menu-content":"",dir:L.dir,...O,...R,ref:V,style:{outline:"none",...R.style},onKeyDown:(0,i.m)(R.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,n=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!r&&n&&ee(e.key));let i=K.current;if(e.target!==i||!w.includes(e.key))return;e.preventDefault();let o=N().filter(e=>!e.disabled).map(e=>e.ref.current);S.includes(e.key)&&o.reverse(),eB(o)}),onBlur:(0,i.m)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(H.current),z.current="")}),onPointerMove:(0,i.m)(e.onPointerMove,eV(e=>{let t=e.target,r=Q.current!==e.clientX;if(e.currentTarget.contains(t)&&r){let t=e.clientX>Q.current?"right":"left";W.current=t,Q.current=e.clientX}}))})})})})})})});Z.displayName=X;var er="MenuGroup",en=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,T.jsx)(l.sG.div,{role:"group",...n,ref:t})});en.displayName=er;var ei="MenuLabel",eo=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,T.jsx)(l.sG.div,{...n,ref:t})});eo.displayName=ei;var es="MenuItem",ea="menu.itemSelect",el=n.forwardRef((e,t)=>{let{disabled:r=!1,onSelect:s,...a}=e,u=n.useRef(null),c=j(es,e.__scopeMenu),h=Q(es,e.__scopeMenu),d=(0,o.s)(t,u),f=n.useRef(!1),p=()=>{let e=u.current;if(!r&&e){let t=new CustomEvent(ea,{bubbles:!0,cancelable:!0});e.addEventListener(ea,e=>s?.(e),{once:!0}),(0,l.hO)(e,t),t.defaultPrevented?f.current=!1:c.onClose()}};return(0,T.jsx)(eu,{...a,ref:d,disabled:r,onClick:(0,i.m)(e.onClick,p),onPointerDown:t=>{e.onPointerDown?.(t),f.current=!0},onPointerUp:(0,i.m)(e.onPointerUp,e=>{f.current||e.currentTarget?.click()}),onKeyDown:(0,i.m)(e.onKeyDown,e=>{let t=""!==h.searchRef.current;!r&&(!t||" "!==e.key)&&C.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});el.displayName=es;var eu=n.forwardRef((e,t)=>{let{__scopeMenu:r,disabled:s=!1,textValue:a,...u}=e,c=Q(es,r),h=M(r),d=n.useRef(null),f=(0,o.s)(t,d),[p,m]=n.useState(!1),[g,v]=n.useState("");return n.useEffect(()=>{let e=d.current;e&&v((e.textContent??"").trim())},[u.children]),(0,T.jsx)(L.ItemSlot,{scope:r,disabled:s,textValue:a??g,children:(0,T.jsx)(y.q7,{asChild:!0,...h,focusable:!s,children:(0,T.jsx)(l.sG.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":s||void 0,"data-disabled":s?"":void 0,...u,ref:f,onPointerMove:(0,i.m)(e.onPointerMove,eV(e=>{s?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,i.m)(e.onPointerLeave,eV(e=>c.onItemLeave(e))),onFocus:(0,i.m)(e.onFocus,()=>m(!0)),onBlur:(0,i.m)(e.onBlur,()=>m(!1))})})})}),ec="MenuCheckboxItem",eh=n.forwardRef((e,t)=>{let{checked:r=!1,onCheckedChange:n,...o}=e;return(0,T.jsx)(eE,{scope:e.__scopeMenu,checked:r,children:(0,T.jsx)(el,{role:"menuitemcheckbox","aria-checked":eP(r)?"mixed":r,...o,ref:t,"data-state":eM(r),onSelect:(0,i.m)(o.onSelect,()=>n?.(!!eP(r)||!r),{checkForDefaultPrevented:!1})})})});eh.displayName=ec;var ed="MenuRadioGroup",[ef,ep]=D(ed,{value:void 0,onValueChange:()=>{}}),em=n.forwardRef((e,t)=>{let{value:r,onValueChange:n,...i}=e,o=(0,_.c)(n);return(0,T.jsx)(ef,{scope:e.__scopeMenu,value:r,onValueChange:o,children:(0,T.jsx)(en,{...i,ref:t})})});em.displayName=ed;var eg="MenuRadioItem",ev=n.forwardRef((e,t)=>{let{value:r,...n}=e,o=ep(eg,e.__scopeMenu),s=r===o.value;return(0,T.jsx)(eE,{scope:e.__scopeMenu,checked:s,children:(0,T.jsx)(el,{role:"menuitemradio","aria-checked":s,...n,ref:t,"data-state":eM(s),onSelect:(0,i.m)(n.onSelect,()=>o.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});ev.displayName=eg;var ey="MenuItemIndicator",[eE,e_]=D(ey,{checked:!1}),eb=n.forwardRef((e,t)=>{let{__scopeMenu:r,forceMount:n,...i}=e,o=e_(ey,r);return(0,T.jsx)(v.C,{present:n||eP(o.checked)||!0===o.checked,children:(0,T.jsx)(l.sG.span,{...i,ref:t,"data-state":eM(o.checked)})})});eb.displayName=ey;var eA="MenuSeparator",eT=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,T.jsx)(l.sG.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});eT.displayName=eA;var eC="MenuArrow",eS=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,i=P(r);return(0,T.jsx)(m.i3,{...i,...n,ref:t})});eS.displayName=eC;var ew="MenuSub",[ex,eR]=D(ew),ek=e=>{let{__scopeMenu:t,children:r,open:i=!1,onOpenChange:o}=e,s=U(ew,t),a=P(t),[l,u]=n.useState(null),[c,h]=n.useState(null),d=(0,_.c)(o);return n.useEffect(()=>(!1===s.open&&d(!1),()=>d(!1)),[s.open,d]),(0,T.jsx)(m.bL,{...a,children:(0,T.jsx)(B,{scope:t,open:i,onOpenChange:d,content:c,onContentChange:h,children:(0,T.jsx)(ex,{scope:t,contentId:(0,p.B)(),triggerId:(0,p.B)(),trigger:l,onTriggerChange:u,children:r})})})};ek.displayName=ew;var eL="MenuSubTrigger",eI=n.forwardRef((e,t)=>{let r=U(eL,e.__scopeMenu),s=j(eL,e.__scopeMenu),a=eR(eL,e.__scopeMenu),l=Q(eL,e.__scopeMenu),u=n.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:h}=l,d={__scopeMenu:e.__scopeMenu},f=n.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return n.useEffect(()=>f,[f]),n.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),h(null)}},[c,h]),(0,T.jsx)(H,{asChild:!0,...d,children:(0,T.jsx)(eu,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":a.contentId,"data-state":eN(r.open),...e,ref:(0,o.t)(t,a.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:(0,i.m)(e.onPointerMove,eV(t=>{l.onItemEnter(t),t.defaultPrevented||e.disabled||r.open||u.current||(l.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{r.onOpenChange(!0),f()},100))})),onPointerLeave:(0,i.m)(e.onPointerLeave,eV(e=>{f();let t=r.content?.getBoundingClientRect();if(t){let n=r.content?.dataset.side,i="right"===n,o=i?-5:5,s=t[i?"left":"right"],a=t[i?"right":"left"];l.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:s,y:t.top},{x:a,y:t.top},{x:a,y:t.bottom},{x:s,y:t.bottom}],side:n}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>l.onPointerGraceIntentChange(null),300)}else{if(l.onTriggerLeave(e),e.defaultPrevented)return;l.onPointerGraceIntentChange(null)}})),onKeyDown:(0,i.m)(e.onKeyDown,t=>{let n=""!==l.searchRef.current;!e.disabled&&(!n||" "!==t.key)&&x[s.dir].includes(t.key)&&(r.onOpenChange(!0),r.content?.focus(),t.preventDefault())})})})});eI.displayName=eL;var eO="MenuSubContent",eD=n.forwardRef((e,t)=>{let r=q(X,e.__scopeMenu),{forceMount:s=r.forceMount,...a}=e,l=U(X,e.__scopeMenu),u=j(X,e.__scopeMenu),c=eR(eO,e.__scopeMenu),h=n.useRef(null),d=(0,o.s)(t,h);return(0,T.jsx)(L.Provider,{scope:e.__scopeMenu,children:(0,T.jsx)(v.C,{present:s||l.open,children:(0,T.jsx)(L.Slot,{scope:e.__scopeMenu,children:(0,T.jsx)(et,{id:c.contentId,"aria-labelledby":c.triggerId,...a,ref:d,align:"start",side:"rtl"===u.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{u.isUsingKeyboardRef.current&&h.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,i.m)(e.onFocusOutside,e=>{e.target!==c.trigger&&l.onOpenChange(!1)}),onEscapeKeyDown:(0,i.m)(e.onEscapeKeyDown,e=>{u.onClose(),e.preventDefault()}),onKeyDown:(0,i.m)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=R[u.dir].includes(e.key);t&&r&&(l.onOpenChange(!1),c.trigger?.focus(),e.preventDefault())})})})})})});function eN(e){return e?"open":"closed"}function eP(e){return"indeterminate"===e}function eM(e){return eP(e)?"indeterminate":e?"checked":"unchecked"}function eB(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function eU(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function eF(e,t,r){let n=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=r?e.indexOf(r):-1,o=eU(e,Math.max(i,0));1===n.length&&(o=o.filter(e=>e!==r));let s=o.find(e=>e.toLowerCase().startsWith(n.toLowerCase()));return s!==r?s:void 0}function ej(e,t){let{x:r,y:n}=e,i=!1;for(let e=0,o=t.length-1;en!=u>n&&r<(l-s)*(n-a)/(u-a)+s&&(i=!i)}return i}function eK(e,t){return!!t&&ej({x:e.clientX,y:e.clientY},t)}function eV(e){return t=>"mouse"===t.pointerType?e(t):void 0}eD.displayName=eO;var eH=K,ez=H,e$=W,eG=Z,eq=en,eW=eo,eX=el,eY=eh,eQ=em,eZ=ev,eJ=eb,e0=eT,e1=eS,e2=ek,e3=eI,e4=eD,e5="DropdownMenu",[e6,e7]=(0,s.A)(e5,[N]),e8=N(),[e9,te]=e6(e5),tt=e=>{let{__scopeDropdownMenu:t,children:r,dir:i,open:o,defaultOpen:s,onOpenChange:l,modal:u=!0}=e,c=e8(t),h=n.useRef(null),[d=!1,f]=(0,a.i)({prop:o,defaultProp:s,onChange:l});return(0,T.jsx)(e9,{scope:t,triggerId:(0,p.B)(),triggerRef:h,contentId:(0,p.B)(),open:d,onOpenChange:f,onOpenToggle:n.useCallback(()=>f(e=>!e),[f]),modal:u,children:(0,T.jsx)(eH,{...c,open:d,onOpenChange:f,dir:i,modal:u,children:r})})};tt.displayName=e5;var tr="DropdownMenuTrigger",tn=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,disabled:n=!1,...s}=e,a=te(tr,r),u=e8(r);return(0,T.jsx)(ez,{asChild:!0,...u,children:(0,T.jsx)(l.sG.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...s,ref:(0,o.t)(t,a.triggerRef),onPointerDown:(0,i.m)(e.onPointerDown,e=>{n||0!==e.button||!1!==e.ctrlKey||(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:(0,i.m)(e.onKeyDown,e=>{!n&&(["Enter"," "].includes(e.key)&&a.onOpenToggle(),"ArrowDown"===e.key&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});tn.displayName=tr;var ti="DropdownMenuPortal",to=e=>{let{__scopeDropdownMenu:t,...r}=e,n=e8(t);return(0,T.jsx)(e$,{...n,...r})};to.displayName=ti;var ts="DropdownMenuContent",ta=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...o}=e,s=te(ts,r),a=e8(r),l=n.useRef(!1);return(0,T.jsx)(eG,{id:s.contentId,"aria-labelledby":s.triggerId,...a,...o,ref:t,onCloseAutoFocus:(0,i.m)(e.onCloseAutoFocus,e=>{l.current||s.triggerRef.current?.focus(),l.current=!1,e.preventDefault()}),onInteractOutside:(0,i.m)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!s.modal||n)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ta.displayName=ts;var tl="DropdownMenuGroup";n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=e8(r);return(0,T.jsx)(eq,{...i,...n,ref:t})}).displayName=tl;var tu="DropdownMenuLabel";n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=e8(r);return(0,T.jsx)(eW,{...i,...n,ref:t})}).displayName=tu;var tc="DropdownMenuItem",th=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=e8(r);return(0,T.jsx)(eX,{...i,...n,ref:t})});th.displayName=tc;var td="DropdownMenuCheckboxItem";n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=e8(r);return(0,T.jsx)(eY,{...i,...n,ref:t})}).displayName=td;var tf="DropdownMenuRadioGroup";n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=e8(r);return(0,T.jsx)(eQ,{...i,...n,ref:t})}).displayName=tf;var tp="DropdownMenuRadioItem";n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=e8(r);return(0,T.jsx)(eZ,{...i,...n,ref:t})}).displayName=tp;var tm="DropdownMenuItemIndicator";n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=e8(r);return(0,T.jsx)(eJ,{...i,...n,ref:t})}).displayName=tm;var tg="DropdownMenuSeparator",tv=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=e8(r);return(0,T.jsx)(e0,{...i,...n,ref:t})});tv.displayName=tg;var ty="DropdownMenuArrow";n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=e8(r);return(0,T.jsx)(e1,{...i,...n,ref:t})}).displayName=ty;var tE=e=>{let{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:i,defaultOpen:o}=e,s=e8(t),[l=!1,u]=(0,a.i)({prop:n,defaultProp:o,onChange:i});return(0,T.jsx)(e2,{...s,open:l,onOpenChange:u,children:r})},t_="DropdownMenuSubTrigger",tb=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=e8(r);return(0,T.jsx)(e3,{...i,...n,ref:t})});tb.displayName=t_;var tA="DropdownMenuSubContent",tT=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=e8(r);return(0,T.jsx)(e4,{...i,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});tT.displayName=tA;var tC=tt,tS=tn,tw=to,tx=ta,tR=th,tk=tv,tL=tE,tI=tb,tO=tT},41515:(e,t,r)=>{"use strict";r.d(t,{Oh:()=>o});var n=r(86326),i=0;function o(){n.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??s()),document.body.insertAdjacentElement("beforeend",e[1]??s()),i++,()=>{1===i&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),i--}},[])}function s(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}},23543:(e,t,r)=>{"use strict";r.d(t,{n:()=>d});var n=r(86326),i=r(67923),o=r(70407),s=r(88547),a=r(36870),l="focusScope.autoFocusOnMount",u="focusScope.autoFocusOnUnmount",c={bubbles:!1,cancelable:!0},h="FocusScope",d=n.forwardRef((e,t)=>{let{loop:r=!1,trapped:h=!1,onMountAutoFocus:d,onUnmountAutoFocus:g,...v}=e,[y,b]=n.useState(null),A=(0,s.c)(d),C=(0,s.c)(g),S=n.useRef(null),w=(0,i.s)(t,e=>b(e)),x=n.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;n.useEffect(()=>{if(h){let e=function(e){if(x.paused||!y)return;let t=e.target;y.contains(t)?S.current=t:E(S.current,{select:!0})},t=function(e){if(x.paused||!y)return;let t=e.relatedTarget;null===t||y.contains(t)||E(S.current,{select:!0})},r=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&E(y)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(r);return y&&n.observe(y,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[h,y,x.paused]),n.useEffect(()=>{if(y){_.add(x);let e=document.activeElement;if(!y.contains(e)){let t=new CustomEvent(l,c);y.addEventListener(l,A),y.dispatchEvent(t),t.defaultPrevented||(f(T(m(y)),{select:!0}),document.activeElement===e&&E(y))}return()=>{y.removeEventListener(l,A),setTimeout(()=>{let t=new CustomEvent(u,c);y.addEventListener(u,C),y.dispatchEvent(t),t.defaultPrevented||E(e??document.body,{select:!0}),y.removeEventListener(u,C),_.remove(x)},0)}}},[y,A,C,x]);let R=n.useCallback(e=>{if(!r&&!h||x.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){let t=e.currentTarget,[i,o]=p(t);i&&o?e.shiftKey||n!==o?e.shiftKey&&n===i&&(e.preventDefault(),r&&E(o,{select:!0})):(e.preventDefault(),r&&E(i,{select:!0})):n===t&&e.preventDefault()}},[r,h,x.paused]);return(0,a.jsx)(o.sG.div,{tabIndex:-1,...v,ref:w,onKeyDown:R})});function f(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(E(n,{select:t}),document.activeElement!==r)return}function p(e){let t=m(e);return[g(t,e),g(t.reverse(),e)]}function m(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function g(e,t){for(let r of e)if(!v(r,{upTo:t}))return r}function v(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function y(e){return e instanceof HTMLInputElement&&"select"in e}function E(e,{select:t=!1}={}){if(e&&e.focus){let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&y(e)&&t&&e.select()}}d.displayName=h;var _=b();function b(){let e=[];return{add(t){let r=e[0];t!==r&&r?.pause(),(e=A(e,t)).unshift(t)},remove(t){e=A(e,t),e[0]?.resume()}}}function A(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}function T(e){return e.filter(e=>"A"!==e.tagName)}},58999:(e,t,r)=>{"use strict";r.d(t,{B:()=>l});var n,i=r(86326),o=r(72356),s=(n||(n=r.t(i,2)))["useId".toString()]||(()=>void 0),a=0;function l(e){let[t,r]=i.useState(s());return(0,o.N)(()=>{e||r(e=>e??String(a++))},[e]),e||(t?`radix-${t}`:"")}},45891:(e,t,r)=>{"use strict";r.d(t,{Mz:()=>z,UC:()=>W,ZL:()=>q,bL:()=>H,l9:()=>G});var n=r(86326),i=r(46225),o=r(67923),s=r(40849),a=r(78016),l=r(41515),u=r(23543),c=r(58999),h=r(23175),d=r(49260),f=r(57391),p=r(70407),m=r(74614),g=r(33291),v=r(15031),y=r(39059),E=r(36870),_="Popover",[b,A]=(0,s.A)(_,[h.Bk]),T=(0,h.Bk)(),[C,S]=b(_),w=e=>{let{__scopePopover:t,children:r,open:i,defaultOpen:o,onOpenChange:s,modal:a=!1}=e,l=T(t),u=n.useRef(null),[d,f]=n.useState(!1),[p=!1,m]=(0,g.i)({prop:i,defaultProp:o,onChange:s});return(0,E.jsx)(h.bL,{...l,children:(0,E.jsx)(C,{scope:t,contentId:(0,c.B)(),triggerRef:u,open:p,onOpenChange:m,onOpenToggle:n.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:d,onCustomAnchorAdd:n.useCallback(()=>f(!0),[]),onCustomAnchorRemove:n.useCallback(()=>f(!1),[]),modal:a,children:r})})};w.displayName=_;var x="PopoverAnchor",R=n.forwardRef((e,t)=>{let{__scopePopover:r,...i}=e,o=S(x,r),s=T(r),{onCustomAnchorAdd:a,onCustomAnchorRemove:l}=o;return n.useEffect(()=>(a(),()=>l()),[a,l]),(0,E.jsx)(h.Mz,{...s,...i,ref:t})});R.displayName=x;var k="PopoverTrigger",L=n.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,s=S(k,r),a=T(r),l=(0,o.s)(t,s.triggerRef),u=(0,E.jsx)(p.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":V(s.open),...n,ref:l,onClick:(0,i.m)(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?u:(0,E.jsx)(h.Mz,{asChild:!0,...a,children:u})});L.displayName=k;var I="PopoverPortal",[O,D]=b(I,{forceMount:void 0}),N=e=>{let{__scopePopover:t,forceMount:r,children:n,container:i}=e,o=S(I,t);return(0,E.jsx)(O,{scope:t,forceMount:r,children:(0,E.jsx)(f.C,{present:r||o.open,children:(0,E.jsx)(d.Z,{asChild:!0,container:i,children:n})})})};N.displayName=I;var P="PopoverContent",M=n.forwardRef((e,t)=>{let r=D(P,e.__scopePopover),{forceMount:n=r.forceMount,...i}=e,o=S(P,e.__scopePopover);return(0,E.jsx)(f.C,{present:n||o.open,children:o.modal?(0,E.jsx)(B,{...i,ref:t}):(0,E.jsx)(U,{...i,ref:t})})});M.displayName=P;var B=n.forwardRef((e,t)=>{let r=S(P,e.__scopePopover),s=n.useRef(null),a=(0,o.s)(t,s),l=n.useRef(!1);return n.useEffect(()=>{let e=s.current;if(e)return(0,v.Eq)(e)},[]),(0,E.jsx)(y.A,{as:m.DX,allowPinchZoom:!0,children:(0,E.jsx)(F,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.m)(e.onCloseAutoFocus,e=>{e.preventDefault(),l.current||r.triggerRef.current?.focus()}),onPointerDownOutside:(0,i.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;l.current=n},{checkForDefaultPrevented:!1}),onFocusOutside:(0,i.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),U=n.forwardRef((e,t)=>{let r=S(P,e.__scopePopover),i=n.useRef(!1),o=n.useRef(!1);return(0,E.jsx)(F,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(i.current||r.triggerRef.current?.focus(),t.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(i.current=!0,"pointerdown"!==t.detail.originalEvent.type||(o.current=!0));let n=t.target;r.triggerRef.current?.contains(n)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),F=n.forwardRef((e,t)=>{let{__scopePopover:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,...m}=e,g=S(P,r),v=T(r);return(0,l.Oh)(),(0,E.jsx)(u.n,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:o,children:(0,E.jsx)(a.qW,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:p,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:f,onDismiss:()=>g.onOpenChange(!1),children:(0,E.jsx)(h.UC,{"data-state":V(g.open),role:"dialog",id:g.contentId,...v,...m,ref:t,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),j="PopoverClose";n.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,o=S(j,r);return(0,E.jsx)(p.sG.button,{type:"button",...n,ref:t,onClick:(0,i.m)(e.onClick,()=>o.onOpenChange(!1))})}).displayName=j;var K="PopoverArrow";function V(e){return e?"open":"closed"}n.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,i=T(r);return(0,E.jsx)(h.i3,{...i,...n,ref:t})}).displayName=K;var H=w,z=R,G=L,q=N,W=M},23175:(e,t,r)=>{"use strict";r.d(t,{Mz:()=>Y,i3:()=>Z,UC:()=>Q,bL:()=>X,Bk:()=>O});var n=r(86326),i=r(41507),o=r(35623),s="undefined"!=typeof document?n.useLayoutEffect:n.useEffect;function a(e,t){let r,n,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!a(e[n],t[n]))return!1;return!0}if((r=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,i[n]))return!1;for(n=r;0!=n--;){let r=i[n];if(("_owner"!==r||!e.$$typeof)&&!a(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function l(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function u(e,t){let r=l(e);return Math.round(t*r)/r}function c(e){let t=n.useRef(e);return s(()=>{t.current=e}),t}function h(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:h=[],platform:d,elements:{reference:f,floating:p}={},transform:m=!0,whileElementsMounted:g,open:v}=e,[y,E]=n.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[_,b]=n.useState(h);a(_,h)||b(h);let[A,T]=n.useState(null),[C,S]=n.useState(null),w=n.useCallback(e=>{e!==L.current&&(L.current=e,T(e))},[]),x=n.useCallback(e=>{e!==I.current&&(I.current=e,S(e))},[]),R=f||A,k=p||C,L=n.useRef(null),I=n.useRef(null),O=n.useRef(y),D=null!=g,N=c(g),P=c(d),M=n.useCallback(()=>{if(!L.current||!I.current)return;let e={placement:t,strategy:r,middleware:_};P.current&&(e.platform=P.current),(0,i.rD)(L.current,I.current,e).then(e=>{let t={...e,isPositioned:!0};B.current&&!a(O.current,t)&&(O.current=t,o.flushSync(()=>{E(t)}))})},[_,t,r,P]);s(()=>{!1===v&&O.current.isPositioned&&(O.current.isPositioned=!1,E(e=>({...e,isPositioned:!1})))},[v]);let B=n.useRef(!1);s(()=>(B.current=!0,()=>{B.current=!1}),[]),s(()=>{if(R&&(L.current=R),k&&(I.current=k),R&&k){if(N.current)return N.current(R,k,M);M()}},[R,k,M,N,D]);let U=n.useMemo(()=>({reference:L,floating:I,setReference:w,setFloating:x}),[w,x]),F=n.useMemo(()=>({reference:R,floating:k}),[R,k]),j=n.useMemo(()=>{let e={position:r,left:0,top:0};if(!F.floating)return e;let t=u(F.floating,y.x),n=u(F.floating,y.y);return m?{...e,transform:"translate("+t+"px, "+n+"px)",...l(F.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,m,F.floating,y.x,y.y]);return n.useMemo(()=>({...y,update:M,refs:U,elements:F,floatingStyles:j}),[y,M,U,F,j])}let d=e=>{function t(e){return({}).hasOwnProperty.call(e,"current")}return{name:"arrow",options:e,fn(r){let{element:n,padding:o}="function"==typeof e?e(r):e;return n&&t(n)?null!=n.current?(0,i.UE)({element:n.current,padding:o}).fn(r):{}:n?(0,i.UE)({element:n,padding:o}).fn(r):{}}}},f=(e,t)=>({...(0,i.cY)(e),options:[e,t]}),p=(e,t)=>({...(0,i.BN)(e),options:[e,t]}),m=(e,t)=>({...(0,i.ER)(e),options:[e,t]}),g=(e,t)=>({...(0,i.UU)(e),options:[e,t]}),v=(e,t)=>({...(0,i.Ej)(e),options:[e,t]}),y=(e,t)=>({...(0,i.jD)(e),options:[e,t]}),E=(e,t)=>({...d(e),options:[e,t]});var _=r(70407),b=r(36870),A="Arrow",T=n.forwardRef((e,t)=>{let{children:r,width:n=10,height:i=5,...o}=e;return(0,b.jsx)(_.sG.svg,{...o,ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,b.jsx)("polygon",{points:"0,0 30,0 15,10"})})});T.displayName=A;var C=T,S=r(67923),w=r(40849),x=r(88547),R=r(72356),k=r(95317),L="Popper",[I,O]=(0,w.A)(L),[D,N]=I(L),P=e=>{let{__scopePopper:t,children:r}=e,[i,o]=n.useState(null);return(0,b.jsx)(D,{scope:t,anchor:i,onAnchorChange:o,children:r})};P.displayName=L;var M="PopperAnchor",B=n.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:i,...o}=e,s=N(M,r),a=n.useRef(null),l=(0,S.s)(t,a);return n.useEffect(()=>{s.onAnchorChange(i?.current||a.current)}),i?null:(0,b.jsx)(_.sG.div,{...o,ref:l})});B.displayName=M;var U="PopperContent",[F,j]=I(U),K=n.forwardRef((e,t)=>{let{__scopePopper:r,side:o="bottom",sideOffset:s=0,align:a="center",alignOffset:l=0,arrowPadding:u=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:A=0,sticky:T="partial",hideWhenDetached:C=!1,updatePositionStrategy:w="optimized",onPlaced:L,...I}=e,O=N(U,r),[D,P]=n.useState(null),M=(0,S.s)(t,e=>P(e)),[B,j]=n.useState(null),K=(0,k.X)(B),V=K?.width??0,H=K?.height??0,z=o+("center"!==a?"-"+a:""),X="number"==typeof A?A:{top:0,right:0,bottom:0,left:0,...A},Y=Array.isArray(d)?d:[d],Q=Y.length>0,Z={padding:X,boundary:Y.filter(G),altBoundary:Q},{refs:J,floatingStyles:ee,placement:et,isPositioned:er,middlewareData:en}=h({strategy:"fixed",placement:z,whileElementsMounted:(...e)=>(0,i.ll)(...e,{animationFrame:"always"===w}),elements:{reference:O.anchor},middleware:[f({mainAxis:s+H,alignmentAxis:l}),c&&p({mainAxis:!0,crossAxis:!1,limiter:"partial"===T?m():void 0,...Z}),c&&g({...Z}),v({...Z,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{let{width:i,height:o}=t.reference,s=e.floating.style;s.setProperty("--radix-popper-available-width",`${r}px`),s.setProperty("--radix-popper-available-height",`${n}px`),s.setProperty("--radix-popper-anchor-width",`${i}px`),s.setProperty("--radix-popper-anchor-height",`${o}px`)}}),B&&E({element:B,padding:u}),q({arrowWidth:V,arrowHeight:H}),C&&y({strategy:"referenceHidden",...Z})]}),[ei,eo]=W(et),es=(0,x.c)(L);(0,R.N)(()=>{er&&es?.()},[er,es]);let ea=en.arrow?.x,el=en.arrow?.y,eu=en.arrow?.centerOffset!==0,[ec,eh]=n.useState();return(0,R.N)(()=>{D&&eh(window.getComputedStyle(D).zIndex)},[D]),(0,b.jsx)("div",{ref:J.setFloating,"data-radix-popper-content-wrapper":"",style:{...ee,transform:er?ee.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ec,"--radix-popper-transform-origin":[en.transformOrigin?.x,en.transformOrigin?.y].join(" "),...en.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,b.jsx)(F,{scope:r,placedSide:ei,onArrowChange:j,arrowX:ea,arrowY:el,shouldHideArrow:eu,children:(0,b.jsx)(_.sG.div,{"data-side":ei,"data-align":eo,...I,ref:M,style:{...I.style,animation:er?void 0:"none"}})})})});K.displayName=U;var V="PopperArrow",H={top:"bottom",right:"left",bottom:"top",left:"right"},z=n.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,i=j(V,r),o=H[i.placedSide];return(0,b.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,b.jsx)(C,{...n,ref:t,style:{...n.style,display:"block"}})})});function G(e){return null!==e}z.displayName=V;var q=e=>({name:"transformOrigin",options:e,fn(t){let{placement:r,rects:n,middlewareData:i}=t,o=i.arrow?.centerOffset!==0,s=o?0:e.arrowWidth,a=o?0:e.arrowHeight,[l,u]=W(r),c={start:"0%",center:"50%",end:"100%"}[u],h=(i.arrow?.x??0)+s/2,d=(i.arrow?.y??0)+a/2,f="",p="";return"bottom"===l?(f=o?c:`${h}px`,p=`${-a}px`):"top"===l?(f=o?c:`${h}px`,p=`${n.floating.height+a}px`):"right"===l?(f=`${-a}px`,p=o?c:`${d}px`):"left"===l&&(f=`${n.floating.width+a}px`,p=o?c:`${d}px`),{data:{x:f,y:p}}}});function W(e){let[t,r="center"]=e.split("-");return[t,r]}var X=P,Y=B,Q=K,Z=z},49260:(e,t,r)=>{"use strict";r.d(t,{Z:()=>u});var n=r(86326),i=r(35623),o=r(70407),s=r(72356),a=r(36870),l="Portal",u=n.forwardRef((e,t)=>{let{container:r,...l}=e,[u,c]=n.useState(!1);(0,s.N)(()=>c(!0),[]);let h=r||u&&globalThis?.document?.body;return h?i.createPortal((0,a.jsx)(o.sG.div,{...l,ref:t}),h):null});u.displayName=l},57391:(e,t,r)=>{"use strict";r.d(t,{C:()=>l});var n=r(86326),i=r(35623),o=r(67923),s=r(72356);function a(e,t){return n.useReducer((e,r)=>t[e][r]??e,e)}var l=e=>{let{present:t,children:r}=e,i=u(t),s="function"==typeof r?r({present:i.isPresent}):n.Children.only(r),a=(0,o.s)(i.ref,h(s));return"function"==typeof r||i.isPresent?n.cloneElement(s,{ref:a}):null};function u(e){let[t,r]=n.useState(),o=n.useRef({}),l=n.useRef(e),u=n.useRef("none"),[h,d]=a(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return n.useEffect(()=>{let e=c(o.current);u.current="mounted"===h?e:"none"},[h]),(0,s.N)(()=>{let t=o.current,r=l.current;if(r!==e){let n=u.current,i=c(t);if(e)d("MOUNT");else if("none"===i||t?.display==="none")d("UNMOUNT");else{let e=n!==i;r&&e?d("ANIMATION_OUT"):d("UNMOUNT")}l.current=e}},[e,d]),(0,s.N)(()=>{if(t){let e=e=>{let r=c(o.current).includes(e.animationName);e.target===t&&r&&i.flushSync(()=>d("ANIMATION_END"))},r=e=>{e.target===t&&(u.current=c(o.current))};return t.addEventListener("animationstart",r),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",r),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:n.useCallback(e=>{e&&(o.current=getComputedStyle(e)),r(e)},[])}}function c(e){return e?.animationName||"none"}function h(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(r=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}l.displayName="Presence"},70407:(e,t,r)=>{"use strict";r.d(t,{hO:()=>l,sG:()=>a});var n=r(86326),i=r(35623),o=r(74614),s=r(36870),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=n.forwardRef((e,r)=>{let{asChild:n,...i}=e,a=n?o.DX:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(a,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function l(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}},84837:(e,t,r)=>{"use strict";r.d(t,{C1:()=>j,q7:()=>F,bL:()=>U});var n=r(86326),i=r(46225),o=r(67923),s=r(40849),a=r(70407),l=r(11682),u=r(33291),c=r(69263),h=r(95317);function d(e){let t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var f=r(57391),p=r(36870),m="Radio",[g,v]=(0,s.A)(m),[y,E]=g(m),_=n.forwardRef((e,t)=>{let{__scopeRadio:r,name:s,checked:l=!1,required:u,disabled:c,value:h="on",onCheck:d,...f}=e,[m,g]=n.useState(null),v=(0,o.s)(t,e=>g(e)),E=n.useRef(!1),_=!m||!!m.closest("form");return(0,p.jsxs)(y,{scope:r,checked:l,disabled:c,children:[(0,p.jsx)(a.sG.button,{type:"button",role:"radio","aria-checked":l,"data-state":C(l),"data-disabled":c?"":void 0,disabled:c,value:h,...f,ref:v,onClick:(0,i.m)(e.onClick,e=>{l||d?.(),_&&(E.current=e.isPropagationStopped(),E.current||e.stopPropagation())})}),_&&(0,p.jsx)(T,{control:m,bubbles:!E.current,name:s,value:h,checked:l,required:u,disabled:c,style:{transform:"translateX(-100%)"}})]})});_.displayName=m;var b="RadioIndicator",A=n.forwardRef((e,t)=>{let{__scopeRadio:r,forceMount:n,...i}=e,o=E(b,r);return(0,p.jsx)(f.C,{present:n||o.checked,children:(0,p.jsx)(a.sG.span,{"data-state":C(o.checked),"data-disabled":o.disabled?"":void 0,...i,ref:t})})});A.displayName=b;var T=e=>{let{control:t,checked:r,bubbles:i=!0,...o}=e,s=n.useRef(null),a=d(r),l=(0,h.X)(t);return n.useEffect(()=>{let e=s.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(a!==r&&t){let n=new Event("click",{bubbles:i});t.call(e,r),e.dispatchEvent(n)}},[a,r,i]),(0,p.jsx)("input",{type:"radio","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:s,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function C(e){return e?"checked":"unchecked"}var S=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],w="RadioGroup",[x,R]=(0,s.A)(w,[l.RG,v]),k=(0,l.RG)(),L=v(),[I,O]=x(w),D=n.forwardRef((e,t)=>{let{__scopeRadioGroup:r,name:n,defaultValue:i,value:o,required:s=!1,disabled:h=!1,orientation:d,dir:f,loop:m=!0,onValueChange:g,...v}=e,y=k(r),E=(0,c.jH)(f),[_,b]=(0,u.i)({prop:o,defaultProp:i,onChange:g});return(0,p.jsx)(I,{scope:r,name:n,required:s,disabled:h,value:_,onValueChange:b,children:(0,p.jsx)(l.bL,{asChild:!0,...y,orientation:d,dir:E,loop:m,children:(0,p.jsx)(a.sG.div,{role:"radiogroup","aria-required":s,"aria-orientation":d,"data-disabled":h?"":void 0,dir:E,...v,ref:t})})})});D.displayName=w;var N="RadioGroupItem",P=n.forwardRef((e,t)=>{let{__scopeRadioGroup:r,disabled:s,...a}=e,u=O(N,r),c=u.disabled||s,h=k(r),d=L(r),f=n.useRef(null),m=(0,o.s)(t,f),g=u.value===a.value,v=n.useRef(!1);return n.useEffect(()=>{let e=e=>{S.includes(e.key)&&(v.current=!0)},t=()=>v.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),(0,p.jsx)(l.q7,{asChild:!0,...h,focusable:!c,active:g,children:(0,p.jsx)(_,{disabled:c,required:u.required,checked:g,...d,...a,name:u.name,ref:m,onCheck:()=>u.onValueChange(a.value),onKeyDown:(0,i.m)(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:(0,i.m)(a.onFocus,()=>{v.current&&f.current?.click()})})})});P.displayName=N;var M="RadioGroupIndicator",B=n.forwardRef((e,t)=>{let{__scopeRadioGroup:r,...n}=e,i=L(r);return(0,p.jsx)(A,{...i,...n,ref:t})});B.displayName=M;var U=D,F=P,j=B},11682:(e,t,r)=>{"use strict";r.d(t,{RG:()=>b,bL:()=>D,q7:()=>N});var n=r(86326),i=r(46225),o=r(83306),s=r(67923),a=r(40849),l=r(58999),u=r(70407),c=r(88547),h=r(33291),d=r(69263),f=r(36870),p="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},g="RovingFocusGroup",[v,y,E]=(0,o.N)(g),[_,b]=(0,a.A)(g,[E]),[A,T]=_(g),C=n.forwardRef((e,t)=>(0,f.jsx)(v.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(v.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(S,{...e,ref:t})})}));C.displayName=g;var S=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:o,loop:a=!1,dir:l,currentTabStopId:g,defaultCurrentTabStopId:v,onCurrentTabStopIdChange:E,onEntryFocus:_,preventScrollOnEntryFocus:b=!1,...T}=e,C=n.useRef(null),S=(0,s.s)(t,C),w=(0,d.jH)(l),[x=null,R]=(0,h.i)({prop:g,defaultProp:v,onChange:E}),[k,L]=n.useState(!1),O=(0,c.c)(_),D=y(r),N=n.useRef(!1),[P,M]=n.useState(0);return n.useEffect(()=>{let e=C.current;if(e)return e.addEventListener(p,O),()=>e.removeEventListener(p,O)},[O]),(0,f.jsx)(A,{scope:r,orientation:o,dir:w,loop:a,currentTabStopId:x,onItemFocus:n.useCallback(e=>R(e),[R]),onItemShiftTab:n.useCallback(()=>L(!0),[]),onFocusableItemAdd:n.useCallback(()=>M(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>M(e=>e-1),[]),children:(0,f.jsx)(u.sG.div,{tabIndex:k||0===P?-1:0,"data-orientation":o,...T,ref:S,style:{outline:"none",...e.style},onMouseDown:(0,i.m)(e.onMouseDown,()=>{N.current=!0}),onFocus:(0,i.m)(e.onFocus,e=>{let t=!N.current;if(e.target===e.currentTarget&&t&&!k){let t=new CustomEvent(p,m);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=D().filter(e=>e.focusable);I([e.find(e=>e.active),e.find(e=>e.id===x),...e].filter(Boolean).map(e=>e.ref.current),b)}}N.current=!1}),onBlur:(0,i.m)(e.onBlur,()=>L(!1))})})}),w="RovingFocusGroupItem",x=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:o=!0,active:s=!1,tabStopId:a,...c}=e,h=(0,l.B)(),d=a||h,p=T(w,r),m=p.currentTabStopId===d,g=y(r),{onFocusableItemAdd:E,onFocusableItemRemove:_}=p;return n.useEffect(()=>{if(o)return E(),()=>_()},[o,E,_]),(0,f.jsx)(v.ItemSlot,{scope:r,id:d,focusable:o,active:s,children:(0,f.jsx)(u.sG.span,{tabIndex:m?0:-1,"data-orientation":p.orientation,...c,ref:t,onMouseDown:(0,i.m)(e.onMouseDown,e=>{o?p.onItemFocus(d):e.preventDefault()}),onFocus:(0,i.m)(e.onFocus,()=>p.onItemFocus(d)),onKeyDown:(0,i.m)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){p.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=L(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=g().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();let n=r.indexOf(e.currentTarget);r=p.loop?O(r,n+1):r.slice(n+1)}setTimeout(()=>I(r))}})})})});x.displayName=w;var R={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function k(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}function L(e,t,r){let n=k(e.key,r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(n))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(n)))return R[n]}function I(e,t=!1){let r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function O(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var D=C,N=x},59142:(e,t,r)=>{"use strict";r.d(t,{bL:()=>Y,Ze:()=>Z,zi:()=>J,LM:()=>Q});var n=r(86326),i=r(70407),o=r(57391),s=r(40849),a=r(67923),l=r(88547),u=r(69263),c=r(72356);function h(e,[t,r]){return Math.min(r,Math.max(t,e))}var d=r(46225),f=r(36870);function p(e,t){return n.useReducer((e,r)=>t[e][r]??e,e)}var m="ScrollArea",[g,v]=(0,s.A)(m),[y,E]=g(m),_=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,type:o="hover",dir:s,scrollHideDelay:l=600,...c}=e,[h,d]=n.useState(null),[p,m]=n.useState(null),[g,v]=n.useState(null),[E,_]=n.useState(null),[b,A]=n.useState(null),[T,C]=n.useState(0),[S,w]=n.useState(0),[x,R]=n.useState(!1),[k,L]=n.useState(!1),I=(0,a.s)(t,e=>d(e)),O=(0,u.jH)(s);return(0,f.jsx)(y,{scope:r,type:o,dir:O,scrollHideDelay:l,scrollArea:h,viewport:p,onViewportChange:m,content:g,onContentChange:v,scrollbarX:E,onScrollbarXChange:_,scrollbarXEnabled:x,onScrollbarXEnabledChange:R,scrollbarY:b,onScrollbarYChange:A,scrollbarYEnabled:k,onScrollbarYEnabledChange:L,onCornerWidthChange:C,onCornerHeightChange:w,children:(0,f.jsx)(i.sG.div,{dir:O,...c,ref:I,style:{position:"relative","--radix-scroll-area-corner-width":T+"px","--radix-scroll-area-corner-height":S+"px",...e.style}})})});_.displayName=m;var b="ScrollAreaViewport",A=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,children:o,nonce:s,...l}=e,u=E(b,r),c=n.useRef(null),h=(0,a.s)(t,c,u.onViewportChange);return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),(0,f.jsx)(i.sG.div,{"data-radix-scroll-area-viewport":"",...l,ref:h,style:{overflowX:u.scrollbarXEnabled?"scroll":"hidden",overflowY:u.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,f.jsx)("div",{ref:u.onContentChange,style:{minWidth:"100%",display:"table"},children:o})})]})});A.displayName=b;var T="ScrollAreaScrollbar",C=n.forwardRef((e,t)=>{let{forceMount:r,...i}=e,o=E(T,e.__scopeScrollArea),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:a}=o,l="horizontal"===e.orientation;return n.useEffect(()=>(l?s(!0):a(!0),()=>{l?s(!1):a(!1)}),[l,s,a]),"hover"===o.type?(0,f.jsx)(S,{...i,ref:t,forceMount:r}):"scroll"===o.type?(0,f.jsx)(w,{...i,ref:t,forceMount:r}):"auto"===o.type?(0,f.jsx)(x,{...i,ref:t,forceMount:r}):"always"===o.type?(0,f.jsx)(R,{...i,ref:t}):null});C.displayName=T;var S=n.forwardRef((e,t)=>{let{forceMount:r,...i}=e,s=E(T,e.__scopeScrollArea),[a,l]=n.useState(!1);return n.useEffect(()=>{let e=s.scrollArea,t=0;if(e){let r=()=>{window.clearTimeout(t),l(!0)},n=()=>{t=window.setTimeout(()=>l(!1),s.scrollHideDelay)};return e.addEventListener("pointerenter",r),e.addEventListener("pointerleave",n),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",r),e.removeEventListener("pointerleave",n)}}},[s.scrollArea,s.scrollHideDelay]),(0,f.jsx)(o.C,{present:r||a,children:(0,f.jsx)(x,{"data-state":a?"visible":"hidden",...i,ref:t})})}),w=n.forwardRef((e,t)=>{let{forceMount:r,...i}=e,s=E(T,e.__scopeScrollArea),a="horizontal"===e.orientation,l=W(()=>c("SCROLL_END"),100),[u,c]=p("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return n.useEffect(()=>{if("idle"===u){let e=window.setTimeout(()=>c("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(e)}},[u,s.scrollHideDelay,c]),n.useEffect(()=>{let e=s.viewport,t=a?"scrollLeft":"scrollTop";if(e){let r=e[t],n=()=>{let n=e[t];r!==n&&(c("SCROLL"),l()),r=n};return e.addEventListener("scroll",n),()=>e.removeEventListener("scroll",n)}},[s.viewport,a,c,l]),(0,f.jsx)(o.C,{present:r||"hidden"!==u,children:(0,f.jsx)(R,{"data-state":"hidden"===u?"hidden":"visible",...i,ref:t,onPointerEnter:(0,d.m)(e.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:(0,d.m)(e.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),x=n.forwardRef((e,t)=>{let r=E(T,e.__scopeScrollArea),{forceMount:i,...s}=e,[a,l]=n.useState(!1),u="horizontal"===e.orientation,c=W(()=>{if(r.viewport){let e=r.viewport.offsetWidth{let{orientation:r="vertical",...i}=e,o=E(T,e.__scopeScrollArea),s=n.useRef(null),a=n.useRef(0),[l,u]=n.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=j(l.viewport,l.content),h={...i,sizes:l,onSizesChange:u,hasThumb:!!(c>0&&c<1),onThumbChange:e=>s.current=e,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:e=>a.current=e};function d(e,t){return V(e,a.current,l,t)}return"horizontal"===r?(0,f.jsx)(k,{...h,ref:t,onThumbPositionChange:()=>{if(o.viewport&&s.current){let e=H(o.viewport.scrollLeft,l,o.dir);s.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{o.viewport&&(o.viewport.scrollLeft=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollLeft=d(e,o.dir))}}):"vertical"===r?(0,f.jsx)(L,{...h,ref:t,onThumbPositionChange:()=>{if(o.viewport&&s.current){let e=H(o.viewport.scrollTop,l);s.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{o.viewport&&(o.viewport.scrollTop=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollTop=d(e))}}):null}),k=n.forwardRef((e,t)=>{let{sizes:r,onSizesChange:i,...o}=e,s=E(T,e.__scopeScrollArea),[l,u]=n.useState(),c=n.useRef(null),h=(0,a.s)(t,c,s.onScrollbarXChange);return n.useEffect(()=>{c.current&&u(getComputedStyle(c.current))},[c]),(0,f.jsx)(D,{"data-orientation":"horizontal",...o,ref:h,sizes:r,style:{bottom:0,left:"rtl"===s.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===s.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":K(r)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,r)=>{if(s.viewport){let n=s.viewport.scrollLeft+t.deltaX;e.onWheelScroll(n),G(n,r)&&t.preventDefault()}},onResize:()=>{c.current&&s.viewport&&l&&i({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:F(l.paddingLeft),paddingEnd:F(l.paddingRight)}})}})}),L=n.forwardRef((e,t)=>{let{sizes:r,onSizesChange:i,...o}=e,s=E(T,e.__scopeScrollArea),[l,u]=n.useState(),c=n.useRef(null),h=(0,a.s)(t,c,s.onScrollbarYChange);return n.useEffect(()=>{c.current&&u(getComputedStyle(c.current))},[c]),(0,f.jsx)(D,{"data-orientation":"vertical",...o,ref:h,sizes:r,style:{top:0,right:"ltr"===s.dir?0:void 0,left:"rtl"===s.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":K(r)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,r)=>{if(s.viewport){let n=s.viewport.scrollTop+t.deltaY;e.onWheelScroll(n),G(n,r)&&t.preventDefault()}},onResize:()=>{c.current&&s.viewport&&l&&i({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:F(l.paddingTop),paddingEnd:F(l.paddingBottom)}})}})}),[I,O]=g(T),D=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,sizes:o,hasThumb:s,onThumbChange:u,onThumbPointerUp:c,onThumbPointerDown:h,onThumbPositionChange:p,onDragScroll:m,onWheelScroll:g,onResize:v,...y}=e,_=E(T,r),[b,A]=n.useState(null),C=(0,a.s)(t,e=>A(e)),S=n.useRef(null),w=n.useRef(""),x=_.viewport,R=o.content-o.viewport,k=(0,l.c)(g),L=(0,l.c)(p),O=W(v,10);function D(e){S.current&&m({x:e.clientX-S.current.left,y:e.clientY-S.current.top})}return n.useEffect(()=>{let e=e=>{let t=e.target;b?.contains(t)&&k(e,R)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[x,b,R,k]),n.useEffect(L,[o,L]),X(b,O),X(_.content,O),(0,f.jsx)(I,{scope:r,scrollbar:b,hasThumb:s,onThumbChange:(0,l.c)(u),onThumbPointerUp:(0,l.c)(c),onThumbPositionChange:L,onThumbPointerDown:(0,l.c)(h),children:(0,f.jsx)(i.sG.div,{...y,ref:C,style:{position:"absolute",...y.style},onPointerDown:(0,d.m)(e.onPointerDown,e=>{let t=0;e.button===t&&(e.target.setPointerCapture(e.pointerId),S.current=b.getBoundingClientRect(),w.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",_.viewport&&(_.viewport.style.scrollBehavior="auto"),D(e))}),onPointerMove:(0,d.m)(e.onPointerMove,D),onPointerUp:(0,d.m)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=w.current,_.viewport&&(_.viewport.style.scrollBehavior=""),S.current=null})})})}),N="ScrollAreaThumb",P=n.forwardRef((e,t)=>{let{forceMount:r,...n}=e,i=O(N,e.__scopeScrollArea);return(0,f.jsx)(o.C,{present:r||i.hasThumb,children:(0,f.jsx)(M,{ref:t,...n})})}),M=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,style:o,...s}=e,l=E(N,r),u=O(N,r),{onThumbPositionChange:c}=u,h=(0,a.s)(t,e=>u.onThumbChange(e)),p=n.useRef(),m=W(()=>{p.current&&(p.current(),p.current=void 0)},100);return n.useEffect(()=>{let e=l.viewport;if(e){let t=()=>{if(m(),!p.current){let t=q(e,c);p.current=t,c()}};return c(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[l.viewport,m,c]),(0,f.jsx)(i.sG.div,{"data-state":u.hasThumb?"visible":"hidden",...s,ref:h,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...o},onPointerDownCapture:(0,d.m)(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),r=e.clientX-t.left,n=e.clientY-t.top;u.onThumbPointerDown({x:r,y:n})}),onPointerUp:(0,d.m)(e.onPointerUp,u.onThumbPointerUp)})});P.displayName=N;var B="ScrollAreaCorner";n.forwardRef((e,t)=>{let r=E(B,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return"scroll"!==r.type&&n?(0,f.jsx)(U,{...e,ref:t}):null}).displayName=B;var U=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,...o}=e,s=E(B,r),[a,l]=n.useState(0),[u,c]=n.useState(0),h=!!(a&&u);return X(s.scrollbarX,()=>{let e=s.scrollbarX?.offsetHeight||0;s.onCornerHeightChange(e),c(e)}),X(s.scrollbarY,()=>{let e=s.scrollbarY?.offsetWidth||0;s.onCornerWidthChange(e),l(e)}),h?(0,f.jsx)(i.sG.div,{...o,ref:t,style:{width:a,height:u,position:"absolute",right:"ltr"===s.dir?0:void 0,left:"rtl"===s.dir?0:void 0,bottom:0,...e.style}}):null});function F(e){return e?parseInt(e,10):0}function j(e,t){let r=e/t;return isNaN(r)?0:r}function K(e){let t=j(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-r)*t,18)}function V(e,t,r,n="ltr"){let i=K(r),o=i/2,s=t||o,a=i-s,l=r.scrollbar.paddingStart+s,u=r.scrollbar.size-r.scrollbar.paddingEnd-a,c=r.content-r.viewport;return z([l,u],"ltr"===n?[0,c]:[-1*c,0])(e)}function H(e,t,r="ltr"){let n=K(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-i,s=t.content-t.viewport,a=o-n,l=h(e,"ltr"===r?[0,s]:[-1*s,0]);return z([0,s],[0,a])(l)}function z(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function G(e,t){return e>0&&e{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return!function i(){let o={left:e.scrollLeft,top:e.scrollTop},s=r.left!==o.left,a=r.top!==o.top;(s||a)&&t(),r=o,n=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(n)};function W(e,t){let r=(0,l.c)(e),i=n.useRef(0);return n.useEffect(()=>()=>window.clearTimeout(i.current),[]),n.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(r,t)},[r,t])}function X(e,t){let r=(0,l.c)(t);(0,c.N)(()=>{let t=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}},[e,r])}var Y=_,Q=A,Z=C,J=P},74614:(e,t,r)=>{"use strict";r.d(t,{DX:()=>s,xV:()=>l});var n=r(86326),i=r(67923),o=r(36870),s=n.forwardRef((e,t)=>{let{children:r,...i}=e,s=n.Children.toArray(r),l=s.find(u);if(l){let e=l.props.children,r=s.map(t=>t!==l?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,o.jsx)(a,{...i,ref:t,children:n.isValidElement(e)?n.cloneElement(e,void 0,r):null})}return(0,o.jsx)(a,{...i,ref:t,children:r})});s.displayName="Slot";var a=n.forwardRef((e,t)=>{let{children:r,...o}=e;if(n.isValidElement(r)){let e=h(r);return n.cloneElement(r,{...c(o,r.props),ref:t?(0,i.t)(t,e):e})}return n.Children.count(r)>1?n.Children.only(null):null});a.displayName="SlotClone";var l=({children:e})=>(0,o.jsx)(o.Fragment,{children:e});function u(e){return n.isValidElement(e)&&e.type===l}function c(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{o(...e),i(...e)}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}function h(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(r=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}},30122:(e,t,r)=>{"use strict";r.d(t,{$n:()=>ee,bL:()=>Z,wv:()=>J});var n=r(86326),i=r(46225),o=r(40849),s=r(11682),a=r(70407),l=r(36870),u="Separator",c="horizontal",h=["horizontal","vertical"],d=n.forwardRef((e,t)=>{let{decorative:r,orientation:n=c,...i}=e,o=f(n)?n:c,s="vertical"===o?o:void 0,u=r?{role:"none"}:{"aria-orientation":s,role:"separator"};return(0,l.jsx)(a.sG.div,{"data-orientation":o,...u,...i,ref:t})});function f(e){return h.includes(e)}d.displayName=u;var p=d,m=r(33291),g="Toggle",v=n.forwardRef((e,t)=>{let{pressed:r,defaultPressed:n=!1,onPressedChange:o,...s}=e,[u=!1,c]=(0,m.i)({prop:r,onChange:o,defaultProp:n});return(0,l.jsx)(a.sG.button,{type:"button","aria-pressed":u,"data-state":u?"on":"off","data-disabled":e.disabled?"":void 0,...s,ref:t,onClick:(0,i.m)(e.onClick,()=>{e.disabled||c(!u)})})});v.displayName=g;var y=r(69263),E="ToggleGroup",[_,b]=(0,o.A)(E,[s.RG]),A=(0,s.RG)(),T=n.forwardRef((e,t)=>{let{type:r,...n}=e;if("single"===r){let e=n;return(0,l.jsx)(w,{...e,ref:t})}if("multiple"===r){let e=n;return(0,l.jsx)(x,{...e,ref:t})}throw Error(`Missing prop \`type\` expected on \`${E}\``)});T.displayName=E;var[C,S]=_(E),w=n.forwardRef((e,t)=>{let{value:r,defaultValue:i,onValueChange:o=()=>{},...s}=e,[a,u]=(0,m.i)({prop:r,defaultProp:i,onChange:o});return(0,l.jsx)(C,{scope:e.__scopeToggleGroup,type:"single",value:a?[a]:[],onItemActivate:u,onItemDeactivate:n.useCallback(()=>u(""),[u]),children:(0,l.jsx)(L,{...s,ref:t})})}),x=n.forwardRef((e,t)=>{let{value:r,defaultValue:i,onValueChange:o=()=>{},...s}=e,[a=[],u]=(0,m.i)({prop:r,defaultProp:i,onChange:o}),c=n.useCallback(e=>u((t=[])=>[...t,e]),[u]),h=n.useCallback(e=>u((t=[])=>t.filter(t=>t!==e)),[u]);return(0,l.jsx)(C,{scope:e.__scopeToggleGroup,type:"multiple",value:a,onItemActivate:c,onItemDeactivate:h,children:(0,l.jsx)(L,{...s,ref:t})})});T.displayName=E;var[R,k]=_(E),L=n.forwardRef((e,t)=>{let{__scopeToggleGroup:r,disabled:n=!1,rovingFocus:i=!0,orientation:o,dir:u,loop:c=!0,...h}=e,d=A(r),f=(0,y.jH)(u),p={role:"group",dir:f,...h};return(0,l.jsx)(R,{scope:r,rovingFocus:i,disabled:n,children:i?(0,l.jsx)(s.bL,{asChild:!0,...d,orientation:o,dir:f,loop:c,children:(0,l.jsx)(a.sG.div,{...p,ref:t})}):(0,l.jsx)(a.sG.div,{...p,ref:t})})}),I="ToggleGroupItem",O=n.forwardRef((e,t)=>{let r=S(I,e.__scopeToggleGroup),i=k(I,e.__scopeToggleGroup),o=A(e.__scopeToggleGroup),a=r.value.includes(e.value),u=i.disabled||e.disabled,c={...e,pressed:a,disabled:u},h=n.useRef(null);return i.rovingFocus?(0,l.jsx)(s.q7,{asChild:!0,...o,focusable:!u,active:a,ref:h,children:(0,l.jsx)(D,{...c,ref:t})}):(0,l.jsx)(D,{...c,ref:t})});O.displayName=I;var D=n.forwardRef((e,t)=>{let{__scopeToggleGroup:r,value:n,...i}=e,o=S(I,r),s={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},a="single"===o.type?s:void 0;return(0,l.jsx)(v,{...a,...i,ref:t,onPressedChange:e=>{e?o.onItemActivate(n):o.onItemDeactivate(n)}})}),N=T,P=O,M="Toolbar",[B,U]=(0,o.A)(M,[s.RG,b]),F=(0,s.RG)(),j=b(),[K,V]=B(M),H=n.forwardRef((e,t)=>{let{__scopeToolbar:r,orientation:n="horizontal",dir:i,loop:o=!0,...u}=e,c=F(r),h=(0,y.jH)(i);return(0,l.jsx)(K,{scope:r,orientation:n,dir:h,children:(0,l.jsx)(s.bL,{asChild:!0,...c,orientation:n,dir:h,loop:o,children:(0,l.jsx)(a.sG.div,{role:"toolbar","aria-orientation":n,dir:h,...u,ref:t})})})});H.displayName=M;var z="ToolbarSeparator",G=n.forwardRef((e,t)=>{let{__scopeToolbar:r,...n}=e,i=V(z,r);return(0,l.jsx)(p,{orientation:"horizontal"===i.orientation?"vertical":"horizontal",...n,ref:t})});G.displayName=z;var q="ToolbarButton",W=n.forwardRef((e,t)=>{let{__scopeToolbar:r,...n}=e,i=F(r);return(0,l.jsx)(s.q7,{asChild:!0,...i,focusable:!e.disabled,children:(0,l.jsx)(a.sG.button,{type:"button",...n,ref:t})})});W.displayName=q;var X="ToolbarLink";n.forwardRef((e,t)=>{let{__scopeToolbar:r,...n}=e,o=F(r);return(0,l.jsx)(s.q7,{asChild:!0,...o,focusable:!0,children:(0,l.jsx)(a.sG.a,{...n,ref:t,onKeyDown:(0,i.m)(e.onKeyDown,e=>{" "===e.key&&e.currentTarget.click()})})})}).displayName=X;var Y="ToolbarToggleGroup";n.forwardRef((e,t)=>{let{__scopeToolbar:r,...n}=e,i=V(Y,r),o=j(r);return(0,l.jsx)(N,{"data-orientation":i.orientation,dir:i.dir,...o,...n,ref:t,rovingFocus:!1})}).displayName=Y;var Q="ToolbarToggleItem";n.forwardRef((e,t)=>{let{__scopeToolbar:r,...n}=e,i=j(r),o={__scopeToolbar:e.__scopeToolbar};return(0,l.jsx)(W,{asChild:!0,...o,children:(0,l.jsx)(P,{...i,...n,ref:t})})}).displayName=Q;var Z=H,J=G,ee=W},16405:(e,t,r)=>{"use strict";r.d(t,{Kq:()=>Q,UC:()=>et,ZL:()=>ee,bL:()=>Z,i3:()=>er,l9:()=>J});var n=r(86326),i=r(46225),o=r(67923),s=r(40849),a=r(78016),l=r(58999),u=r(23175),c=r(49260),h=r(57391),d=r(70407),f=r(74614),p=r(33291),m=r(59248),g=r(36870),[v,y]=(0,s.A)("Tooltip",[u.Bk]),E=(0,u.Bk)(),_="TooltipProvider",b=700,A="tooltip.open",[T,C]=v(_),S=e=>{let{__scopeTooltip:t,delayDuration:r=b,skipDelayDuration:i=300,disableHoverableContent:o=!1,children:s}=e,[a,l]=n.useState(!0),u=n.useRef(!1),c=n.useRef(0);return n.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,g.jsx)(T,{scope:t,isOpenDelayed:a,delayDuration:r,onOpen:n.useCallback(()=>{window.clearTimeout(c.current),l(!1)},[]),onClose:n.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>l(!0),i)},[i]),isPointerInTransitRef:u,onPointerInTransitChange:n.useCallback(e=>{u.current=e},[]),disableHoverableContent:o,children:s})};S.displayName=_;var w="Tooltip",[x,R]=v(w),k=e=>{let{__scopeTooltip:t,children:r,open:i,defaultOpen:o=!1,onOpenChange:s,disableHoverableContent:a,delayDuration:c}=e,h=C(w,e.__scopeTooltip),d=E(t),[f,m]=n.useState(null),v=(0,l.B)(),y=n.useRef(0),_=a??h.disableHoverableContent,b=c??h.delayDuration,T=n.useRef(!1),[S=!1,R]=(0,p.i)({prop:i,defaultProp:o,onChange:e=>{e?(h.onOpen(),document.dispatchEvent(new CustomEvent(A))):h.onClose(),s?.(e)}}),k=n.useMemo(()=>S?T.current?"delayed-open":"instant-open":"closed",[S]),L=n.useCallback(()=>{window.clearTimeout(y.current),T.current=!1,R(!0)},[R]),I=n.useCallback(()=>{window.clearTimeout(y.current),R(!1)},[R]),O=n.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{T.current=!0,R(!0)},b)},[b,R]);return n.useEffect(()=>()=>window.clearTimeout(y.current),[]),(0,g.jsx)(u.bL,{...d,children:(0,g.jsx)(x,{scope:t,contentId:v,open:S,stateAttribute:k,trigger:f,onTriggerChange:m,onTriggerEnter:n.useCallback(()=>{h.isOpenDelayed?O():L()},[h.isOpenDelayed,O,L]),onTriggerLeave:n.useCallback(()=>{_?I():window.clearTimeout(y.current)},[I,_]),onOpen:L,onClose:I,disableHoverableContent:_,children:r})})};k.displayName=w;var L="TooltipTrigger",I=n.forwardRef((e,t)=>{let{__scopeTooltip:r,...s}=e,a=R(L,r),l=C(L,r),c=E(r),h=n.useRef(null),f=(0,o.s)(t,h,a.onTriggerChange),p=n.useRef(!1),m=n.useRef(!1),v=n.useCallback(()=>p.current=!1,[]);return n.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),(0,g.jsx)(u.Mz,{asChild:!0,...c,children:(0,g.jsx)(d.sG.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...s,ref:f,onPointerMove:(0,i.m)(e.onPointerMove,e=>{"touch"===e.pointerType||m.current||l.isPointerInTransitRef.current||(a.onTriggerEnter(),m.current=!0)}),onPointerLeave:(0,i.m)(e.onPointerLeave,()=>{a.onTriggerLeave(),m.current=!1}),onPointerDown:(0,i.m)(e.onPointerDown,()=>{p.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:(0,i.m)(e.onFocus,()=>{p.current||a.onOpen()}),onBlur:(0,i.m)(e.onBlur,a.onClose),onClick:(0,i.m)(e.onClick,a.onClose)})})});I.displayName=L;var O="TooltipPortal",[D,N]=v(O,{forceMount:void 0}),P=e=>{let{__scopeTooltip:t,forceMount:r,children:n,container:i}=e,o=R(O,t);return(0,g.jsx)(D,{scope:t,forceMount:r,children:(0,g.jsx)(h.C,{present:r||o.open,children:(0,g.jsx)(c.Z,{asChild:!0,container:i,children:n})})})};P.displayName=O;var M="TooltipContent",B=n.forwardRef((e,t)=>{let r=N(M,e.__scopeTooltip),{forceMount:n=r.forceMount,side:i="top",...o}=e,s=R(M,e.__scopeTooltip);return(0,g.jsx)(h.C,{present:n||s.open,children:s.disableHoverableContent?(0,g.jsx)(K,{side:i,...o,ref:t}):(0,g.jsx)(U,{side:i,...o,ref:t})})}),U=n.forwardRef((e,t)=>{let r=R(M,e.__scopeTooltip),i=C(M,e.__scopeTooltip),s=n.useRef(null),a=(0,o.s)(t,s),[l,u]=n.useState(null),{trigger:c,onClose:h}=r,d=s.current,{onPointerInTransitChange:f}=i,p=n.useCallback(()=>{u(null),f(!1)},[f]),m=n.useCallback((e,t)=>{let r=e.currentTarget,n={x:e.clientX,y:e.clientY},i=z(n,r.getBoundingClientRect());u(X([...G(n,i),...q(t.getBoundingClientRect())])),f(!0)},[f]);return n.useEffect(()=>()=>p(),[p]),n.useEffect(()=>{if(c&&d){let e=e=>m(e,d),t=e=>m(e,c);return c.addEventListener("pointerleave",e),d.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),d.removeEventListener("pointerleave",t)}}},[c,d,m,p]),n.useEffect(()=>{if(l){let e=e=>{let t=e.target,r={x:e.clientX,y:e.clientY},n=c?.contains(t)||d?.contains(t),i=!W(r,l);n?p():i&&(p(),h())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[c,d,l,h,p]),(0,g.jsx)(K,{...e,ref:a})}),[F,j]=v(w,{isInside:!1}),K=n.forwardRef((e,t)=>{let{__scopeTooltip:r,children:i,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:l,...c}=e,h=R(M,r),d=E(r),{onClose:p}=h;return n.useEffect(()=>(document.addEventListener(A,p),()=>document.removeEventListener(A,p)),[p]),n.useEffect(()=>{if(h.trigger){let e=e=>{let t=e.target;t?.contains(h.trigger)&&p()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[h.trigger,p]),(0,g.jsx)(a.qW,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:p,children:(0,g.jsxs)(u.UC,{"data-state":h.stateAttribute,...d,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,g.jsx)(f.xV,{children:i}),(0,g.jsx)(F,{scope:r,isInside:!0,children:(0,g.jsx)(m.b,{id:h.contentId,role:"tooltip",children:o||i})})]})})});B.displayName=M;var V="TooltipArrow",H=n.forwardRef((e,t)=>{let{__scopeTooltip:r,...n}=e,i=E(r);return j(V,r).isInside?null:(0,g.jsx)(u.i3,{...i,...n,ref:t})});function z(e,t){let r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(r,n,i,o)){case o:return"left";case i:return"right";case r:return"top";case n:return"bottom";default:throw Error("unreachable")}}function G(e,t,r=5){let n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r})}return n}function q(e){let{top:t,right:r,bottom:n,left:i}=e;return[{x:i,y:t},{x:r,y:t},{x:r,y:n},{x:i,y:n}]}function W(e,t){let{x:r,y:n}=e,i=!1;for(let e=0,o=t.length-1;en!=u>n&&r<(l-s)*(n-a)/(u-a)+s&&(i=!i)}return i}function X(e){let t=e.slice();return t.sort((e,t)=>e.xt.x?1:e.yt.y?1:0),Y(t)}function Y(e){if(e.length<=1)return e.slice();let t=[];for(let r=0;r=2;){let e=t[t.length-1],r=t[t.length-2];if((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x))t.pop();else break}t.push(n)}t.pop();let r=[];for(let t=e.length-1;t>=0;t--){let n=e[t];for(;r.length>=2;){let e=r[r.length-1],t=r[r.length-2];if((e.x-t.x)*(n.y-t.y)>=(e.y-t.y)*(n.x-t.x))r.pop();else break}r.push(n)}return(r.pop(),1===t.length&&1===r.length&&t[0].x===r[0].x&&t[0].y===r[0].y)?t:t.concat(r)}H.displayName=V;var Q=S,Z=k,J=I,ee=P,et=B,er=H},88547:(e,t,r)=>{"use strict";r.d(t,{c:()=>i});var n=r(86326);function i(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}},33291:(e,t,r)=>{"use strict";r.d(t,{i:()=>o});var n=r(86326),i=r(88547);function o({prop:e,defaultProp:t,onChange:r=()=>{}}){let[o,a]=s({defaultProp:t,onChange:r}),l=void 0!==e,u=l?e:o,c=(0,i.c)(r);return[u,n.useCallback(t=>{if(l){let r=t,n="function"==typeof t?r(e):t;n!==e&&c(n)}else a(t)},[l,e,a,c])]}function s({defaultProp:e,onChange:t}){let r=n.useState(e),[o]=r,s=n.useRef(o),a=(0,i.c)(t);return n.useEffect(()=>{s.current!==o&&(a(o),s.current=o)},[o,s,a]),r}},72356:(e,t,r)=>{"use strict";r.d(t,{N:()=>i});var n=r(86326),i=globalThis?.document?n.useLayoutEffect:()=>{}},95317:(e,t,r)=>{"use strict";r.d(t,{X:()=>o});var n=r(86326),i=r(72356);function o(e){let[t,r]=n.useState(void 0);return(0,i.N)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,i=t.blockSize}else n=e.offsetWidth,i=e.offsetHeight;r({width:n,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}},59248:(e,t,r)=>{"use strict";r.d(t,{b:()=>l});var n=r(86326),i=r(70407),o=r(36870),s="VisuallyHidden",a=n.forwardRef((e,t)=>(0,o.jsx)(i.sG.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));a.displayName=s;var l=a},3825:(e,t,r)=>{"use strict";r.d(t,{T:()=>n});let n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},45265:(e,t,r)=>{"use strict";let n;r.d(t,{_:()=>u});var i=r(49381);let o=r(99513).O;function s(){let e=o.chrome,t=e&&e.app&&e.app.runtime,r="history"in o&&!!o.history.pushState&&!!o.history.replaceState;return!t&&r}var a=r(30535),l=r(31146);function u(e){let t="history";(0,i.s5)(t,e),(0,i.AS)(t,c)}function c(){if(!s())return;let e=l.j.onpopstate;function t(e){return function(...t){let r=t.length>2?t[2]:void 0;if(r){let e=n,t=String(r);n=t;let o={from:e,to:t};(0,i.aj)("history",o)}return e.apply(this,t)}}l.j.onpopstate=function(...t){let r=l.j.location.href,o=n;n=r;let s={from:o,to:r};if((0,i.aj)("history",s),e)try{return e.apply(this,t)}catch(e){}},(0,a.GS)(l.j.history,"pushState",t),(0,a.GS)(l.j.history,"replaceState",t)}},25407:(e,t,r)=>{"use strict";r.d(t,{Er:()=>l,Mn:()=>u});var n=r(49381),i=r(30535),o=r(5917),s=r(5868),a=r(31146);let l="__sentry_xhr_v3__";function u(e){let t="xhr";(0,n.s5)(t,e),(0,n.AS)(t,c)}function c(){if(!a.j.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;(0,i.GS)(e,"open",function(e){return function(...t){let r=1e3*(0,o.zf)(),a=(0,s.Kg)(t[0])?t[0].toUpperCase():void 0,u=h(t[1]);if(!a||!u)return e.apply(this,t);this[l]={method:a,url:u,request_headers:{}},"POST"===a&&u.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let c=()=>{let e=this[l];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}let t={endTimestamp:1e3*(0,o.zf)(),startTimestamp:r,xhr:this};(0,n.aj)("xhr",t)}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?(0,i.GS)(this,"onreadystatechange",function(e){return function(...t){return c(),e.apply(this,t)}}):this.addEventListener("readystatechange",c),(0,i.GS)(this,"setRequestHeader",function(e){return function(...t){let[r,n]=t,i=this[l];return i&&(0,s.Kg)(r)&&(0,s.Kg)(n)&&(i.request_headers[r.toLowerCase()]=n),e.apply(this,t)}}),e.apply(this,t)}}),(0,i.GS)(e,"send",function(e){return function(...t){let r=this[l];if(!r)return e.apply(this,t);void 0!==t[0]&&(r.body=t[0]);let i={startTimestamp:1e3*(0,o.zf)(),xhr:this};return(0,n.aj)("xhr",i),e.apply(this,t)}})}function h(e){if((0,s.Kg)(e))return e;try{return e.toString()}catch(e){}}},31146:(e,t,r)=>{"use strict";r.d(t,{j:()=>n});let n=r(99513).O},27555:(e,t,r)=>{"use strict";r.d(t,{T:()=>n});let n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},66024:(e,t,r)=>{"use strict";r.d(t,{LV:()=>d,jN:()=>c,jf:()=>l});var n=r(56836),i=r(19639),o=r(99513),s=r(30535),a=r(26932);let l=o.O,u=0;function c(){return u>0}function h(){u++,setTimeout(()=>{u--})}function d(e,t={},r){if("function"!=typeof e)return e;try{let t=e.__sentry_wrapped__;if(t)return t;if((0,s.sp)(e))return e}catch(t){return e}let o=function(){let o=Array.prototype.slice.call(arguments);try{r&&"function"==typeof r&&r.apply(this,arguments);let n=o.map(e=>d(e,t));return e.apply(this,n)}catch(e){throw h(),(0,n.v4)(r=>{r.addEventProcessor(e=>(t.mechanism&&((0,a.gO)(e,void 0,void 0),(0,a.M6)(e,t.mechanism)),e.extra={...e.extra,arguments:o},e)),(0,i.Cp)(e)}),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(o[t]=e[t])}catch(e){}(0,s.pO)(o,e),(0,s.my)(e,"__sentry_wrapped__",o);try{Object.getOwnPropertyDescriptor(o,"name").configurable&&Object.defineProperty(o,"name",{get:()=>e.name})}catch(e){}return o}},23123:(e,t,r)=>{"use strict";let n,i,o,s;r.d(t,{Ts:()=>rt,mn:()=>rr});var a=r(7504),l=r(26932),u=r(45425),c=r(73894);let h=[];function d(e){let t={};return e.forEach(e=>{let{name:r}=e,n=t[r];n&&!n.isDefaultInstance&&e.isDefaultInstance||(t[r]=e)}),Object.values(t)}function f(e){let t;let r=e.defaultIntegrations||[],n=e.integrations;r.forEach(e=>{e.isDefaultInstance=!0});let i=d(t=Array.isArray(n)?[...r,...n]:"function"==typeof n?(0,l.k9)(n(r)):r),o=i.findIndex(e=>"Debug"===e.name);if(o>-1){let[e]=i.splice(o,1);i.push(e)}return i}function p(e,t){let r={};return t.forEach(t=>{t&&g(e,t,r)}),r}function m(e,t){for(let r of t)r&&r.afterAllSetup&&r.afterAllSetup(e)}function g(e,t,r){if(r[t.name]){c.T&&a.vF.log(`Integration skipped because it was already installed: ${t.name}`);return}if(r[t.name]=t,-1===h.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),h.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,n)=>r(t,n,e))}if("function"==typeof t.processEvent){let r=t.processEvent.bind(t),n=Object.assign((t,n)=>r(t,n,e),{id:t.name});e.addEventProcessor(n)}c.T&&a.vF.log(`Integration installed: ${t.name}`)}function v(e){return e}let y=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"],E="InboundFilters",_=v((e={})=>({name:E,processEvent:(t,r,n)=>A(t,b(e,n.getOptions()))?null:t}));function b(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:y],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}function A(e,t){return t.ignoreInternal&&R(e)?(c.T&&a.vF.warn(`Event dropped due to being internal Sentry Error. Event: ${(0,l.$X)(e)}`),!0):T(e,t.ignoreErrors)?(c.T&&a.vF.warn(`Event dropped due to being matched by \`ignoreErrors\` option. Event: ${(0,l.$X)(e)}`),!0):I(e)?(c.T&&a.vF.warn(`Event dropped due to not having an error message, error type or stacktrace. Event: ${(0,l.$X)(e)}`),!0):C(e,t.ignoreTransactions)?(c.T&&a.vF.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. Event: ${(0,l.$X)(e)}`),!0):S(e,t.denyUrls)?(c.T&&a.vF.warn(`Event dropped due to being matched by \`denyUrls\` option. Event: ${(0,l.$X)(e)}. Url: ${L(e)}`),!0):!w(e,t.allowUrls)&&(c.T&&a.vF.warn(`Event dropped due to not being matched by \`allowUrls\` option. Event: ${(0,l.$X)(e)}. Url: ${L(e)}`),!0)}function T(e,t){return!e.type&&!!t&&!!t.length&&x(e).some(e=>(0,u.Xr)(e,t))}function C(e,t){if("transaction"!==e.type||!t||!t.length)return!1;let r=e.transaction;return!!r&&(0,u.Xr)(r,t)}function S(e,t){if(!t||!t.length)return!1;let r=L(e);return!!r&&(0,u.Xr)(r,t)}function w(e,t){if(!t||!t.length)return!0;let r=L(e);return!r||(0,u.Xr)(r,t)}function x(e){let t;let r=[];e.message&&r.push(e.message);try{t=e.exception.values[e.exception.values.length-1]}catch(e){}return t&&t.value&&(r.push(t.value),t.type&&r.push(`${t.type}: ${t.value}`)),r}function R(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}function k(e=[]){for(let t=e.length-1;t>=0;t--){let r=e[t];if(r&&""!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}function L(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?k(t):null}catch(t){return c.T&&a.vF.error(`Cannot extract url for event ${(0,l.$X)(e)}`),null}}function I(e){return!e.type&&!!e.exception&&!!e.exception.values&&0!==e.exception.values.length&&!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value)}var O=r(30535),D=r(56836);let N="FunctionToString",P=new WeakMap,M=v(()=>({name:N,setupOnce(){n=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=(0,O.sp)(this),r=P.has((0,D.KU)())&&void 0!==t?t:this;return n.apply(r,e)}}catch(e){}},setup(e){P.set(e,!0)}}));var B=r(59353);let U="Dedupe",F=v(()=>{let e;return{name:U,processEvent(t){if(t.type)return t;try{if(j(t,e))return c.T&&a.vF.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}});function j(e,t){return!!t&&!!(K(e,t)||V(e,t))}function K(e,t){let r=e.message,n=t.message;return!!((r||n)&&(!r||n)&&(r||!n)&&r===n&&z(e,t)&&H(e,t))}function V(e,t){let r=G(t),n=G(e);return!!(r&&n&&r.type===n.type&&r.value===n.value&&z(e,t)&&H(e,t))}function H(e,t){let r=(0,B.RV)(e),n=(0,B.RV)(t);if(!r&&!n)return!0;if(r&&!n||!r&&n||n.length!==r.length)return!1;for(let e=0;e{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),(0,D.o5)().update(t.initialScope);let r=new e(t);return W(r),r.init(),r}function W(e){(0,D.o5)().setClient(e)}var X=r(19639),Y=r(19355);let Q="7";function Z(e){let t=e.protocol?`${e.protocol}:`:"",r=e.port?`:${e.port}`:"";return`${t}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}function J(e){return`${Z(e)}${e.projectId}/envelope/`}function ee(e,t){return(0,O.u4)({sentry_key:e.publicKey,sentry_version:Q,...t&&{sentry_client:`${t.name}/${t.version}`}})}function et(e,t,r){return t||`${J(e)}?${ee(e,r)}`}function er(e,t){let r=(0,Y.AD)(e);if(!r)return"";let n=`${Z(r)}embed/error-page/`,i=`dsn=${(0,Y.SB)(r)}`;for(let e in t)if("dsn"!==e&&"onClose"!==e){if("user"===e){let e=t.user;if(!e)continue;e.name&&(i+=`&name=${encodeURIComponent(e.name)}`),e.email&&(i+=`&email=${encodeURIComponent(e.email)}`)}else i+=`&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`}return`${n}?${i}`}var en=r(82228),ei=r(45265),eo=r(5868),es=r(27326),ea=r(68972);class el extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}var eu=r(5917);function ec(e,t,r){let n=[{type:"client_report"},{timestamp:r||(0,eu.lu)(),discarded_events:e}];return(0,ea.h4)(t?{dsn:t}:{},[n])}var eh=r(53926),ed=r(42924),ef=r(46994),ep=r(81361),em=r(17696);let eg="Not capturing exception because it's already been captured.";class ev{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=(0,Y.AD)(e.dsn):c.T&&a.vF.warn("No DSN provided, client will not send events."),this._dsn){let t=et(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,r){let n=(0,l.eJ)();if((0,l.GR)(e))return c.T&&a.vF.log(eg),n;let i={event_id:n,...t};return this._process(this.eventFromException(e,i).then(e=>this._captureEvent(e,i,r))),i.event_id}captureMessage(e,t,r,n){let i={event_id:(0,l.eJ)(),...r},o=(0,eo.NF)(e)?e:String(e),s=(0,eo.sO)(e)?this.eventFromMessage(o,t,i):this.eventFromException(e,i);return this._process(s.then(e=>this._captureEvent(e,i,n))),i.event_id}captureEvent(e,t,r){let n=(0,l.eJ)();if(t&&t.originalException&&(0,l.GR)(t.originalException))return c.T&&a.vF.log(eg),n;let i={event_id:n,...t},o=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,i,o||r)),i.event_id}captureSession(e){"string"!=typeof e.release?c.T&&a.vF.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),(0,ed.qO)(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let t=this._transport;return t?(this.emit("flush"),this._isClientDoneProcessing(e).then(r=>t.flush(e).then(e=>r&&e))):(0,es.XW)(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,this.emit("close"),e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let t=this._integrations[e.name];g(this,e,this._integrations),t||m(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let r=(0,eh.V7)(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])r=(0,ea.W3)(r,(0,ea.bm)(e));let n=this.sendEnvelope(r);n&&n.then(t=>this.emit("afterSendEvent",e,t),null)}sendSession(e){let t=(0,eh.LE)(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(t)}recordDroppedEvent(e,t,r){if(this._options.sendClientReports){let r=`${e}:${t}`;c.T&&a.vF.log(`Adding outcome: "${r}"`),this._outcomes[r]=(this._outcomes[r]||0)+1}}on(e,t){let r=this._hooks[e]=this._hooks[e]||[];return r.push(t),()=>{let e=r.indexOf(t);e>-1&&r.splice(e,1)}}emit(e,...t){let r=this._hooks[e];r&&r.forEach(e=>e(...t))}sendEnvelope(e){return(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)?this._transport.send(e).then(null,e=>(c.T&&a.vF.error("Error while sending event:",e),e)):(c.T&&a.vF.error("Transport disabled"),(0,es.XW)({}))}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=p(this,e),m(this,e)}_updateSessionFromEvent(e,t){let r=!1,n=!1,i=t.exception&&t.exception.values;if(i)for(let e of(n=!0,i)){let t=e.mechanism;if(t&&!1===t.handled){r=!0;break}}let o="ok"===e.status;(o&&0===e.errors||o&&r)&&((0,ed.qO)(e,{...r&&{status:"crashed"},errors:e.errors||Number(n||r)}),this.captureSession(e))}_isClientDoneProcessing(e){return new es.T2(t=>{let r=0,n=1,i=setInterval(()=>{0==this._numProcessing?(clearInterval(i),t(!0)):(r+=n,e&&r>=e&&(clearInterval(i),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,r,n=(0,D.rm)()){let i=this.getOptions(),o=Object.keys(this._integrations);return!t.integrations&&o.length>0&&(t.integrations=o),this.emit("preprocessEvent",e,t),e.type||n.setLastEventId(e.event_id||t.event_id),(0,em.mG)(i,e,t,r,this,n).then(e=>{if(null===e)return e;let t={...n.getPropagationContext(),...r?r.getPropagationContext():void 0};if(!(e.contexts&&e.contexts.trace)&&t){let{traceId:r,spanId:n,parentSpanId:i,dsc:o}=t;e.contexts={trace:(0,O.Ce)({trace_id:r,span_id:n,parent_span_id:i}),...e.contexts};let s=o||(0,ef.lF)(r,this);e.sdkProcessingMetadata={dynamicSamplingContext:s,...e.sdkProcessingMetadata}}return e})}_captureEvent(e,t={},r){return this._processEvent(e,t,r).then(e=>e.event_id,e=>{if(c.T){let t=e;"log"===t.logLevel?a.vF.log(t.message):a.vF.warn(t)}})}_processEvent(e,t,r){let n=this.getOptions(),{sampleRate:i}=n,o=eb(e),s=e_(e),a=e.type||"error",l=`before send for type \`${a}\``,u=void 0===i?void 0:(0,ep.i)(i);if(s&&"number"==typeof u&&Math.random()>u)return this.recordDroppedEvent("sample_rate","error",e),(0,es.xg)(new el(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));let c="replay_event"===a?"replay":a,h=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,r,h).then(r=>{if(null===r)throw this.recordDroppedEvent("event_processor",c,e),new el("An event processor returned `null`, will not send event.","log");return t.data&&!0===t.data.__sentry__?r:ey(eE(this,n,r,t),l)}).then(n=>{if(null===n){if(this.recordDroppedEvent("before_send",c,e),eb(e)){let t=1+(e.spans||[]).length;this._outcomes.span=(this._outcomes.span||0)+t}throw new el(`${l} returned \`null\`, will not send event.`,"log")}let i=r&&r.getSession();!o&&i&&this._updateSessionFromEvent(i,n);let s=n.transaction_info;if(o&&s&&n.transaction!==e.transaction){let e="custom";n.transaction_info={...s,source:e}}return this.sendEvent(n,t),n}).then(null,e=>{if(e instanceof el)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new el(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. Reason: ${e}`)})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[r,n]=e.split(":");return{reason:r,category:n,quantity:t}})}_flushOutcomes(){c.T&&a.vF.log("Flushing outcomes...");let e=this._clearOutcomes();if(0===e.length){c.T&&a.vF.log("No outcomes to send");return}if(!this._dsn){c.T&&a.vF.log("No dsn provided, will not send outcomes");return}c.T&&a.vF.log("Sending outcomes:",e);let t=ec(e,this._options.tunnel&&(0,Y.SB)(this._dsn));this.sendEnvelope(t)}}function ey(e,t){let r=`${t} must return \`null\` or a valid event.`;if((0,eo.Qg)(e))return e.then(e=>{if(!(0,eo.Qd)(e)&&null!==e)throw new el(r);return e},e=>{throw new el(`${t} rejected with ${e}`)});if(!(0,eo.Qd)(e)&&null!==e)throw new el(r);return e}function eE(e,t,r,n){let{beforeSend:i,beforeSendTransaction:o,beforeSendSpan:s}=t;if(e_(r)&&i)return i(r,n);if(eb(r)){if(r.spans&&s){let t=[];for(let n of r.spans){let r=s(n);r?t.push(r):e.recordDroppedEvent("before_send","span")}r.spans=t}if(o)return o(r,n)}return r}function e_(e){return void 0===e.type}function eb(e){return"transaction"===e.type}var eA=r(74015);function eT(){return"npm"}var eC=r(27555),eS=r(80161);function ew(e,t){let r=ek(e,t),n={type:t&&t.name,value:eD(t)};return r.length&&(n.stacktrace={frames:r}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function ex(e,t,r,n){let i=(0,D.KU)(),o=i&&i.getOptions().normalizeDepth,s=ej(t),a={__serialized__:(0,eS.cd)(t,o)};if(s)return{exception:{values:[ew(e,s)]},extra:a};let l={exception:{values:[{type:(0,eo.xH)(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:eU(t,{isUnhandledRejection:n})}]},extra:a};if(r){let t=ek(e,r);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}function eR(e,t){return{exception:{values:[ew(e,t)]}}}function ek(e,t){let r=t.stacktrace||t.stack||"",n=eI(t),i=eO(t);try{return e(r,n,i)}catch(e){}return[]}let eL=/Minified React error #\d+;/i;function eI(e){return e&&eL.test(e.message)?1:0}function eO(e){return"number"==typeof e.framesToPop?e.framesToPop:0}function eD(e){let t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function eN(e,t,r,n){let i=eM(e,t,r&&r.syntheticException||void 0,n);return(0,l.M6)(i),i.level="error",r&&r.event_id&&(i.event_id=r.event_id),(0,es.XW)(i)}function eP(e,t,r="info",n,i){let o=eB(e,t,n&&n.syntheticException||void 0,i);return o.level=r,n&&n.event_id&&(o.event_id=n.event_id),(0,es.XW)(o)}function eM(e,t,r,n,i){let o;if((0,eo.T2)(t)&&t.error)return eR(e,t.error);if((0,eo.BD)(t)||(0,eo.W6)(t)){let i=t;if("stack"in t)o=eR(e,t);else{let t=i.name||((0,eo.BD)(i)?"DOMError":"DOMException"),s=i.message?`${t}: ${i.message}`:t;o=eB(e,s,r,n),(0,l.gO)(o,s)}return"code"in i&&(o.tags={...o.tags,"DOMException.code":`${i.code}`}),o}return(0,eo.bJ)(t)?eR(e,t):((0,eo.Qd)(t)||(0,eo.xH)(t)?o=ex(e,t,r,i):(o=eB(e,t,r,n),(0,l.gO)(o,`${t}`,void 0)),(0,l.M6)(o,{synthetic:!0}),o)}function eB(e,t,r,n){let i={};if(n&&r){let n=ek(e,r);n.length&&(i.exception={values:[{value:t,stacktrace:{frames:n}}]})}if((0,eo.NF)(t)){let{__sentry_template_string__:e,__sentry_template_values__:r}=t;return i.logentry={message:e,params:r},i}return i.message=t,i}function eU(e,{isUnhandledRejection:t}){let r=(0,O.HF)(e),n=t?"promise rejection":"exception";if((0,eo.T2)(e))return`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``;if((0,eo.xH)(e)){let t=eF(e);return`Event \`${t}\` (type=${e.type}) captured as ${n}`}return`Object captured as ${n} with keys: ${r}`}function eF(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}function ej(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let r=e[t];if(r instanceof Error)return r}}var eK=r(66024);function eV(e,{metadata:t,tunnel:r,dsn:n}){let i={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!r&&!!n&&{dsn:(0,Y.SB)(n)}},o=eH(e);return(0,ea.h4)(i,[o])}function eH(e){return[{type:"user_report"},e]}class ez extends ev{constructor(e){let t={parentSpanIsAlwaysRootSpan:!0,...e},r=eK.jf.SENTRY_SDK_SOURCE||eT();(0,eA.K)(t,"browser",["browser"],r),super(t),t.sendClientReports&&eK.jf.document&&eK.jf.document.addEventListener("visibilitychange",()=>{"hidden"===eK.jf.document.visibilityState&&this._flushOutcomes()})}eventFromException(e,t){return eN(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",r){return eP(this._options.stackParser,e,t,r,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){eC.T&&a.vF.warn("SDK not enabled, will not capture user feedback.");return}let t=eV(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(t)}_prepareEvent(e,t,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,r)}}var e$=r(49381),eG=r(31146);let eq=1e3;function eW(e){let t="dom";(0,e$.s5)(t,e),(0,e$.AS)(t,eX)}function eX(){if(!eG.j.document)return;let e=e$.aj.bind(null,"dom"),t=eZ(e,!0);eG.j.document.addEventListener("click",t,!1),eG.j.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let r=eG.j[t]&&eG.j[t].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&((0,O.GS)(r,"addEventListener",function(t){return function(r,n,i){if("click"===r||"keypress"==r)try{let n=this,o=n.__sentry_instrumentation_handlers__=n.__sentry_instrumentation_handlers__||{},s=o[r]=o[r]||{refCount:0};if(!s.handler){let n=eZ(e);s.handler=n,t.call(this,r,n,i)}s.refCount++}catch(e){}return t.call(this,r,n,i)}}),(0,O.GS)(r,"removeEventListener",function(e){return function(t,r,n){if("click"===t||"keypress"==t)try{let r=this,i=r.__sentry_instrumentation_handlers__||{},o=i[t];o&&(o.refCount--,o.refCount<=0&&(e.call(this,t,o.handler,n),o.handler=void 0,delete i[t]),0===Object.keys(i).length&&delete r.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,r,n)}}))})}function eY(e){if(e.type!==o)return!1;try{if(!e.target||e.target._sentryId!==s)return!1}catch(e){}return!0}function eQ(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}function eZ(e,t=!1){return r=>{if(!r||r._sentryCaptured)return;let n=eJ(r);if(eQ(r.type,n))return;(0,O.my)(r,"_sentryCaptured",!0),n&&!n._sentryId&&(0,O.my)(n,"_sentryId",(0,l.eJ)());let a="keypress"===r.type?"input":r.type;eY(r)||(e({event:r,name:a,global:t}),o=r.type,s=n?n._sentryId:void 0),clearTimeout(i),i=eG.j.setTimeout(()=>{s=void 0,o=void 0},eq)}}function eJ(e){try{return e.target}catch(e){return null}}var e0=r(25407);let e1=100;function e2(e,t){let r=(0,D.KU)(),n=(0,D.rm)();if(!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:o=e1}=r.getOptions();if(o<=0)return;let s={timestamp:(0,eu.lu)(),...e},l=i?(0,a.pq)(()=>i(s,t)):s;null!==l&&(r.emit&&r.emit("beforeAddBreadcrumb",l,t),n.addBreadcrumb(l,o))}var e3=r(99513);function e4(e){let t="console";(0,e$.s5)(t,e),(0,e$.AS)(t,e5)}function e5(){"console"in e3.O&&a.Ow.forEach(function(e){e in e3.O.console&&(0,O.GS)(e3.O.console,e,function(t){return a.Z9[e]=t,function(...t){let r={args:t,level:e};(0,e$.aj)("console",r);let n=a.Z9[e];n&&n.apply(e3.O.console,t)}})})}var e6=r(54510),e7=r(53322);let e8=["fatal","error","warning","log","info","debug"];function e9(e){return"warn"===e?"warning":e8.includes(e)?e:"log"}var te=r(41355);let tt=1024,tr="Breadcrumbs",tn=v((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:tr,setup(e){t.console&&e4(ts(e)),t.dom&&eW(to(e,t.dom)),t.xhr&&(0,e0.Mn)(ta(e)),t.fetch&&(0,e6.u)(tl(e)),t.history&&(0,ei._)(tu(e)),t.sentry&&e.on("beforeSendEvent",ti(e))}}});function ti(e){return function(t){(0,D.KU)()===e&&e2({category:`sentry.${"transaction"===t.type?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:(0,l.$X)(t)},{event:t})}}function to(e,t){return function(r){let n,i;if((0,D.KU)()!==e)return;let o="object"==typeof t?t.serializeAttribute:void 0,s="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;s&&s>tt&&(eC.T&&a.vF.warn(`\`dom.maxStringLength\` cannot exceed ${tt}, but a value of ${s} was configured. Sentry will use ${tt} instead.`),s=tt),"string"==typeof o&&(o=[o]);try{let e=r.event,t=tc(e)?e.target:e;n=(0,e7.Hd)(t,{keyAttrs:o,maxStringLength:s}),i=(0,e7.xE)(t)}catch(e){n=""}if(0===n.length)return;let l={category:`ui.${r.name}`,message:n};i&&(l.data={"ui.component_name":i}),e2(l,{event:r.event,name:r.name,global:r.global})}}function ts(e){return function(t){if((0,D.KU)()!==e)return;let r={category:"console",data:{arguments:t.args,logger:"console"},level:e9(t.level),message:(0,u.gt)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;r.message=`Assertion failed: ${(0,u.gt)(t.args.slice(1)," ")||"console.assert"}`,r.data.arguments=t.args.slice(1)}e2(r,{input:t.args,level:t.level})}}function ta(e){return function(t){if((0,D.KU)()!==e)return;let{startTimestamp:r,endTimestamp:n}=t,i=t.xhr[e0.Er];if(!r||!n||!i)return;let{method:o,url:s,status_code:a,body:l}=i;e2({category:"xhr",data:{method:o,url:s,status_code:a},type:"http"},{xhr:t.xhr,input:l,startTimestamp:r,endTimestamp:n})}}function tl(e){return function(t){if((0,D.KU)()!==e)return;let{startTimestamp:r,endTimestamp:n}=t;if(!(!n||t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method)){if(t.error)e2({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:r,endTimestamp:n});else{let e=t.response;e2({category:"fetch",data:{...t.fetchData,status_code:e&&e.status},type:"http"},{input:t.args,response:e,startTimestamp:r,endTimestamp:n})}}}}function tu(e){return function(t){if((0,D.KU)()!==e)return;let r=t.from,n=t.to,i=(0,te.Dl)(eK.jf.location.href),o=r?(0,te.Dl)(r):void 0,s=(0,te.Dl)(n);o&&o.path||(o=i),i.protocol===s.protocol&&i.host===s.host&&(n=s.relative),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),e2({category:"navigation",data:{from:r,to:n}})}}function tc(e){return!!e&&!!e.target}let th=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],td="BrowserApiErrors",tf=v((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:td,setupOnce(){t.setTimeout&&(0,O.GS)(eK.jf,"setTimeout",tp),t.setInterval&&(0,O.GS)(eK.jf,"setInterval",tp),t.requestAnimationFrame&&(0,O.GS)(eK.jf,"requestAnimationFrame",tm),t.XMLHttpRequest&&"XMLHttpRequest"in eK.jf&&(0,O.GS)(XMLHttpRequest.prototype,"send",tg);let e=t.eventTarget;e&&(Array.isArray(e)?e:th).forEach(tv)}}});function tp(e){return function(...t){let r=t[0];return t[0]=(0,eK.LV)(r,{mechanism:{data:{function:(0,B.qQ)(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function tm(e){return function(t){return e.apply(this,[(0,eK.LV)(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,B.qQ)(e)},handled:!1,type:"instrument"}})])}}function tg(e){return function(...t){let r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in r&&"function"==typeof r[e]&&(0,O.GS)(r,e,function(t){let r={mechanism:{data:{function:e,handler:(0,B.qQ)(t)},handled:!1,type:"instrument"}},n=(0,O.sp)(t);return n&&(r.mechanism.data.handler=(0,B.qQ)(n)),(0,eK.LV)(t,r)})}),e.apply(this,t)}}function tv(e){let t=eK.jf,r=t[e]&&t[e].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&((0,O.GS)(r,"addEventListener",function(t){return function(r,n,i){try{"function"==typeof n.handleEvent&&(n.handleEvent=(0,eK.LV)(n.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,B.qQ)(n),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[r,(0,eK.LV)(n,{mechanism:{data:{function:"addEventListener",handler:(0,B.qQ)(n),target:e},handled:!1,type:"instrument"}}),i])}}),(0,O.GS)(r,"removeEventListener",function(e){return function(t,r,n){let i=r;try{let r=i&&i.__sentry_wrapped__;r&&e.call(this,t,r,n)}catch(e){}return e.call(this,t,i,n)}}))}var ty=r(45681),tE=r(26369);let t_="GlobalHandlers",tb=v((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:t_,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(tA(e),tx("onerror")),t.onunhandledrejection&&(tT(e),tx("onunhandledrejection"))}}});function tA(e){(0,ty.L)(t=>{let{stackParser:r,attachStacktrace:n}=tR();if((0,D.KU)()!==e||(0,eK.jN)())return;let{msg:i,url:o,line:s,column:a,error:l}=t,u=tw(eM(r,l||i,void 0,n,!1),o,s,a);u.level="error",(0,X.r)(u,{originalException:l,mechanism:{handled:!1,type:"onerror"}})})}function tT(e){(0,tE.r)(t=>{let{stackParser:r,attachStacktrace:n}=tR();if((0,D.KU)()!==e||(0,eK.jN)())return;let i=tC(t),o=(0,eo.sO)(i)?tS(i):eM(r,i,void 0,n,!0);o.level="error",(0,X.r)(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function tC(e){if((0,eo.sO)(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(e){}return e}function tS(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function tw(e,t,r,n){let i=e.exception=e.exception||{},o=i.values=i.values||[],s=o[0]=o[0]||{},a=s.stacktrace=s.stacktrace||{},l=a.frames=a.frames||[],u=isNaN(parseInt(n,10))?void 0:n,c=isNaN(parseInt(r,10))?void 0:r,h=(0,eo.Kg)(t)&&t.length>0?t:(0,e7.$N)();return 0===l.length&&l.push({colno:u,filename:h,function:B.yF,in_app:!0,lineno:c}),e}function tx(e){eC.T&&a.vF.log(`Global Handler attached: ${e}`)}function tR(){let e=(0,D.KU)();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}let tk=v(()=>({name:"HttpContext",preprocessEvent(e){if(!eK.jf.navigator&&!eK.jf.location&&!eK.jf.document)return;let t=e.request&&e.request.url||eK.jf.location&&eK.jf.location.href,{referrer:r}=eK.jf.document||{},{userAgent:n}=eK.jf.navigator||{},i={...e.request&&e.request.headers,...r&&{Referer:r},...n&&{"User-Agent":n}},o={...e.request,...t&&{url:t},headers:i};e.request=o}}));function tL(e,t,r=250,n,i,o,s){if(!o.exception||!o.exception.values||!s||!(0,eo.tH)(s.originalException,Error))return;let a=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;a&&(o.exception.values=tN(tI(e,t,i,s.originalException,n,o.exception.values,a,0),r))}function tI(e,t,r,n,i,o,s,a){if(o.length>=r+1)return o;let l=[...o];if((0,eo.tH)(n[i],Error)){tO(s,a);let o=e(t,n[i]),u=l.length;tD(o,i,u,a),l=tI(e,t,r,n[i],i,[o,...l],o,u)}return Array.isArray(n.errors)&&n.errors.forEach((n,o)=>{if((0,eo.tH)(n,Error)){tO(s,a);let u=e(t,n),c=l.length;tD(u,`errors[${o}]`,c,a),l=tI(e,t,r,n,i,[u,...l],u,c)}}),l}function tO(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function tD(e,t,r,n){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:n}}function tN(e,t){return e.map(e=>(e.value&&(e.value=(0,u.xv)(e.value,t)),e))}let tP="cause",tM=5,tB="LinkedErrors",tU=v((e={})=>{let t=e.limit||tM,r=e.key||tP;return{name:tB,preprocessEvent(e,n,i){let o=i.getOptions();tL(ew,o.stackParser,o.maxValueLength,r,t,e,n)}}});function tF(e,t,r,n){let i={filename:e,function:""===t?B.yF:t,in_app:!0};return void 0!==r&&(i.lineno=r),void 0!==n&&(i.colno=n),i}let tj=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,tK=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,tV=/\((\S*)(?::(\d+))(?::(\d+))\)/,tH=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,tz=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,t$=[[30,e=>{let t=tj.exec(e);if(t){let[,e,r,n]=t;return tF(e,B.yF,+r,+n)}let r=tK.exec(e);if(r){if(r[2]&&0===r[2].indexOf("eval")){let e=tV.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}let[e,t]=tq(r[1]||B.yF,r[2]);return tF(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],[50,e=>{let t=tH.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=tz.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],r=t[1]||B.yF;return[r,e]=tq(r,e),tF(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]],tG=(0,B.gd)(...t$),tq=(e,t)=>{let r=-1!==e.indexOf("safari-extension"),n=-1!==e.indexOf("safari-web-extension");return r||n?[-1!==e.indexOf("@")?e.split("@")[0]:B.yF,r?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};var tW=r(3825);let tX={};function tY(e){let t=tX[e];if(t)return t;let r=eG.j[e];if((0,en.a3)(r))return tX[e]=r.bind(eG.j);let n=eG.j.document;if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch(t){tW.T&&a.vF.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return r?tX[e]=r.bind(eG.j):r}function tQ(e){tX[e]=void 0}function tZ(e){let t=[];function r(){return void 0===e||t.lengthn(i)).then(null,()=>n(i).then(null,()=>{})),i}function o(e){return new es.T2((r,n)=>{let i=t.length;if(!i)return r(!0);let o=setTimeout(()=>{e&&e>0&&r(!1)},e);t.forEach(e=>{(0,es.XW)(e).then(()=>{--i||(clearTimeout(o),r(!0))},n)})})}return{$:t,add:i,drain:o}}let tJ=6e4;function t0(e,t=Date.now()){let r=parseInt(`${e}`,10);if(!isNaN(r))return 1e3*r;let n=Date.parse(`${e}`);return isNaN(n)?tJ:n-t}function t1(e,t){return e[t]||e.all||0}function t2(e,t,r=Date.now()){return t1(e,t)>r}function t3(e,{statusCode:t,headers:r},n=Date.now()){let i={...e},o=r&&r["x-sentry-rate-limits"],s=r&&r["retry-after"];if(o)for(let e of o.trim().split(",")){let[t,r,,,o]=e.split(":",5),s=parseInt(t,10),a=(isNaN(s)?60:s)*1e3;if(r)for(let e of r.split(";"))"metric_bucket"===e?(!o||o.split(";").includes("custom"))&&(i[e]=n+a):i[e]=n+a;else i.all=n+a}else s?i.all=n+t0(s,n):429===t&&(i.all=n+6e4);return i}let t4=64;function t5(e,t,r=tZ(e.bufferSize||t4)){let n={};return{send:function(i){let o=[];if((0,ea.yH)(i,(t,r)=>{let i=(0,ea.zk)(r);if(t2(n,i)){let n=t6(t,r);e.recordDroppedEvent("ratelimit_backoff",i,n)}else o.push(t)}),0===o.length)return(0,es.XW)({});let s=(0,ea.h4)(i[0],o),l=t=>{(0,ea.yH)(s,(r,n)=>{let i=t6(r,n);e.recordDroppedEvent(t,(0,ea.zk)(n),i)})},u=()=>t({body:(0,ea.bN)(s)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&c.T&&a.vF.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),n=t3(n,e),e),e=>{throw l("network_error"),e});return r.add(u).then(e=>e,e=>{if(e instanceof el)return c.T&&a.vF.error("Skipped sending event because buffer is full."),l("queue_overflow"),(0,es.XW)({});throw e})},flush:e=>r.drain(e)}}function t6(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}function t7(e,t=tY("fetch")){let r=0,n=0;function i(i){let o=i.body.length;r+=o,n++;let s={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:r<=6e4&&n<15,...e.fetchOptions};if(!t)return tQ("fetch"),(0,es.xg)("No fetch implementation available");try{return t(e.url,s).then(e=>(r-=o,n--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}))}catch(e){return tQ("fetch"),r-=o,n--,(0,es.xg)(e)}}return t5(e,i)}function t8(e){return[_(),M(),tf(),tn(),tb(),tU(),F(),tk()]}function t9(e={}){return{defaultIntegrations:t8(),release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:eK.jf.SENTRY_RELEASE&&eK.jf.SENTRY_RELEASE.id?eK.jf.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0,...e}}function re(){let e=eK.jf,t=e.chrome?"chrome":"browser",r=e[t],n=r&&r.runtime&&r.runtime.id,i=eK.jf.location&&eK.jf.location.href||"",o=["chrome-extension:","moz-extension:","ms-browser-extension:"],s=!!n&&eK.jf===eK.jf.top&&o.some(e=>i.startsWith(`${e}//`)),a=void 0!==e.nw;return!!n&&!s&&!a}function rt(e={}){let t=t9(e);if(re()){(0,a.pq)(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}eC.T&&!(0,en.vm)()&&a.vF.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill.");let r=q(ez,{...t,stackParser:(0,B.vk)(t.stackParser||tG),integrations:f(t),transport:t.transport||t7});return t.autoSessionTracking&&rn(),r}function rr(e={}){if(!eK.jf.document){eC.T&&a.vF.error("Global document not defined in showReportDialog call");return}let t=(0,D.o5)(),r=t.getClient(),n=r&&r.getDsn();if(!n){eC.T&&a.vF.error("DSN not configured for showReportDialog call");return}if(t&&(e.user={...t.getUser(),...e.user}),!e.eventId){let t=(0,X.Q)();t&&(e.eventId=t)}let i=eK.jf.document.createElement("script");i.async=!0,i.crossOrigin="anonymous",i.src=er(n,e),e.onLoad&&(i.onload=e.onLoad);let{onClose:o}=e;if(o){let e=t=>{if("__sentry_reportdialog_closed__"===t.data)try{o()}finally{eK.jf.removeEventListener("message",e)}};eK.jf.addEventListener("message",e)}let s=eK.jf.document.head||eK.jf.document.body;s?s.appendChild(i):eC.T&&a.vF.error("Not injecting report dialog. No injection point found in HTML")}function rn(){if(void 0===eK.jf.document){eC.T&&a.vF.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}(0,X.J0)({ignoreDuration:!0}),(0,X.J5)(),(0,ei._)(({from:e,to:t})=>{void 0!==e&&e!==t&&((0,X.J0)({ignoreDuration:!0}),(0,X.J5)())})}},28164:(e,t,r)=>{"use strict";r.d(t,{h:()=>m});var n=r(94972),i=r(5868),o=r(99513),s=r(35328);function a(){return(0,o.B)("defaultCurrentScope",()=>new s.H)}function l(){return(0,o.B)("defaultIsolationScope",()=>new s.H)}class u{constructor(e,t){let r,n;r=e||new s.H,n=t||new s.H,this._stack=[{scope:r}],this._isolationScope=n}withScope(e){let t;let r=this._pushScope();try{t=e(r)}catch(e){throw this._popScope(),e}return(0,i.Qg)(t)?t.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),t)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function c(){let e=(0,n.E)(),t=(0,n.S)(e);return t.stack=t.stack||new u(a(),l())}function h(e){return c().withScope(e)}function d(e,t){let r=c();return r.withScope(()=>(r.getStackTop().scope=e,t(e)))}function f(e){return c().withScope(()=>e(c().getIsolationScope()))}function p(){return{withIsolationScope:f,withScope:h,withSetScope:d,withSetIsolationScope:(e,t)=>f(t),getCurrentScope:()=>c().getScope(),getIsolationScope:()=>c().getIsolationScope()}}function m(e){let t=(0,n.S)(e);return t.acs?t.acs:p()}},94972:(e,t,r)=>{"use strict";r.d(t,{E:()=>o,S:()=>s});var n=r(99513),i=r(27710);function o(){return s(n.O),n.O}function s(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||i.M,t[i.M]=t[i.M]||{}}},89245:(e,t,r)=>{"use strict";r.d(t,{U:()=>n});let n="production"},56836:(e,t,r)=>{"use strict";r.d(t,{KU:()=>h,m6:()=>u,o5:()=>a,rm:()=>l,v4:()=>c});var n=r(99513),i=r(28164),o=r(94972),s=r(35328);function a(){let e=(0,o.E)();return(0,i.h)(e).getCurrentScope()}function l(){let e=(0,o.E)();return(0,i.h)(e).getIsolationScope()}function u(){return(0,n.B)("globalScope",()=>new s.H)}function c(...e){let t=(0,o.E)(),r=(0,i.h)(t);if(2===e.length){let[t,n]=e;return t?r.withSetScope(t,n):r.withScope(n)}return r.withScope(e[0])}function h(){return a().getClient()}},73894:(e,t,r)=>{"use strict";r.d(t,{T:()=>n});let n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},53926:(e,t,r)=>{"use strict";r.d(t,{LE:()=>l,V7:()=>u,lu:()=>c});var n=r(68972),i=r(19355),o=r(46994),s=r(49855);function a(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function l(e,t,r,o){let s=(0,n.Cj)(r),a={sent_at:new Date().toISOString(),...s&&{sdk:s},...!!o&&t&&{dsn:(0,i.SB)(t)}},l="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return(0,n.h4)(a,[l])}function u(e,t,r,i){let o=(0,n.Cj)(r),s=e.type&&"replay_event"!==e.type?e.type:"event";a(e,r&&r.sdk);let l=(0,n.n2)(e,o,i,t);delete e.sdkProcessingMetadata;let u=[{type:s},e];return(0,n.h4)(l,[u])}function c(e,t){function r(e){return!!e.trace_id&&!!e.public_key}let a=(0,o.k1)(e[0]),l=t&&t.getDsn(),u=t&&t.getOptions().tunnel,c={sent_at:new Date().toISOString(),...r(a)&&{trace:a},...!!u&&l&&{dsn:(0,i.SB)(l)}},h=t&&t.getOptions().beforeSendSpan,d=h?e=>h((0,s.et)(e)):e=>(0,s.et)(e),f=[];for(let t of e){let e=d(t);e&&f.push((0,n.y5)(e))}return(0,n.h4)(c,f)}},19639:(e,t,r)=>{"use strict";r.d(t,{Cp:()=>l,J0:()=>f,J5:()=>g,Q:()=>d,Wt:()=>h,o:()=>c,r:()=>u});var n=r(99513),i=r(89245),o=r(56836),s=r(42924),a=r(17696);function l(e,t){return(0,o.o5)().captureException(e,(0,a.li)(t))}function u(e,t){return(0,o.o5)().captureEvent(e,t)}function c(e,t){(0,o.rm)().setContext(e,t)}function h(e){(0,o.rm)().setTags(e)}function d(){return(0,o.rm)().lastEventId()}function f(e){let t=(0,o.KU)(),r=(0,o.rm)(),a=(0,o.o5)(),{release:l,environment:u=i.U}=t&&t.getOptions()||{},{userAgent:c}=n.O.navigator||{},h=(0,s.fj)({release:l,environment:u,user:a.getUser()||r.getUser(),...c&&{userAgent:c},...e}),d=r.getSession();return d&&"ok"===d.status&&(0,s.qO)(d,{status:"exited"}),p(),r.setSession(h),a.setSession(h),h}function p(){let e=(0,o.rm)(),t=(0,o.o5)(),r=t.getSession()||e.getSession();r&&(0,s.Vu)(r),m(),e.setSession(),t.setSession()}function m(){let e=(0,o.rm)(),t=(0,o.o5)(),r=(0,o.KU)(),n=t.getSession()||e.getSession();n&&r&&r.captureSession(n)}function g(e=!1){if(e){p();return}m()}},58317:(e,t,r)=>{"use strict";r.d(t,{g:()=>o});var n=r(30535);let i="_sentryMetrics";function o(e){let t=e[i];if(!t)return;let r={};for(let[,[e,i]]of t)(r[e]||(r[e]=[])).push((0,n.Ce)(i));return r}},35328:(e,t,r)=>{"use strict";r.d(t,{H:()=>d});var n=r(78809),i=r(5868),o=r(5917),s=r(26932),a=r(7504),l=r(42924),u=r(6777);let c=100;class h{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=(0,n.J)()}clone(){let e=new h;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,(0,u.r)(e,(0,u.f)(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&(0,l.qO)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t="function"==typeof e?e(this):e,[r,n]=t instanceof d?[t.getScopeData(),t.getRequestSession()]:(0,i.Qd)(t)?[e,e.requestSession]:[],{tags:o,extra:s,user:a,contexts:l,level:u,fingerprint:c=[],propagationContext:h}=r||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...s},this._contexts={...this._contexts,...l},a&&Object.keys(a).length&&(this._user=a),u&&(this._level=u),c.length&&(this._fingerprint=c),h&&(this._propagationContext=h),n&&(this._requestSession=n),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,(0,u.r)(this,void 0),this._attachments=[],this._propagationContext=(0,n.J)(),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let r="number"==typeof t?t:c;if(r<=0)return this;let n={timestamp:(0,o.lu)(),...e},i=this._breadcrumbs;return i.push(n),this._breadcrumbs=i.length>r?i.slice(-r):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:(0,u.f)(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let r=t&&t.event_id?t.event_id:(0,s.eJ)();if(!this._client)return a.vF.warn("No client configured on scope - will not capture exception!"),r;let n=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:n,...t,event_id:r},this),r}captureMessage(e,t,r){let n=r&&r.event_id?r.event_id:(0,s.eJ)();if(!this._client)return a.vF.warn("No client configured on scope - will not capture message!"),n;let i=Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...r,event_id:n},this),n}captureEvent(e,t){let r=t&&t.event_id?t.event_id:(0,s.eJ)();return this._client?this._client.captureEvent(e,{...t,event_id:r},this):a.vF.warn("No client configured on scope - will not capture event!"),r}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}let d=h},69959:(e,t,r)=>{"use strict";r.d(t,{E1:()=>c,JD:()=>s,Sn:()=>l,fs:()=>a,i_:()=>n,jG:()=>h,sy:()=>i,uT:()=>o,xc:()=>u});let n="sentry.source",i="sentry.sample_rate",o="sentry.op",s="sentry.origin",a="sentry.idle_span_finish_reason",l="sentry.measurement_unit",u="sentry.measurement_value",c="sentry.profile_id",h="sentry.exclusive_time"},42924:(e,t,r)=>{"use strict";r.d(t,{Vu:()=>l,fj:()=>s,qO:()=>a});var n=r(5917),i=r(26932),o=r(30535);function s(e){let t=(0,n.zf)(),r={sid:(0,i.eJ)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>u(r)};return e&&a(r,e),r}function a(e,t={}){if(!t.user||(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,n.zf)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,i.eJ)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function l(e,t){let r={};t?r={status:t}:"ok"===e.status&&(r={status:"exited"}),a(e,r)}function u(e){return(0,o.Ce)({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}},46994:(e,t,r)=>{"use strict";r.d(t,{LZ:()=>c,k1:()=>d,lF:()=>h});var n=r(30535),i=r(93164),o=r(89245),s=r(56836),a=r(69959),l=r(49855);let u="_frozenDsc";function c(e,t){let r=e;(0,n.my)(r,u,t)}function h(e,t){let r=t.getOptions(),{publicKey:i}=t.getDsn()||{},s=(0,n.Ce)({environment:r.environment||o.U,release:r.release,public_key:i,trace_id:e});return t.emit("createDsc",s),s}function d(e){let t=(0,s.KU)();if(!t)return{};let r=h((0,l.et)(e).trace_id||"",t),n=(0,l.zU)(e),o=n[u];if(o)return o;let c=n.spanContext().traceState,d=c&&c.get("sentry.dsc"),f=d&&(0,i.yD)(d);if(f)return f;let p=(0,l.et)(n),m=p.data||{},g=m[a.sy];null!=g&&(r.sample_rate=`${g}`);let v=m[a.i_],y=p.description;return"url"!==v&&y&&(r.transaction=y),r.sampled=String((0,l.pK)(n)),t.emit("createDsc",r,n),r}},28603:(e,t,r)=>{"use strict";r.d(t,{F3:()=>i,N8:()=>a,TJ:()=>o,a3:()=>n});let n=0,i=1,o=2;function s(e){if(e<400&&e>=100)return{code:i};if(e>=400&&e<500)switch(e){case 401:return{code:o,message:"unauthenticated"};case 403:return{code:o,message:"permission_denied"};case 404:return{code:o,message:"not_found"};case 409:return{code:o,message:"already_exists"};case 413:return{code:o,message:"failed_precondition"};case 429:return{code:o,message:"resource_exhausted"};case 499:return{code:o,message:"cancelled"};default:return{code:o,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:o,message:"unimplemented"};case 503:return{code:o,message:"unavailable"};case 504:return{code:o,message:"deadline_exceeded"};default:return{code:o,message:"internal_error"}}return{code:o,message:"unknown_error"}}function a(e,t){e.setAttribute("http.response.status_code",t);let r=s(t);"unknown_error"!==r.message&&e.setStatus(r)}},81361:(e,t,r)=>{"use strict";r.d(t,{i:()=>o});var n=r(7504),i=r(73894);function o(e){if("boolean"==typeof e)return Number(e);let t="string"==typeof e?parseFloat(e):e;if("number"!=typeof t||isNaN(t)||t<0||t>1){i.T&&n.vF.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`);return}return t}},17696:(e,t,r)=>{"use strict";r.d(t,{li:()=>P,mG:()=>x});var n=r(26932),i=r(5917),o=r(45425),s=r(99513),a=r(80161),l=r(89245),u=r(56836),c=r(27326),h=r(7504),d=r(5868),f=r(73894);function p(e,t,r,n=0){return new c.T2((i,o)=>{let s=e[n];if(null===t||"function"!=typeof s)i(t);else{let a=s({...t},r);f.T&&s.id&&null===a&&h.vF.log(`Event processor "${s.id}" dropped event`),(0,d.Qg)(a)?a.then(t=>p(e,t,r,n+1).then(i)).then(null,o):p(e,a,r,n+1).then(i).then(null,o)}})}var m=r(35328),g=r(30535),v=r(46994),y=r(49855);function E(e,t){let{fingerprint:r,span:n,breadcrumbs:i,sdkProcessingMetadata:o}=t;A(e,t),n&&S(e,n),w(e,r),T(e,i),C(e,o)}function _(e,t){let{extra:r,tags:n,user:i,contexts:o,level:s,sdkProcessingMetadata:a,breadcrumbs:l,fingerprint:u,eventProcessors:c,attachments:h,propagationContext:d,transactionName:f,span:p}=t;b(e,"extra",r),b(e,"tags",n),b(e,"user",i),b(e,"contexts",o),b(e,"sdkProcessingMetadata",a),s&&(e.level=s),f&&(e.transactionName=f),p&&(e.span=p),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),c.length&&(e.eventProcessors=[...e.eventProcessors,...c]),h.length&&(e.attachments=[...e.attachments,...h]),e.propagationContext={...e.propagationContext,...d}}function b(e,t,r){if(r&&Object.keys(r).length)for(let n in e[t]={...e[t]},r)Object.prototype.hasOwnProperty.call(r,n)&&(e[t][n]=r[n])}function A(e,t){let{extra:r,tags:n,user:i,contexts:o,level:s,transactionName:a}=t,l=(0,g.Ce)(r);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});let u=(0,g.Ce)(n);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});let c=(0,g.Ce)(i);c&&Object.keys(c).length&&(e.user={...c,...e.user});let h=(0,g.Ce)(o);h&&Object.keys(h).length&&(e.contexts={...h,...e.contexts}),s&&(e.level=s),a&&"transaction"!==e.type&&(e.transaction=a)}function T(e,t){let r=[...e.breadcrumbs||[],...t];e.breadcrumbs=r.length?r:void 0}function C(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function S(e,t){e.contexts={trace:(0,y.kX)(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,v.k1)(t),...e.sdkProcessingMetadata};let r=(0,y.zU)(t),n=(0,y.et)(r).description;n&&!e.transaction&&"transaction"===e.type&&(e.transaction=n)}function w(e,t){e.fingerprint=e.fingerprint?(0,n.k9)(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function x(e,t,r,o,s,a){let{normalizeDepth:l=3,normalizeMaxBreadth:c=1e3}=e,h={...t,event_id:t.event_id||r.event_id||(0,n.eJ)(),timestamp:t.timestamp||(0,i.lu)()},d=r.integrations||e.integrations.map(e=>e.name);R(h,e),O(h,d),s&&s.emit("applyFrameMetadata",t),void 0===t.type&&L(h,e.stackParser);let f=N(o,r.captureContext);r.mechanism&&(0,n.M6)(h,r.mechanism);let m=s?s.getEventProcessors():[],g=(0,u.m6)().getScopeData();a&&_(g,a.getScopeData()),f&&_(g,f.getScopeData());let v=[...r.attachments||[],...g.attachments];return v.length&&(r.attachments=v),E(h,g),p([...m,...g.eventProcessors],h,r).then(e=>(e&&I(e),"number"==typeof l&&l>0)?D(e,l,c):e)}function R(e,t){let{environment:r,release:n,dist:i,maxValueLength:s=250}=t;"environment"in e||(e.environment="environment"in t?r:l.U),void 0===e.release&&void 0!==n&&(e.release=n),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=(0,o.xv)(e.message,s));let a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=(0,o.xv)(a.value,s));let u=e.request;u&&u.url&&(u.url=(0,o.xv)(u.url,s))}let k=new WeakMap;function L(e,t){let r;let n=s.O._sentryDebugIds;if(!n)return;let i=k.get(t);i?r=i:(r=new Map,k.set(t,r));let o=Object.entries(n).reduce((e,[n,i])=>{let o;let s=r.get(n);s?o=s:(o=t(n),r.set(n,o));for(let t=o.length-1;t>=0;t--){let r=o[t];if(r.filename){e[r.filename]=i;break}}return e},{});try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.filename&&(e.debug_id=o[e.filename])})})}catch(e){}}function I(e){let t={};try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})})}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let r=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{r.push({type:"sourcemap",code_file:e,debug_id:t})})}function O(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function D(e,t,r){if(!e)return null;let n={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:(0,a.S8)(e.data,t,r)}}))},...e.user&&{user:(0,a.S8)(e.user,t,r)},...e.contexts&&{contexts:(0,a.S8)(e.contexts,t,r)},...e.extra&&{extra:(0,a.S8)(e.extra,t,r)}};return e.contexts&&e.contexts.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=(0,a.S8)(e.contexts.trace.data,t,r))),e.spans&&(n.spans=e.spans.map(e=>({...e,...e.data&&{data:(0,a.S8)(e.data,t,r)}}))),n}function N(e,t){if(!t)return e;let r=e?e.clone():new m.H;return r.update(t),r}function P(e){return e?M(e)||U(e)?{captureContext:e}:e:void 0}function M(e){return e instanceof m.H||"function"==typeof e}let B=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function U(e){return Object.keys(e).some(e=>B.includes(e))}},74015:(e,t,r)=>{"use strict";r.d(t,{K:()=>i});var n=r(27710);function i(e,t,r=[t],o="npm"){let s=e._metadata||{};s.sdk||(s.sdk={name:`sentry.javascript.${t}`,packages:r.map(e=>({name:`${o}:@sentry/${e}`,version:n.M})),version:n.M}),e._metadata=s}},6777:(e,t,r)=>{"use strict";r.d(t,{f:()=>s,r:()=>o});var n=r(30535);let i="_sentrySpan";function o(e,t){t?(0,n.my)(e,i,t):delete e[i]}function s(e){return e[i]}},49855:(e,t,r)=>{"use strict";r.d(t,{Bk:()=>I,CC:()=>f,Ck:()=>m,Hu:()=>x,Qh:()=>v,VS:()=>R,aO:()=>p,cI:()=>y,et:()=>_,kX:()=>g,pK:()=>T,xO:()=>k,yW:()=>C,zU:()=>L});var n=r(30535),i=r(37600),o=r(5917),s=r(28164),a=r(94972),l=r(56836),u=r(58317),c=r(69959),h=r(28603),d=r(6777);let f=0,p=1;function m(e){let{spanId:t,traceId:r}=e.spanContext(),{data:i,op:o,parent_span_id:s,status:a,origin:l}=_(e);return(0,n.Ce)({parent_span_id:s,span_id:t,trace_id:r,data:i,op:o,status:a,origin:l})}function g(e){let{spanId:t,traceId:r}=e.spanContext(),{parent_span_id:i}=_(e);return(0,n.Ce)({parent_span_id:i,span_id:t,trace_id:r})}function v(e){let{traceId:t,spanId:r}=e.spanContext(),n=T(e);return(0,i.TC)(t,r,n)}function y(e){return"number"==typeof e?E(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?E(e.getTime()):(0,o.zf)()}function E(e){return e>9999999999?e/1e3:e}function _(e){if(A(e))return e.getSpanJSON();try{let{spanId:t,traceId:r}=e.spanContext();if(b(e)){let{attributes:i,startTime:o,name:s,endTime:a,parentSpanId:l,status:h}=e;return(0,n.Ce)({span_id:t,trace_id:r,data:i,description:s,parent_span_id:l,start_timestamp:y(o),timestamp:y(a)||void 0,status:C(h),op:i[c.uT],origin:i[c.JD],_metrics_summary:(0,u.g)(e)})}return{span_id:t,trace_id:r}}catch(e){return{}}}function b(e){let t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function A(e){return"function"==typeof e.getSpanJSON}function T(e){let{traceFlags:t}=e.spanContext();return t===p}function C(e){return e&&e.code!==h.a3?e.code===h.F3?"ok":e.message||"unknown_error":void 0}let S="_sentryChildSpans",w="_sentryRootSpan";function x(e,t){let r=e[w]||e;(0,n.my)(t,w,r),e[S]?e[S].add(t):(0,n.my)(e,S,new Set([t]))}function R(e,t){e[S]&&e[S].delete(t)}function k(e){let t=new Set;function r(e){if(!t.has(e)&&T(e))for(let n of(t.add(e),e[S]?Array.from(e[S]):[]))r(n)}return r(e),Array.from(t)}function L(e){return e[w]||e}function I(){let e=(0,a.E)(),t=(0,s.h)(e);return t.getActiveSpan?t.getActiveSpan():(0,d.f)((0,l.o5)())}},34502:(e,t,r)=>{"use strict";r.d(t,{T:()=>n});let n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},76725:(e,t,r)=>{"use strict";r.d(t,{tH:()=>p});var n=r(56836),i=r(23123),o=r(7504);r(2396);var s=r(86326),a=r(34502),l=r(19639),u=r(5868);function c(e){let t=e.match(/^([^.]+)/);return null!==t&&parseInt(t[0])>=17}function h(e,t){let r=new WeakSet;function n(e,t){if(!r.has(e)){if(e.cause)return r.add(e),n(e.cause,t);e.cause=t}}n(e,t)}function d(e,{componentStack:t},r){if(c(s.version)&&(0,u.bJ)(e)&&t){let r=Error(e.message);r.name=`React ErrorBoundary ${e.name}`,r.stack=t,h(e,r)}return(0,l.Cp)(e,{...r,captureContext:{contexts:{react:{componentStack:t}}}})}let f={componentStack:null,error:null,eventId:null};class p extends s.Component{constructor(e){super(e),p.prototype.__init.call(this),this.state=f,this._openFallbackReportDialog=!0;let t=(0,n.KU)();t&&e.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=t.on("afterSendEvent",t=>{!t.type&&this._lastEventId&&t.event_id===this._lastEventId&&(0,i.mn)({...e.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(e,t){let{componentStack:r}=t,o=null==r?void 0:r,{beforeCapture:s,onError:a,showDialog:l,dialogOptions:u}=this.props;(0,n.v4)(n=>{s&&s(n,e,o);let c=d(e,t,{mechanism:{handled:!!this.props.fallback}});a&&a(e,o,c),l&&(this._lastEventId=c,this._openFallbackReportDialog&&(0,i.mn)({...u,eventId:c})),this.setState({error:e,componentStack:r,eventId:c})})}componentDidMount(){let{onMount:e}=this.props;e&&e()}componentWillUnmount(){let{error:e,componentStack:t,eventId:r}=this.state,{onUnmount:n}=this.props;n&&n(e,t,r),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}__init(){this.resetErrorBoundary=()=>{let{onReset:e}=this.props,{error:t,componentStack:r,eventId:n}=this.state;e&&e(t,r,n),this.setState(f)}}render(){let{fallback:e,children:t}=this.props,r=this.state;if(r.error){let t;return(t="function"==typeof e?s.createElement(e,{error:r.error,componentStack:r.componentStack,resetError:this.resetErrorBoundary,eventId:r.eventId}):e,s.isValidElement(t))?t:(e&&a.T&&o.vF.warn("fallback did not produce a valid ReactElement"),null)}return"function"==typeof t?t():t}}},33534:(e,t,r)=>{"use strict";let n,i,o,s,a,l,u,c,h,d,f,p,m;r.d(t,{jS:()=>rC,gu:()=>rk});var g=r(49855),v=r(94972),y=r(56836),E=r(28164),_=r(69959);function b(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=e||A();return!!t&&(t.enableTracing||"tracesSampleRate"in t||"tracesSampler"in t)}function A(){let e=(0,y.KU)();return e&&e.getOptions()}var T=r(6777),C=r(46994),S=r(7504),w=r(73894);function x(e){if(!w.T)return;let{description:t="< unknown name >",op:r="< unknown op >",parent_span_id:n}=(0,g.et)(e),{spanId:i}=e.spanContext(),o=(0,g.pK)(e),s=(0,g.zU)(e),a=s===e,l=`[Tracing] Starting ${o?"sampled":"unsampled"} ${a?"root ":""}span`,u=[`op: ${r}`,`name: ${t}`,`ID: ${i}`];if(n&&u.push(`parent ID: ${n}`),!a){let{op:e,description:t}=(0,g.et)(s);u.push(`root ID: ${s.spanContext().spanId}`),e&&u.push(`root op: ${e}`),t&&u.push(`root description: ${t}`)}S.vF.log(`${l} ${u.join("\n ")}`)}function R(e){if(!w.T)return;let{description:t="< unknown name >",op:r="< unknown op >"}=(0,g.et)(e),{spanId:n}=e.spanContext(),i=(0,g.zU)(e)===e,o=`[Tracing] Finishing "${r}" ${i?"root ":""}span "${t}" with ID ${n}`;S.vF.log(o)}var k=r(81361);function L(e,t){let r;if(!b(e))return[!1];r="function"==typeof e.tracesSampler?e.tracesSampler(t):void 0!==t.parentSampled?t.parentSampled:void 0!==e.tracesSampleRate?e.tracesSampleRate:1;let n=(0,k.i)(r);return void 0===n?(w.T&&S.vF.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):n?Math.random(){let r=e.attributes||{},n=r[_.Sn],i=r[_.xc];"string"==typeof n&&"number"==typeof i&&(t[e.name]={value:i,unit:n})}),t}let F="_sentryScope",j="_sentryIsolationScope";function K(e,t,r){e&&((0,N.my)(e,j,r),(0,N.my)(e,F,t))}function V(e){return{scope:e[F],isolationScope:e[j]}}let H=1e3;class z{constructor(e={}){this._traceId=e.traceId||(0,I.eJ)(),this._spanId=e.spanId||(0,I.eJ)().substring(16),this._startTime=e.startTimestamp||(0,D.zf)(),this._attributes={},this.setAttributes({[_.JD]:"manual",[_.uT]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this}addLinks(e){return this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:r}=this;return{spanId:e,traceId:t,traceFlags:r?g.aO:g.CC}}setAttribute(e,t){return void 0===t?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=(0,g.cI)(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this}end(e){this._endTime||(this._endTime=(0,g.cI)(e),R(this),this._onSpanEnded())}getSpanJSON(){return(0,N.Ce)({data:this._attributes,description:this._name,op:this._attributes[_.uT],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,g.yW)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[_.JD],_metrics_summary:(0,M.g)(this),profile_id:this._attributes[_.E1],exclusive_time:this._attributes[_.jG],measurements:U(this._events),is_segment:this._isStandaloneSpan&&(0,g.zU)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,g.zU)(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,r){w.T&&S.vF.log("[Tracing] Adding an event to span:",e);let n=G(t)?t:r||(0,D.zf)(),i=G(t)?{}:t||{},o={name:e,time:(0,g.cI)(n),attributes:i};return this._events.push(o),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=(0,y.KU)();if(e&&e.emit("spanEnd",this),!(this._isStandaloneSpan||this===(0,g.zU)(this)))return;if(this._isStandaloneSpan){this._sampled?X((0,P.lu)([this],e)):(w.T&&S.vF.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span"));return}let t=this._convertSpanToTransaction();t&&(V(this).scope||(0,y.o5)()).captureEvent(t)}_convertSpanToTransaction(){if(!q((0,g.et)(this)))return;this._name||(w.T&&S.vF.warn("Transaction has no name, falling back to ``."),this._name="");let{scope:e,isolationScope:t}=V(this),r=(e||(0,y.o5)()).getClient()||(0,y.KU)();if(!0!==this._sampled){w.T&&S.vF.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),r&&r.recordDroppedEvent("sample_rate","transaction");return}let n=(0,g.xO)(this).filter(e=>e!==this&&!W(e)).map(e=>(0,g.et)(e)).filter(q),i=this._attributes[_.i_],o={contexts:{trace:(0,g.Ck)(this)},spans:n.length>H?n.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,H):n,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,...(0,N.Ce)({dynamicSamplingContext:(0,C.k1)(this)})},_metrics_summary:(0,M.g)(this),...i&&{transaction_info:{source:i}}},s=U(this._events);return s&&Object.keys(s).length&&(w.T&&S.vF.log("[Measurements] Adding measurements to transaction event",JSON.stringify(s,void 0,2)),o.measurements=s),o}}function G(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function q(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function W(e){return e instanceof z&&e.isStandaloneSpan()}function X(e){let t=(0,y.KU)();if(!t)return;let r=e[1];if(!r||0===r.length){t.recordDroppedEvent("before_send","span");return}let n=t.getTransport();n&&n.send(e).then(null,e=>{w.T&&S.vF.error("Error while sending span:",e)})}let Y="__SENTRY_SUPPRESS_TRACING__";function Q(e){let t=et();if(t.startInactiveSpan)return t.startInactiveSpan(e);let r=ee(e),{forceTransaction:n,parentSpan:i}=e;return(e.scope?t=>(0,y.v4)(e.scope,t):void 0!==i?e=>Z(i,e):e=>e())(()=>{let t=(0,y.o5)(),i=ei(t);return e.onlyIfParent&&!i?new O:J({parentSpan:i,spanArguments:r,forceTransaction:n,scope:t})})}function Z(e,t){let r=et();return r.withActiveSpan?r.withActiveSpan(e,t):(0,y.v4)(r=>((0,T.r)(r,e||void 0),t(r)))}function J({parentSpan:e,spanArguments:t,forceTransaction:r,scope:n}){let i;if(!b())return new O;let o=(0,y.rm)();if(e&&!r)i=en(e,n,t),(0,g.Hu)(e,i);else if(e){let r=(0,C.k1)(e),{traceId:o,spanId:s}=e.spanContext(),a=(0,g.pK)(e);i=er({traceId:o,parentSpanId:s,...t},n,a),(0,C.LZ)(i,r)}else{let{traceId:e,dsc:r,parentSpanId:s,sampled:a}={...o.getPropagationContext(),...n.getPropagationContext()};i=er({traceId:e,parentSpanId:s,...t},n,a),r&&(0,C.LZ)(i,r)}return x(i),K(i,n,o),i}function ee(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let r={...t};return r.startTimestamp=(0,g.cI)(e.startTime),delete r.startTime,r}return t}function et(){let e=(0,v.E)();return(0,E.h)(e)}function er(e,t,r){let n=(0,y.KU)(),i=n&&n.getOptions()||{},{name:o="",attributes:s}=e,[a,l]=t.getScopeData().sdkProcessingMetadata[Y]?[!1]:L(i,{name:o,parentSampled:r,attributes:s,transactionContext:{name:o,parentSampled:r}}),u=new z({...e,attributes:{[_.i_]:"custom",...e.attributes},sampled:a});return void 0!==l&&u.setAttribute(_.sy,l),n&&n.emit("spanStart",u),u}function en(e,t,r){let{spanId:n,traceId:i}=e.spanContext(),o=!t.getScopeData().sdkProcessingMetadata[Y]&&(0,g.pK)(e),s=o?new z({...r,parentSpanId:n,traceId:i,sampled:o}):new O({traceId:i});(0,g.Hu)(e,s);let a=(0,y.KU)();return a&&(a.emit("spanStart",s),r.endTimestamp&&a.emit("spanEnd",s)),s}function ei(e){let t=(0,T.f)(e);if(!t)return;let r=(0,y.KU)();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?(0,g.zU)(t):t}var eo=r(53322),es=r(41355),ea=r(3825),el=r(31146),eu=r(59353);let ec=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",eh=(e,t,r,n)=>{let i,o;return s=>{t.value>=0&&(s||n)&&((o=t.value-(i||0))||void 0===i)&&(i=t.value,t.delta=o,t.rating=ec(t.value,r),e(t))}},ed=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,ef=()=>el.j.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],ep=()=>{let e=ef();return e&&e.activationStart||0},em=(e,t)=>{let r=ef(),n="navigate";return r&&(el.j.document&&el.j.document.prerendering||ep()>0?n="prerender":el.j.document&&el.j.document.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:ed(),navigationType:n}},eg=(e,t,r)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let n=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return n.observe(Object.assign({type:e,buffered:!0},r||{})),n}}catch(e){}},ev=e=>{let t=t=>{("pagehide"===t.type||el.j.document&&"hidden"===el.j.document.visibilityState)&&e(t)};el.j.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},ey=e=>{let t=!1;return r=>{t||(e(r),t=!0)}},eE=-1,e_=()=>{eE="hidden"!==el.j.document.visibilityState||el.j.document.prerendering?1/0:0},eb=e=>{"hidden"===el.j.document.visibilityState&&eE>-1&&(eE="visibilitychange"===e.type?e.timeStamp:0,removeEventListener("visibilitychange",eb,!0),removeEventListener("prerenderingchange",eb,!0))},eA=()=>{addEventListener("visibilitychange",eb,!0),addEventListener("prerenderingchange",eb,!0)},eT=()=>(el.j.document&&eE<0&&(e_(),eA()),{get firstHiddenTime(){return eE}}),eC=e=>{el.j.document&&el.j.document.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},eS=[1800,3e3],ew=(e,t={})=>{eC(()=>{let r;let n=eT(),i=em("FCP"),o=eg("paint",e=>{e.forEach(e=>{"first-contentful-paint"===e.name&&(o.disconnect(),e.startTime{ew(ey(()=>{let r;let n=em("CLS",0),i=0,o=[],s=e=>{e.forEach(e=>{if(!e.hadRecentInput){let t=o[0],r=o[o.length-1];i&&t&&r&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,o.push(e)):(i=e.value,o=[e])}}),i>n.value&&(n.value=i,n.entries=o,r())},a=eg("layout-shift",s);a&&(r=eh(e,n,ex,t.reportAllChanges),ev(()=>{s(a.takeRecords()),r(!0)}),setTimeout(r,0))}))},ek=[100,300],eL=(e,t={})=>{eC(()=>{let r;let n=eT(),i=em("FID"),o=e=>{e.startTime{e.forEach(o)},a=eg("first-input",s);r=eh(e,i,ek,t.reportAllChanges),a&&ev(ey(()=>{s(a.takeRecords()),a.disconnect()}))})},eI=0,eO=1/0,eD=0,eN=e=>{e.forEach(e=>{e.interactionId&&(eO=Math.min(eO,e.interactionId),eI=(eD=Math.max(eD,e.interactionId))?(eD-eO)/7+1:0)})},eP=()=>n?eI:performance.interactionCount||0,eM=()=>{"interactionCount"in performance||n||(n=eg("event",eN,{type:"event",buffered:!0,durationThreshold:0}))},eB=[200,500],eU=0,eF=()=>eP()-eU,ej=10,eK=[],eV={},eH=e=>{let t=eK[eK.length-1],r=eV[e.interactionId];if(r||eK.lengtht.latency){if(r)r.entries.push(e),r.latency=Math.max(r.latency,e.duration);else{let t={id:e.interactionId,latency:e.duration,entries:[e]};eV[t.id]=t,eK.push(t)}eK.sort((e,t)=>t.latency-e.latency),eK.splice(ej).forEach(e=>{delete eV[e.id]})}},ez=()=>{let e=Math.min(eK.length-1,Math.floor(eF()/50));return eK[e]},e$=(e,t={})=>{eC(()=>{let r;eM();let n=em("INP"),i=e=>{e.forEach(e=>{e.interactionId&&eH(e),"first-input"!==e.entryType||eK.some(t=>t.entries.some(t=>e.duration===t.duration&&e.startTime===t.startTime))||eH(e)});let t=ez();t&&t.latency!==n.value&&(n.value=t.latency,n.entries=t.entries,r())},o=eg("event",i,{durationThreshold:null!=t.durationThreshold?t.durationThreshold:40});r=eh(e,n,eB,t.reportAllChanges),o&&("PerformanceEventTiming"in el.j&&"interactionId"in PerformanceEventTiming.prototype&&o.observe({type:"first-input",buffered:!0}),ev(()=>{i(o.takeRecords()),n.value<0&&eF()>0&&(n.value=0,n.entries=[]),r(!0)}))})},eG=[2500,4e3],eq={},eW=(e,t={})=>{eC(()=>{let r;let n=eT(),i=em("LCP"),o=e=>{let t=e[e.length-1];t&&t.startTime{eq[i.id]||(o(s.takeRecords()),s.disconnect(),eq[i.id]=!0,r(!0))});["keydown","click"].forEach(e=>{el.j.document&&addEventListener(e,()=>setTimeout(n,0),!0)}),ev(n)}})},eX=[800,1800],eY=e=>{el.j.document&&el.j.document.prerendering?eC(()=>eY(e)):el.j.document&&"complete"!==el.j.document.readyState?addEventListener("load",()=>eY(e),!0):setTimeout(e,0)},eQ=(e,t={})=>{let r=em("TTFB"),n=eh(e,r,eX,t.reportAllChanges);eY(()=>{let e=ef();if(e){let t=e.responseStart;if(t<=0||t>performance.now())return;r.value=Math.max(t-ep(),0),r.entries=[e],n(!0)}})},eZ={},eJ={};function e0(e,t=!1){return tr("cls",e,e7,i,t)}function e1(e,t=!1){return tr("lcp",e,e9,s,t)}function e2(e){return tr("fid",e,e8,o)}function e3(e){return tr("ttfb",e,te,a)}function e4(e){return tr("inp",e,tt,l)}function e5(e,t){return ti(e,t),eJ[e]||(tn(e),eJ[e]=!0),to(e,t)}function e6(e,t){let r=eZ[e];if(r&&r.length)for(let n of r)try{n(t)}catch(t){ea.T&&S.vF.error(`Error while triggering instrumentation handler. Type: ${e} Name: ${(0,eu.qQ)(n)} Error:`,t)}}function e7(){return eR(e=>{e6("cls",{metric:e}),i=e},{reportAllChanges:!0})}function e8(){return eL(e=>{e6("fid",{metric:e}),o=e})}function e9(){return eW(e=>{e6("lcp",{metric:e}),s=e},{reportAllChanges:!0})}function te(){return eQ(e=>{e6("ttfb",{metric:e}),a=e})}function tt(){return e$(e=>{e6("inp",{metric:e}),l=e})}function tr(e,t,r,n,i=!1){let o;return ti(e,t),eJ[e]||(o=r(),eJ[e]=!0),n&&t({metric:n}),to(e,t,i?o:void 0)}function tn(e){let t={};"event"===e&&(t.durationThreshold=0),eg(e,t=>{e6(e,{entries:t})},t)}function ti(e,t){eZ[e]=eZ[e]||[],eZ[e].push(t)}function to(e,t,r){return()=>{r&&r();let n=eZ[e];if(!n)return;let i=n.indexOf(t);-1!==i&&n.splice(i,1)}}function ts(e){return"duration"in e}function ta(e){return"number"==typeof e&&isFinite(e)}function tl(e,t,r,{...n}){let i=(0,g.et)(e).start_timestamp;return i&&i>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),Z(e,()=>{let e=Q({startTime:t,...n});return e&&e.end(r),e})}function tu(){return el.j&&el.j.addEventListener&&el.j.performance}function tc(e){return e/1e3}let th=2147483647,td=0,tf={};function tp(){let e=tu();if(e&&D.k3){e.mark&&el.j.performance.mark("sentry-tracing-init");let t=t_(),r=ty(),n=tE(),i=tb();return()=>{t(),r(),n(),i()}}return()=>void 0}function tm(){e5("longtask",({entries:e})=>{for(let t of e){if(!(0,g.Bk)())return;let e=tc(D.k3+t.startTime),r=tc(t.duration),n=Q({name:"Main UI thread blocked",op:"ui.long-task",startTime:e,attributes:{[_.JD]:"auto.ui.browser.metrics"}});n&&n.end(e+r)}})}function tg(){new PerformanceObserver(e=>{for(let t of e.getEntries()){if(!(0,g.Bk)()||!t.scripts[0])return;let e=tc(D.k3+t.startTime),r=tc(t.duration),n={[_.JD]:"auto.ui.browser.metrics"},i=t.scripts[0];if(i){let{invoker:e,invokerType:t,sourceURL:r,sourceFunctionName:o,sourceCharPosition:s}=i;n["browser.script.invoker"]=e,n["browser.script.invoker_type"]=t,r&&(n["code.filepath"]=r),o&&(n["code.function"]=o),-1!==s&&(n["browser.script.source_char_position"]=s)}let o=Q({name:"Main UI thread blocked",op:"ui.long-animation-frame",startTime:e,attributes:n});o&&o.end(e+r)}}).observe({type:"long-animation-frame",buffered:!0})}function tv(){e5("event",({entries:e})=>{for(let t of e){if(!(0,g.Bk)())return;if("click"===t.name){let e=tc(D.k3+t.startTime),r=tc(t.duration),n={name:(0,eo.Hd)(t.target),op:`ui.interaction.${t.name}`,startTime:e,attributes:{[_.JD]:"auto.ui.browser.metrics"}},i=(0,eo.xE)(t.target);i&&(n.attributes["ui.component_name"]=i);let o=Q(n);o&&o.end(e+r)}}})}function ty(){return e0(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(ea.T&&S.vF.log("[Measurements] Adding CLS"),tf.cls={value:e.value,unit:""},c=t)},!0)}function tE(){return e1(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(ea.T&&S.vF.log("[Measurements] Adding LCP"),tf.lcp={value:e.value,unit:"millisecond"},u=t)},!0)}function t_(){return e2(({metric:e})=>{let t=e.entries[e.entries.length-1];if(!t)return;let r=tc(D.k3),n=tc(t.startTime);ea.T&&S.vF.log("[Measurements] Adding FID"),tf.fid={value:e.value,unit:"millisecond"},tf["mark.fid"]={value:r+n,unit:"second"}})}function tb(){return e3(({metric:e})=>{e.entries[e.entries.length-1]&&(ea.T&&S.vF.log("[Measurements] Adding TTFB"),tf.ttfb={value:e.value,unit:"millisecond"})})}function tA(e){let t=tu();if(!t||!el.j.performance.getEntries||!D.k3)return;ea.T&&S.vF.log("[Tracing] Adding & adjusting spans using Performance API");let r=tc(D.k3),n=t.getEntries(),{op:i,start_timestamp:o}=(0,g.et)(e);if(n.slice(td).forEach(t=>{let n=tc(t.startTime),s=tc(Math.max(0,t.duration));if("navigation"!==i||!o||!(r+n{let t=tf[e];if(!t||!o||r>=o)return;let n=t.value,i=Math.abs((r+tc(n)-o)*1e3),s=i-n;ea.T&&S.vF.log(`[Measurements] Normalized ${e} from ${n} to ${i} (${s})`),t.value=i});let t=tf["mark.fid"];t&&tf.fid&&(tl(e,t.value,t.value+tc(tf.fid.value),{name:"first input delay",op:"ui.action",attributes:{[_.JD]:"auto.ui.browser.metrics"}}),delete tf["mark.fid"]),"fcp"in tf||delete tf.cls,Object.entries(tf).forEach(([e,t])=>{B(e,t.value,t.unit)}),tk(e)}u=void 0,c=void 0,tf={}}function tT(e,t,r,n,i){let o=ef(),s=i+Math.max(r,tc(o?o.requestStart:0)),a=i+r,l=a+n,u={[_.JD]:"auto.resource.browser.metrics"};return s!==a&&(u["sentry.browser.measure_happened_before_request"]=!0,u["sentry.browser.measure_start_time"]=s),tl(e,s,l,{name:t.name,op:t.entryType,attributes:u}),s}function tC(e,t,r){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(n=>{tS(e,t,n,r)}),tS(e,t,"secureConnection",r,"TLS/SSL","connectEnd"),tS(e,t,"fetch",r,"cache","domainLookupStart"),tS(e,t,"domainLookup",r,"DNS"),tw(e,t,r)}function tS(e,t,r,n,i,o){let s=o?t[o]:t[`${r}End`],a=t[`${r}Start`];a&&s&&tl(e,n+tc(a),n+tc(s),{op:"browser",name:i||r,attributes:{[_.JD]:"auto.ui.browser.metrics"}})}function tw(e,t,r){let n=r+tc(t.requestStart),i=r+tc(t.responseEnd),o=r+tc(t.responseStart);t.responseEnd&&(tl(e,n,i,{op:"browser",name:"request",attributes:{[_.JD]:"auto.ui.browser.metrics"}}),tl(e,o,i,{op:"browser",name:"response",attributes:{[_.JD]:"auto.ui.browser.metrics"}}))}function tx(e,t,r,n,i,o){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;let s=(0,es.Dl)(r),a={[_.JD]:"auto.resource.browser.metrics"};tL(a,t,"transferSize","http.response_transfer_size"),tL(a,t,"encodedBodySize","http.response_content_length"),tL(a,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(a["resource.render_blocking_status"]=t.renderBlockingStatus),s.protocol&&(a["url.scheme"]=s.protocol.split(":").pop()),s.host&&(a["server.address"]=s.host),a["url.same_origin"]=r.includes(el.j.location.origin);let l=o+n,u=l+i;tl(e,l,u,{name:r.replace(el.j.location.origin,""),op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",attributes:a})}function tR(e){let t=el.j.navigator;if(!t)return;let r=t.connection;r&&(r.effectiveType&&e.setAttribute("effectiveConnectionType",r.effectiveType),r.type&&e.setAttribute("connectionType",r.type),ta(r.rtt)&&(tf["connection.rtt"]={value:r.rtt,unit:"millisecond"})),ta(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),ta(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function tk(e){u&&(ea.T&&S.vF.log("[Measurements] Adding LCP Data"),u.element&&e.setAttribute("lcp.element",(0,eo.Hd)(u.element)),u.id&&e.setAttribute("lcp.id",u.id),u.url&&e.setAttribute("lcp.url",u.url.trim().slice(0,200)),e.setAttribute("lcp.size",u.size)),c&&c.sources&&(ea.T&&S.vF.log("[Measurements] Adding CLS Data"),c.sources.forEach((t,r)=>e.setAttribute(`cls.source.${r+1}`,(0,eo.Hd)(t.node))))}function tL(e,t,r,n){let i=t[r];null!=i&&i{e()}}return()=>void 0}let tP={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function tM(){return e4(({metric:e})=>{let t;let r=(0,y.KU)();if(!r||void 0==e.value)return;let n=e.entries.find(t=>t.duration===e.value&&tP[t.name]);if(!n)return;let{interactionId:i}=n,o=tP[n.name],s=r.getOptions(),a=tc(D.k3+n.startTime),l=tc(e.value),u=(0,y.o5)(),c=(0,g.Bk)(),h=c?(0,g.zU)(c):void 0,d=(null!=i?tD.get(i):void 0)||h,f=d?(0,g.et)(d).description:u.getScopeData().transactionName,p=u.getUser(),m=r.getIntegrationByName("Replay"),v=m&&m.getReplayId(),E=void 0!==p?p.email||p.id||p.ip_address:void 0;try{t=u.getScopeData().contexts.profile.profile_id}catch(e){}let b=Q({name:(0,eo.Hd)(n.target),op:`ui.interaction.${o}`,attributes:(0,N.Ce)({release:s.release,environment:s.environment,transaction:f,[_.jG]:e.value,[_.JD]:"auto.http.browser.inp",user:E||void 0,profile_id:t||void 0,replay_id:v||void 0,"user_agent.original":el.j.navigator&&el.j.navigator.userAgent}),startTime:a,experimental:{standalone:!0}});b.addEvent("inp",{[_.Sn]:"millisecond",[_.xc]:e.value}),b.end(a+l)})}function tB(e){let t=({entries:e})=>{let t=(0,g.Bk)(),r=t&&(0,g.zU)(t);e.forEach(e=>{if(!ts(e)||!r)return;let t=e.interactionId;if(!(null==t||tD.has(t))){if(tO.length>10){let e=tO.shift();tD.delete(e)}tO.push(t),tD.set(t,r)}})};e5("event",t),e5("first-input",t)}var tU=r(45265),tF=r(28603);let tj={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},tK="heartbeatFailed",tV="idleTimeout",tH="finalTimeout",tz="externalFinish";function t$(e,t={}){let r;let n=new Map,i=!1,o=tz,s=!t.disableAutoFinish,a=[],{idleTimeout:l=tj.idleTimeout,finalTimeout:u=tj.finalTimeout,childSpanTimeout:c=tj.childSpanTimeout,beforeSpanEnd:h}=t,d=(0,y.KU)();if(!d||!b())return new O;let f=(0,y.o5)(),p=(0,g.Bk)(),m=tG(e);function v(){r&&(clearTimeout(r),r=void 0)}function E(e){v(),r=setTimeout(()=>{!i&&0===n.size&&s&&(o=tV,m.end(e))},l)}function A(e){r=setTimeout(()=>{!i&&s&&(o=tK,m.end(e))},c)}function C(e){v(),n.set(e,!0),A((0,D.zf)()+c/1e3)}function x(e){n.has(e)&&n.delete(e),0===n.size&&E((0,D.zf)()+l/1e3)}function R(e){i=!0,n.clear(),a.forEach(e=>e()),(0,T.r)(f,p);let t=(0,g.et)(m),{start_timestamp:r}=t;if(!r)return;(t.data||{})[_.fs]||m.setAttribute(_.fs,o),S.vF.log(`[Tracing] Idle span "${t.op}" finished`);let s=(0,g.xO)(m).filter(e=>e!==m),c=0;s.forEach(t=>{t.isRecording()&&(t.setStatus({code:tF.TJ,message:"cancelled"}),t.end(e),w.T&&S.vF.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));let{timestamp:r=0,start_timestamp:n=0}=(0,g.et)(t),i=n<=e,o=r-n<=(u+l)/1e3;if(w.T){let e=JSON.stringify(t,void 0,2);i?o||S.vF.log("[Tracing] Discarding span since it finished after idle span final timeout",e):S.vF.log("[Tracing] Discarding span since it happened after idle span was finished",e)}(!o||!i)&&((0,g.VS)(m,t),c++)}),c>0&&m.setAttribute("sentry.idle_span_discarded_spans",c)}return m.end=new Proxy(m.end,{apply(e,t,r){h&&h(m);let[n,...i]=r,o=n||(0,D.zf)(),s=(0,g.cI)(o),a=(0,g.xO)(m).filter(e=>e!==m);if(!a.length)return R(s),Reflect.apply(e,t,[s,...i]);let l=a.map(e=>(0,g.et)(e).timestamp).filter(e=>!!e),c=l.length?Math.max(...l):void 0,d=(0,g.et)(m).start_timestamp,f=Math.min(d?d+u/1e3:1/0,Math.max(d||-1/0,Math.min(s,c||1/0)));return R(f),Reflect.apply(e,t,[f,...i])}}),a.push(d.on("spanStart",e=>{!i&&e!==m&&!(0,g.et)(e).timestamp&&(0,g.xO)(m).includes(e)&&C(e.spanContext().spanId)})),a.push(d.on("spanEnd",e=>{i||x(e.spanContext().spanId)})),a.push(d.on("idleSpanEnableAutoFinish",e=>{e===m&&(s=!0,E(),n.size&&A())})),t.disableAutoFinish||E(),setTimeout(()=>{i||(m.setStatus({code:tF.TJ,message:"deadline_exceeded"}),o=tH,m.end())},u),m}function tG(e){let t=Q(e);return(0,T.r)((0,y.o5)(),t),w.T&&S.vF.log("[Tracing] Started span is an idle span"),t}var tq=r(45681),tW=r(26369);let tX=!1;function tY(){tX||(tX=!0,(0,tq.L)(tQ),(0,tW.r)(tQ))}function tQ(){let e=(0,g.Bk)(),t=e&&(0,g.zU)(e);if(t){let e="internal_error";w.T&&S.vF.log(`[Tracing] Root span: ${e} -> Global error occured`),t.setStatus({code:tF.TJ,message:e})}}tQ.tag="sentry_tracingErrorCallback";var tZ=r(37600),tJ=r(78809),t0=r(27555),t1=r(66024);function t2(){t1.jf&&t1.jf.document?t1.jf.document.addEventListener("visibilitychange",()=>{let e=(0,g.Bk)();if(!e)return;let t=(0,g.zU)(e);if(t1.jf.document.hidden&&t){let e="cancelled",{op:r,status:n}=(0,g.et)(t);t0.T&&S.vF.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${r}`),n||t.setStatus({code:tF.TJ,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):t0.T&&S.vF.warn("[Tracing] Could not set up background tab detection due to lack of global document")}var t3=r(25407),t4=r(93164),t5=r(5868);function t6(e,t,r,n,i="auto.http.browser"){if(!e.fetchData)return;let o=b()&&t(e.fetchData.url);if(e.endTimestamp&&o){let t=e.fetchData.__span;if(!t)return;let r=n[t];r&&(t9(r,e),delete n[t]);return}let s=(0,y.o5)(),a=(0,y.KU)(),{method:l,url:u}=e.fetchData,c=t8(u),h=c?(0,es.Dl)(c).host:void 0,d=!!(0,g.Bk)(),f=o&&d?Q({name:`${l} ${u}`,attributes:{url:u,type:"fetch","http.method":l,"http.url":c,"server.address":h,[_.JD]:i,[_.uT]:"http.client"}}):new O;if(e.fetchData.__span=f.spanContext().spanId,n[f.spanContext().spanId]=f,r(e.fetchData.url)&&a){let t=e.args[0];e.args[1]=e.args[1]||{};let r=e.args[1];r.headers=t7(t,a,s,r,b()&&d?f:void 0)}return f}function t7(e,t,r,n,i){let{traceId:o,spanId:s,sampled:a,dsc:l}={...(0,y.rm)().getPropagationContext(),...r.getPropagationContext()},u=i?(0,g.Qh)(i):(0,tZ.TC)(o,s,a),c=(0,t4.De)(l||(i?(0,C.k1)(i):(0,C.lF)(o,t))),h=n.headers||("undefined"!=typeof Request&&(0,t5.tH)(e,Request)?e.headers:void 0);if(!h)return{"sentry-trace":u,baggage:c};if("undefined"!=typeof Headers&&(0,t5.tH)(h,Headers)){let e=new Headers(h);return e.append("sentry-trace",u),c&&e.append(t4.hF,c),e}if(Array.isArray(h)){let e=[...h,["sentry-trace",u]];return c&&e.push([t4.hF,c]),e}{let e="baggage"in h?h.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),c&&t.push(c),{...h,"sentry-trace":u,baggage:t.length>0?t.join(","):void 0}}}function t8(e){try{return new URL(e).href}catch(e){return}}function t9(e,t){if(t.response){(0,tF.N8)(e,t.response.status);let r=t.response&&t.response.headers&&t.response.headers.get("content-length");if(r){let t=parseInt(r);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:tF.TJ,message:"internal_error"});e.end()}var re=r(54510),rt=r(45425);let rr={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0};function rn(e){let{traceFetch:t,traceXHR:r,shouldCreateSpanForRequest:n,enableHTTPTimings:i,tracePropagationTargets:o}={traceFetch:rr.traceFetch,traceXHR:rr.traceXHR,...e},s="function"==typeof n?n:e=>!0,a=e=>ru(e,o),l={};t&&(0,re.u)(e=>{let t=t6(e,s,a,l);if(t){let r=rf(e.fetchData.url),n=r?(0,es.Dl)(r).host:void 0;t.setAttributes({"http.url":r,"server.address":n})}i&&t&&ro(t)}),r&&(0,t3.Mn)(e=>{let t=rc(e,s,a,l);i&&t&&ro(t)})}function ri(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)}function ro(e){let{url:t}=(0,g.et)(e).data||{};if(!t||"string"!=typeof t)return;let r=e5("resource",({entries:n})=>{n.forEach(n=>{ri(n)&&n.name.endsWith(t)&&(rl(n).forEach(t=>e.setAttribute(...t)),setTimeout(r))})})}function rs(e){let t="unknown",r="unknown",n="";for(let i of e){if("/"===i){[t,r]=e.split("/");break}if(!isNaN(Number(i))){t="h"===n?"http":n,r=e.split(n)[1];break}n+=i}return n===e&&(t=n),{name:t,version:r}}function ra(e=0){return((D.k3||performance.timeOrigin)+e)/1e3}function rl(e){let{name:t,version:r}=rs(e.nextHopProtocol),n=[];return(n.push(["network.protocol.version",r],["network.protocol.name",t]),D.k3)?[...n,["http.request.redirect_start",ra(e.redirectStart)],["http.request.fetch_start",ra(e.fetchStart)],["http.request.domain_lookup_start",ra(e.domainLookupStart)],["http.request.domain_lookup_end",ra(e.domainLookupEnd)],["http.request.connect_start",ra(e.connectStart)],["http.request.secure_connection_start",ra(e.secureConnectionStart)],["http.request.connection_end",ra(e.connectEnd)],["http.request.request_start",ra(e.requestStart)],["http.request.response_start",ra(e.responseStart)],["http.request.response_end",ra(e.responseEnd)]]:n}function ru(e,t){let r=t1.jf.location&&t1.jf.location.href;if(r){let n,i;try{n=new URL(e,r),i=new URL(r).origin}catch(e){return!1}let o=n.origin===i;return t?(0,rt.Xr)(n.toString(),t)||o&&(0,rt.Xr)(n.pathname,t):o}{let r=!!e.match(/^\/(?!\/)/);return t?(0,rt.Xr)(e,t):r}}function rc(e,t,r,n){let i=e.xhr,o=i&&i[t3.Er];if(!i||i.__sentry_own_request__||!o)return;let s=b()&&t(o.url);if(e.endTimestamp&&s){let e=i.__sentry_xhr_span_id__;if(!e)return;let t=n[e];t&&void 0!==o.status_code&&((0,tF.N8)(t,o.status_code),t.end(),delete n[e]);return}let a=rf(o.url),l=a?(0,es.Dl)(a).host:void 0,u=!!(0,g.Bk)(),c=s&&u?Q({name:`${o.method} ${o.url}`,attributes:{type:"xhr","http.method":o.method,"http.url":a,url:o.url,"server.address":l,[_.JD]:"auto.http.browser",[_.uT]:"http.client"}}):new O;i.__sentry_xhr_span_id__=c.spanContext().spanId,n[i.__sentry_xhr_span_id__]=c;let h=(0,y.KU)();return i.setRequestHeader&&r(o.url)&&h&&rh(i,h,b()&&u?c:void 0),c}function rh(e,t,r){let n=(0,y.o5)(),{traceId:i,spanId:o,sampled:s,dsc:a}={...(0,y.rm)().getPropagationContext(),...n.getPropagationContext()};rd(e,r&&b()?(0,g.Qh)(r):(0,tZ.TC)(i,o,s),(0,t4.De)(a||(r?(0,C.k1)(r):(0,C.lF)(i,t))))}function rd(e,t,r){try{e.setRequestHeader("sentry-trace",t),r&&e.setRequestHeader(t4.hF,r)}catch(e){}}function rf(e){try{return new URL(e,t1.jf.location.origin).href}catch(e){return}}let rp="BrowserTracing",rm={...tj,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!1,enableInp:!0,_experiments:{},...rr},rg=(e={})=>{tY();let{enableInp:t,enableLongTask:r,enableLongAnimationFrame:n,_experiments:{enableInteractions:i},beforeStartSpan:o,idleTimeout:s,finalTimeout:a,childSpanTimeout:l,markBackgroundSpan:u,traceFetch:c,traceXHR:h,shouldCreateSpanForRequest:d,enableHTTPTimings:f,instrumentPageLoad:p,instrumentNavigation:m}={...rm,...e},v=tp();t&&tN(),n&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?tg():r&&tm(),i&&tv();let E={name:void 0,source:void 0};function b(e,t){let r="pageload"===t.op,n=o?o(t):t,i=n.attributes||{};t.name!==n.name&&(i[_.i_]="custom",n.attributes=i),E.name=n.name,E.source=i[_.i_];let u=t$(n,{idleTimeout:s,finalTimeout:a,childSpanTimeout:l,disableAutoFinish:r,beforeSpanEnd:e=>{v(),tA(e)}});function c(){["interactive","complete"].includes(t1.jf.document.readyState)&&e.emit("idleSpanEnableAutoFinish",u)}return r&&t1.jf.document&&(t1.jf.document.addEventListener("readystatechange",()=>{c()}),c()),u}return{name:rp,afterAllSetup(e){let r;let n=t1.jf.location&&t1.jf.location.href;e.on("startNavigationSpan",t=>{(0,y.KU)()===e&&(r&&!(0,g.et)(r).timestamp&&(t0.T&&S.vF.log(`[Tracing] Finishing current root span with op: ${(0,g.et)(r).op}`),r.end()),r=b(e,{op:"navigation",...t}))}),e.on("startPageLoadSpan",(t,n={})=>{if((0,y.KU)()!==e)return;r&&!(0,g.et)(r).timestamp&&(t0.T&&S.vF.log(`[Tracing] Finishing current root span with op: ${(0,g.et)(r).op}`),r.end());let i=n.sentryTrace||rE("sentry-trace"),o=n.baggage||rE("baggage"),s=(0,tZ.kM)(i,o);(0,y.o5)().setPropagationContext(s),r=b(e,{op:"pageload",...t})}),e.on("spanEnd",e=>{let t=(0,g.et)(e).op;if(e!==(0,g.zU)(e)||"navigation"!==t&&"pageload"!==t)return;let r=(0,y.o5)(),n=r.getPropagationContext();r.setPropagationContext({...n,sampled:void 0!==n.sampled?n.sampled:(0,g.pK)(e),dsc:n.dsc||(0,C.k1)(e)})}),t1.jf.location&&(p&&rv(e,{name:t1.jf.location.pathname,startTime:D.k3?D.k3/1e3:void 0,attributes:{[_.i_]:"url",[_.JD]:"auto.pageload.browser"}}),m&&(0,tU._)(({to:t,from:r})=>{if(void 0===r&&n&&-1!==n.indexOf(t)){n=void 0;return}r!==t&&(n=void 0,ry(e,{name:t1.jf.location.pathname,attributes:{[_.i_]:"url",[_.JD]:"auto.navigation.browser"}}))})),u&&t2(),i&&r_(s,a,l,E),t&&tB(),rn({traceFetch:c,traceXHR:h,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:d,enableHTTPTimings:f})}}};function rv(e,t,r){e.emit("startPageLoadSpan",t,r),(0,y.o5)().setTransactionName(t.name);let n=(0,g.Bk)();return"pageload"===(n&&(0,g.et)(n).op)?n:void 0}function ry(e,t){(0,y.rm)().setPropagationContext((0,tJ.J)()),(0,y.o5)().setPropagationContext((0,tJ.J)()),e.emit("startNavigationSpan",t),(0,y.o5)().setTransactionName(t.name);let r=(0,g.Bk)();return"navigation"===(r&&(0,g.et)(r).op)?r:void 0}function rE(e){let t=(0,eo.NX)(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function r_(e,t,r,n){let i;let o=()=>{let o="ui.action.click",s=(0,g.Bk)(),a=s&&(0,g.zU)(s);if(a&&["navigation","pageload"].includes((0,g.et)(a).op)){t0.T&&S.vF.warn(`[Tracing] Did not create ${o} span because a pageload or navigation span is in progress.`);return}if(i&&(i.setAttribute(_.fs,"interactionInterrupted"),i.end(),i=void 0),!n.name){t0.T&&S.vF.warn(`[Tracing] Did not create ${o} transaction because _latestRouteName is missing.`);return}i=t$({name:n.name,op:o,attributes:{[_.i_]:n.source||"url"}},{idleTimeout:e,finalTimeout:t,childSpanTimeout:r})};t1.jf.document&&addEventListener("click",o,{once:!1,capture:!0})}r(2396),r(86326);var rb=r(34502);let rA=!1,rT=new WeakSet;function rC(e){let t=rg({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:r,useLocation:n,useNavigationType:i,createRoutesFromChildren:o,matchRoutes:s,stripBasename:a,instrumentPageLoad:l=!0,instrumentNavigation:u=!0}=e;return{...t,setup(){h=r,d=n,f=i,m=s,p=o,rA=a||!1},afterAllSetup(e){t.afterAllSetup(e);let r=t1.jf&&t1.jf.location&&t1.jf.location.pathname;l&&r&&rv(e,{name:r,attributes:{[_.i_]:"url",[_.uT]:"pageload",[_.JD]:"auto.pageload.react.reactrouter_v6"}}),u&&rT.add(e)}}}function rS(e,t){if(!t||"/"===t||!e.toLowerCase().startsWith(t.toLowerCase()))return e;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?e:e.slice(r)||"/"}function rw(e,t,r,n=""){if(!e||0===e.length)return[rA?rS(t.pathname,n):t.pathname,"url"];let i="";if(r)for(let e of r){let r=e.route;if(r){if(r.index)return[rA?rS(e.pathname,n):e.pathname,"route"];let o=r.path;if(o){let r="/"===o[0]||"/"===i[i.length-1]?o:`/${o}`;if(i+=r,n+e.pathname===t.pathname){if((0,es.c4)(i)!==(0,es.c4)(e.pathname)&&"/*"!==i.slice(-2))return[(rA?"":n)+r,"route"];return[(rA?"":n)+i,"route"]}}}}return[rA?rS(t.pathname,n):t.pathname,"url"]}function rx(e,t,r,n,i){let o=Array.isArray(n)?n:m(r,t,i);if(o){let[n,s]=rw(r,t,o,i);(0,y.o5)().setTransactionName(n),e&&(e.updateName(n),e.setAttribute(_.i_,s))}}function rR(e,t,r,n,i){let o=Array.isArray(n)?n:m(t,e,i),s=(0,y.KU)();if(s&&rT.has(s)&&("PUSH"===r||"POP"===r)&&o){let[r,n]=rw(t,e,o,i);ry(s,{name:r,attributes:{[_.i_]:n,[_.uT]:"navigation",[_.JD]:"auto.navigation.react.reactrouter_v6"}})}}function rk(e){return h&&d&&f&&m?function(t,r){let n=e(t,r),i=r&&r.basename,o=rL();return"POP"===n.state.historyAction&&o&&rx(o,n.state.location,t,void 0,i),n.subscribe(e=>{let r=e.location;("PUSH"===e.historyAction||"POP"===e.historyAction)&&rR(r,t,e.historyAction,void 0,i)}),n}:(rb.T&&S.vF.warn("reactRouterV6Instrumentation was unable to wrap the `createRouter` function because of one or more missing parameters."),e)}function rL(){let e=(0,g.Bk)(),t=e?(0,g.zU)(e):void 0;if(!t)return;let r=(0,g.et)(t).op;return"navigation"===r||"pageload"===r?t:void 0}},7480:(e,t,r)=>{"use strict";r.d(t,{T:()=>a});var n=r(19639),i=r(23123),o=r(74015),s=r(86326);function a(e){let t={...e};return(0,o.K)(t,"react"),(0,n.o)("react",{version:s.version}),(0,i.Ts)(t)}},93164:(e,t,r)=>{"use strict";r.d(t,{De:()=>h,hF:()=>s,yD:()=>c});var n=r(18616),i=r(5868),o=r(7504);let s="baggage",a="sentry-",l=/^sentry-/,u=8192;function c(e){let t=d(e);if(!t)return;let r=Object.entries(t).reduce((e,[t,r])=>(t.match(l)&&(e[t.slice(a.length)]=r),e),{});return Object.keys(r).length>0?r:void 0}function h(e){if(e)return p(Object.entries(e).reduce((e,[t,r])=>(r&&(e[`${a}${t}`]=r),e),{}))}function d(e){return e&&((0,i.Kg)(e)||Array.isArray(e))?Array.isArray(e)?e.reduce((e,t)=>(Object.entries(f(t)).forEach(([t,r])=>{e[t]=r}),e),{}):f(e):void 0}function f(e){return e.split(",").map(e=>e.split("=").map(e=>decodeURIComponent(e.trim()))).reduce((e,[t,r])=>(t&&r&&(e[t]=r),e),{})}function p(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce((e,[t,r],i)=>{let s=`${encodeURIComponent(t)}=${encodeURIComponent(r)}`,a=0===i?s:`${e},${s}`;return a.length>u?(n.T&&o.vF.warn(`Not adding key: ${t} with val: ${r} to baggage header due to exceeding baggage size limits.`),e):a},"")}},53322:(e,t,r)=>{"use strict";r.d(t,{$N:()=>l,Hd:()=>s,NX:()=>u,xE:()=>c});var n=r(5868);let i=r(99513).O,o=80;function s(e,t={}){if(!e)return"";try{let r,n=e,i=5,s=[],l=0,u=0,c=" > ",h=c.length,d=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||o;for(;n&&l++1)||!(u+s.length*h+r.length>=f)));)s.push(r),u+=r.length,n=n.parentNode;return s.reverse().join(c)}catch(e){return""}}function a(e,t){let r=e,o=[];if(!r||!r.tagName)return"";if(i.HTMLElement&&r instanceof HTMLElement&&r.dataset){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}o.push(r.tagName.toLowerCase());let s=t&&t.length?t.filter(e=>r.getAttribute(e)).map(e=>[e,r.getAttribute(e)]):null;if(s&&s.length)s.forEach(e=>{o.push(`[${e[0]}="${e[1]}"]`)});else{r.id&&o.push(`#${r.id}`);let e=r.className;if(e&&(0,n.Kg)(e))for(let t of e.split(/\s+/))o.push(`.${t}`)}for(let e of["aria-label","type","name","title","alt"]){let t=r.getAttribute(e);t&&o.push(`[${e}="${t}"]`)}return o.join("")}function l(){try{return i.document.location.href}catch(e){return""}}function u(e){return i.document&&i.document.querySelector?i.document.querySelector(e):null}function c(e){if(!i.HTMLElement)return null;let t=e,r=5;for(let e=0;e{"use strict";r.d(t,{T:()=>n});let n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},19355:(e,t,r)=>{"use strict";r.d(t,{AD:()=>h,SB:()=>a});var n=r(18616),i=r(7504);let o=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function s(e){return"http"===e||"https"===e}function a(e,t=!1){let{host:r,path:n,pass:i,port:o,projectId:s,protocol:l,publicKey:u}=e;return`${l}://${u}${t&&i?`:${i}`:""}@${r}${o?`:${o}`:""}/${n?`${n}/`:n}${s}`}function l(e){let t=o.exec(e);if(!t){(0,i.pq)(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[r,n,s="",a="",l="",c=""]=t.slice(1),h="",d=c,f=d.split("/");if(f.length>1&&(h=f.slice(0,-1).join("/"),d=f.pop()),d){let e=d.match(/^\d+/);e&&(d=e[0])}return u({host:a,pass:s,path:h,projectId:d,port:l,protocol:r,publicKey:n})}function u(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function c(e){if(!n.T)return!0;let{port:t,projectId:r,protocol:o}=e;return!["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(i.vF.error(`Invalid Sentry Dsn: ${t} missing`),!0))&&(r.match(/^\d+$/)?s(o)?!(t&&isNaN(parseInt(t,10)))||(i.vF.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(i.vF.error(`Invalid Sentry Dsn: Invalid protocol ${o}`),!1):(i.vF.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1))}function h(e){let t="string"==typeof e?l(e):u(e);if(t&&c(t))return t}},68972:(e,t,r)=>{"use strict";r.d(t,{Cj:()=>v,W3:()=>l,bN:()=>h,bm:()=>p,h4:()=>a,n2:()=>y,y5:()=>f,yH:()=>u,zk:()=>g});var n=r(19355),i=r(80161),o=r(30535),s=r(99513);function a(e,t=[]){return[e,t]}function l(e,t){let[r,n]=e;return[r,[...n,t]]}function u(e,t){for(let r of e[1]){let e=r[0].type;if(t(r,e))return!0}return!1}function c(e){return s.O.__SENTRY__&&s.O.__SENTRY__.encodePolyfill?s.O.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}function h(e){let[t,r]=e,n=JSON.stringify(t);function o(e){"string"==typeof n?n="string"==typeof e?n+e:[c(n),e]:n.push("string"==typeof e?c(e):e)}for(let e of r){let[t,r]=e;if(o(` ${JSON.stringify(t)} `),"string"==typeof r||r instanceof Uint8Array)o(r);else{let e;try{e=JSON.stringify(r)}catch(t){e=JSON.stringify((0,i.S8)(r))}o(e)}}return"string"==typeof n?n:d(n)}function d(e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),r=0;for(let n of e)t.set(n,r),r+=n.length;return t}function f(e){return[{type:"span"},e]}function p(e){let t="string"==typeof e.data?c(e.data):e.data;return[(0,o.Ce)({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}let m={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function g(e){return m[e]}function v(e){if(!e||!e.sdk)return;let{name:t,version:r}=e.sdk;return{name:t,version:r}}function y(e,t,r,i){let s=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!r&&i&&{dsn:(0,n.SB)(i)},...s&&{trace:(0,o.Ce)({...s})}}}},54510:(e,t,r)=>{"use strict";r.d(t,{u:()=>u});var n=r(5868),i=r(30535),o=r(82228),s=r(5917),a=r(99513),l=r(49381);function u(e){let t="fetch";(0,l.s5)(t,e),(0,l.AS)(t,c)}function c(){(0,o.m7)()&&(0,i.GS)(a.O,"fetch",function(e){return function(...t){let{method:r,url:o}=f(t),u={args:t,fetchData:{method:r,url:o},startTimestamp:1e3*(0,s.zf)()};(0,l.aj)("fetch",{...u});let c=Error().stack;return e.apply(a.O,t).then(e=>{let t={...u,endTimestamp:1e3*(0,s.zf)(),response:e};return(0,l.aj)("fetch",t),e},e=>{let t={...u,endTimestamp:1e3*(0,s.zf)(),error:e};throw(0,l.aj)("fetch",t),(0,n.bJ)(e)&&void 0===e.stack&&(e.stack=c,(0,i.my)(e,"framesToPop",1)),e})}})}function h(e,t){return!!e&&"object"==typeof e&&!!e[t]}function d(e){return"string"==typeof e?e:e?h(e,"url")?e.url:e.toString?e.toString():"":""}function f(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,r]=e;return{url:d(t),method:h(r,"method")?String(r.method).toUpperCase():"GET"}}let t=e[0];return{url:d(t),method:h(t,"method")?String(t.method).toUpperCase():"GET"}}},45681:(e,t,r)=>{"use strict";r.d(t,{L:()=>s});var n=r(99513),i=r(49381);let o=null;function s(e){let t="error";(0,i.s5)(t,e),(0,i.AS)(t,a)}function a(){o=n.O.onerror,n.O.onerror=function(e,t,r,n,s){let a={column:n,error:s,line:r,msg:e,url:t};return(0,i.aj)("error",a),!!o&&!o.__SENTRY_LOADER__&&o.apply(this,arguments)},n.O.onerror.__SENTRY_INSTRUMENTED__=!0}},26369:(e,t,r)=>{"use strict";r.d(t,{r:()=>s});var n=r(99513),i=r(49381);let o=null;function s(e){let t="unhandledrejection";(0,i.s5)(t,e),(0,i.AS)(t,a)}function a(){o=n.O.onunhandledrejection,n.O.onunhandledrejection=function(e){let t=e;return(0,i.aj)("unhandledrejection",t),!o||!!o.__SENTRY_LOADER__||o.apply(this,arguments)},n.O.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}},49381:(e,t,r)=>{"use strict";r.d(t,{AS:()=>u,aj:()=>c,s5:()=>l});var n=r(18616),i=r(7504),o=r(59353);let s={},a={};function l(e,t){s[e]=s[e]||[],s[e].push(t)}function u(e,t){a[e]||(t(),a[e]=!0)}function c(e,t){let r=e&&s[e];if(r)for(let s of r)try{s(t)}catch(t){n.T&&i.vF.error(`Error while triggering instrumentation handler. Type: ${e} Name: ${(0,o.qQ)(s)} Error:`,t)}}},5868:(e,t,r)=>{"use strict";r.d(t,{BD:()=>a,Kg:()=>u,L2:()=>E,NF:()=>c,Qd:()=>d,Qg:()=>g,T2:()=>s,W6:()=>l,bJ:()=>i,gd:()=>m,mE:()=>v,sO:()=>h,tH:()=>y,vq:()=>p,xH:()=>f});let n=Object.prototype.toString;function i(e){switch(n.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return y(e,Error)}}function o(e,t){return n.call(e)===`[object ${t}]`}function s(e){return o(e,"ErrorEvent")}function a(e){return o(e,"DOMError")}function l(e){return o(e,"DOMException")}function u(e){return o(e,"String")}function c(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function h(e){return null===e||c(e)||"object"!=typeof e&&"function"!=typeof e}function d(e){return o(e,"Object")}function f(e){return"undefined"!=typeof Event&&y(e,Event)}function p(e){return"undefined"!=typeof Element&&y(e,Element)}function m(e){return o(e,"RegExp")}function g(e){return!!(e&&e.then&&"function"==typeof e.then)}function v(e){return d(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function y(e,t){try{return e instanceof t}catch(e){return!1}}function E(e){return!!("object"==typeof e&&null!==e&&(e.__isVue||e._isVue))}},7504:(e,t,r)=>{"use strict";r.d(t,{Ow:()=>s,Z9:()=>a,pq:()=>l,vF:()=>u});var n=r(18616),i=r(99513);let o="Sentry Logger ",s=["debug","info","warn","error","log","assert","trace"],a={};function l(e){if(!("console"in i.O))return e();let t=i.O.console,r={},n=Object.keys(a);n.forEach(e=>{let n=a[e];r[e]=t[e],t[e]=n});try{return e()}finally{n.forEach(e=>{t[e]=r[e]})}}let u=function(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return n.T?s.forEach(r=>{t[r]=(...t)=>{e&&l(()=>{i.O.console[r](`${o}[${r}]:`,...t)})}}):s.forEach(e=>{t[e]=()=>void 0}),t}()},26932:(e,t,r)=>{"use strict";r.d(t,{$X:()=>a,GR:()=>c,M6:()=>u,eJ:()=>o,gO:()=>l,k9:()=>h});var n=r(30535),i=r(99513);function o(){let e=i.O,t=e.crypto||e.msCrypto,r=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(r=()=>{let e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&r())>>e/4).toString(16))}function s(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function a(e){let{message:t,event_id:r}=e;if(t)return t;let n=s(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"":r||""}function l(e,t,r){let n=e.exception=e.exception||{},i=n.values=n.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=r||"Error")}function u(e,t){let r=s(e);if(!r)return;let n={type:"generic",handled:!0},i=r.mechanism;if(r.mechanism={...n,...i,...t},t&&"data"in t){let e={...i&&i.data,...t.data};r.mechanism.data=e}}function c(e){if(e&&e.__sentry_captured__)return!0;try{(0,n.my)(e,"__sentry_captured__",!0)}catch(e){}return!1}function h(e){return Array.isArray(e)?e:[e]}},80161:(e,t,r)=>{"use strict";r.d(t,{S8:()=>a,cd:()=>l});var n=r(5868);function i(){let e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(r){if(e)return!!t.has(r)||(t.add(r),!1);for(let e=0;er?l(e,t-1,r):n}function u(e,t,r=Infinity,n=Infinity,s=i()){let[a,l]=s;if(null==t||["number","boolean","string"].includes(typeof t)&&!Number.isNaN(t))return t;let h=c(e,t);if(!h.startsWith("[object "))return h;if(t.__sentry_skip_normalization__)return t;let d="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:r;if(0===d)return h.replace("object ","");if(a(t))return"[Circular ~]";let f=t;if(f&&"function"==typeof f.toJSON)try{let e=f.toJSON();return u("",e,d-1,n,s)}catch(e){}let p=Array.isArray(t)?[]:{},m=0,g=(0,o.W4)(t);for(let e in g){if(!Object.prototype.hasOwnProperty.call(g,e))continue;if(m>=n){p[e]="[MaxProperties ~]";break}let t=g[e];p[e]=u(e,t,d-1,n,s),m++}return l(t),p}function c(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if((0,n.L2)(t))return"[VueViewModel]";if((0,n.mE)(t))return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${(0,s.qQ)(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;let r=h(t);if(/^HTML(\w*)Element$/.test(r))return`[HTMLElement: ${r}]`;return`[object ${r}]`}catch(e){return`**non-serializable** (${e})`}}function h(e){let t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function d(e){return~-encodeURI(e).split(/%..|./).length}function f(e){return d(JSON.stringify(e))}},30535:(e,t,r)=>{"use strict";r.d(t,{Ce:()=>v,GS:()=>l,HF:()=>g,W4:()=>f,my:()=>u,pO:()=>c,sp:()=>h,u4:()=>d});var n=r(53322),i=r(18616),o=r(5868),s=r(7504),a=r(45425);function l(e,t,r){if(!(t in e))return;let n=e[t],i=r(n);"function"==typeof i&&c(i,n),e[t]=i}function u(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch(r){i.T&&s.vF.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function c(e,t){try{let r=t.prototype||{};e.prototype=t.prototype=r,u(e,"__sentry_original__",t)}catch(e){}}function h(e){return e.__sentry_original__}function d(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function f(e){if((0,o.bJ)(e))return{message:e.message,name:e.name,stack:e.stack,...m(e)};if(!(0,o.xH)(e))return e;{let t={type:e.type,target:p(e.target),currentTarget:p(e.currentTarget),...m(e)};return"undefined"!=typeof CustomEvent&&(0,o.tH)(e,CustomEvent)&&(t.detail=e.detail),t}}function p(e){try{return(0,o.vq)(e)?(0,n.Hd)(e):Object.prototype.toString.call(e)}catch(e){return""}}function m(e){if("object"!=typeof e||null===e)return{};{let t={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}}function g(e,t=40){let r=Object.keys(f(e));r.sort();let n=r[0];if(!n)return"[object has no keys]";if(n.length>=t)return(0,a.xv)(n,t);for(let e=r.length;e>0;e--){let n=r.slice(0,e).join(", ");if(!(n.length>t)){if(e===r.length)return n;return(0,a.xv)(n,t)}}return""}function v(e){return y(e,new Map)}function y(e,t){if(E(e)){let r=t.get(e);if(void 0!==r)return r;let n={};for(let r of(t.set(e,n),Object.keys(e)))void 0!==e[r]&&(n[r]=y(e[r],t));return n}if(Array.isArray(e)){let r=t.get(e);if(void 0!==r)return r;let n=[];return t.set(e,n),e.forEach(e=>{n.push(y(e,t))}),n}return e}function E(e){if(!(0,o.Qd)(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}},78809:(e,t,r)=>{"use strict";r.d(t,{J:()=>i});var n=r(26932);function i(){return{traceId:(0,n.eJ)(),spanId:(0,n.eJ)().substring(16)}}},59353:(e,t,r)=>{"use strict";r.d(t,{RV:()=>f,gd:()=>a,qQ:()=>d,vk:()=>l,yF:()=>i});let n=50,i="?",o=/\(error: (.*)\)/,s=/captureMessage|captureException/;function a(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,r=0,i=0)=>{let s=[],a=e.split("\n");for(let e=r;e1024)continue;let l=o.test(r)?r.replace(o,"$1"):r;if(!l.match(/\S*Error: /)){for(let e of t){let t=e(l);if(t){s.push(t);break}}if(s.length>=n+i)break}}return u(s.slice(i))}}function l(e){return Array.isArray(e)?a(...e):e}function u(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(c(t).function||"")&&t.pop(),t.reverse(),s.test(c(t).function||"")&&(t.pop(),s.test(c(t).function||"")&&t.pop()),t.slice(0,n).map(e=>({...e,filename:e.filename||c(t).filename,function:e.function||i}))}function c(e){return e[e.length-1]||{}}let h="";function d(e){try{if(!e||"function"!=typeof e)return h;return e.name||h}catch(e){return h}}function f(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch(e){}}}},45425:(e,t,r)=>{"use strict";r.d(t,{Xr:()=>a,gt:()=>o,xv:()=>i});var n=r(5868);function i(e,t=0){return"string"!=typeof e||0===t?e:e.length<=t?e:`${e.slice(0,t)}...`}function o(e,t){if(!Array.isArray(e))return"";let r=[];for(let t=0;ts(e,t,r))}},82228:(e,t,r)=>{"use strict";r.d(t,{a3:()=>a,m7:()=>l,vm:()=>s});var n=r(18616),i=r(7504);let o=r(99513).O;function s(){if(!("fetch"in o))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function a(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function l(){if("string"==typeof EdgeRuntime)return!0;if(!s())return!1;if(a(o.fetch))return!0;let e=!1,t=o.document;if(t&&"function"==typeof t.createElement)try{let r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(e=a(r.contentWindow.fetch)),t.head.removeChild(r)}catch(e){n.T&&i.vF.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}},27326:(e,t,r)=>{"use strict";r.d(t,{T2:()=>a,XW:()=>o,xg:()=>s});var n,i=r(5868);function o(e){return new a(t=>{t(e)})}function s(e){return new a((t,r)=>{r(e)})}!function(e){let t=0;e[e.PENDING=t]="PENDING";let r=1;e[e.RESOLVED=r]="RESOLVED";let n=2;e[e.REJECTED=n]="REJECTED"}(n||(n={}));class a{constructor(e){a.prototype.__init.call(this),a.prototype.__init2.call(this),a.prototype.__init3.call(this),a.prototype.__init4.call(this),this._state=n.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new a((r,n)=>{this._handlers.push([!1,t=>{if(e)try{r(e(t))}catch(e){n(e)}else r(t)},e=>{if(t)try{r(t(e))}catch(e){n(e)}else n(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new a((t,r)=>{let n,i;return this.then(t=>{i=!1,n=t,e&&e()},t=>{i=!0,n=t,e&&e()}).then(()=>{if(i){r(n);return}t(n)})})}__init(){this._resolve=e=>{this._setResult(n.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(n.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===n.PENDING){if((0,i.Qg)(t)){t.then(this._resolve,this._reject);return}this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===n.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===n.RESOLVED&&e[1](this._value),this._state===n.REJECTED&&e[2](this._value),e[0]=!0)})}}}},5917:(e,t,r)=>{"use strict";let n;r.d(t,{k3:()=>l,lu:()=>s,zf:()=>a});var i=r(99513);let o=1e3;function s(){return Date.now()/o}let a=function(){let{performance:e}=i.O;if(!e||!e.now)return s;let t=Date.now()-e.now(),r=void 0==e.timeOrigin?t:e.timeOrigin;return()=>(r+e.now())/o}(),l=(()=>{let{performance:e}=i.O;if(!e||!e.now){n="none";return}let t=36e5,r=e.now(),o=Date.now(),s=e.timeOrigin?Math.abs(e.timeOrigin+r-o):t,a=s{"use strict";r.d(t,{TC:()=>l,kM:()=>a});var n=r(93164),i=r(26932);let o=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function s(e){let t;if(!e)return;let r=e.match(o);if(r)return"1"===r[3]?t=!0:"0"===r[3]&&(t=!1),{traceId:r[1],parentSampled:t,parentSpanId:r[2]}}function a(e,t){let r=s(e),o=(0,n.yD)(t),{traceId:a,parentSpanId:l,parentSampled:u}=r||{};return r?{traceId:a||(0,i.eJ)(),parentSpanId:l||(0,i.eJ)().substring(16),spanId:(0,i.eJ)().substring(16),sampled:u,dsc:o||{}}:{traceId:a||(0,i.eJ)(),spanId:(0,i.eJ)().substring(16)}}function l(e=(0,i.eJ)(),t=(0,i.eJ)().substring(16),r){let n="";return void 0!==r&&(n=r?"-1":"-0"),`${e}-${t}${n}`}},41355:(e,t,r)=>{"use strict";function n(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let r=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:n,relative:t[5]+r+n}}function i(e){return e.split(/\\?\//).filter(e=>e.length>0&&","!==e).length}r.d(t,{Dl:()=>n,c4:()=>i})},27710:(e,t,r)=>{"use strict";r.d(t,{M:()=>n});let n="8.20.0"},99513:(e,t,r)=>{"use strict";r.d(t,{B:()=>o,O:()=>i});var n=r(27710);let i=globalThis;function o(e,t,r){let o=r||i,s=o.__SENTRY__=o.__SENTRY__||{},a=s[n.M]=s[n.M]||{};return a[e]||(a[e]=t())}},71249:(e,t,r)=>{"use strict";let n,i,o;function s(e){return e}function a(e){return e}function l(e,t){let r=[],n=c(e),i=n.next();for(;null!==i;){let e=0;if(2===i.length&&":"===i.charAt(1)){switch(i.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=n.next()}let t=s();if(r.push({matcher:t,priority:e}),","!==i)break;i=n.next()}return r;function o(){if("-"===i){i=n.next();let e=o();return t=>!!e&&!e(t)}if("("===i){i=n.next();let e=a();return")"===i&&(i=n.next()),e}if(u(i)){let e=[];do e.push(i),i=n.next();while(u(i))return r=>t(e,r)}return null}function s(){let e=[],t=o();for(;t;)e.push(t),t=o();return t=>e.every(e=>e(t))}function a(){let e=[],t=s();for(;t&&(e.push(t),"|"===i||","===i);){do i=n.next();while("|"===i||","===i)t=s()}return t=>e.some(e=>e(t))}}function u(e){return!!e&&!!e.match(/[\w\.:]+/)}function c(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,r=t.exec(e);return{next:()=>{if(!r)return null;let n=r[0];return r=t.exec(e),n}}}function h(e){"function"==typeof e.dispose&&e.dispose()}function d(e){return f(e)}function f(e){return Array.isArray(e)?p(e):"object"==typeof e?m(e):e}function p(e){let t=[];for(let r=0,n=e.length;r{for(let r in t)e[r]=t[r]}),e}function v(e){let t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return 0===t?e:~t==e.length-1?v(e.substring(0,e.length-1)):e.substr(~t+1)}r.d(t,{CZ:()=>nk,q6:()=>nx,Tu:()=>eV}),function(e){e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline"}(e0||(e0={})),"undefined"!=typeof process&&process.env.VSCODE_TEXTMATE_DEBUG,function(e){function t(e){return e.toString(2).padStart(32,"0")}function r(t){let r=e.getLanguageId(t),n=e.getTokenType(t);console.log({languageId:r,tokenType:n,fontStyle:e.getFontStyle(t),foreground:e.getForeground(t),background:e.getBackground(t)})}function n(e){return(255&e)>>>0}function i(e){return(768&e)>>>8}function o(e){return(1024&e)!=0}function s(e){return(30720&e)>>>11}function l(e){return(16744448&e)>>>15}function u(e){return(4278190080&e)>>>24}function c(t,r,n,i,o,s,l){let u=e.getLanguageId(t),c=e.getTokenType(t),h=e.containsBalancedBrackets(t)?1:0,d=e.getFontStyle(t),f=e.getForeground(t),p=e.getBackground(t);return 0!==r&&(u=r),8!==n&&(c=a(n)),null!==i&&(h=i?1:0),-1!==o&&(d=o),0!==s&&(f=s),0!==l&&(p=l),(u<<0|c<<8|h<<10|d<<11|f<<15|p<<24)>>>0}e.toBinaryStr=t,e.print=r,e.getLanguageId=n,e.getTokenType=i,e.containsBalancedBrackets=o,e.getFontStyle=s,e.getForeground=l,e.getBackground=u,e.set=c}(e1||(e1={}));let y=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;class E{static hasCaptures(e){return null!==e&&(y.lastIndex=0,y.test(e))}static replaceCaptures(e,t,r){return e.replace(y,(e,n,i,o)=>{let s=r[parseInt(n||i,10)];if(!s)return e;{let e=t.substring(s.start,s.end);for(;"."===e[0];)e=e.substring(1);switch(o){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}})}}function _(e,t){return et?1:0}function b(e,t){if(null===e&&null===t)return 0;if(!e)return -1;if(!t)return 1;let r=e.length,n=t.length;if(r===n){for(let n=0;n`);return}let o=r.lookup(t);e instanceof S?I({baseGrammar:o,selfGrammar:i},n):L(e.ruleName,{baseGrammar:o,selfGrammar:i,repository:i.repository},n);let s=r.injections(e.scopeName);if(s)for(let e of s)n.add(new S(e))}function L(e,t,r){t.repository&&t.repository[e]&&O([t.repository[e]],t,r)}function I(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&O(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&O(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function O(e,t,r){for(let n of e){if(r.visitedRule.has(n))continue;r.visitedRule.add(n);let e=n.repository?g({},t.repository,n.repository):t.repository;Array.isArray(n.patterns)&&O(n.patterns,{...t,repository:e},r);let i=n.include;if(!i)continue;let o=U(i);switch(o.kind){case 0:I({...t,selfGrammar:t.baseGrammar},r);break;case 1:I(t,r);break;case 2:L(o.ruleName,{...t,repository:e},r);break;case 3:case 4:let s=o.scopeName===t.selfGrammar.scopeName?t.selfGrammar:o.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(s){let n={baseGrammar:t.baseGrammar,selfGrammar:s,repository:e};4===o.kind?L(o.ruleName,n,r):I(n,r)}else 4===o.kind?r.add(new w(o.scopeName,o.ruleName)):r.add(new S(o.scopeName))}}}class D{kind=0}class N{kind=1}class P{ruleName;kind=2;constructor(e){this.ruleName=e}}class M{scopeName;kind=3;constructor(e){this.scopeName=e}}class B{scopeName;ruleName;kind=4;constructor(e,t){this.scopeName=e,this.ruleName=t}}function U(e){if("$base"===e)return new D;if("$self"===e)return new N;let t=e.indexOf("#");return -1===t?new M(e):0===t?new P(e.substring(1)):new B(e.substring(0,t),e.substring(t+1))}let F=/\\(\d+)/,j=/\\(\d+)/g,K=-1,V=-2;function H(e){return e}function z(e){return e}class G{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,r,n){this.$location=e,this.id=t,this._name=r||null,this._nameIsCapturing=E.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=E.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${v(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?E.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?E.replaceCaptures(this._contentName,e,t):this._contentName}}class q extends G{retokenizeCapturedWithRuleId;constructor(e,t,r,n,i){super(e,t,r,n),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error("Not supported!")}compile(e,t){throw Error("Not supported!")}compileAG(e,t,r,n){throw Error("Not supported!")}}class W extends G{_match;captures;_cachedCompiledPatterns;constructor(e,t,r,n,i){super(e,t,r,null),this._match=new J(n,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ee,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}class X extends G{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,r,n,i){super(e,t,r,n),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(let r of this.patterns)e.getRule(r).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ee,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}class Y extends G{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,r,n,i,o,s,a,l,u){super(e,t,r,n),this._begin=new J(i,this.id),this.beginCaptures=o,this._end=new J(s||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=a,this.applyEndPatternLast=l||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e,t).compileAG(e,r,n)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){for(let t of(this._cachedCompiledPatterns=new ee,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}}class Q extends G{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,r,n,i,o,s,a,l){super(e,t,r,n),this._begin=new J(i,this.id),this.beginCaptures=o,this.whileCaptures=a,this._while=new J(s,V),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns)for(let t of(this._cachedCompiledPatterns=new ee,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,r,n){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,r,n)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new ee,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}class Z{static createCaptureRule(e,t,r,n,i){return e.registerRule(e=>new q(t,e,r,n,i))}static getCompiledRuleId(e,t,r){return e.id||t.registerRule(n=>{if(e.id=n,e.match)return new W(e.$vscodeTextmateLocation,e.id,e.name,e.match,Z._compileCaptures(e.captures,t,r));if(void 0===e.begin){e.repository&&(r=g({},r,e.repository));let n=e.patterns;return void 0===n&&e.include&&(n=[{include:e.include}]),new X(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,Z._compilePatterns(n,t,r))}return e.while?new Q(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,Z._compileCaptures(e.beginCaptures||e.captures,t,r),e.while,Z._compileCaptures(e.whileCaptures||e.captures,t,r),Z._compilePatterns(e.patterns,t,r)):new Y(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,Z._compileCaptures(e.beginCaptures||e.captures,t,r),e.end,Z._compileCaptures(e.endCaptures||e.captures,t,r),e.applyEndPatternLast,Z._compilePatterns(e.patterns,t,r))}),e.id}static _compileCaptures(e,t,r){let n=[];if(e){let i=0;for(let t in e){if("$vscodeTextmateLocation"===t)continue;let e=parseInt(t,10);e>i&&(i=e)}for(let e=0;e<=i;e++)n[e]=null;for(let i in e){if("$vscodeTextmateLocation"===i)continue;let o=parseInt(i,10),s=0;e[i].patterns&&(s=Z.getCompiledRuleId(e[i],t,r)),n[o]=Z.createCaptureRule(t,e[i].$vscodeTextmateLocation,e[i].name,e[i].contentName,s)}}return n}static _compilePatterns(e,t,r){let n=[];if(e)for(let i=0,o=e.length;ie.substring(t.start,t.end));return j.lastIndex=0,this.source.replace(j,(e,t)=>T(r[parseInt(t,10)]||""))}_buildAnchorCache(){let e,t,r,n,i=[],o=[],s=[],a=[];for(e=0,t=this.source.length;ee.source);this._cached=new et(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,r){return this._hasAnchors?t?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,r){return new et(e,this._items.map(e=>e.resolveAnchors(t,r)),this._items.map(e=>e.ruleId))}}class et{regExps;rules;scanner;constructor(e,t,r){this.regExps=t,this.rules=r,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){let e=[];for(let t=0,r=this.rules.length;tthis._root.match(e));constructor(e,t,r){this._colorMap=e,this._defaults=t,this._root=r}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;let t=e.scopeName,r=this._cachedMatchRoot.get(t).find(t=>ei(e.parent,t.parentScopes));return r?new es(r.fontStyle,r.foreground,r.background):null}}class en{parent;scopeName;static push(e,t){for(let r of t)e=new en(e,r);return e}static from(...e){let t=null;for(let r=0;r1&&(c=o.slice(0,o.length-1)).reverse(),r[n++]=new el(u,c,e,s,a,l)}}return r}class el{scope;parentScopes;index;fontStyle;foreground;background;constructor(e,t,r,n,i,o){this.scope=e,this.parentScopes=t,this.index=r,this.fontStyle=n,this.foreground=i,this.background=o}}function eu(e,t){e.sort((e,t)=>{let r=_(e.scope,t.scope);return 0!==r||0!==(r=b(e.parentScopes,t.parentScopes))?r:e.index-t.index});let r=0,n="#000000",i="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(r=t.fontStyle),null!==t.foreground&&(n=t.foreground),null!==t.background&&(i=t.background)}let o=new ec(t),s=new es(r,o.getId(n),o.getId(i)),a=new ed(new eh(0,null,-1,0,0),[]);for(let t=0,r=e.length;te?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==r&&(this.foreground=r),0!==n&&(this.background=n)}}class ed{_mainRule;_children;_rulesWithParentScopes;constructor(e,t=[],r={}){this._mainRule=e,this._children=r,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){let r=e.parentScopes,n=t.parentScopes,i=null===r?0:r.length,o=null===n?0:n.length;if(i===o)for(let e=0;enew ef(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){let t=e.match(ep.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/}class em{values;scopesRegExp;constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(([e,t])=>T(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}}class eg{stack;stoppedEarly;constructor(e,t){this.stack=e,this.stoppedEarly=t}}function ev(e,t,r,n,i,o,s,a){let l=t.content.length,u=!1,c=-1;if(s){let s=ey(e,t,r,n,i,o);i=s.stack,n=s.linePos,r=s.isFirstLine,c=s.anchorPosition}let h=Date.now();for(;!u;){if(0!==a&&Date.now()-h>a)return new eg(i,!0);d()}return new eg(i,!1);function d(){let s=eE(e,t,r,n,i,c);if(!s){o.produce(i,l),u=!0;return}let a=s.captureIndices,h=s.matchedRuleId,d=!!a&&a.length>0&&a[0].end>n;if(h===K){let s=i.getRule(e);o.produce(i,a[0].start),i=i.withContentNameScopesList(i.nameScopesList),eC(e,t,r,i,o,s.endCaptures,a),o.produce(i,a[0].end);let h=i;if(i=i.parent,c=h.getAnchorPos(),!d&&h.getEnterPos()===n){i=h,o.produce(i,l),u=!0;return}}else{let s=e.getRule(h);o.produce(i,a[0].start);let f=i,p=s.getName(t.content,a),m=i.contentNameScopesList.pushAttributed(p,e);if(i=i.push(h,n,c,a[0].end===l,null,m,m),s instanceof Y){let n=s;eC(e,t,r,i,o,n.beginCaptures,a),o.produce(i,a[0].end),c=a[0].end;let h=n.getContentName(t.content,a),p=m.pushAttributed(h,e);if(i=i.withContentNameScopesList(p),n.endHasBackReferences&&(i=i.withEndRule(n.getEndWithResolvedBackReferences(t.content,a))),!d&&f.hasSameRuleAs(i)){i=i.pop(),o.produce(i,l),u=!0;return}}else if(s instanceof Q){let n=s;eC(e,t,r,i,o,n.beginCaptures,a),o.produce(i,a[0].end),c=a[0].end;let h=n.getContentName(t.content,a),p=m.pushAttributed(h,e);if(i=i.withContentNameScopesList(p),n.whileHasBackReferences&&(i=i.withEndRule(n.getWhileWithResolvedBackReferences(t.content,a))),!d&&f.hasSameRuleAs(i)){i=i.pop(),o.produce(i,l),u=!0;return}}else if(eC(e,t,r,i,o,s.captures,a),o.produce(i,a[0].end),i=i.pop(),!d){i=i.safePop(),o.produce(i,l),u=!0;return}}a[0].end>n&&(n=a[0].end,r=!1)}}function ey(e,t,r,n,i,o){let s=i.beginRuleCapturedEOL?0:-1,a=[];for(let t=i;t;t=t.pop()){let r=t.getRule(e);r instanceof Q&&a.push({rule:r,stack:t})}for(let l=a.pop();l;l=a.pop()){let{ruleScanner:a,findOptions:u}=eT(l.rule,e,l.stack.endRule,r,n===s),c=a.findNextMatchSync(t,n,u);if(c){if(c.ruleId!==V){i=l.stack.pop();break}c.captureIndices&&c.captureIndices.length&&(o.produce(l.stack,c.captureIndices[0].start),eC(e,t,r,l.stack,o,l.rule.whileCaptures,c.captureIndices),o.produce(l.stack,c.captureIndices[0].end),s=c.captureIndices[0].end,c.captureIndices[0].end>n&&(n=c.captureIndices[0].end,r=!1))}else{i=l.stack.pop();break}}return{stack:i,linePos:n,anchorPosition:s,isFirstLine:r}}function eE(e,t,r,n,i,o){let s=e_(e,t,r,n,i,o),a=e.getInjections();if(0===a.length)return s;let l=eb(a,e,t,r,n,i,o);if(!l)return s;if(!s)return l;let u=s.captureIndices[0].start,c=l.captureIndices[0].start;return c=l)&&(l=g,u=m.captureIndices,a=m.ruleId,c=d.priority,l===i))break}return u?{priorityMatch:-1===c,captureIndices:u,matchedRuleId:a}:null}function eA(e,t,r,n,i){return{ruleScanner:e.compileAG(t,r,n,i),findOptions:0}}function eT(e,t,r,n,i){return{ruleScanner:e.compileWhileAG(t,r,n,i),findOptions:0}}function eC(e,t,r,n,i,o,s){if(0===o.length)return;let a=t.content,l=Math.min(o.length,s.length),u=[],c=s[0].end;for(let t=0;tc)break;for(;u.length>0&&u[u.length-1].endPos<=d.start;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?i.produceFromScopes(u[u.length-1].scopes,d.start):i.produce(n,d.start),l.retokenizeCapturedWithRuleId){let t=l.getName(a,s),o=n.contentNameScopesList.pushAttributed(t,e),u=l.getContentName(a,s),c=o.pushAttributed(u,e),f=n.push(l.retokenizeCapturedWithRuleId,d.start,-1,!1,null,o,c),p=e.createOnigString(a.substring(0,d.end));ev(e,p,r&&0===d.start,d.start,f,i,!1,0),h(p);continue}let f=l.getName(a,s);if(null!==f){let t=(u.length>0?u[u.length-1].scopes:n.contentNameScopesList).pushAttributed(f,e);u.push(new eS(t,d.end))}}for(;u.length>0;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}class eS{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}}function ew(e,t,r,n,i,o,s,a){return new eL(e,t,r,n,i,o,s,a)}function ex(e,t,r,n,i){let o=l(t,eR),s=Z.getCompiledRuleId(r,n,i.repository);for(let r of o)e.push({debugSelector:t,matcher:r.matcher,ruleId:s,grammar:i,priority:r.priority})}function eR(e,t){if(t.length{for(let n=r;nr&&e.substr(0,r)===t&&"."===e[r]}class eL{_rootScopeName;balancedBracketSelectors;_onigLib;_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}constructor(e,t,r,n,i,o,s,a){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=a,this._basicScopeAttributesProvider=new ep(r,n),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=eI(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(let e of Object.keys(i))for(let t of l(e,eR))this._tokenTypeMatchers.push({matcher:t.matcher,type:i[e]})}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e=e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),t=[],r=this._rootScopeName,n=e(r);if(n){let e=n.injections;if(e)for(let r in e)ex(t,r,e[r],this,n);let i=this._grammarRepository.injections(r);i&&i.forEach(e=>{let r=this.getExternalGrammar(e);if(r){let e=r.injectionSelector;e&&ex(t,e,r,this,r)}})}return t.sort((e,t)=>e.priority-t.priority),t}getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,r=e(H(t));return this._ruleId2desc[t]=r,r}getRule(e){return this._ruleId2desc[z(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let r=this._grammarRepository.lookup(e);if(r)return this._includedGrammars[e]=eI(r,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,r=0){let n=this._tokenize(e,t,!1,r);return{tokens:n.lineTokens.getResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}tokenizeLine2(e,t,r=0){let n=this._tokenize(e,t,!0,r);return{tokens:n.lineTokens.getBinaryResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}_tokenize(e,t,r,n){let i;if(-1===this._rootId&&(this._rootId=Z.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),t&&t!==eD.NULL)i=!1,t.reset();else{let e;i=!0;let r=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),o=e1.set(0,r.languageId,r.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),s=this.getRule(this._rootId).getName(null,null);e=s?eO.createRootAndLookUpScopeName(s,o,this):eO.createRoot("unknown",o),t=new eD(null,this._rootId,-1,-1,!1,null,e,e)}e+="\n";let o=this.createOnigString(e),s=o.content.length,a=new eP(r,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=ev(this,o,i,0,t,a,!0,n);return h(o),{lineLength:s,lineTokens:a,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}}function eI(e,t){return(e=d(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}class eO{parent;scopePath;tokenAttributes;static fromExtension(e,t){let r=e,n=e?.scopePath??null;for(let e of t)r=new eO(r,n=en.push(n,e.scopeNames),e.encodedTokenAttributes);return r}static createRoot(e,t){return new eO(null,new en(null,e),t)}static createRootAndLookUpScopeName(e,t,r){let n=r.getMetadataForScope(e),i=new en(null,e),o=r.themeProvider.themeMatch(i),s=eO.mergeAttributes(t,n,o);return new eO(null,i,s)}get scopeName(){return this.scopePath.scopeName}constructor(e,t,r){this.parent=e,this.scopePath=t,this.tokenAttributes=r}toString(){return this.getScopeNames().join(" ")}equals(e){return eO.equals(this,e)}static equals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,r){let n=-1,i=0,o=0;return null!==r&&(n=r.fontStyle,i=r.foregroundId,o=r.backgroundId),e1.set(e,t.languageId,t.tokenType,null,n,i,o)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return eO._pushAttributed(this,e,t);let r=e.split(/ /g),n=this;for(let e of r)n=eO._pushAttributed(n,e,t);return n}static _pushAttributed(e,t,r){let n=r.getMetadataForScope(t),i=e.scopePath.push(t),o=r.themeProvider.themeMatch(i),s=eO.mergeAttributes(e.tokenAttributes,n,o);return new eO(e,i,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],r=this;for(;r&&r!==e;)t.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===e?t.reverse():void 0}}class eD{parent;ruleId;beginRuleCapturedEOL;endRule;nameScopesList;contentNameScopesList;_stackElementBrand=void 0;static NULL=new eD(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;constructor(e,t,r,n,i,o,s,a){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=o,this.nameScopesList=s,this.contentNameScopesList=a,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=n}equals(e){return null!==e&&eD._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&eO.equals(e.contentNameScopesList,t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){eD._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,r,n,i,o,s){return new eD(this,e,t,r,n,i,o,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new eD(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:z(this.ruleId),beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(e,t){let r=eO.fromExtension(e?.nameScopesList??null,t.nameScopesList);return new eD(e,H(t.ruleId),t.enterPos??-1,t.anchorPos??-1,t.beginRuleCapturedEOL,t.endRule,r,eO.fromExtension(r,t.contentNameScopesList))}}class eN{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>"*"===e?(this.allowAny=!0,[]):l(e,eR).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>l(e,eR).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}}class eP{balancedBracketSelectors;_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;constructor(e,t,r,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let r=e?.tokenAttributes??0,n=!1;if(this.balancedBracketSelectors?.matchesAlways&&(n=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(r=e1.set(r,0,s(e.type),null,-1,0,0));this.balancedBracketSelectors&&(n=this.balancedBracketSelectors.match(t))}if(n&&(r=e1.set(r,0,8,n,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(r),this._lastTokenEndIndex=t;return}let r=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:r}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let r=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e0;)await Promise.all(o.Q.map(e=>this._loadSingleGrammar(e.scopeName))),o.processQueue();return this._grammarForScopeName(e,t,r,n,i)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){let t=await this._options.loadGrammar(e);if(t){let r="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,r)}}async addGrammar(e,t=[],r=0,n=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,r,n)}_grammarForScopeName(e,t=0,r=null,n=null,i=null){return this._syncRegistry.grammarForScopeName(e,t,r,n,i)}},eU=eD.NULL,eF={LANGUAGEID_MASK:255,TOKEN_TYPE_MASK:768,BALANCED_BRACKETS_MASK:1024,FONT_STYLE_MASK:14336,FOREGROUND_MASK:8372224,BACKGROUND_MASK:4286578688,LANGUAGEID_OFFSET:0,TOKEN_TYPE_OFFSET:8,BALANCED_BRACKETS_OFFSET:10,FONT_STYLE_OFFSET:11,FOREGROUND_OFFSET:15,BACKGROUND_OFFSET:24};class ej{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t=`0${t}`;return t}static getLanguageId(e){return(e&eF.LANGUAGEID_MASK)>>>eF.LANGUAGEID_OFFSET}static getTokenType(e){return(e&eF.TOKEN_TYPE_MASK)>>>eF.TOKEN_TYPE_OFFSET}static getFontStyle(e){return(e&eF.FONT_STYLE_MASK)>>>eF.FONT_STYLE_OFFSET}static getForeground(e){return(e&eF.FOREGROUND_MASK)>>>eF.FOREGROUND_OFFSET}static getBackground(e){return(e&eF.BACKGROUND_MASK)>>>eF.BACKGROUND_OFFSET}static containsBalancedBrackets(e){return(e&eF.BALANCED_BRACKETS_MASK)!=0}static set(e,t,r,n,i,o){let s=ej.getLanguageId(e),a=ej.getTokenType(e),l=ej.getFontStyle(e),u=ej.getForeground(e),c=ej.getBackground(e),h=ej.containsBalancedBrackets(e)?1:0;return 0!==t&&(s=t),0!==r&&(a=8===r?0:r),n!==e0.NotSet&&(l=n),0!==i&&(u=i),0!==o&&(c=o),(s<>>0}}function eK(e,t=!1){let r=e.split(/(\r?\n)/g),n=0,i=[];for(let e=0;er&&n.push({...e,content:e.content.slice(r,i),offset:e.offset+r}),r=i;return re-t);return r.length?e.map(e=>e.flatMap(e=>{let t=r.filter(t=>e.offsett-e.offset).sort((e,t)=>e-t);return t.length?eq(e,t):e})):e}function eX(e,t){let r="string"==typeof e?{}:{...e.colorReplacements},n="string"==typeof e?e:e.name;for(let[e,i]of Object.entries(t?.colorReplacements||{}))"string"==typeof i?r[e]=i:e===n&&Object.assign(r,i);return r}function eY(e,t){return e&&t?.[e?.toLowerCase()]||e}function eQ(e){let t={};return e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle&&(e.fontStyle&e0.Italic&&(t["font-style"]="italic"),e.fontStyle&e0.Bold&&(t["font-weight"]="bold"),e.fontStyle&e0.Underline&&(t["text-decoration"]="underline")),t}function eZ(e){return Object.entries(e).map(([e,t])=>`${e}:${t}`).join(";")}function eJ(e){let t=eK(e,!0).map(([e])=>e);function r(r){if(r===e.length)return{line:t.length-1,character:t[t.length-1].length};let n=r,i=0;for(let e of t){if(nNumber.parseInt(e));3!==i.length||i.some(e=>Number.isNaN(e))||(r={type:"rgb",rgb:i})}else if("5"===i){let i=Number.parseInt(e[t+n]);Number.isNaN(i)||(r={type:"table",index:Number(i)})}return[n,r]}function e6(e){let t=[];for(let r=0;r=90&&n<=97?t.push({type:"setForegroundColor",value:{type:"named",name:e2[n-90+8]}}):n>=100&&n<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:e2[n-100+8]}})}}return t}function e7(){let e=null,t=null,r=new Set;return{parse(n){let i=[],o=0;do{let s=e4(n,o),a=s.sequence?n.substring(o,s.startPosition):n.substring(o);if(a.length>0&&i.push({value:a,foreground:e,background:t,decorations:new Set(r)}),s.sequence){let n=e6(s.sequence);for(let i of n)"resetAll"===i.type?(e=null,t=null,r.clear()):"resetForegroundColor"===i.type?e=null:"resetBackgroundColor"===i.type?t=null:"resetDecoration"===i.type&&r.delete(i.value);for(let i of n)"setForegroundColor"===i.type?e=i.value:"setBackgroundColor"===i.type?t=i.value:"setDecoration"===i.type&&r.add(i.value)}o=s.position}while(oMath.max(0,Math.min(e,255)).toString(16).padStart(2,"0")).join("")}`}function i(){if(t)return t;t=[];for(let e=0;e[t,e.colors?.[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]]))),s=e7();return i.map(t=>s.parse(t[0]).map(r=>{let i,s;r.decorations.has("reverse")?(i=r.background?o.value(r.background):e.bg,s=r.foreground?o.value(r.foreground):e.fg):(i=r.foreground?o.value(r.foreground):e.fg,s=r.background?o.value(r.background):void 0),i=eY(i,n),s=eY(s,n),r.decorations.has("dim")&&(i=tt(i));let a=e0.None;return r.decorations.has("bold")&&(a|=e0.Bold),r.decorations.has("italic")&&(a|=e0.Italic),r.decorations.has("underline")&&(a|=e0.Underline),{content:r.value,offset:t[1],color:i,bgColor:s,fontStyle:a}}))}function tt(e){let t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){let e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${e}`}return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map(e=>`${e}${e}`).join("")}80`}let r=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return r?`var(${r[1]}-dim)`:e}class tr extends Error{constructor(e){super(e),this.name="ShikiError"}}class tn{_stack;lang;theme;static initial(e,t){return new tn(eU,e,t)}constructor(e,t,r){this._stack=e,this.lang=t,this.theme=r}get scopes(){return ti(this._stack)}toJSON(){return{lang:this.lang,theme:this.theme,scopes:this.scopes}}}function ti(e){let t=[],r=new Set;function n(e){if(r.has(e))return;r.add(e);let i=e?.nameScopesList?.scopeName;i&&t.push(i),e.parent&&n(e.parent)}return n(e),t}function to(e){if(!(e instanceof tn))throw new tr("Invalid grammar state");return e._stack}function ts(e,t,r={}){let{lang:n="text",theme:i=e.getLoadedThemes()[0]}=r;if(eV(n)||ez(i))return eK(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:o,colorMap:s}=e.setTheme(i);if("ansi"===n)return te(o,t,r);let a=e.getLanguage(n);if(r.grammarState){if(r.grammarState.lang!==a.name)throw new tr(`Grammar state language "${r.grammarState.lang}" does not match highlight language "${a.name}"`);if(r.grammarState.theme!==i)throw new tr(`Grammar state theme "${r.grammarState.theme}" does not match highlight theme "${i}"`)}return tl(t,a,o,s,r)}function ta(e,t,r={}){let{lang:n="text",theme:i=e.getLoadedThemes()[0]}=r;if(eV(n)||ez(i))throw new tr("Plain language does not have grammar state");if("ansi"===n)throw new tr("ANSI language does not have grammar state");let{theme:o,colorMap:s}=e.setTheme(i),a=e.getLanguage(n);return new tn(tu(t,a,o,s,r).stateStack,a.name,o.name)}function tl(e,t,r,n,i){return tu(e,t,r,n,i).tokens}function tu(e,t,r,n,i){let o=eX(r,i),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:a=500}=i,l=eK(e),u=i.grammarState?to(i.grammarState):null!=i.grammarContextCode?tu(i.grammarContextCode,t,r,n,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:eU,c=[],h=[],d=[];if(i.includeExplanation)for(let e of r.settings){let t;switch(typeof e.scope){case"string":t=e.scope.split(/,/).map(e=>e.trim());break;case"object":t=e.scope;break;default:continue}d.push({settings:e,selectors:t.map(e=>e.split(/ /))})}for(let e=0,r=l.length;e0&&p.length>=s){c=[],h.push([{content:p,offset:m,color:"",fontStyle:0}]);continue}i.includeExplanation&&(r=t.tokenizeLine(p,u).tokens,f=0);let g=t.tokenizeLine2(p,u,a),v=g.tokens.length/2;for(let e=0;e=0&&i>=0;)th(e[n],r[i])&&(n-=1),i-=1;return -1===n}function tf(e,t,r){let n=[];for(let{selectors:i,settings:o}of e)for(let e of i)if(td(e,t,r)){n.push(o);break}return n}function tp(e,t,r){let n=Object.entries(r.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),i=tm(...n.map(n=>ts(e,t,{...r,theme:n.theme})));return i[0].map((e,t)=>e.map((e,o)=>{let s={content:e.content,variants:{},offset:e.offset};return"includeExplanation"in r&&r.includeExplanation&&(s.explanation=e.explanation),i.forEach((e,r)=>{let{content:i,explanation:a,offset:l,...u}=e[t][o];s.variants[n[r].color]=u}),s}))}function tm(...e){let t=e.map(()=>[]),r=e.length;for(let n=0;ne[n]),o=t.map(()=>[]);t.forEach((e,t)=>e.push(o[t]));let s=i.map(()=>0),a=i.map(e=>e[0]);for(;a.every(e=>e);){let e=Math.min(...a.map(e=>e.content.length));for(let t=0;te[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===l?-1:t.color===l?1:0);if(0===c.length)throw new tr("`themes` option must not be empty");let h=tp(e,t,r);if(l&&!c.find(e=>e.color===l))throw new tr(`\`themes\` option must contain the defaultColor key \`${l}\``);let d=c.map(t=>e.getTheme(t.theme)),f=c.map(e=>e.color);o=h.map(e=>e.map(e=>tv(e,f,u,l)));let p=c.map(e=>eX(e.theme,r));i=c.map((e,t)=>(0===t&&l?"":`${u+e.color}:`)+(eY(d[t].fg,p[t])||"inherit")).join(";"),n=c.map((e,t)=>(0===t&&l?"":`${u+e.color}-bg:`)+(eY(d[t].bg,p[t])||"inherit")).join(";"),s=`shiki-themes ${d.map(e=>e.name).join(" ")}`,a=l?void 0:[i,n].join(";")}else if("theme"in r){let a=eX(r.theme,r);o=ts(e,t,r);let l=e.getTheme(r.theme);n=eY(l.bg,a),i=eY(l.fg,a),s=l.name}else throw new tr("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:i,bg:n,themeName:s,rootStyle:a}}function tv(e,t,r,n){let i={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(t=>eQ(e.variants[t])),s=new Set(o.flatMap(e=>Object.keys(e))),a=o.reduce((e,i,o)=>{for(let a of s){let s=i[a]||"inherit";if(0===o&&n)e[a]=s;else{let n="color"===a?"":"background-color"===a?"-bg":`-${a}`,i=r+t[o]+("color"===a?"":n);e[a]?e[a]+=`;${i}:${s}`:e[a]=`${i}:${s}`}}return e},{});return i.htmlStyle=n?eZ(a):Object.values(a).join(";"),i}let ty=[function(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){let i=eJ(t.source);function n(e){if("number"==typeof e){if(e<0||e>t.source.length)throw new tr(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...i.indexToPos(e),offset:e}}{let t=i.lines[e.line];if(void 0===t)throw new tr(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${i.lines.length}`);if(e.character<0||e.character>t.length)throw new tr(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,offset:i.posToIndex(e.line,e.character)}}}let o=(t.options.decorations||[]).map(e=>({...e,start:n(e.start),end:n(e.end)}));r(o),e.set(t.meta,{decorations:o,converter:i,source:t.source})}return e.get(t.meta)}function r(e){for(let t=0;tr.end.offset)throw new tr(`Invalid decoration range: ${JSON.stringify(r.start)} - ${JSON.stringify(r.end)}`);for(let n=t+1;n[e.start.offset,e.end.offset]))},code(e){if(!this.options.decorations?.length)return;let r=t(this),n=Array.from(e.children).filter(e=>"element"===e.type&&"span"===e.tagName);if(n.length!==r.converter.lines.length)throw new tr(`Number of lines in code element (${n.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function i(e,t,r,i){let o=n[e],a="",l=-1,u=-1;function c(e){return"text"===e.type?e.value:"element"===e.type?e.children.map(c).join(""):""}if(0===t&&(l=0),0===r&&(u=0),r===Number.POSITIVE_INFINITY&&(u=o.children.length),-1===l||-1===u)for(let e=0;ee);return e.tagName=t.tagName||"span",e.properties={...e.properties,...n,class:e.properties.class},t.properties?.class&&eG(e,t.properties.class),e=i(e,r)||e}let a=[];for(let e of r.decorations.sort((e,t)=>t.start.offset-e.start.offset)){let{start:t,end:r}=e;if(t.line===r.line)i(t.line,t.character,r.character,e);else if(t.lineo(n,e));i(r.line,0,r.character,e)}}a.forEach(e=>e())}}}()];function tE(e){return[...e.transformers||[],...ty]}function t_(e,t,r,n={meta:{},options:r,codeToHast:(t,r)=>t_(e,t,r),codeToTokens:(t,r)=>tg(e,t,r)}){let i=t;for(let e of tE(r))i=e.preprocess?.call(n,i,r)||i;let{tokens:o,fg:s,bg:a,themeName:l,rootStyle:u}=tg(e,i,r),{mergeWhitespaces:c=!0}=r;!0===c?o=tA(o):"never"===c&&(o=tT(o));let h={...n,get source(){return i}};for(let e of tE(r))o=e.tokens?.call(h,o)||o;return tb(o,{...r,fg:s,bg:a,themeName:l,rootStyle:u},h)}function tb(e,t,r){let n=tE(t),i=[],o={type:"root",children:[]},{structure:s="classic"}=t,a={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,tabindex:"0",...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([e])=>!e.startsWith("_")))},children:[]},l={type:"element",tagName:"code",properties:{},children:i},u=[],c={...r,structure:s,addClassToHast:eG,get source(){return r.source},get tokens(){return e},get options(){return t},get root(){return o},get pre(){return a},get code(){return l},get lines(){return u}};if(e.forEach((e,t)=>{t&&("inline"===s?o.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===s&&i.push({type:"text",value:"\n"}));let r={type:"element",tagName:"span",properties:{class:"line"},children:[]},a=0;for(let i of e){let e={type:"element",tagName:"span",properties:{},children:[{type:"text",value:i.content}]},l=i.htmlStyle||eZ(eQ(i));for(let i of(l&&(e.properties.style=l),n))e=i?.span?.call(c,e,t+1,a,r)||e;"inline"===s?o.children.push(e):"classic"===s&&r.children.push(e),a+=i.content.length}if("classic"===s){for(let e of n)r=e?.line?.call(c,r,t+1)||r;u.push(r),i.push(r)}}),"classic"===s){for(let e of n)l=e?.code?.call(c,l)||l;for(let e of(a.children.push(l),n))a=e?.pre?.call(c,a)||a;o.children.push(a)}let h=o;for(let e of n)h=e?.root?.call(c,h)||h;return h}function tA(e){return e.map(e=>{let t=[],r="",n=0;return e.forEach((i,o)=>{let s=!(i.fontStyle&&i.fontStyle&e0.Underline);s&&i.content.match(/^\s+$/)&&e[o+1]?(n||(n=i.offset),r+=i.content):r?(s?t.push({...i,offset:n,content:r+i.content}):t.push({content:r,offset:n},i),n=0,r=""):t.push(i)}),t})}function tT(e){return e.map(e=>e.flatMap(e=>{if(e.content.match(/^\s+$/))return e;let t=e.content.match(/^(\s*)(.*?)(\s*)$/);if(!t)return e;let[,r,n,i]=t;if(!r&&!i)return e;let o=[{...e,offset:e.offset+r.length,content:n}];return r&&o.unshift({content:r,offset:e.offset}),i&&o.push({content:i,offset:e.offset+r.length+n.length}),o}))}let tC=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class tS{constructor(e,t,r){this.property=e,this.normal=t,r&&(this.space=r)}}function tw(e,t){let r={},n={},i=-1;for(;++i"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),t$=tH({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function tG(e,t){return t in e?e[t]:t}function tq(e,t){return tG(e,t.toLowerCase())}let tW=tH({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:tq,properties:{xmlns:null,xmlnsXLink:null}}),tX=tH({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:tI,ariaAutoComplete:null,ariaBusy:tI,ariaChecked:tI,ariaColCount:tD,ariaColIndex:tD,ariaColSpan:tD,ariaControls:tN,ariaCurrent:null,ariaDescribedBy:tN,ariaDetails:null,ariaDisabled:tI,ariaDropEffect:tN,ariaErrorMessage:null,ariaExpanded:tI,ariaFlowTo:tN,ariaGrabbed:tI,ariaHasPopup:null,ariaHidden:tI,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:tN,ariaLevel:tD,ariaLive:null,ariaModal:tI,ariaMultiLine:tI,ariaMultiSelectable:tI,ariaOrientation:null,ariaOwns:tN,ariaPlaceholder:null,ariaPosInSet:tD,ariaPressed:tI,ariaReadOnly:tI,ariaRelevant:null,ariaRequired:tI,ariaRoleDescription:tN,ariaRowCount:tD,ariaRowIndex:tD,ariaRowSpan:tD,ariaSelected:tI,ariaSetSize:tD,ariaSort:null,ariaValueMax:tD,ariaValueMin:tD,ariaValueNow:tD,ariaValueText:null,role:null}}),tY=tH({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:tq,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:tP,acceptCharset:tN,accessKey:tN,action:null,allow:null,allowFullScreen:tL,allowPaymentRequest:tL,allowUserMedia:tL,alt:null,as:null,async:tL,autoCapitalize:null,autoComplete:tN,autoFocus:tL,autoPlay:tL,blocking:tN,capture:null,charSet:null,checked:tL,cite:null,className:tN,cols:tD,colSpan:null,content:null,contentEditable:tI,controls:tL,controlsList:tN,coords:tD|tP,crossOrigin:null,data:null,dateTime:null,decoding:null,default:tL,defer:tL,dir:null,dirName:null,disabled:tL,download:tO,draggable:tI,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:tL,formTarget:null,headers:tN,height:tD,hidden:tL,high:tD,href:null,hrefLang:null,htmlFor:tN,httpEquiv:tN,id:null,imageSizes:null,imageSrcSet:null,inert:tL,inputMode:null,integrity:null,is:null,isMap:tL,itemId:null,itemProp:tN,itemRef:tN,itemScope:tL,itemType:tN,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:tL,low:tD,manifest:null,max:null,maxLength:tD,media:null,method:null,min:null,minLength:tD,multiple:tL,muted:tL,name:null,nonce:null,noModule:tL,noValidate:tL,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:tL,optimum:tD,pattern:null,ping:tN,placeholder:null,playsInline:tL,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:tL,referrerPolicy:null,rel:tN,required:tL,reversed:tL,rows:tD,rowSpan:tD,sandbox:tN,scope:null,scoped:tL,seamless:tL,selected:tL,shadowRootDelegatesFocus:tL,shadowRootMode:null,shape:null,size:tD,sizes:null,slot:null,span:tD,spellCheck:tI,src:null,srcDoc:null,srcLang:null,srcSet:null,start:tD,step:null,style:null,tabIndex:tD,target:null,title:null,translate:null,type:null,typeMustMatch:tL,useMap:null,value:tI,width:tD,wrap:null,align:null,aLink:null,archive:tN,axis:null,background:null,bgColor:null,border:tD,borderColor:null,bottomMargin:tD,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:tL,declare:tL,event:null,face:null,frame:null,frameBorder:null,hSpace:tD,leftMargin:tD,link:null,longDesc:null,lowSrc:null,marginHeight:tD,marginWidth:tD,noResize:tL,noHref:tL,noShade:tL,noWrap:tL,object:null,profile:null,prompt:null,rev:null,rightMargin:tD,rules:null,scheme:null,scrolling:tI,standby:null,summary:null,text:null,topMargin:tD,valueType:null,version:null,vAlign:null,vLink:null,vSpace:tD,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:tL,disableRemotePlayback:tL,prefix:null,property:null,results:tD,security:null,unselectable:null}}),tQ=tH({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:tG,properties:{about:tM,accentHeight:tD,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:tD,amplitude:tD,arabicForm:null,ascent:tD,attributeName:null,attributeType:null,azimuth:tD,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:tD,by:null,calcMode:null,capHeight:tD,className:tN,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:tD,diffuseConstant:tD,direction:null,display:null,dur:null,divisor:tD,dominantBaseline:null,download:tL,dx:null,dy:null,edgeMode:null,editable:null,elevation:tD,enableBackground:null,end:null,event:null,exponent:tD,externalResourcesRequired:null,fill:null,fillOpacity:tD,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:tP,g2:tP,glyphName:tP,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:tD,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:tD,horizOriginX:tD,horizOriginY:tD,id:null,ideographic:tD,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:tD,k:tD,k1:tD,k2:tD,k3:tD,k4:tD,kernelMatrix:tM,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:tD,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:tD,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:tD,overlineThickness:tD,paintOrder:null,panose1:null,path:null,pathLength:tD,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:tN,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:tD,pointsAtY:tD,pointsAtZ:tD,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:tM,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:tM,rev:tM,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:tM,requiredFeatures:tM,requiredFonts:tM,requiredFormats:tM,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:tD,specularExponent:tD,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:tD,strikethroughThickness:tD,string:null,stroke:null,strokeDashArray:tM,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:tD,strokeOpacity:tD,strokeWidth:null,style:null,surfaceScale:tD,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:tM,tabIndex:tD,tableValues:null,target:null,targetX:tD,targetY:tD,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:tM,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:tD,underlineThickness:tD,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:tD,values:null,vAlphabetic:tD,vMathematical:tD,vectorEffect:null,vHanging:tD,vIdeographic:tD,version:null,vertAdvY:tD,vertOriginX:tD,vertOriginY:tD,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:tD,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),tZ=/^data[-\w.:]+$/i,tJ=/-[a-z]/g,t0=/[A-Z]/g;function t1(e,t){let r=tx(t),n=t,i=tR;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&"data"===r.slice(0,4)&&tZ.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(tJ,t3);n="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!tJ.test(e)){let r=e.replace(t0,t2);"-"!==r.charAt(0)&&(r="-"+r),t="data"+r}}i=tj}return new i(n,t)}function t2(e){return"-"+e.toLowerCase()}function t3(e){return e.charAt(1).toUpperCase()}let t4=tw([t$,tz,tW,tX,tY],"html"),t5=tw([t$,tz,tW,tX,tQ],"svg"),t6={}.hasOwnProperty;function t7(e,t){let r=t||{};function n(t,...r){let i=n.invalid,o=n.handlers;if(t&&t6.call(t,e)){let r=String(t[e]);i=t6.call(o,r)?o[r]:n.unknown}if(i)return i.call(this,t,...r)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}function t8(e,t){if(e=e.replace(t.subset?t9(t.subset):/["&'<>`]/g,n),t.subset||t.escapeOnly)return e;return e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,r).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,n);function r(e,r,n){return t.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,n.charCodeAt(r+2),t)}function n(e,r,n){return t.format(e.charCodeAt(0),n.charCodeAt(r+1),t)}}function t9(e){let t=[],r=-1;for(;++r",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},ri=["cent","copy","divide","gt","lt","not","para","times"],ro={}.hasOwnProperty,rs={};for(n in rn)ro.call(rn,n)&&(rs[rn[n]]=n);function ra(e,t,r,n){let i=String.fromCharCode(e);if(ro.call(rs,i)){let e=rs[i],o="&"+e;return r&&rr.includes(e)&&!ri.includes(e)&&(!n||t&&61!==t&&/[^\da-z]/i.test(String.fromCharCode(t)))?o:o+";"}return""}function rl(e,t,r){let n,i=re(e,t,r.omitOptionalSemicolons);if((r.useNamedReferences||r.useShortestReferences)&&(n=ra(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!n)&&r.useShortestReferences){let n=rt(e,t,r.omitOptionalSemicolons);n.length|^->||--!>|"],rd=["<",">"];function rf(e,t,r,n){return n.settings.bogusComments?"":"";function i(e){return ru(e,Object.assign({},n.settings.characterReferences,{subset:rd}))}}function rp(e,t,r,n){return""}function rm(e,t){let r=String(e);if("string"!=typeof t)throw TypeError("Expected character");let n=0,i=r.indexOf(t);for(;-1!==i;)n++,i=r.indexOf(t,i+t.length);return n}function rg(e,t){let r=t||{};return(""===e[e.length-1]?[...e,""]:e).join((r.padRight?" ":"")+","+(!1===r.padLeft?"":" ")).trim()}function rv(e){return e.join(" ").trim()}let ry=/[ \t\n\f\r]/g;function rE(e){return"object"==typeof e?"text"===e.type&&r_(e.value):r_(e)}function r_(e){return""===e.replace(ry,"")}let rb=rC(1),rA=rC(-1),rT=[];function rC(e){return t;function t(t,r,n){let i=t?t.children:rT,o=(r||0)+e,s=i[o];if(!n)for(;s&&rE(s);)o+=e,s=i[o];return s}}let rS={}.hasOwnProperty;function rw(e){return t;function t(t,r,n){return rS.call(e,t.tagName)&&e[t.tagName](t,r,n)}}let rx=rw({body:rL,caption:rR,colgroup:rR,dd:rN,dt:rD,head:rR,html:rk,li:rO,optgroup:rM,option:rB,p:rI,rp:rP,rt:rP,tbody:rF,td:rV,tfoot:rj,th:rV,thead:rU,tr:rK});function rR(e,t,r){let n=rb(r,t,!0);return!n||"comment"!==n.type&&!("text"===n.type&&rE(n.value.charAt(0)))}function rk(e,t,r){let n=rb(r,t);return!n||"comment"!==n.type}function rL(e,t,r){let n=rb(r,t);return!n||"comment"!==n.type}function rI(e,t,r){let n=rb(r,t);return n?"element"===n.type&&("address"===n.tagName||"article"===n.tagName||"aside"===n.tagName||"blockquote"===n.tagName||"details"===n.tagName||"div"===n.tagName||"dl"===n.tagName||"fieldset"===n.tagName||"figcaption"===n.tagName||"figure"===n.tagName||"footer"===n.tagName||"form"===n.tagName||"h1"===n.tagName||"h2"===n.tagName||"h3"===n.tagName||"h4"===n.tagName||"h5"===n.tagName||"h6"===n.tagName||"header"===n.tagName||"hgroup"===n.tagName||"hr"===n.tagName||"main"===n.tagName||"menu"===n.tagName||"nav"===n.tagName||"ol"===n.tagName||"p"===n.tagName||"pre"===n.tagName||"section"===n.tagName||"table"===n.tagName||"ul"===n.tagName):!r||!("element"===r.type&&("a"===r.tagName||"audio"===r.tagName||"del"===r.tagName||"ins"===r.tagName||"map"===r.tagName||"noscript"===r.tagName||"video"===r.tagName))}function rO(e,t,r){let n=rb(r,t);return!n||"element"===n.type&&"li"===n.tagName}function rD(e,t,r){let n=rb(r,t);return!!(n&&"element"===n.type&&("dt"===n.tagName||"dd"===n.tagName))}function rN(e,t,r){let n=rb(r,t);return!n||"element"===n.type&&("dt"===n.tagName||"dd"===n.tagName)}function rP(e,t,r){let n=rb(r,t);return!n||"element"===n.type&&("rp"===n.tagName||"rt"===n.tagName)}function rM(e,t,r){let n=rb(r,t);return!n||"element"===n.type&&"optgroup"===n.tagName}function rB(e,t,r){let n=rb(r,t);return!n||"element"===n.type&&("option"===n.tagName||"optgroup"===n.tagName)}function rU(e,t,r){let n=rb(r,t);return!!(n&&"element"===n.type&&("tbody"===n.tagName||"tfoot"===n.tagName))}function rF(e,t,r){let n=rb(r,t);return!n||"element"===n.type&&("tbody"===n.tagName||"tfoot"===n.tagName)}function rj(e,t,r){return!rb(r,t)}function rK(e,t,r){let n=rb(r,t);return!n||"element"===n.type&&"tr"===n.tagName}function rV(e,t,r){let n=rb(r,t);return!n||"element"===n.type&&("td"===n.tagName||"th"===n.tagName)}let rH=rw({body:rG,colgroup:rq,head:r$,html:rz,tbody:rW});function rz(e){let t=rb(e,-1);return!t||"comment"!==t.type}function r$(e){let t=e.children,r=[],n=-1;for(;++n0}function rG(e){let t=rb(e,-1,!0);return!t||"comment"!==t.type&&!("text"===t.type&&rE(t.value.charAt(0)))&&!("element"===t.type&&("meta"===t.tagName||"link"===t.tagName||"script"===t.tagName||"style"===t.tagName||"template"===t.tagName))}function rq(e,t,r){let n=rA(r,t),i=rb(e,-1,!0);return!(r&&n&&"element"===n.type&&"colgroup"===n.tagName&&rx(n,r.children.indexOf(n),r))&&!!(i&&"element"===i.type&&"col"===i.tagName)}function rW(e,t,r){let n=rA(r,t),i=rb(e,-1);return!(r&&n&&"element"===n.type&&("thead"===n.tagName||"tbody"===n.tagName)&&rx(n,r.children.indexOf(n),r))&&!!(i&&"element"===i.type&&"tr"===i.tagName)}let rX={name:[[" \n\f\r &/=>".split("")," \n\f\r \"&'/=>`".split("")],["\0 \n\f\r \"&'/<=>".split(""),"\0 \n\f\r \"&'/<=>`".split("")]],unquoted:[[" \n\f\r &>".split(""),"\0 \n\f\r \"&'<=>`".split("")],["\0 \n\f\r \"&'<=>`".split(""),"\0 \n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function rY(e,t){let r;let n=[],i=-1;if(t){for(r in t)if(null!==t[r]&&void 0!==t[r]){let i=rQ(e,r,t[r]);i&&n.push(i)}}for(;++irm(r,e.alternative)&&(a=e.alternative),n=a+ru(r,Object.assign({},e.settings.characterReferences,{subset:("'"===a?rX.single:rX.double)[o][s],attribute:!0}))+a),l+(n?"="+n:n))}let rZ=["<","&"];function rJ(e,t,r,n){return r&&"element"===r.type&&("script"===r.tagName||"style"===r.tagName)?e.value:ru(e.value,Object.assign({},n.settings.characterReferences,{subset:rZ}))}let r0=t7("type",{invalid:r1,unknown:r2,handlers:{comment:rf,doctype:rp,element:function(e,t,r,n){let i;let o=n.schema,s="svg"!==o.space&&n.settings.omitOptionalTags,a="svg"===o.space?n.settings.closeEmptyElements:n.settings.voids.includes(e.tagName.toLowerCase()),l=[];"html"===o.space&&"svg"===e.tagName&&(n.schema=t5);let u=rY(n,e.properties),c=n.all("html"===o.space&&"template"===e.tagName?e.content:e);return n.schema=o,c&&(a=!1),!u&&s&&rH(e,t,r)||(l.push("<",e.tagName,u?" "+u:""),a&&("svg"===o.space||n.settings.closeSelfClosing)&&(i=u.charAt(u.length-1),(!n.settings.tightSelfClosing||"/"===i||i&&'"'!==i&&"'"!==i)&&l.push(" "),l.push("/")),l.push(">")),l.push(c),a||s&&rx(e,t,r)||l.push(""),l.join("")},raw:function(e,t,r,n){return n.settings.allowDangerousHtml?e.value:rJ(e,t,r,n)},root:function(e,t,r,n){return n.all(e)},text:rJ}});function r1(e){throw Error("Expected node, not `"+e+"`")}function r2(e){throw Error("Cannot compile unknown node `"+e.type+"`")}let r3={},r4={},r5=[];function r6(e,t){let r=t||r3,n=r.quote||'"',i='"'===n?"'":'"';if('"'!==n&&"'"!==n)throw Error("Invalid quote `"+n+"`, expected `'` or `\"`");return({one:r7,all:r8,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||tC,characterReferences:r.characterReferences||r4,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:"svg"===r.space?t5:t4,quote:n,alternative:i}).one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function r7(e,t,r){return r0(e,t,r,this)}function r8(e){let t=[],r=e&&e.children||r5,n=-1;for(;++nt_(e,t,r),codeToTokens:(t,r)=>tg(e,t,r)},i=r6(t_(e,t,r,n));for(let e of tE(r))i=e.postprocess?.call(n,i,r)||i;return i}async function ne(e){let t,r;let n={};function i(e){r=e,n.HEAPU8=new Uint8Array(e),n.HEAPU32=new Uint32Array(e)}function o(){return"undefined"!=typeof performance?performance.now():Date.now()}function s(e,t,r){n.HEAPU8.copyWithin(e,t,t+r)}function a(){return 2147483648}function l(e){try{return t.grow(e-r.byteLength+65535>>>16),i(t.buffer),1}catch{}}function u(e){let t=n.HEAPU8.length;e>>>=0;let r=a();if(e>r)return!1;let i=(e,t)=>e+(t-e%t)%t;for(let n=1;n<=4;n*=2){let o=t*(1+.2/n);if(o=Math.min(o,e+100663296),l(Math.min(r,i(Math.max(e,o),65536))))return!0}return!1}let c="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function h(e,t,r=1024){let n=t+r,i=t;for(;e[i]&&!(i>=n);)++i;if(i-t>16&&e.buffer&&c)return c.decode(e.subarray(t,i));let o="";for(;t>10,56320|1023&e)}}return o}function d(e,t){return e?h(n.HEAPU8,e,t):""}let f={emscripten_get_now:o,emscripten_memcpy_big:s,emscripten_resize_heap:u,fd_write:()=>0};async function p(){let r={env:f,wasi_snapshot_preview1:f},o=await e(r);i((t=o.memory).buffer),Object.assign(n,o),n.UTF8ToString=d}return await p(),n}let nt=null,nr=!1;function nn(e){throw new tr(e.UTF8ToString(e.getLastOnigError()))}class ni{static _utf8ByteLength(e){let t=0;for(let r=0,n=e.length;r=55296&&i<=56319&&r+1=56320&&t<=57343&&(o=(i-55296<<10)+65536|t-56320,s=!0)}o<=127?t+=1:o<=2047?t+=2:o<=65535?t+=3:t+=4,s&&r++}return t}utf16Length;utf8Length;utf16Value;utf8Value;utf16OffsetToUtf8;utf8OffsetToUtf16;constructor(e){let t=e.length,r=ni._utf8ByteLength(e),n=r!==t,i=n?new Uint32Array(t+1):null;n&&(i[t]=r);let o=n?new Uint32Array(r+1):null;n&&(o[r]=t);let s=new Uint8Array(r),a=0;for(let r=0;r=55296&&l<=56319&&r+1=56320&&t<=57343&&(u=(l-55296<<10)+65536|t-56320,c=!0)}n&&(i[r]=a,c&&(i[r+1]=a),u<=127?o[a+0]=r:u<=2047?(o[a+0]=r,o[a+1]=r):u<=65535?(o[a+0]=r,o[a+1]=r,o[a+2]=r):(o[a+0]=r,o[a+1]=r,o[a+2]=r,o[a+3]=r)),u<=127?s[a++]=u:(u<=2047?s[a++]=192|(1984&u)>>>6:(u<=65535?s[a++]=224|(61440&u)>>>12:(s[a++]=240|(1835008&u)>>>18,s[a++]=128|(258048&u)>>>12),s[a++]=128|(4032&u)>>>6),s[a++]=128|(63&u)>>>0),c&&r++}this.utf16Length=t,this.utf8Length=r,this.utf16Value=e,this.utf8Value=s,this.utf16OffsetToUtf8=i,this.utf8OffsetToUtf16=o}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}class no{static LAST_ID=0;static _sharedPtr=0;static _sharedPtrInUse=!1;id=++no.LAST_ID;_onigBinding;content;utf16Length;utf8Length;utf16OffsetToUtf8;utf8OffsetToUtf16;ptr;constructor(e){if(!nt)throw new tr("Must invoke loadWasm first.");this._onigBinding=nt,this.content=e;let t=new ni(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!no._sharedPtrInUse?(no._sharedPtr||(no._sharedPtr=nt.omalloc(1e4)),no._sharedPtrInUse=!0,nt.HEAPU8.set(t.utf8Value,no._sharedPtr),this.ptr=no._sharedPtr):this.ptr=t.createString(nt)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===no._sharedPtr?no._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}}class ns{_onigBinding;_ptr;constructor(e){if(!nt)throw new tr("Must invoke loadWasm first.");let t=[],r=[];for(let n=0,i=e.length;n{let r=e;return"function"==typeof(r=await r)&&(r=await r(t)),"function"==typeof r&&(r=await r(t)),na(r)?r=await r.instantiator(t):nl(r)?r=await r.default(t):(nu(r)&&(r=r.data),nc(r)?"function"==typeof WebAssembly.instantiateStreaming?r=await np(r)(t):r=await nm(r)(t):nh(r)?r=await nf(r)(t):r instanceof WebAssembly.Module?r=await nf(r)(t):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await nf(r.default)(t))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}())}function nf(e){return t=>WebAssembly.instantiate(e,t)}function np(e){return t=>WebAssembly.instantiateStreaming(e,t)}function nm(e){return async t=>{let r=await e.arrayBuffer();return WebAssembly.instantiate(r,t)}}function ng(e){return new no(e)}function nv(e){return new ns(e)}let ny={light:"#333333",dark:"#bbbbbb"},nE={light:"#fffffe",dark:"#1e1e1e"},n_="__shiki_resolved";function nb(e){if(e?.[n_])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:r,fg:n}=t;if(!r||!n){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(n=e.settings.foreground),e?.settings?.background&&(r=e.settings.background),!n&&t?.colors?.["editor.foreground"]&&(n=t.colors["editor.foreground"]),!r&&t?.colors?.["editor.background"]&&(r=t.colors["editor.background"]),n||(n="light"===t.type?ny.light:ny.dark),r||(r="light"===t.type?nE.light:nE.dark),t.fg=n,t.bg=r}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0,o=new Map;function s(e){if(o.has(e))return o.get(e);i+=1;let r=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${r}`]?s(e):(o.set(e,r),r)}for(let e of(t.settings=t.settings.map(e=>{let r=e.settings?.foreground&&!e.settings.foreground.startsWith("#"),n=e.settings?.background&&!e.settings.background.startsWith("#");if(!r&&!n)return e;let i={...e,settings:{...e.settings}};if(r){let r=s(e.settings.foreground);t.colorReplacements[r]=e.settings.foreground,i.settings.foreground=r}if(n){let r=s(e.settings.background);t.colorReplacements[r]=e.settings.background,i.settings.background=r}return i}),Object.keys(t.colors||{})))if(("editor.foreground"===e||"editor.background"===e||e.startsWith("terminal.ansi"))&&!t.colors[e]?.startsWith("#")){let r=s(t.colors[e]);t.colorReplacements[r]=t.colors[e],t.colors[e]=r}return Object.defineProperty(t,n_,{enumerable:!1,writable:!1,value:!0}),t}class nA extends eB{_resolver;_themes;_langs;_alias;_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,t,r,n={}){super(e),this._resolver=e,this._themes=t,this._langs=r,this._alias=n,t.forEach(e=>this.loadTheme(e)),r.forEach(e=>this.loadLanguage(e))}getTheme(e){return"string"==typeof e?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=nb(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=er.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){if(this._alias[e]){let t=new Set([e]);for(;this._alias[e];){if(e=this._alias[e],t.has(e))throw new tr(`Circular alias \`${Array.from(t).join(" -> ")} -> ${e}\``);t.add(e)}}return this._resolvedGrammars.get(e)}async loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let r={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let n=await this.loadGrammarWithConfiguration(e.scopeName,1,r);if(n.name=e.name,this._resolvedGrammars.set(e.name,n),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),await this.loadLanguage(this._langMap.get(e.name))}async init(){this._themes.map(e=>this.loadTheme(e)),await this.loadLanguages(this._langs)}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}async loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=Array.from(this._langGraph.entries()),r=t.filter(([e,t])=>!t);if(r.length){let e=t.filter(([e,t])=>t&&t.embeddedLangs?.some(e=>r.map(([e])=>e).includes(e))).filter(e=>!r.includes(e));throw new tr(`Missing languages ${r.map(([e])=>`\`${e}\``).join(", ")}, required by ${e.map(([e])=>`\`${e}\``).join(", ")}`)}for(let[e,r]of t)this._resolver.addLanguage(r);for(let[e,r]of t)await this.loadLanguage(r)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){if(this._langMap.set(e.name,e),this._langGraph.set(e.name,e),e.embeddedLangs)for(let t of e.embeddedLangs)this._langGraph.set(t,this._langMap.get(t))}}class nT{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLibPromise;constructor(e,t){this._onigLibPromise=e,t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLibPromise}getLangRegistration(e){return this._langs.get(e)}async loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split("."),r=[];for(let e=1;e<=t.length;e++){let n=t.slice(0,e).join(".");r=[...r,...this._injections.get(n)||[]]}return r}}let nC=0;async function nS(e={}){let t;nC+=1,!1!==e.warnings&&nC>=10&&nC%10==0&&console.warn(`[Shiki] ${nC} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let r=!1;async function n(e){return Promise.resolve("function"==typeof e?e():e).then(e=>e.default||e)}async function i(e){return Array.from(new Set((await Promise.all(e.filter(e=>!eH(e)).map(async e=>await n(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}let s=e.loadWasm||o,[a,l]=await Promise.all([Promise.all((e.themes||[]).map(n)).then(e=>e.map(nb)),i(e.langs||[]),s?nd(s):void 0]),u=new nA(new nT(Promise.resolve({createOnigScanner:e=>nv(e),createOnigString:e=>ng(e)}),l),a,l,e.langAlias);function c(e){if("none"===e)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};h();let t=u.getTheme(e);if(!t)throw new tr(`Theme \`${e}\` not found, you may need to load it first`);return t}function h(){if(r)throw new tr("Shiki instance has been disposed")}function d(){r||(r=!0,u.dispose(),nC-=1)}return await u.init(),{setTheme:function(e){h();let r=c(e);return t!==e&&(u.setTheme(r),t=e),{theme:r,colorMap:u.getColorMap()}},getTheme:c,getLanguage:function(e){h();let t=u.getGrammar("string"==typeof e?e:e.name);if(!t)throw new tr(`Language \`${e}\` not found, you may need to load it first`);return t},getLoadedThemes:function(){return h(),u.getLoadedThemes()},getLoadedLanguages:function(){return h(),u.getLoadedLanguages()},loadLanguage:async function(...e){h(),await u.loadLanguages(await i(e))},loadTheme:async function(...e){h(),await Promise.all(e.map(async e=>e$(e)?null:u.loadTheme(await n(e))))},dispose:d,[Symbol.dispose]:d}}async function nw(e={}){let t=await nS(e);return{getLastGrammarState:(e,r)=>ta(t,e,r),codeToTokensBase:(e,r)=>ts(t,e,r),codeToTokensWithThemes:(e,r)=>tp(t,e,r),codeToTokens:(e,r)=>tg(t,e,r),codeToHast:(e,r)=>t_(t,e,r),codeToHtml:(e,r)=>r9(t,e,r),...t,getInternalContext:()=>t}}function nx(e,t,r){return async function(n){function i(t){if("string"==typeof t){if(eH(t))return[];let r=e[t];if(!r)throw new tr(`Language \`${t}\` is not included in this bundle. You may want to load it from external source.`);return r}return t}function o(e){if(e$(e))return"none";if("string"==typeof e){let r=t[e];if(!r)throw new tr(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return r}return e}let s=(n.themes??[]).map(e=>o(e)),a=(n.langs??[]).map(e=>i(e)),l=await nw({...n,themes:s,langs:a,loadWasm:r});return{...l,loadLanguage:(...e)=>l.loadLanguage(...e.map(i)),loadTheme:(...e)=>l.loadTheme(...e.map(o))}}}function nR(e){let t;return async function(r={}){if(!t)return t=e({...r,themes:r.themes||[],langs:r.langs||[]});{let e=await t;return await Promise.all([e.loadTheme(...r.themes||[]),e.loadLanguage(...r.langs||[])]),e}}}function nk(e){let t=nR(e);return{getSingletonHighlighter:e=>t(e),codeToHtml:async(e,r)=>(await t({langs:[r.lang],themes:"theme"in r?[r.theme]:Object.values(r.themes)})).codeToHtml(e,r),codeToHast:async(e,r)=>(await t({langs:[r.lang],themes:"theme"in r?[r.theme]:Object.values(r.themes)})).codeToHast(e,r),codeToTokens:async(e,r)=>(await t({langs:[r.lang],themes:"theme"in r?[r.theme]:Object.values(r.themes)})).codeToTokens(e,r),codeToTokensBase:async(e,r)=>(await t({langs:[r.lang],themes:[r.theme]})).codeToTokensBase(e,r),codeToTokensWithThemes:async(e,r)=>(await t({langs:[r.lang],themes:Object.values(r.themes).filter(Boolean)})).codeToTokensWithThemes(e,r),getLastGrammarState:async(e,r)=>(await t({langs:[r.lang],themes:[r.theme]})).getLastGrammarState(e,r)}}},99971:(e,t,r)=>{"use strict";function n(e){let t=e.replace(/\n/g,"").replace(/[\s]{2,}/g," ");return`data:image/svg+xml,${encodeURIComponent(t)}`}r.d(t,{$7:()=>h,Vg:()=>v,bN:()=>g,tV:()=>m});let i=n(` `),o=n(` `),s=e=>"string"!=typeof e?"":e.replace(/-/g,"_").replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z])([A-Z])(?=[a-z])/g,"$1-$2").toLowerCase().replace(/(\D+)(\d+)$/g,"$1-$2").replace(/\s|_/g,"-"),a=(e,t)=>`url(${e}), ${t.join(", ")}`,l=e=>`--affine-${s(e)}`,u=e=>Object.entries(e),c="apple-system, BlinkMacSystemFont, 'Helvetica Neue', Tahoma, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji','Segoe UI Symbol', 'Noto Color Emoji'",h={fontFamily:`'Inter', 'Source Sans 3', Poppins, ${c}`,fontSerifFamily:`'Source Serif 4', 'Noto Serif' , serif, 'Cambria', ${c}`,fontMonoFamily:`'Source Code Pro', 'IBM Plex Mono', 'Roboto Mono','Noto Sans Mono', 'Noto Sans CJK', ${c}`,fontSansFamily:`'Inter', 'Source Sans 3', Poppins, ${c}`,fontNumberFamily:`'Roboto Mono', 'Noto Sans Mono', ${c}`,fontCodeFamily:`'IBM Plex Mono', 'Space Mono', Consolas, Menlo, Monaco, Courier, monospace, ${c}`,fontTitle:"36px",fontH1:"28px",fontH2:"26px",fontH3:"24px",fontH4:"22px",fontH5:"20px",fontH6:"18px",fontBase:"15px",fontSm:"14px",fontXs:"12px",lineHeight:"calc(1em + 8px)",zIndexModal:"1000",zIndexPopover:"1000",paragraphSpace:"8px",popoverRadius:"12px",editorWidth:"944px",editorSidePadding:"96px",zoom:"1",scale:"calc(1 / var(--affine-zoom))",paletteLineYellow:"rgb(255, 211, 56)",paletteLineOrange:"rgb(255, 175, 56)",paletteLineTangerine:"rgb(250, 124, 69)",paletteLineRed:"rgb(237, 63, 63)",paletteLineMagenta:"rgb(230, 96, 164)",paletteLinePurple:"rgb(110, 82, 223)",paletteLineNavy:"rgb(59, 37, 204)",paletteLineBlue:"rgb(79, 144, 255)",paletteLineTeal:"rgb(122, 226, 213)",paletteLineGreen:"rgb(124, 194, 112)",paletteLineWhite:"rgb(255, 255, 255)",paletteLineBlack:"rgb(35, 35, 35)",paletteLineGrey:"rgb(191, 192, 191)",paletteShapeYellow:"rgb(255, 223, 107)",paletteShapeOrange:"rgb(255, 196, 107)",paletteShapeTangerine:"rgb(251, 161, 121)",paletteShapeRed:"rgb(241, 111, 111)",paletteShapeMagenta:"rgb(237, 140, 189)",paletteShapePurple:"rgb(147, 126, 231)",paletteShapeNavy:"rgb(122, 149, 246)",paletteShapeBlue:"rgb(184, 227, 255)",paletteShapeGreen:"rgb(157, 209, 148)",paletteShapeWhite:"rgb(255, 255, 255)",paletteShapeBlack:"rgb(35, 35, 35)",paletteShapeGrey:"rgb(216, 217, 216)",multiPlayersPurple:"rgba(123,97,255,1)",multiPlayersMagenta:"rgba(245, 49, 179, 1)",multiPlayersRed:"rgba(243,87,52,1)",multiPlayersOrange:"rgba(255, 138, 0, 1)",multiPlayersGreen:"rgba(27, 196, 125, 1)",paletteShapeTeal:"rgb(184, 242, 231)",multiPlayersBlue:"rgba(24, 160, 251, 1)",multiPlayersBrown:"rgba(154, 101, 51, 1)",multiPlayersGrey:"rgba(170, 170, 170, 1)",blue:"rgba(30, 150, 235, 1)",pureBlack:"rgba(0, 0, 0, 1)",pureBlack10:"rgba(0, 0, 0, 0.1)",pureBlack20:"rgba(0, 0, 0, 0.2)",pureBlack80:"rgba(0, 0, 0, 0.8)",pureWhite:"rgba(255, 255, 255, 1)",pureWhite10:"rgba(255, 255, 255, 0.1)",toggleCircleBackgroundColor:"rgba(255, 255, 255, 1)",toggleDisableBackgroundColor:"rgba(119, 117, 125, 1)",toggleCircleShadow:"0px 1px 2px 0px rgba(0, 0, 0, 0.25), inset -2px -3px 2px 0px rgba(0, 0, 0, 0.05)",buttonInnerShadow:"unset",multiCursorsShadow:"0px 2px 4px 0px rgba(0, 0, 0, 0.28)",multiPlayersShadow:"0px 1px 6px 0px rgba(0, 0, 0, 0.16)",grabbingCursor:a(i,["grabbing"]),grabCursor:a(o,["grab"])},d={...h,themeMode:"light",brandColor:"#1E96EB",tertiaryColor:"rgba(239, 250, 255, 1)",primaryColor:"#1E96EB",primaryColor04:"rgba(30, 150, 235, 0.04)",secondaryColor:"rgb(125, 145, 255)",blue50:"rgba(239, 250, 255, 1)",blue100:"rgba(219, 244, 254, 1)",blue200:"rgba(191, 236, 254, 1)",blue300:"rgba(147, 226, 253, 1)",blue400:"rgba(96, 207, 250, 1)",blue500:"rgba(58, 181, 247, 1)",blue600:"rgba(30, 150, 235, 1)",blue700:"rgba(28, 129, 217, 1)",blue800:"rgba(30, 103, 175, 1)",blue900:"rgba(30, 87, 138, 1)",blue950:"rgba(23, 54, 84, 1)",backgroundSuccessColor:"rgba(231, 250, 243, 1)",backgroundErrorColor:"rgba(253, 236, 235, 1)",backgroundProcessingColor:"rgba(233, 241, 255, 1)",backgroundWarningColor:"rgba(255, 237, 219, 1)",backgroundPrimaryColor:"rgb(255, 255, 255)",backgroundOverlayPanelColor:"rgb(251, 251, 252)",backgroundSecondaryColor:"rgba(244, 244, 245, 1)",backgroundTertiaryColor:"rgb(238, 238, 238)",backgroundCodeBlock:"rgba(247, 248, 250, 1)",backgroundModalColor:"rgba(0, 0, 0, 0.75)",textPrimaryColor:"rgb(18, 18, 18)",textSecondaryColor:"rgb(142, 141, 145)",textDisableColor:"rgb(169, 169, 173)",textEmphasisColor:"#1E96EB",hoverColor:"rgba(0, 0, 0, 0.04)",hoverColorFilled:"rgb(245, 245, 245)",linkColor:"#1E67AF",quoteColor:"rgba(194, 193, 197, 1)",listColor:"rgba(133, 131, 140, 1)",iconColor:"rgb(119, 117, 125)",iconSecondary:"rgba(119, 117, 125, 0.6)",borderColor:"rgb(227, 226, 228)",dividerColor:"rgb(227, 226, 228)",placeholderColor:"rgb(192, 191, 193)",edgelessGridColor:"rgb(230, 230, 230)",successColor:"rgb(16, 203, 134)",warningColor:"rgb(235, 67, 53)",errorColor:"rgb(235, 67, 53)",processingColor:"rgb(39, 118, 255)",black10:"rgba(0, 0, 0, 0.1)",black30:"rgba(0, 0, 0, 0.3)",black50:"rgba(0, 0, 0, 0.5)",black60:"rgba(0, 0, 0, 0.6)",black80:"rgba(0, 0, 0, 0.8)",black90:"rgba(0, 0, 0, 0.9)",black:"rgb(0, 0, 0)",white10:"rgba(255, 255, 255, 0.1)",white30:"rgba(255, 255, 255, 0.3)",white50:"rgba(255, 255, 255, 0.5)",white60:"rgba(255, 255, 255, 0.6)",white80:"rgba(255, 255, 255, 0.8)",white90:"rgba(255, 255, 255, 0.9)",white:"rgb(255, 255, 255)",tagWhite:"rgba(245, 245, 245, 1)",tagGray:"rgba(227, 226, 224, 1)",tagRed:"rgba(255, 225, 225, 1)",tagOrange:"rgba(255, 233, 201, 1)",tagYellow:"rgba(255, 243, 215, 1)",tagGreen:"rgba(222, 244, 231, 1)",tagTeal:"rgba(222, 244, 243, 1)",tagBlue:"rgba(225, 238, 255, 1)",tagPurple:"rgba(243, 240, 255, 1)",tagPink:"rgba(251, 231, 255, 1)",tagMagenta:"rgba(249, 232, 255, 1)",tooltip:"rgba(0, 0, 0, 1)",buttonShadow:"0px 0px 1px 0px rgba(0, 0, 0, 0.12), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)",menuShadow:"0px 0px 12px rgba(66, 65, 73, 0.14), inset 0px 0px 0px 0.5px rgba(227, 227, 228, 1)",toolbarShadow:"0px 6px 16px #00000024",activeShadow:"0px 0px 0px 2px rgba(30, 150, 235, 0.30)",shadow1:"0px 0px 4px 0px rgba(66, 65, 73, 0.14)",shadow2:"0px 0px 12px 0px rgba(66, 65, 73, 0.18)",shadow3:"0px 0px 20px 0px rgba(66, 65, 73, 0.22)",overlayShadow:"0px 1px 6px 0px rgba(0, 0, 0, 0.16), 0px 8px 14px 0px rgba(0, 0, 0, 0.08)",popoverShadow:"0px 0px 30px rgba(75, 75, 75, 0.2), 0px 0px 4px rgba(75, 75, 75, 0.3), inset 0px 0px 0px rgba(227, 226, 228, 1)",floatButtonShadow:"0px 0px 10px rgba(0, 0, 0, 0.05), 0px 0px 0px 0.5px rgba(0, 0, 0, 0.1)",floatButtonShadow1:"0px 4px 6px -3px rgba(66, 65, 73, 0.10), 0px 10px 12px -2px rgba(66, 65, 73, 0.10)",floatButtonShadow2:"0px 4px 4px -2px rgba(66, 65, 73, 0.10), 0px 6px 8px 1px rgba(66, 65, 73, 0.05)",kanbanShadow:"0px 2px 3px 0px rgba(0, 0, 0, 0.05)",cmdShadow:"0px 10px 80px 0px rgba(0, 0, 0, 0.20)",largeButtonEffect:"0px 12px 21px 4px rgba(30, 150, 235, 0.15)",noteShadowBox:"0px 2px 12px 0px rgba(66, 65, 73, 0.20), 0px 0px 4px 0px rgba(66, 65, 73, 0.20)",noteShadowSticker:"0px 24px 26px -10px rgba(66, 65, 73, 0.07), 0px 26px 18px -20px rgba(66, 65, 73, 0.22)",noteShadowPaper:"0px 0px 0px 10px #FFF, 0px 3px 6px 12px rgba(66, 65, 73, 0.16)",noteShadowFloat:"0px 12px 60px 0px rgba(66, 65, 73, 0.16), 0px 0px 0px 2px rgba(0, 0, 0, 0.06)",noteShadowFilm:"10px 10px 0px 6px #000, 0px 0px 0px 6px #000",buttonGrayColor:"rgba(245, 245, 245, 1)",cardBackgroundBlue:"linear-gradient(180deg, #F0F3FD 0%, #FCFCFD 100%)",cardBackgroundGreen:"linear-gradient(180deg, #F3F9FD 0%, #FCFCFD 100%)",cardBackgroundGrey:"linear-gradient(180deg, #F1F1F1 0%, #FCFCFD 100%)",windowsCloseButton:"#C42B1C",textHighlightPink:"rgba(255, 206, 206, 1)",textHighlightRed:"rgba(254, 213, 213, 1)",textHighlightOrange:"rgba(254, 223, 187, 1)",textHighlightYellow:"rgba(254, 243, 161, 1)",textHighlightGreen:"rgba(225, 250, 177, 1)",textHighlightTeal:"rgba(173, 248, 233, 1)",textHighlightBlue:"rgba(204, 226, 254, 1)",textHighlightPurple:"rgba(237, 221, 255, 1)",textHighlightGrey:"rgba(234, 236, 239, 1)",textHighlightForegroundRed:"rgba(198, 34, 34, 1)",textHighlightForegroundOrange:"rgba(211, 79, 11, 1)",textHighlightForegroundYellow:"rgba(182, 124, 4, 1)",textHighlightForegroundGreen:"rgba(20, 147, 67, 1)",textHighlightForegroundTeal:"rgba(7, 130, 160, 1)",textHighlightForegroundBlue:"rgba(33, 89, 211, 1)",textHighlightForegroundPurple:"rgba(132, 46, 211, 1)",textHighlightForegroundGrey:"rgba(122, 122, 122, 1)",embedShadow:"0px 0px 0px 2px rgba(0, 0, 0, 0.08)",noteBackgroundYellow:"rgba(253, 230, 138, 1)",noteBackgroundOrange:"rgba(255, 196, 143, 1)",noteBackgroundRed:"rgba(250, 182, 182, 1)",noteBackgroundMagenta:"rgba(255, 218, 237, 1)",noteBackgroundPurple:"rgba(221, 214, 254, 1)",noteBackgroundBlue:"rgba(205, 235, 255, 1)",noteBackgroundTeal:"rgba(199, 248, 242, 1)",noteBackgroundGreen:"rgba(201, 248, 193, 1)",noteBackgroundBlack:"rgba(0, 0, 0, 1)",noteBackgroundGrey:"rgba(230, 230, 230, 1)",noteBackgroundWhite:"rgba(255, 255, 255, 1)"},f={...h,themeMode:"dark",brandColor:"#1E96EB",primaryColor:"#1C9EE4",primaryColor04:"rgba(52, 116, 173, 0.1)",secondaryColor:"rgb(144, 150, 245)",tertiaryColor:"rgb(30, 30, 30)",blue950:"rgba(32, 45, 55, 1)",blue50:"rgba(181, 208, 242, 1)",blue100:"rgba(171, 204, 237, 1)",blue200:"rgba(149, 194, 234, 1)",blue300:"rgba(115, 182, 226, 1)",blue400:"rgba(79, 162, 216, 1)",blue500:"rgba(53, 140, 208, 1)",blue600:"rgba(52, 116, 173, 1)",blue700:"rgba(55, 106, 154, 1)",blue800:"rgba(51, 88, 122, 1)",blue900:"rgba(47, 75, 96, 1)",hoverColor:"rgba(255, 255, 255, 0.1)",hoverColorFilled:"rgb(42, 42, 42)",iconColor:"rgb(168, 168, 160)",iconSecondary:"rgba(168,168,160,0.6)",borderColor:"rgba(46, 46, 46, 1)",dividerColor:"rgb(114, 114, 114)",placeholderColor:"rgb(62, 62, 63)",quoteColor:"rgba(142, 141, 145, 1)",listColor:"rgba(156, 155, 160, 1)",linkColor:"#78BEFF",edgelessGridColor:"rgba(49, 49, 49, 0.35)",successColor:"rgb(13, 162, 107)",warningColor:"rgb(188, 54, 42)",errorColor:"rgb(188, 54, 42)",processingColor:"rgb(31, 94, 204)",textEmphasisColor:"#1E96EB",textPrimaryColor:"rgb(234, 234, 234)",textSecondaryColor:"rgb(156, 156, 160)",textDisableColor:"rgb(119, 117, 125)",black10:"rgba(255, 255, 255, 0.1)",black30:"rgba(255, 255, 255, 0.3)",black50:"rgba(255, 255, 255, 0.5)",black60:"rgba(255, 255, 255, 0.6)",black80:"rgba(255, 255, 255, 0.8)",black90:"rgba(255, 255, 255, 0.9)",black:"rgb(255, 255, 255)",white10:"rgba(0, 0, 0, 0.1)",white30:"rgba(0, 0, 0, 0.3)",white50:"rgba(0, 0, 0, 0.5)",white60:"rgba(0, 0, 0, 0.6)",white80:"rgba(0, 0, 0, 0.8)",white90:"rgba(0, 0, 0, 0.9)",white:"rgb(0, 0, 0)",backgroundCodeBlock:"rgba(31, 32, 34, 1)",backgroundTertiaryColor:"rgb(48, 48, 48)",backgroundProcessingColor:"rgba(22, 32, 48, 1)",backgroundErrorColor:"rgba(46, 26, 24, 1)",backgroundWarningColor:"rgba(48, 35, 19, 1)",backgroundSuccessColor:"rgba(20, 42, 34, 1)",backgroundPrimaryColor:"rgb(20, 20, 20)",backgroundSecondaryColor:"rgba(37, 37, 37, 1)",backgroundModalColor:"rgba(0, 0, 0, 0.5)",backgroundOverlayPanelColor:"rgb(30, 30, 30)",tagBlue:"rgba(8, 67, 136, 1)",tagGreen:"rgba(44, 108, 63, 1)",tagTeal:"rgba(26, 115, 110, 1)",tagWhite:"rgba(67, 67, 67, 1)",tagPurple:"rgba(47, 30, 113, 1)",tagRed:"rgba(111, 50, 50, 1)",tagPink:"rgba(155, 106, 106, 1)",tagMagenta:"rgba(105, 47, 111, 1)",tagYellow:"rgba(150, 132, 49, 1)",tagOrange:"rgba(185, 129, 46, 1)",tagGray:"rgba(41, 41, 41, 1)",tooltip:"rgba(234, 234, 234, 1)",buttonShadow:"0px 0px 1px 0px rgba(0, 0, 0, 0.20), 0px 1px 5px 0px rgba(0, 0, 0, 0.20)",menuShadow:"0px 0px 16px rgba(0, 0, 0, 0.32), 0px 0px 0px 0.5px #2E2E2E inset",toolbarShadow:"0px 6px 18px #00000052",activeShadow:"0px 0px 0px 2px rgba(28, 158, 228, 0.30)",shadow1:"0px 0px 4px 0px rgba(0, 0, 0, 0.24)",shadow2:"0px 0px 12px 0px rgba(0, 0, 0, 0.28)",shadow3:"0px 0px 20px 0px rgba(0, 0, 0, 0.32)",overlayShadow:"0px 1px 6px 0px rgba(0, 0, 0, 0.72), 0px 8px 14px 0px rgba(0, 0, 0, 0.32)",popoverShadow:"0px 0px 30px 0px rgba(0, 0, 0, 0.1), 0px 0px 8px 0px rgba(0, 0, 0, 0.18), 0px 0px 0px 0.5px rgba(48, 48, 48, 1) inset",floatButtonShadow:"0px 0px 10px rgba(0, 0, 0, 0.05), 0px 0px 0px 0.5px rgba(0, 0, 0, 0.1)",floatButtonShadow1:"0px 4px 6px -3px rgba(0, 0, 0, 0.1), 0px 10px 12px -2px rgba(0, 0, 0, 0.1)",floatButtonShadow2:"0px 4px 4px -2px rgba(15, 15, 15, 0.1), 0px 6px 8px 1px rgba(15, 15, 15, 0.05)",kanbanShadow:"0px 2px 3px 0px rgba(0, 0, 0, 0.60)",cmdShadow:"0px 16px 80px 0px rgba(0, 0, 0, 0.80)",largeButtonEffect:"0px 12px 20px 4px rgba(28, 158, 228, 0.18)",noteShadowBox:"0px 2px 12px 0px rgba(0, 0, 0, 0.26), 0px 0px 4px 0px rgba(0, 0, 0, 0.44)",noteShadowSticker:"0px 24px 26px -10px rgba(0, 0, 0, 0.11), 0px 26px 18px -20px rgba(0, 0, 0, 0.32)",noteShadowPaper:"0px 0px 0px 10px rgba(255, 255, 255, 0.20), 0px 3px 6px 12px rgba(0, 0, 0, 0.22)",noteShadowFloat:"0px 12px 70px 0px rgba(0, 0, 0, 0.20), 0px 0px 0px 2px rgba(0, 0, 0, 0.10)",noteShadowFilm:"10px 10px 0px 6px #B2B2B2, 0px 0px 0px 6px #B2B2B2",buttonGrayColor:"rgba(85, 85, 85, 1)",cardBackgroundBlue:"linear-gradient(180deg, #14171F 0%, #202020 100%)",cardBackgroundGreen:"linear-gradient(180deg, #192023 0%, #202020 100%)",cardBackgroundGrey:"linear-gradient(180deg, #313131 0%, #202020 100%)",windowsCloseButton:"#C42B1C",textHighlightPink:"rgba(127, 93, 93, 1)",textHighlightRed:"rgba(108, 39, 39, 1)",textHighlightOrange:"rgba(112, 58, 21, 1)",textHighlightYellow:"rgba(106, 84, 15, 1)",textHighlightGreen:"rgba(26, 91, 50, 1)",textHighlightTeal:"rgba(14, 85, 97, 1)",textHighlightBlue:"rgba(56, 75, 122, 1)",textHighlightPurple:"rgba(80, 46, 111, 1)",textHighlightGrey:"rgba(64, 67, 74, 1)",textHighlightForegroundRed:"rgba(249, 141, 141, 1)",textHighlightForegroundOrange:"rgba(252, 168, 99, 1)",textHighlightForegroundYellow:"rgba(251, 214, 68, 1)",textHighlightForegroundGreen:"rgba(110, 229, 153, 1)",textHighlightForegroundTeal:"rgba(87, 221, 204, 1)",textHighlightForegroundBlue:"rgba(128, 183, 251, 1)",textHighlightForegroundPurple:"rgba(205, 157, 253, 1)",textHighlightForegroundGrey:"rgba(86, 86, 86, 1)",embedShadow:"0px 0px 0px 2px rgba(255, 255, 255, 0.08)",noteBackgroundYellow:"rgba(111, 65, 0, 1)",noteBackgroundOrange:"rgba(132, 59, 6, 1)",noteBackgroundRed:"rgba(118, 23, 23, 1)",noteBackgroundMagenta:"rgba(148, 21, 85, 1)",noteBackgroundPurple:"rgba(49, 46, 129, 1)",noteBackgroundBlue:"rgba(3, 95, 159, 1)",noteBackgroundTeal:"rgba(28, 107, 99, 1)",noteBackgroundGreen:"rgba(59, 83, 21, 1)",noteBackgroundBlack:"rgba(255, 255, 255, 1)",noteBackgroundGrey:"rgba(86, 86, 86, 1)",noteBackgroundWhite:"rgba(0, 0, 0, 1)"},p=e=>u(e).reduce((e,[t,r])=>({...e,[l(t)]:r}),{}),m=p(d),g=p(f);function v(e,t){return`var(${e.startsWith("--")?e:l(e)}${t?`, ${t}`:""})`}},99264:(e,t,r)=>{"use strict";function n(e){return Object.keys(e)}r.d(t,{BY:()=>l,X:()=>a,h0:()=>u});let i={"badge/believer":"#374151","badge/free":"#29a3fa","badge/pro":"#29a3fa","block/callout/background/blue":"#002742","block/callout/background/green":"#192e06","block/callout/background/grey":"#414141","block/callout/background/magenta":"#5f0a35","block/callout/background/orange":"#451a02","block/callout/background/purple":"#1e1b4b","block/callout/background/red":"#460606","block/callout/background/teal":"#0e4841","block/callout/background/yellow":"#321a04","block/callout/icon/blue":"#2f94d5","block/callout/icon/green":"#22bf07","block/callout/icon/grey":"#cdcdcd","block/callout/icon/magenta":"#cc4187","block/callout/icon/orange":"#d97705","block/callout/icon/purple":"#7c3aed","block/callout/icon/red":"#c83030","block/callout/icon/teal":"#5cc7ba","block/callout/icon/yellow":"#e0aa00","block/notSupportedBlock/background":"#000000","button/innerBlackBorder":"#ffffff17","button/badgesColor":"#ed3f3f","button/checkBox":"#1e96eb","button/emptyIconBackground":"#ffffff0d","button/error":"#ed3f3f","button/iconButtonSolid":"#252525","button/primary":"#1e96eb","button/pureWhiteText":"#ffffff","button/secondary":"#000000","button/success":"#44b931","button/grabber/select":"#ffffff","button/grabber/default":"#ffffff","button/sidebarButton/background":"#ffffff08","button/siderbarPrimary/background":"#0000002b","database/border":"#ffffff21","database/textSecondary":"#ffffff8f","dialog/bg":"#ffffff","edgeless/frame/background/black":"#cdcdcd","edgeless/frame/background/blue":"#e6f5ff","edgeless/frame/background/green":"#f1fdf4","edgeless/frame/background/grey":"#f3f3f3","edgeless/frame/background/orange":"#ffebd5","edgeless/frame/background/purple":"#ede9ff","edgeless/frame/background/red":"#fce5e6","edgeless/frame/background/teal":"#e2fdf9","edgeless/frame/background/white":"#ffffff","edgeless/frame/background/yellow":"#fffbd5","edgeless/frame/border/active":"#1e96eb","edgeless/frame/border/default":"#ffffff2b","edgeless/frame/border/locked":"#ffffff8f","edgeless/frame/fontColor/font":"#000000f2","edgeless/group/background/background":"#ffffff","edgeless/group/border/active":"#1e96eb","edgeless/group/border/borderHint":"#8fd1ff","edgeless/group/border/hover":"#1e96eb","edgeless/group/fontColor/active":"#1e96eb","edgeless/group/fontColor/default":"#ffffff8f","edgeless/group/fontColor/hover":"#1e96eb","edgeless/group/fontColor/rename":"#000000","edgeless/line/black":"#000000","edgeless/line/blue":"#29a3fa","edgeless/line/green":"#3cbc36","edgeless/line/grey":"#929292","edgeless/line/magenta":"#e660a4","edgeless/line/orange":"#ff8c38","edgeless/line/purple":"#6e52df","edgeless/line/red":"#ed3f3f","edgeless/line/teal":"#5cc7ba","edgeless/line/white":"#ffffff","edgeless/line/yellow":"#facc15","edgeless/mindMap/line":"#ffffff","edgeless/note/black":"#252525","edgeless/note/blue":"#004b7b","edgeless/note/green":"#3b5315","edgeless/note/grey":"#565656","edgeless/note/magenta":"#5f0a35","edgeless/note/orange":"#843b06","edgeless/note/purple":"#312e81","edgeless/note/red":"#460606","edgeless/note/teal":"#0e4841","edgeless/note/white":"#000000","edgeless/note/yellow":"#704200","edgeless/shape/black":"#000000","edgeless/shape/blue":"#84cfff","edgeless/shape/green":"#9bda91","edgeless/shape/grey":"#b3b3b3","edgeless/shape/magenta":"#f58ec3","edgeless/shape/orange":"#ffae63","edgeless/shape/purple":"#a693f3","edgeless/shape/red":"#fc7979","edgeless/shape/teal":"#8be7dc","edgeless/shape/white":"#ffffff","edgeless/shape/yellow":"#fde047","icon/disable":"#414141","icon/primary":"#f3f3f3","icon/secondary":"#cdcdcd","icon/tertiary":"#565656","label/blue":"#004b7b","label/green":"#225c18","label/grey":"#414141","label/magenta":"#5f0a35","label/orange":"#843b06","label/purple":"#25136d","label/red":"#460606","label/teal":"#1c6b63","label/text":"#ffffffab","label/white":"#252525","label/yellow":"#ac7400","layer/border":"#414141","layer/toolTips":"#e6e6e6","layer/insideBorder/black":"#ffffff0d","layer/insideBorder/primary":"#1e96eb","layer/insideBorder/white":"#ffffff0d","layer/background/codeBlock":"#252525","layer/background/error":"#460606","layer/background/hoverOverlay":"#ffffff17","layer/background/modal":"#00000038","layer/background/overlayPanel":"#252525","layer/background/primary":"#141414","layer/background/processing":"#002742","layer/background/secondary":"#252525","layer/background/success":"#1c3027","layer/background/tertiary":"#565656","layer/background/translucentUI":"#000000a6","layer/background/warning":"#321a04","loading/background":"#ffffffd1","loading/foreground":"#0077cb","others/warnLabel/black":"#000000","others/warnLabel/yellow":"#facc15","status/error":"#9f2d2d","status/success":"#1d9c07","switch/buttonBackground/active":"#414141","switch/buttonBackground/hover":"#ffffff0d","switch/fontColor/primary":"#e6e6e6","switch/fontColor/secondary":"#929292","switch/fontColor/tertiary":"#7a7a7a","switch/iconColor/active":"#cdcdcd","switch/iconColor/default":"#7a7a7a","switch/switchBackground/background":"#252525","tab/divider/divider":"#ffffff21","tab/divider/indicator":"#1e96eb","tab/fontColor/active":"#141414","tab/fontColor/default":"#929292","tab/fontColor/hover":"#141414","tab/iconColor/active":"#cdcdcd","tab/iconColor/default":"#7a7a7a","tab/iconColor/hover":"#cdcdcd","tab/tabBackground/active":"#ffffff21","tab/tabBackground/default":"#ffffff0d","text/disable":"#565656","text/emphasis":"#29a3fa","text/link":"#7ac8ff","text/listDotAndNumber":"#4ab1fa","text/placeholder":"#565656","text/primary":"#e6e6e6","text/pureWhite":"#ffffff","text/secondary":"#929292","text/tertiary":"#7a7a7a","text/highlight/border":"#ffffff3b","text/highlight/bg/blue":"#002742","text/highlight/bg/green":"#192e06","text/highlight/bg/grey":"#414141","text/highlight/bg/magenta":"#5f0a35","text/highlight/bg/orange":"#843b06","text/highlight/bg/purple":"#2e1065","text/highlight/bg/red":"#460606","text/highlight/bg/teal":"#0e4841","text/highlight/bg/yellow":"#321a04","text/highlight/fg/blue":"#2f94d5","text/highlight/fg/green":"#9bda91","text/highlight/fg/grey":"#565656","text/highlight/fg/magenta":"#f37fba","text/highlight/fg/orange":"#ffae63","text/highlight/fg/purple":"#9681ef","text/highlight/fg/red":"#fc7979","text/highlight/fg/teal":"#448e86","text/highlight/fg/yellow":"#facc15","toast/cardLayer/second":"#252525","toast/cardLayer/third":"#252525","toast/iconState/error":"#ed3f3f","toast/iconState/regular":"#035f9f","toast/iconState/success":"#44b931","toast/overlay/secondary":"#0000000d","toast/overlay/tertiary":"#00000008","toggle/background":"#0077cb","toggle/backgroundDisable":"#414141","toggle/backgroundOff":"#565656","toggle/foreground":"#fffffffa","toggle/foregroundDisable":"#929292","tooltips/background":"#414141","tooltips/foreground":"#ffffff","tooltips/secondaryBackground":"#ffffff2b"};function o(e){return`--affine-${e.split("/").join("-")}`}function s(e){let t={};return n(e).forEach(r=>{t[o(r)]=e[r]}),t}let a=s({"badge/believer":"#374151","badge/free":"#29a3fa","badge/pro":"#29a3fa","block/callout/background/blue":"#f0f9ff","block/callout/background/green":"#fbfef1","block/callout/background/grey":"#f9f9f9","block/callout/background/magenta":"#fefaff","block/callout/background/orange":"#fff7ee","block/callout/background/purple":"#f9f7ff","block/callout/background/red":"#fff4f5","block/callout/background/teal":"#eefffd","block/callout/background/yellow":"#fdfcf4","block/callout/icon/blue":"#53b2ef","block/callout/icon/green":"#22bf07","block/callout/icon/grey":"#cdcdcd","block/callout/icon/magenta":"#cc4187","block/callout/icon/orange":"#ffae63","block/callout/icon/purple":"#7c3aed","block/callout/icon/red":"#c83030","block/callout/icon/teal":"#448e86","block/callout/icon/yellow":"#fde047","block/notSupportedBlock/background":"#ffffff","button/innerBlackBorder":"#00000012","button/badgesColor":"#ed3f3f","button/checkBox":"#1e96eb","button/emptyIconBackground":"#0000000d","button/error":"#ed3f3f","button/iconButtonSolid":"#ffffff","button/primary":"#1e96eb","button/pureWhiteText":"#ffffff","button/secondary":"#ffffff","button/success":"#44b931","button/grabber/select":"#00000038","button/grabber/default":"#0000001a","button/sidebarButton/background":"#ffffff08","button/siderbarPrimary/background":"#ffffffab","database/border":"#0000001a","database/textSecondary":"#00000085","dialog/bg":"#ffffff","edgeless/frame/background/black":"#cdcdcd","edgeless/frame/background/blue":"#e6f5ff","edgeless/frame/background/green":"#f1fdf4","edgeless/frame/background/grey":"#f3f3f3","edgeless/frame/background/orange":"#ffebd5","edgeless/frame/background/purple":"#ede9ff","edgeless/frame/background/red":"#fce5e6","edgeless/frame/background/teal":"#e2fdf9","edgeless/frame/background/white":"#ffffff","edgeless/frame/background/yellow":"#fffbd5","edgeless/frame/border/active":"#1e96eb","edgeless/frame/border/default":"#0000002b","edgeless/frame/border/locked":"#00000085","edgeless/frame/fontColor/font":"#000000f2","edgeless/group/background/background":"#ffffff","edgeless/group/border/active":"#1e96eb","edgeless/group/border/borderHint":"#8fd1ff","edgeless/group/border/hover":"#1e96eb","edgeless/group/fontColor/active":"#1e96eb","edgeless/group/fontColor/default":"#00000085","edgeless/group/fontColor/hover":"#1e96eb","edgeless/group/fontColor/rename":"#000000","edgeless/line/black":"#000000","edgeless/line/blue":"#29a3fa","edgeless/line/green":"#3cbc36","edgeless/line/grey":"#929292","edgeless/line/magenta":"#e660a4","edgeless/line/orange":"#ff8c38","edgeless/line/purple":"#6e52df","edgeless/line/red":"#e11e41","edgeless/line/teal":"#5cc7ba","edgeless/line/white":"#ffffff","edgeless/line/yellow":"#facc15","edgeless/mindMap/line":"#000000","edgeless/note/black":"#b3b3b3","edgeless/note/blue":"#ceecff","edgeless/note/green":"#c9f8c1","edgeless/note/grey":"#e6e6e6","edgeless/note/magenta":"#ffdaed","edgeless/note/orange":"#ffc58f","edgeless/note/purple":"#ddd6fe","edgeless/note/red":"#fbb7b7","edgeless/note/teal":"#c7f8f2","edgeless/note/white":"#ffffff","edgeless/note/yellow":"#fde68a","edgeless/shape/black":"#000000","edgeless/shape/blue":"#9fd9ff","edgeless/shape/green":"#9bda91","edgeless/shape/grey":"#cdcdcd","edgeless/shape/magenta":"#ffc0e0","edgeless/shape/orange":"#ffae63","edgeless/shape/purple":"#d7cdff","edgeless/shape/red":"#fecdd1","edgeless/shape/teal":"#8be7dc","edgeless/shape/white":"#ffffff","edgeless/shape/yellow":"#fde047","icon/disable":"#b3b3b3","icon/primary":"#7a7a7a","icon/secondary":"#b3b3b3","icon/tertiary":"#cdcdcd","label/blue":"#e6f5ff","label/green":"#dcfdd7","label/grey":"#e6e6e6","label/magenta":"#ffecf6","label/orange":"#ffebd5","label/purple":"#ede9ff","label/red":"#fce5e6","label/teal":"#d7fbf6","label/text":"#00000085","label/white":"#f5f5f5","label/yellow":"#fef3c7","layer/border":"#e6e6e6","layer/toolTips":"#141414","layer/insideBorder/black":"#0000001a","layer/insideBorder/primary":"#1e96eb","layer/insideBorder/white":"#ffffff8f","layer/background/codeBlock":"#f9f9f9","layer/background/error":"#fff1f1","layer/background/hoverOverlay":"#0000000d","layer/background/modal":"#000000b2","layer/background/overlayPanel":"#ffffff","layer/background/primary":"#ffffff","layer/background/processing":"#eef2ff","layer/background/secondary":"#f5f5f5","layer/background/success":"#f1fdf4","layer/background/tertiary":"#f3f3f3","layer/background/translucentUI":"#ffffffb8","layer/background/warning":"#fff7ee","loading/background":"#0000001a","loading/foreground":"#1e96eb","others/warnLabel/black":"#000000","others/warnLabel/yellow":"#facc15","status/error":"#ed3f3f","status/success":"#44b931","switch/buttonBackground/active":"#ffffff","switch/buttonBackground/hover":"#0000000d","switch/fontColor/primary":"#141414","switch/fontColor/secondary":"#7a7a7a","switch/fontColor/tertiary":"#929292","switch/iconColor/active":"#565656","switch/iconColor/default":"#929292","switch/switchBackground/background":"#f3f3f3","tab/divider/divider":"#00000012","tab/divider/indicator":"#1e96eb","tab/fontColor/active":"#141414","tab/fontColor/default":"#7a7a7a","tab/fontColor/hover":"#141414","tab/iconColor/active":"#565656","tab/iconColor/default":"#929292","tab/iconColor/hover":"#565656","tab/tabBackground/active":"#00000012","tab/tabBackground/default":"#00000008","text/disable":"#7a7a7a","text/emphasis":"#1e96eb","text/link":"#035f9f","text/listDotAndNumber":"#0077cb","text/placeholder":"#929292","text/primary":"#141414","text/pureWhite":"#ffffff","text/secondary":"#7a7a7a","text/tertiary":"#929292","text/highlight/border":"#00000038","text/highlight/bg/blue":"#daf0ff","text/highlight/bg/green":"#f0fccb","text/highlight/bg/grey":"#e6e6e6","text/highlight/bg/magenta":"#ffecf6","text/highlight/bg/orange":"#ffebd5","text/highlight/bg/purple":"#ede9ff","text/highlight/bg/red":"#fce5e6","text/highlight/bg/teal":"#c7f8f2","text/highlight/bg/yellow":"#fff9b6","text/highlight/fg/blue":"#003c67","text/highlight/fg/green":"#225c18","text/highlight/fg/grey":"#7a7a7a","text/highlight/fg/magenta":"#941555","text/highlight/fg/orange":"#db7123","text/highlight/fg/purple":"#7c3aed","text/highlight/fg/red":"#c83030","text/highlight/fg/teal":"#0e4841","text/highlight/fg/yellow":"#ac7400","toast/cardLayer/second":"#f9f9f9","toast/cardLayer/third":"#f5f5f5","toast/iconState/error":"#ed3f3f","toast/iconState/regular":"#0077cb","toast/iconState/success":"#44b931","toast/overlay/secondary":"#00000008","toast/overlay/tertiary":"#0000000d","toggle/background":"#1e96eb","toggle/backgroundDisable":"#b3b3b3","toggle/backgroundOff":"#929292","toggle/foreground":"#ffffff","toggle/foregroundDisable":"#e6e6e6","tooltips/background":"#000000","tooltips/foreground":"#ffffff","tooltips/secondaryBackground":"#ffffff2b"}),l=s(i);function u(e,t){return`var(${o(e)}${t?`, ${t}`:""})`}},62055:(e,t,r)=>{"use strict";let n,i;r.d(t,{A:()=>tW});var o={};function s(e,t){return function(){return e.apply(t,arguments)}}r.r(o),r.d(o,{hasBrowserEnv:()=>eP,hasStandardBrowserEnv:()=>eM,hasStandardBrowserWebWorkerEnv:()=>eB,origin:()=>eU});let{toString:a}=Object.prototype,{getPrototypeOf:l}=Object,u=(e=>t=>{let r=a.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),c=e=>(e=e.toLowerCase(),t=>u(t)===e),h=e=>t=>typeof t===e,{isArray:d}=Array,f=h("undefined");function p(e){return null!==e&&!f(e)&&null!==e.constructor&&!f(e.constructor)&&y(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let m=c("ArrayBuffer");function g(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&m(e.buffer)}let v=h("string"),y=h("function"),E=h("number"),_=e=>null!==e&&"object"==typeof e,b=e=>!0===e||!1===e,A=e=>{if("object"!==u(e))return!1;let t=l(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},T=c("Date"),C=c("File"),S=c("Blob"),w=c("FileList"),x=e=>_(e)&&y(e.pipe),R=e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||y(e.append)&&("formdata"===(t=u(e))||"object"===t&&y(e.toString)&&"[object FormData]"===e.toString()))},k=c("URLSearchParams"),[L,I,O,D]=["ReadableStream","Request","Response","Headers"].map(c),N=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function P(e,t,{allOwnKeys:r=!1}={}){let n,i;if(null!=e){if("object"!=typeof e&&(e=[e]),d(e))for(n=0,i=e.length;n0;)if(t===(r=n[i]).toLowerCase())return r;return null}let B="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,U=e=>!f(e)&&e!==B;function F(){let{caseless:e}=U(this)&&this||{},t={},r=(r,n)=>{let i=e&&M(t,n)||n;A(t[i])&&A(r)?t[i]=F(t[i],r):A(r)?t[i]=F({},r):d(r)?t[i]=r.slice():t[i]=r};for(let e=0,t=arguments.length;e(P(t,(t,n)=>{r&&y(t)?e[n]=s(t,r):e[n]=t},{allOwnKeys:n}),e),K=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),V=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},H=(e,t,r,n)=>{let i,o,s;let a={};if(t=t||{},null==e)return t;do{for(o=(i=Object.getOwnPropertyNames(e)).length;o-- >0;)s=i[o],(!n||n(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=!1!==r&&l(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype)return t},z=(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return -1!==n&&n===r},G=e=>{if(!e)return null;if(d(e))return e;let t=e.length;if(!E(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},q=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&l(Uint8Array)),W=(e,t)=>{let r;let n=(e&&e[Symbol.iterator]).call(e);for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},X=(e,t)=>{let r;let n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},Y=c("HTMLFormElement"),Q=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),Z=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),J=c("RegExp"),ee=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};P(r,(r,i)=>{let o;!1!==(o=t(r,i,e))&&(n[i]=o||r)}),Object.defineProperties(e,n)},et=e=>{ee(e,(t,r)=>{if(y(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;if(y(e[r])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},er=(e,t)=>{let r={};return(e=>{e.forEach(e=>{r[e]=!0})})(d(e)?e:String(e).split(t)),r},en=()=>{},ei=(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,eo="abcdefghijklmnopqrstuvwxyz",es="0123456789",ea={DIGIT:es,ALPHA:eo,ALPHA_DIGIT:eo+eo.toUpperCase()+es},el=(e=16,t=ea.ALPHA_DIGIT)=>{let r="",{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function eu(e){return!!(e&&y(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])}let ec=e=>{let t=Array(10),r=(e,n)=>{if(_(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;let i=d(e)?[]:{};return P(e,(e,t)=>{let o=r(e,n+1);f(o)||(i[t]=o)}),t[n]=void 0,i}}return e};return r(e,0)},eh=c("AsyncFunction"),ed=e=>e&&(_(e)||y(e))&&y(e.then)&&y(e.catch),ef={isArray:d,isArrayBuffer:m,isBuffer:p,isFormData:R,isArrayBufferView:g,isString:v,isNumber:E,isBoolean:b,isObject:_,isPlainObject:A,isReadableStream:L,isRequest:I,isResponse:O,isHeaders:D,isUndefined:f,isDate:T,isFile:C,isBlob:S,isRegExp:J,isFunction:y,isStream:x,isURLSearchParams:k,isTypedArray:q,isFileList:w,forEach:P,merge:F,extend:j,trim:N,stripBOM:K,inherits:V,toFlatObject:H,kindOf:u,kindOfTest:c,endsWith:z,toArray:G,forEachEntry:W,matchAll:X,isHTMLForm:Y,hasOwnProperty:Z,hasOwnProp:Z,reduceDescriptors:ee,freezeMethods:et,toObjectSet:er,toCamelCase:Q,noop:en,toFiniteNumber:ei,findKey:M,global:B,isContextDefined:U,ALPHABET:ea,generateString:el,isSpecCompliantForm:eu,toJSONObject:ec,isAsyncFn:eh,isThenable:ed};function ep(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i)}ef.inherits(ep,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ef.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});let em=ep.prototype,eg={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{eg[e]={value:e}}),Object.defineProperties(ep,eg),Object.defineProperty(em,"isAxiosError",{value:!0}),ep.from=(e,t,r,n,i,o)=>{let s=Object.create(em);return ef.toFlatObject(e,s,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),ep.call(s,e.message,t,r,n,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};let ev=ep,ey=null;function eE(e){return ef.isPlainObject(e)||ef.isArray(e)}function e_(e){return ef.endsWith(e,"[]")?e.slice(0,-2):e}function eb(e,t,r){return e?e.concat(t).map(function(e,t){return e=e_(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}function eA(e){return ef.isArray(e)&&!e.some(eE)}let eT=ef.toFlatObject(ef,{},null,function(e){return/^is[A-Z]/.test(e)}),eC=function(e,t,r){if(!ef.isObject(e))throw TypeError("target must be an object");t=t||new(ey||FormData);let n=(r=ef.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!ef.isUndefined(t[e])})).metaTokens,i=r.visitor||u,o=r.dots,s=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&ef.isSpecCompliantForm(t);if(!ef.isFunction(i))throw TypeError("visitor must be a function");function l(e){if(null===e)return"";if(ef.isDate(e))return e.toISOString();if(!a&&ef.isBlob(e))throw new ev("Blob is not supported. Use a Buffer instead.");return ef.isArrayBuffer(e)||ef.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,i){let a=e;if(e&&!i&&"object"==typeof e){if(ef.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(ef.isArray(e)&&eA(e)||(ef.isFileList(e)||ef.endsWith(r,"[]"))&&(a=ef.toArray(e)))return r=e_(r),a.forEach(function(e,n){ef.isUndefined(e)||null===e||t.append(!0===s?eb([r],n,o):null===s?r:r+"[]",l(e))}),!1}return!!eE(e)||(t.append(eb(i,r,o),l(e)),!1)}let c=[],h=Object.assign(eT,{defaultVisitor:u,convertValue:l,isVisitable:eE});function d(e,r){if(!ef.isUndefined(e)){if(-1!==c.indexOf(e))throw Error("Circular reference detected in "+r.join("."));c.push(e),ef.forEach(e,function(e,n){!0===(!(ef.isUndefined(e)||null===e)&&i.call(t,e,ef.isString(n)?n.trim():n,r,h))&&d(e,r?r.concat(n):[n])}),c.pop()}}if(!ef.isObject(e))throw TypeError("data must be an object");return d(e),t};function eS(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function ew(e,t){this._pairs=[],e&&eC(e,this,t)}let ex=ew.prototype;ex.append=function(e,t){this._pairs.push([e,t])},ex.toString=function(e){let t=e?function(t){return e.call(this,t,eS)}:eS;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};let eR=ew;function ek(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function eL(e,t,r){let n;if(!t)return e;let i=r&&r.encode||ek,o=r&&r.serialize;if(n=o?o(t,r):ef.isURLSearchParams(t)?t.toString():new eR(t,r).toString(i)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}class eI{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ef.forEach(this.handlers,function(t){null!==t&&e(t)})}}let eO=eI,eD={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},eN={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:eR,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},eP="undefined"!=typeof window&&"undefined"!=typeof document,eM=(n="undefined"!=typeof navigator&&navigator.product,eP&&0>["ReactNative","NativeScript","NS"].indexOf(n)),eB="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,eU=eP&&window.location.href||"http://localhost",eF={...o,...eN};function ej(e,t){return eC(e,new eF.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return eF.isNode&&ef.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}function eK(e){return ef.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}function eV(e){let t,r;let n={},i=Object.keys(e),o=i.length;for(t=0;t=e.length;return(o=!o&&ef.isArray(n)?n.length:o,a)?ef.hasOwnProp(n,o)?n[o]=[n[o],r]:n[o]=r:(n[o]&&ef.isObject(n[o])||(n[o]=[]),t(e,r,n[o],i)&&ef.isArray(n[o])&&(n[o]=eV(n[o]))),!s}if(ef.isFormData(e)&&ef.isFunction(e.entries)){let r={};return ef.forEachEntry(e,(e,n)=>{t(eK(e),n,r,0)}),r}return null};function ez(e,t,r){if(ef.isString(e))try{return(t||JSON.parse)(e),ef.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}let e$={transitional:eD,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let r;let n=t.getContentType()||"",i=n.indexOf("application/json")>-1,o=ef.isObject(e);if(o&&ef.isHTMLForm(e)&&(e=new FormData(e)),ef.isFormData(e))return i?JSON.stringify(eH(e)):e;if(ef.isArrayBuffer(e)||ef.isBuffer(e)||ef.isStream(e)||ef.isFile(e)||ef.isBlob(e)||ef.isReadableStream(e))return e;if(ef.isArrayBufferView(e))return e.buffer;if(ef.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return ej(e,this.formSerializer).toString();if((r=ef.isFileList(e))||n.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return eC(r?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||i?(t.setContentType("application/json",!1),ez(e)):e}],transformResponse:[function(e){let t=this.transitional||e$.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(ef.isResponse(e)||ef.isReadableStream(e))return e;if(e&&ef.isString(e)&&(r&&!this.responseType||n)){let r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw ev.from(e,ev.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:eF.classes.FormData,Blob:eF.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ef.forEach(["delete","get","head","post","put","patch"],e=>{e$.headers[e]={}});let eG=e$,eq=ef.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),eW=e=>{let t,r,n;let i={};return e&&e.split("\n").forEach(function(e){n=e.indexOf(":"),t=e.substring(0,n).trim().toLowerCase(),r=e.substring(n+1).trim(),!t||i[t]&&eq[t]||("set-cookie"===t?i[t]?i[t].push(r):i[t]=[r]:i[t]=i[t]?i[t]+", "+r:r)}),i},eX=Symbol("internals");function eY(e){return e&&String(e).trim().toLowerCase()}function eQ(e){return!1===e||null==e?e:ef.isArray(e)?e.map(eQ):String(e)}function eZ(e){let t;let r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=n.exec(e);)r[t[1]]=t[2];return r}let eJ=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function e0(e,t,r,n,i){if(ef.isFunction(n))return n.call(this,t,r);if(i&&(t=r),ef.isString(t)){if(ef.isString(n))return -1!==t.indexOf(n);if(ef.isRegExp(n))return n.test(t)}}function e1(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}function e2(e,t){let r=ef.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(e,r,i){return this[n].call(this,t,e,r,i)},configurable:!0})})}class e3{constructor(e){e&&this.set(e)}set(e,t,r){let n=this;function i(e,t,r){let i=eY(t);if(!i)throw Error("header name must be a non-empty string");let o=ef.findKey(n,i);o&&void 0!==n[o]&&!0!==r&&(void 0!==r||!1===n[o])||(n[o||t]=eQ(e))}let o=(e,t)=>ef.forEach(e,(e,r)=>i(e,r,t));if(ef.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(ef.isString(e)&&(e=e.trim())&&!eJ(e))o(eW(e),t);else if(ef.isHeaders(e))for(let[t,n]of e.entries())i(n,t,r);else null!=e&&i(t,e,r);return this}get(e,t){if(e=eY(e)){let r=ef.findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t)return eZ(e);if(ef.isFunction(t))return t.call(this,e,r);if(ef.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=eY(e)){let r=ef.findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||e0(this,this[r],r,t)))}return!1}delete(e,t){let r=this,n=!1;function i(e){if(e=eY(e)){let i=ef.findKey(r,e);i&&(!t||e0(r,r[i],i,t))&&(delete r[i],n=!0)}}return ef.isArray(e)?e.forEach(i):i(e),n}clear(e){let t=Object.keys(this),r=t.length,n=!1;for(;r--;){let i=t[r];(!e||e0(this,this[i],i,e,!0))&&(delete this[i],n=!0)}return n}normalize(e){let t=this,r={};return ef.forEach(this,(n,i)=>{let o=ef.findKey(r,i);if(o){t[o]=eQ(n),delete t[i];return}let s=e?e1(i):String(i).trim();s!==i&&delete t[i],t[s]=eQ(n),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return ef.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&ef.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let t=(this[eX]=this[eX]={accessors:{}}).accessors,r=this.prototype;function n(e){let n=eY(e);t[n]||(e2(r,e),t[n]=!0)}return ef.isArray(e)?e.forEach(n):n(e),this}}e3.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ef.reduceDescriptors(e3.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),ef.freezeMethods(e3);let e4=e3;function e5(e,t){let r=this||eG,n=t||r,i=e4.from(n.headers),o=n.data;return ef.forEach(e,function(e){o=e.call(r,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function e6(e){return!!(e&&e.__CANCEL__)}function e7(e,t,r){ev.call(this,null==e?"canceled":e,ev.ERR_CANCELED,t,r),this.name="CanceledError"}ef.inherits(e7,ev,{__CANCEL__:!0});let e8=e7;function e9(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new ev("Request failed with status code "+r.status,[ev.ERR_BAD_REQUEST,ev.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function te(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}let tt=function(e,t){let r;let n=Array(e=e||10),i=Array(e),o=0,s=0;return t=void 0!==t?t:1e3,function(a){let l=Date.now(),u=i[s];r||(r=l),n[o]=a,i[o]=l;let c=s,h=0;for(;c!==o;)h+=n[c++],c%=e;if((o=(o+1)%e)===s&&(s=(s+1)%e),l-rn)return i&&(clearTimeout(i),i=null),r=o,e.apply(null,arguments);i||(i=setTimeout(()=>(i=null,r=Date.now(),e.apply(null,arguments)),n-(o-r)))}},tn=(e,t,r=3)=>{let n=0,i=tt(50,250);return tr(r=>{let o=r.loaded,s=r.lengthComputable?r.total:void 0,a=o-n,l=i(a),u=o<=s;n=o;let c={loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&u?(s-o)/l:void 0,event:r,lengthComputable:null!=s};c[t?"download":"upload"]=!0,e(c)},r)},ti=eF.hasStandardBrowserEnv?function(){let e;let t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(e){let n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){let r=ef.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return function(){return!0}}(),to=eF.hasStandardBrowserEnv?{write(e,t,r,n,i,o){let s=[e+"="+encodeURIComponent(t)];ef.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),ef.isString(n)&&s.push("path="+n),ef.isString(i)&&s.push("domain="+i),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read(e){let t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function ts(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ta(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function tl(e,t){return e&&!ts(t)?ta(e,t):t}let tu=e=>e instanceof e4?{...e}:e;function tc(e,t){t=t||{};let r={};function n(e,t,r){return ef.isPlainObject(e)&&ef.isPlainObject(t)?ef.merge.call({caseless:r},e,t):ef.isPlainObject(t)?ef.merge({},t):ef.isArray(t)?t.slice():t}function i(e,t,r){return ef.isUndefined(t)?ef.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function o(e,t){if(!ef.isUndefined(t))return n(void 0,t)}function s(e,t){return ef.isUndefined(t)?ef.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(r,i,o){return o in t?n(r,i):o in e?n(void 0,r):void 0}let l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t)=>i(tu(e),tu(t),!0)};return ef.forEach(Object.keys(Object.assign({},e,t)),function(n){let o=l[n]||i,s=o(e[n],t[n],n);ef.isUndefined(s)&&o!==a||(r[n]=s)}),r}let th=e=>{let t;let r=tc({},e),{data:n,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:s,headers:a,auth:l}=r;if(r.headers=a=e4.from(a),r.url=eL(tl(r.baseURL,r.url),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),ef.isFormData(n)){if(eF.hasStandardBrowserEnv||eF.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(t=a.getContentType())){let[e,...r]=t?t.split(";").map(e=>e.trim()).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...r].join("; "))}}if(eF.hasStandardBrowserEnv&&(i&&ef.isFunction(i)&&(i=i(r)),i||!1!==i&&ti(r.url))){let e=o&&s&&to.read(s);e&&a.set(o,e)}return r},td="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){let n;let i=th(e),o=i.data,s=e4.from(i.headers).normalize(),{responseType:a}=i;function l(){i.cancelToken&&i.cancelToken.unsubscribe(n),i.signal&&i.signal.removeEventListener("abort",n)}let u=new XMLHttpRequest;function c(){if(!u)return;let n=e4.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());e9(function(e){t(e),l()},function(e){r(e),l()},{data:a&&"text"!==a&&"json"!==a?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:n,config:e,request:u}),u=null}u.open(i.method.toUpperCase(),i.url,!0),u.timeout=i.timeout,"onloadend"in u?u.onloadend=c:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(c)},u.onabort=function(){u&&(r(new ev("Request aborted",ev.ECONNABORTED,i,u)),u=null)},u.onerror=function(){r(new ev("Network Error",ev.ERR_NETWORK,i,u)),u=null},u.ontimeout=function(){let e=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded",t=i.transitional||eD;i.timeoutErrorMessage&&(e=i.timeoutErrorMessage),r(new ev(e,t.clarifyTimeoutError?ev.ETIMEDOUT:ev.ECONNABORTED,i,u)),u=null},void 0===o&&s.setContentType(null),"setRequestHeader"in u&&ef.forEach(s.toJSON(),function(e,t){u.setRequestHeader(t,e)}),ef.isUndefined(i.withCredentials)||(u.withCredentials=!!i.withCredentials),a&&"json"!==a&&(u.responseType=i.responseType),"function"==typeof i.onDownloadProgress&&u.addEventListener("progress",tn(i.onDownloadProgress,!0)),"function"==typeof i.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",tn(i.onUploadProgress)),(i.cancelToken||i.signal)&&(n=t=>{u&&(r(!t||t.type?new e8(null,e,u):t),u.abort(),u=null)},i.cancelToken&&i.cancelToken.subscribe(n),i.signal&&(i.signal.aborted?n():i.signal.addEventListener("abort",n)));let h=te(i.url);if(h&&-1===eF.protocols.indexOf(h)){r(new ev("Unsupported protocol "+h+":",ev.ERR_BAD_REQUEST,e));return}u.send(o||null)})},tf=(e,t)=>{let r,n=new AbortController,i=function(e){if(!r){r=!0,s();let t=e instanceof Error?e:this.reason;n.abort(t instanceof ev?t:new e8(t instanceof Error?t.message:t))}},o=t&&setTimeout(()=>{i(new ev(`timeout ${t} of ms exceeded`,ev.ETIMEDOUT))},t),s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e&&(e.removeEventListener?e.removeEventListener("abort",i):e.unsubscribe(i))}),e=null)};e.forEach(e=>e&&e.addEventListener&&e.addEventListener("abort",i));let{signal:a}=n;return a.unsubscribe=s,[a,()=>{o&&clearTimeout(o),o=null}]},tp=function*(e,t){let r,n=e.byteLength;if(!t||n{let o=tm(e,t,i),s=0;return new ReadableStream({type:"bytes",async pull(e){let{done:t,value:i}=await o.next();if(t){e.close(),n();return}let a=i.byteLength;r&&r(s+=a),e.enqueue(new Uint8Array(i))},cancel:e=>(n(e),o.return())},{highWaterMark:2})},tv=(e,t)=>{let r=null!=e;return n=>setTimeout(()=>t({lengthComputable:r,total:e,loaded:n}))},ty="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,tE=ty&&"function"==typeof ReadableStream,t_=ty&&("function"==typeof TextEncoder?(i=new TextEncoder,e=>i.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer())),tb=tE&&(()=>{let e=!1,t=new Request(eF.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),tA=65536,tT=tE&&!!(()=>{try{return ef.isReadableStream(new Response("").body)}catch(e){}})(),tC={stream:tT&&(e=>e.body)};ty&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{tC[t]||(tC[t]=ef.isFunction(e[t])?e=>e[t]():(e,r)=>{throw new ev(`Response type '${t}' is not supported`,ev.ERR_NOT_SUPPORT,r)})})})(new Response);let tS=async e=>null==e?0:ef.isBlob(e)?e.size:ef.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:ef.isArrayBufferView(e)?e.byteLength:(ef.isURLSearchParams(e)&&(e+=""),ef.isString(e))?(await t_(e)).byteLength:void 0,tw=async(e,t)=>{let r=ef.toFiniteNumber(e.getContentLength());return null==r?tS(t):r},tx={http:ey,xhr:td,fetch:ty&&(async e=>{let t,r,n,{url:i,method:o,data:s,signal:a,cancelToken:l,timeout:u,onDownloadProgress:c,onUploadProgress:h,responseType:d,headers:f,withCredentials:p="same-origin",fetchOptions:m}=th(e);d=d?(d+"").toLowerCase():"text";let[g,v]=a||l||u?tf([a,l],u):[],y=()=>{t||setTimeout(()=>{g&&g.unsubscribe()}),t=!0};try{if(h&&tb&&"get"!==o&&"head"!==o&&0!==(n=await tw(f,s))){let e,t=new Request(i,{method:"POST",body:s,duplex:"half"});ef.isFormData(s)&&(e=t.headers.get("content-type"))&&f.setContentType(e),t.body&&(s=tg(t.body,tA,tv(n,tn(h)),null,t_))}ef.isString(p)||(p=p?"cors":"omit"),r=new Request(i,{...m,signal:g,method:o.toUpperCase(),headers:f.normalize().toJSON(),body:s,duplex:"half",withCredentials:p});let t=await fetch(r),a=tT&&("stream"===d||"response"===d);if(tT&&(c||a)){let e={};["status","statusText","headers"].forEach(r=>{e[r]=t[r]});let r=ef.toFiniteNumber(t.headers.get("content-length"));t=new Response(tg(t.body,tA,c&&tv(r,tn(c,!0)),a&&y,t_),e)}d=d||"text";let l=await tC[ef.findKey(tC,d)||"text"](t,e);return a||y(),v&&v(),await new Promise((n,i)=>{e9(n,i,{data:l,headers:e4.from(t.headers),status:t.status,statusText:t.statusText,config:e,request:r})})}catch(t){if(y(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new ev("Network Error",ev.ERR_NETWORK,e,r),{cause:t.cause||t});throw ev.from(t,t&&t.code,e,r)}})};ef.forEach(tx,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let tR=e=>`- ${e}`,tk=e=>ef.isFunction(e)||null===e||!1===e,tL={getAdapter:e=>{let t,r;let{length:n}=e=ef.isArray(e)?e:[e],i={};for(let o=0;o`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new ev("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(tR).join("\n"):" "+tR(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r}};function tI(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new e8(null,e)}function tO(e){return tI(e),e.headers=e4.from(e.headers),e.data=e5.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tL.getAdapter(e.adapter||eG.adapter)(e).then(function(t){return tI(e),t.data=e5.call(e,e.transformResponse,t),t.headers=e4.from(t.headers),t},function(t){return!e6(t)&&(tI(e),t&&t.response&&(t.response.data=e5.call(e,e.transformResponse,t.response),t.response.headers=e4.from(t.response.headers))),Promise.reject(t)})}let tD="1.7.2",tN={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{tN[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});let tP={};tN.transitional=function(e,t,r){function n(e,t){return"[Axios v"+tD+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,i,o)=>{if(!1===e)throw new ev(n(i," has been removed"+(t?" in "+t:"")),ev.ERR_DEPRECATED);return t&&!tP[i]&&(tP[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,o)}};let tM={assertOptions:function(e,t,r){if("object"!=typeof e)throw new ev("options must be an object",ev.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),i=n.length;for(;i-- >0;){let o=n[i],s=t[o];if(s){let t=e[o],r=void 0===t||s(t,o,e);if(!0!==r)throw new ev("option "+o+" must be "+r,ev.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new ev("Unknown option "+o,ev.ERR_BAD_OPTION)}},validators:tN},tB=tM.validators;class tU{constructor(e){this.defaults=e,this.interceptors={request:new eO,response:new eO}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=Error();let r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){let r,n;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:i,paramsSerializer:o,headers:s}=t=tc(this.defaults,t);void 0!==i&&tM.assertOptions(i,{silentJSONParsing:tB.transitional(tB.boolean),forcedJSONParsing:tB.transitional(tB.boolean),clarifyTimeoutError:tB.transitional(tB.boolean)},!1),null!=o&&(ef.isFunction(o)?t.paramsSerializer={serialize:o}:tM.assertOptions(o,{encode:tB.function,serialize:tB.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=s&&ef.merge(s.common,s[t.method]);s&&ef.forEach(["delete","get","head","post","put","patch","common"],e=>{delete s[e]}),t.headers=e4.concat(a,s);let l=[],u=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(u=u&&e.synchronous,l.unshift(e.fulfilled,e.rejected))});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let h=0;if(!u){let e=[tO.bind(this),void 0];for(e.unshift.apply(e,l),e.push.apply(e,c),n=e.length,r=Promise.resolve(t);h{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;let n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,i){r.reason||(r.reason=new e8(e,n,i),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new tj(function(t){e=t}),cancel:e}}}let tK=tj;function tV(e){return function(t){return e.apply(null,t)}}function tH(e){return ef.isObject(e)&&!0===e.isAxiosError}let tz={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(tz).forEach(([e,t])=>{tz[t]=e});let t$=tz;function tG(e){let t=new tF(e),r=s(tF.prototype.request,t);return ef.extend(r,tF.prototype,t,{allOwnKeys:!0}),ef.extend(r,t,null,{allOwnKeys:!0}),r.create=function(t){return tG(tc(e,t))},r}let tq=tG(eG);tq.Axios=tF,tq.CanceledError=e8,tq.CancelToken=tK,tq.isCancel=e6,tq.VERSION=tD,tq.toFormData=eC,tq.AxiosError=ev,tq.Cancel=tq.CanceledError,tq.all=function(e){return Promise.all(e)},tq.spread=tV,tq.isAxiosError=tH,tq.mergeConfig=tc,tq.AxiosHeaders=e4,tq.formToJSON=e=>eH(ef.isHTMLForm(e)?new FormData(e):e),tq.getAdapter=tL.getAdapter,tq.HttpStatusCode=t$,tq.default=tq;let tW=tq},26596:(e,t,r)=>{"use strict";function n(e,t){let r=String(e);if("string"!=typeof t)throw TypeError("Expected character");let n=0,i=r.indexOf(t);for(;-1!==i;)n++,i=r.indexOf(t,i+t.length);return n}r.d(t,{D:()=>n})},68672:(e,t,r)=>{"use strict";r.d(t,{Bi:()=>s});var n={exports:{}};let i=[{id:0,value:"Too weak",minDiversity:0,minLength:0},{id:1,value:"Weak",minDiversity:2,minLength:6},{id:2,value:"Medium",minDiversity:4,minLength:8},{id:3,value:"Strong",minDiversity:4,minLength:10}],o=(e,t=i,r="!\"#$%&'()*+,-./:;<=>?@[\\\\\\]^_`{|}~")=>{let n=e||"";t[0].minDiversity=0,t[0].minLength=0;let o=[{regex:"[a-z]",message:"lowercase"},{regex:"[A-Z]",message:"uppercase"},{regex:"[0-9]",message:"number"}];r&&o.push({regex:`[${r}]`,message:"symbol"});let s={};s.contains=o.filter(e=>RegExp(`${e.regex}`).test(n)).map(e=>e.message),s.length=n.length;let a=t.filter(e=>s.contains.length>=e.minDiversity).filter(e=>s.length>=e.minLength).sort((e,t)=>t.id-e.id).map(e=>({id:e.id,value:e.value}));return Object.assign(s,a[0]),s};n.exports={passwordStrength:o,defaultOptions:i};var s=n.exports.passwordStrength=o;n.exports.defaultOptions=i,n.exports},37064:(e,t,r)=>{"use strict";function n(e){var t,r,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e){if(Array.isArray(e)){var o=e.length;for(t=0;ti,A:()=>o});let o=i},1086:(e,t,r)=>{"use strict";let n;r.d(t,{uB:()=>tK});var i=1,o=.9,s=.8,a=.17,l=.1,u=.999,c=.9999,h=.99,d=/[\\\/_+.#"@\[\(\{&]/,f=/[\\\/_+.#"@\[\(\{&]/g,p=/[\s-]/,m=/[\s-]/g;function g(e,t,r,n,v,y,E){if(y===t.length)return v===e.length?i:h;var _=`${v},${y}`;if(void 0!==E[_])return E[_];for(var b,A,T,C,S=n.charAt(y),w=r.indexOf(S,v),x=0;w>=0;)(b=g(e,t,r,n,w+1,y+1,E))>x&&(w===v?b*=i:d.test(e.charAt(w-1))?(b*=s,(T=e.slice(v,w-1).match(f))&&v>0&&(b*=Math.pow(u,T.length))):p.test(e.charAt(w-1))?(b*=o,(C=e.slice(v,w-1).match(m))&&v>0&&(b*=Math.pow(u,C.length))):(b*=a,v>0&&(b*=Math.pow(u,w-v))),e.charAt(w)!==t.charAt(y)&&(b*=c)),(bb&&(b=A*l),b>x&&(x=b),w=r.indexOf(S,w+1);return E[_]=x,x}function v(e){return e.toLowerCase().replace(m," ")}function y(e,t,r){return g(e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,t,v(e),v(t),0,0,{})}var E=r(77940),_=r(86326),b=r.t(_,2);function A(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(null==e||e(n),!1===r||!n.defaultPrevented)return null==t?void 0:t(n)}}function T(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function C(...e){return t=>e.forEach(e=>T(e,t))}function S(...e){return(0,_.useCallback)(C(...e),e)}function w(e,t){let r=(0,_.createContext)(t);function n(e){let{children:t,...n}=e,i=(0,_.useMemo)(()=>n,Object.values(n));return(0,_.createElement)(r.Provider,{value:i},t)}function i(n){let i=(0,_.useContext)(r);if(i)return i;if(void 0!==t)return t;throw Error(`\`${n}\` must be used within \`${e}\``)}return n.displayName=e+"Provider",[n,i]}function x(e,t=[]){let r=[];function n(t,n){let i=(0,_.createContext)(n),o=r.length;function s(t){let{scope:r,children:n,...s}=t,a=(null==r?void 0:r[e][o])||i,l=(0,_.useMemo)(()=>s,Object.values(s));return(0,_.createElement)(a.Provider,{value:l},n)}function a(r,s){let a=(null==s?void 0:s[e][o])||i,l=(0,_.useContext)(a);if(l)return l;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${t}\``)}return r=[...r,n],s.displayName=t+"Provider",[s,a]}let i=()=>{let t=r.map(e=>(0,_.createContext)(e));return function(r){let n=(null==r?void 0:r[e])||t;return(0,_.useMemo)(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return i.scopeName=e,[n,R(i,...t)]}function R(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=r.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return(0,_.useMemo)(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}let k=(null==globalThis?void 0:globalThis.document)?_.useLayoutEffect:()=>{},L=b["useId".toString()]||(()=>void 0),I=0;function O(e){let[t,r]=_.useState(L());return k(()=>{e||r(e=>null!=e?e:String(I++))},[e]),e||(t?`radix-${t}`:"")}function D(e){let t=(0,_.useRef)(e);return(0,_.useEffect)(()=>{t.current=e}),(0,_.useMemo)(()=>(...e)=>{var r;return null===(r=t.current)||void 0===r?void 0:r.call(t,...e)},[])}function N({prop:e,defaultProp:t,onChange:r=()=>{}}){let[n,i]=P({defaultProp:t,onChange:r}),o=void 0!==e,s=o?e:n,a=D(r);return[s,(0,_.useCallback)(t=>{if(o){let r=t,n="function"==typeof t?r(e):t;n!==e&&a(n)}else i(t)},[o,e,i,a])]}function P({defaultProp:e,onChange:t}){let r=(0,_.useState)(e),[n]=r,i=(0,_.useRef)(n),o=D(t);return(0,_.useEffect)(()=>{i.current!==n&&(o(n),i.current=n)},[n,i,o]),r}var M=r(35623);let B=(0,_.forwardRef)((e,t)=>{let{children:r,...n}=e,i=_.Children.toArray(r),o=i.find(j);if(o){let e=o.props.children,r=i.map(t=>t!==o?t:_.Children.count(e)>1?_.Children.only(null):(0,_.isValidElement)(e)?e.props.children:null);return(0,_.createElement)(U,(0,E.A)({},n,{ref:t}),(0,_.isValidElement)(e)?(0,_.cloneElement)(e,void 0,r):null)}return(0,_.createElement)(U,(0,E.A)({},n,{ref:t}),r)});B.displayName="Slot";let U=(0,_.forwardRef)((e,t)=>{let{children:r,...n}=e;return(0,_.isValidElement)(r)?(0,_.cloneElement)(r,{...K(n,r.props),ref:t?C(t,r.ref):r.ref}):_.Children.count(r)>1?_.Children.only(null):null});U.displayName="SlotClone";let F=({children:e})=>(0,_.createElement)(_.Fragment,null,e);function j(e){return(0,_.isValidElement)(e)&&e.type===F}function K(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{o(...e),i(...e)}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}let V=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=(0,_.forwardRef)((e,r)=>{let{asChild:n,...i}=e,o=n?B:t;return(0,_.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,_.createElement)(o,(0,E.A)({},i,{ref:r}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function H(e,t){e&&(0,M.flushSync)(()=>e.dispatchEvent(t))}function z(e){let t=(0,_.useRef)(e);return(0,_.useEffect)(()=>{t.current=e}),(0,_.useMemo)(()=>(...e)=>{var r;return null===(r=t.current)||void 0===r?void 0:r.call(t,...e)},[])}function G(e,t=null==globalThis?void 0:globalThis.document){let r=z(e);(0,_.useEffect)(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[r,t])}let q="dismissableLayer.update",W="dismissableLayer.pointerDownOutside",X="dismissableLayer.focusOutside",Y=(0,_.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Q=(0,_.forwardRef)((e,t)=>{var r;let{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:l,onDismiss:u,...c}=e,h=(0,_.useContext)(Y),[d,f]=(0,_.useState)(null),p=null!==(r=null==d?void 0:d.ownerDocument)&&void 0!==r?r:null==globalThis?void 0:globalThis.document,[,m]=(0,_.useState)({}),g=S(t,e=>f(e)),v=Array.from(h.layers),[y]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),b=v.indexOf(y),T=d?v.indexOf(d):-1,C=h.layersWithOutsidePointerEventsDisabled.size>0,w=T>=b,x=Z(e=>{let t=e.target,r=[...h.branches].some(e=>e.contains(t));!w||r||(null==s||s(e),null==l||l(e),e.defaultPrevented||null==u||u())},p),R=J(e=>{let t=e.target;[...h.branches].some(e=>e.contains(t))||(null==a||a(e),null==l||l(e),e.defaultPrevented||null==u||u())},p);return G(e=>{T!==h.layers.size-1||(null==o||o(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},p),(0,_.useEffect)(()=>{if(d)return i&&(0===h.layersWithOutsidePointerEventsDisabled.size&&(n=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(d)),h.layers.add(d),ee(),()=>{i&&1===h.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=n)}},[d,p,i,h]),(0,_.useEffect)(()=>()=>{d&&(h.layers.delete(d),h.layersWithOutsidePointerEventsDisabled.delete(d),ee())},[d,h]),(0,_.useEffect)(()=>{let e=()=>m({});return document.addEventListener(q,e),()=>document.removeEventListener(q,e)},[]),(0,_.createElement)(V.div,(0,E.A)({},c,{ref:g,style:{pointerEvents:C?w?"auto":"none":void 0,...e.style},onFocusCapture:A(e.onFocusCapture,R.onFocusCapture),onBlurCapture:A(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:A(e.onPointerDownCapture,x.onPointerDownCapture)}))});function Z(e,t=null==globalThis?void 0:globalThis.document){let r=D(e),n=(0,_.useRef)(!1),i=(0,_.useRef)(()=>{});return(0,_.useEffect)(()=>{let e=e=>{if(e.target&&!n.current){let n={originalEvent:e};function o(){et(W,r,n,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=o,t.addEventListener("click",i.current,{once:!0})):o()}else t.removeEventListener("click",i.current);n.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function J(e,t=null==globalThis?void 0:globalThis.document){let r=D(e),n=(0,_.useRef)(!1);return(0,_.useEffect)(()=>{let e=e=>{e.target&&!n.current&&et(X,r,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function ee(){let e=new CustomEvent(q);document.dispatchEvent(e)}function et(e,t,r,{discrete:n}){let i=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?H(i,o):i.dispatchEvent(o)}let er="focusScope.autoFocusOnMount",en="focusScope.autoFocusOnUnmount",ei={bubbles:!1,cancelable:!0},eo=(0,_.forwardRef)((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...s}=e,[a,l]=(0,_.useState)(null),u=D(i),c=D(o),h=(0,_.useRef)(null),d=S(t,e=>l(e)),f=(0,_.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,_.useEffect)(()=>{if(n){function e(e){if(f.paused||!a)return;let t=e.target;a.contains(t)?h.current=t:ed(h.current,{select:!0})}function t(e){if(f.paused||!a)return;let t=e.relatedTarget;null===t||a.contains(t)||ed(h.current,{select:!0})}function r(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&ed(a)}document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(r);return a&&n.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[n,a,f.paused]),(0,_.useEffect)(()=>{if(a){ef.add(f);let e=document.activeElement;if(!a.contains(e)){let t=new CustomEvent(er,ei);a.addEventListener(er,u),a.dispatchEvent(t),t.defaultPrevented||(es(eg(el(a)),{select:!0}),document.activeElement===e&&ed(a))}return()=>{a.removeEventListener(er,u),setTimeout(()=>{let t=new CustomEvent(en,ei);a.addEventListener(en,c),a.dispatchEvent(t),t.defaultPrevented||ed(null!=e?e:document.body,{select:!0}),a.removeEventListener(en,c),ef.remove(f)},0)}}},[a,u,c,f]);let p=(0,_.useCallback)(e=>{if(!r&&!n||f.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[n,o]=ea(t);n&&o?e.shiftKey||i!==o?e.shiftKey&&i===n&&(e.preventDefault(),r&&ed(o,{select:!0})):(e.preventDefault(),r&&ed(n,{select:!0})):i===t&&e.preventDefault()}},[r,n,f.paused]);return(0,_.createElement)(V.div,(0,E.A)({tabIndex:-1},s,{ref:d,onKeyDown:p}))});function es(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(ed(n,{select:t}),document.activeElement!==r)return}function ea(e){let t=el(e);return[eu(t,e),eu(t.reverse(),e)]}function el(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function eu(e,t){for(let r of e)if(!ec(r,{upTo:t}))return r}function ec(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function eh(e){return e instanceof HTMLInputElement&&"select"in e}function ed(e,{select:t=!1}={}){if(e&&e.focus){let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&eh(e)&&t&&e.select()}}let ef=ep();function ep(){let e=[];return{add(t){let r=e[0];t!==r&&(null==r||r.pause()),(e=em(e,t)).unshift(t)},remove(t){var r;null===(r=(e=em(e,t))[0])||void 0===r||r.resume()}}}function em(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}function eg(e){return e.filter(e=>"A"!==e.tagName)}let ev=(0,_.forwardRef)((e,t)=>{var r;let{container:n=null==globalThis?void 0:null===(r=globalThis.document)||void 0===r?void 0:r.body,...i}=e;return n?M.createPortal((0,_.createElement)(V.div,(0,E.A)({},i,{ref:t})),n):null});function ey(e,t){return(0,_.useReducer)((e,r)=>{let n=t[e][r];return null!=n?n:e},e)}let eE=e=>{let{present:t,children:r}=e,n=e_(t),i="function"==typeof r?r({present:n.isPresent}):_.Children.only(r),o=S(n.ref,i.ref);return"function"==typeof r||n.isPresent?(0,_.cloneElement)(i,{ref:o}):null};function e_(e){let[t,r]=(0,_.useState)(),n=(0,_.useRef)({}),i=(0,_.useRef)(e),o=(0,_.useRef)("none"),[s,a]=ey(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,_.useEffect)(()=>{let e=eb(n.current);o.current="mounted"===s?e:"none"},[s]),k(()=>{let t=n.current,r=i.current;if(r!==e){let n=o.current,s=eb(t);if(e)a("MOUNT");else if("none"===s||(null==t?void 0:t.display)==="none")a("UNMOUNT");else{let e=n!==s;r&&e?a("ANIMATION_OUT"):a("UNMOUNT")}i.current=e}},[e,a]),k(()=>{if(t){let e=e=>{let r=eb(n.current).includes(e.animationName);e.target===t&&r&&(0,M.flushSync)(()=>a("ANIMATION_END"))},r=e=>{e.target===t&&(o.current=eb(n.current))};return t.addEventListener("animationstart",r),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",r),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:(0,_.useCallback)(e=>{e&&(n.current=getComputedStyle(e)),r(e)},[])}}function eb(e){return(null==e?void 0:e.animationName)||"none"}eE.displayName="Presence";let eA=0;function eT(){(0,_.useEffect)(()=>{var e,t;let r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=r[0])&&void 0!==e?e:eC()),document.body.insertAdjacentElement("beforeend",null!==(t=r[1])&&void 0!==t?t:eC()),eA++,()=>{1===eA&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),eA--}},[])}function eC(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var eS=r(55823),ew=r(97926),ex=r(86752),eR=(0,r(55291).f)(),ek=function(){},eL=_.forwardRef(function(e,t){var r=_.useRef(null),n=_.useState({onScrollCapture:ek,onWheelCapture:ek,onTouchMoveCapture:ek}),i=n[0],o=n[1],s=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,h=e.shards,d=e.sideCar,f=e.noIsolation,p=e.inert,m=e.allowPinchZoom,g=e.as,v=void 0===g?"div":g,y=(0,eS.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),E=d,b=(0,ex.S)([r,t]),A=(0,eS.Cl)((0,eS.Cl)({},y),i);return _.createElement(_.Fragment,null,c&&_.createElement(E,{sideCar:eR,removeScrollBar:u,shards:h,noIsolation:f,inert:p,setCallbacks:o,allowPinchZoom:!!m,lockRef:r}),s?_.cloneElement(_.Children.only(a),(0,eS.Cl)((0,eS.Cl)({},A),{ref:b})):_.createElement(v,(0,eS.Cl)({},A,{className:l,ref:b}),a))});eL.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},eL.classNames={fullWidth:ew.pN,zeroRight:ew.Mi};var eI=r(11289),eO=r(75474),eD=r(16347),eN=!1;if("undefined"!=typeof window)try{var eP=Object.defineProperty({},"passive",{get:function(){return eN=!0,!0}});window.addEventListener("test",eP,eP),window.removeEventListener("test",eP,eP)}catch(e){eN=!1}var eM=!!eN&&{passive:!1},eB=function(e){return"TEXTAREA"===e.tagName},eU=function(e,t){var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&!eB(e)&&"visible"===r[t])},eF=function(e){return eU(e,"overflowY")},ej=function(e){return eU(e,"overflowX")},eK=function(e,t){var r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),ez(e,r)){var n=e$(e,r);if(n[1]>n[2])return!0}r=r.parentNode}while(r&&r!==document.body)return!1},eV=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},eH=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},ez=function(e,t){return"v"===e?eF(t):ej(t)},e$=function(e,t){return"v"===e?eV(t):eH(t)},eG=function(e,t){return"h"===e&&"rtl"===t?-1:1},eq=function(e,t,r,n,i){var o=eG(e,window.getComputedStyle(t).direction),s=o*n,a=r.target,l=t.contains(a),u=!1,c=s>0,h=0,d=0;do{var f=e$(e,a),p=f[0],m=f[1]-f[2]-o*p;(p||m)&&ez(e,a)&&(h+=m,d+=p),a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a))return c&&(i&&0===h||!i&&s>h)?u=!0:!c&&(i&&0===d||!i&&-s>d)&&(u=!0),u},eW=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eX=function(e){return[e.deltaX,e.deltaY]},eY=function(e){return e&&"current"in e?e.current:e},eQ=function(e,t){return e[0]===t[0]&&e[1]===t[1]},eZ=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},eJ=0,e0=[];function e1(e){var t=_.useRef([]),r=_.useRef([0,0]),n=_.useRef(),i=_.useState(eJ++)[0],o=_.useState(function(){return(0,eD.T0)()})[0],s=_.useRef(e);_.useEffect(function(){s.current=e},[e]),_.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,eS.fX)([e.lockRef.current],(e.shards||[]).map(eY),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=_.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var i,o=eW(e),a=r.current,l="deltaX"in e?e.deltaX:a[0]-o[0],u="deltaY"in e?e.deltaY:a[1]-o[1],c=e.target,h=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===h&&"range"===c.type)return!1;var d=eK(h,c);if(!d)return!0;if(d?i=h:(i="v"===h?"h":"v",d=eK(h,c)),!d)return!1;if(!n.current&&"changedTouches"in e&&(l||u)&&(n.current=i),!i)return!0;var f=n.current||i;return eq(f,t,e,"h"===f?l:u,!0)},[]),l=_.useCallback(function(e){var r=e;if(e0.length&&e0[e0.length-1]===o){var n="deltaY"in r?eX(r):eW(r),i=t.current.filter(function(e){return e.name===r.type&&e.target===r.target&&eQ(e.delta,n)})[0];if(i&&i.should){r.cancelable&&r.preventDefault();return}if(!i){var l=(s.current.shards||[]).map(eY).filter(Boolean).filter(function(e){return e.contains(r.target)});(l.length>0?a(r,l[0]):!s.current.noIsolation)&&r.cancelable&&r.preventDefault()}}},[]),u=_.useCallback(function(e,r,n,i){var o={name:e,delta:r,target:n,should:i};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),c=_.useCallback(function(e){r.current=eW(e),n.current=void 0},[]),h=_.useCallback(function(t){u(t.type,eX(t),t.target,a(t,e.lockRef.current))},[]),d=_.useCallback(function(t){u(t.type,eW(t),t.target,a(t,e.lockRef.current))},[]);_.useEffect(function(){return e0.push(o),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:d}),document.addEventListener("wheel",l,eM),document.addEventListener("touchmove",l,eM),document.addEventListener("touchstart",c,eM),function(){e0=e0.filter(function(e){return e!==o}),document.removeEventListener("wheel",l,eM),document.removeEventListener("touchmove",l,eM),document.removeEventListener("touchstart",c,eM)}},[]);var f=e.removeScrollBar,p=e.inert;return _.createElement(_.Fragment,null,p?_.createElement(o,{styles:eZ(i)}):null,f?_.createElement(eO.jp,{gapMode:"margin"}):null)}let e2=(0,eI.m)(eR,e1);var e3=_.forwardRef(function(e,t){return _.createElement(eL,(0,eS.Cl)({},e,{ref:t,sideCar:e2}))});e3.classNames=eL.classNames;let e4=e3;var e5=r(15031);let e6="Dialog",[e7,e8]=x(e6),[e9,te]=e7(e6),tt=e=>{let{__scopeDialog:t,children:r,open:n,defaultOpen:i,onOpenChange:o,modal:s=!0}=e,a=(0,_.useRef)(null),l=(0,_.useRef)(null),[u=!1,c]=N({prop:n,defaultProp:i,onChange:o});return(0,_.createElement)(e9,{scope:t,triggerRef:a,contentRef:l,contentId:O(),titleId:O(),descriptionId:O(),open:u,onOpenChange:c,onOpenToggle:(0,_.useCallback)(()=>c(e=>!e),[c]),modal:s},r)},tr="DialogPortal",[tn,ti]=e7(tr,{forceMount:void 0}),to=e=>{let{__scopeDialog:t,forceMount:r,children:n,container:i}=e,o=te(tr,t);return(0,_.createElement)(tn,{scope:t,forceMount:r},_.Children.map(n,e=>(0,_.createElement)(eE,{present:r||o.open},(0,_.createElement)(ev,{asChild:!0,container:i},e))))},ts="DialogOverlay",ta=(0,_.forwardRef)((e,t)=>{let r=ti(ts,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,o=te(ts,e.__scopeDialog);return o.modal?(0,_.createElement)(eE,{present:n||o.open},(0,_.createElement)(tl,(0,E.A)({},i,{ref:t}))):null}),tl=(0,_.forwardRef)((e,t)=>{let{__scopeDialog:r,...n}=e,i=te(ts,r);return(0,_.createElement)(e4,{as:B,allowPinchZoom:!0,shards:[i.contentRef]},(0,_.createElement)(V.div,(0,E.A)({"data-state":tp(i.open)},n,{ref:t,style:{pointerEvents:"auto",...n.style}})))}),tu="DialogContent",tc=(0,_.forwardRef)((e,t)=>{let r=ti(tu,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,o=te(tu,e.__scopeDialog);return(0,_.createElement)(eE,{present:n||o.open},o.modal?(0,_.createElement)(th,(0,E.A)({},i,{ref:t})):(0,_.createElement)(td,(0,E.A)({},i,{ref:t})))}),th=(0,_.forwardRef)((e,t)=>{let r=te(tu,e.__scopeDialog),n=(0,_.useRef)(null),i=S(t,r.contentRef,n);return(0,_.useEffect)(()=>{let e=n.current;if(e)return(0,e5.Eq)(e)},[]),(0,_.createElement)(tf,(0,E.A)({},e,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:A(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=r.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:A(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:A(e.onFocusOutside,e=>e.preventDefault())}))}),td=(0,_.forwardRef)((e,t)=>{let r=te(tu,e.__scopeDialog),n=(0,_.useRef)(!1),i=(0,_.useRef)(!1);return(0,_.createElement)(tf,(0,E.A)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,s;null===(o=e.onCloseAutoFocus)||void 0===o||o.call(e,t),t.defaultPrevented||(n.current||null===(s=r.triggerRef.current)||void 0===s||s.focus(),t.preventDefault()),n.current=!1,i.current=!1},onInteractOutside:t=>{var o,s;null===(o=e.onInteractOutside)||void 0===o||o.call(e,t),t.defaultPrevented||(n.current=!0,"pointerdown"!==t.detail.originalEvent.type||(i.current=!0));let a=t.target;(null===(s=r.triggerRef.current)||void 0===s?void 0:s.contains(a))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}}))}),tf=(0,_.forwardRef)((e,t)=>{let{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:o,...s}=e,a=te(tu,r),l=S(t,(0,_.useRef)(null));return eT(),(0,_.createElement)(_.Fragment,null,(0,_.createElement)(eo,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:o},(0,_.createElement)(Q,(0,E.A)({role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":tp(a.open)},s,{ref:l,onDismiss:()=>a.onOpenChange(!1)}))),!1)});function tp(e){return e?"open":"closed"}let[tm,tg]=w("DialogTitleWarning",{contentName:tu,titleName:"DialogTitle",docsSlug:"dialog"}),tv=tt,ty=to,tE=ta,t_=tc;var tb='[cmdk-group=""]',tA='[cmdk-group-items=""]',tT='[cmdk-group-heading=""]',tC='[cmdk-item=""]',tS=`${tC}:not([aria-disabled="true"])`,tw="cmdk-item-select",tx="data-value",tR=(e,t,r)=>y(e,t,r),tk=_.createContext(void 0),tL=()=>_.useContext(tk),tI=_.createContext(void 0),tO=()=>_.useContext(tI),tD=_.createContext(void 0),tN=_.forwardRef((e,t)=>{let r=tG(()=>{var t,r;return{search:"",value:null!=(r=null!=(t=e.value)?t:e.defaultValue)?r:"",filtered:{count:0,items:new Map,groups:new Set}}}),n=tG(()=>new Set),i=tG(()=>new Map),o=tG(()=>new Map),s=tG(()=>new Set),a=tz(e),{label:l,children:u,value:c,onValueChange:h,filter:d,shouldFilter:f,loop:p,disablePointerSelection:m=!1,vimBindings:g=!0,...v}=e,y=_.useId(),E=_.useId(),b=_.useId(),A=_.useRef(null),T=tY();t$(()=>{if(void 0!==c){let e=c.trim();r.current.value=e,C.emit()}},[c]),t$(()=>{T(6,L)},[]);let C=_.useMemo(()=>({subscribe:e=>(s.current.add(e),()=>s.current.delete(e)),snapshot:()=>r.current,setState:(e,t,n)=>{var i,o,s;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)k(),x(),T(1,R);else if("value"===e&&(n||T(5,L),(null==(i=a.current)?void 0:i.value)!==void 0)){let e=null!=t?t:"";null==(s=(o=a.current).onValueChange)||s.call(o,e);return}C.emit()}},emit:()=>{s.current.forEach(e=>e())}}),[]),S=_.useMemo(()=>({value:(e,t,n)=>{var i;t!==(null==(i=o.current.get(e))?void 0:i.value)&&(o.current.set(e,{value:t,keywords:n}),r.current.filtered.items.set(e,w(t,n)),T(2,()=>{x(),C.emit()}))},item:(e,t)=>(n.current.add(e),t&&(i.current.has(t)?i.current.get(t).add(e):i.current.set(t,new Set([e]))),T(3,()=>{k(),x(),r.current.value||R(),C.emit()}),()=>{o.current.delete(e),n.current.delete(e),r.current.filtered.items.delete(e);let t=I();T(4,()=>{k(),(null==t?void 0:t.getAttribute("id"))===e&&R(),C.emit()})}),group:e=>(i.current.has(e)||i.current.set(e,new Set),()=>{o.current.delete(e),i.current.delete(e)}),filter:()=>a.current.shouldFilter,label:l||e["aria-label"],disablePointerSelection:m,listId:y,inputId:b,labelId:E,listInnerRef:A}),[]);function w(e,t){var n,i;let o=null!=(i=null==(n=a.current)?void 0:n.filter)?i:tR;return e?o(e,r.current.search,t):0}function x(){if(!r.current.search||!1===a.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach(r=>{let n=i.current.get(r),o=0;n.forEach(t=>{o=Math.max(e.get(t),o)}),t.push([r,o])});let n=A.current;O().sort((t,r)=>{var n,i;let o=t.getAttribute("id"),s=r.getAttribute("id");return(null!=(n=e.get(s))?n:0)-(null!=(i=e.get(o))?i:0)}).forEach(e=>{let t=e.closest(tA);t?t.appendChild(e.parentElement===t?e:e.closest(`${tA} > *`)):n.appendChild(e.parentElement===n?e:e.closest(`${tA} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{let t=A.current.querySelector(`${tb}[${tx}="${encodeURIComponent(e[0])}"]`);null==t||t.parentElement.appendChild(t)})}function R(){let e=O().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(tx);C.setState("value",t||void 0)}function k(){var e,t,s,l;if(!r.current.search||!1===a.current.shouldFilter){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let u=0;for(let i of n.current){let n=w(null!=(t=null==(e=o.current.get(i))?void 0:e.value)?t:"",null!=(l=null==(s=o.current.get(i))?void 0:s.keywords)?l:[]);r.current.filtered.items.set(i,n),n>0&&u++}for(let[e,t]of i.current)for(let n of t)if(r.current.filtered.items.get(n)>0){r.current.filtered.groups.add(e);break}r.current.filtered.count=u}function L(){var e,t,r;let n=I();n&&((null==(e=n.parentElement)?void 0:e.firstChild)===n&&(null==(r=null==(t=n.closest(tb))?void 0:t.querySelector(tT))||r.scrollIntoView({block:"nearest"})),n.scrollIntoView({block:"nearest"}))}function I(){var e;return null==(e=A.current)?void 0:e.querySelector(`${tC}[aria-selected="true"]`)}function O(){var e;return Array.from(null==(e=A.current)?void 0:e.querySelectorAll(tS))}function D(e){let t=O()[e];t&&C.setState("value",t.getAttribute(tx))}function N(e){var t;let r=I(),n=O(),i=n.findIndex(e=>e===r),o=n[i+e];null!=(t=a.current)&&t.loop&&(o=i+e<0?n[n.length-1]:i+e===n.length?n[0]:n[i+e]),o&&C.setState("value",o.getAttribute(tx))}function P(e){let t=I(),r=null==t?void 0:t.closest(tb),n;for(;r&&!n;)n=null==(r=e>0?tV(r,tb):tH(r,tb))?void 0:r.querySelector(tS);n?C.setState("value",n.getAttribute(tx)):N(e)}let M=()=>D(O().length-1),B=e=>{e.preventDefault(),e.metaKey?M():e.altKey?P(1):N(1)},U=e=>{e.preventDefault(),e.metaKey?D(0):e.altKey?P(-1):N(-1)};return _.createElement(V.div,{ref:t,tabIndex:-1,...v,"cmdk-root":"",onKeyDown:e=>{var t;if(null==(t=v.onKeyDown)||t.call(v,e),!e.defaultPrevented)switch(e.key){case"n":case"j":g&&e.ctrlKey&&B(e);break;case"ArrowDown":B(e);break;case"p":case"k":g&&e.ctrlKey&&U(e);break;case"ArrowUp":U(e);break;case"Home":e.preventDefault(),D(0);break;case"End":e.preventDefault(),M();break;case"Enter":if(!e.nativeEvent.isComposing&&229!==e.keyCode){e.preventDefault();let t=I();if(t){let e=new Event(tw);t.dispatchEvent(e)}}}}},_.createElement("label",{"cmdk-label":"",htmlFor:S.inputId,id:S.labelId,style:tJ},l),tZ(e,e=>_.createElement(tI.Provider,{value:C},_.createElement(tk.Provider,{value:S},e))))}),tP=_.forwardRef((e,t)=>{var r,n;let i=_.useId(),o=_.useRef(null),s=_.useContext(tD),a=tL(),l=tz(e),u=null!=(n=null==(r=l.current)?void 0:r.forceMount)?n:null==s?void 0:s.forceMount;t$(()=>{if(!u)return a.item(i,null==s?void 0:s.id)},[u]);let c=tX(i,o,[e.value,e.children,o],e.keywords),h=tO(),d=tW(e=>e.value&&e.value===c.current),f=tW(e=>!!u||!1===a.filter()||!e.search||e.filtered.items.get(i)>0);function p(){var e,t;m(),null==(t=(e=l.current).onSelect)||t.call(e,c.current)}function m(){h.setState("value",c.current,!0)}if(_.useEffect(()=>{let t=o.current;if(!(!t||e.disabled))return t.addEventListener(tw,p),()=>t.removeEventListener(tw,p)},[f,e.onSelect,e.disabled]),!f)return null;let{disabled:g,value:v,onSelect:y,forceMount:E,keywords:b,...A}=e;return _.createElement(V.div,{ref:tq([o,t]),...A,id:i,"cmdk-item":"",role:"option","aria-disabled":!!g,"aria-selected":!!d,"data-disabled":!!g,"data-selected":!!d,onPointerMove:g||a.disablePointerSelection?void 0:m,onClick:g?void 0:p},e.children)}),tM=_.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:i,...o}=e,s=_.useId(),a=_.useRef(null),l=_.useRef(null),u=_.useId(),c=tL(),h=tW(e=>!!i||!1===c.filter()||!e.search||e.filtered.groups.has(s));t$(()=>c.group(s),[]),tX(s,a,[e.value,e.heading,l]);let d=_.useMemo(()=>({id:s,forceMount:i}),[i]);return _.createElement(V.div,{ref:tq([a,t]),...o,"cmdk-group":"",role:"presentation",hidden:!h||void 0},r&&_.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:u},r),tZ(e,e=>_.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?u:void 0},_.createElement(tD.Provider,{value:d},e))))}),tB=_.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,i=_.useRef(null),o=tW(e=>!e.search);return r||o?_.createElement(V.div,{ref:tq([i,t]),...n,"cmdk-separator":"",role:"separator"}):null}),tU=_.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,i=null!=e.value,o=tO(),s=tW(e=>e.search),a=tW(e=>e.value),l=tL(),u=_.useMemo(()=>{var e;let t=null==(e=l.listInnerRef.current)?void 0:e.querySelector(`${tC}[${tx}="${encodeURIComponent(a)}"]`);return null==t?void 0:t.getAttribute("id")},[]);return _.useEffect(()=>{null!=e.value&&o.setState("search",e.value)},[e.value]),_.createElement(V.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":u,id:l.inputId,type:"text",value:i?e.value:s,onChange:e=>{i||o.setState("search",e.target.value),null==r||r(e.target.value)}})}),tF=_.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...i}=e,o=_.useRef(null),s=_.useRef(null),a=tL();return _.useEffect(()=>{if(s.current&&o.current){let e=s.current,t=o.current,r,n=new ResizeObserver(()=>{r=requestAnimationFrame(()=>{let r=e.offsetHeight;t.style.setProperty("--cmdk-list-height",r.toFixed(1)+"px")})});return n.observe(e),()=>{cancelAnimationFrame(r),n.unobserve(e)}}},[]),_.createElement(V.div,{ref:tq([o,t]),...i,"cmdk-list":"",role:"listbox","aria-label":n,id:a.listId},tZ(e,e=>_.createElement("div",{ref:tq([s,a.listInnerRef]),"cmdk-list-sizer":""},e)))}),tj=_.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:i,contentClassName:o,container:s,...a}=e;return _.createElement(tv,{open:r,onOpenChange:n},_.createElement(ty,{container:s},_.createElement(tE,{"cmdk-overlay":"",className:i}),_.createElement(t_,{"aria-label":e.label,"cmdk-dialog":"",className:o},_.createElement(tN,{ref:t,...a}))))}),tK=Object.assign(tN,{List:tF,Item:tP,Input:tU,Group:tM,Separator:tB,Dialog:tj,Empty:_.forwardRef((e,t)=>tW(e=>0===e.filtered.count)?_.createElement(V.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:_.forwardRef((e,t)=>{let{progress:r,children:n,label:i="Loading...",...o}=e;return _.createElement(V.div,{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":i},tZ(e,e=>_.createElement("div",{"aria-hidden":!0},e)))})});function tV(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function tH(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function tz(e){let t=_.useRef(e);return t$(()=>{t.current=e}),t}var t$="undefined"==typeof window?_.useEffect:_.useLayoutEffect;function tG(e){let t=_.useRef();return void 0===t.current&&(t.current=e()),t}function tq(e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}function tW(e){let t=tO(),r=()=>e(t.snapshot());return _.useSyncExternalStore(t.subscribe,r,r)}function tX(e,t,r,n=[]){let i=_.useRef(),o=tL();return t$(()=>{var s;let a=(()=>{var e;for(let t of r){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():i.current}})(),l=n.map(e=>e.trim());o.value(e,a,l),null==(s=t.current)||s.setAttribute(tx,a),i.current=a}),i}var tY=()=>{let[e,t]=_.useState(),r=tG(()=>new Map);return t$(()=>{r.current.forEach(e=>e()),r.current=new Map},[e]),(e,n)=>{r.current.set(e,n),t({})}};function tQ(e){let t=e.type;return"function"==typeof t?t(e.props):"render"in t?t.render(e.props):e}function tZ({asChild:e,children:t},r){return e&&_.isValidElement(t)?_.cloneElement(tQ(t),{ref:t.ref},r(t.props.children)):r(t)}var tJ={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}},67560:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});let n=/\s+/g,i=/[\t\n\v\f\r ]+/g;function o(e,t){t?"string"==typeof t&&(t={style:t}):t={};let r=t.preserveLineEndings?s:a;return String(e).replace("html"===t.style?i:n,t.trim?l(r):r)}function s(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function a(){return" "}function l(e){return t;function t(t,r,n){return 0===r||r+t.length===n.length?"":e(t)}}},99590:(e,t,r)=>{"use strict";function n(e){let t=[],r=String(e||""),n=r.indexOf(","),i=0,o=!1;for(;!o;){-1===n&&(n=r.length,o=!0);let e=r.slice(i,n).trim();(e||!o)&&t.push(e),i=n+1,n=r.indexOf(",",i)}return t}function i(e,t){let r=t||{};return(""===e[e.length-1]?[...e,""]:e).join((r.padRight?" ":"")+","+(!1===r.padLeft?"":" ")).trim()}r.d(t,{A:()=>i,q:()=>n})},39180:(e,t,r)=>{"use strict";function n(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}r.d(t,{w:()=>n})},18342:(e,t,r)=>{"use strict";r.d(t,{GP:()=>eT});let n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},i=(e,t,r)=>{let i;let o=n[e];return(i="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),r?.addSuffix)?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};function o(e){return (t={})=>{let r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}let s={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},a={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},l={date:o({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:o({formats:s,defaultWidth:"full"}),dateTime:o({formats:a,defaultWidth:"full"})},u={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},c=(e,t,r,n)=>u[e];function h(e){return(t,r)=>{let n;if("formatting"===(r?.context?String(r.context):"standalone")&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,i=r?.width?String(r.width):t;n=e.formattingValues[i]||e.formattingValues[t]}else{let t=e.defaultWidth,i=r?.width?String(r.width):e.defaultWidth;n=e.values[i]||e.values[t]}return n[e.argumentCallback?e.argumentCallback(t):t]}}let d={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},f={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},p={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},m={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},g={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},v={ordinalNumber:(e,t)=>{let r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:h({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:h({values:d,defaultWidth:"wide",argumentCallback:e=>e-1}),month:h({values:f,defaultWidth:"wide"}),day:h({values:p,defaultWidth:"wide"}),dayPeriod:h({values:m,defaultWidth:"wide",formattingValues:g,defaultFormattingWidth:"wide"})};function y(e){return(t,r={})=>{let n;let i=r.width,o=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],s=t.match(o);if(!s)return null;let a=s[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?_(l,e=>e.test(a)):E(l,e=>e.test(a));return n=e.valueCallback?e.valueCallback(u):u,{value:n=r.valueCallback?r.valueCallback(n):n,rest:t.slice(a.length)}}}function E(e,t){for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function _(e,t){for(let r=0;r{let n=t.match(e.matchPattern);if(!n)return null;let i=n[0],o=t.match(e.parsePattern);if(!o)return null;let s=e.valueCallback?e.valueCallback(o[0]):o[0];return{value:s=r.valueCallback?r.valueCallback(s):s,rest:t.slice(i.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:y({matchPatterns:b,defaultMatchWidth:"wide",parsePatterns:A,defaultParseWidth:"any"}),quarter:y({matchPatterns:T,defaultMatchWidth:"wide",parsePatterns:C,defaultParseWidth:"any",valueCallback:e=>e+1}),month:y({matchPatterns:S,defaultMatchWidth:"wide",parsePatterns:w,defaultParseWidth:"any"}),day:y({matchPatterns:x,defaultMatchWidth:"wide",parsePatterns:R,defaultParseWidth:"any"}),dayPeriod:y({matchPatterns:k,defaultMatchWidth:"any",parsePatterns:L,defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},O={};function D(){return O}let N=6048e5,P=864e5;var M=r(55934),B=r(4334);function U(e){let t=(0,B.a)(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function F(e,t){let r=(0,M.o)(e),n=(0,M.o)(t);return Math.round((+r-U(r)-(+n-U(n)))/P)}var j=r(39180);function K(e){let t=(0,B.a)(e),r=(0,j.w)(e,0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}function V(e){let t=(0,B.a)(e);return F(t,K(t))+1}function H(e,t){let r=D(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=(0,B.a)(e),o=i.getDay(),s=(o=i.getTime()?r+1:t.getTime()>=s.getTime()?r:r-1}function q(e){let t=G(e),r=(0,j.w)(e,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),z(r)}function W(e){let t=(0,B.a)(e);return Math.round((+z(t)-+q(t))/N)+1}function X(e,t){let r=(0,B.a)(e),n=r.getFullYear(),i=D(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,s=(0,j.w)(e,0);s.setFullYear(n+1,0,o),s.setHours(0,0,0,0);let a=H(s,t),l=(0,j.w)(e,0);l.setFullYear(n,0,o),l.setHours(0,0,0,0);let u=H(l,t);return r.getTime()>=a.getTime()?n+1:r.getTime()>=u.getTime()?n:n-1}function Y(e,t){let r=D(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=X(e,t),o=(0,j.w)(e,0);return o.setFullYear(i,0,n),o.setHours(0,0,0,0),H(o,t)}function Q(e,t){let r=(0,B.a)(e);return Math.round((+H(r,t)-+Y(r,t))/N)+1}function Z(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}let J={y(e,t){let r=e.getFullYear(),n=r>0?r:1-r;return Z("yy"===t?n%100:n,t.length)},M(e,t){let r=e.getMonth();return"M"===t?String(r+1):Z(r+1,2)},d:(e,t)=>Z(e.getDate(),t.length),a(e,t){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:(e,t)=>Z(e.getHours()%12||12,t.length),H:(e,t)=>Z(e.getHours(),t.length),m:(e,t)=>Z(e.getMinutes(),t.length),s:(e,t)=>Z(e.getSeconds(),t.length),S(e,t){let r=t.length;return Z(Math.trunc(e.getMilliseconds()*Math.pow(10,r-3)),t.length)}},ee={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},et={G:function(e,t,r){let n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){let t=e.getFullYear(),n=t>0?t:1-t;return r.ordinalNumber(n,{unit:"year"})}return J.y(e,t)},Y:function(e,t,r,n){let i=X(e,n),o=i>0?i:1-i;return"YY"===t?Z(o%100,2):"Yo"===t?r.ordinalNumber(o,{unit:"year"}):Z(o,t.length)},R:function(e,t){return Z(G(e),t.length)},u:function(e,t){return Z(e.getFullYear(),t.length)},Q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return Z(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return Z(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){let n=e.getMonth();switch(t){case"M":case"MM":return J.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){let n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return Z(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){let i=Q(e,n);return"wo"===t?r.ordinalNumber(i,{unit:"week"}):Z(i,t.length)},I:function(e,t,r){let n=W(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):Z(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getDate(),{unit:"date"}):J.d(e,t)},D:function(e,t,r){let n=V(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):Z(n,t.length)},E:function(e,t,r){let n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){let i=e.getDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Z(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){let i=e.getDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Z(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){let n=e.getDay(),i=0===n?7:n;switch(t){case"i":return String(i);case"ii":return Z(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){let n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){let n;let i=e.getHours();switch(n=12===i?ee.noon:0===i?ee.midnight:i/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){let n;let i=e.getHours();switch(n=i>=17?ee.evening:i>=12?ee.afternoon:i>=4?ee.morning:ee.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),r.ordinalNumber(t,{unit:"hour"})}return J.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getHours(),{unit:"hour"}):J.H(e,t)},K:function(e,t,r){let n=e.getHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):Z(n,t.length)},k:function(e,t,r){let n=e.getHours();return(0===n&&(n=24),"ko"===t)?r.ordinalNumber(n,{unit:"hour"}):Z(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):J.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getSeconds(),{unit:"second"}):J.s(e,t)},S:function(e,t){return J.S(e,t)},X:function(e,t,r){let n=e.getTimezoneOffset();if(0===n)return"Z";switch(t){case"X":return en(n);case"XXXX":case"XX":return ei(n);default:return ei(n,":")}},x:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"x":return en(n);case"xxxx":case"xx":return ei(n);default:return ei(n,":")}},O:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+er(n,":");default:return"GMT"+ei(n,":")}},z:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+er(n,":");default:return"GMT"+ei(n,":")}},t:function(e,t,r){return Z(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,r){return Z(e.getTime(),t.length)}};function er(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),i=Math.trunc(n/60),o=n%60;return 0===o?r+String(i):r+String(i)+t+Z(o,2)}function en(e,t){return e%60==0?(e>0?"-":"+")+Z(Math.abs(e)/60,2):ei(e,t)}function ei(e,t=""){let r=e>0?"-":"+",n=Math.abs(e);return r+Z(Math.trunc(n/60),2)+t+Z(n%60,2)}let eo=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},es=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},ea=(e,t)=>{let r;let n=e.match(/(P+)(p+)?/)||[],i=n[1],o=n[2];if(!o)return eo(e,t);switch(i){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;default:r=t.dateTime({width:"full"})}return r.replace("{{date}}",eo(i,t)).replace("{{time}}",es(o,t))},el={p:es,P:ea},eu=/^D+$/,ec=/^Y+$/,eh=["D","DD","YY","YYYY"];function ed(e){return eu.test(e)}function ef(e){return ec.test(e)}function ep(e,t,r){let n=em(e,t,r);if(console.warn(n),eh.includes(e))throw RangeError(n)}function em(e,t,r){let n="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function eg(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function ev(e){return(!!eg(e)||"number"==typeof e)&&!isNaN(Number((0,B.a)(e)))}let ey=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,eE=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,e_=/^'([^]*?)'?$/,eb=/''/g,eA=/[a-zA-Z]/;function eT(e,t,r){let n=D(),i=r?.locale??n.locale??I,o=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,s=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=(0,B.a)(e);if(!ev(a))throw RangeError("Invalid time value");let l=t.match(eE).map(e=>{let t=e[0];return"p"===t||"P"===t?(0,el[t])(e,i.formatLong):e}).join("").match(ey).map(e=>{if("''"===e)return{isToken:!1,value:"'"};let t=e[0];if("'"===t)return{isToken:!1,value:eC(e)};if(et[t])return{isToken:!0,value:e};if(t.match(eA))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});i.localize.preprocessor&&(l=i.localize.preprocessor(a,l));let u={firstWeekContainsDate:o,weekStartsOn:s,locale:i};return l.map(n=>{if(!n.isToken)return n.value;let o=n.value;return(!r?.useAdditionalWeekYearTokens&&ef(o)||!r?.useAdditionalDayOfYearTokens&&ed(o))&&ep(o,t,String(e)),(0,et[o[0]])(a,o,i.localize,u)}).join("")}function eC(e){let t=e.match(e_);return t?t[1].replace(eb,"'"):e}},70131:(e,t,r)=>{"use strict";r.d(t,{r:()=>i});var n=r(55934);function i(e,t){return+(0,n.o)(e)==+(0,n.o)(t)}},26299:(e,t,r)=>{"use strict";r.d(t,{t:()=>i});var n=r(4334);function i(e,t){let r=(0,n.a)(e),i=(0,n.a)(t);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}},59878:(e,t,r)=>{"use strict";r.d(t,{c:()=>s});var n=r(39180);function i(e){return(0,n.w)(e,Date.now())}var o=r(70131);function s(e){return(0,o.r)(e,i(e))}},55934:(e,t,r)=>{"use strict";r.d(t,{o:()=>i});var n=r(4334);function i(e){let t=(0,n.a)(e);return t.setHours(0,0,0,0),t}},4334:(e,t,r)=>{"use strict";function n(e){let t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):new Date("number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?e:NaN)}r.d(t,{a:()=>n})},81490:(e,t,r)=>{"use strict";r.d(t,{s:()=>i});let n=document.createElement("i");function i(e){let t="&"+e+";";n.innerHTML=t;let r=n.textContent;return(59!==r.charCodeAt(r.length-1)||"semi"===e)&&r!==t&&r}},26867:(e,t,r)=>{"use strict";function n(){}r.d(t,{ok:()=>n})},81208:(e,t,r)=>{"use strict";function n(e){return new DataView(e.buffer,e.byteOffset)}r.r(t),r.d(t,{FileTypeParser:()=>F,fileTypeFromBlob:()=>M,fileTypeFromBuffer:()=>P,fileTypeFromStream:()=>N,fileTypeFromTokenizer:()=>U,reasonableDetectionSizeInBytes:()=>D,supportedExtensions:()=>j,supportedMimeTypes:()=>K}),r(55801);let i={len:1,get:(e,t)=>n(e).getUint8(t),put:(e,t,r)=>(n(e).setUint8(t,r),t+1)},o={len:2,get:(e,t)=>n(e).getUint16(t,!0),put:(e,t,r)=>(n(e).setUint16(t,r,!0),t+2)},s={len:2,get:(e,t)=>n(e).getUint16(t),put:(e,t,r)=>(n(e).setUint16(t,r),t+2)},a={len:4,get:(e,t)=>n(e).getUint32(t,!0),put:(e,t,r)=>(n(e).setUint32(t,r,!0),t+4)},l={len:4,get:(e,t)=>n(e).getUint32(t),put:(e,t,r)=>(n(e).setUint32(t,r),t+4)},u={len:4,get:(e,t)=>n(e).getInt32(t),put:(e,t,r)=>(n(e).setInt32(t,r),t+4)},c={len:8,get:(e,t)=>n(e).getBigUint64(t,!0),put:(e,t,r)=>(n(e).setBigUint64(t,r,!0),t+8)};class h{constructor(e,t){this.len=e,this.encoding=t,this.textDecoder=new TextDecoder(t)}get(e,t){return this.textDecoder.decode(e.subarray(t,t+this.len))}}let d="End-Of-Stream";class f extends Error{constructor(){super(d)}}class p{constructor(){this.maxStreamReadSize=1048576,this.endOfStream=!1,this.peekQueue=[]}async peek(e,t,r){let n=await this.read(e,t,r);return this.peekQueue.push(e.subarray(t,t+n)),n}async read(e,t,r){if(0===r)return 0;let n=this.readFromPeekBuffer(e,t,r);if(0===(n+=await this.readRemainderFromStream(e,t+n,r-n)))throw new f;return n}readFromPeekBuffer(e,t,r){let n=r,i=0;for(;this.peekQueue.length>0&&n>0;){let r=this.peekQueue.pop();if(!r)throw Error("peekData should be defined");let o=Math.min(r.length,n);e.set(r.subarray(0,o),t+i),i+=o,n-=o,o0&&!this.endOfStream;){let i=Math.min(r,this.maxStreamReadSize),o=await this.readFromStream(e,t+n,i);if(0===o)break;n+=o,r-=o}return n}}class m extends p{constructor(e){super(),this.reader=e.getReader({mode:"byob"})}async readFromStream(e,t,r){if(this.endOfStream)throw new f;let n=await this.reader.read(new Uint8Array(r));return(n.done&&(this.endOfStream=n.done),n.value)?(e.set(n.value,t),n.value.byteLength):0}}class g{constructor(e){var t;this.position=0,this.numBuffer=new Uint8Array(8),this.fileInfo=null!==(t=null==e?void 0:e.fileInfo)&&void 0!==t?t:{},this.onClose=null==e?void 0:e.onClose}async readToken(e,t=this.position){let r=new Uint8Array(e.len);if(await this.readBuffer(r,{position:t})t)return this.position+=t,t}return this.position+=e,e}async close(){var e;await (null===(e=this.onClose)||void 0===e?void 0:e.call(this))}normalizeOptions(e,t){if(t&&void 0!==t.position&&t.position0)return await this.ignore(n),this.readBuffer(e,t);if(n<0)throw Error("`options.position` must be equal or greater than `tokenizer.position`");if(0===r.length)return 0;let i=await this.streamReader.read(e,r.offset,r.length);if(this.position+=i,(!t||!t.mayBeLess)&&i0){let i=new Uint8Array(r.length+t);return n=await this.peekBuffer(i,{mayBeLess:r.mayBeLess}),e.set(i.subarray(t),r.offset),n-t}if(t<0)throw Error("Cannot peek from a negative offset in a stream")}if(r.length>0){try{n=await this.streamReader.peek(e,r.offset,r.length)}catch(e){if(t&&t.mayBeLess&&e instanceof f)return 0;throw e}if(!r.mayBeLess&&nr)return -1;let i=r-n;for(let r=0;r<=i;r++){let i=!0;for(let o=0;oe.charCodeAt(0))}function k(e,t=0){let r=Number.parseInt(new h(6).get(e,148).replace(/\0.*$/,"").trim(),8);if(Number.isNaN(r))return!1;let n=256;for(let r=t;rt.toString(16).padStart(2,"0"));let L={get:(e,t)=>127&e[t+3]|e[t+2]<<7|e[t+1]<<14|e[t]<<21,len:4},I=["jpg","png","apng","gif","webp","flif","xcf","cr2","cr3","orf","arw","dng","nef","rw2","raf","tif","bmp","icns","jxr","psd","indd","zip","tar","rar","gz","bz2","7z","dmg","mp4","mid","mkv","webm","mov","avi","mpg","mp2","mp3","m4a","oga","ogg","ogv","opus","flac","wav","spx","amr","pdf","epub","elf","macho","exe","swf","rtf","wasm","woff","woff2","eot","ttf","otf","ico","flv","ps","xz","sqlite","nes","crx","xpi","cab","deb","ar","rpm","Z","lz","cfb","mxf","mts","blend","bpg","docx","pptx","xlsx","3gp","3g2","j2c","jp2","jpm","jpx","mj2","aif","qcp","odt","ods","odp","xml","mobi","heic","cur","ktx","ape","wv","dcm","ics","glb","pcap","dsf","lnk","alias","voc","ac3","m4v","m4p","m4b","f4v","f4p","f4b","f4a","mie","asf","ogm","ogx","mpc","arrow","shp","aac","mp1","it","s3m","xm","ai","skp","avif","eps","lzh","pgp","asar","stl","chm","3mf","zst","jxl","vcf","jls","pst","dwg","parquet","class","arj","cpio","ace","avro","icc","fbx","vsdx"],O=["image/jpeg","image/png","image/gif","image/webp","image/flif","image/x-xcf","image/x-canon-cr2","image/x-canon-cr3","image/tiff","image/bmp","image/vnd.ms-photo","image/vnd.adobe.photoshop","application/x-indesign","application/epub+zip","application/x-xpinstall","application/vnd.oasis.opendocument.text","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.presentation","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/zip","application/x-tar","application/x-rar-compressed","application/gzip","application/x-bzip2","application/x-7z-compressed","application/x-apple-diskimage","application/x-apache-arrow","video/mp4","audio/midi","video/x-matroska","video/webm","video/quicktime","video/vnd.avi","audio/wav","audio/qcelp","audio/x-ms-asf","video/x-ms-asf","application/vnd.ms-asf","video/mpeg","video/3gpp","audio/mpeg","audio/mp4","audio/opus","video/ogg","audio/ogg","application/ogg","audio/x-flac","audio/ape","audio/wavpack","audio/amr","application/pdf","application/x-elf","application/x-mach-binary","application/x-msdownload","application/x-shockwave-flash","application/rtf","application/wasm","font/woff","font/woff2","application/vnd.ms-fontobject","font/ttf","font/otf","image/x-icon","video/x-flv","application/postscript","application/eps","application/x-xz","application/x-sqlite3","application/x-nintendo-nes-rom","application/x-google-chrome-extension","application/vnd.ms-cab-compressed","application/x-deb","application/x-unix-archive","application/x-rpm","application/x-compress","application/x-lzip","application/x-cfb","application/x-mie","application/mxf","video/mp2t","application/x-blender","image/bpg","image/j2c","image/jp2","image/jpx","image/jpm","image/mj2","audio/aiff","application/xml","application/x-mobipocket-ebook","image/heif","image/heif-sequence","image/heic","image/heic-sequence","image/icns","image/ktx","application/dicom","audio/x-musepack","text/calendar","text/vcard","model/gltf-binary","application/vnd.tcpdump.pcap","audio/x-dsf","application/x.ms.shortcut","application/x.apple.alias","audio/x-voc","audio/vnd.dolby.dd-raw","audio/x-m4a","image/apng","image/x-olympus-orf","image/x-sony-arw","image/x-adobe-dng","image/x-nikon-nef","image/x-panasonic-rw2","image/x-fujifilm-raf","video/x-m4v","video/3gpp2","application/x-esri-shape","audio/aac","audio/x-it","audio/x-s3m","audio/x-xm","video/MP1S","video/MP2P","application/vnd.sketchup.skp","image/avif","application/x-lzh-compressed","application/pgp-encrypted","application/x-asar","model/stl","application/vnd.ms-htmlhelp","model/3mf","image/jxl","application/zstd","image/jls","application/vnd.ms-outlook","image/vnd.dwg","application/x-parquet","application/java-vm","application/x-arj","application/x-cpio","application/x-ace-compressed","application/avro","application/vnd.iccprofile","application/x.autodesk.fbx","application/vnd.visio"],D=4100;async function N(e){return new F().fromStream(e)}async function P(e){return new F().fromBuffer(e)}async function M(e){return new F().fromBlob(e)}function B(e,t,r){for(let[n,i]of(r={offset:0,...r},t.entries()))if(r.mask){if(i!==(r.mask[n]&e[n+r.offset]))return!1}else if(i!==e[n+r.offset])return!1;return!0}async function U(e){return new F().fromTokenizer(e)}class F{constructor(e){this.detectors=e?.customDetectors,this.fromTokenizer=this.fromTokenizer.bind(this),this.fromBuffer=this.fromBuffer.bind(this),this.parse=this.parse.bind(this)}async fromTokenizer(e){let t=e.position;for(let r of this.detectors||[]){let n=await r(e);if(n)return n;if(t!==e.position)return}return this.parse(e)}async fromBuffer(e){if(!(e instanceof Uint8Array||e instanceof ArrayBuffer))throw TypeError(`Expected the \`input\` argument to be of type \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof e}\``);let t=e instanceof Uint8Array?e:new Uint8Array(e);if(t?.length>1)return this.fromTokenizer(b(t))}async fromBlob(e){return this.fromStream(e.stream())}async fromStream(e){let t=await _(e);try{return await this.fromTokenizer(t)}finally{await t.close()}}check(e,t){return B(this.buffer,e,t)}checkString(e,t){return this.check(R(e),t)}async parse(e){if(this.buffer=new Uint8Array(D),void 0===e.fileInfo.size&&(e.fileInfo.size=Number.MAX_SAFE_INTEGER),this.tokenizer=e,await e.peekBuffer(this.buffer,{length:12,mayBeLess:!0}),this.check([66,77]))return{ext:"bmp",mime:"image/bmp"};if(this.check([11,119]))return{ext:"ac3",mime:"audio/vnd.dolby.dd-raw"};if(this.check([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(this.check([77,90]))return{ext:"exe",mime:"application/x-msdownload"};if(this.check([37,33]))return(await e.peekBuffer(this.buffer,{length:24,mayBeLess:!0}),this.checkString("PS-Adobe-",{offset:2})&&this.checkString(" EPSF-",{offset:14}))?{ext:"eps",mime:"application/eps"}:{ext:"ps",mime:"application/postscript"};if(this.check([31,160])||this.check([31,157]))return{ext:"Z",mime:"application/x-compress"};if(this.check([199,113]))return{ext:"cpio",mime:"application/x-cpio"};if(this.check([96,234]))return{ext:"arj",mime:"application/x-arj"};if(this.check([239,187,191]))return this.tokenizer.ignore(3),this.parse(e);if(this.check([71,73,70]))return{ext:"gif",mime:"image/gif"};if(this.check([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(this.check([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(this.check([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(this.checkString("ID3")){await e.ignore(6);let t=await e.readToken(L);return e.position+t>e.fileInfo.size?{ext:"mp3",mime:"audio/mpeg"}:(await e.ignore(t),this.fromTokenizer(e))}if(this.checkString("MP+"))return{ext:"mpc",mime:"audio/x-musepack"};if((67===this.buffer[0]||70===this.buffer[0])&&this.check([87,83],{offset:1}))return{ext:"swf",mime:"application/x-shockwave-flash"};if(this.check([255,216,255]))return this.check([247],{offset:3})?{ext:"jls",mime:"image/jls"}:{ext:"jpg",mime:"image/jpeg"};if(this.check([79,98,106,1]))return{ext:"avro",mime:"application/avro"};if(this.checkString("FLIF"))return{ext:"flif",mime:"image/flif"};if(this.checkString("8BPS"))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(this.checkString("WEBP",{offset:8}))return{ext:"webp",mime:"image/webp"};if(this.checkString("MPCK"))return{ext:"mpc",mime:"audio/x-musepack"};if(this.checkString("FORM"))return{ext:"aif",mime:"audio/aiff"};if(this.checkString("icns",{offset:0}))return{ext:"icns",mime:"image/icns"};if(this.check([80,75,3,4])){try{for(;e.position+30=0?t:this.buffer.length)}else await e.ignore(r.compressedSize)}}catch(e){if(!(e instanceof f))throw e}return{ext:"zip",mime:"application/zip"}}if(this.checkString("OggS")){await e.ignore(28);let t=new Uint8Array(8);return(await e.readBuffer(t),B(t,[79,112,117,115,72,101,97,100]))?{ext:"opus",mime:"audio/opus"}:B(t,[128,116,104,101,111,114,97])?{ext:"ogv",mime:"video/ogg"}:B(t,[1,118,105,100,101,111,0])?{ext:"ogm",mime:"video/ogg"}:B(t,[127,70,76,65,67])?{ext:"oga",mime:"audio/ogg"}:B(t,[83,112,101,101,120,32,32])?{ext:"spx",mime:"audio/ogg"}:B(t,[1,118,111,114,98,105,115])?{ext:"ogg",mime:"audio/ogg"}:{ext:"ogx",mime:"application/ogg"}}if(this.check([80,75])&&(3===this.buffer[2]||5===this.buffer[2]||7===this.buffer[2])&&(4===this.buffer[3]||6===this.buffer[3]||8===this.buffer[3]))return{ext:"zip",mime:"application/zip"};if(this.checkString("ftyp",{offset:4})&&(96&this.buffer[8])!=0){let e=new h(4,"latin1").get(this.buffer,8).replace("\0"," ").trim();switch(e){case"avif":case"avis":return{ext:"avif",mime:"image/avif"};case"mif1":return{ext:"heic",mime:"image/heif"};case"msf1":return{ext:"heic",mime:"image/heif-sequence"};case"heic":case"heix":return{ext:"heic",mime:"image/heic"};case"hevc":case"hevx":return{ext:"heic",mime:"image/heic-sequence"};case"qt":return{ext:"mov",mime:"video/quicktime"};case"M4V":case"M4VH":case"M4VP":return{ext:"m4v",mime:"video/x-m4v"};case"M4P":return{ext:"m4p",mime:"video/mp4"};case"M4B":return{ext:"m4b",mime:"audio/mp4"};case"M4A":return{ext:"m4a",mime:"audio/x-m4a"};case"F4V":return{ext:"f4v",mime:"video/mp4"};case"F4P":return{ext:"f4p",mime:"video/mp4"};case"F4A":return{ext:"f4a",mime:"audio/mp4"};case"F4B":return{ext:"f4b",mime:"audio/mp4"};case"crx":return{ext:"cr3",mime:"image/x-canon-cr3"};default:if(e.startsWith("3g")){if(e.startsWith("3g2"))return{ext:"3g2",mime:"video/3gpp2"};return{ext:"3gp",mime:"video/3gpp"}}return{ext:"mp4",mime:"video/mp4"}}}if(this.checkString("MThd"))return{ext:"mid",mime:"audio/midi"};if(this.checkString("wOFF")&&(this.check([0,1,0,0],{offset:4})||this.checkString("OTTO",{offset:4})))return{ext:"woff",mime:"font/woff"};if(this.checkString("wOF2")&&(this.check([0,1,0,0],{offset:4})||this.checkString("OTTO",{offset:4})))return{ext:"woff2",mime:"font/woff2"};if(this.check([212,195,178,161])||this.check([161,178,195,212]))return{ext:"pcap",mime:"application/vnd.tcpdump.pcap"};if(this.checkString("DSD "))return{ext:"dsf",mime:"audio/x-dsf"};if(this.checkString("LZIP"))return{ext:"lz",mime:"application/x-lzip"};if(this.checkString("fLaC"))return{ext:"flac",mime:"audio/x-flac"};if(this.check([66,80,71,251]))return{ext:"bpg",mime:"image/bpg"};if(this.checkString("wvpk"))return{ext:"wv",mime:"audio/wavpack"};if(this.checkString("%PDF")){try{await e.ignore(1350);let t=10485760,r=new Uint8Array(Math.min(t,e.fileInfo.size));if(await e.readBuffer(r,{mayBeLess:!0}),x(r,new TextEncoder().encode("AIPrivateData")))return{ext:"ai",mime:"application/postscript"}}catch(e){if(!(e instanceof f))throw e}return{ext:"pdf",mime:"application/pdf"}}if(this.check([0,97,115,109]))return{ext:"wasm",mime:"application/wasm"};if(this.check([73,73])){let e=await this.readTiffHeader(!1);if(e)return e}if(this.check([77,77])){let e=await this.readTiffHeader(!0);if(e)return e}if(this.checkString("MAC "))return{ext:"ape",mime:"audio/ape"};if(this.check([26,69,223,163])){async function t(){let t=await e.peekNumber(i),r=128,n=0;for(;(t&r)==0&&0!==r;)++n,r>>=1;let o=new Uint8Array(n+1);return await e.readBuffer(o),o}async function r(){let e=await t(),r=await t();r[0]^=128>>r.length-1;let n=Math.min(6,r.length),i=new DataView(e.buffer),o=new DataView(r.buffer,r.length-n,n);return{id:S(i),len:S(o)}}async function n(t){for(;t>0;){let n=await r();if(17026===n.id)return(await e.readToken(new h(n.len))).replaceAll(/\00.*$/g,"");await e.ignore(n.len),--t}}let o=await r();switch(await n(o.len)){case"webm":return{ext:"webm",mime:"video/webm"};case"matroska":return{ext:"mkv",mime:"video/x-matroska"};default:return}}if(this.check([82,73,70,70])){if(this.check([65,86,73],{offset:8}))return{ext:"avi",mime:"video/vnd.avi"};if(this.check([87,65,86,69],{offset:8}))return{ext:"wav",mime:"audio/wav"};if(this.check([81,76,67,77],{offset:8}))return{ext:"qcp",mime:"audio/qcelp"}}if(this.checkString("SQLi"))return{ext:"sqlite",mime:"application/x-sqlite3"};if(this.check([78,69,83,26]))return{ext:"nes",mime:"application/x-nintendo-nes-rom"};if(this.checkString("Cr24"))return{ext:"crx",mime:"application/x-google-chrome-extension"};if(this.checkString("MSCF")||this.checkString("ISc("))return{ext:"cab",mime:"application/vnd.ms-cab-compressed"};if(this.check([237,171,238,219]))return{ext:"rpm",mime:"application/x-rpm"};if(this.check([197,208,211,198]))return{ext:"eps",mime:"application/eps"};if(this.check([40,181,47,253]))return{ext:"zst",mime:"application/zstd"};if(this.check([127,69,76,70]))return{ext:"elf",mime:"application/x-elf"};if(this.check([33,66,68,78]))return{ext:"pst",mime:"application/vnd.ms-outlook"};if(this.checkString("PAR1"))return{ext:"parquet",mime:"application/x-parquet"};if(this.check([207,250,237,254]))return{ext:"macho",mime:"application/x-mach-binary"};if(this.check([79,84,84,79,0]))return{ext:"otf",mime:"font/otf"};if(this.checkString("#!AMR"))return{ext:"amr",mime:"audio/amr"};if(this.checkString("{\\rtf"))return{ext:"rtf",mime:"application/rtf"};if(this.check([70,76,86,1]))return{ext:"flv",mime:"video/x-flv"};if(this.checkString("IMPM"))return{ext:"it",mime:"audio/x-it"};if(this.checkString("-lh0-",{offset:2})||this.checkString("-lh1-",{offset:2})||this.checkString("-lh2-",{offset:2})||this.checkString("-lh3-",{offset:2})||this.checkString("-lh4-",{offset:2})||this.checkString("-lh5-",{offset:2})||this.checkString("-lh6-",{offset:2})||this.checkString("-lh7-",{offset:2})||this.checkString("-lzs-",{offset:2})||this.checkString("-lz4-",{offset:2})||this.checkString("-lz5-",{offset:2})||this.checkString("-lhd-",{offset:2}))return{ext:"lzh",mime:"application/x-lzh-compressed"};if(this.check([0,0,1,186])){if(this.check([33],{offset:4,mask:[241]}))return{ext:"mpg",mime:"video/MP1S"};if(this.check([68],{offset:4,mask:[196]}))return{ext:"mpg",mime:"video/MP2P"}}if(this.checkString("ITSF"))return{ext:"chm",mime:"application/vnd.ms-htmlhelp"};if(this.check([202,254,186,190]))return{ext:"class",mime:"application/java-vm"};if(this.check([253,55,122,88,90,0]))return{ext:"xz",mime:"application/x-xz"};if(this.checkString("=1e3&&e<=1050)return{ext:"dwg",mime:"image/vnd.dwg"}}if(this.checkString("070707"))return{ext:"cpio",mime:"application/x-cpio"};if(this.checkString("BLENDER"))return{ext:"blend",mime:"application/x-blender"};if(this.checkString("!"))return(await e.ignore(8),"debian-binary"===await e.readToken(new h(13,"ascii")))?{ext:"deb",mime:"application/x-deb"}:{ext:"ar",mime:"application/x-unix-archive"};if(this.checkString("**ACE",{offset:7})&&(await e.peekBuffer(this.buffer,{length:14,mayBeLess:!0}),this.checkString("**",{offset:12})))return{ext:"ace",mime:"application/x-ace-compressed"};if(this.check([137,80,78,71,13,10,26,10])){async function o(){return{length:await e.readToken(u),type:await e.readToken(new h(4,"latin1"))}}await e.ignore(8);do{let t=await o();if(t.length<0)return;switch(t.type){case"IDAT":return{ext:"png",mime:"image/png"};case"acTL":return{ext:"apng",mime:"image/apng"};default:await e.ignore(t.length+4)}}while(e.position+8=16){let e=new DataView(this.buffer.buffer).getUint32(12,!0);if(e>12&&this.buffer.length>=e+16)try{let t=new TextDecoder().decode(this.buffer.slice(16,e+16));if(JSON.parse(t).files)return{ext:"asar",mime:"application/x-asar"}}catch{}}if(this.check([6,14,43,52,2,5,1,1,13,1,2,1,1,2]))return{ext:"mxf",mime:"application/mxf"};if(this.checkString("SCRM",{offset:44}))return{ext:"s3m",mime:"audio/x-s3m"};if(this.check([71])&&this.check([71],{offset:188})||this.check([71],{offset:4})&&this.check([71],{offset:196}))return{ext:"mts",mime:"video/mp2t"};if(this.check([66,79,79,75,77,79,66,73],{offset:60}))return{ext:"mobi",mime:"application/x-mobipocket-ebook"};if(this.check([68,73,67,77],{offset:128}))return{ext:"dcm",mime:"application/dicom"};if(this.check([76,0,0,0,1,20,2,0,0,0,0,0,192,0,0,0,0,0,0,70]))return{ext:"lnk",mime:"application/x.ms.shortcut"};if(this.check([98,111,111,107,0,0,0,0,109,97,114,107,0,0,0,0]))return{ext:"alias",mime:"application/x.apple.alias"};if(this.checkString("Kaydara FBX Binary \0"))return{ext:"fbx",mime:"application/x.autodesk.fbx"};if(this.check([76,80],{offset:34})&&(this.check([0,0,1],{offset:8})||this.check([1,0,2],{offset:8})||this.check([2,0,2],{offset:8})))return{ext:"eot",mime:"application/vnd.ms-fontobject"};if(this.check([6,6,237,245,216,29,70,229,189,49,239,231,254,116,183,29]))return{ext:"indd",mime:"application/x-indesign"};if(await e.peekBuffer(this.buffer,{length:Math.min(512,e.fileInfo.size),mayBeLess:!0}),k(this.buffer))return{ext:"tar",mime:"application/x-tar"};if(this.check([255,254]))return this.check([60,0,63,0,120,0,109,0,108,0],{offset:2})?{ext:"xml",mime:"application/xml"}:this.check([255,14,83,0,107,0,101,0,116,0,99,0,104,0,85,0,112,0,32,0,77,0,111,0,100,0,101,0,108,0],{offset:2})?{ext:"skp",mime:"application/vnd.sketchup.skp"}:void 0;if(this.checkString("-----BEGIN PGP MESSAGE-----"))return{ext:"pgp",mime:"application/pgp-encrypted"};if(this.buffer.length>=2&&this.check([255,224],{offset:0,mask:[255,224]})){if(this.check([16],{offset:1,mask:[22]}))return this.check([8],{offset:1,mask:[8]}),{ext:"aac",mime:"audio/aac"};if(this.check([2],{offset:1,mask:[6]}))return{ext:"mp3",mime:"audio/mpeg"};if(this.check([4],{offset:1,mask:[6]}))return{ext:"mp2",mime:"audio/mpeg"};if(this.check([6],{offset:1,mask:[6]}))return{ext:"mp1",mime:"audio/mpeg"}}}async readTiffTag(e){let t=await this.tokenizer.readToken(e?s:o);switch(this.tokenizer.ignore(10),t){case 50341:return{ext:"arw",mime:"image/x-sony-arw"};case 50706:return{ext:"dng",mime:"image/x-adobe-dng"}}}async readTiffIFD(e){let t=await this.tokenizer.readToken(e?s:o);for(let r=0;r=6){if(this.checkString("CR",{offset:8}))return{ext:"cr2",mime:"image/x-canon-cr2"};if(r>=8&&(this.check([28,0,254,0],{offset:8})||this.check([31,0,11,0],{offset:8})))return{ext:"nef",mime:"image/x-nikon-nef"}}return await this.tokenizer.ignore(r),await this.readTiffIFD(e)??{ext:"tif",mime:"image/tiff"}}if(43===t)return{ext:"tif",mime:"image/tiff"}}}let j=new Set(I),K=new Set(O)},4461:(e,t,r)=>{"use strict";r.d(t,{M:()=>o});var n=r(86326);let i=()=>{let e=(0,n.useRef)();return(0,n.useCallback)(t=>{"number"==typeof e.current&&clearTimeout(e.current),e.current=t},[])};function o(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],[o,s]=(0,n.useState)(e),a=(0,n.useRef)(!0),l=i();return[o,(0,n.useCallback)(e=>{a.current&&r?s(e):l(window.setTimeout(()=>{a.current=!0,s(e)},t)),a.current=!1},[r,l,t]),(0,n.useCallback)(e=>{l(),s(e)},[l])]}},42714:(e,t,r)=>{"use strict";r.d(t,{o:()=>i});var n=r(86326);function i(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("function"==typeof e)throw TypeError("useDebouncedValue does not support function as value");let[i,o]=(0,n.useState)(e),s=(0,n.useRef)(!0);return(0,n.useEffect)(()=>{let n=null;return s.current&&r?(s.current=!1,o(e)):n=window.setTimeout(()=>{s.current=!0,o(e)},t),()=>{n&&window.clearTimeout(n)}},[e,r,t]),i}},15596:(e,t,r)=>{"use strict";r.d(t,{M:()=>o});var n=r(86326);let i=e=>!1!==e&&null!=e,o=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],[t,r]=(0,n.useState)(!1);if(i(e))throw e;if(i(t))throw t;return r}},81314:(e,t,r)=>{"use strict";r.d(t,{Y:()=>n});let n=r(86326).use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}})},3471:(e,t,r)=>{"use strict";r.d(t,{TU:()=>h});let n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function i(e,t,r){let n=r[0];if(null!=t&&e>=t)throw Error(e+" >= "+t);if(e.slice(-1)===n||t&&t.slice(-1)===n)throw Error("trailing zero");if(t){let o=0;for(;(e[o]||n)===t[o];)o++;if(o>0)return t.slice(0,o)+i(e.slice(o),t.slice(o),r)}let o=e?r.indexOf(e[0]):0,s=null!=t?r.indexOf(t[0]):r.length;return s-o>1?r[Math.round(.5*(o+s))]:t&&t.length>1?t.slice(0,1):r[o]+i(e.slice(1),null,r)}function o(e){if(e.length!==s(e[0]))throw Error("invalid integer part of order key: "+e)}function s(e){if(e>="a"&&e<="z")return e.charCodeAt(0)-97+2;if(e>="A"&&e<="Z")return 90-e.charCodeAt(0)+2;throw Error("invalid order key head: "+e)}function a(e){let t=s(e[0]);if(t>e.length)throw Error("invalid order key: "+e);return e.slice(0,t)}function l(e,t){if(e==="A"+t[0].repeat(26))throw Error("invalid order key: "+e);let r=a(e);if(e.slice(r.length).slice(-1)===t[0])throw Error("invalid order key: "+e)}function u(e,t){o(e);let[r,...n]=e.split(""),i=!0;for(let e=n.length-1;i&&e>=0;e--){let r=t.indexOf(n[e])+1;r===t.length?n[e]=t[0]:(n[e]=t[r],i=!1)}if(!i)return r+n.join("");{if("Z"===r)return"a"+t[0];if("z"===r)return null;let e=String.fromCharCode(r.charCodeAt(0)+1);return e>"a"?n.push(t[0]):n.pop(),e+n.join("")}}function c(e,t){o(e);let[r,...n]=e.split(""),i=!0;for(let e=n.length-1;i&&e>=0;e--){let r=t.indexOf(n[e])-1;-1===r?n[e]=t.slice(-1):(n[e]=t[r],i=!1)}if(!i)return r+n.join("");{if("a"===r)return"Z"+t.slice(-1);if("A"===r)return null;let e=String.fromCharCode(r.charCodeAt(0)-1);return e<"Z"?n.push(t.slice(-1)):n.pop(),e+n.join("")}}function h(e,t,r=n){if(null!=e&&l(e,r),null!=t&&l(t,r),null!=e&&null!=t&&e>=t)throw Error(e+" >= "+t);if(null==e){if(null==t)return"a"+r[0];let e=a(t),n=t.slice(e.length);if(e==="A"+r[0].repeat(26))return e+i("",n,r);if(e{"use strict";function n(e){return Array.isArray?Array.isArray(e):"[object Array]"===p(e)}r.d(t,{A:()=>eg});let i=1/0;function o(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-i?"-0":t}function s(e){return null==e?"":o(e)}function a(e){return"string"==typeof e}function l(e){return"number"==typeof e}function u(e){return!0===e||!1===e||h(e)&&"[object Boolean]"==p(e)}function c(e){return"object"==typeof e}function h(e){return c(e)&&null!==e}function d(e){return null!=e}function f(e){return!e.trim().length}function p(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}let m="Incorrect 'index' type",g=e=>`Invalid value for key ${e}`,v=e=>`Pattern length exceeds max of ${e}.`,y=e=>`Missing ${e} property in key`,E=e=>`Property 'weight' in key '${e}' must be a positive integer`,_=Object.prototype.hasOwnProperty;class b{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let r=A(e);this._keys.push(r),this._keyMap[r.id]=r,t+=r.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function A(e){let t=null,r=null,i=null,o=1,s=null;if(a(e)||n(e))i=e,t=T(e),r=C(e);else{if(!_.call(e,"name"))throw Error(y("name"));let n=e.name;if(i=n,_.call(e,"weight")&&(o=e.weight)<=0)throw Error(E(n));t=T(n),r=C(n),s=e.getFn}return{path:t,id:r,weight:o,src:i,getFn:s}}function T(e){return n(e)?e:e.split(".")}function C(e){return n(e)?e.join("."):e}let S={useExtendedSearch:!1,getFn:function(e,t){let r=[],i=!1,o=(e,t,c)=>{if(d(e)){if(t[c]){let h=e[t[c]];if(d(h)){if(c===t.length-1&&(a(h)||l(h)||u(h)))r.push(s(h));else if(n(h)){i=!0;for(let e=0,r=h.length;ee.score===t.score?e.idx{this._keysMap[e.id]=t})}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,a(this.docs[0])?this.docs.forEach((e,t)=>{this._addString(e,t)}):this.docs.forEach((e,t)=>{this._addObject(e,t)}),this.norm.clear())}add(e){let t=this.size();a(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,r=this.size();t{let o=t.getFn?t.getFn(e):this.getFn(e,t.path);if(d(o)){if(n(o)){let e=[],t=[{nestedArrIndex:-1,value:o}];for(;t.length;){let{nestedArrIndex:r,value:i}=t.pop();if(d(i)){if(a(i)&&!f(i)){let t={v:i,i:r,n:this.norm.get(i)};e.push(t)}else n(i)&&i.forEach((e,r)=>{t.push({nestedArrIndex:r,value:e})})}}r.$[i]=e}else if(a(o)&&!f(o)){let e={v:o,n:this.norm.get(o)};r.$[i]=e}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function L(e,t,{getFn:r=w.getFn,fieldNormWeight:n=w.fieldNormWeight}={}){let i=new k({getFn:r,fieldNormWeight:n});return i.setKeys(e.map(A)),i.setSources(t),i.create(),i}function I(e,{getFn:t=w.getFn,fieldNormWeight:r=w.fieldNormWeight}={}){let{keys:n,records:i}=e,o=new k({getFn:t,fieldNormWeight:r});return o.setKeys(n),o.setIndexRecords(i),o}function O(e,{errors:t=0,currentLocation:r=0,expectedLocation:n=0,distance:i=w.distance,ignoreLocation:o=w.ignoreLocation}={}){let s=t/e.length;if(o)return s;let a=Math.abs(n-r);return i?s+a/i:a?1:s}function D(e=[],t=w.minMatchCharLength){let r=[],n=-1,i=-1,o=0;for(let s=e.length;o=t&&r.push([n,i]),n=-1)}return e[o-1]&&o-n>=t&&r.push([n,o-1]),r}let N=32;function P(e,t,r,{location:n=w.location,distance:i=w.distance,threshold:o=w.threshold,findAllMatches:s=w.findAllMatches,minMatchCharLength:a=w.minMatchCharLength,includeMatches:l=w.includeMatches,ignoreLocation:u=w.ignoreLocation}={}){let c;if(t.length>N)throw Error(v(N));let h=t.length,d=e.length,f=Math.max(0,Math.min(n,d)),p=o,m=f,g=a>1||l,y=g?Array(d):[];for(;(c=e.indexOf(t,m))>-1;)if(p=Math.min(O(t,{currentLocation:c,expectedLocation:f,distance:i,ignoreLocation:u}),p),m=c+h,g){let e=0;for(;e=l;o-=1){let s=o-1,a=r[e.charAt(s)];if(g&&(y[s]=+!!a),v[o]=(v[o+1]<<1|1)&a,n&&(v[o]|=(E[o+1]|E[o])<<1|1|E[o+1]),v[o]&A&&(_=O(t,{errors:n,currentLocation:s,expectedLocation:f,distance:i,ignoreLocation:u}))<=p){if(p=_,(m=s)<=f)break;l=Math.max(1,2*f-m)}}if(O(t,{errors:n+1,currentLocation:f,expectedLocation:f,distance:i,ignoreLocation:u})>p)break;E=v}let T={isMatch:m>=0,score:Math.max(.001,_)};if(g){let e=D(y,a);e.length?l&&(T.indices=e):T.isMatch=!1}return T}function M(e){let t={};for(let r=0,n=e.length;r{this.chunks.push({pattern:e,alphabet:M(e),startIndex:t})},c=this.pattern.length;if(c>N){let e=0,t=c%N,r=c-t;for(;e{let{isMatch:p,score:m,indices:g}=P(e,t,d,{location:n+f,distance:i,threshold:o,findAllMatches:s,minMatchCharLength:a,includeMatches:r,ignoreLocation:l});p&&(h=!0),c+=m,p&&g&&(u=[...u,...g])});let d={isMatch:h,score:h?c/this.chunks.length:1};return h&&r&&(d.indices=u),d}}class U{constructor(e){this.pattern=e}static isMultiMatch(e){return F(e,this.multiRegex)}static isSingleMatch(e){return F(e,this.singleRegex)}search(){}}function F(e,t){let r=e.match(t);return r?r[1]:null}class j extends U{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){let t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}class K extends U{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){let t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}class V extends U{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){let t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}class H extends U{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){let t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}class z extends U{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){let t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class G extends U{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){let t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}class q extends U{constructor(e,{location:t=w.location,threshold:r=w.threshold,distance:n=w.distance,includeMatches:i=w.includeMatches,findAllMatches:o=w.findAllMatches,minMatchCharLength:s=w.minMatchCharLength,isCaseSensitive:a=w.isCaseSensitive,ignoreLocation:l=w.ignoreLocation}={}){super(e),this._bitapSearch=new B(e,{location:t,threshold:r,distance:n,includeMatches:i,findAllMatches:o,minMatchCharLength:s,isCaseSensitive:a,ignoreLocation:l})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class W extends U{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,r=0,n=[],i=this.pattern.length;for(;(t=e.indexOf(this.pattern,r))>-1;)r=t+i,n.push([t,r-1]);let o=!!n.length;return{isMatch:o,score:o?0:1,indices:n}}}let X=[j,W,V,H,G,z,K,q],Y=X.length,Q=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Z="|";function J(e,t={}){return e.split(Z).map(e=>{let r=e.trim().split(Q).filter(e=>e&&!!e.trim()),n=[];for(let e=0,i=r.length;e!!(e[eo.AND]||e[eo.OR]),el=e=>!!e[es.PATH],eu=e=>!n(e)&&c(e)&&!ea(e),ec=e=>({[eo.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function eh(e,t,{auto:r=!0}={}){let i=e=>{let o=Object.keys(e),s=el(e);if(!s&&o.length>1&&!ea(e))return i(ec(e));if(eu(e)){let n=s?e[es.PATH]:o[0],i=s?e[es.PATTERN]:e[n];if(!a(i))throw Error(g(n));let l={keyId:C(n),pattern:i};return r&&(l.searcher=ei(i,t)),l}let l={children:[],operator:o[0]};return o.forEach(t=>{let r=e[t];n(r)&&r.forEach(e=>{l.children.push(i(e))})}),l};return ea(e)||(e=ec(e)),i(e)}function ed(e,{ignoreFieldNorm:t=w.ignoreFieldNorm}){e.forEach(e=>{let r=1;e.matches.forEach(({key:e,norm:n,score:i})=>{let o=e?e.weight:null;r*=Math.pow(0===i&&o?Number.EPSILON:i,(o||1)*(t?1:n))}),e.score=r})}function ef(e,t){let r=e.matches;t.matches=[],d(r)&&r.forEach(e=>{if(!d(e.indices)||!e.indices.length)return;let{indices:r,value:n}=e,i={indices:r,value:n};e.key&&(i.key=e.key.src),e.idx>-1&&(i.refIndex=e.idx),t.matches.push(i)})}function ep(e,t){t.score=e.score}function em(e,t,{includeMatches:r=w.includeMatches,includeScore:n=w.includeScore}={}){let i=[];return r&&i.push(ef),n&&i.push(ep),e.map(e=>{let{idx:r}=e,n={item:t[r],refIndex:r};return i.length&&i.forEach(t=>{t(e,n)}),n})}class eg{constructor(e,t={},r){this.options={...w,...t},this.options.useExtendedSearch,this._keyStore=new b(this.options.keys),this.setCollection(e,r)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof k))throw Error(m);this._myIndex=t||L(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){d(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){let t=[];for(let r=0,n=this._docs.length;r-1&&(u=u.slice(0,t)),em(u,this._docs,{includeMatches:r,includeScore:n})}_searchStringList(e){let t=ei(e,this.options),{records:r}=this._myIndex,n=[];return r.forEach(({v:e,i:r,n:i})=>{if(!d(e))return;let{isMatch:o,score:s,indices:a}=t.searchIn(e);o&&n.push({item:e,idx:r,matches:[{score:s,value:e,norm:i,indices:a}]})}),n}_searchLogical(e){let t=eh(e,this.options),r=(e,t,n)=>{if(!e.children){let{keyId:r,searcher:i}=e,o=this._findMatches({key:this._keyStore.get(r),value:this._myIndex.getValueForItemAtKeyId(t,r),searcher:i});return o&&o.length?[{idx:n,item:t,matches:o}]:[]}let i=[];for(let o=0,s=e.children.length;o{if(d(e)){let s=r(t,e,n);s.length&&(i[n]||(i[n]={idx:n,item:e,matches:[]},o.push(i[n])),s.forEach(({matches:e})=>{i[n].matches.push(...e)}))}}),o}_searchObjectList(e){let t=ei(e,this.options),{keys:r,records:n}=this._myIndex,i=[];return n.forEach(({$:e,i:n})=>{if(!d(e))return;let o=[];r.forEach((r,n)=>{o.push(...this._findMatches({key:r,value:e[n],searcher:t}))}),o.length&&i.push({idx:n,item:e,matches:o})}),i}_findMatches({key:e,value:t,searcher:r}){if(!d(t))return[];let i=[];if(n(t))t.forEach(({v:t,i:n,n:o})=>{if(!d(t))return;let{isMatch:s,score:a,indices:l}=r.searchIn(t);s&&i.push({score:a,key:e,value:t,idx:n,norm:o,indices:l})});else{let{v:n,n:o}=t,{isMatch:s,score:a,indices:l}=r.searchIn(n);s&&i.push({score:a,key:e,value:n,norm:o,indices:l})}return i}}eg.version="7.0.0",eg.createIndex=L,eg.parseIndex=I,eg.config=w,eg.parseQuery=eh,en(et)},12279:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>Z});let n={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class i{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||n,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=Array(e),r=0;r{this.observers[e]||(this.observers[e]=new Map);let r=this.observers[e].get(t)||0;this.observers[e].set(t,r+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{let[t,n]=e;for(let e=0;e{let[n,i]=t;for(let t=0;t{e=r,t=n});return r.resolve=e,r.reject=t,r}function l(e){return null==e?"":""+e}function u(e,t,r){e.forEach(e=>{t[e]&&(r[e]=t[e])})}let c=/###/g;function h(e,t,r){function n(e){return e&&e.indexOf("###")>-1?e.replace(c,"."):e}function i(){return!e||"string"==typeof e}let o="string"!=typeof t?t:t.split("."),s=0;for(;s":">",'"':""","'":"'","/":"/"};function E(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,e=>y[e]):e}class _{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(void 0!==t)return t;let r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}let b=[" ",",","?","!",";"],A=new _(20);function T(e,t,r){t=t||"",r=r||"";let n=b.filter(e=>0>t.indexOf(e)&&0>r.indexOf(e));if(0===n.length)return!0;let i=A.getRegExp(`(${n.map(e=>"?"===e?"\\?":e).join("|")})`),o=!i.test(e);if(!o){let t=e.indexOf(r);t>0&&!i.test(e.substring(0,t))&&(o=!0)}return o}function C(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];let n=t.split(r),i=e;for(let e=0;e-1&&s0?e.replace("_","-"):e}class w extends s{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,r){let n,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,s=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure;e.indexOf(".")>-1?n=e.split("."):(n=[e,t],r&&(Array.isArray(r)?n.push(...r):"string"==typeof r&&o?n.push(...r.split(o)):n.push(r)));let a=p(this.data,n);return(!a&&!t&&!r&&e.indexOf(".")>-1&&(e=n[0],t=n[1],r=n.slice(2).join(".")),a||!s||"string"!=typeof r)?a:C(this.data&&this.data[e]&&this.data[e][t],r,o)}addResource(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,s=[e,t];r&&(s=s.concat(o?r.split(o):r)),e.indexOf(".")>-1&&(s=e.split("."),n=t,t=s[1]),this.addNamespaces(t),d(this.data,s,n),i.silent||this.emit("added",e,t,r,n)}addResources(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(let n in r)("string"==typeof r[n]||Array.isArray(r[n]))&&this.addResource(e,t,n,r[n],{silent:!0});n.silent||this.emit("added",e,t,r)}addResourceBundle(e,t,r,n,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},s=[e,t];e.indexOf(".")>-1&&(s=e.split("."),n=r,r=t,t=s[1]),this.addNamespaces(t);let a=p(this.data,s)||{};o.skipCopy||(r=JSON.parse(JSON.stringify(r))),n?g(a,r,i):a={...a,...r},d(this.data,s,a),o.silent||this.emit("added",e,t,r)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var x={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,i){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,r,n,i))}),t}};let R={};class k extends s{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),u(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=o.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;let r=this.resolve(e,t);return r&&void 0!==r.res}extractFromKey(e,t){let r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");let n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=t.ns||this.options.defaultNS||[],o=r&&e.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!T(e,r,n);if(o&&!s){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:i};let o=e.split(r);(r!==n||r===n&&this.options.ns.indexOf(o[0])>-1)&&(i=o.shift()),e=o.join(n)}return"string"==typeof i&&(i=[i]),{key:e,namespaces:i}}translate(e,t,r){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);let n=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:o,namespaces:s}=this.extractFromKey(e[e.length-1],t),a=s[s.length-1],l=t.lng||this.language,u=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(u){let e=t.nsSeparator||this.options.nsSeparator;return n?{res:`${a}${e}${o}`,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:a,usedParams:this.getUsedParamsDetails(t)}:`${a}${e}${o}`}return n?{res:o,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:a,usedParams:this.getUsedParamsDetails(t)}:o}let c=this.resolve(e,t),h=c&&c.res,d=c&&c.usedKey||o,f=c&&c.exactUsedKey||o,p=Object.prototype.toString.apply(h),m=["[object Number]","[object Function]","[object RegExp]"],g=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,y="string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h;if(v&&h&&y&&0>m.indexOf(p)&&!("string"==typeof g&&Array.isArray(h))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,h,{...t,ns:s}):`key '${o} (${this.language})' returned an object instead of string.`;return n?(c.res=e,c.usedParams=this.getUsedParamsDetails(t),c):e}if(i){let e=Array.isArray(h),r=e?[]:{},n=e?f:d;for(let e in h)if(Object.prototype.hasOwnProperty.call(h,e)){let o=`${n}${i}${e}`;r[e]=this.translate(o,{...t,joinArrays:!1,ns:s}),r[e]===o&&(r[e]=h[e])}h=r}}else if(v&&"string"==typeof g&&Array.isArray(h))(h=h.join(g))&&(h=this.extendTranslation(h,e,t,r));else{let n=!1,s=!1,u=void 0!==t.count&&"string"!=typeof t.count,d=k.hasDefaultValue(t),f=u?this.pluralResolver.getSuffix(l,t.count,t):"",p=t.ordinal&&u?this.pluralResolver.getSuffix(l,t.count,{ordinal:!1}):"",m=u&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),g=m&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${f}`]||t[`defaultValue${p}`]||t.defaultValue;!this.isValidLookup(h)&&d&&(n=!0,h=g),this.isValidLookup(h)||(s=!0,h=o);let v=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&s?void 0:h,y=d&&g!==h&&this.options.updateMissing;if(s||n||y){if(this.logger.log(y?"updateKey":"missingKey",l,a,o,y?g:h),i){let e=this.resolve(o,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[],r=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&r&&r[0])for(let t=0;t{let i=d&&n!==h?n:v;this.options.missingKeyHandler?this.options.missingKeyHandler(e,a,r,i,y,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,a,r,i,y,t),this.emit("missingKey",e,a,r,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&u?e.forEach(e=>{let r=this.pluralResolver.getSuffixes(e,t);m&&t[`defaultValue${this.options.pluralSeparator}zero`]&&0>r.indexOf(`${this.options.pluralSeparator}zero`)&&r.push(`${this.options.pluralSeparator}zero`),r.forEach(r=>{n([e],o+r,t[`defaultValue${r}`]||g)})}):n(e,o,g))}h=this.extendTranslation(h,e,t,c,r),s&&h===o&&this.options.appendNamespaceToMissingKey&&(h=`${a}:${o}`),(s||n)&&this.options.parseMissingKeyHandler&&(h="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${a}:${o}`:o,n?h:void 0):this.options.parseMissingKeyHandler(h))}return n?(c.res=h,c.usedParams=this.getUsedParamsDetails(t),c):h}extendTranslation(e,t,r,n,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!r.skipInterpolation){let s;r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});let a="string"==typeof e&&(r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(a){let t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let l=r.replace&&"string"!=typeof r.replace?r.replace:r;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,r.lng||this.language||n.usedLng,r),a){let t=e.match(this.interpolator.nestingRegexp);s<(t&&t.length)&&(r.nest=!1)}!r.lng&&"v1"!==this.options.compatibilityAPI&&n&&n.res&&(r.lng=this.language||n.usedLng),!1!==r.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,n=Array(e),s=0;s1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;let a=this.extractFromKey(e,s),l=a.key;r=l;let u=a.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));let c=void 0!==s.count&&"string"!=typeof s.count,h=c&&!s.ordinal&&0===s.count&&this.pluralResolver.shouldUseIntlApi(),d=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,f=s.lngs?s.lngs:this.languageUtils.toResolveHierarchy(s.lng||this.language,s.fallbackLng);u.forEach(e=>{this.isValidLookup(t)||(o=e,!R[`${f[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(R[`${f[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${f.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach(r=>{let o;if(this.isValidLookup(t))return;i=r;let a=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(a,l,r,e,s);else{let e;c&&(e=this.pluralResolver.getSuffix(r,s.count,s));let t=`${this.options.pluralSeparator}zero`,n=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(a.push(l+e),s.ordinal&&0===e.indexOf(n)&&a.push(l+e.replace(n,this.options.pluralSeparator)),h&&a.push(l+t)),d){let r=`${l}${this.options.contextSeparator}${s.context}`;a.push(r),c&&(a.push(r+e),s.ordinal&&0===e.indexOf(n)&&a.push(r+e.replace(n,this.options.pluralSeparator)),h&&a.push(r+t))}}for(;o=a.pop();)this.isValidLookup(t)||(n=o,t=this.getResource(r,e,o,s))}))})}),{res:t,usedKey:r,exactUsedKey:n,usedLng:i,usedNS:o}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&"string"!=typeof e.replace,n=r?e.replace:e;if(r&&void 0!==e.count&&(n.count=e.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!r)for(let e of(n={...n},t))delete n[e];return n}static hasDefaultValue(e){let t="defaultValue";for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t===r.substring(0,t.length)&&void 0!==e[r])return!0;return!1}}function L(e){return e.charAt(0).toUpperCase()+e.slice(1)}class I{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=o.create("languageUtils")}getScriptPartFromCode(e){if(!(e=S(e))||0>e.indexOf("-"))return null;let t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=S(e))||0>e.indexOf("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if("string"==typeof e&&e.indexOf("-")>-1){let t=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map(e=>e.toLowerCase()):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=L(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=L(r[1].toLowerCase())),t.indexOf(r[2].toLowerCase())>-1&&(r[2]=L(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let r=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(r))&&(t=r)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>{if(e===r||!(0>e.indexOf("-")&&0>r.indexOf("-"))&&(e.indexOf("-")>0&&0>r.indexOf("-")&&e.substring(0,e.indexOf("-"))===r||0===e.indexOf(r)&&r.length>1))return e})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}toResolveHierarchy(e,t){let r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),n=[],i=e=>{e&&(this.isSupportedCode(e)?n.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return"string"==typeof e&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach(e=>{0>n.indexOf(e)&&i(this.formatLanguageCode(e))}),n}}let O=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],D={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},N=["v1","v2","v3"],P=["v4"],M={zero:0,one:1,two:2,few:3,many:4,other:5};function B(){let e={};return O.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:D[t.fc]}})}),e}class U{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=o.create("pluralResolver"),(!this.options.compatibilityJSON||P.includes(this.options.compatibilityJSON))&&("undefined"==typeof Intl||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=B()}addRule(e,t){this.rules[e]=t}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(S("dev"===e?"en":e),{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,t);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,r).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,t);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((e,t)=>M[e]-M[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):r.numbers.map(r=>this.getSuffix(e,r,t)):[]}getSuffix(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.getRule(e,r);return n?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${n.select(t)}`:this.getSuffixRetroCompatible(n,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){let r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),n=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===n?n="plural":1===n&&(n=""));let i=()=>this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString();return"v1"===this.options.compatibilityJSON?1===n?"":"number"==typeof n?`_plural_${n.toString()}`:i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!N.includes(this.options.compatibilityJSON)}}function F(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",i=!(arguments.length>4)||void 0===arguments[4]||arguments[4],o=m(e,t,r);return!o&&i&&"string"==typeof r&&void 0===(o=C(e,r,n))&&(o=C(t,r,n)),o}class j{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=o.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});let{escape:t,escapeValue:r,useRawValueToEscape:n,prefix:i,prefixEscaped:o,suffix:s,suffixEscaped:a,formatSeparator:l,unescapeSuffix:u,unescapePrefix:c,nestingPrefix:h,nestingPrefixEscaped:d,nestingSuffix:f,nestingSuffixEscaped:p,nestingOptionsSeparator:m,maxReplaces:g,alwaysFormat:y}=e.interpolation;this.escape=void 0!==t?t:E,this.escapeValue=void 0===r||r,this.useRawValueToEscape=void 0!==n&&n,this.prefix=i?v(i):o||"{{",this.suffix=s?v(s):a||"}}",this.formatSeparator=l||",",this.unescapePrefix=u?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=h?v(h):d||v("$t("),this.nestingSuffix=f?v(f):p||v(")"),this.nestingOptionsSeparator=m||",",this.maxReplaces=g||1e3,this.alwaysFormat=void 0!==y&&y,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,r,n){let i,o,s;let a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}let c=e=>{if(0>e.indexOf(this.formatSeparator)){let i=F(t,a,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,r,{...n,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),o=i.shift().trim(),s=i.join(this.formatSeparator).trim();return this.format(F(t,a,o,this.options.keySeparator,this.options.ignoreJSONStructure),s,r,{...n,...t,interpolationkey:o})};this.resetRegExp();let h=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,d=n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>u(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?u(this.escape(e)):u(e)}].forEach(t=>{for(s=0;i=t.regex.exec(e);){let r=i[1].trim();if(void 0===(o=c(r))){if("function"==typeof h){let t=h(e,i,n);o="string"==typeof t?t:""}else if(n&&Object.prototype.hasOwnProperty.call(n,r))o="";else if(d){o=i[0];continue}else this.logger.warn(`missed to pass in variable ${r} for interpolating ${e}`),o=""}else"string"==typeof o||this.useRawValueToEscape||(o=l(o));let a=t.safeValue(o);if(e=e.replace(i[0],a),d?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,++s>=this.maxReplaces)break}}),e}nest(e,t){let r,n,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function s(e,t){let r=this.nestingOptionsSeparator;if(0>e.indexOf(r))return e;let n=e.split(RegExp(`${r}[ ]*{`)),o=`{${n[1]}`;e=n[0];let s=(o=this.interpolate(o,i)).match(/'/g),a=o.match(/"/g);(s&&s.length%2==0&&!a||a.length%2!=0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),t&&(i={...t,...i})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${r}${o}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,e}for(;r=this.nestingRegexp.exec(e);){let a=[];(i=(i={...o}).replace&&"string"!=typeof i.replace?i.replace:i).applyPostProcessor=!1,delete i.defaultValue;let u=!1;if(-1!==r[0].indexOf(this.formatSeparator)&&!/{.*}/.test(r[1])){let e=r[1].split(this.formatSeparator).map(e=>e.trim());r[1]=e.shift(),a=e,u=!0}if((n=t(s.call(this,r[1].trim(),i),i))&&r[0]===e&&"string"!=typeof n)return n;"string"!=typeof n&&(n=l(n)),n||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),n=""),u&&(n=a.reduce((e,t)=>this.format(e,t,o.lng,{...o,interpolationkey:r[1].trim()}),n.trim())),e=e.replace(r[0],n),this.regexp.lastIndex=0}return e}}function K(e){let t=e.toLowerCase().trim(),r={};if(e.indexOf("(")>-1){let n=e.split("(");t=n[0].toLowerCase().trim();let i=n[1].substring(0,n[1].length-1);"currency"===t&&0>i.indexOf(":")?r.currency||(r.currency=i.trim()):"relativetime"===t&&0>i.indexOf(":")?r.range||(r.range=i.trim()):i.split(";").forEach(e=>{if(e){let[t,...n]=e.split(":"),i=n.join(":").trim().replace(/^'+|'+$/g,""),o=t.trim();r[o]||(r[o]=i),"false"===i&&(r[o]=!1),"true"===i&&(r[o]=!0),isNaN(i)||(r[o]=parseInt(i,10))}})}return{formatName:t,formatOptions:r}}function V(e){let t={};return function(r,n,i){let o=n+JSON.stringify(i),s=t[o];return s||(s=e(S(n),i),t[o]=s),s(r)}}class H{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=o.create("formatter"),this.options=e,this.formats={number:V((e,t)=>{let r=new Intl.NumberFormat(e,{...t});return e=>r.format(e)}),currency:V((e,t)=>{let r=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>r.format(e)}),datetime:V((e,t)=>{let r=new Intl.DateTimeFormat(e,{...t});return e=>r.format(e)}),relativetime:V((e,t)=>{let r=new Intl.RelativeTimeFormat(e,{...t});return e=>r.format(e,t.range||"day")}),list:V((e,t)=>{let r=new Intl.ListFormat(e,{...t});return e=>r.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},r=t.interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=V(t)}format(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return t.split(this.formatSeparator).reduce((e,t)=>{let{formatName:i,formatOptions:o}=K(t);if(this.formats[i]){let t=e;try{let s=n&&n.formatParams&&n.formatParams[n.interpolationkey]||{},a=s.locale||s.lng||n.locale||n.lng||r;t=this.formats[i](e,a,{...o,...n,...s})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e},e)}}function z(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}class G extends s{constructor(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=r,this.languageUtils=r.languageUtils,this.options=n,this.logger=o.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,n.backend,n)}queueLoad(e,t,r,n){let i={},o={},s={},a={};return e.forEach(e=>{let n=!0;t.forEach(t=>{let s=`${e}|${t}`;!r.reload&&this.store.hasResourceBundle(e,t)?this.state[s]=2:this.state[s]<0||(1===this.state[s]?void 0===o[s]&&(o[s]=!0):(this.state[s]=1,n=!1,void 0===o[s]&&(o[s]=!0),void 0===i[s]&&(i[s]=!0),void 0===a[t]&&(a[t]=!0)))}),n||(s[e]=!0)}),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(a)}}loaded(e,t,r){let n=e.split("|"),i=n[0],o=n[1];t&&this.emit("failedLoading",i,o,t),r&&this.store.addResourceBundle(i,o,r,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2;let s={};this.queue.forEach(r=>{f(r.loaded,[i],o),z(r,e),t&&r.errors.push(t),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach(e=>{s[e]||(s[e]={});let t=r.loaded[e];t.length&&t.forEach(t=>{void 0===s[e][t]&&(s[e][t]=!0)})}),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(e=>!e.done)}read(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:r,tried:n,wait:i,callback:o});return}this.readingCalls++;let s=(s,a)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(s&&a&&n{this.read.call(this,e,t,r,n+1,2*i,o)},i);return}o(s,a)},a=this.backend[r].bind(this.backend);if(2===a.length){try{let r=a(e,t);r&&"function"==typeof r.then?r.then(e=>s(null,e)).catch(s):s(null,r)}catch(e){s(e)}return}return a(e,t,s)}prepareLoading(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);let i=this.queueLoad(e,t,r,n);if(!i.toLoad.length)return i.pending.length||n(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,r){this.prepareLoading(e,t,{},r)}reload(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),n=r[0],i=r[1];this.read(n,i,"read",void 0,void 0,(r,o)=>{r&&this.logger.warn(`${t}loading namespace ${i} for language ${n} failed`,r),!r&&o&&this.logger.log(`${t}loaded namespace ${i} for language ${n}`,o),this.loaded(e,r,o)})}saveMissing(e,t,r,n,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${r}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(null!=r&&""!==r){if(this.backend&&this.backend.create){let a={...o,isUpdate:i},l=this.backend.create.bind(this.backend);if(l.length<6)try{let i;(i=5===l.length?l(e,t,r,n,a):l(e,t,r,n))&&"function"==typeof i.then?i.then(e=>s(null,e)).catch(s):s(null,i)}catch(e){s(e)}else l(e,t,r,n,s,a)}e&&e[0]&&this.store.addResource(e[0],t,r,n)}}}function q(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if("object"==typeof e[1]&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let r=e[3]||e[2];Object.keys(r).forEach(e=>{t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function W(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function X(){}function Y(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})}class Q extends s{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=W(e),this.services={},this.logger=o,this.modules={external:[]},Y(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof t&&(r=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));let n=q();function i(e){return e?"function"==typeof e?new e:e:null}if(this.options={...n,...this.options,...W(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...n.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){let t;this.modules.logger?o.init(i(this.modules.logger),this.options):o.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=H);let r=new I(this.options);this.store=new w(this.options.resources,this.options);let s=this.services;s.logger=o,s.resourceStore=this.store,s.languageUtils=r,s.pluralResolver=new U(r,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),t&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(s.formatter=i(t),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new j(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new G(i(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i1?r-1:0),i=1;i{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,r||(r=X),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(t=>{this[t]=function(){return e.store[t](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});let s=a(),l=()=>{let e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),s.resolve(t),r(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),s}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:X,r=t,n="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return r();let e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&0>e.indexOf(t)&&e.push(t)})};n?t(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload&&this.options.preload.forEach(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),r(e)})}else r(null)}reloadResources(e,t,r){let n=a();return e||(e=this.languages),t||(t=this.options.ns),r||(r=X),this.services.backendConnector.reload(e,t,e=>{n.resolve(),r(e)}),n}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&x.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var r=this;this.isLanguageChangingTo=e;let n=a();this.emit("languageChanging",e);let i=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(e,o)=>{o?(i(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,n.resolve(function(){return r.t(...arguments)}),t&&t(e,function(){return r.t(...arguments)})},s=t=>{e||t||!this.services.languageDetector||(t=[]);let r="string"==typeof t?t:this.services.languageUtils.getBestMatchFromCodes(t);r&&(this.language||i(r),this.translator.language||this.translator.changeLanguage(r),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(r)),this.loadResources(r,e=>{o(e,r)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(e):s(this.services.languageDetector.detect()),n}getFixedT(e,t,r){var n=this;let i=function(e,t){let o,s;if("object"!=typeof t){for(var a=arguments.length,l=Array(a>2?a-2:0),u=2;u`${o.keyPrefix}${c}${e}`):o.keyPrefix?`${o.keyPrefix}${c}${e}`:e,n.t(s,o)};return"string"==typeof e?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=r,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let r=t.lng||this.resolvedLanguage||this.languages[0],n=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;let o=(e,t)=>{let r=this.services.backendConnector.state[`${e}|${t}`];return -1===r||2===r};if(t.precheck){let e=t.precheck(this,o);if(void 0!==e)return e}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,e)&&(!n||o(i,e)))}loadNamespaces(e,t){let r=a();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(e=>{0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}loadLanguages(e,t){let r=a();"string"==typeof e&&(e=[e]);let n=this.options.preload||[],i=e.filter(e=>0>n.indexOf(e)&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=n.concat(i),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}dir(e){return(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf((this.services&&this.services.languageUtils||new I(q())).getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}static createInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new Q(e,t)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:X,r=e.forkResourceStore;r&&delete e.forkResourceStore;let n={...this.options,...e,isClone:!0},i=new Q(n);return(void 0!==e.debug||void 0!==e.prefix)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(e=>{i[e]=this[e]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r&&(i.store=new w(this.store.data,n),i.services.resourceStore=i.store),i.translator=new k(i.services,n),i.translator.on("*",function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{"use strict";let n;function i(e){return new Promise((t,r)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>r(e.error)})}function o(e,t){let r=indexedDB.open(e);r.onupgradeneeded=()=>r.result.createObjectStore(t);let n=i(r);return(e,r)=>n.then(n=>r(n.transaction(t,e).objectStore(t)))}function s(){return n||(n=o("keyval-store","keyval")),n}function a(e,t=s()){return t("readonly",t=>i(t.get(e)))}function l(e,t,r=s()){return r("readwrite",r=>(r.put(t,e),i(r.transaction)))}function u(e,t=s()){return t("readwrite",t=>(t.delete(e),i(t.transaction)))}function c(e,t){return e.openCursor().onsuccess=function(){this.result&&(t(this.result),this.result.continue())},i(e.transaction)}function h(e=s()){return e("readonly",e=>{if(e.getAllKeys)return i(e.getAllKeys());let t=[];return c(e,e=>t.push(e.key)).then(()=>t)})}r.d(t,{HP:()=>h,Jt:()=>a,hZ:()=>l,y$:()=>o,yH:()=>u})},48862:(e,t,r)=>{"use strict";let n,i;r.d(t,{P2:()=>E});let o=(e,t)=>t.some(t=>e instanceof t);function s(){return n||(n=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function a(){return i||(i=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}let l=new WeakMap,u=new WeakMap,c=new WeakMap;function h(e){let t=new Promise((t,r)=>{let n=()=>{e.removeEventListener("success",i),e.removeEventListener("error",o)},i=()=>{t(v(e.result)),n()},o=()=>{r(e.error),n()};e.addEventListener("success",i),e.addEventListener("error",o)});return c.set(t,e),t}function d(e){if(l.has(e))return;let t=new Promise((t,r)=>{let n=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",o),e.removeEventListener("abort",o)},i=()=>{t(),n()},o=()=>{r(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",i),e.addEventListener("error",o),e.addEventListener("abort",o)});l.set(e,t)}let f={get(e,t,r){if(e instanceof IDBTransaction){if("done"===t)return l.get(e);if("store"===t)return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return v(e[t])},set:(e,t,r)=>(e[t]=r,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function p(e){f=e(f)}function m(e){return a().includes(e)?function(...t){return e.apply(y(this),t),v(this.request)}:function(...t){return v(e.apply(y(this),t))}}function g(e){return"function"==typeof e?m(e):(e instanceof IDBTransaction&&d(e),o(e,s()))?new Proxy(e,f):e}function v(e){if(e instanceof IDBRequest)return h(e);if(u.has(e))return u.get(e);let t=g(e);return t!==e&&(u.set(e,t),c.set(t,e)),t}let y=e=>c.get(e);function E(e,t,{blocked:r,upgrade:n,blocking:i,terminated:o}={}){let s=indexedDB.open(e,t),a=v(s);return n&&s.addEventListener("upgradeneeded",e=>{n(v(s.result),e.oldVersion,e.newVersion,v(s.transaction),e)}),r&&s.addEventListener("blocked",e=>r(e.oldVersion,e.newVersion,e)),a.then(e=>{o&&e.addEventListener("close",()=>o()),i&&e.addEventListener("versionchange",e=>i(e.oldVersion,e.newVersion,e))}).catch(()=>{}),a}let _=["get","getKey","getAll","getAllKeys","count"],b=["put","add","delete","clear"],A=new Map;function T(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t))return;if(A.get(t))return A.get(t);let r=t.replace(/FromIndex$/,""),n=t!==r,i=b.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(i||_.includes(r)))return;let o=async function(e,...t){let o=this.transaction(e,i?"readwrite":"readonly"),s=o.store;return n&&(s=s.index(t.shift())),(await Promise.all([s[r](...t),i&&o.done]))[0]};return A.set(t,o),o}p(e=>({...e,get:(t,r,n)=>T(t,r)||e.get(t,r,n),has:(t,r)=>!!T(t,r)||e.has(t,r)}));let C=["continue","continuePrimaryKey","advance"],S={},w=new WeakMap,x=new WeakMap,R={get(e,t){if(!C.includes(t))return e[t];let r=S[t];return r||(r=S[t]=function(...e){w.set(this,x.get(this)[t](...e))}),r}};async function*k(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;let r=new Proxy(t,R);for(x.set(r,t),c.set(r,y(t));t;)yield r,t=await (w.get(r)||t.continue()),w.delete(r)}function L(e,t){return t===Symbol.asyncIterator&&o(e,[IDBIndex,IDBObjectStore,IDBCursor])||"iterate"===t&&o(e,[IDBIndex,IDBObjectStore])}p(e=>({...e,get:(t,r,n)=>L(t,r)?k:e.get(t,r,n),has:(t,r)=>L(t,r)||e.has(t,r)}))},91519:(e,t,r)=>{"use strict";/*! image-blob-reduce 4.1.0 https://github.com/nodeca/image-blob-reduce @license MIT */function n(e){throw Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}r.d(t,{A:()=>y});var i={};function o(e,t){var r={};return t.forEach(function(t){Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}),r}function s(e){return o(e,["alpha","unsharpAmount","unsharpRadius","unsharpThreshold","cancelToken"])}i.assign=function(e){for(var t,r=1;r=0,wasm:t.indexOf("wasm")>=0};n.call(this,r),this.features={js:r.js,wasm:r.wasm&&this.has_wasm()},this.use(i),this.use(o)}s.prototype=Object.create(n.prototype),s.prototype.constructor=s,s.prototype.resizeAndUnsharp=function(e,t){var r=this.resize(e,t);return e.unsharpAmount&&this.unsharp_mask(r,e.toWidth,e.toHeight,e.unsharpAmount,e.unsharpRadius,e.unsharpThreshold),r},t.exports=s},{"./mm_resize":4,"./mm_unsharp_mask":9,multimath:19}],2:[function(e,t,r){function n(e){return e<0?0:e>255?255:e}function i(e){return e>=0?e:0}function o(e,t,r,n,o,s){var a,l,u,c,h,d,f,p,m,g,v,y=0,E=0;for(m=0;m0;f--)c=c+(v=s[h++])*e[p+3]|0,u=u+v*e[p+2]|0,l=l+v*e[p+1]|0,a=a+v*e[p]|0,p=p+4|0;t[E+3]=i(c>>7),t[E+2]=i(u>>7),t[E+1]=i(l>>7),t[E]=i(a>>7),E=E+4*n|0}E=(m+1)*4|0,y=(m+1)*r*4|0}}function s(e,t,r,i,o,s){var a,l,u,c,h,d,f,p,m,g,v,y=0,E=0;for(m=0;m0;f--)c=c+(v=s[h++])*e[p+3]|0,u=u+v*e[p+2]|0,l=l+v*e[p+1]|0,a=a+v*e[p]|0,p=p+4|0;a>>=7,l>>=7,u>>=7,c>>=7,t[E+3]=n(c+8192>>14),t[E+2]=n(u+8192>>14),t[E+1]=n(l+8192>>14),t[E]=n(a+8192>>14),E=E+4*i|0}E=(m+1)*4|0,y=(m+1)*r*4|0}}function a(e,t,r,n,o,s){var a,l,u,c,h,d,f,p,m,g,v,y,E=0,_=0;for(g=0;g0;p--)c=c+(y=s[d++])*(h=e[m+3])|0,u=u+y*e[m+2]*h|0,l=l+y*e[m+1]*h|0,a=a+y*e[m]*h|0,m=m+4|0;u=u/255|0,l=l/255|0,a=a/255|0,t[_+3]=i(c>>7),t[_+2]=i(u>>7),t[_+1]=i(l>>7),t[_]=i(a>>7),_=_+4*n|0}_=(g+1)*4|0,E=(g+1)*r*4|0}}function l(e,t,r,i,o,s){var a,l,u,c,h,d,f,p,m,g,v,y=0,E=0;for(m=0;m0;f--)c=c+(v=s[h++])*e[p+3]|0,u=u+v*e[p+2]|0,l=l+v*e[p+1]|0,a=a+v*e[p]|0,p=p+4|0;a>>=7,l>>=7,u>>=7,c>>=7,(c=n(c+8192>>14))>0&&(a=255*a/c|0,l=255*l/c|0,u=255*u/c|0),t[E+3]=c,t[E+2]=n(u+8192>>14),t[E+1]=n(l+8192>>14),t[E]=n(a+8192>>14),E=E+4*i|0}E=(m+1)*4|0,y=(m+1)*r*4|0}}t.exports={convolveHor:o,convolveVert:s,convolveHorWithPre:a,convolveVertWithPre:l}},{}],3:[function(e,t,r){t.exports="AGFzbQEAAAAADAZkeWxpbmsAAAAAAAEYA2AGf39/f39/AGAAAGAIf39/f39/f38AAg8BA2VudgZtZW1vcnkCAAADBwYBAAAAAAIGBgF/AEEACweUAQgRX193YXNtX2NhbGxfY3RvcnMAAAtjb252b2x2ZUhvcgABDGNvbnZvbHZlVmVydAACEmNvbnZvbHZlSG9yV2l0aFByZQADE2NvbnZvbHZlVmVydFdpdGhQcmUABApjb252b2x2ZUhWAAUMX19kc29faGFuZGxlAwAYX193YXNtX2FwcGx5X2RhdGFfcmVsb2NzAAAKyA4GAwABC4wDARB/AkAgA0UNACAERQ0AIANBAnQhFQNAQQAhE0EAIQsDQCALQQJqIQcCfyALQQF0IAVqIgYuAQIiC0UEQEEAIQhBACEGQQAhCUEAIQogBwwBCyASIAYuAQBqIQhBACEJQQAhCiALIRRBACEOIAchBkEAIQ8DQCAFIAZBAXRqLgEAIhAgACAIQQJ0aigCACIRQRh2bCAPaiEPIBFB/wFxIBBsIAlqIQkgEUEQdkH/AXEgEGwgDmohDiARQQh2Qf8BcSAQbCAKaiEKIAhBAWohCCAGQQFqIQYgFEEBayIUDQALIAlBB3UhCCAKQQd1IQYgDkEHdSEJIA9BB3UhCiAHIAtqCyELIAEgDEEBdCIHaiAIQQAgCEEAShs7AQAgASAHQQJyaiAGQQAgBkEAShs7AQAgASAHQQRyaiAJQQAgCUEAShs7AQAgASAHQQZyaiAKQQAgCkEAShs7AQAgDCAVaiEMIBNBAWoiEyAERw0ACyANQQFqIg0gAmwhEiANQQJ0IQwgAyANRw0ACwsL2gMBD38CQCADRQ0AIARFDQAgAkECdCEUA0AgCyEMQQAhE0EAIQIDQCACQQJqIQYCfyACQQF0IAVqIgcuAQIiAkUEQEEAIQhBACEHQQAhCkEAIQkgBgwBCyAHLgEAQQJ0IBJqIQhBACEJIAIhCkEAIQ0gBiEHQQAhDkEAIQ8DQCAFIAdBAXRqLgEAIhAgACAIQQF0IhFqLwEAbCAJaiEJIAAgEUEGcmovAQAgEGwgDmohDiAAIBFBBHJqLwEAIBBsIA9qIQ8gACARQQJyai8BACAQbCANaiENIAhBBGohCCAHQQFqIQcgCkEBayIKDQALIAlBB3UhCCANQQd1IQcgDkEHdSEKIA9BB3UhCSACIAZqCyECIAEgDEECdGogB0GAQGtBDnUiBkH/ASAGQf8BSBsiBkEAIAZBAEobQQh0QYD+A3EgCUGAQGtBDnUiBkH/ASAGQf8BSBsiBkEAIAZBAEobQRB0QYCA/AdxIApBgEBrQQ51IgZB/wEgBkH/AUgbIgZBACAGQQBKG0EYdHJyIAhBgEBrQQ51IgZB/wEgBkH/AUgbIgZBACAGQQBKG3I2AgAgAyAMaiEMIBNBAWoiEyAERw0ACyAUIAtBAWoiC2whEiADIAtHDQALCwuSAwEQfwJAIANFDQAgBEUNACADQQJ0IRUDQEEAIRNBACEGA0AgBkECaiEIAn8gBkEBdCAFaiIGLgECIgdFBEBBACEJQQAhDEEAIQ1BACEOIAgMAQsgEiAGLgEAaiEJQQAhDkEAIQ1BACEMIAchFEEAIQ8gCCEGA0AgBSAGQQF0ai4BACAAIAlBAnRqKAIAIhBBGHZsIhEgD2ohDyARIBBBEHZB/wFxbCAMaiEMIBEgEEEIdkH/AXFsIA1qIQ0gESAQQf8BcWwgDmohDiAJQQFqIQkgBkEBaiEGIBRBAWsiFA0ACyAPQQd1IQkgByAIagshBiABIApBAXQiCGogDkH/AW1BB3UiB0EAIAdBAEobOwEAIAEgCEECcmogDUH/AW1BB3UiB0EAIAdBAEobOwEAIAEgCEEEcmogDEH/AW1BB3UiB0EAIAdBAEobOwEAIAEgCEEGcmogCUEAIAlBAEobOwEAIAogFWohCiATQQFqIhMgBEcNAAsgC0EBaiILIAJsIRIgC0ECdCEKIAMgC0cNAAsLC4IEAQ9/AkAgA0UNACAERQ0AIAJBAnQhFANAIAshDEEAIRJBACEHA0AgB0ECaiEKAn8gB0EBdCAFaiICLgECIhNFBEBBACEIQQAhCUEAIQYgCiEHQQAMAQsgAi4BAEECdCARaiEJQQAhByATIQJBACENIAohBkEAIQ5BACEPA0AgBSAGQQF0ai4BACIIIAAgCUEBdCIQai8BAGwgB2ohByAAIBBBBnJqLwEAIAhsIA5qIQ4gACAQQQRyai8BACAIbCAPaiEPIAAgEEECcmovAQAgCGwgDWohDSAJQQRqIQkgBkEBaiEGIAJBAWsiAg0ACyAHQQd1IQggDUEHdSEJIA9BB3UhBiAKIBNqIQcgDkEHdQtBgEBrQQ51IgJB/wEgAkH/AUgbIgJBACACQQBKGyIKQf8BcQRAIAlB/wFsIAJtIQkgCEH/AWwgAm0hCCAGQf8BbCACbSEGCyABIAxBAnRqIAlBgEBrQQ51IgJB/wEgAkH/AUgbIgJBACACQQBKG0EIdEGA/gNxIAZBgEBrQQ51IgJB/wEgAkH/AUgbIgJBACACQQBKG0EQdEGAgPwHcSAKQRh0ciAIQYBAa0EOdSICQf8BIAJB/wFIGyICQQAgAkEAShtycjYCACADIAxqIQwgEkEBaiISIARHDQALIBQgC0EBaiILbCERIAMgC0cNAAsLC0AAIAcEQEEAIAIgAyAEIAUgABADIAJBACAEIAUgBiABEAQPC0EAIAIgAyAEIAUgABABIAJBACAEIAUgBiABEAIL"},{}],4:[function(e,t,r){t.exports={name:"resize",fn:e("./resize"),wasm_fn:e("./resize_wasm"),wasm_src:e("./convolve_wasm_base64")}},{"./convolve_wasm_base64":3,"./resize":5,"./resize_wasm":8}],5:[function(e,t,r){var n=e("./resize_filter_gen"),i=e("./convolve"),o=i.convolveHor,s=i.convolveVert,a=i.convolveHorWithPre,l=i.convolveVertWithPre;function u(e,t,r){for(var n=3,i=t*r*4|0;n>1]+=o(1-y),_=0;_0&&0===f[b];)b--;if(A=u+_,T=b-_+1,R[k++]=A,R[k++]=T,L)for(g=_;g<=b;g++)R[k++]=f[g];else R.set(f.subarray(_,b+1),k),k+=T}else R[k++]=0,R[k++]=0}return R}},{"./resize_filter_info":7}],7:[function(e,t,r){var n={box:{win:.5,fn:function(e){return e<0&&(e=-e),e<.5?1:0}},hamming:{win:1,fn:function(e){if(e<0&&(e=-e),e>=1)return 0;if(e<11920929e-14)return 1;var t=e*Math.PI;return Math.sin(t)/t*(.54+.46*Math.cos(t/1))}},lanczos2:{win:2,fn:function(e){if(e<0&&(e=-e),e>=2)return 0;if(e<11920929e-14)return 1;var t=e*Math.PI;return Math.sin(t)/t*Math.sin(t/2)/(t/2)}},lanczos3:{win:3,fn:function(e){if(e<0&&(e=-e),e>=3)return 0;if(e<11920929e-14)return 1;var t=e*Math.PI;return Math.sin(t)/t*Math.sin(t/3)/(t/3)}},mks2013:{win:2.5,fn:function(e){return(e<0&&(e=-e),e>=2.5)?0:e>=1.5?-.125*(e-2.5)*(e-2.5):e>=.5?.25*(4*e*e-11*e+7):1.0625-1.75*e*e}}};t.exports={filter:n,f2q:{box:0,hamming:1,lanczos2:2,lanczos3:3},q2f:["box","hamming","lanczos2","lanczos3"]}},{}],8:[function(e,t,r){var n=e("./resize_filter_gen");function i(e,t,r){for(var n=3,i=t*r*4|0;n>8&255}}t.exports=function(e){var t=e.src,r=e.width,s=e.height,a=e.toWidth,u=e.toHeight,c=e.scaleX||e.toWidth/e.width,h=e.scaleY||e.toHeight/e.height,d=e.offsetX||0,f=e.offsetY||0,p=e.dest||new Uint8Array(a*u*4),m=void 0===e.filter?"mks2013":e.filter,g=n(m,r,a,c,d),v=n(m,s,u,h,f),y=0,E=Math.max(t.byteLength,p.byteLength),_=this.__align(y+E),b=s*a*8,A=this.__align(_+b),T=this.__align(A+g.byteLength),C=T+v.byteLength,S=this.__instance("resize",C),w=new Uint8Array(this.__memory.buffer),x=new Uint32Array(this.__memory.buffer),R=new Uint32Array(t.buffer);x.set(R),l(g,w,A),l(v,w,T);var k=S.exports.convolveHV||S.exports._convolveHV;return i(t,r,s)?k(A,T,_,r,s,a,u,1):(k(A,T,_,r,s,a,u,0),o(p,a,u)),new Uint32Array(p.buffer).set(new Uint32Array(this.__memory.buffer,0,u*a)),p}},{"./resize_filter_gen":6}],9:[function(e,t,r){t.exports={name:"unsharp_mask",fn:e("./unsharp_mask"),wasm_fn:e("./unsharp_mask_wasm"),wasm_src:e("./unsharp_mask_wasm_base64")}},{"./unsharp_mask":10,"./unsharp_mask_wasm":11,"./unsharp_mask_wasm_base64":12}],10:[function(e,t,r){var n=e("glur/mono16");function i(e,t,r){for(var n,i,o,s,a=t*r,l=new Uint16Array(a),u=0;u=i&&n>=o?n:i>=o&&i>=n?i:o,l[u]=s<<8;return l}t.exports=function(e,t,r,o,s,a){if(0!==o&&!(s<.5)){s>2&&(s=2);var l,u,c,h,d,f=i(e,t,r),p=new Uint16Array(f);n(p,t,r,s);for(var m=o/100*4096+.5|0,g=a<<8,v=t*r,y=0;y=g&&(u=(u=(u=l+(m*h+2048>>12))>65280?65280:u)<0?0:u,c=(u<<12)/(l=0!==l?l:1)|0,e[d=4*y]=e[d]*c+2048>>12,e[d+1]=e[d+1]*c+2048>>12,e[d+2]=e[d+2]*c+2048>>12)}}},{"glur/mono16":18}],11:[function(e,t,r){t.exports=function(e,t,r,n,i,o){if(0!==n&&!(i<.5)){i>2&&(i=2);var s=t*r,a=4*s,l=2*s,u=2*s,c=4*Math.max(t,r),h=32,d=0,f=a,p=f+l,m=p+u,g=m+u,v=g+c,y=this.__instance("unsharp_mask",a+l+2*u+c+h,{exp:Math.exp}),E=new Uint32Array(e.buffer);new Uint32Array(this.__memory.buffer).set(E);var _=y.exports.hsv_v16||y.exports._hsv_v16;_(d,f,t,r),(_=y.exports.blurMono16||y.exports._blurMono16)(f,p,m,g,v,t,r,i),(_=y.exports.unsharp||y.exports._unsharp)(d,d,f,p,t,r,n,o),E.set(new Uint32Array(this.__memory.buffer,0,s))}}},{}],12:[function(e,t,r){t.exports="AGFzbQEAAAAADAZkeWxpbmsAAAAAAAE0B2AAAGAEf39/fwBgBn9/f39/fwBgCH9/f39/f39/AGAIf39/f39/f30AYAJ9fwBgAXwBfAIZAgNlbnYDZXhwAAYDZW52Bm1lbW9yeQIAAAMHBgAFAgQBAwYGAX8AQQALB4oBCBFfX3dhc21fY2FsbF9jdG9ycwABFl9fYnVpbGRfZ2F1c3NpYW5fY29lZnMAAg5fX2dhdXNzMTZfbGluZQADCmJsdXJNb25vMTYABAdoc3ZfdjE2AAUHdW5zaGFycAAGDF9fZHNvX2hhbmRsZQMAGF9fd2FzbV9hcHBseV9kYXRhX3JlbG9jcwABCsUMBgMAAQvWAQEHfCABRNuGukOCGvs/IAC7oyICRAAAAAAAAADAohAAIgW2jDgCFCABIAKaEAAiAyADoCIGtjgCECABRAAAAAAAAPA/IAOhIgQgBKIgAyACIAKgokQAAAAAAADwP6AgBaGjIgS2OAIAIAEgBSAEmqIiB7Y4AgwgASADIAJEAAAAAAAA8D+gIASioiIItjgCCCABIAMgAkQAAAAAAADwv6AgBKKiIgK2OAIEIAEgByAIoCAFRAAAAAAAAPA/IAahoCIDo7Y4AhwgASAEIAKgIAOjtjgCGAuGBQMGfwl8An0gAyoCDCEVIAMqAgghFiADKgIUuyERIAMqAhC7IRACQCAEQQFrIghBAEgiCQRAIAIhByAAIQYMAQsgAiAALwEAuCIPIAMqAhi7oiIMIBGiIg0gDCAQoiAPIAMqAgS7IhOiIhQgAyoCALsiEiAPoqCgoCIOtjgCACACQQRqIQcgAEECaiEGIAhFDQAgCEEBIAhBAUgbIgpBf3MhCwJ/IAQgCmtBAXFFBEAgDiENIAgMAQsgAiANIA4gEKIgFCASIAAvAQK4Ig+ioKCgIg22OAIEIAJBCGohByAAQQRqIQYgDiEMIARBAmsLIQIgC0EAIARrRg0AA0AgByAMIBGiIA0gEKIgDyAToiASIAYvAQC4Ig6ioKCgIgy2OAIAIAcgDSARoiAMIBCiIA4gE6IgEiAGLwECuCIPoqCgoCINtjgCBCAHQQhqIQcgBkEEaiEGIAJBAkohACACQQJrIQIgAA0ACwsCQCAJDQAgASAFIAhsQQF0aiIAAn8gBkECay8BACICuCINIBW7IhKiIA0gFrsiE6KgIA0gAyoCHLuiIgwgEKKgIAwgEaKgIg8gB0EEayIHKgIAu6AiDkQAAAAAAADwQWMgDkQAAAAAAAAAAGZxBEAgDqsMAQtBAAs7AQAgCEUNACAGQQRrIQZBACAFa0EBdCEBA0ACfyANIBKiIAJB//8DcbgiDSAToqAgDyIOIBCioCAMIBGioCIPIAdBBGsiByoCALugIgxEAAAAAAAA8EFjIAxEAAAAAAAAAABmcQRAIAyrDAELQQALIQMgBi8BACECIAAgAWoiACADOwEAIAZBAmshBiAIQQFKIQMgDiEMIAhBAWshCCADDQALCwvRAgIBfwd8AkAgB0MAAAAAWw0AIARE24a6Q4Ia+z8gB0MAAAA/l7ujIglEAAAAAAAAAMCiEAAiDLaMOAIUIAQgCZoQACIKIAqgIg22OAIQIAREAAAAAAAA8D8gCqEiCyALoiAKIAkgCaCiRAAAAAAAAPA/oCAMoaMiC7Y4AgAgBCAMIAuaoiIOtjgCDCAEIAogCUQAAAAAAADwP6AgC6KiIg+2OAIIIAQgCiAJRAAAAAAAAPC/oCALoqIiCbY4AgQgBCAOIA+gIAxEAAAAAAAA8D8gDaGgIgqjtjgCHCAEIAsgCaAgCqO2OAIYIAYEQANAIAAgBSAIbEEBdGogAiAIQQF0aiADIAQgBSAGEAMgCEEBaiIIIAZHDQALCyAFRQ0AQQAhCANAIAIgBiAIbEEBdGogASAIQQF0aiADIAQgBiAFEAMgCEEBaiIIIAVHDQALCwtxAQN/IAIgA2wiBQRAA0AgASAAKAIAIgRBEHZB/wFxIgIgAiAEQQh2Qf8BcSIDIAMgBEH/AXEiBEkbIAIgA0sbIgYgBiAEIAIgBEsbIAMgBEsbQQh0OwEAIAFBAmohASAAQQRqIQAgBUEBayIFDQALCwuZAgIDfwF8IAQgBWwhBAJ/IAazQwAAgEWUQwAAyEKVu0QAAAAAAADgP6AiC5lEAAAAAAAA4EFjBEAgC6oMAQtBgICAgHgLIQUgBARAIAdBCHQhCUEAIQYDQCAJIAIgBkEBdCIHai8BACIBIAMgB2ovAQBrIgcgB0EfdSIIaiAIc00EQCAAIAZBAnQiCGoiCiAFIAdsQYAQakEMdSABaiIHQYD+AyAHQYD+A0gbIgdBACAHQQBKG0EMdCABQQEgARtuIgEgCi0AAGxBgBBqQQx2OgAAIAAgCEEBcmoiByABIActAABsQYAQakEMdjoAACAAIAhBAnJqIgcgASAHLQAAbEGAEGpBDHY6AAALIAZBAWoiBiAERw0ACwsL"},{}],13:[function(e,t,r){var n=100;function i(e,t){this.create=e,this.available=[],this.acquired={},this.lastId=1,this.timeoutId=0,this.idle=t||2e3}i.prototype.acquire=function(){var e,t=this;return 0!==this.available.length?e=this.available.pop():((e=this.create()).id=this.lastId++,e.release=function(){return t.release(e)}),this.acquired[e.id]=e,e},i.prototype.release=function(e){var t=this;delete this.acquired[e.id],e.lastUsed=Date.now(),this.available.push(e),0===this.timeoutId&&(this.timeoutId=setTimeout(function(){return t.gc()},n))},i.prototype.gc=function(){var e=this,t=Date.now();this.available=this.available.filter(function(r){return!(t-r.lastUsed>e.idle)||(r.destroy(),!1)}),0!==this.available.length?this.timeoutId=setTimeout(function(){return e.gc()},n):this.timeoutId=0},t.exports=i},{}],14:[function(e,t,r){var n=2;t.exports=function(e,t,r,i,o,s){var a=r/e,l=i/t,u=(2*s+n+1)/o;if(u>.5)return[[r,i]];var c=Math.ceil(Math.log(Math.min(a,l))/Math.log(u));if(c<=1)return[[r,i]];for(var h=[],d=0;d=e.toWidth&&(a=e.toWidth-t),(r=s-e.destTileBorder)<0&&(r=0),l=s+d+e.destTileBorder-r,r+l>=e.toHeight&&(l=e.toHeight-r),f.push({toX:t,toY:r,toWidth:a,toHeight:l,toInnerX:n,toInnerY:s,toInnerWidth:h,toInnerHeight:d,offsetX:t/u-i(t/u),offsetY:r/c-i(r/c),scaleX:u,scaleY:c,x:i(t/u),y:i(r/c),width:o(a/u),height:o(l/c)});return f}},{}],16:[function(e,t,r){function n(e){return Object.prototype.toString.call(e)}t.exports.isCanvas=function(e){var t=n(e);return"[object HTMLCanvasElement]"===t||"[object OffscreenCanvas]"===t||"[object Canvas]"===t},t.exports.isImage=function(e){return"[object HTMLImageElement]"===n(e)},t.exports.isImageBitmap=function(e){return"[object ImageBitmap]"===n(e)},t.exports.limiter=function(e){var t=0,r=[];function n(){t=0;m--)l=a*g+s*v+u*y+c*E,c=u,u=l,s=a,a=e[h],t[d]=r[f]+u,h--,f--,d-=o}}function f(e,t,r,n){if(n){var i=new Uint16Array(e.length),o=new Float32Array(Math.max(t,r)),s=h(n);d(e,i,o,s,t,r),d(i,e,o,s,r,t)}}t.exports=f},{}],19:[function(e,t,r){var n=e("object-assign"),i=e("./lib/base64decode"),o=e("./lib/wa_detect"),s={js:!0,wasm:!0};function a(e){if(!(this instanceof a))return new a(e);var t=n({},s,e||{});if(this.options=t,this.__cache={},this.__init_promise=null,this.__modules=t.modules||{},this.__memory=null,this.__wasm={},this.__isLE=1===new Uint32Array(new Uint8Array([1,0,0,0]).buffer)[0],!this.options.js&&!this.options.wasm)throw Error('mathlib: at least "js" or "wasm" should be enabled')}a.prototype.has_wasm=o,a.prototype.use=function(e){return this.__modules[e.name]=e,this.options.wasm&&this.has_wasm()&&e.wasm_fn?this[e.name]=e.wasm_fn:this[e.name]=e.fn,this},a.prototype.init=function(){if(this.__init_promise)return this.__init_promise;if(!this.options.js&&this.options.wasm&&!this.has_wasm())return Promise.reject(Error('mathlib: only "wasm" was enabled, but it\'s not supported'));var e=this;return this.__init_promise=Promise.all(Object.keys(e.__modules).map(function(t){var r=e.__modules[t];return e.options.wasm&&e.has_wasm()&&r.wasm_fn&&!e.__wasm[t]?WebAssembly.compile(e.__base64decode(r.wasm_src)).then(function(r){e.__wasm[t]=r}):null})).then(function(){return e}),this.__init_promise},a.prototype.__base64decode=i,a.prototype.__reallocate=function(e){if(!this.__memory)return this.__memory=new WebAssembly.Memory({initial:Math.ceil(e/65536)}),this.__memory;var t=this.__memory.buffer.byteLength;return t>2),o=0,s=0,a=0;a>16&255,i[s++]=o>>8&255,i[s++]=255&o),o=o<<6|n.indexOf(t.charAt(a));var l=r%4*6;return 0===l?(i[s++]=o>>16&255,i[s++]=o>>8&255,i[s++]=255&o):18===l?(i[s++]=o>>10&255,i[s++]=o>>2&255):12===l&&(i[s++]=o>>4&255),i}},{}],21:[function(e,t,r){var n;t.exports=function(){if(void 0!==n||(n=!1,"undefined"==typeof WebAssembly))return n;try{var e=new Uint8Array([0,97,115,109,1,0,0,0,1,6,1,96,1,127,1,127,3,2,1,0,5,3,1,0,1,7,8,1,4,116,101,115,116,0,0,10,16,1,14,0,32,0,65,1,54,2,0,32,0,40,2,0,11]),t=new WebAssembly.Module(e),r=new WebAssembly.Instance(t,{});0!==r.exports.test(4)&&(n=!0)}catch(e){}return n}},{}],22:[function(e,t,r){var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function s(e){if(null==e)throw TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function a(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==n.join(""))return!1;var i={};if("abcdefghijklmnopqrst".split("").forEach(function(e){i[e]=e}),"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},i)).join(""))return!1;return!0}catch(e){return!1}}t.exports=a()?Object.assign:function(e,t){for(var r,a,l=s(e),u=1;ue.length)&&(t=e.length);for(var r=0,n=Array(t);r=0)}catch(e){}var _=1;"undefined"!=typeof navigator&&(_=Math.min(navigator.hardwareConcurrency||1,4));var b={tile:1024,concurrency:_,features:["js","wasm","ww"],idle:2e3,createCanvas:function(e,t){var r=document.createElement("canvas");return r.width=e,r.height=t,r}},A={filter:"mks2013",unsharpAmount:0,unsharpRadius:0,unsharpThreshold:0},T=!1,C=!1,S=!1,w=!1,x=!1;function R(){return{value:c(p),destroy:function(){if(this.value.terminate(),"undefined"!=typeof window){var e=window.URL||window.webkitURL||window.mozURL||window.msURL;e&&e.revokeObjectURL&&this.value.objectURL&&e.revokeObjectURL(this.value.objectURL)}}}}function k(e){if(!(this instanceof k))return new k(e);this.options=u({},b,e||{});var t="lk_".concat(this.options.concurrency);this.__limit=y[t]||f.limiter(this.options.concurrency),y[t]||(y[t]=this.__limit),this.features={js:!1,wasm:!1,cib:!1,ww:!1},this.__workersPool=null,this.__requested_features=[],this.__mathlib=null}k.prototype.init=function(){var t,r,n=this;if(this.__initPromise)return this.__initPromise;if("undefined"!=typeof ImageData&&"undefined"!=typeof Uint8ClampedArray)try{new ImageData(new Uint8ClampedArray(400),10,10),T=!0}catch(e){}"undefined"!=typeof ImageBitmap&&(ImageBitmap.prototype&&ImageBitmap.prototype.close?C=!0:this.debug("ImageBitmap does not support .close(), disabled"));var i=this.options.features.slice();if(i.indexOf("all")>=0&&(i=["cib","wasm","js","ww"]),this.__requested_features=i,this.__mathlib=new h(i),i.indexOf("ww")>=0&&"undefined"!=typeof window&&"Worker"in window)try{e("webworkify")(function(){}).terminate(),this.features.ww=!0;var o="wp_".concat(JSON.stringify(this.options));y[o]?this.__workersPool=y[o]:(this.__workersPool=new d(R,this.options.idle),y[o]=this.__workersPool)}catch(e){}var s=this.__mathlib.init().then(function(e){u(n.features,e.features)});t=C?f.cib_support(this.options.createCanvas).then(function(e){if(n.features.cib&&0>i.indexOf("cib")){n.debug("createImageBitmap() resize supported, but disabled by config");return}i.indexOf("cib")>=0&&(n.features.cib=e)}):Promise.resolve(!1),S=f.can_use_canvas(this.options.createCanvas),r=(r=C&&T&&-1!==i.indexOf("ww")?f.worker_offscreen_canvas_support():Promise.resolve(!1)).then(function(e){w=e});var a=f.cib_can_use_region().then(function(e){x=e});return this.__initPromise=Promise.all([s,t,r,a]).then(function(){return n}),this.__initPromise},k.prototype.__invokeResize=function(e,t){var r=this;return t.__mathCache=t.__mathCache||{},Promise.resolve().then(function(){return r.features.ww?new Promise(function(n,i){var o=r.__workersPool.acquire();t.cancelToken&&t.cancelToken.catch(function(e){return i(e)}),o.value.onmessage=function(e){o.release(),e.data.err?i(e.data.err):n(e.data)};var s=[];e.src&&s.push(e.src.buffer),e.srcBitmap&&s.push(e.srcBitmap),o.value.postMessage({opts:e,features:r.__requested_features,preload:{wasm_nodule:r.__mathlib.__}},s)}):{data:r.__mathlib.resizeAndUnsharp(e,t.__mathCache)}})},k.prototype.__extractTileData=function(e,t,r,n,i){if(this.features.ww&&w&&(f.isCanvas(t)||x))return this.debug("Create tile for OffscreenCanvas"),createImageBitmap(n.srcImageBitmap||t,e.x,e.y,e.width,e.height).then(function(e){return i.srcBitmap=e,i});if(f.isCanvas(t))return n.srcCtx||(n.srcCtx=t.getContext("2d")),this.debug("Get tile pixel data"),i.src=n.srcCtx.getImageData(e.x,e.y,e.width,e.height).data,i;this.debug("Draw tile imageBitmap/image to temporary canvas");var o=this.options.createCanvas(e.width,e.height),s=o.getContext("2d");return s.globalCompositeOperation="copy",s.drawImage(n.srcImageBitmap||t,e.x,e.y,e.width,e.height,0,0,e.width,e.height),this.debug("Get tile pixel data"),i.src=s.getImageData(0,0,e.width,e.height).data,o.width=o.height=0,i},k.prototype.__landTileData=function(e,t,r){var n;if(this.debug("Convert raw rgba tile result to ImageData"),t.bitmap)return r.toCtx.drawImage(t.bitmap,e.toX,e.toY),null;if(T)n=new ImageData(new Uint8ClampedArray(t.data),e.toWidth,e.toHeight);else if((n=r.toCtx.createImageData(e.toWidth,e.toHeight)).data.set)n.data.set(t.data);else for(var i=n.data.length-1;i>=0;i--)n.data[i]=t.data[i];return this.debug("Draw tile"),E?r.toCtx.putImageData(n,e.toX,e.toY,e.toInnerX-e.toX,e.toInnerY-e.toY,e.toInnerWidth+1e-5,e.toInnerHeight+1e-5):r.toCtx.putImageData(n,e.toX,e.toY,e.toInnerX-e.toX,e.toInnerY-e.toY,e.toInnerWidth,e.toInnerHeight),null},k.prototype.__tileAndResize=function(e,t,r){var n=this,i={srcCtx:null,srcImageBitmap:null,isImageBitmapReused:!1,toCtx:null},o=function(t){return n.__limit(function(){if(r.canceled)return r.cancelToken;var o={width:t.width,height:t.height,toWidth:t.toWidth,toHeight:t.toHeight,scaleX:t.scaleX,scaleY:t.scaleY,offsetX:t.offsetX,offsetY:t.offsetY,filter:r.filter,unsharpAmount:r.unsharpAmount,unsharpRadius:r.unsharpRadius,unsharpThreshold:r.unsharpThreshold};return n.debug("Invoke resize math"),Promise.resolve(o).then(function(o){return n.__extractTileData(t,e,r,i,o)}).then(function(e){return n.debug("Invoke resize math"),n.__invokeResize(e,r)}).then(function(e){return r.canceled?r.cancelToken:(i.srcImageData=null,n.__landTileData(t,e,i))})})};return Promise.resolve().then(function(){if(i.toCtx=t.getContext("2d"),f.isCanvas(e))return null;if(f.isImageBitmap(e))return i.srcImageBitmap=e,i.isImageBitmapReused=!0,null;if(f.isImage(e))return C?(n.debug("Decode image via createImageBitmap"),createImageBitmap(e).then(function(e){i.srcImageBitmap=e}).catch(function(e){return null})):null;throw Error('Pica: ".from" should be Image, Canvas or ImageBitmap')}).then(function(){if(r.canceled)return r.cancelToken;n.debug("Calculate tiles");var e=g({width:r.width,height:r.height,srcTileSize:n.options.tile,toWidth:r.toWidth,toHeight:r.toHeight,destTileBorder:r.__destTileBorder}).map(function(e){return o(e)});function s(e){e.srcImageBitmap&&(e.isImageBitmapReused||e.srcImageBitmap.close(),e.srcImageBitmap=null)}return n.debug("Process tiles"),Promise.all(e).then(function(){return n.debug("Finished!"),s(i),t},function(e){throw s(i),e})})},k.prototype.__processStages=function(e,t,r,i){var o,s,a=this;if(i.canceled)return i.cancelToken;var l=n(e.shift(),2),c=l[0],h=l[1],d=0===e.length;return o=d||0>v.q2f.indexOf(i.filter)?i.filter:"box"===i.filter?"box":"hamming",i=u({},i,{toWidth:c,toHeight:h,filter:o}),d||(s=this.options.createCanvas(c,h)),this.__tileAndResize(t,d?r:s,i).then(function(){return d?r:(i.width=c,i.height=h,a.__processStages(e,s,r,i))}).then(function(e){return s&&(s.width=s.height=0),e})},k.prototype.__resizeViaCreateImageBitmap=function(e,t,r){var n=this,i=t.getContext("2d");return this.debug("Resize via createImageBitmap()"),createImageBitmap(e,{resizeWidth:r.toWidth,resizeHeight:r.toHeight,resizeQuality:f.cib_quality_name(v.f2q[r.filter])}).then(function(e){if(r.canceled)return r.cancelToken;if(!r.unsharpAmount)return i.drawImage(e,0,0),e.close(),i=null,n.debug("Finished!"),t;n.debug("Unsharp result");var o=n.options.createCanvas(r.toWidth,r.toHeight),s=o.getContext("2d");s.drawImage(e,0,0),e.close();var a=s.getImageData(0,0,r.toWidth,r.toHeight);return n.__mathlib.unsharp_mask(a.data,r.toWidth,r.toHeight,r.unsharpAmount,r.unsharpRadius,r.unsharpThreshold),i.putImageData(a,0,0),o.width=o.height=0,a=s=o=i=null,n.debug("Finished!"),t})},k.prototype.resize=function(e,t,r){var n=this;this.debug("Start resize...");var i=u({},A);if(isNaN(r)?r&&(i=u(i,r)):i=u(i,{quality:r}),i.toWidth=t.width,i.toHeight=t.height,i.width=e.naturalWidth||e.width,i.height=e.naturalHeight||e.height,Object.prototype.hasOwnProperty.call(i,"quality")){if(i.quality<0||i.quality>3)throw Error("Pica: .quality should be [0..3], got ".concat(i.quality));i.filter=v.q2f[i.quality]}if(0===t.width||0===t.height)return Promise.reject(Error("Invalid output size: ".concat(t.width,"x").concat(t.height)));i.unsharpRadius>2&&(i.unsharpRadius=2),i.canceled=!1,i.cancelToken&&(i.cancelToken=i.cancelToken.then(function(e){throw i.canceled=!0,e},function(e){throw i.canceled=!0,e}));var o=3;return i.__destTileBorder=Math.ceil(Math.max(o,2.5*i.unsharpRadius|0)),this.init().then(function(){if(i.canceled)return i.cancelToken;if(n.features.cib){if(v.q2f.indexOf(i.filter)>=0)return n.__resizeViaCreateImageBitmap(e,t,i);n.debug("cib is enabled, but not supports provided filter, fallback to manual math")}if(!S){var r=Error("Pica: cannot use getImageData on canvas, make sure fingerprinting protection isn't enabled");throw r.code="ERR_GET_IMAGE_DATA",r}var o=m(i.width,i.height,i.toWidth,i.toHeight,n.options.tile,i.__destTileBorder);return n.__processStages(o,e,t,i)})},k.prototype.resizeBuffer=function(e){var t=this,r=u({},A,e);if(Object.prototype.hasOwnProperty.call(r,"quality")){if(r.quality<0||r.quality>3)throw Error("Pica: .quality should be [0..3], got ".concat(r.quality));r.filter=v.q2f[r.quality]}return this.init().then(function(){return t.__mathlib.resizeAndUnsharp(r)})},k.prototype.toBlob=function(e,t,r){return t=t||"image/png",new Promise(function(n){if(e.toBlob){e.toBlob(function(e){return n(e)},t,r);return}if(e.convertToBlob){n(e.convertToBlob({type:t,quality:r}));return}for(var i=atob(e.toDataURL(t,r).split(",")[1]),o=i.length,s=new Uint8Array(o),a=0;a0;r--)t="0"+t;return"0x"+t}function n(e){try{return unescape(encodeURIComponent(e))}catch(t){return e}}function i(e){try{return decodeURIComponent(escape(e))}catch(t){return e}}function o(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)}function s(e,r,n){this.input=e.subarray(r,n),this.start=r;var i=String.fromCharCode.apply(null,this.input.subarray(0,4));if("II*\0"!==i&&"MM\0*"!==i)throw t("invalid TIFF signature","EBADDATA");this.big_endian="M"===i[0]}s.prototype.each=function(e){this.aborted=!1;var t=this.read_uint32(4);for(this.ifds_to_read=[{id:0,offset:t}];this.ifds_to_read.length>0&&!this.aborted;){var r=this.ifds_to_read.shift();r.offset&&this.scan_ifd(r.id,r.offset,e)}},s.prototype.filter=function(e){var r={};r.ifd0={id:0,entries:[]},this.each(function(t){(!1!==e(t)||t.is_subifd_link)&&(t.is_subifd_link&&1!==t.count&&4!==t.format||(r["ifd"+t.ifd]||(r["ifd"+t.ifd]={id:t.ifd,entries:[]}),r["ifd"+t.ifd].entries.push(t)))}),delete r.ifd1;var n=8;Object.keys(r).forEach(function(e){n+=2,r[e].entries.forEach(function(e){n+=12+(e.data_length>4?2*Math.ceil(e.data_length/2):0)}),n+=4}),this.output=new Uint8Array(n),this.output[0]=this.output[1]=(this.big_endian?"M":"I").charCodeAt(0),this.write_uint16(2,42);var i=8,o=this;if(this.write_uint32(4,i),Object.keys(r).forEach(function(e){r[e].written_offset=i;var t=i,n=t+2+12*r[e].entries.length+4;i=n,o.write_uint16(t,r[e].entries.length),r[e].entries.sort(function(e,t){return e.tag-t.tag}).forEach(function(e,n){var s=t+2+12*n;o.write_uint16(s,e.tag),o.write_uint16(s+2,e.format),o.write_uint32(s+4,e.count),e.is_subifd_link?r["ifd"+e.tag]&&(r["ifd"+e.tag].link_offset=s+8):e.data_length<=4?o.output.set(o.input.subarray(e.data_offset-o.start,e.data_offset-o.start+4),s+8):(o.write_uint32(s+8,i),o.output.set(o.input.subarray(e.data_offset-o.start,e.data_offset-o.start+e.data_length),i),i+=2*Math.ceil(e.data_length/2))});var s=r["ifd"+(r[e].id+1)];s&&(s.link_offset=n-4)}),Object.keys(r).forEach(function(e){r[e].written_offset&&r[e].link_offset&&o.write_uint32(r[e].link_offset,r[e].written_offset)}),this.output.length!==i)throw t("internal error: incorrect buffer size allocated");return this.output},s.prototype.read_uint16=function(e){var r=this.input;if(e+2>r.length)throw t("unexpected EOF","EBADDATA");return this.big_endian?256*r[e]+r[e+1]:r[e]+256*r[e+1]},s.prototype.read_uint32=function(e){var r=this.input;if(e+4>r.length)throw t("unexpected EOF","EBADDATA");return this.big_endian?16777216*r[e]+65536*r[e+1]+256*r[e+2]+r[e+3]:r[e]+256*r[e+1]+65536*r[e+2]+16777216*r[e+3]},s.prototype.write_uint16=function(e,t){var r=this.output;this.big_endian?(r[e]=t>>>8&255,r[e+1]=255&t):(r[e]=255&t,r[e+1]=t>>>8&255)},s.prototype.write_uint32=function(e,t){var r=this.output;this.big_endian?(r[e]=t>>>24&255,r[e+1]=t>>>16&255,r[e+2]=t>>>8&255,r[e+3]=255&t):(r[e]=255&t,r[e+1]=t>>>8&255,r[e+2]=t>>>16&255,r[e+3]=t>>>24&255)},s.prototype.is_subifd_link=function(e,t){return 0===e&&34665===t||0===e&&34853===t||34665===e&&40965===t},s.prototype.exif_format_length=function(e){switch(e){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}},s.prototype.exif_format_read=function(e,t){var r;switch(e){case 1:case 2:return this.input[t];case 6:return(r=this.input[t])|(128&r)*33554430;case 3:return this.read_uint16(t);case 8:return(r=this.read_uint16(t))|(32768&r)*131070;case 4:return this.read_uint32(t);case 9:return 0|(r=this.read_uint32(t));default:return null}},s.prototype.scan_ifd=function(e,r,n){var o=this.read_uint16(r);r+=2;for(var s=0;sthis.input.length)throw t("unexpected EOF","EBADDATA");for(var p=[],m=d,g=0;g0&&(this.ifds_to_read.push({id:a,offset:p[0]}),f=!0),!1===n({is_big_endian:this.big_endian,ifd:e,tag:a,format:l,count:u,entry_offset:r+this.start,data_length:h,data_offset:d+this.start,value:p,is_subifd_link:f})){this.aborted=!0;return}r+=12}0===e&&this.ifds_to_read.push({id:1,offset:this.read_uint32(r)})},e.exports.is_jpeg=function(e){return e.length>=4&&255===e[0]&&216===e[1]&&255===e[2]},e.exports.jpeg_segments_each=function(n,i){if(!o(n))throw t("Invalid argument (jpeg_bin), Uint8Array expected","EINVAL");if("function"!=typeof i)throw t("Invalid argument (on_segment), Function expected","EINVAL");if(!e.exports.is_jpeg(n))throw t("Unknown file format","ENOTJPEG");for(var s=0,a=n.length,l=!1;;){if(s+1>=a)throw t("Unexpected EOF","EBADDATA");var u,c,h=n[s],d=n[s+1];if(255===h&&255===d)u=255,c=1;else if(255===h&&0!==d){if(c=2,208<=(u=d)&&u<=217||1===u);else{if(s+3>=a)throw t("Unexpected EOF","EBADDATA");if((c+=256*n[s+2]+n[s+3])<2)throw t("Invalid segment length","EBADDATA");if(s+c-1>=a)throw t("Unexpected EOF","EBADDATA")}l&&(u>=208&&u<=215||(l=!1)),218===u&&(l=!0)}else if(l)for(var f=s+1;;f++){if(f>=a)throw t("Unexpected EOF","EBADDATA");if(255===n[f]){if(f+1>=a)throw t("Unexpected EOF","EBADDATA");if(0!==n[f+1]){u=0,c=f-s;break}}}else throw t("Unexpected byte at segment start: "+r(h)+" (offset "+r(s)+")","EBADDATA");if(!1===i({code:u,offset:s,length:c})||217===u)break;s+=c}},e.exports.jpeg_segments_filter=function(r,n){if(!o(r))throw t("Invalid argument (jpeg_bin), Uint8Array expected","EINVAL");if("function"!=typeof n)throw t("Invalid argument (on_segment), Function expected","EINVAL");var i=[],s=0;e.exports.jpeg_segments_each(r,function(e){var t=n(e);if(o(t))i.push({data:t}),s+=t.length;else if(Array.isArray(t))t.filter(o).forEach(function(e){i.push({data:e}),s+=e.length});else if(!1!==t){var r={start:e.offset,end:e.offset+e.length};i.length>0&&i[i.length-1].end===r.start?i[i.length-1].end=r.end:i.push(r),s+=e.length}});var a=new Uint8Array(s),l=0;return i.forEach(function(e){var t=e.data||r.subarray(e.start,e.end);a.set(t,l),l+=t.length}),a},e.exports.jpeg_exif_tags_each=function(r,n){if(!o(r))throw t("Invalid argument (jpeg_bin), Uint8Array expected","EINVAL");if("function"!=typeof n)throw t("Invalid argument (on_exif_entry), Function expected","EINVAL");e.exports.jpeg_segments_each(r,function(e){return 218!==e.code&&(225===e.code&&e.length>=10&&69===r[e.offset+4]&&120===r[e.offset+5]&&105===r[e.offset+6]&&102===r[e.offset+7]&&0===r[e.offset+8]&&0===r[e.offset+9]?(new s(r,e.offset+10,e.offset+e.length).each(n),!1):void 0)})},e.exports.jpeg_exif_tags_filter=function(r,n){if(!o(r))throw t("Invalid argument (jpeg_bin), Uint8Array expected","EINVAL");if("function"!=typeof n)throw t("Invalid argument (on_exif_entry), Function expected","EINVAL");var i=!1;return e.exports.jpeg_segments_filter(r,function(e){if(!i&&(218===e.code&&(i=!0),225===e.code&&e.length>=10&&69===r[e.offset+4]&&120===r[e.offset+5]&&105===r[e.offset+6]&&102===r[e.offset+7]&&0===r[e.offset+8]&&0===r[e.offset+9])){var t=new s(r,e.offset+10,e.offset+e.length).filter(n);if(!t)return!1;var o=new Uint8Array(10);return o.set(r.slice(e.offset,e.offset+10)),o[2]=t.length+8>>>8&255,o[3]=t.length+8&255,i=!0,[o,t]}})},e.exports.jpeg_add_comment=function(t,r){var i=!1,o=0;return e.exports.jpeg_segments_filter(t,function(e){if((1!=++o||216!==e.code)&&(2!==o||224!==e.code)&&!i){r=n(r);var s=new Uint8Array(5+r.length),a=0;return s[a++]=255,s[a++]=254,s[a++]=r.length+3>>>8&255,s[a++]=r.length+3&255,r.split("").forEach(function(e){s[a++]=255&e.charCodeAt(0)}),s[a++]=0,i=!0,[s,t.subarray(e.offset,e.offset+e.length)]}})}}(u);var c=u.exports;function h(e){return this._getUint8Array(e.blob).then(function(t){if(e.is_jpeg=c.is_jpeg(t),!e.is_jpeg)return Promise.resolve(e);e.orig_blob=e.blob;try{var r,n;if(c.jpeg_exif_tags_each(t,function(t){if(0===t.ifd&&274===t.tag&&Array.isArray(t.value))return e.orientation=t.value[0]||1,r=t.is_big_endian,n=t.data_offset,!1}),n){var i=new Uint8Array(r?[0,1]:[1,0]);e.blob=new Blob([t.slice(0,n),i,t.slice(n+2)],{type:"image/jpeg"})}}catch(e){}return e})}function d(e){if(!e.is_jpeg)return Promise.resolve(e);var t,r=e.orientation-1;if(!r)return Promise.resolve(e);var n=(t=4&r?this.pica.options.createCanvas(e.out_canvas.height,e.out_canvas.width):this.pica.options.createCanvas(e.out_canvas.width,e.out_canvas.height)).getContext("2d");return n.save(),1&r&&n.transform(-1,0,0,1,t.width,0),2&r&&n.transform(-1,0,0,-1,t.width,t.height),4&r&&n.transform(0,1,1,0,0,0),n.drawImage(e.out_canvas,0,0),n.restore(),e.out_canvas.width=e.out_canvas.height=0,e.out_canvas=t,Promise.resolve(e)}function f(e){return e.is_jpeg?Promise.all([this._getUint8Array(e.blob),this._getUint8Array(e.out_blob)]).then(function(t){var r=t[0],n=t[1];if(!c.is_jpeg(r))return Promise.resolve(e);var i=[];return c.jpeg_segments_each(r,function(e){if(218===e.code)return!1;i.push(e)}),i=i.filter(function(e){return 226!==e.code&&(e.code>=224&&e.code<240||254===e.code)}).map(function(e){return r.slice(e.offset,e.offset+e.length)}),e.out_blob=new Blob([n.slice(0,2)].concat(i).concat([n.slice(20)]),{type:"image/jpeg"}),e}):Promise.resolve(e)}function p(e){e.before("_blob_to_image",h),e.after("_transform",d),e.after("_create_blob",f)}l.jpeg_patch_exif=h,l.jpeg_rotate_canvas=d,l.jpeg_attach_orig_segments=f,l.assign=p;var m=i,g=a.exports;function v(e){if(!(this instanceof v))return new v(e);e=e||{},this.pica=e.pica||g({}),this.initialized=!1,this.utils=m}v.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},v.prototype.init=function(){this.use(l.assign)},v.prototype.toBlob=function(e,t){var r={blob:e,opts:m.assign({max:1/0},t)};return this.initialized||(this.init(),this.initialized=!0),Promise.resolve(r).then(this._blob_to_image).then(this._calculate_size).then(this._transform).then(this._cleanup).then(this._create_blob).then(function(e){return e.out_canvas.width=e.out_canvas.height=0,e.out_blob})},v.prototype.toCanvas=function(e,t){var r={blob:e,opts:m.assign({max:1/0},t)};return this.initialized||(this.init(),this.initialized=!0),Promise.resolve(r).then(this._blob_to_image).then(this._calculate_size).then(this._transform).then(this._cleanup).then(function(e){return e.out_canvas})},v.prototype.before=function(e,t){if(!this[e])throw Error('Method "'+e+'" does not exist');if("function"!=typeof t)throw Error('Invalid argument "fn", function expected');var r=this[e],n=this;return this[e]=function(e){return t.call(n,e).then(function(e){return r.call(n,e)})},this},v.prototype.after=function(e,t){if(!this[e])throw Error('Method "'+e+'" does not exist');if("function"!=typeof t)throw Error('Invalid argument "fn", function expected');var r=this[e],n=this;return this[e]=function(e){return r.call(n,e).then(function(e){return t.call(n,e)})},this},v.prototype._blob_to_image=function(e){var t=window.URL||window.webkitURL||window.mozURL||window.msURL;return e.image=document.createElement("img"),e.image_url=t.createObjectURL(e.blob),e.image.src=e.image_url,new Promise(function(t,r){e.image.onerror=function(){r(Error("ImageBlobReduce: failed to create Image() from blob"))},e.image.onload=function(){t(e)}})},v.prototype._calculate_size=function(e){var t=e.opts.max/Math.max(e.image.width,e.image.height);return t>1&&(t=1),e.transform_width=Math.max(Math.round(e.image.width*t),1),e.transform_height=Math.max(Math.round(e.image.height*t),1),e.scale_factor=t,Promise.resolve(e)},v.prototype._transform=function(e){e.out_canvas=this.pica.options.createCanvas(e.transform_width,e.transform_height),e.transform_width=null,e.transform_height=null;var t={alpha:"image/png"===e.blob.type};return this.utils.assign(t,this.utils.pick_pica_resize_options(e.opts)),this.pica.resize(e.image,e.out_canvas,t).then(function(){return e})},v.prototype._cleanup=function(e){e.image.src="",e.image=null;var t=window.URL||window.webkitURL||window.mozURL||window.msURL;return t.revokeObjectURL&&t.revokeObjectURL(e.image_url),e.image_url=null,Promise.resolve(e)},v.prototype._create_blob=function(e){return this.pica.toBlob(e.out_canvas,e.blob.type).then(function(t){return e.out_blob=t,e})},v.prototype._getUint8Array=function(e){return e.arrayBuffer?e.arrayBuffer().then(function(e){return new Uint8Array(e)}):new Promise(function(t,r){var n=new FileReader;n.readAsArrayBuffer(e),n.onload=function(){t(new Uint8Array(n.result))},n.onerror=function(){r(Error("ImageBlobReduce: failed to load data from input blob")),n.abort()},n.onabort=function(){r(Error("ImageBlobReduce: failed to load data from input blob (aborted)"))}})},v.pica=g;var y=v},3643:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(40772);function i(e){let t;if("string"!=typeof e)throw TypeError(`Expected a \`string\`, got \`${typeof e}\``);if(0===(e=e.trim()).length||!0!==n.XMLValidator.validate(e))return!1;let r=new n.XMLParser;try{t=r.parse(e)}catch{return!1}return!!(t&&Object.keys(t).some(e=>"svg"===e.toLowerCase()))}},41149:(e,t,r)=>{"use strict";r.d(t,{i:()=>n});let n=()=>{let e=!0;return(t,r)=>{if(e){e=!1;try{t()}finally{e=!0}}else void 0!==r&&r()}}},4564:(e,t,r)=>{"use strict";let n;r.d(t,{EM:()=>i,MZ:()=>l,P:()=>h,YG:()=>d,nJ:()=>f,wk:()=>u});/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */let i=e=>(t,r)=>{void 0!==r?r.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)};var o=r(20934);/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */let s={attribute:!0,type:String,converter:o.W3,reflect:!1,hasChanged:o.Ec},a=(e=s,t,r)=>{let{kind:n,metadata:i}=r,o=globalThis.litPropertyMetadata.get(i);if(void 0===o&&globalThis.litPropertyMetadata.set(i,o=new Map),o.set(r.name,e),"accessor"===n){let{name:n}=r;return{set(r){let i=t.get.call(this);t.set.call(this,r),this.requestUpdate(n,i,e)},init(t){return void 0!==t&&this.P(n,void 0,e),t}}}if("setter"===n){let{name:n}=r;return function(r){let i=this[n];t.call(this,r),this.requestUpdate(n,i,e)}}throw Error("Unsupported decorator location: "+n)};function l(e){return(t,r)=>"object"==typeof r?a(e,t,r):((e,t,r)=>{let n=t.hasOwnProperty(r);return t.constructor.createProperty(r,n?{...e,wrapped:!0}:e),n?Object.getOwnPropertyDescriptor(t,r):void 0})(e,t,r)}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */function u(e){return l({...e,state:!0,attribute:!1})}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */let c=(e,t,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,r),r);/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */function h(e,t){return(r,n,i)=>{let o=t=>t.renderRoot?.querySelector(e)??null;if(t){let{get:e,set:t}="object"==typeof n?r:i??(()=>{let e=Symbol();return{get(){return this[e]},set(t){this[e]=t}}})();return c(r,n,{get(){let r=e.call(this);return void 0===r&&(null!==(r=o(this))||this.hasUpdated)&&t.call(this,r),r}})}return c(r,n,{get(){return o(this)}})}}function d(e){return(t,r)=>c(t,r,{get(){return(this.renderRoot??(n??=document.createDocumentFragment())).querySelectorAll(e)}})}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */function f(e){return(t,r)=>c(t,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(e)??null}})}},48577:(e,t,r)=>{"use strict";r.d(t,{P:()=>a});var n=r(89167),i=r(24465),o=r(97201);/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */let s=e=>(0,o.ps)(e)?e._$litType$.h:e.strings,a=(0,i.u$)(class extends i.WL{constructor(e){super(e),this.et=new WeakMap}render(e){return[e]}update(e,[t]){let r=(0,o.qb)(this.it)?s(this.it):null,i=(0,o.qb)(t)?s(t):null;if(null!==r&&(null===i||r!==i)){let t=(0,o.cN)(e).pop(),i=this.et.get(r);if(void 0===i){let e=document.createDocumentFragment();(i=(0,n.XX)(n.s6,e)).setConnected(!1),this.et.set(r,i)}(0,o.mY)(i,[t]),(0,o.Dx)(i,void 0,t)}if(null!==i){if(null===r||r!==i){let t=this.et.get(i);if(void 0!==t){let r=(0,o.cN)(t).pop();(0,o.Jz)(e),(0,o.Dx)(e,void 0,r),(0,o.mY)(e,[r])}}this.it=t}else this.it=void 0;return this.render(t)}})},83951:(e,t,r)=>{"use strict";r.d(t,{H:()=>o});var n=r(89167),i=r(24465);/** * @license * Copyright 2018 Google LLC * SPDX-License-Identifier: BSD-3-Clause */let o=(0,i.u$)(class extends i.WL{constructor(e){if(super(e),e.type!==i.OA.ATTRIBUTE||"class"!==e.name||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){if(void 0===this.st){for(let r in this.st=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(e=>""!==e))),t)t[r]&&!this.nt?.has(r)&&this.st.add(r);return this.render(t)}let r=e.element.classList;for(let e of this.st)e in t||(r.remove(e),this.st.delete(e));for(let e in t){let n=!!t[e];n===this.st.has(e)||this.nt?.has(e)||(n?(r.add(e),this.st.add(e)):(r.remove(e),this.st.delete(e)))}return n.c0}})},91705:(e,t,r)=>{"use strict";r.d(t,{a:()=>s});var n=r(89167),i=r(24465);/** * @license * Copyright 2018 Google LLC * SPDX-License-Identifier: BSD-3-Clause */let o={},s=(0,i.u$)(class extends i.WL{constructor(){super(...arguments),this.ot=o}render(e,t){return t()}update(e,[t,r]){if(Array.isArray(t)){if(Array.isArray(this.ot)&&this.ot.length===t.length&&t.every((e,t)=>e===this.ot[t]))return n.c0}else if(this.ot===t)return n.c0;return this.ot=Array.isArray(t)?Array.from(t):t,this.render(t,r)}})},9013:(e,t,r)=>{"use strict";r.d(t,{J:()=>i});var n=r(89167);/** * @license * Copyright 2018 Google LLC * SPDX-License-Identifier: BSD-3-Clause */let i=e=>e??n.s6},71323:(e,t,r)=>{"use strict";r.d(t,{D:()=>s});var n=r(89167),i=r(24465),o=r(97201);/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause */let s=(0,i.u$)(class extends i.WL{constructor(){super(...arguments),this.key=n.s6}render(e,t){return this.key=e,t}update(e,[t,r]){return t!==this.key&&((0,o.mY)(e),this.key=t),r}})},19155:(e,t,r)=>{"use strict";r.d(t,{V:()=>s});var n=r(89167),i=r(24465),o=r(97201);/** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: BSD-3-Clause */let s=(0,i.u$)(class extends i.WL{constructor(e){if(super(e),e.type!==i.OA.PROPERTY&&e.type!==i.OA.ATTRIBUTE&&e.type!==i.OA.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!(0,o.Rt)(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t===n.c0||t===n.s6)return t;let r=e.element,s=e.name;if(e.type===i.OA.PROPERTY){if(t===r[s])return n.c0}else if(e.type===i.OA.BOOLEAN_ATTRIBUTE){if(!!t===r.hasAttribute(s))return n.c0}else if(e.type===i.OA.ATTRIBUTE&&r.getAttribute(s)===t+"")return n.c0;return(0,o.mY)(e),t}})},45601:(e,t,r)=>{"use strict";r.d(t,{_:()=>s,K:()=>u});var n=r(89167),i=r(55572),o=r(24465);/** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: BSD-3-Clause */let s=()=>new a;class a{}let l=new WeakMap,u=(0,o.u$)(class extends i.Kq{render(e){return n.s6}update(e,[t]){let r=t!==this.Y;return r&&void 0!==this.Y&&this.rt(void 0),(r||this.lt!==this.ct)&&(this.Y=t,this.ht=e.options?.host,this.rt(this.ct=e.element)),n.s6}rt(e){if(this.isConnected||(e=void 0),"function"==typeof this.Y){let t=this.ht??globalThis,r=l.get(t);void 0===r&&(r=new WeakMap,l.set(t,r)),void 0!==r.get(this.Y)&&this.Y.call(this.ht,void 0),r.set(this.Y,e),void 0!==e&&this.Y.call(this.ht,e)}else this.Y.value=e}get lt(){return"function"==typeof this.Y?l.get(this.ht??globalThis)?.get(this.Y):this.Y?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}})},22805:(e,t,r)=>{"use strict";r.d(t,{u:()=>a});var n=r(89167),i=r(24465),o=r(97201);/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */let s=(e,t,r)=>{let n=new Map;for(let i=t;i<=r;i++)n.set(e[i],i);return n},a=(0,i.u$)(class extends i.WL{constructor(e){if(super(e),e.type!==i.OA.CHILD)throw Error("repeat() can only be used in text expressions")}dt(e,t,r){let n;void 0===r?r=t:void 0!==t&&(n=t);let i=[],o=[],s=0;for(let t of e)i[s]=n?n(t,s):s,o[s]=r(t,s),s++;return{values:o,keys:i}}render(e,t,r){return this.dt(e,t,r).values}update(e,[t,r,i]){let a=(0,o.cN)(e),{values:l,keys:u}=this.dt(t,r,i);if(!Array.isArray(a))return this.ut=u,l;let c=this.ut??=[],h=[],d,f,p=0,m=a.length-1,g=0,v=l.length-1;for(;p<=m&&g<=v;)if(null===a[p])p++;else if(null===a[m])m--;else if(c[p]===u[g])h[g]=(0,o.lx)(a[p],l[g]),p++,g++;else if(c[m]===u[v])h[v]=(0,o.lx)(a[m],l[v]),m--,v--;else if(c[p]===u[v])h[v]=(0,o.lx)(a[p],l[v]),(0,o.Dx)(e,h[v+1],a[p]),p++,v--;else if(c[m]===u[g])h[g]=(0,o.lx)(a[m],l[g]),(0,o.Dx)(e,a[p],a[m]),m--,g++;else if(void 0===d&&(d=s(u,g,v),f=s(c,p,m)),d.has(c[p])){if(d.has(c[m])){let t=f.get(u[g]),r=void 0!==t?a[t]:null;if(null===r){let t=(0,o.Dx)(e,a[p]);(0,o.lx)(t,l[g]),h[g]=t}else h[g]=(0,o.lx)(r,l[g]),(0,o.Dx)(e,a[p],r),a[t]=null;g++}else(0,o.KO)(a[m]),m--}else(0,o.KO)(a[p]),p++;for(;g<=v;){let t=(0,o.Dx)(e,h[v+1]);(0,o.lx)(t,l[g]),h[g++]=t}for(;p<=m;){let e=a[p++];null!==e&&(0,o.KO)(e)}return this.ut=u,(0,o.mY)(e,h),n.c0}})},54719:(e,t,r)=>{"use strict";r.d(t,{W:()=>a});var n=r(89167),i=r(24465);/** * @license * Copyright 2018 Google LLC * SPDX-License-Identifier: BSD-3-Clause */let o="important",s=" !"+o,a=(0,i.u$)(class extends i.WL{constructor(e){if(super(e),e.type!==i.OA.ATTRIBUTE||"style"!==e.name||e.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce((t,r)=>{let n=e[r];return null==n?t:t+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`},"")}update(e,[t]){let{style:r}=e.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(t)),this.render(t);for(let e of this.ft)null==t[e]&&(this.ft.delete(e),e.includes("-")?r.removeProperty(e):r[e]=null);for(let e in t){let n=t[e];if(null!=n){this.ft.add(e);let t="string"==typeof n&&n.endsWith(s);e.includes("-")||t?r.setProperty(e,t?n.slice(0,-11):n,t?o:""):r[e]=n}}return n.c0}})},50334:(e,t,r)=>{"use strict";r.d(t,{T:()=>a});var n=r(24465),i=r(89167);/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */class o extends n.WL{constructor(e){if(super(e),this.it=i.s6,e.type!==n.OA.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===i.s6||null==e)return this._t=void 0,this.it=e;if(e===i.c0)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}o.directiveName="unsafeHTML",o.resultType=1,(0,n.u$)(o);/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */class s extends o{}s.directiveName="unsafeSVG",s.resultType=2;let a=(0,n.u$)(s)},91449:(e,t,r)=>{"use strict";r.d(t,{BO:()=>n.BO,WF:()=>o,AH:()=>n.AH,qy:()=>i.qy,s6:()=>i.s6,XX:()=>i.XX,JW:()=>i.JW,iz:()=>n.iz});var n=r(20934),i=r(89167);/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */class o extends n.mN{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=(0,i.XX)(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return i.c0}}o._$litElement$=!0,o.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:o});let s=globalThis.litElementPolyfillSupport;s?.({LitElement:o}),(globalThis.litElementVersions??=[]).push("4.0.6")},55572:(e,t,r)=>{"use strict";r.d(t,{Kq:()=>h});var n=r(97201),i=r(24465);/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */let o=(e,t)=>{let r=e._$AN;if(void 0===r)return!1;for(let e of r)e._$AO?.(t,!1),o(e,t);return!0},s=e=>{let t,r;do{if(void 0===(t=e._$AM))break;(r=t._$AN).delete(e),e=t}while(0===r?.size)},a=e=>{for(let t;t=e._$AM;e=t){let r=t._$AN;if(void 0===r)t._$AN=r=new Set;else if(r.has(e))break;r.add(e),c(t)}};function l(e){void 0!==this._$AN?(s(this),this._$AM=e,a(this)):this._$AM=e}function u(e,t=!1,r=0){let n=this._$AH,i=this._$AN;if(void 0!==i&&0!==i.size){if(t){if(Array.isArray(n))for(let e=r;e{e.type==i.OA.CHILD&&(e._$AP??=u,e._$AQ??=l)};class h extends i.WL{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,r){super._$AT(e,t,r),a(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(o(this,e),s(this))}setValue(e){if((0,n.Rt)(this._$Ct))this._$Ct._$AI(e,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}},97201:(e,t,r)=>{"use strict";r.d(t,{Dx:()=>l,Jz:()=>p,KO:()=>f,Rt:()=>s,cN:()=>d,lx:()=>u,mY:()=>h,ps:()=>o,qb:()=>i});/** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: BSD-3-Clause */let{I:n}=r(89167).ge,i=(e,t)=>void 0===t?void 0!==e?._$litType$:e?._$litType$===t,o=e=>null!=e?._$litType$?.h,s=e=>void 0===e.strings,a=()=>document.createComment(""),l=(e,t,r)=>{let i=e._$AA.parentNode,o=void 0===t?e._$AB:t._$AA;if(void 0===r)r=new n(i.insertBefore(a(),o),i.insertBefore(a(),o),e,e.options);else{let t=r._$AB.nextSibling,n=r._$AM,s=n!==e;if(s){let t;r._$AQ?.(e),r._$AM=e,void 0!==r._$AP&&(t=e._$AU)!==n._$AU&&r._$AP(t)}if(t!==o||s){let e=r._$AA;for(;e!==t;){let t=e.nextSibling;i.insertBefore(e,o),e=t}}}return r},u=(e,t,r=e)=>(e._$AI(t,r),e),c={},h=(e,t=c)=>e._$AH=t,d=e=>e._$AH,f=e=>{e._$AP?.(!1,!0);let t=e._$AA,r=e._$AB.nextSibling;for(;t!==r;){let e=t.nextSibling;t.remove(),t=e}},p=e=>{e._$AR()}},24465:(e,t,r)=>{"use strict";r.d(t,{OA:()=>n,WL:()=>o,u$:()=>i});/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */let n={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},i=e=>(...t)=>({_$litDirective$:e,values:t});class o{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,r){this._$Ct=e,this._$AM=t,this._$Ci=r}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}},53010:(e,t,r)=>{"use strict";r.d(t,{S:()=>n});/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause */let n=(e,t,r)=>{for(let r of t)if(r[0]===e)return(0,r[1])();return r?.()}},93143:(e,t,r)=>{"use strict";/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause */function*n(e,t){let r="function"==typeof t;if(void 0!==e){let n=-1;for(let i of e)n>-1&&(yield r?t(n):t),n++,yield i}}r.d(t,{f:()=>n})},94423:(e,t,r)=>{"use strict";/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause */function n(e,t,r){return e?t(e):r?.(e)}r.d(t,{z:()=>n})},89167:(e,t,r)=>{"use strict";r.d(t,{JW:()=>S,XX:()=>H,c0:()=>w,ge:()=>K,qy:()=>C,s6:()=>x});/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */let n=globalThis,i=n.trustedTypes,o=i?i.createPolicy("lit-html",{createHTML:e=>e}):void 0,s="$lit$",a=`lit$${Math.random().toFixed(9).slice(2)}$`,l="?"+a,u=`<${l}>`,c=document,h=()=>c.createComment(""),d=e=>null===e||"object"!=typeof e&&"function"!=typeof e,f=Array.isArray,p=e=>f(e)||"function"==typeof e?.[Symbol.iterator],m="[ \n\f\r]",g=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,y=/>/g,E=RegExp(`>|${m}(?:([^\\s"'>=/]+)(${m}*=${m}*(?:[^ \f\r"'\`<>=]|("|')|))|$)`,"g"),_=/'/g,b=/"/g,A=/^(?:script|style|textarea|title)$/i,T=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),C=T(1),S=T(2),w=Symbol.for("lit-noChange"),x=Symbol.for("lit-nothing"),R=new WeakMap,k=c.createTreeWalker(c,129);function L(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==o?o.createHTML(t):t}let I=(e,t)=>{let r=e.length-1,n=[],i,o=2===t?"":"",l=g;for(let t=0;t"===h[0]?(l=i??g,d=-1):void 0===h[1]?d=-2:(d=l.lastIndex-h[2].length,c=h[1],l=void 0===h[3]?E:'"'===h[3]?b:_):l===b||l===_?l=E:l===v||l===y?l=g:(l=E,i=void 0);let p=l===E&&e[t+1].startsWith("/>")?" ":"";o+=l===g?r+u:d>=0?(n.push(c),r.slice(0,d)+s+r.slice(d)+a+p):r+a+(-2===d?t:p)}return[L(e,o+(e[r]||"")+(2===t?"":"")),n]};class O{constructor({strings:e,_$litType$:t},r){let n;this.parts=[];let o=0,u=0,c=e.length-1,d=this.parts,[f,p]=I(e,t);if(this.el=O.createElement(f,r),k.currentNode=this.el.content,2===t){let e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(n=k.nextNode())&&d.length0){n.textContent=i?i.emptyScript:"";for(let r=0;r2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=x}_$AI(e,t=this,r,n){let i=this.strings,o=!1;if(void 0===i)(o=!d(e=D(this,e,t,0))||e!==this._$AH&&e!==w)&&(this._$AH=e);else{let n,s;let a=e;for(e=i[0],n=0;n{let n=r?.renderBefore??t,i=n._$litPart$;if(void 0===i){let e=r?.renderBefore??null;n._$litPart$=i=new P(t.insertBefore(h(),e),e,void 0,r??{})}return i._$AI(e),i}},3874:(e,t,r)=>{"use strict";r.d(t,{qy:()=>c,eu:()=>a,Bk:()=>s});var n=r(89167);/** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: BSD-3-Clause */let i=Symbol.for(""),o=e=>{if(e?.r===i)return e?._$litStatic$},s=e=>({_$litStatic$:e,r:i}),a=(e,...t)=>({_$litStatic$:t.reduce((t,r,n)=>t+(e=>{if(void 0!==e._$litStatic$)return e._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${e}. Use 'unsafeStatic' to pass non-literal values, but take care to ensure page security.`)})(r)+e[n+1],e[0]),r:i}),l=new Map,u=e=>(t,...r)=>{let n,i;let s=r.length,a=[],u=[],c,h=0,d=!1;for(;h{"use strict";r.d(t,{A:()=>f});var n=r(9169);let i=function(){this.__data__=new n.A,this.size=0},o=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},s=function(e){return this.__data__.get(e)},a=function(e){return this.__data__.has(e)};var l=r(71331),u=r(81910),c=200;let h=function(e,t){var r=this.__data__;if(r instanceof n.A){var i=r.__data__;if(!l.A||i.length{"use strict";r.d(t,{A:()=>n});let n=r(25801).A.Uint8Array},47933:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});let n=function(e,t){for(var r=-1,n=Array(e);++r{"use strict";r.d(t,{A:()=>s});var n=r(91908),i=r(196),o=Object.prototype.hasOwnProperty;let s=function(e,t,r){var s=e[t];o.call(e,t)&&(0,i.A)(s,r)&&(void 0!==r||t in e)||(0,n.A)(e,t,r)}},91908:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(66831);let i=function(e,t,r){"__proto__"==t&&n.A?(0,n.A)(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},14368:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=function(e){return function(e,t,r){for(var n=-1,i=Object(e),o=r(e),s=o.length;s--;){var a=o[++n];if(!1===t(i[a],a,i))break}return e}}()},62186:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(50890),i=r(40089);let o=function(e,t){t=(0,n.A)(t,e);for(var r=0,o=t.length;null!=e&&r{"use strict";r.d(t,{A:()=>o});var n=r(55940),i=r(74637);let o=function(e,t,r){var o=t(e);return(0,i.A)(e)?o:(0,n.A)(o,r(e))}},19834:(e,t,r)=>{"use strict";r.d(t,{A:()=>W});var n=r(98300),i=r(70488);let o=function(e,t){for(var r=-1,n=null==e?0:e.length;++rd))return!1;var p=c.get(e),m=c.get(t);if(p&&m)return p==t&&m==e;var g=-1,v=!0,y=r&l?new i.A:void 0;for(c.set(e,t),c.set(t,e);++g{"use strict";r.d(t,{A:()=>x});var n=r(98300),i=r(19834),o=1,s=2;let a=function(e,t,r,a){var l=r.length,u=l,c=!a;if(null==e)return!u;for(e=Object(e);l--;){var h=r[l];if(c&&h[2]?h[1]!==e[h[0]]:!(h[0]in e))return!1}for(;++l{"use strict";r.d(t,{A:()=>c});var n=r(62186),i=r(71199),o=r(50890),s=r(15405),a=r(40345),l=r(40089);let u=function(e,t,r,n){if(!(0,a.A)(e))return e;t=(0,o.A)(t,e);for(var u=-1,c=t.length,h=c-1,d=e;null!=d&&++u{"use strict";r.d(t,{A:()=>n});let n=function(e){return function(t){return null==t?void 0:t[e]}}},3644:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=function(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n{"use strict";r.d(t,{A:()=>h});var n=r(39229),i=r(77184),o=r(74637),s=r(89990),a=1/0,l=n.A?n.A.prototype:void 0,u=l?l.toString:void 0;function c(e){if("string"==typeof e)return e;if((0,o.A)(e))return(0,i.A)(e,c)+"";if((0,s.A)(e))return u?u.call(e):"";var t=e+"";return"0"==t&&1/e==-a?"-0":t}let h=c},37267:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(50890);let i=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};var o=r(62186),s=r(3644);let a=function(e,t){return t.length<2?e:(0,o.A)(e,(0,s.A)(t,0,-1))};var l=r(40089);let u=function(e,t){return t=(0,n.A)(t,e),null==(e=a(e,t))||delete e[l.A(i(t))]}},50890:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(74637),i=r(47406),o=r(81910),s="Expected a function";function a(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError(s);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(a.Cache||o.A),r}a.Cache=o.A;let l=a;var u=500,c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,h=/\\(\\)?/g;let d=function(e){var t=l(e,function(e){return r.size===u&&r.clear(),e}),r=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(c,function(e,r,n,i){t.push(n?i.replace(h,"$1"):r||e)}),t});var f=r(16402);let p=function(e,t){return(0,n.A)(e)?e:(0,i.A)(e,t)?[e]:d((0,f.A)(e))}},91401:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(22560);let i=function(e){var t=new e.constructor(e.byteLength);return new n.A(t).set(new n.A(e)),t}},61318:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(25801),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof module&&module&&!module.nodeType&&module,s=o&&o.exports===i?n.A.Buffer:void 0,a=s?s.allocUnsafe:void 0;let l=function(e,t){if(t)return e.slice();var r=e.length,n=a?a(r):new e.constructor(r);return e.copy(n),n}},85997:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(91401);let i=function(e,t){var r=t?(0,n.A)(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},47827:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r{"use strict";r.d(t,{A:()=>o});var n=r(71199),i=r(91908);let o=function(e,t,r,o){var s=!r;r||(r={});for(var a=-1,l=t.length;++a{"use strict";r.d(t,{A:()=>d});let n=function(e,t,r,n){for(var i=-1,o=null==e?0:e.length;++i{"use strict";r.d(t,{A:()=>a});var n=r(11443);let i=function(e){return(null==e?0:e.length)?(0,n.A)(e,1):[]};var o=r(21185),s=r(18198);let a=function(e){return(0,s.A)((0,o.A)(e,void 0,i),e+"")}},52070:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(11795),i=r(28661),o=r(20601);let s=function(e){return(0,n.A)(e,o.A,i.A)}},79089:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(11795),i=r(45827),o=r(71731);let s=function(e){return(0,n.A)(e,o.A,i.A)}},13875:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12123).A)(Object.getPrototypeOf,Object)},28661:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let n=function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r{"use strict";r.d(t,{A:()=>a});var n=r(55940),i=r(13875),o=r(28661),s=r(93229);let a=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)(0,n.A)(t,(0,o.A)(e)),e=(0,i.A)(e);return t}:s.A},77518:(e,t,r)=>{"use strict";r.d(t,{A:()=>C});var n=r(80326),i=r(25801);let o=(0,n.A)(i.A,"DataView");var s=r(71331);let a=(0,n.A)(i.A,"Promise"),l=(0,n.A)(i.A,"Set"),u=(0,n.A)(i.A,"WeakMap");var c=r(31835),h=r(7837),d="[object Map]",f="[object Object]",p="[object Promise]",m="[object Set]",g="[object WeakMap]",v="[object DataView]",y=(0,h.A)(o),E=(0,h.A)(s.A),_=(0,h.A)(a),b=(0,h.A)(l),A=(0,h.A)(u),T=c.A;(o&&T(new o(new ArrayBuffer(1)))!=v||s.A&&T(new s.A)!=d||a&&T(a.resolve())!=p||l&&T(new l)!=m||u&&T(new u)!=g)&&(T=function(e){var t=(0,c.A)(e),r=t==f?e.constructor:void 0,n=r?(0,h.A)(r):"";if(n)switch(n){case y:return v;case E:return d;case _:return p;case b:return m;case A:return g}return t});let C=T},53107:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(40345),i=Object.create;let o=function(){function e(){}return function(t){if(!(0,n.A)(t))return{};if(i)return i(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();var s=r(13875),a=r(8923);let l=function(e){return"function"!=typeof e.constructor||(0,a.A)(e)?{}:o((0,s.A)(e))}},15405:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=9007199254740991,i=/^(?:0|[1-9]\d*)$/;let o=function(e,t){var r=typeof e;return!!(t=null==t?n:t)&&("number"==r||"symbol"!=r&&i.test(e))&&e>-1&&e%1==0&&e{"use strict";r.d(t,{A:()=>a});var n=r(196),i=r(41578),o=r(15405),s=r(40345);let a=function(e,t,r){if(!(0,s.A)(r))return!1;var a=typeof t;return("number"==a?!!((0,i.A)(r)&&(0,o.A)(t,r.length)):"string"==a&&t in r)&&(0,n.A)(r[t],e)}},47406:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(74637),i=r(89990),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;let a=function(e,t){if((0,n.A)(e))return!1;var r=typeof e;return!!("number"==r||"symbol"==r||"boolean"==r||null==e||(0,i.A)(e))||s.test(e)||!o.test(e)||null!=t&&e in Object(t)}},8923:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=Object.prototype;let i=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},7605:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(42692),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof module&&module&&!module.nodeType&&module,s=o&&o.exports===i&&n.A.process;let a=function(){try{var e=o&&o.require&&o.require("util").types;if(e)return e;return s&&s.binding&&s.binding("util")}catch(e){}}()},12123:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=function(e,t){return function(r){return e(t(r))}}},40089:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(89990),i=1/0;let o=function(e){if("string"==typeof e||(0,n.A)(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}},63089:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(3644),i=r(82844),o=r(55907),s=Math.ceil,a=Math.max;let l=function(e,t,r){t=(r?(0,i.A)(e,t,r):void 0===t)?1:a((0,o.A)(t),0);var l=null==e?0:e.length;if(!l||t<1)return[];for(var u=0,c=0,h=Array(s(l/t));u{"use strict";r.d(t,{A:()=>o});let n=function(e,t,r){return e==e&&(void 0!==r&&(e=e<=r?e:r),void 0!==t&&(e=e>=t?e:t)),e};var i=r(73419);let o=function(e,t,r){return void 0===r&&(r=t,t=void 0),void 0!==r&&(r=(r=(0,i.A)(r))==r?r:0),void 0!==t&&(t=(t=(0,i.A)(t))==t?t:0),n((0,i.A)(e),t,r)}},55161:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(40345),i=r(25801);let o=function(){return i.A.Date.now()};var s=r(73419),a="Expected a function",l=Math.max,u=Math.min;let c=function(e,t,r){var i,c,h,d,f,p,m=0,g=!1,v=!1,y=!0;if("function"!=typeof e)throw TypeError(a);function E(t){var r=i,n=c;return i=c=void 0,m=t,d=e.apply(n,r)}function _(e){return m=e,f=setTimeout(T,t),g?E(e):d}function b(e){var r=e-p,n=e-m,i=t-r;return v?u(i,h-n):i}function A(e){var r=e-p,n=e-m;return void 0===p||r>=t||r<0||v&&n>=h}function T(){var e=o();if(A(e))return C(e);f=setTimeout(T,b(e))}function C(e){return(f=void 0,y&&i)?E(e):(i=c=void 0,d)}function S(){void 0!==f&&clearTimeout(f),m=0,i=p=c=f=void 0}function w(){return void 0===f?d:C(o())}function x(){var e=o(),r=A(e);if(i=arguments,c=this,p=e,r){if(void 0===f)return _(p);if(v)return clearTimeout(f),f=setTimeout(T,t),E(p)}return void 0===f&&(f=setTimeout(T,t)),d}return t=(0,s.A)(t)||0,(0,n.A)(r)&&(g=!!r.leading,h=(v="maxWait"in r)?l((0,s.A)(r.maxWait)||0,t):h,y="trailing"in r?!!r.trailing:y),x.cancel=S,x.flush=w,x}},75705:(e,t,r)=>{"use strict";r.d(t,{A:()=>D});var n=r(59693),i=r(89698),o=r(98300),s=r(91908),a=r(196);let l=function(e,t,r){(void 0===r||(0,a.A)(e[t],r))&&(void 0!==r||t in e)||(0,s.A)(e,t,r)};var u=r(14368),c=r(61318),h=r(85997),d=r(47827),f=r(53107),p=r(28643),m=r(74637),g=r(31937),v=r(73060),y=r(54750),E=r(40345),_=r(23591),b=r(34609);let A=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var T=r(73171),C=r(71731);let S=function(e){return(0,T.A)(e,(0,C.A)(e))},w=function(e,t,r,n,i,o,s){var a=A(e,r),u=A(t,r),T=s.get(u);if(T){l(e,r,T);return}var C=o?o(a,u,r+"",e,t,s):void 0,w=void 0===C;if(w){var x=(0,m.A)(u),R=!x&&(0,v.A)(u),k=!x&&!R&&(0,b.A)(u);C=u,x||R||k?(0,m.A)(a)?C=a:(0,g.A)(a)?C=(0,d.A)(a):R?(w=!1,C=(0,c.A)(u,!0)):k?(w=!1,C=(0,h.A)(u,!0)):C=[]:(0,_.A)(u)||(0,p.A)(u)?(C=a,(0,p.A)(a)?C=S(a):(!(0,E.A)(a)||(0,y.A)(a))&&(C=(0,f.A)(u))):w=!1}w&&(s.set(u,C),i(C,u,n,o,s),s.delete(u)),l(e,r,C)};function x(e,t,r,n,i){e!==t&&(0,u.A)(t,function(s,a){if(i||(i=new o.A),(0,E.A)(s))w(e,t,a,r,x,n,i);else{var u=n?n(A(e,a),s,a+"",e,t,i):void 0;void 0===u&&(u=s),l(e,a,u)}},C.A)}let R=x;function k(e,t,r,n,i,o){return(0,E.A)(e)&&(0,E.A)(t)&&(o.set(t,e),R(e,t,void 0,k,o),o.delete(t)),e}let L=k;var I=r(82844);let O=function(e){return(0,i.A)(function(t,r){var n=-1,i=r.length,o=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,s&&(0,I.A)(r[0],r[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);++n{"use strict";r.d(t,{A:()=>s});var n=r(91908),i=r(81094),o=Object.prototype.hasOwnProperty;let s=(0,i.A)(function(e,t,r){o.call(e,r)?e[r].push(t):(0,n.A)(e,r,[t])})},43591:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});let n=function(e,t){return null!=e&&t in Object(e)};var i=r(50890),o=r(28643),s=r(74637),a=r(15405),l=r(81605),u=r(40089);let c=function(e,t,r){t=(0,i.A)(t,e);for(var n=-1,c=t.length,h=!1;++n{"use strict";r.d(t,{A:()=>l});var n=r(25801);let i=function(){return!1};var o="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=o&&"object"==typeof module&&module&&!module.nodeType&&module,a=s&&s.exports===o?n.A.Buffer:void 0;let l=(a?a.isBuffer:void 0)||i},91400:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(19834);let i=function(e,t){return(0,n.A)(e,t)}},23591:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var n=r(31835),i=r(13875),o=r(43046),s="[object Object]",a=Object.prototype,l=Function.prototype.toString,u=a.hasOwnProperty,c=l.call(Object);let h=function(e){if(!(0,o.A)(e)||(0,n.A)(e)!=s)return!1;var t=(0,i.A)(e);if(null===t)return!0;var r=u.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&l.call(r)==c}},89990:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(31835),i=r(43046),o="[object Symbol]";let s=function(e){return"symbol"==typeof e||(0,i.A)(e)&&(0,n.A)(e)==o}},34609:(e,t,r)=>{"use strict";r.d(t,{A:()=>N});var n=r(31835),i=r(81605),o=r(43046),s="[object Arguments]",a="[object Array]",l="[object Boolean]",u="[object Date]",c="[object Error]",h="[object Function]",d="[object Map]",f="[object Number]",p="[object Object]",m="[object RegExp]",g="[object Set]",v="[object String]",y="[object WeakMap]",E="[object ArrayBuffer]",_="[object DataView]",b="[object Float64Array]",A="[object Int8Array]",T="[object Int16Array]",C="[object Int32Array]",S="[object Uint8Array]",w="[object Uint8ClampedArray]",x="[object Uint16Array]",R="[object Uint32Array]",k={};k["[object Float32Array]"]=k[b]=k[A]=k[T]=k[C]=k[S]=k[w]=k[x]=k[R]=!0,k[s]=k[a]=k[E]=k[l]=k[_]=k[u]=k[c]=k[h]=k[d]=k[f]=k[p]=k[m]=k[g]=k[v]=k[y]=!1;let L=function(e){return(0,o.A)(e)&&(0,i.A)(e.length)&&!!k[(0,n.A)(e)]};var I=r(16105),O=r(7605),D=O.A&&O.A.isTypedArray;let N=D?(0,I.A)(D):L},11156:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=function(e){return void 0===e}},20601:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(47933),i=r(8923);let o=(0,r(12123).A)(Object.keys,Object);var s=Object.prototype.hasOwnProperty;let a=function(e){if(!(0,i.A)(e))return o(e);var t=[];for(var r in Object(e))s.call(e,r)&&"constructor"!=r&&t.push(r);return t};var l=r(41578);let u=function(e){return(0,l.A)(e)?(0,n.A)(e):a(e)}},71731:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(47933),i=r(40345),o=r(8923);let s=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t};var a=Object.prototype.hasOwnProperty;let l=function(e){if(!(0,i.A)(e))return s(e);var t=(0,o.A)(e),r=[];for(var n in e)"constructor"==n&&(t||!a.call(e,n))||r.push(n);return r};var u=r(41578);let c=function(e){return(0,u.A)(e)?(0,n.A)(e,!0):l(e)}},25466:(e,t,r)=>{"use strict";r.d(t,{A:()=>V});let n=function(e,t,r,n){var i=-1,o=null==e?0:e.length;for(n&&o&&(r=e[++i]);++i{"use strict";r.d(t,{A:()=>a});let n=function(e,t){for(var r,n=-1,i=e.length;++n{"use strict";r.d(t,{A:()=>n});let n=function(){}},54931:(e,t,r)=>{"use strict";r.d(t,{A:()=>e0});var n=r(77184),i=r(98300);let o=function(e,t){for(var r=-1,n=null==e?0:e.length;++r1),t}),(0,a.A)(e,(0,E.A)(e),r),i&&(r=e$(r,eQ|eZ|eJ,eX));for(var o=t.length;o--;)(0,eG.A)(r,t[o]);return r})},9613:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(90021),i="Expected a function";let o=function(e){if("function"!=typeof e)throw TypeError(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}};var s=r(77184),a=r(78759),l=r(79089);let u=function(e,t){if(null==e)return{};var r=(0,s.A)((0,l.A)(e),function(e){return[e]});return t=(0,n.A)(t),(0,a.A)(e,r,function(e,r){return t(e,r[0])})},c=function(e,t){return u(e,o((0,n.A)(t)))}},3374:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(81094).A)(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]})},52847:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(78759),i=r(43591);let o=function(e,t){return(0,n.A)(e,t,function(t,r){return(0,i.A)(e,r)})},s=(0,r(91058).A)(function(e,t){return null==e?{}:o(e,t)})},43891:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(90021),i=r(37267),o=r(15405),s=Array.prototype.splice;let a=function(e,t){for(var r=e?t.length:0,n=r-1;r--;){var a=t[r];if(r==n||a!==l){var l=a;(0,o.A)(a)?s.call(e,a,1):(0,i.A)(e,a)}}return e},l=function(e,t){var r=[];if(!(e&&e.length))return r;var i=-1,o=[],s=e.length;for(t=(0,n.A)(t,3);++i{"use strict";r.d(t,{A:()=>n});let n=function(){return[]}},55907:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(73419),i=1/0,o=17976931348623157e292;let s=function(e){return e?(e=(0,n.A)(e))===i||e===-i?(e<0?-1:1)*o:e==e?e:0:0===e?e:0},a=function(e){var t=s(e),r=t%1;return t==t?r?t-r:t:0}},73419:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=/\s/;let i=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t};var o=/^\s+/;let s=function(e){return e?e.slice(0,i(e)+1).replace(o,""):e};var a=r(40345),l=r(89990),u=0/0,c=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,d=/^0o[0-7]+$/i,f=parseInt;let p=function(e){if("number"==typeof e)return e;if((0,l.A)(e))return u;if((0,a.A)(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=(0,a.A)(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=s(e);var r=h.test(e);return r||d.test(e)?f(e.slice(2),r?2:8):c.test(e)?u:+e}},16402:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(93240);let i=function(e){return null==e?"":(0,n.A)(e)}},45407:(e,t,r)=>{"use strict";r.d(t,{A:()=>J});var n=r(93240),i=r(3644);let o=function(e,t,r){var n=e.length;return r=void 0===r?n:r,!t&&r>=n?e:(0,i.A)(e,t,r)};var s=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");let a=function(e){return s.test(e)};var l=r(40345),u=r(31835),c=r(43046),h="[object RegExp]";let d=function(e){return(0,c.A)(e)&&(0,u.A)(e)==h};var f=r(16105),p=r(7605),m=p.A&&p.A.isRegExp;let g=m?(0,f.A)(m):d,v=(0,r(46825).A)("length");var y="\ud800-\udfff",E="["+y+"]",_="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",b="\ud83c[\udffb-\udfff]",A="[^"+y+"]",T="(?:\ud83c[\udde6-\uddff]){2}",C="[\ud800-\udbff][\udc00-\udfff]",S="(?:"+_+"|"+b+")?",w="[\\ufe0e\\ufe0f]?",x="(?:\\u200d(?:"+[A,T,C].join("|")+")"+w+S+")*",R=w+S+x,k=RegExp(b+"(?="+b+")|(?:"+[A+_+"?",_,T,C,E].join("|")+")"+R,"g");let L=function(e){for(var t=k.lastIndex=0;k.test(e);)++t;return t},I=function(e){return a(e)?L(e):v(e)},O=function(e){return e.split("")};var D="\ud800-\udfff",N="["+D+"]",P="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",M="\ud83c[\udffb-\udfff]",B="[^"+D+"]",U="(?:\ud83c[\udde6-\uddff]){2}",F="[\ud800-\udbff][\udc00-\udfff]",j="(?:"+P+"|"+M+")?",K="[\\ufe0e\\ufe0f]?",V="(?:\\u200d(?:"+[B,U,F].join("|")+")"+K+j+")*",H=K+j+V,z=RegExp(M+"(?="+M+")|(?:"+[B+P+"?",P,U,F,N].join("|")+")"+H,"g");let G=function(e){return e.match(z)||[]},q=function(e){return a(e)?G(e):O(e)};var W=r(55907),X=r(16402),Y=30,Q="...",Z=/\w*$/;let J=function(e,t){var r=Y,i=Q;if((0,l.A)(t)){var s="separator"in t?t.separator:s;r="length"in t?(0,W.A)(t.length):r,i="omission"in t?(0,n.A)(t.omission):i}var u=(e=(0,X.A)(e)).length;if(a(e)){var c=q(e);u=c.length}if(r>=u)return e;var h=r-I(i);if(h<1)return i;var d=c?o(c,0,h).join(""):e.slice(0,h);if(void 0===s)return d+i;if(c&&(h+=d.length-h),g(s)){if(e.slice(h).search(s)){var f,p=d;for(s.global||(s=RegExp(s.source,(0,X.A)(Z.exec(s))+"g")),s.lastIndex=0;f=s.exec(p);)var m=f.index;d=d.slice(0,void 0===m?h:m)}}else if(e.indexOf((0,n.A)(s),h)!=h){var v=d.lastIndexOf(s);v>-1&&(d=d.slice(0,v))}return d+i}},72239:(e,t,r)=>{"use strict";function n(e,t){let r=String(e),n=r.indexOf(t),i=n,o=0,s=0;if("string"!=typeof t)throw TypeError("Expected substring");for(;-1!==n;)n===i?++o>s&&(s=o):o=1,i=n+t.length,n=r.indexOf(t,i);return s}r.d(t,{D:()=>n})},14076:(e,t,r)=>{"use strict";r.d(t,{C:()=>m});var n=r(26596),i=r(26867);a(/[A-Za-z]/),a(/[\dA-Za-z]/),a(/[#-'*+\--9=?A-Z^-~]/),a(/\d/),a(/[\dA-Fa-f]/),a(/[!-/:-@[-`{-~]/);let o=a(/\p{P}|\p{S}/u),s=a(/\s/);function a(e){return t;function t(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function l(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var u=r(32468),c=r(7347);function h(e,t,r){let n=r||{},i=(0,c.C)(n.ignore||[]),o=d(t),s=-1;for(;++s0?{type:"text",value:s}:void 0),!1===s?n.lastIndex=r+1:(a!==r&&c.push({type:"text",value:e.value.slice(a,r)}),Array.isArray(s)?c.push(...s):s&&c.push(s),a=r+h[0].length,u=!0),!n.global)break;h=n.exec(e.value)}return u?(a?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],i=r.indexOf(")"),o=(0,n.D)(e,"("),s=(0,n.D)(e,")");for(;-1!==i&&o>s;)e+=r.slice(0,i+1),i=(r=r.slice(i+1)).indexOf(")"),s++;return[e,r]}function x(e,t){let r=e.input.charCodeAt(e.index-1);return(0===e.index||s(r)||o(r))&&(!t||47!==r)}},13265:(e,t,r)=>{"use strict";r.d(t,{K:()=>o,p:()=>i});let n=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function i(){return{canContainEols:["delete"],enter:{strikethrough:s},exit:{strikethrough:a}}}function o(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:n}],handlers:{delete:l}}}function s(e){this.enter({type:"delete",children:[]},e)}function a(e){this.exit(e)}function l(e,t,r,n){let i=r.createTracker(n),o=r.enter("strikethrough"),s=i.move("~~");return s+=r.containerPhrasing(e,{...i.current(),before:s,after:"~"})+i.move("~~"),o(),s}function u(){return"~"}l.peek=u},75903:(e,t,r)=>{"use strict";r.d(t,{c:()=>O,d:()=>j});var n=r(26867);function i(e,t={}){let r=(t.align||[]).concat(),n=t.stringLength||s,l=[],u=[],c=[],h=[],d=0,f=-1;for(;++fd&&(d=e[f].length);++sh[s])&&(h[s]=e)}r.push(a)}u[f]=r,c[f]=i}let p=-1;if("object"==typeof r&&"length"in r)for(;++ph[p]&&(h[p]=i),g[p]=i),m[p]=o}u.splice(1,0,m),c.splice(1,0,g),f=-1;let v=[];for(;++f",...l.current()}))+l.move(">")):(a=r.enter("destinationRaw"),c+=l.move(r.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),a(),e.title&&(a=r.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(r.safe(e.title,{before:c,after:i,...l.current()}))+l.move(i),a()),c+=l.move(")"),s(),c}function v(){return"!"}function y(e,t,r,n){let i=e.referenceType,o=r.enter("imageReference"),s=r.enter("label"),a=r.createTracker(n),l=a.move("!["),u=r.safe(e.alt,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),s();let c=r.stack;r.stack=[],s=r.enter("reference");let h=r.safe(r.associationId(e),{before:l,after:"]",...a.current()});return s(),r.stack=c,o(),"full"!==i&&u&&u===h?"shortcut"===i?l=l.slice(0,-1):l+=a.move("]"):l+=a.move(h+"]"),l}function E(){return"!"}function _(e,t,r){let n=e.value||"",i="`",o=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(n);)i+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++o\u007F]/.test(e.url))}function T(e,t,r,n){let i,o;let s=u(r),a='"'===s?"Quote":"Apostrophe",l=r.createTracker(n);if(A(e,r)){let t=r.stack;r.stack=[],i=r.enter("autolink");let n=l.move("<");return n+=l.move(r.containerPhrasing(e,{before:n,after:">",...l.current()}))+l.move(">"),i(),r.stack=t,n}i=r.enter("link"),o=r.enter("label");let c=l.move("[");return c+=l.move(r.containerPhrasing(e,{before:c,after:"](",...l.current()}))+l.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=r.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(r.safe(e.url,{before:c,after:">",...l.current()}))+l.move(">")):(o=r.enter("destinationRaw"),c+=l.move(r.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),o(),e.title&&(o=r.enter(`title${a}`),c+=l.move(" "+s),c+=l.move(r.safe(e.title,{before:c,after:s,...l.current()}))+l.move(s),o()),c+=l.move(")"),i(),c}function C(e,t,r){return A(e,r)?"<":"["}function S(e,t,r,n){let i=e.referenceType,o=r.enter("linkReference"),s=r.enter("label"),a=r.createTracker(n),l=a.move("["),u=r.containerPhrasing(e,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),s();let c=r.stack;r.stack=[],s=r.enter("reference");let h=r.safe(r.associationId(e),{before:l,after:"]",...a.current()});return s(),r.stack=c,o(),"full"!==i&&u&&u===h?"shortcut"===i?l=l.slice(0,-1):l+=a.move("]"):l+=a.move(h+"]"),l}function w(){return"["}function x(e){let t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function R(e){let t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}function k(e,t,r,n){let i=R(r),o=r.enter("strong"),s=r.createTracker(n),a=s.move(i+i);return a+=s.move(r.containerPhrasing(e,{before:a,after:i,...s.current()}))+s.move(i+i),o(),a}function L(e,t,r){return r.options.strong||"*"}p.peek=m,g.peek=v,y.peek=E,_.peek=b,T.peek=C,S.peek=w,r(50275);k.peek=L;let I={inlineCode:_};function O(){return{enter:{table:D,tableData:B,tableHeader:B,tableRow:P},exit:{codeText:U,table:N,tableData:M,tableHeader:M,tableRow:M}}}function D(e){let t=e._align;(0,n.ok)(t,"expected `_align` on table"),this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function N(e){this.exit(e),this.data.inTable=void 0}function P(e){this.enter({type:"tableRow",children:[]},e)}function M(e){this.exit(e)}function B(e){this.enter({type:"tableCell",children:[]},e)}function U(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,F));let r=this.stack[this.stack.length-1];(0,n.ok)("inlineCode"===r.type),r.value=t,this.exit(e)}function F(e,t){return"|"===t?t:e}function j(e){let t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,o=t.stringLength,s=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:f,table:a,tableCell:u,tableRow:l}};function a(e,t,r,n){return c(h(e,r,n),e.align)}function l(e,t,r,n){let i=c([d(e,r,n)]);return i.slice(0,i.indexOf("\n"))}function u(e,t,r,n){let i=r.enter("tableCell"),o=r.enter("phrasing"),a=r.containerPhrasing(e,{...n,before:s,after:s});return o(),i(),a}function c(e,t){return i(e,{align:t,alignDelimiters:n,padding:r,stringLength:o})}function h(e,t,r){let n=e.children,i=-1,o=[],s=t.enter("table");for(;++i{"use strict";r.d(t,{S:()=>L,P:()=>I});var n=r(26867);function i(e,t,r){if("string"==typeof t&&(t=[t]),!t||0===t.length)return r;let n=-1;for(;++n",...u.current()}))+u.move(">")):(l=r.enter("destinationRaw"),c+=u.move(r.safe(e.url,{before:c,after:e.title?" ":")",...u.current()}))),l(),e.title&&(l=r.enter(`title${s}`),c+=u.move(" "+i),c+=u.move(r.safe(e.title,{before:c,after:i,...u.current()}))+u.move(i),l()),c+=u.move(")"),a(),c}function f(){return"!"}function p(e,t,r,n){let i=e.referenceType,o=r.enter("imageReference"),s=r.enter("label"),a=r.createTracker(n),l=a.move("!["),u=r.safe(e.alt,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),s();let c=r.stack;r.stack=[],s=r.enter("reference");let h=r.safe(r.associationId(e),{before:l,after:"]",...a.current()});return s(),r.stack=c,o(),"full"!==i&&u&&u===h?"shortcut"===i?l=l.slice(0,-1):l+=a.move("]"):l+=a.move(h+"]"),l}function m(){return"!"}function g(e,t,r){let n=e.value||"",i="`",o=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(n);)i+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++o\u007F]/.test(e.url))}function E(e,t,r,n){let i,s;let a=o(r),l='"'===a?"Quote":"Apostrophe",u=r.createTracker(n);if(y(e,r)){let t=r.stack;r.stack=[],i=r.enter("autolink");let n=u.move("<");return n+=u.move(r.containerPhrasing(e,{before:n,after:">",...u.current()}))+u.move(">"),i(),r.stack=t,n}i=r.enter("link"),s=r.enter("label");let c=u.move("[");return c+=u.move(r.containerPhrasing(e,{before:c,after:"](",...u.current()}))+u.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=r.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(r.safe(e.url,{before:c,after:">",...u.current()}))+u.move(">")):(s=r.enter("destinationRaw"),c+=u.move(r.safe(e.url,{before:c,after:e.title?" ":")",...u.current()}))),s(),e.title&&(s=r.enter(`title${l}`),c+=u.move(" "+a),c+=u.move(r.safe(e.title,{before:c,after:a,...u.current()}))+u.move(a),s()),c+=u.move(")"),i(),c}function _(e,t,r){return y(e,r)?"<":"["}function b(e,t,r,n){let i=e.referenceType,o=r.enter("linkReference"),s=r.enter("label"),a=r.createTracker(n),l=a.move("["),u=r.containerPhrasing(e,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),s();let c=r.stack;r.stack=[],s=r.enter("reference");let h=r.safe(r.associationId(e),{before:l,after:"]",...a.current()});return s(),r.stack=c,o(),"full"!==i&&u&&u===h?"shortcut"===i?l=l.slice(0,-1):l+=a.move("]"):l+=a.move(h+"]"),l}function A(){return"["}function T(e){let t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function C(e){let t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function S(e,t,r,n){let i=C(r),o=r.bulletCurrent||T(r);t&&"list"===t.type&&t.ordered&&(o=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===r.options.incrementListMarker?0:t.children.indexOf(e))+o);let s=o.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(s=4*Math.ceil(s/4));let a=r.createTracker(n);a.move(o+" ".repeat(s-o.length)),a.shift(s);let l=r.enter("listItem"),u=r.indentLines(r.containerFlow(e,a.current()),c);return l(),u;function c(e,t,r){return t?(r?"":" ".repeat(s))+e:(r?o:o+" ".repeat(s-o.length))+e}}function w(e){let t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}function x(e,t,r,n){let i=w(r),o=r.enter("strong"),s=r.createTracker(n),a=s.move(i+i);return a+=s.move(r.containerPhrasing(e,{before:a,after:i,...s.current()}))+s.move(i+i),o(),a}function R(e,t,r){return r.options.strong||"*"}c.peek=h,d.peek=f,p.peek=m,g.peek=v,E.peek=_,b.peek=A,r(50275);x.peek=R;let k={listItem:S};function L(){return{exit:{taskListCheckValueChecked:O,taskListCheckValueUnchecked:O,paragraph:D}}}function I(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:N}}}function O(e){let t=this.stack[this.stack.length-2];(0,n.ok)("listItem"===t.type),t.checked="taskListCheckValueChecked"===e.type}function D(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1];(0,n.ok)("paragraph"===e.type);let r=e.children[0];if(r&&"text"===r.type){let n;let i=t.children,o=-1;for(;++o{"use strict";r.d(t,{f:()=>n});let n=(0,r(7347).C)(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"])},45066:(e,t,r)=>{"use strict";r.d(t,{d:()=>i});let n={};function i(e,t){let r=t||n;return o(e,"boolean"!=typeof r.includeImageAlt||r.includeImageAlt,"boolean"!=typeof r.includeHtml||r.includeHtml)}function o(e,t,r){if(a(e)){if("value"in e)return"html"!==e.type||r?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return s(e.children,t,r)}return Array.isArray(e)?s(e,t,r):""}function s(e,t,r){let n=[],i=-1;for(;++i{"use strict";r.d(t,{$:()=>E});let n=u(/[A-Za-z]/),i=u(/[\dA-Za-z]/);function o(e){return null!==e&&(e<32||127===e)}function s(e){return null!==e&&(e<0||32===e)}u(/[#-'*+\--9=?A-Z^-~]/),u(/\d/),u(/[\dA-Fa-f]/),u(/[!-/:-@[-`{-~]/);let a=u(/\p{P}|\p{S}/u),l=u(/\s/);function u(e){return t;function t(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}let c={tokenize:C,partial:!0},h={tokenize:S,partial:!0},d={tokenize:w,partial:!0},f={tokenize:x,partial:!0},p={tokenize:R,partial:!0},m={name:"wwwAutolink",tokenize:A,previous:k},g={name:"protocolAutolink",tokenize:T,previous:L},v={name:"emailAutolink",tokenize:b,previous:I},y={};function E(){return{text:y}}let _=48;for(;_<123;)y[_]=v,58==++_?_=65:91===_&&(_=97);function b(e,t,r){let o,s;let a=this;return l;function l(t){return!O(t)||!I.call(a,a.previous)||D(a.events)?r(t):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),u(t))}function u(t){return O(t)?(e.consume(t),u):64===t?(e.consume(t),c):r(t)}function c(t){return 46===t?e.check(p,d,h)(t):45===t||95===t||i(t)?(s=!0,e.consume(t),c):d(t)}function h(t){return e.consume(t),o=!0,c}function d(i){return s&&o&&n(a.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(i)):r(i)}}function A(e,t,r){let n=this;return i;function i(t){return 87!==t&&119!==t||!k.call(n,n.previous)||D(n.events)?r(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(c,e.attempt(h,e.attempt(d,o),r),r)(t))}function o(r){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(r)}}function T(e,t,r){let i=this,u="",c=!1;return f;function f(t){return(72===t||104===t)&&L.call(i,i.previous)&&!D(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),u+=String.fromCodePoint(t),e.consume(t),p):r(t)}function p(t){if(n(t)&&u.length<5)return u+=String.fromCodePoint(t),e.consume(t),p;if(58===t){let r=u.toLowerCase();if("http"===r||"https"===r)return e.consume(t),m}return r(t)}function m(t){return 47===t?(e.consume(t),c)?g:(c=!0,m):r(t)}function g(t){return null===t||o(t)||s(t)||l(t)||a(t)?r(t):e.attempt(h,e.attempt(d,v),r)(t)}function v(r){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(r)}}function C(e,t,r){let n=0;return i;function i(t){return(87===t||119===t)&&n<3?(n++,e.consume(t),i):46===t&&3===n?(e.consume(t),o):r(t)}function o(e){return null===e?r(e):t(e)}}function S(e,t,r){let n,i,o;return u;function u(t){return 46===t||95===t?e.check(f,h,c)(t):null===t||s(t)||l(t)||45!==t&&a(t)?h(t):(o=!0,e.consume(t),u)}function c(t){return 95===t?n=!0:(i=n,n=void 0),e.consume(t),u}function h(e){return i||n||!o?r(e):t(e)}}function w(e,t){let r=0,n=0;return i;function i(a){return 40===a?(r++,e.consume(a),i):41===a&&n0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}y[43]=v,y[45]=v,y[46]=v,y[95]=v,y[72]=[v,g],y[104]=[v,g],y[87]=[v,m],y[119]=[v,m]},96855:(e,t,r)=>{"use strict";r.d(t,{K:()=>s});var n=r(25789),i=r(7650),o=r(34019);function s(e){let t=(e||{}).singleTilde,r={name:"strikethrough",tokenize:a,resolveAll:s};return null==t&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function s(e,t){let r=-1;for(;++r1?n(s):(e.consume(s),a++,u);if(a<2&&!t)return n(s);let c=e.exit("strikethroughSequenceTemporary"),h=(0,i.S)(s);return c._open=!h||2===h&&!!l,c._close=!l||2===l&&!!h,r(s)}}}},75069:(e,t,r)=>{"use strict";function n(e){return null!==e&&e<-2}function i(e){return null!==e&&(e<0||32===e)}function o(e){return -2===e||-1===e||32===e}function s(e){return t;function t(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function a(e,t,r,n){let i=n?n-1:Number.POSITIVE_INFINITY,s=0;return a;function a(n){return o(n)?(e.enter(r),l(n)):t(n)}function l(n){return o(n)&&s++h}),s(/[A-Za-z]/),s(/[\dA-Za-z]/),s(/[#-'*+\--9=?A-Z^-~]/),s(/\d/),s(/[\dA-Fa-f]/),s(/[!-/:-@[-`{-~]/),s(/\p{P}|\p{S}/u),s(/\s/);class l{constructor(){this.map=[]}add(e,t,r){u(this,e,t,r)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length,r=[];for(;t>0;)t-=1,r.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];r.push([...e]),e.length=0;let n=r.pop();for(;n;)e.push(...n),n=r.pop();this.map.length=0}}function u(e,t,r,n){let i=0;if(0!==r||0!==n.length){for(;i-1;){let e=l.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let n=t>-1?l.events[t][1].type:null,i="tableHead"===n||"tableRow"===n?w:d;return i===w&&l.parser.lazy[l.now().line]?r(e):i(e)}function d(t){return e.enter("tableHead"),e.enter("tableRow"),f(t)}function f(e){return 124===e||(s=!0,c+=1),p(e)}function p(t){return null===t?r(t):n(t)?c>1?(c=0,l.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),v):r(t):o(t)?a(e,p,"whitespace")(t):(c+=1,s&&(s=!1,u+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),s=!0,p):(e.enter("data"),m(t))}function m(t){return null===t||124===t||i(t)?(e.exit("data"),p(t)):(e.consume(t),92===t?g:m)}function g(t){return 92===t||124===t?(e.consume(t),m):m(t)}function v(t){return(l.interrupt=!1,l.parser.lazy[l.now().line])?r(t):(e.enter("tableDelimiterRow"),s=!1,o(t))?a(e,y,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):y(t)}function y(t){return 45===t||58===t?_(t):124===t?(s=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),E):S(t)}function E(t){return o(t)?a(e,_,"whitespace")(t):_(t)}function _(t){return 58===t?(c+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),b):45===t?(c+=1,b(t)):null===t||n(t)?C(t):S(t)}function b(t){return 45===t?(e.enter("tableDelimiterFiller"),A(t)):S(t)}function A(t){return 45===t?(e.consume(t),A):58===t?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),T):(e.exit("tableDelimiterFiller"),T(t))}function T(t){return o(t)?a(e,C,"whitespace")(t):C(t)}function C(r){return 124===r?y(r):(null===r||n(r))&&s&&u===c?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(r)):S(r)}function S(e){return r(e)}function w(t){return e.enter("tableRow"),x(t)}function x(r){return 124===r?(e.enter("tableCellDivider"),e.consume(r),e.exit("tableCellDivider"),x):null===r||n(r)?(e.exit("tableRow"),t(r)):o(r)?a(e,x,"whitespace")(r):(e.enter("data"),R(r))}function R(t){return null===t||124===t||i(t)?(e.exit("data"),x(t)):(e.consume(t),92===t?k:R)}function k(t){return 92===t||124===t?(e.consume(t),R):R(t)}}function f(e,t){let r,n,i,o=-1,s=!0,a=0,u=[0,0,0,0],h=[0,0,0,0],d=!1,f=0,g=new l;for(;++or[2]+1){let t=r[2]+1,n=r[3]-r[2]-1;e.add(t,n,[])}}e.add(r[3]+1,0,[["exit",s,t]])}return void 0!==i&&(o.end=Object.assign({},g(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function m(e,t,r,n,i){let o=[],s=g(t.events,r);i&&(i.end=Object.assign({},s),o.push(["exit",i,t])),n.end=Object.assign({},s),o.push(["exit",n,t]),e.add(r+1,0,o)}function g(e,t){let r=e[t],n="enter"===r[0]?"start":"end";return r[1][n]}},28050:(e,t,r)=>{"use strict";function n(e){return null!==e&&e<-2}function i(e){return null!==e&&(e<0||32===e)}function o(e){return -2===e||-1===e||32===e}function s(e){return t;function t(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function a(e,t,r,n){let i=n?n-1:Number.POSITIVE_INFINITY,s=0;return a;function a(n){return o(n)?(e.enter(r),l(n)):t(n)}function l(n){return o(n)&&s++u}),s(/[A-Za-z]/),s(/[\dA-Za-z]/),s(/[#-'*+\--9=?A-Z^-~]/),s(/\d/),s(/[\dA-Fa-f]/),s(/[!-/:-@[-`{-~]/),s(/\p{P}|\p{S}/u),s(/\s/);let l={name:"tasklistCheck",tokenize:c};function u(){return{text:{91:l}}}function c(e,t,r){let s=this;return a;function a(t){return null===s.previous&&s._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),l):r(t)}function l(t){return i(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),u):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),u):r(t)}function u(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),c):r(t)}function c(i){return n(i)?t(i):o(i)?e.check({tokenize:h},t,r)(i):r(i)}}function h(e,t,r){return a(e,n,"whitespace");function n(e){return null===e?r(e):t(e)}}},25789:(e,t,r)=>{"use strict";function n(e,t,r,n){let i;let o=e.length,s=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,r=r>0?r:0,n.length<1e4)(i=Array.from(n)).unshift(t,r),e.splice(...i);else for(r&&e.splice(t,r);s0?(n(e,e.length,0,t),e):t}r.d(t,{V:()=>i,m:()=>n})},7650:(e,t,r)=>{"use strict";function n(e){return null!==e&&(e<0||32===e)}r.d(t,{S:()=>a}),s(/[A-Za-z]/),s(/[\dA-Za-z]/),s(/[#-'*+\--9=?A-Z^-~]/),s(/\d/),s(/[\dA-Fa-f]/),s(/[!-/:-@[-`{-~]/);let i=s(/\p{P}|\p{S}/u),o=s(/\s/);function s(e){return t;function t(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function a(e){return null===e||n(e)||o(e)?1:i(e)?2:void 0}},75425:(e,t,r)=>{"use strict";r.d(t,{y:()=>o});var n=r(25789);let i={}.hasOwnProperty;function o(e){let t={},r=-1;for(;++r{"use strict";function n(e,t){let r=Number.parseInt(e,t);return r<9||11===r||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(65535&r)==65535||(65535&r)==65534||r>1114111?"�":String.fromCodePoint(r)}r.d(t,{C:()=>n})},97133:(e,t,r)=>{"use strict";r.d(t,{s:()=>s});var n=r(81490),i=r(7681);let o=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function s(e){return e.replace(o,a)}function a(e,t,r){if(t)return t;if(35===r.charCodeAt(0)){let e=r.charCodeAt(1),t=120===e||88===e;return(0,i.C)(r.slice(t?2:1),t?16:10)}return(0,n.s)(r)||e}},34019:(e,t,r)=>{"use strict";function n(e,t,r){let n=[],i=-1;for(;++in})},30397:(e,t,r)=>{"use strict";r.d(t,{Ak:()=>i});let n="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",i=(e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e));for(;e--;)t+=n[63&r[e]];return t}},33926:(e,t,r)=>{"use strict";r.d(t,{D:()=>u,N:()=>c});var n=r(86326),i=["light","dark"],o="(prefers-color-scheme: dark)",s="undefined"==typeof window,a=n.createContext(void 0),l={setTheme:e=>{},themes:[]},u=()=>{var e;return null!=(e=n.useContext(a))?e:l},c=e=>n.useContext(a)?e.children:n.createElement(d,{...e}),h=["light","dark"],d=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:r=!0,enableColorScheme:s=!0,storageKey:l="theme",themes:u=h,defaultTheme:c=r?"system":"light",attribute:d="data-theme",value:v,children:y,nonce:E})=>{let[_,b]=n.useState(()=>p(l,c)),[A,T]=n.useState(()=>p(l)),C=v?Object.values(v):u,S=n.useCallback(e=>{let n=e;if(!n)return;"system"===e&&r&&(n=g());let o=v?v[n]:n,a=t?m():null,l=document.documentElement;if("class"===d?(l.classList.remove(...C),o&&l.classList.add(o)):o?l.setAttribute(d,o):l.removeAttribute(d),s){let e=i.includes(c)?c:null,t=i.includes(n)?n:e;l.style.colorScheme=t}null==a||a()},[]),w=n.useCallback(e=>{let t="function"==typeof e?e(e):e;b(t);try{localStorage.setItem(l,t)}catch(e){}},[e]),x=n.useCallback(t=>{T(g(t)),"system"===_&&r&&!e&&S("system")},[_,e]);n.useEffect(()=>{let e=window.matchMedia(o);return e.addListener(x),x(e),()=>e.removeListener(x)},[x]),n.useEffect(()=>{let e=e=>{e.key===l&&w(e.newValue||c)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[w]),n.useEffect(()=>{S(null!=e?e:_)},[e,_]);let R=n.useMemo(()=>({theme:_,setTheme:w,forcedTheme:e,resolvedTheme:"system"===_?A:_,themes:r?[...u,"system"]:u,systemTheme:r?A:void 0}),[_,w,e,A,r,u]);return n.createElement(a.Provider,{value:R},n.createElement(f,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:r,enableColorScheme:s,storageKey:l,themes:u,defaultTheme:c,attribute:d,value:v,children:y,attrs:C,nonce:E}),y)},f=n.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:s,enableColorScheme:a,defaultTheme:l,value:u,attrs:c,nonce:h})=>{let d="system"===l,f="class"===r?`var d=document.documentElement,c=d.classList;c.remove(${c.map(e=>`'${e}'`).join(",")});`:`var d=document.documentElement,n='${r}',s='setAttribute';`,p=a?(i.includes(l)?l:null)?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${l}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",m=(e,t=!1,n=!0)=>{let o=u?u[e]:e,s=t?e+"|| ''":`'${o}'`,l="";return a&&n&&!t&&i.includes(e)&&(l+=`d.style.colorScheme = '${e}';`),"class"===r?t||o?l+=`c.add(${s})`:l+="null":o&&(l+=`d[s](n,${s})`),l},g=e?`!function(){${f}${m(e)}}()`:s?`!function(){try{${f}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${d})){var t='${o}',m=window.matchMedia(t);if(m.media!==t||m.matches){${m("dark")}}else{${m("light")}}}else if(e){${u?`var x=${JSON.stringify(u)};`:""}${m(u?"x[e]":"e",!0)}}${d?"":"else{"+m(l,!1,!1)+"}"}${p}}catch(e){}}()`:`!function(){try{${f}var e=localStorage.getItem('${t}');if(e){${u?`var x=${JSON.stringify(u)};`:""}${m(u?"x[e]":"e",!0)}}else{${m(l,!1,!1)};}${p}}catch(t){}}();`;return n.createElement("script",{nonce:h,dangerouslySetInnerHTML:{__html:g}})}),p=(e,t)=>{let r;if(!s){try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t}},m=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},g=e=>(e||(e=window.matchMedia(o)),e.matches?"dark":"light")},12242:(e,t,r)=>{"use strict";r.d(t,{qy:()=>y,JW:()=>E});class n{constructor(e,t,r){this.property=e,this.normal=t,r&&(this.space=r)}}function i(e,t){let r={},i={},o=-1;for(;++o"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),c=l({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function h(e,t){return t in e?e[t]:t}function d(e,t){return h(e,t.toLowerCase())}let f=l({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:d,properties:{xmlns:null,xmlnsXLink:null}});var p=r(49430);let m=l({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:p.booleanish,ariaAutoComplete:null,ariaBusy:p.booleanish,ariaChecked:p.booleanish,ariaColCount:p.number,ariaColIndex:p.number,ariaColSpan:p.number,ariaControls:p.spaceSeparated,ariaCurrent:null,ariaDescribedBy:p.spaceSeparated,ariaDetails:null,ariaDisabled:p.booleanish,ariaDropEffect:p.spaceSeparated,ariaErrorMessage:null,ariaExpanded:p.booleanish,ariaFlowTo:p.spaceSeparated,ariaGrabbed:p.booleanish,ariaHasPopup:null,ariaHidden:p.booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:p.spaceSeparated,ariaLevel:p.number,ariaLive:null,ariaModal:p.booleanish,ariaMultiLine:p.booleanish,ariaMultiSelectable:p.booleanish,ariaOrientation:null,ariaOwns:p.spaceSeparated,ariaPlaceholder:null,ariaPosInSet:p.number,ariaPressed:p.booleanish,ariaReadOnly:p.booleanish,ariaRelevant:null,ariaRequired:p.booleanish,ariaRoleDescription:p.spaceSeparated,ariaRowCount:p.number,ariaRowIndex:p.number,ariaRowSpan:p.number,ariaSelected:p.booleanish,ariaSetSize:p.number,ariaSort:null,ariaValueMax:p.number,ariaValueMin:p.number,ariaValueNow:p.number,ariaValueText:null,role:null}}),g=l({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:d,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:p.commaSeparated,acceptCharset:p.spaceSeparated,accessKey:p.spaceSeparated,action:null,allow:null,allowFullScreen:p.boolean,allowPaymentRequest:p.boolean,allowUserMedia:p.boolean,alt:null,as:null,async:p.boolean,autoCapitalize:null,autoComplete:p.spaceSeparated,autoFocus:p.boolean,autoPlay:p.boolean,blocking:p.spaceSeparated,capture:null,charSet:null,checked:p.boolean,cite:null,className:p.spaceSeparated,cols:p.number,colSpan:null,content:null,contentEditable:p.booleanish,controls:p.boolean,controlsList:p.spaceSeparated,coords:p.number|p.commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:p.boolean,defer:p.boolean,dir:null,dirName:null,disabled:p.boolean,download:p.overloadedBoolean,draggable:p.booleanish,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:p.boolean,formTarget:null,headers:p.spaceSeparated,height:p.number,hidden:p.boolean,high:p.number,href:null,hrefLang:null,htmlFor:p.spaceSeparated,httpEquiv:p.spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inert:p.boolean,inputMode:null,integrity:null,is:null,isMap:p.boolean,itemId:null,itemProp:p.spaceSeparated,itemRef:p.spaceSeparated,itemScope:p.boolean,itemType:p.spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:p.boolean,low:p.number,manifest:null,max:null,maxLength:p.number,media:null,method:null,min:null,minLength:p.number,multiple:p.boolean,muted:p.boolean,name:null,nonce:null,noModule:p.boolean,noValidate:p.boolean,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:p.boolean,optimum:p.number,pattern:null,ping:p.spaceSeparated,placeholder:null,playsInline:p.boolean,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:p.boolean,referrerPolicy:null,rel:p.spaceSeparated,required:p.boolean,reversed:p.boolean,rows:p.number,rowSpan:p.number,sandbox:p.spaceSeparated,scope:null,scoped:p.boolean,seamless:p.boolean,selected:p.boolean,shadowRootClonable:p.boolean,shadowRootDelegatesFocus:p.boolean,shadowRootMode:null,shape:null,size:p.number,sizes:null,slot:null,span:p.number,spellCheck:p.booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:p.number,step:null,style:null,tabIndex:p.number,target:null,title:null,translate:null,type:null,typeMustMatch:p.boolean,useMap:null,value:p.booleanish,width:p.number,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:p.spaceSeparated,axis:null,background:null,bgColor:null,border:p.number,borderColor:null,bottomMargin:p.number,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:p.boolean,declare:p.boolean,event:null,face:null,frame:null,frameBorder:null,hSpace:p.number,leftMargin:p.number,link:null,longDesc:null,lowSrc:null,marginHeight:p.number,marginWidth:p.number,noResize:p.boolean,noHref:p.boolean,noShade:p.boolean,noWrap:p.boolean,object:null,profile:null,prompt:null,rev:null,rightMargin:p.number,rules:null,scheme:null,scrolling:p.booleanish,standby:null,summary:null,text:null,topMargin:p.number,valueType:null,version:null,vAlign:null,vLink:null,vSpace:p.number,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:p.boolean,disableRemotePlayback:p.boolean,prefix:null,property:null,results:p.number,security:null,unselectable:null}}),v=l({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:h,properties:{about:p.commaOrSpaceSeparated,accentHeight:p.number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:p.number,amplitude:p.number,arabicForm:null,ascent:p.number,attributeName:null,attributeType:null,azimuth:p.number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:p.number,by:null,calcMode:null,capHeight:p.number,className:p.spaceSeparated,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:p.number,diffuseConstant:p.number,direction:null,display:null,dur:null,divisor:p.number,dominantBaseline:null,download:p.boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:p.number,enableBackground:null,end:null,event:null,exponent:p.number,externalResourcesRequired:null,fill:null,fillOpacity:p.number,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:p.commaSeparated,g2:p.commaSeparated,glyphName:p.commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:p.number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:p.number,horizOriginX:p.number,horizOriginY:p.number,id:null,ideographic:p.number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:p.number,k:p.number,k1:p.number,k2:p.number,k3:p.number,k4:p.number,kernelMatrix:p.commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:p.number,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:p.number,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:p.number,overlineThickness:p.number,paintOrder:null,panose1:null,path:null,pathLength:p.number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:p.spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:p.number,pointsAtY:p.number,pointsAtZ:p.number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:p.commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:p.commaOrSpaceSeparated,rev:p.commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:p.commaOrSpaceSeparated,requiredFeatures:p.commaOrSpaceSeparated,requiredFonts:p.commaOrSpaceSeparated,requiredFormats:p.commaOrSpaceSeparated,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:p.number,specularExponent:p.number,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:p.number,strikethroughThickness:p.number,string:null,stroke:null,strokeDashArray:p.commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:p.number,strokeOpacity:p.number,strokeWidth:null,style:null,surfaceScale:p.number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:p.commaOrSpaceSeparated,tabIndex:p.number,tableValues:null,target:null,targetX:p.number,targetY:p.number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:p.commaOrSpaceSeparated,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:p.number,underlineThickness:p.number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:p.number,values:null,vAlphabetic:p.number,vMathematical:p.number,vectorEffect:null,vHanging:p.number,vIdeographic:p.number,version:null,vertAdvY:p.number,vertOriginX:p.number,vertOriginY:p.number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:p.number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),y=i([c,u,f,m,g],"html"),E=i([c,u,f,m,v],"svg")},93331:(e,t,r)=>{"use strict";r.d(t,{I:()=>u});var n=r(10317),i=r(97279),o=r(90911);let s=/^data[-\w.:]+$/i,a=/-[a-z]/g,l=/[A-Z]/g;function u(e,t){let r=(0,n.S)(t),u=t,d=o.R;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&"data"===r.slice(0,4)&&s.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(a,h);u="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!a.test(e)){let r=e.replace(l,c);"-"!==r.charAt(0)&&(r="-"+r),t="data"+r}}d=i.E}return new d(u,t)}function c(e){return"-"+e.toLowerCase()}function h(e){return e.charAt(1).toUpperCase()}},10317:(e,t,r)=>{"use strict";function n(e){return e.toLowerCase()}r.d(t,{S:()=>n})},97279:(e,t,r)=>{"use strict";r.d(t,{E:()=>s});var n=r(90911),i=r(49430);let o=Object.keys(i);class s extends n.R{constructor(e,t,r,n){let s=-1;if(super(e,t),a(this,"space",n),"number"==typeof r)for(;++s{"use strict";r.d(t,{R:()=>n});class n{constructor(e,t){this.property=e,this.attribute=t}}n.prototype.space=null,n.prototype.boolean=!1,n.prototype.booleanish=!1,n.prototype.overloadedBoolean=!1,n.prototype.number=!1,n.prototype.commaSeparated=!1,n.prototype.spaceSeparated=!1,n.prototype.commaOrSpaceSeparated=!1,n.prototype.mustUseProperty=!1,n.prototype.defined=!1},49430:(e,t,r)=>{"use strict";r.r(t),r.d(t,{boolean:()=>i,booleanish:()=>o,commaOrSpaceSeparated:()=>c,commaSeparated:()=>u,number:()=>a,overloadedBoolean:()=>s,spaceSeparated:()=>l});let n=0,i=h(),o=h(),s=h(),a=h(),l=h(),u=h(),c=h();function h(){return 2**++n}},99993:(e,t,r)=>{"use strict";let n;r.d(t,{x6:()=>V,TO:()=>L,r9:()=>F,Bd:()=>q});var i=r(86326),o=r(1192),s=r.n(o),a=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function l(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},r=e.match(/<\/?([^\s]+?)[/\s>]/);if(r&&(t.name=r[1],(s()[r[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var n=e.indexOf("-->");return{type:"comment",comment:-1!==n?e.slice(4,n):""}}for(var i=new RegExp(a),o=null;null!==(o=i.exec(e));)if(o[0].trim()){if(o[1]){var l=o[1].trim(),u=[l,""];l.indexOf("=")>-1&&(u=l.split("=")),t.attrs[u[0]]=u[1],i.lastIndex--}else o[2]&&(t.attrs[o[2]]=o[3].trim().substring(1,o[3].length-1))}return t}var u=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,c=/^\s*$/,h=Object.create(null);function d(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(e){var t=[];for(var r in e)t.push(r+'="'+e[r]+'"');return t.length?" "+t.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(d,"")+"";case"comment":return e+""}}let f={parse:function(e,t){t||(t={}),t.components||(t.components=h);var r,n=[],i=[],o=-1,s=!1;if(0!==e.indexOf("<")){var a=e.indexOf("<");n.push({type:"text",content:-1===a?e:e.substring(0,a)})}return e.replace(u,function(a,u){if(s){if(a!=="")return;s=!1}var h,d="/"!==a.charAt(1),f=a.startsWith("`}function nB(e,{treeAdapter:t}){return``}function nU(e,t){return tS.parse(e,t)}function nF(e,t,r){"string"==typeof e&&(r=t,t=e,e=null);let n=tS.getFragmentParser(e,r);return n.tokenizer.write(t,!0),n.getFragment()}var nj=r(69278),nK=r(42782);let nV={abandonedHeadElementChild:{reason:"Unexpected metadata element after head",description:"Unexpected element after head. Expected the element before ``",url:!1},abruptClosingOfEmptyComment:{reason:"Unexpected abruptly closed empty comment",description:"Unexpected `>` or `->`. Expected `-->` to close comments"},abruptDoctypePublicIdentifier:{reason:"Unexpected abruptly closed public identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the public identifier"},abruptDoctypeSystemIdentifier:{reason:"Unexpected abruptly closed system identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the identifier identifier"},absenceOfDigitsInNumericCharacterReference:{reason:"Unexpected non-digit at start of numeric character reference",description:"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},cdataInHtmlContent:{reason:"Unexpected CDATA section in HTML",description:"Unexpected `` in ``",description:"Unexpected text character `%c`. Only use text in `