@rnacanvas/forms.edit 6.0.1 → 6.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["forms.edit"]=e():t["forms.edit"]=e()}(this,(()=>(()=>{var t={51:t=>{"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgOTYgOTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIGlkPSJJY29uc19DaGVja21hcmsiIG92ZXJmbG93PSJoaWRkZW4iPjxwYXRoIGQ9Ik04Ni4xIDE1LjggMzQuOSA2NC4yIDEwLjMgMzkgMS44IDQ3LjEgMzQuNSA4MC43IDQzLjEgNzIuNyA5NC4yIDI0LjJaIiBzdHJva2U9IiNGRkZGRkYiIHN0cm9rZS13aWR0aD0iMy42NjY2NyIgZmlsbD0iI0ZGRkZGRiIvPjwvc3ZnPg=="},56:(t,e,n)=>{"use strict";t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},72:t=>{"use strict";var e=[];function n(t){for(var n=-1,r=0;r<e.length;r++)if(e[r].identifier===t){n=r;break}return n}function r(t,r){for(var s={},o=[],a=0;a<t.length;a++){var u=t[a],h=r.base?u[0]+r.base:u[0],l=s[h]||0,c="".concat(h," ").concat(l);s[h]=l+1;var d=n(c),f={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==d)e[d].references++,e[d].updater(f);else{var p=i(f,r);r.byIndex=a,e.splice(a,0,{identifier:c,updater:p,references:1})}o.push(c)}return o}function i(t,e){var n=e.domAPI(e);return n.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;n.update(t=e)}else n.remove()}}t.exports=function(t,i){var s=r(t=t||[],i=i||{});return function(t){t=t||[];for(var o=0;o<s.length;o++){var a=n(s[o]);e[a].references--}for(var u=r(t,i),h=0;h<s.length;h++){var l=n(s[h]);0===e[l].references&&(e[l].updater(),e.splice(l,1))}s=u}}},113:t=>{"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},139:function(t){var e;e=()=>(()=>{"use strict";var t={826:(t,e,n)=>{n.d(e,{A:()=>u,y:()=>a});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,"._xow9qroX8E0n35EgMyS {\n cursor: grab;\n}\n\n._xow9qroX8E0n35EgMyS:active {\n cursor: grabbing;\n}\n",""]);var a="_xow9qroX8E0n35EgMyS";const u=o},314:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,r,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var o={};if(r)for(var a=0;a<this.length;a++){var u=this[a][0];null!=u&&(o[u]=!0)}for(var h=0;h<t.length;h++){var l=[].concat(t[h]);r&&o[l[0]]||(void 0!==s&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=s),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),e.push(l))}},e}},601:t=>{t.exports=function(t){return t[1]}},72:t=>{var e=[];function n(t){for(var n=-1,r=0;r<e.length;r++)if(e[r].identifier===t){n=r;break}return n}function r(t,r){for(var s={},o=[],a=0;a<t.length;a++){var u=t[a],h=r.base?u[0]+r.base:u[0],l=s[h]||0,c="".concat(h," ").concat(l);s[h]=l+1;var d=n(c),f={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==d)e[d].references++,e[d].updater(f);else{var p=i(f,r);r.byIndex=a,e.splice(a,0,{identifier:c,updater:p,references:1})}o.push(c)}return o}function i(t,e){var n=e.domAPI(e);return n.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;n.update(t=e)}else n.remove()}}t.exports=function(t,i){var s=r(t=t||[],i=i||{});return function(t){t=t||[];for(var o=0;o<s.length;o++){var a=n(s[o]);e[a].references--}for(var u=r(t,i),h=0;h<s.length;h++){var l=n(s[h]);0===e[l].references&&(e[l].updater(),e.splice(l,1))}s=u}}},659:t=>{var e={};t.exports=function(t,n){var r=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},540:t=>{t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},56:(t,e,n)=>{t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},825:t=>{t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var s=n.sourceMap;s&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),e.styleTagTransform(r,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},113:t=>{t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={id:r,exports:{}};return t[r](s,s.exports,n),s.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nc=void 0;var r={};n.r(r),n.d(r,{DragTranslater:()=>v});var i=n(72),s=n.n(i),o=n(825),a=n.n(o),u=n(659),h=n.n(u),l=n(56),c=n.n(l),d=n(540),f=n.n(d),p=n(113),m=n.n(p),g=n(826),y={};y.styleTagTransform=m(),y.setAttributes=c(),y.insert=h().bind(null,"head"),y.domAPI=a(),y.insertStyleElement=f(),s()(g.A,y),g.A&&g.A.locals&&g.A.locals;class v{constructor(t){this.targetForm=t,this.mouseIsDown=!1,this.interactionDepth="shallow",window.addEventListener("mousedown",(t=>this.handleMouseDown(t))),window.addEventListener("mousemove",(t=>this.handleMouseMove(t))),window.addEventListener("mouseup",(t=>this.handleMouseUp(t))),t.addEventListener("mouseover",(e=>{e.target!==t||t.classList.add(g.y)})),t.addEventListener("mouseout",(e=>{e.target!==t||t.classList.remove(g.y)}))}get currentTranslation(){let t=this.targetForm.getBoundingClientRect(),e=t.x,n=t.y,r=this.targetForm.style.translate;this.targetForm.style.translate="0px 0px";let i=this.targetForm.getBoundingClientRect(),s=i.x,o=i.y;return this.targetForm.style.translate=r,{x:e-s,y:n-o}}set currentTranslation(t){this.targetForm.style.translate=`${t.x}px ${t.y}px`}untranslate(){this.targetForm.style.translate="0px 0px"}handleMouseDown(t){this.lastMouseDown=t,this.mouseIsDown=!0}handleMouseMove(t){if(!this.mouseIsDown)return;if(!this.lastMouseDown)return;if(!(this.lastMouseDown.target instanceof Node))return;if("shallow"==this.interactionDepth){if(this.lastMouseDown.target!==this.targetForm)return}else if(!this.targetForm.contains(this.lastMouseDown.target))return;let e=this.currentTranslation;this.currentTranslation={x:e.x+t.movementX,y:e.y+t.movementY}}handleMouseUp(t){this.mouseIsDown=!1}}return r})(),t.exports=e()},169:function(t){t.exports=(()=>{var t={986:function(t){t.exports=(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function n(t){var e=0;return t.forEach((function(t){return e+=t})),e}function r(t){return n(t)/t.length}function i(t){t.sort((function(t,e){return t-e}))}t.r(e),t.d(e,{areWithin:()=>d,average:()=>r,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>h,mean:()=>r,median:()=>a,min:()=>u,sortNumbers:()=>i,sortNumbersAscending:()=>i,sortNumbersDescending:()=>f,sortedNumbers:()=>o,sortedNumbersAscending:()=>o,sortedNumbersDescending:()=>p,sum:()=>n});var s=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,s=e.length;i<s;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};function o(t){var e=s([],t,!0);return i(e),e}function a(t){if(0==t.length)return NaN;var e=o(t);if(e.length%2!=0)return e[Math.floor(e.length/2)];var n=e.length/2,i=n-1;return r([e[n],e[i]])}function u(t){if(0==t.length)return 1/0;var e=t[0];return t.slice(1).forEach((function(t){e=Math.min(e,t)})),e}function h(t){if(0==t.length)return-1/0;var e=t[0];return t.slice(1).forEach((function(t){e=Math.max(e,t)})),e}function l(t,e,n){return t>=e&&t<=n}function c(t,e,n){return t>e&&t<n}function d(t,e,n){return Math.abs(t-e)<=n}function f(t){i(t),t.reverse()}function p(t){var e=o(t);return e.reverse(),e}return e})()}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={exports:{}};return t[r].call(s.exports,s,s.exports,n),s.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";function t(t){if(0==t.length)throw new Error("The array of values is empty.");if(1==new Set(t).size)return t[0];throw new Error("Not all values are the same.")}n.r(r),n.d(r,{consensusValue:()=>t,mostCommonValue:()=>s});var e=n(986);class i{static of(t){return{in:e=>{let n=new Set([t]);return e.filter((t=>n.has(t)))}}}}function s(t){if(0==t.length)throw new Error("The array of values is empty.");let n=[...new Set(t)],r=n.map((e=>i.of(e).in(t).length)),s=(0,e.max)(r),o=n.findIndex((e=>i.of(e).in(t).length==s));if(o<0)throw new Error("Unable to find the most common value.");return n[o]}})(),r})()},290:(t,e,n)=>{"use strict";n.d(e,{A:()=>u,_:()=>a});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.kcto2iumhdvv3MluNmLw {\n position: absolute;\n top: 13px;\n right: 17px;\n\n margin: 0px;\n\n border: none;\n outline: none;\n\n padding: 3px 12px;\n border-radius: 3px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 16px;\n font-weight: 600;\n font-style: normal;\n color: #871414;\n\n pointer-events: auto;\n\n cursor: pointer;\n\n user-select: none;\n -webkit-user-select: none;\n\n background-color: transparent;\n}\n\n.kcto2iumhdvv3MluNmLw:hover {\n background-color: #cab8d99c;\n}\n\n.kcto2iumhdvv3MluNmLw:active {\n background-color: #aa8eba9e;\n}\n',""]);var a="kcto2iumhdvv3MluNmLw";const u=o},314:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,r,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var o={};if(r)for(var a=0;a<this.length;a++){var u=this[a][0];null!=u&&(o[u]=!0)}for(var h=0;h<t.length;h++){var l=[].concat(t[h]);r&&o[l[0]]||(void 0!==s&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=s),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),e.push(l))}},e}},417:t=>{"use strict";t.exports=function(t,e){return e||(e={}),t?(t=String(t.__esModule?t.default:t),/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]|(%20)/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t):t}},419:(t,e,n)=>{"use strict";n.d(e,{A:()=>u,P:()=>a});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.cstoj4QoATbKp66WQrBA {\n border: 1px solid #75758c;\n border-radius: 2px;\n\n outline: none;\n\n width: 90px;\n\n padding: 3px 6px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 700;\n font-style: normal;\n color: black;\n\n pointer-events: auto;\n}\n\n.cstoj4QoATbKp66WQrBA:hover {\n border-color: #0a0a0b;\n}\n\n.cstoj4QoATbKp66WQrBA:focus {\n border-color: #0a0a0b;\n\n outline: none;\n}\n',""]);var a="cstoj4QoATbKp66WQrBA";const u=o},420:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>l,KQ:()=>a,UJ:()=>h,wx:()=>u});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.wkp2L4HpJzRg7XSLEG0O {\n width: 266px;\n height: 524px;\n\n border-radius: 16px;\n\n border: 1px solid #220536;\n\n padding: 23px 32px 50px 36px;\n\n background-color: #f4f5ff;\n\n backdrop-filter: blur(20px);\n -webkit-backdrop-filter: blur(20px);\n\n box-shadow: 0 0 14px rgba(219, 219, 238, 0.09);\n}\n\n.Y7tezdMOsnQfs2CQtMUR {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 35px;\n font-weight: 700;\n font-style: normal;\n color: black;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.blLx0TnwxHwlX8qvUigb {\n margin: 27px 0px 0px 27px;\n\n display: flex;\n flex-direction: column;\n align-items: start;\n\n pointer-events: none;\n}\n',""]);var a="wkp2L4HpJzRg7XSLEG0O",u="Y7tezdMOsnQfs2CQtMUR",h="blLx0TnwxHwlX8qvUigb";const l=o},540:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},584:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>c,OW:()=>h,Qq:()=>u,Z7:()=>l,kY:()=>a});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.PxTHOvfPECESZe6OxVvg {\n display: flex;\n flex-direction: row;\n align-items: center;\n\n align-self: start;\n\n pointer-events: auto;\n\n cursor: pointer;\n}\n\n.hcTi6yK4eMJ8Mc61rqGY {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 700;\n font-style: normal;\n color: black;\n\n pointer-events: auto;\n\n cursor: pointer;\n\n outline: none;\n}\n\n.PxTHOvfPECESZe6OxVvg:hover .hcTi6yK4eMJ8Mc61rqGY {\n text-decoration: underline;\n}\n\n.lVFnQ83G0WswDpb_v1xo {\n margin-right: 6px;\n\n pointer-events: auto;\n}\n\n.MwdzfSTS8dcFWG_qqlI9 {\n transform: rotate(90deg);\n}\n',""]);var a="PxTHOvfPECESZe6OxVvg",u="hcTi6yK4eMJ8Mc61rqGY",h="lVFnQ83G0WswDpb_v1xo",l="MwdzfSTS8dcFWG_qqlI9";const c=o},601:t=>{"use strict";t.exports=function(t){return t[1]}},633:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>m,IU:()=>f,Qs:()=>d,aW:()=>c,ho:()=>l,lf:()=>a,m9:()=>h,wx:()=>u,x3:()=>p});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.dimGBV0h2P1QB3V_Zhmc {\n display: flex;\n flex-direction: column;\n}\n\n.sE2YASqaiPZdV9dz58A7 {\n display: flex;\n flex-direction: row;\n align-items: center;\n\n align-self: start;\n\n pointer-events: auto;\n\n cursor: pointer;\n}\n\n.BYZcOJiOX5zLxIrbc3gR {\n margin-right: 6px;\n\n pointer-events: auto;\n}\n\n.mOH6VML7hViujtEoNaOA .BYZcOJiOX5zLxIrbc3gR {\n transform: rotate(90deg);\n}\n\n.u5w42CVwU4PQ7GiSuy4G {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 700;\n font-style: normal;\n color: black;\n\n pointer-events: auto;\n\n cursor: pointer;\n\n outline: none;\n}\n\n.sE2YASqaiPZdV9dz58A7:hover .u5w42CVwU4PQ7GiSuy4G {\n text-decoration: underline;\n}\n\n.TCp4dzyF9qmbX3ejDOkL {\n margin: 9px 0px 0px 12px;\n\n display: flex;\n flex-direction: column;\n}\n\n.WOjw8GKoS54KQAOlumMa {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 400;\n font-style: normal;\n color: black;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.GGzbmTCCUyvg3GGQc1zr {\n margin-top: 15px;\n\n visibility: collapse;\n}\n\n.mOH6VML7hViujtEoNaOA .GGzbmTCCUyvg3GGQc1zr {\n visibility: visible;\n}\n',""]);var a="dimGBV0h2P1QB3V_Zhmc",u="sE2YASqaiPZdV9dz58A7",h="BYZcOJiOX5zLxIrbc3gR",l="mOH6VML7hViujtEoNaOA",c="u5w42CVwU4PQ7GiSuy4G",d="TCp4dzyF9qmbX3ejDOkL",f="WOjw8GKoS54KQAOlumMa",p="GGzbmTCCUyvg3GGQc1zr";const m=o},659:t=>{"use strict";var e={};t.exports=function(t,n){var r=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},678:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>h,ZZ:()=>a,o3:()=>u});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.rIHrsark1WbeRGC9M1ZY {\n display: flex;\n flex-direction: row;\n align-items: center;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 700;\n font-style: normal;\n color: black;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: auto;\n}\n\n.P5PJGaHxnhsEaezm8Nhg {\n color: black;\n\n cursor: pointer;\n\n text-decoration: none;\n}\n\n.P5PJGaHxnhsEaezm8Nhg:hover {\n text-decoration: underline;\n}\n',""]);var a="rIHrsark1WbeRGC9M1ZY",u="P5PJGaHxnhsEaezm8Nhg";const h=o},692:function(t,e){var n;!function(e,n){"use strict";"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,(function(r,i){"use strict";var s=[],o=Object.getPrototypeOf,a=s.slice,u=s.flat?function(t){return s.flat.call(t)}:function(t){return s.concat.apply([],t)},h=s.push,l=s.indexOf,c={},d=c.toString,f=c.hasOwnProperty,p=f.toString,m=p.call(Object),g={},y=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},v=function(t){return null!=t&&t===t.window},w=r.document,x={type:!0,src:!0,nonce:!0,noModule:!0};function b(t,e,n){var r,i,s=(n=n||w).createElement("script");if(s.text=t,e)for(r in x)(i=e[r]||e.getAttribute&&e.getAttribute(r))&&s.setAttribute(r,i);n.head.appendChild(s).parentNode.removeChild(s)}function k(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?c[d.call(t)]||"object":typeof t}var N="3.7.1",_=/HTML$/i,T=function(t,e){return new T.fn.init(t,e)};function S(t){var e=!!t&&"length"in t&&t.length,n=k(t);return!y(t)&&!v(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function E(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}T.fn=T.prototype={jquery:N,constructor:T,length:0,toArray:function(){return a.call(this)},get:function(t){return null==t?a.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=T.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return T.each(this,t)},map:function(t){return this.pushStack(T.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(T.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(T.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:h,sort:s.sort,splice:s.splice},T.extend=T.fn.extend=function(){var t,e,n,r,i,s,o=arguments[0]||{},a=1,u=arguments.length,h=!1;for("boolean"==typeof o&&(h=o,o=arguments[a]||{},a++),"object"==typeof o||y(o)||(o={}),a===u&&(o=this,a--);a<u;a++)if(null!=(t=arguments[a]))for(e in t)r=t[e],"__proto__"!==e&&o!==r&&(h&&r&&(T.isPlainObject(r)||(i=Array.isArray(r)))?(n=o[e],s=i&&!Array.isArray(n)?[]:i||T.isPlainObject(n)?n:{},i=!1,o[e]=T.extend(h,s,r)):void 0!==r&&(o[e]=r));return o},T.extend({expando:"jQuery"+(N+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==d.call(t)||(e=o(t))&&("function"!=typeof(n=f.call(e,"constructor")&&e.constructor)||p.call(n)!==m))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){b(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,r=0;if(S(t))for(n=t.length;r<n&&!1!==e.call(t[r],r,t[r]);r++);else for(r in t)if(!1===e.call(t[r],r,t[r]))break;return t},text:function(t){var e,n="",r=0,i=t.nodeType;if(!i)for(;e=t[r++];)n+=T.text(e);return 1===i||11===i?t.textContent:9===i?t.documentElement.textContent:3===i||4===i?t.nodeValue:n},makeArray:function(t,e){var n=e||[];return null!=t&&(S(Object(t))?T.merge(n,"string"==typeof t?[t]:t):h.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:l.call(e,t,n)},isXMLDoc:function(t){var e=t&&t.namespaceURI,n=t&&(t.ownerDocument||t).documentElement;return!_.test(e||n&&n.nodeName||"HTML")},merge:function(t,e){for(var n=+e.length,r=0,i=t.length;r<n;r++)t[i++]=e[r];return t.length=i,t},grep:function(t,e,n){for(var r=[],i=0,s=t.length,o=!n;i<s;i++)!e(t[i],i)!==o&&r.push(t[i]);return r},map:function(t,e,n){var r,i,s=0,o=[];if(S(t))for(r=t.length;s<r;s++)null!=(i=e(t[s],s,n))&&o.push(i);else for(s in t)null!=(i=e(t[s],s,n))&&o.push(i);return u(o)},guid:1,support:g}),"function"==typeof Symbol&&(T.fn[Symbol.iterator]=s[Symbol.iterator]),T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){c["[object "+e+"]"]=e.toLowerCase()}));var M=s.pop,C=s.sort,A=s.splice,L="[\\x20\\t\\r\\n\\f]",O=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g");T.contains=function(t,e){var n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(t.contains?t.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))};var j=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function D(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}T.escapeSelector=function(t){return(t+"").replace(j,D)};var W=w,P=h;!function(){var t,e,n,i,o,u,h,c,d,p,m=P,y=T.expando,v=0,w=0,x=tt(),b=tt(),k=tt(),N=tt(),_=function(t,e){return t===e&&(o=!0),0},S="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",j="(?:\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",D="\\["+L+"*("+j+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+j+"))|)"+L+"*\\]",q=":("+j+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+D+")*)|.*)\\)|)",I=new RegExp(L+"+","g"),R=new RegExp("^"+L+"*,"+L+"*"),H=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),z=new RegExp(L+"|>"),F=new RegExp(q),B=new RegExp("^"+j+"$"),G={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j+"|[*])"),ATTR:new RegExp("^"+D),PSEUDO:new RegExp("^"+q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+S+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},V=/^(?:input|select|textarea|button)$/i,U=/^h\d$/i,X=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,$=/[+~]/,Y=new RegExp("\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\([^\\r\\n\\f])","g"),Q=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},J=function(){ut()},Z=dt((function(t){return!0===t.disabled&&E(t,"fieldset")}),{dir:"parentNode",next:"legend"});try{m.apply(s=a.call(W.childNodes),W.childNodes),s[W.childNodes.length].nodeType}catch(t){m={apply:function(t,e){P.apply(t,a.call(e))},call:function(t){P.apply(t,a.call(arguments,1))}}}function K(t,e,n,r){var i,s,o,a,h,l,f,p=e&&e.ownerDocument,v=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==v&&9!==v&&11!==v)return n;if(!r&&(ut(e),e=e||u,c)){if(11!==v&&(h=X.exec(t)))if(i=h[1]){if(9===v){if(!(o=e.getElementById(i)))return n;if(o.id===i)return m.call(n,o),n}else if(p&&(o=p.getElementById(i))&&K.contains(e,o)&&o.id===i)return m.call(n,o),n}else{if(h[2])return m.apply(n,e.getElementsByTagName(t)),n;if((i=h[3])&&e.getElementsByClassName)return m.apply(n,e.getElementsByClassName(i)),n}if(!(N[t+" "]||d&&d.test(t))){if(f=t,p=e,1===v&&(z.test(t)||H.test(t))){for((p=$.test(t)&&at(e.parentNode)||e)==e&&g.scope||((a=e.getAttribute("id"))?a=T.escapeSelector(a):e.setAttribute("id",a=y)),s=(l=lt(t)).length;s--;)l[s]=(a?"#"+a:":scope")+" "+ct(l[s]);f=l.join(",")}try{return m.apply(n,p.querySelectorAll(f)),n}catch(e){N(t,!0)}finally{a===y&&e.removeAttribute("id")}}}return vt(t.replace(O,"$1"),e,n,r)}function tt(){var t=[];return function n(r,i){return t.push(r+" ")>e.cacheLength&&delete n[t.shift()],n[r+" "]=i}}function et(t){return t[y]=!0,t}function nt(t){var e=u.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function rt(t){return function(e){return E(e,"input")&&e.type===t}}function it(t){return function(e){return(E(e,"input")||E(e,"button"))&&e.type===t}}function st(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&Z(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ot(t){return et((function(e){return e=+e,et((function(n,r){for(var i,s=t([],n.length,e),o=s.length;o--;)n[i=s[o]]&&(n[i]=!(r[i]=n[i]))}))}))}function at(t){return t&&void 0!==t.getElementsByTagName&&t}function ut(t){var n,r=t?t.ownerDocument||t:W;return r!=u&&9===r.nodeType&&r.documentElement?(h=(u=r).documentElement,c=!T.isXMLDoc(u),p=h.matches||h.webkitMatchesSelector||h.msMatchesSelector,h.msMatchesSelector&&W!=u&&(n=u.defaultView)&&n.top!==n&&n.addEventListener("unload",J),g.getById=nt((function(t){return h.appendChild(t).id=T.expando,!u.getElementsByName||!u.getElementsByName(T.expando).length})),g.disconnectedMatch=nt((function(t){return p.call(t,"*")})),g.scope=nt((function(){return u.querySelectorAll(":scope")})),g.cssHas=nt((function(){try{return u.querySelector(":has(*,:jqfake)"),!1}catch(t){return!0}})),g.getById?(e.filter.ID=function(t){var e=t.replace(Y,Q);return function(t){return t.getAttribute("id")===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&c){var n=e.getElementById(t);return n?[n]:[]}}):(e.filter.ID=function(t){var e=t.replace(Y,Q);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&c){var n,r,i,s=e.getElementById(t);if(s){if((n=s.getAttributeNode("id"))&&n.value===t)return[s];for(i=e.getElementsByName(t),r=0;s=i[r++];)if((n=s.getAttributeNode("id"))&&n.value===t)return[s]}return[]}}),e.find.TAG=function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):e.querySelectorAll(t)},e.find.CLASS=function(t,e){if(void 0!==e.getElementsByClassName&&c)return e.getElementsByClassName(t)},d=[],nt((function(t){var e;h.appendChild(t).innerHTML="<a id='"+y+"' href='' disabled='disabled'></a><select id='"+y+"-\r\\' disabled='disabled'><option selected=''></option></select>",t.querySelectorAll("[selected]").length||d.push("\\["+L+"*(?:value|"+S+")"),t.querySelectorAll("[id~="+y+"-]").length||d.push("~="),t.querySelectorAll("a#"+y+"+*").length||d.push(".#.+[+~]"),t.querySelectorAll(":checked").length||d.push(":checked"),(e=u.createElement("input")).setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),h.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(e=u.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||d.push("\\["+L+"*name"+L+"*="+L+"*(?:''|\"\")")})),g.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),_=function(t,e){if(t===e)return o=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!g.sortDetached&&e.compareDocumentPosition(t)===n?t===u||t.ownerDocument==W&&K.contains(W,t)?-1:e===u||e.ownerDocument==W&&K.contains(W,e)?1:i?l.call(i,t)-l.call(i,e):0:4&n?-1:1)},u):u}for(t in K.matches=function(t,e){return K(t,null,null,e)},K.matchesSelector=function(t,e){if(ut(t),c&&!N[e+" "]&&(!d||!d.test(e)))try{var n=p.call(t,e);if(n||g.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){N(e,!0)}return K(e,u,null,[t]).length>0},K.contains=function(t,e){return(t.ownerDocument||t)!=u&&ut(t),T.contains(t,e)},K.attr=function(t,n){(t.ownerDocument||t)!=u&&ut(t);var r=e.attrHandle[n.toLowerCase()],i=r&&f.call(e.attrHandle,n.toLowerCase())?r(t,n,!c):void 0;return void 0!==i?i:t.getAttribute(n)},K.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},T.uniqueSort=function(t){var e,n=[],r=0,s=0;if(o=!g.sortStable,i=!g.sortStable&&a.call(t,0),C.call(t,_),o){for(;e=t[s++];)e===t[s]&&(r=n.push(s));for(;r--;)A.call(t,n[r],1)}return i=null,t},T.fn.uniqueSort=function(){return this.pushStack(T.uniqueSort(a.apply(this)))},e=T.expr={cacheLength:50,createPseudo:et,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(Y,Q),t[3]=(t[3]||t[4]||t[5]||"").replace(Y,Q),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||K.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&K.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return G.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&F.test(n)&&(e=lt(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(Y,Q).toLowerCase();return"*"===t?function(){return!0}:function(t){return E(t,e)}},CLASS:function(t){var e=x[t+" "];return e||(e=new RegExp("(^|"+L+")"+t+"("+L+"|$)"))&&x(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(r){var i=K.attr(r,t);return null==i?"!="===e:!e||(i+="","="===e?i===n:"!="===e?i!==n:"^="===e?n&&0===i.indexOf(n):"*="===e?n&&i.indexOf(n)>-1:"$="===e?n&&i.slice(-n.length)===n:"~="===e?(" "+i.replace(I," ")+" ").indexOf(n)>-1:"|="===e&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,r,i){var s="nth"!==t.slice(0,3),o="last"!==t.slice(-4),a="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,u){var h,l,c,d,f,p=s!==o?"nextSibling":"previousSibling",m=e.parentNode,g=a&&e.nodeName.toLowerCase(),w=!u&&!a,x=!1;if(m){if(s){for(;p;){for(c=e;c=c[p];)if(a?E(c,g):1===c.nodeType)return!1;f=p="only"===t&&!f&&"nextSibling"}return!0}if(f=[o?m.firstChild:m.lastChild],o&&w){for(x=(d=(h=(l=m[y]||(m[y]={}))[t]||[])[0]===v&&h[1])&&h[2],c=d&&m.childNodes[d];c=++d&&c&&c[p]||(x=d=0)||f.pop();)if(1===c.nodeType&&++x&&c===e){l[t]=[v,d,x];break}}else if(w&&(x=d=(h=(l=e[y]||(e[y]={}))[t]||[])[0]===v&&h[1]),!1===x)for(;(c=++d&&c&&c[p]||(x=d=0)||f.pop())&&(!(a?E(c,g):1===c.nodeType)||!++x||(w&&((l=c[y]||(c[y]={}))[t]=[v,x]),c!==e)););return(x-=i)===r||x%r==0&&x/r>=0}}},PSEUDO:function(t,n){var r,i=e.pseudos[t]||e.setFilters[t.toLowerCase()]||K.error("unsupported pseudo: "+t);return i[y]?i(n):i.length>1?(r=[t,t,"",n],e.setFilters.hasOwnProperty(t.toLowerCase())?et((function(t,e){for(var r,s=i(t,n),o=s.length;o--;)t[r=l.call(t,s[o])]=!(e[r]=s[o])})):function(t){return i(t,0,r)}):i}},pseudos:{not:et((function(t){var e=[],n=[],r=yt(t.replace(O,"$1"));return r[y]?et((function(t,e,n,i){for(var s,o=r(t,null,i,[]),a=t.length;a--;)(s=o[a])&&(t[a]=!(e[a]=s))})):function(t,i,s){return e[0]=t,r(e,null,s,n),e[0]=null,!n.pop()}})),has:et((function(t){return function(e){return K(t,e).length>0}})),contains:et((function(t){return t=t.replace(Y,Q),function(e){return(e.textContent||T.text(e)).indexOf(t)>-1}})),lang:et((function(t){return B.test(t||"")||K.error("unsupported lang: "+t),t=t.replace(Y,Q).toLowerCase(),function(e){var n;do{if(n=c?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(t){var e=r.location&&r.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===h},focus:function(t){return t===function(){try{return u.activeElement}catch(t){}}()&&u.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:st(!1),disabled:st(!0),checked:function(t){return E(t,"input")&&!!t.checked||E(t,"option")&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!e.pseudos.empty(t)},header:function(t){return U.test(t.nodeName)},input:function(t){return V.test(t.nodeName)},button:function(t){return E(t,"input")&&"button"===t.type||E(t,"button")},text:function(t){var e;return E(t,"input")&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:ot((function(){return[0]})),last:ot((function(t,e){return[e-1]})),eq:ot((function(t,e,n){return[n<0?n+e:n]})),even:ot((function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t})),odd:ot((function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t})),lt:ot((function(t,e,n){var r;for(r=n<0?n+e:n>e?e:n;--r>=0;)t.push(r);return t})),gt:ot((function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t}))}},e.pseudos.nth=e.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})e.pseudos[t]=rt(t);for(t in{submit:!0,reset:!0})e.pseudos[t]=it(t);function ht(){}function lt(t,n){var r,i,s,o,a,u,h,l=b[t+" "];if(l)return n?0:l.slice(0);for(a=t,u=[],h=e.preFilter;a;){for(o in r&&!(i=R.exec(a))||(i&&(a=a.slice(i[0].length)||a),u.push(s=[])),r=!1,(i=H.exec(a))&&(r=i.shift(),s.push({value:r,type:i[0].replace(O," ")}),a=a.slice(r.length)),e.filter)!(i=G[o].exec(a))||h[o]&&!(i=h[o](i))||(r=i.shift(),s.push({value:r,type:o,matches:i}),a=a.slice(r.length));if(!r)break}return n?a.length:a?K.error(t):b(t,u).slice(0)}function ct(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function dt(t,e,n){var r=e.dir,i=e.next,s=i||r,o=n&&"parentNode"===s,a=w++;return e.first?function(e,n,i){for(;e=e[r];)if(1===e.nodeType||o)return t(e,n,i);return!1}:function(e,n,u){var h,l,c=[v,a];if(u){for(;e=e[r];)if((1===e.nodeType||o)&&t(e,n,u))return!0}else for(;e=e[r];)if(1===e.nodeType||o)if(l=e[y]||(e[y]={}),i&&E(e,i))e=e[r]||e;else{if((h=l[s])&&h[0]===v&&h[1]===a)return c[2]=h[2];if(l[s]=c,c[2]=t(e,n,u))return!0}return!1}}function ft(t){return t.length>1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function pt(t,e,n,r,i){for(var s,o=[],a=0,u=t.length,h=null!=e;a<u;a++)(s=t[a])&&(n&&!n(s,r,i)||(o.push(s),h&&e.push(a)));return o}function mt(t,e,n,r,i,s){return r&&!r[y]&&(r=mt(r)),i&&!i[y]&&(i=mt(i,s)),et((function(s,o,a,u){var h,c,d,f,p=[],g=[],y=o.length,v=s||function(t,e,n){for(var r=0,i=e.length;r<i;r++)K(t,e[r],n);return n}(e||"*",a.nodeType?[a]:a,[]),w=!t||!s&&e?v:pt(v,p,t,a,u);if(n?n(w,f=i||(s?t:y||r)?[]:o,a,u):f=w,r)for(h=pt(f,g),r(h,[],a,u),c=h.length;c--;)(d=h[c])&&(f[g[c]]=!(w[g[c]]=d));if(s){if(i||t){if(i){for(h=[],c=f.length;c--;)(d=f[c])&&h.push(w[c]=d);i(null,f=[],h,u)}for(c=f.length;c--;)(d=f[c])&&(h=i?l.call(s,d):p[c])>-1&&(s[h]=!(o[h]=d))}}else f=pt(f===o?f.splice(y,f.length):f),i?i(null,o,f,u):m.apply(o,f)}))}function gt(t){for(var r,i,s,o=t.length,a=e.relative[t[0].type],u=a||e.relative[" "],h=a?1:0,c=dt((function(t){return t===r}),u,!0),d=dt((function(t){return l.call(r,t)>-1}),u,!0),f=[function(t,e,i){var s=!a&&(i||e!=n)||((r=e).nodeType?c(t,e,i):d(t,e,i));return r=null,s}];h<o;h++)if(i=e.relative[t[h].type])f=[dt(ft(f),i)];else{if((i=e.filter[t[h].type].apply(null,t[h].matches))[y]){for(s=++h;s<o&&!e.relative[t[s].type];s++);return mt(h>1&&ft(f),h>1&&ct(t.slice(0,h-1).concat({value:" "===t[h-2].type?"*":""})).replace(O,"$1"),i,h<s&>(t.slice(h,s)),s<o&>(t=t.slice(s)),s<o&&ct(t))}f.push(i)}return ft(f)}function yt(t,r){var i,s=[],o=[],a=k[t+" "];if(!a){for(r||(r=lt(t)),i=r.length;i--;)(a=gt(r[i]))[y]?s.push(a):o.push(a);a=k(t,function(t,r){var i=r.length>0,s=t.length>0,o=function(o,a,h,l,d){var f,p,g,y=0,w="0",x=o&&[],b=[],k=n,N=o||s&&e.find.TAG("*",d),_=v+=null==k?1:Math.random()||.1,S=N.length;for(d&&(n=a==u||a||d);w!==S&&null!=(f=N[w]);w++){if(s&&f){for(p=0,a||f.ownerDocument==u||(ut(f),h=!c);g=t[p++];)if(g(f,a||u,h)){m.call(l,f);break}d&&(v=_)}i&&((f=!g&&f)&&y--,o&&x.push(f))}if(y+=w,i&&w!==y){for(p=0;g=r[p++];)g(x,b,a,h);if(o){if(y>0)for(;w--;)x[w]||b[w]||(b[w]=M.call(l));b=pt(b)}m.apply(l,b),d&&!o&&b.length>0&&y+r.length>1&&T.uniqueSort(l)}return d&&(v=_,n=k),x};return i?et(o):o}(o,s)),a.selector=t}return a}function vt(t,n,r,i){var s,o,a,u,h,l="function"==typeof t&&t,d=!i&<(t=l.selector||t);if(r=r||[],1===d.length){if((o=d[0]=d[0].slice(0)).length>2&&"ID"===(a=o[0]).type&&9===n.nodeType&&c&&e.relative[o[1].type]){if(!(n=(e.find.ID(a.matches[0].replace(Y,Q),n)||[])[0]))return r;l&&(n=n.parentNode),t=t.slice(o.shift().value.length)}for(s=G.needsContext.test(t)?0:o.length;s--&&(a=o[s],!e.relative[u=a.type]);)if((h=e.find[u])&&(i=h(a.matches[0].replace(Y,Q),$.test(o[0].type)&&at(n.parentNode)||n))){if(o.splice(s,1),!(t=i.length&&ct(o)))return m.apply(r,i),r;break}}return(l||yt(t,d))(i,n,!c,r,!n||$.test(t)&&at(n.parentNode)||n),r}ht.prototype=e.filters=e.pseudos,e.setFilters=new ht,g.sortStable=y.split("").sort(_).join("")===y,ut(),g.sortDetached=nt((function(t){return 1&t.compareDocumentPosition(u.createElement("fieldset"))})),T.find=K,T.expr[":"]=T.expr.pseudos,T.unique=T.uniqueSort,K.compile=yt,K.select=vt,K.setDocument=ut,K.tokenize=lt,K.escape=T.escapeSelector,K.getText=T.text,K.isXML=T.isXMLDoc,K.selectors=T.expr,K.support=T.support,K.uniqueSort=T.uniqueSort}();var q=function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&T(t).is(n))break;r.push(t)}return r},I=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},R=T.expr.match.needsContext,H=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function z(t,e,n){return y(e)?T.grep(t,(function(t,r){return!!e.call(t,r,t)!==n})):e.nodeType?T.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?T.grep(t,(function(t){return l.call(e,t)>-1!==n})):T.filter(e,t,n)}T.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?T.find.matchesSelector(r,t)?[r]:[]:T.find.matches(t,T.grep(e,(function(t){return 1===t.nodeType})))},T.fn.extend({find:function(t){var e,n,r=this.length,i=this;if("string"!=typeof t)return this.pushStack(T(t).filter((function(){for(e=0;e<r;e++)if(T.contains(i[e],this))return!0})));for(n=this.pushStack([]),e=0;e<r;e++)T.find(t,i[e],n);return r>1?T.uniqueSort(n):n},filter:function(t){return this.pushStack(z(this,t||[],!1))},not:function(t){return this.pushStack(z(this,t||[],!0))},is:function(t){return!!z(this,"string"==typeof t&&R.test(t)?T(t):t||[],!1).length}});var F,B=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(T.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||F,"string"==typeof t){if(!(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:B.exec(t))||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof T?e[0]:e,T.merge(this,T.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:w,!0)),H.test(r[1])&&T.isPlainObject(e))for(r in e)y(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return(i=w.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):y(t)?void 0!==n.ready?n.ready(t):t(T):T.makeArray(t,this)}).prototype=T.fn,F=T(w);var G=/^(?:parents|prev(?:Until|All))/,V={children:!0,contents:!0,next:!0,prev:!0};function U(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}T.fn.extend({has:function(t){var e=T(t,this),n=e.length;return this.filter((function(){for(var t=0;t<n;t++)if(T.contains(this,e[t]))return!0}))},closest:function(t,e){var n,r=0,i=this.length,s=[],o="string"!=typeof t&&T(t);if(!R.test(t))for(;r<i;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&T.find.matchesSelector(n,t))){s.push(n);break}return this.pushStack(s.length>1?T.uniqueSort(s):s)},index:function(t){return t?"string"==typeof t?l.call(T(t),this[0]):l.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),T.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return q(t,"parentNode")},parentsUntil:function(t,e,n){return q(t,"parentNode",n)},next:function(t){return U(t,"nextSibling")},prev:function(t){return U(t,"previousSibling")},nextAll:function(t){return q(t,"nextSibling")},prevAll:function(t){return q(t,"previousSibling")},nextUntil:function(t,e,n){return q(t,"nextSibling",n)},prevUntil:function(t,e,n){return q(t,"previousSibling",n)},siblings:function(t){return I((t.parentNode||{}).firstChild,t)},children:function(t){return I(t.firstChild)},contents:function(t){return null!=t.contentDocument&&o(t.contentDocument)?t.contentDocument:(E(t,"template")&&(t=t.content||t),T.merge([],t.childNodes))}},(function(t,e){T.fn[t]=function(n,r){var i=T.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=T.filter(r,i)),this.length>1&&(V[t]||T.uniqueSort(i),G.test(t)&&i.reverse()),this.pushStack(i)}}));var X=/[^\x20\t\r\n\f]+/g;function $(t){return t}function Y(t){throw t}function Q(t,e,n,r){var i;try{t&&y(i=t.promise)?i.call(t).done(e).fail(n):t&&y(i=t.then)?i.call(t,e,n):e.apply(void 0,[t].slice(r))}catch(t){n.apply(void 0,[t])}}T.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return T.each(t.match(X)||[],(function(t,n){e[n]=!0})),e}(t):T.extend({},t);var e,n,r,i,s=[],o=[],a=-1,u=function(){for(i=i||t.once,r=e=!0;o.length;a=-1)for(n=o.shift();++a<s.length;)!1===s[a].apply(n[0],n[1])&&t.stopOnFalse&&(a=s.length,n=!1);t.memory||(n=!1),e=!1,i&&(s=n?[]:"")},h={add:function(){return s&&(n&&!e&&(a=s.length-1,o.push(n)),function e(n){T.each(n,(function(n,r){y(r)?t.unique&&h.has(r)||s.push(r):r&&r.length&&"string"!==k(r)&&e(r)}))}(arguments),n&&!e&&u()),this},remove:function(){return T.each(arguments,(function(t,e){for(var n;(n=T.inArray(e,s,n))>-1;)s.splice(n,1),n<=a&&a--})),this},has:function(t){return t?T.inArray(t,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return i=o=[],s=n="",this},disabled:function(){return!s},lock:function(){return i=o=[],n||e||(s=n=""),this},locked:function(){return!!i},fireWith:function(t,n){return i||(n=[t,(n=n||[]).slice?n.slice():n],o.push(n),e||u()),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!r}};return h},T.extend({Deferred:function(t){var e=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],n="pending",i={state:function(){return n},always:function(){return s.done(arguments).fail(arguments),this},catch:function(t){return i.then(null,t)},pipe:function(){var t=arguments;return T.Deferred((function(n){T.each(e,(function(e,r){var i=y(t[r[4]])&&t[r[4]];s[r[1]]((function(){var t=i&&i.apply(this,arguments);t&&y(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[t]:arguments)}))})),t=null})).promise()},then:function(t,n,i){var s=0;function o(t,e,n,i){return function(){var a=this,u=arguments,h=function(){var r,h;if(!(t<s)){if((r=n.apply(a,u))===e.promise())throw new TypeError("Thenable self-resolution");h=r&&("object"==typeof r||"function"==typeof r)&&r.then,y(h)?i?h.call(r,o(s,e,$,i),o(s,e,Y,i)):(s++,h.call(r,o(s,e,$,i),o(s,e,Y,i),o(s,e,$,e.notifyWith))):(n!==$&&(a=void 0,u=[r]),(i||e.resolveWith)(a,u))}},l=i?h:function(){try{h()}catch(r){T.Deferred.exceptionHook&&T.Deferred.exceptionHook(r,l.error),t+1>=s&&(n!==Y&&(a=void 0,u=[r]),e.rejectWith(a,u))}};t?l():(T.Deferred.getErrorHook?l.error=T.Deferred.getErrorHook():T.Deferred.getStackHook&&(l.error=T.Deferred.getStackHook()),r.setTimeout(l))}}return T.Deferred((function(r){e[0][3].add(o(0,r,y(i)?i:$,r.notifyWith)),e[1][3].add(o(0,r,y(t)?t:$)),e[2][3].add(o(0,r,y(n)?n:Y))})).promise()},promise:function(t){return null!=t?T.extend(t,i):i}},s={};return T.each(e,(function(t,r){var o=r[2],a=r[5];i[r[1]]=o.add,a&&o.add((function(){n=a}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),o.add(r[3].fire),s[r[0]]=function(){return s[r[0]+"With"](this===s?void 0:this,arguments),this},s[r[0]+"With"]=o.fireWith})),i.promise(s),t&&t.call(s,s),s},when:function(t){var e=arguments.length,n=e,r=Array(n),i=a.call(arguments),s=T.Deferred(),o=function(t){return function(n){r[t]=this,i[t]=arguments.length>1?a.call(arguments):n,--e||s.resolveWith(r,i)}};if(e<=1&&(Q(t,s.done(o(n)).resolve,s.reject,!e),"pending"===s.state()||y(i[n]&&i[n].then)))return s.then();for(;n--;)Q(i[n],o(n),s.reject);return s.promise()}});var J=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(t,e){r.console&&r.console.warn&&t&&J.test(t.name)&&r.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},T.readyException=function(t){r.setTimeout((function(){throw t}))};var Z=T.Deferred();function K(){w.removeEventListener("DOMContentLoaded",K),r.removeEventListener("load",K),T.ready()}T.fn.ready=function(t){return Z.then(t).catch((function(t){T.readyException(t)})),this},T.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--T.readyWait:T.isReady)||(T.isReady=!0,!0!==t&&--T.readyWait>0||Z.resolveWith(w,[T]))}}),T.ready.then=Z.then,"complete"===w.readyState||"loading"!==w.readyState&&!w.documentElement.doScroll?r.setTimeout(T.ready):(w.addEventListener("DOMContentLoaded",K),r.addEventListener("load",K));var tt=function(t,e,n,r,i,s,o){var a=0,u=t.length,h=null==n;if("object"===k(n))for(a in i=!0,n)tt(t,e,a,n[a],!0,s,o);else if(void 0!==r&&(i=!0,y(r)||(o=!0),h&&(o?(e.call(t,r),e=null):(h=e,e=function(t,e,n){return h.call(T(t),n)})),e))for(;a<u;a++)e(t[a],n,o?r:r.call(t[a],a,e(t[a],n)));return i?t:h?e.call(t):u?e(t[0],n):s},et=/^-ms-/,nt=/-([a-z])/g;function rt(t,e){return e.toUpperCase()}function it(t){return t.replace(et,"ms-").replace(nt,rt)}var st=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function ot(){this.expando=T.expando+ot.uid++}ot.uid=1,ot.prototype={cache:function(t){var e=t[this.expando];return e||(e={},st(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var r,i=this.cache(t);if("string"==typeof e)i[it(e)]=n;else for(r in e)i[it(r)]=e[r];return i},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][it(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,r=t[this.expando];if(void 0!==r){if(void 0!==e){n=(e=Array.isArray(e)?e.map(it):(e=it(e))in r?[e]:e.match(X)||[]).length;for(;n--;)delete r[e[n]]}(void 0===e||T.isEmptyObject(r))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!T.isEmptyObject(e)}};var at=new ot,ut=new ot,ht=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,lt=/[A-Z]/g;function ct(t,e,n){var r;if(void 0===n&&1===t.nodeType)if(r="data-"+e.replace(lt,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(r))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:ht.test(t)?JSON.parse(t):t)}(n)}catch(t){}ut.set(t,e,n)}else n=void 0;return n}T.extend({hasData:function(t){return ut.hasData(t)||at.hasData(t)},data:function(t,e,n){return ut.access(t,e,n)},removeData:function(t,e){ut.remove(t,e)},_data:function(t,e,n){return at.access(t,e,n)},_removeData:function(t,e){at.remove(t,e)}}),T.fn.extend({data:function(t,e){var n,r,i,s=this[0],o=s&&s.attributes;if(void 0===t){if(this.length&&(i=ut.get(s),1===s.nodeType&&!at.get(s,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&0===(r=o[n].name).indexOf("data-")&&(r=it(r.slice(5)),ct(s,r,i[r]));at.set(s,"hasDataAttrs",!0)}return i}return"object"==typeof t?this.each((function(){ut.set(this,t)})):tt(this,(function(e){var n;if(s&&void 0===e)return void 0!==(n=ut.get(s,t))||void 0!==(n=ct(s,t))?n:void 0;this.each((function(){ut.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){ut.remove(this,t)}))}}),T.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=at.get(t,e),n&&(!r||Array.isArray(n)?r=at.access(t,e,T.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=T.queue(t,e),r=n.length,i=n.shift(),s=T._queueHooks(t,e);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete s.stop,i.call(t,(function(){T.dequeue(t,e)}),s)),!r&&s&&s.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return at.get(t,n)||at.access(t,n,{empty:T.Callbacks("once memory").add((function(){at.remove(t,[e+"queue",n])}))})}}),T.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?T.queue(this[0],t):void 0===e?this:this.each((function(){var n=T.queue(this,t,e);T._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&T.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){T.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=T.Deferred(),s=this,o=this.length,a=function(){--r||i.resolveWith(s,[s])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";o--;)(n=at.get(s[o],t+"queueHooks"))&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(e)}});var dt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ft=new RegExp("^(?:([+-])=|)("+dt+")([a-z%]*)$","i"),pt=["Top","Right","Bottom","Left"],mt=w.documentElement,gt=function(t){return T.contains(t.ownerDocument,t)},yt={composed:!0};mt.getRootNode&&(gt=function(t){return T.contains(t.ownerDocument,t)||t.getRootNode(yt)===t.ownerDocument});var vt=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&>(t)&&"none"===T.css(t,"display")};function wt(t,e,n,r){var i,s,o=20,a=r?function(){return r.cur()}:function(){return T.css(t,e,"")},u=a(),h=n&&n[3]||(T.cssNumber[e]?"":"px"),l=t.nodeType&&(T.cssNumber[e]||"px"!==h&&+u)&&ft.exec(T.css(t,e));if(l&&l[3]!==h){for(u/=2,h=h||l[3],l=+u||1;o--;)T.style(t,e,l+h),(1-s)*(1-(s=a()/u||.5))<=0&&(o=0),l/=s;l*=2,T.style(t,e,l+h),n=n||[]}return n&&(l=+l||+u||0,i=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=h,r.start=l,r.end=i)),i}var xt={};function bt(t){var e,n=t.ownerDocument,r=t.nodeName,i=xt[r];return i||(e=n.body.appendChild(n.createElement(r)),i=T.css(e,"display"),e.parentNode.removeChild(e),"none"===i&&(i="block"),xt[r]=i,i)}function kt(t,e){for(var n,r,i=[],s=0,o=t.length;s<o;s++)(r=t[s]).style&&(n=r.style.display,e?("none"===n&&(i[s]=at.get(r,"display")||null,i[s]||(r.style.display="")),""===r.style.display&&vt(r)&&(i[s]=bt(r))):"none"!==n&&(i[s]="none",at.set(r,"display",n)));for(s=0;s<o;s++)null!=i[s]&&(t[s].style.display=i[s]);return t}T.fn.extend({show:function(){return kt(this,!0)},hide:function(){return kt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){vt(this)?T(this).show():T(this).hide()}))}});var Nt,_t,Tt=/^(?:checkbox|radio)$/i,St=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Et=/^$|^module$|\/(?:java|ecma)script/i;Nt=w.createDocumentFragment().appendChild(w.createElement("div")),(_t=w.createElement("input")).setAttribute("type","radio"),_t.setAttribute("checked","checked"),_t.setAttribute("name","t"),Nt.appendChild(_t),g.checkClone=Nt.cloneNode(!0).cloneNode(!0).lastChild.checked,Nt.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!Nt.cloneNode(!0).lastChild.defaultValue,Nt.innerHTML="<option></option>",g.option=!!Nt.lastChild;var Mt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Ct(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&E(t,e)?T.merge([t],n):n}function At(t,e){for(var n=0,r=t.length;n<r;n++)at.set(t[n],"globalEval",!e||at.get(e[n],"globalEval"))}Mt.tbody=Mt.tfoot=Mt.colgroup=Mt.caption=Mt.thead,Mt.th=Mt.td,g.option||(Mt.optgroup=Mt.option=[1,"<select multiple='multiple'>","</select>"]);var Lt=/<|&#?\w+;/;function Ot(t,e,n,r,i){for(var s,o,a,u,h,l,c=e.createDocumentFragment(),d=[],f=0,p=t.length;f<p;f++)if((s=t[f])||0===s)if("object"===k(s))T.merge(d,s.nodeType?[s]:s);else if(Lt.test(s)){for(o=o||c.appendChild(e.createElement("div")),a=(St.exec(s)||["",""])[1].toLowerCase(),u=Mt[a]||Mt._default,o.innerHTML=u[1]+T.htmlPrefilter(s)+u[2],l=u[0];l--;)o=o.lastChild;T.merge(d,o.childNodes),(o=c.firstChild).textContent=""}else d.push(e.createTextNode(s));for(c.textContent="",f=0;s=d[f++];)if(r&&T.inArray(s,r)>-1)i&&i.push(s);else if(h=gt(s),o=Ct(c.appendChild(s),"script"),h&&At(o),n)for(l=0;s=o[l++];)Et.test(s.type||"")&&n.push(s);return c}var jt=/^([^.]*)(?:\.(.+)|)/;function Dt(){return!0}function Wt(){return!1}function Pt(t,e,n,r,i,s){var o,a;if("object"==typeof e){for(a in"string"!=typeof n&&(r=r||n,n=void 0),e)Pt(t,a,n,r,e[a],s);return t}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Wt;else if(!i)return t;return 1===s&&(o=i,i=function(t){return T().off(t),o.apply(this,arguments)},i.guid=o.guid||(o.guid=T.guid++)),t.each((function(){T.event.add(this,e,i,r,n)}))}function qt(t,e,n){n?(at.set(t,e,!1),T.event.add(t,e,{namespace:!1,handler:function(t){var n,r=at.get(this,e);if(1&t.isTrigger&&this[e]){if(r)(T.event.special[e]||{}).delegateType&&t.stopPropagation();else if(r=a.call(arguments),at.set(this,e,r),this[e](),n=at.get(this,e),at.set(this,e,!1),r!==n)return t.stopImmediatePropagation(),t.preventDefault(),n}else r&&(at.set(this,e,T.event.trigger(r[0],r.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=Dt)}})):void 0===at.get(t,e)&&T.event.add(t,e,Dt)}T.event={global:{},add:function(t,e,n,r,i){var s,o,a,u,h,l,c,d,f,p,m,g=at.get(t);if(st(t))for(n.handler&&(n=(s=n).handler,i=s.selector),i&&T.find.matchesSelector(mt,i),n.guid||(n.guid=T.guid++),(u=g.events)||(u=g.events=Object.create(null)),(o=g.handle)||(o=g.handle=function(e){return void 0!==T&&T.event.triggered!==e.type?T.event.dispatch.apply(t,arguments):void 0}),h=(e=(e||"").match(X)||[""]).length;h--;)f=m=(a=jt.exec(e[h])||[])[1],p=(a[2]||"").split(".").sort(),f&&(c=T.event.special[f]||{},f=(i?c.delegateType:c.bindType)||f,c=T.event.special[f]||{},l=T.extend({type:f,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&T.expr.match.needsContext.test(i),namespace:p.join(".")},s),(d=u[f])||((d=u[f]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(t,r,p,o)||t.addEventListener&&t.addEventListener(f,o)),c.add&&(c.add.call(t,l),l.handler.guid||(l.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,l):d.push(l),T.event.global[f]=!0)},remove:function(t,e,n,r,i){var s,o,a,u,h,l,c,d,f,p,m,g=at.hasData(t)&&at.get(t);if(g&&(u=g.events)){for(h=(e=(e||"").match(X)||[""]).length;h--;)if(f=m=(a=jt.exec(e[h])||[])[1],p=(a[2]||"").split(".").sort(),f){for(c=T.event.special[f]||{},d=u[f=(r?c.delegateType:c.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=s=d.length;s--;)l=d[s],!i&&m!==l.origType||n&&n.guid!==l.guid||a&&!a.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(d.splice(s,1),l.selector&&d.delegateCount--,c.remove&&c.remove.call(t,l));o&&!d.length&&(c.teardown&&!1!==c.teardown.call(t,p,g.handle)||T.removeEvent(t,f,g.handle),delete u[f])}else for(f in u)T.event.remove(t,f+e[h],n,r,!0);T.isEmptyObject(u)&&at.remove(t,"handle events")}},dispatch:function(t){var e,n,r,i,s,o,a=new Array(arguments.length),u=T.event.fix(t),h=(at.get(this,"events")||Object.create(null))[u.type]||[],l=T.event.special[u.type]||{};for(a[0]=u,e=1;e<arguments.length;e++)a[e]=arguments[e];if(u.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,u)){for(o=T.event.handlers.call(this,u,h),e=0;(i=o[e++])&&!u.isPropagationStopped();)for(u.currentTarget=i.elem,n=0;(s=i.handlers[n++])&&!u.isImmediatePropagationStopped();)u.rnamespace&&!1!==s.namespace&&!u.rnamespace.test(s.namespace)||(u.handleObj=s,u.data=s.data,void 0!==(r=((T.event.special[s.origType]||{}).handle||s.handler).apply(i.elem,a))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,u),u.result}},handlers:function(t,e){var n,r,i,s,o,a=[],u=e.delegateCount,h=t.target;if(u&&h.nodeType&&!("click"===t.type&&t.button>=1))for(;h!==this;h=h.parentNode||this)if(1===h.nodeType&&("click"!==t.type||!0!==h.disabled)){for(s=[],o={},n=0;n<u;n++)void 0===o[i=(r=e[n]).selector+" "]&&(o[i]=r.needsContext?T(i,this).index(h)>-1:T.find(i,this,null,[h]).length),o[i]&&s.push(r);s.length&&a.push({elem:h,handlers:s})}return h=this,u<e.length&&a.push({elem:h,handlers:e.slice(u)}),a},addProp:function(t,e){Object.defineProperty(T.Event.prototype,t,{enumerable:!0,configurable:!0,get:y(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[T.expando]?t:new T.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return Tt.test(e.type)&&e.click&&E(e,"input")&&qt(e,"click",!0),!1},trigger:function(t){var e=this||t;return Tt.test(e.type)&&e.click&&E(e,"input")&&qt(e,"click"),!0},_default:function(t){var e=t.target;return Tt.test(e.type)&&e.click&&E(e,"input")&&at.get(e,"click")||E(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},T.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},T.Event=function(t,e){if(!(this instanceof T.Event))return new T.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Dt:Wt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&T.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[T.expando]=!0},T.Event.prototype={constructor:T.Event,isDefaultPrevented:Wt,isPropagationStopped:Wt,isImmediatePropagationStopped:Wt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Dt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Dt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Dt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},T.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},T.event.addProp),T.each({focus:"focusin",blur:"focusout"},(function(t,e){function n(t){if(w.documentMode){var n=at.get(this,"handle"),r=T.event.fix(t);r.type="focusin"===t.type?"focus":"blur",r.isSimulated=!0,n(t),r.target===r.currentTarget&&n(r)}else T.event.simulate(e,t.target,T.event.fix(t))}T.event.special[t]={setup:function(){var r;if(qt(this,t,!0),!w.documentMode)return!1;(r=at.get(this,e))||this.addEventListener(e,n),at.set(this,e,(r||0)+1)},trigger:function(){return qt(this,t),!0},teardown:function(){var t;if(!w.documentMode)return!1;(t=at.get(this,e)-1)?at.set(this,e,t):(this.removeEventListener(e,n),at.remove(this,e))},_default:function(e){return at.get(e.target,t)},delegateType:e},T.event.special[e]={setup:function(){var r=this.ownerDocument||this.document||this,i=w.documentMode?this:r,s=at.get(i,e);s||(w.documentMode?this.addEventListener(e,n):r.addEventListener(t,n,!0)),at.set(i,e,(s||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=w.documentMode?this:r,s=at.get(i,e)-1;s?at.set(i,e,s):(w.documentMode?this.removeEventListener(e,n):r.removeEventListener(t,n,!0),at.remove(i,e))}}})),T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){T.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=t.relatedTarget,i=t.handleObj;return r&&(r===this||T.contains(this,r))||(t.type=i.origType,n=i.handler.apply(this,arguments),t.type=e),n}}})),T.fn.extend({on:function(t,e,n,r){return Pt(this,t,e,n,r)},one:function(t,e,n,r){return Pt(this,t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,T(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof t){for(i in t)this.off(i,e,t[i]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=Wt),this.each((function(){T.event.remove(this,t,n,e)}))}});var It=/<script|<style|<link/i,Rt=/checked\s*(?:[^=]|=\s*.checked.)/i,Ht=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function zt(t,e){return E(t,"table")&&E(11!==e.nodeType?e:e.firstChild,"tr")&&T(t).children("tbody")[0]||t}function Ft(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Bt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Gt(t,e){var n,r,i,s,o,a;if(1===e.nodeType){if(at.hasData(t)&&(a=at.get(t).events))for(i in at.remove(e,"handle events"),a)for(n=0,r=a[i].length;n<r;n++)T.event.add(e,i,a[i][n]);ut.hasData(t)&&(s=ut.access(t),o=T.extend({},s),ut.set(e,o))}}function Vt(t,e){var n=e.nodeName.toLowerCase();"input"===n&&Tt.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function Ut(t,e,n,r){e=u(e);var i,s,o,a,h,l,c=0,d=t.length,f=d-1,p=e[0],m=y(p);if(m||d>1&&"string"==typeof p&&!g.checkClone&&Rt.test(p))return t.each((function(i){var s=t.eq(i);m&&(e[0]=p.call(this,i,s.html())),Ut(s,e,n,r)}));if(d&&(s=(i=Ot(e,t[0].ownerDocument,!1,t,r)).firstChild,1===i.childNodes.length&&(i=s),s||r)){for(a=(o=T.map(Ct(i,"script"),Ft)).length;c<d;c++)h=i,c!==f&&(h=T.clone(h,!0,!0),a&&T.merge(o,Ct(h,"script"))),n.call(t[c],h,c);if(a)for(l=o[o.length-1].ownerDocument,T.map(o,Bt),c=0;c<a;c++)h=o[c],Et.test(h.type||"")&&!at.access(h,"globalEval")&&T.contains(l,h)&&(h.src&&"module"!==(h.type||"").toLowerCase()?T._evalUrl&&!h.noModule&&T._evalUrl(h.src,{nonce:h.nonce||h.getAttribute("nonce")},l):b(h.textContent.replace(Ht,""),h,l))}return t}function Xt(t,e,n){for(var r,i=e?T.filter(e,t):t,s=0;null!=(r=i[s]);s++)n||1!==r.nodeType||T.cleanData(Ct(r)),r.parentNode&&(n&>(r)&&At(Ct(r,"script")),r.parentNode.removeChild(r));return t}T.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var r,i,s,o,a=t.cloneNode(!0),u=gt(t);if(!(g.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||T.isXMLDoc(t)))for(o=Ct(a),r=0,i=(s=Ct(t)).length;r<i;r++)Vt(s[r],o[r]);if(e)if(n)for(s=s||Ct(t),o=o||Ct(a),r=0,i=s.length;r<i;r++)Gt(s[r],o[r]);else Gt(t,a);return(o=Ct(a,"script")).length>0&&At(o,!u&&Ct(t,"script")),a},cleanData:function(t){for(var e,n,r,i=T.event.special,s=0;void 0!==(n=t[s]);s++)if(st(n)){if(e=n[at.expando]){if(e.events)for(r in e.events)i[r]?T.event.remove(n,r):T.removeEvent(n,r,e.handle);n[at.expando]=void 0}n[ut.expando]&&(n[ut.expando]=void 0)}}}),T.fn.extend({detach:function(t){return Xt(this,t,!0)},remove:function(t){return Xt(this,t)},text:function(t){return tt(this,(function(t){return void 0===t?T.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return Ut(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||zt(this,t).appendChild(t)}))},prepend:function(){return Ut(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=zt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Ut(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Ut(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(T.cleanData(Ct(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return T.clone(this,t,e)}))},html:function(t){return tt(this,(function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!It.test(t)&&!Mt[(St.exec(t)||["",""])[1].toLowerCase()]){t=T.htmlPrefilter(t);try{for(;n<r;n++)1===(e=this[n]||{}).nodeType&&(T.cleanData(Ct(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return Ut(this,arguments,(function(e){var n=this.parentNode;T.inArray(this,t)<0&&(T.cleanData(Ct(this)),n&&n.replaceChild(e,this))}),t)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){T.fn[t]=function(t){for(var n,r=[],i=T(t),s=i.length-1,o=0;o<=s;o++)n=o===s?this:this.clone(!0),T(i[o])[e](n),h.apply(r,n.get());return this.pushStack(r)}}));var $t=new RegExp("^("+dt+")(?!px)[a-z%]+$","i"),Yt=/^--/,Qt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=r),e.getComputedStyle(t)},Jt=function(t,e,n){var r,i,s={};for(i in e)s[i]=t.style[i],t.style[i]=e[i];for(i in r=n.call(t),e)t.style[i]=s[i];return r},Zt=new RegExp(pt.join("|"),"i");function Kt(t,e,n){var r,i,s,o,a=Yt.test(e),u=t.style;return(n=n||Qt(t))&&(o=n.getPropertyValue(e)||n[e],a&&o&&(o=o.replace(O,"$1")||void 0),""!==o||gt(t)||(o=T.style(t,e)),!g.pixelBoxStyles()&&$t.test(o)&&Zt.test(e)&&(r=u.width,i=u.minWidth,s=u.maxWidth,u.minWidth=u.maxWidth=u.width=o,o=n.width,u.width=r,u.minWidth=i,u.maxWidth=s)),void 0!==o?o+"":o}function te(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(l){h.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",mt.appendChild(h).appendChild(l);var t=r.getComputedStyle(l);n="1%"!==t.top,u=12===e(t.marginLeft),l.style.right="60%",o=36===e(t.right),i=36===e(t.width),l.style.position="absolute",s=12===e(l.offsetWidth/3),mt.removeChild(h),l=null}}function e(t){return Math.round(parseFloat(t))}var n,i,s,o,a,u,h=w.createElement("div"),l=w.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===l.style.backgroundClip,T.extend(g,{boxSizingReliable:function(){return t(),i},pixelBoxStyles:function(){return t(),o},pixelPosition:function(){return t(),n},reliableMarginLeft:function(){return t(),u},scrollboxSize:function(){return t(),s},reliableTrDimensions:function(){var t,e,n,i;return null==a&&(t=w.createElement("table"),e=w.createElement("tr"),n=w.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",e.style.cssText="box-sizing:content-box;border:1px solid",e.style.height="1px",n.style.height="9px",n.style.display="block",mt.appendChild(t).appendChild(e).appendChild(n),i=r.getComputedStyle(e),a=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===e.offsetHeight,mt.removeChild(t)),a}}))}();var ee=["Webkit","Moz","ms"],ne=w.createElement("div").style,re={};function ie(t){return T.cssProps[t]||re[t]||(t in ne?t:re[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=ee.length;n--;)if((t=ee[n]+e)in ne)return t}(t)||t)}var se=/^(none|table(?!-c[ea]).+)/,oe={position:"absolute",visibility:"hidden",display:"block"},ae={letterSpacing:"0",fontWeight:"400"};function ue(t,e,n){var r=ft.exec(e);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):e}function he(t,e,n,r,i,s){var o="width"===e?1:0,a=0,u=0,h=0;if(n===(r?"border":"content"))return 0;for(;o<4;o+=2)"margin"===n&&(h+=T.css(t,n+pt[o],!0,i)),r?("content"===n&&(u-=T.css(t,"padding"+pt[o],!0,i)),"margin"!==n&&(u-=T.css(t,"border"+pt[o]+"Width",!0,i))):(u+=T.css(t,"padding"+pt[o],!0,i),"padding"!==n?u+=T.css(t,"border"+pt[o]+"Width",!0,i):a+=T.css(t,"border"+pt[o]+"Width",!0,i));return!r&&s>=0&&(u+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-s-u-a-.5))||0),u+h}function le(t,e,n){var r=Qt(t),i=(!g.boxSizingReliable()||n)&&"border-box"===T.css(t,"boxSizing",!1,r),s=i,o=Kt(t,e,r),a="offset"+e[0].toUpperCase()+e.slice(1);if($t.test(o)){if(!n)return o;o="auto"}return(!g.boxSizingReliable()&&i||!g.reliableTrDimensions()&&E(t,"tr")||"auto"===o||!parseFloat(o)&&"inline"===T.css(t,"display",!1,r))&&t.getClientRects().length&&(i="border-box"===T.css(t,"boxSizing",!1,r),(s=a in t)&&(o=t[a])),(o=parseFloat(o)||0)+he(t,e,n||(i?"border":"content"),s,r,o)+"px"}function ce(t,e,n,r,i){return new ce.prototype.init(t,e,n,r,i)}T.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Kt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,s,o,a=it(e),u=Yt.test(e),h=t.style;if(u||(e=ie(a)),o=T.cssHooks[e]||T.cssHooks[a],void 0===n)return o&&"get"in o&&void 0!==(i=o.get(t,!1,r))?i:h[e];"string"==(s=typeof n)&&(i=ft.exec(n))&&i[1]&&(n=wt(t,e,i),s="number"),null!=n&&n==n&&("number"!==s||u||(n+=i&&i[3]||(T.cssNumber[a]?"":"px")),g.clearCloneStyle||""!==n||0!==e.indexOf("background")||(h[e]="inherit"),o&&"set"in o&&void 0===(n=o.set(t,n,r))||(u?h.setProperty(e,n):h[e]=n))}},css:function(t,e,n,r){var i,s,o,a=it(e);return Yt.test(e)||(e=ie(a)),(o=T.cssHooks[e]||T.cssHooks[a])&&"get"in o&&(i=o.get(t,!0,n)),void 0===i&&(i=Kt(t,e,r)),"normal"===i&&e in ae&&(i=ae[e]),""===n||n?(s=parseFloat(i),!0===n||isFinite(s)?s||0:i):i}}),T.each(["height","width"],(function(t,e){T.cssHooks[e]={get:function(t,n,r){if(n)return!se.test(T.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?le(t,e,r):Jt(t,oe,(function(){return le(t,e,r)}))},set:function(t,n,r){var i,s=Qt(t),o=!g.scrollboxSize()&&"absolute"===s.position,a=(o||r)&&"border-box"===T.css(t,"boxSizing",!1,s),u=r?he(t,e,r,a,s):0;return a&&o&&(u-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(s[e])-he(t,e,"border",!1,s)-.5)),u&&(i=ft.exec(n))&&"px"!==(i[3]||"px")&&(t.style[e]=n,n=T.css(t,e)),ue(0,n,u)}}})),T.cssHooks.marginLeft=te(g.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Kt(t,"marginLeft"))||t.getBoundingClientRect().left-Jt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),T.each({margin:"",padding:"",border:"Width"},(function(t,e){T.cssHooks[t+e]={expand:function(n){for(var r=0,i={},s="string"==typeof n?n.split(" "):[n];r<4;r++)i[t+pt[r]+e]=s[r]||s[r-2]||s[0];return i}},"margin"!==t&&(T.cssHooks[t+e].set=ue)})),T.fn.extend({css:function(t,e){return tt(this,(function(t,e,n){var r,i,s={},o=0;if(Array.isArray(e)){for(r=Qt(t),i=e.length;o<i;o++)s[e[o]]=T.css(t,e[o],!1,r);return s}return void 0!==n?T.style(t,e,n):T.css(t,e)}),t,e,arguments.length>1)}}),T.Tween=ce,ce.prototype={constructor:ce,init:function(t,e,n,r,i,s){this.elem=t,this.prop=n,this.easing=i||T.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=s||(T.cssNumber[n]?"":"px")},cur:function(){var t=ce.propHooks[this.prop];return t&&t.get?t.get(this):ce.propHooks._default.get(this)},run:function(t){var e,n=ce.propHooks[this.prop];return this.options.duration?this.pos=e=T.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ce.propHooks._default.set(this),this}},ce.prototype.init.prototype=ce.prototype,ce.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=T.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){T.fx.step[t.prop]?T.fx.step[t.prop](t):1!==t.elem.nodeType||!T.cssHooks[t.prop]&&null==t.elem.style[ie(t.prop)]?t.elem[t.prop]=t.now:T.style(t.elem,t.prop,t.now+t.unit)}}},ce.propHooks.scrollTop=ce.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},T.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},T.fx=ce.prototype.init,T.fx.step={};var de,fe,pe=/^(?:toggle|show|hide)$/,me=/queueHooks$/;function ge(){fe&&(!1===w.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(ge):r.setTimeout(ge,T.fx.interval),T.fx.tick())}function ye(){return r.setTimeout((function(){de=void 0})),de=Date.now()}function ve(t,e){var n,r=0,i={height:t};for(e=e?1:0;r<4;r+=2-e)i["margin"+(n=pt[r])]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function we(t,e,n){for(var r,i=(xe.tweeners[e]||[]).concat(xe.tweeners["*"]),s=0,o=i.length;s<o;s++)if(r=i[s].call(n,e,t))return r}function xe(t,e,n){var r,i,s=0,o=xe.prefilters.length,a=T.Deferred().always((function(){delete u.elem})),u=function(){if(i)return!1;for(var e=de||ye(),n=Math.max(0,h.startTime+h.duration-e),r=1-(n/h.duration||0),s=0,o=h.tweens.length;s<o;s++)h.tweens[s].run(r);return a.notifyWith(t,[h,r,n]),r<1&&o?n:(o||a.notifyWith(t,[h,1,0]),a.resolveWith(t,[h]),!1)},h=a.promise({elem:t,props:T.extend({},e),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},n),originalProperties:e,originalOptions:n,startTime:de||ye(),duration:n.duration,tweens:[],createTween:function(e,n){var r=T.Tween(t,h.opts,e,n,h.opts.specialEasing[e]||h.opts.easing);return h.tweens.push(r),r},stop:function(e){var n=0,r=e?h.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)h.tweens[n].run(1);return e?(a.notifyWith(t,[h,1,0]),a.resolveWith(t,[h,e])):a.rejectWith(t,[h,e]),this}}),l=h.props;for(function(t,e){var n,r,i,s,o;for(n in t)if(i=e[r=it(n)],s=t[n],Array.isArray(s)&&(i=s[1],s=t[n]=s[0]),n!==r&&(t[r]=s,delete t[n]),(o=T.cssHooks[r])&&"expand"in o)for(n in s=o.expand(s),delete t[r],s)n in t||(t[n]=s[n],e[n]=i);else e[r]=i}(l,h.opts.specialEasing);s<o;s++)if(r=xe.prefilters[s].call(h,t,l,h.opts))return y(r.stop)&&(T._queueHooks(h.elem,h.opts.queue).stop=r.stop.bind(r)),r;return T.map(l,we,h),y(h.opts.start)&&h.opts.start.call(t,h),h.progress(h.opts.progress).done(h.opts.done,h.opts.complete).fail(h.opts.fail).always(h.opts.always),T.fx.timer(T.extend(u,{elem:t,anim:h,queue:h.opts.queue})),h}T.Animation=T.extend(xe,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return wt(n.elem,t,ft.exec(e),n),n}]},tweener:function(t,e){y(t)?(e=t,t=["*"]):t=t.match(X);for(var n,r=0,i=t.length;r<i;r++)n=t[r],xe.tweeners[n]=xe.tweeners[n]||[],xe.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var r,i,s,o,a,u,h,l,c="width"in e||"height"in e,d=this,f={},p=t.style,m=t.nodeType&&vt(t),g=at.get(t,"fxshow");for(r in n.queue||(null==(o=T._queueHooks(t,"fx")).unqueued&&(o.unqueued=0,a=o.empty.fire,o.empty.fire=function(){o.unqueued||a()}),o.unqueued++,d.always((function(){d.always((function(){o.unqueued--,T.queue(t,"fx").length||o.empty.fire()}))}))),e)if(i=e[r],pe.test(i)){if(delete e[r],s=s||"toggle"===i,i===(m?"hide":"show")){if("show"!==i||!g||void 0===g[r])continue;m=!0}f[r]=g&&g[r]||T.style(t,r)}if((u=!T.isEmptyObject(e))||!T.isEmptyObject(f))for(r in c&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(h=g&&g.display)&&(h=at.get(t,"display")),"none"===(l=T.css(t,"display"))&&(h?l=h:(kt([t],!0),h=t.style.display||h,l=T.css(t,"display"),kt([t]))),("inline"===l||"inline-block"===l&&null!=h)&&"none"===T.css(t,"float")&&(u||(d.done((function(){p.display=h})),null==h&&(l=p.display,h="none"===l?"":l)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",d.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),u=!1,f)u||(g?"hidden"in g&&(m=g.hidden):g=at.access(t,"fxshow",{display:h}),s&&(g.hidden=!m),m&&kt([t],!0),d.done((function(){for(r in m||kt([t]),at.remove(t,"fxshow"),f)T.style(t,r,f[r])}))),u=we(m?g[r]:0,r,d),r in g||(g[r]=u.start,m&&(u.end=u.start,u.start=0))}],prefilter:function(t,e){e?xe.prefilters.unshift(t):xe.prefilters.push(t)}}),T.speed=function(t,e,n){var r=t&&"object"==typeof t?T.extend({},t):{complete:n||!n&&e||y(t)&&t,duration:t,easing:n&&e||e&&!y(e)&&e};return T.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in T.fx.speeds?r.duration=T.fx.speeds[r.duration]:r.duration=T.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){y(r.old)&&r.old.call(this),r.queue&&T.dequeue(this,r.queue)},r},T.fn.extend({fadeTo:function(t,e,n,r){return this.filter(vt).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var i=T.isEmptyObject(t),s=T.speed(e,n,r),o=function(){var e=xe(this,T.extend({},t),s);(i||at.get(this,"finish"))&&e.stop(!0)};return o.finish=o,i||!1===s.queue?this.each(o):this.queue(s.queue,o)},stop:function(t,e,n){var r=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each((function(){var e=!0,i=null!=t&&t+"queueHooks",s=T.timers,o=at.get(this);if(i)o[i]&&o[i].stop&&r(o[i]);else for(i in o)o[i]&&o[i].stop&&me.test(i)&&r(o[i]);for(i=s.length;i--;)s[i].elem!==this||null!=t&&s[i].queue!==t||(s[i].anim.stop(n),e=!1,s.splice(i,1));!e&&n||T.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,n=at.get(this),r=n[t+"queue"],i=n[t+"queueHooks"],s=T.timers,o=r?r.length:0;for(n.finish=!0,T.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),e=s.length;e--;)s[e].elem===this&&s[e].queue===t&&(s[e].anim.stop(!0),s.splice(e,1));for(e=0;e<o;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete n.finish}))}}),T.each(["toggle","show","hide"],(function(t,e){var n=T.fn[e];T.fn[e]=function(t,r,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(ve(e,!0),t,r,i)}})),T.each({slideDown:ve("show"),slideUp:ve("hide"),slideToggle:ve("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){T.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}})),T.timers=[],T.fx.tick=function(){var t,e=0,n=T.timers;for(de=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||T.fx.stop(),de=void 0},T.fx.timer=function(t){T.timers.push(t),T.fx.start()},T.fx.interval=13,T.fx.start=function(){fe||(fe=!0,ge())},T.fx.stop=function(){fe=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(t,e){return t=T.fx&&T.fx.speeds[t]||t,e=e||"fx",this.queue(e,(function(e,n){var i=r.setTimeout(e,t);n.stop=function(){r.clearTimeout(i)}}))},function(){var t=w.createElement("input"),e=w.createElement("select").appendChild(w.createElement("option"));t.type="checkbox",g.checkOn=""!==t.value,g.optSelected=e.selected,(t=w.createElement("input")).value="t",t.type="radio",g.radioValue="t"===t.value}();var be,ke=T.expr.attrHandle;T.fn.extend({attr:function(t,e){return tt(this,T.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){T.removeAttr(this,t)}))}}),T.extend({attr:function(t,e,n){var r,i,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===t.getAttribute?T.prop(t,e,n):(1===s&&T.isXMLDoc(t)||(i=T.attrHooks[e.toLowerCase()]||(T.expr.match.bool.test(e)?be:void 0)),void 0!==n?null===n?void T.removeAttr(t,e):i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):i&&"get"in i&&null!==(r=i.get(t,e))?r:null==(r=T.find.attr(t,e))?void 0:r)},attrHooks:{type:{set:function(t,e){if(!g.radioValue&&"radio"===e&&E(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r=0,i=e&&e.match(X);if(i&&1===t.nodeType)for(;n=i[r++];)t.removeAttribute(n)}}),be={set:function(t,e,n){return!1===e?T.removeAttr(t,n):t.setAttribute(n,n),n}},T.each(T.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=ke[e]||T.find.attr;ke[e]=function(t,e,r){var i,s,o=e.toLowerCase();return r||(s=ke[o],ke[o]=i,i=null!=n(t,e,r)?o:null,ke[o]=s),i}}));var Ne=/^(?:input|select|textarea|button)$/i,_e=/^(?:a|area)$/i;function Te(t){return(t.match(X)||[]).join(" ")}function Se(t){return t.getAttribute&&t.getAttribute("class")||""}function Ee(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(X)||[]}T.fn.extend({prop:function(t,e){return tt(this,T.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[T.propFix[t]||t]}))}}),T.extend({prop:function(t,e,n){var r,i,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&T.isXMLDoc(t)||(e=T.propFix[e]||e,i=T.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=T.find.attr(t,"tabindex");return e?parseInt(e,10):Ne.test(t.nodeName)||_e.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(T.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){T.propFix[this.toLowerCase()]=this})),T.fn.extend({addClass:function(t){var e,n,r,i,s,o;return y(t)?this.each((function(e){T(this).addClass(t.call(this,e,Se(this)))})):(e=Ee(t)).length?this.each((function(){if(r=Se(this),n=1===this.nodeType&&" "+Te(r)+" "){for(s=0;s<e.length;s++)i=e[s],n.indexOf(" "+i+" ")<0&&(n+=i+" ");o=Te(n),r!==o&&this.setAttribute("class",o)}})):this},removeClass:function(t){var e,n,r,i,s,o;return y(t)?this.each((function(e){T(this).removeClass(t.call(this,e,Se(this)))})):arguments.length?(e=Ee(t)).length?this.each((function(){if(r=Se(this),n=1===this.nodeType&&" "+Te(r)+" "){for(s=0;s<e.length;s++)for(i=e[s];n.indexOf(" "+i+" ")>-1;)n=n.replace(" "+i+" "," ");o=Te(n),r!==o&&this.setAttribute("class",o)}})):this:this.attr("class","")},toggleClass:function(t,e){var n,r,i,s,o=typeof t,a="string"===o||Array.isArray(t);return y(t)?this.each((function(n){T(this).toggleClass(t.call(this,n,Se(this),e),e)})):"boolean"==typeof e&&a?e?this.addClass(t):this.removeClass(t):(n=Ee(t),this.each((function(){if(a)for(s=T(this),i=0;i<n.length;i++)r=n[i],s.hasClass(r)?s.removeClass(r):s.addClass(r);else void 0!==t&&"boolean"!==o||((r=Se(this))&&at.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===t?"":at.get(this,"__className__")||""))})))},hasClass:function(t){var e,n,r=0;for(e=" "+t+" ";n=this[r++];)if(1===n.nodeType&&(" "+Te(Se(n))+" ").indexOf(e)>-1)return!0;return!1}});var Me=/\r/g;T.fn.extend({val:function(t){var e,n,r,i=this[0];return arguments.length?(r=y(t),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?t.call(this,n,T(this).val()):t)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=T.map(i,(function(t){return null==t?"":t+""}))),(e=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))}))):i?(e=T.valHooks[i.type]||T.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(Me,""):null==n?"":n:void 0}}),T.extend({valHooks:{option:{get:function(t){var e=T.find.attr(t,"value");return null!=e?e:Te(T.text(t))}},select:{get:function(t){var e,n,r,i=t.options,s=t.selectedIndex,o="select-one"===t.type,a=o?null:[],u=o?s+1:i.length;for(r=s<0?u:o?s:0;r<u;r++)if(((n=i[r]).selected||r===s)&&!n.disabled&&(!n.parentNode.disabled||!E(n.parentNode,"optgroup"))){if(e=T(n).val(),o)return e;a.push(e)}return a},set:function(t,e){for(var n,r,i=t.options,s=T.makeArray(e),o=i.length;o--;)((r=i[o]).selected=T.inArray(T.valHooks.option.get(r),s)>-1)&&(n=!0);return n||(t.selectedIndex=-1),s}}}}),T.each(["radio","checkbox"],(function(){T.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=T.inArray(T(t).val(),e)>-1}},g.checkOn||(T.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}));var Ce=r.location,Ae={guid:Date.now()},Le=/\?/;T.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{e=(new r.DOMParser).parseFromString(t,"text/xml")}catch(t){}return n=e&&e.getElementsByTagName("parsererror")[0],e&&!n||T.error("Invalid XML: "+(n?T.map(n.childNodes,(function(t){return t.textContent})).join("\n"):t)),e};var Oe=/^(?:focusinfocus|focusoutblur)$/,je=function(t){t.stopPropagation()};T.extend(T.event,{trigger:function(t,e,n,i){var s,o,a,u,h,l,c,d,p=[n||w],m=f.call(t,"type")?t.type:t,g=f.call(t,"namespace")?t.namespace.split("."):[];if(o=d=a=n=n||w,3!==n.nodeType&&8!==n.nodeType&&!Oe.test(m+T.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),h=m.indexOf(":")<0&&"on"+m,(t=t[T.expando]?t:new T.Event(m,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=g.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:T.makeArray(e,[t]),c=T.event.special[m]||{},i||!c.trigger||!1!==c.trigger.apply(n,e))){if(!i&&!c.noBubble&&!v(n)){for(u=c.delegateType||m,Oe.test(u+m)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||w)&&p.push(a.defaultView||a.parentWindow||r)}for(s=0;(o=p[s++])&&!t.isPropagationStopped();)d=o,t.type=s>1?u:c.bindType||m,(l=(at.get(o,"events")||Object.create(null))[t.type]&&at.get(o,"handle"))&&l.apply(o,e),(l=h&&o[h])&&l.apply&&st(o)&&(t.result=l.apply(o,e),!1===t.result&&t.preventDefault());return t.type=m,i||t.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),e)||!st(n)||h&&y(n[m])&&!v(n)&&((a=n[h])&&(n[h]=null),T.event.triggered=m,t.isPropagationStopped()&&d.addEventListener(m,je),n[m](),t.isPropagationStopped()&&d.removeEventListener(m,je),T.event.triggered=void 0,a&&(n[h]=a)),t.result}},simulate:function(t,e,n){var r=T.extend(new T.Event,n,{type:t,isSimulated:!0});T.event.trigger(r,null,e)}}),T.fn.extend({trigger:function(t,e){return this.each((function(){T.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return T.event.trigger(t,e,n,!0)}});var De=/\[\]$/,We=/\r?\n/g,Pe=/^(?:submit|button|image|reset|file)$/i,qe=/^(?:input|select|textarea|keygen)/i;function Ie(t,e,n,r){var i;if(Array.isArray(e))T.each(e,(function(e,i){n||De.test(t)?r(t,i):Ie(t+"["+("object"==typeof i&&null!=i?e:"")+"]",i,n,r)}));else if(n||"object"!==k(e))r(t,e);else for(i in e)Ie(t+"["+i+"]",e[i],n,r)}T.param=function(t,e){var n,r=[],i=function(t,e){var n=y(e)?e():e;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!T.isPlainObject(t))T.each(t,(function(){i(this.name,this.value)}));else for(n in t)Ie(n,t[n],e,i);return r.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=T.prop(this,"elements");return t?T.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!T(this).is(":disabled")&&qe.test(this.nodeName)&&!Pe.test(t)&&(this.checked||!Tt.test(t))})).map((function(t,e){var n=T(this).val();return null==n?null:Array.isArray(n)?T.map(n,(function(t){return{name:e.name,value:t.replace(We,"\r\n")}})):{name:e.name,value:n.replace(We,"\r\n")}})).get()}});var Re=/%20/g,He=/#.*$/,ze=/([?&])_=[^&]*/,Fe=/^(.*?):[ \t]*([^\r\n]*)$/gm,Be=/^(?:GET|HEAD)$/,Ge=/^\/\//,Ve={},Ue={},Xe="*/".concat("*"),$e=w.createElement("a");function Ye(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,s=e.toLowerCase().match(X)||[];if(y(n))for(;r=s[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function Qe(t,e,n,r){var i={},s=t===Ue;function o(a){var u;return i[a]=!0,T.each(t[a]||[],(function(t,a){var h=a(e,n,r);return"string"!=typeof h||s||i[h]?s?!(u=h):void 0:(e.dataTypes.unshift(h),o(h),!1)})),u}return o(e.dataTypes[0])||!i["*"]&&o("*")}function Je(t,e){var n,r,i=T.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&T.extend(!0,t,r),t}$e.href=Ce.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ce.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ce.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Xe,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Je(Je(t,T.ajaxSettings),e):Je(T.ajaxSettings,t)},ajaxPrefilter:Ye(Ve),ajaxTransport:Ye(Ue),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,i,s,o,a,u,h,l,c,d,f=T.ajaxSetup({},e),p=f.context||f,m=f.context&&(p.nodeType||p.jquery)?T(p):T.event,g=T.Deferred(),y=T.Callbacks("once memory"),v=f.statusCode||{},x={},b={},k="canceled",N={readyState:0,getResponseHeader:function(t){var e;if(h){if(!o)for(o={};e=Fe.exec(s);)o[e[1].toLowerCase()+" "]=(o[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=o[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return h?s:null},setRequestHeader:function(t,e){return null==h&&(t=b[t.toLowerCase()]=b[t.toLowerCase()]||t,x[t]=e),this},overrideMimeType:function(t){return null==h&&(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(h)N.always(t[N.status]);else for(e in t)v[e]=[v[e],t[e]];return this},abort:function(t){var e=t||k;return n&&n.abort(e),_(0,e),this}};if(g.promise(N),f.url=((t||f.url||Ce.href)+"").replace(Ge,Ce.protocol+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(X)||[""],null==f.crossDomain){u=w.createElement("a");try{u.href=f.url,u.href=u.href,f.crossDomain=$e.protocol+"//"+$e.host!=u.protocol+"//"+u.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=T.param(f.data,f.traditional)),Qe(Ve,f,e,N),h)return N;for(c in(l=T.event&&f.global)&&0==T.active++&&T.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Be.test(f.type),i=f.url.replace(He,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Re,"+")):(d=f.url.slice(i.length),f.data&&(f.processData||"string"==typeof f.data)&&(i+=(Le.test(i)?"&":"?")+f.data,delete f.data),!1===f.cache&&(i=i.replace(ze,"$1"),d=(Le.test(i)?"&":"?")+"_="+Ae.guid+++d),f.url=i+d),f.ifModified&&(T.lastModified[i]&&N.setRequestHeader("If-Modified-Since",T.lastModified[i]),T.etag[i]&&N.setRequestHeader("If-None-Match",T.etag[i])),(f.data&&f.hasContent&&!1!==f.contentType||e.contentType)&&N.setRequestHeader("Content-Type",f.contentType),N.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Xe+"; q=0.01":""):f.accepts["*"]),f.headers)N.setRequestHeader(c,f.headers[c]);if(f.beforeSend&&(!1===f.beforeSend.call(p,N,f)||h))return N.abort();if(k="abort",y.add(f.complete),N.done(f.success),N.fail(f.error),n=Qe(Ue,f,e,N)){if(N.readyState=1,l&&m.trigger("ajaxSend",[N,f]),h)return N;f.async&&f.timeout>0&&(a=r.setTimeout((function(){N.abort("timeout")}),f.timeout));try{h=!1,n.send(x,_)}catch(t){if(h)throw t;_(-1,t)}}else _(-1,"No Transport");function _(t,e,o,u){var c,d,w,x,b,k=e;h||(h=!0,a&&r.clearTimeout(a),n=void 0,s=u||"",N.readyState=t>0?4:0,c=t>=200&&t<300||304===t,o&&(x=function(t,e,n){for(var r,i,s,o,a=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){u.unshift(i);break}if(u[0]in n)s=u[0];else{for(i in n){if(!u[0]||t.converters[i+" "+u[0]]){s=i;break}o||(o=i)}s=s||o}if(s)return s!==u[0]&&u.unshift(s),n[s]}(f,N,o)),!c&&T.inArray("script",f.dataTypes)>-1&&T.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),x=function(t,e,n,r){var i,s,o,a,u,h={},l=t.dataTypes.slice();if(l[1])for(o in t.converters)h[o.toLowerCase()]=t.converters[o];for(s=l.shift();s;)if(t.responseFields[s]&&(n[t.responseFields[s]]=e),!u&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=s,s=l.shift())if("*"===s)s=u;else if("*"!==u&&u!==s){if(!(o=h[u+" "+s]||h["* "+s]))for(i in h)if((a=i.split(" "))[1]===s&&(o=h[u+" "+a[0]]||h["* "+a[0]])){!0===o?o=h[i]:!0!==h[i]&&(s=a[0],l.unshift(a[1]));break}if(!0!==o)if(o&&t.throws)e=o(e);else try{e=o(e)}catch(t){return{state:"parsererror",error:o?t:"No conversion from "+u+" to "+s}}}return{state:"success",data:e}}(f,x,N,c),c?(f.ifModified&&((b=N.getResponseHeader("Last-Modified"))&&(T.lastModified[i]=b),(b=N.getResponseHeader("etag"))&&(T.etag[i]=b)),204===t||"HEAD"===f.type?k="nocontent":304===t?k="notmodified":(k=x.state,d=x.data,c=!(w=x.error))):(w=k,!t&&k||(k="error",t<0&&(t=0))),N.status=t,N.statusText=(e||k)+"",c?g.resolveWith(p,[d,k,N]):g.rejectWith(p,[N,k,w]),N.statusCode(v),v=void 0,l&&m.trigger(c?"ajaxSuccess":"ajaxError",[N,f,c?d:w]),y.fireWith(p,[N,k]),l&&(m.trigger("ajaxComplete",[N,f]),--T.active||T.event.trigger("ajaxStop")))}return N},getJSON:function(t,e,n){return T.get(t,e,n,"json")},getScript:function(t,e){return T.get(t,void 0,e,"script")}}),T.each(["get","post"],(function(t,e){T[e]=function(t,n,r,i){return y(n)&&(i=i||r,r=n,n=void 0),T.ajax(T.extend({url:t,type:e,dataType:i,data:n,success:r},T.isPlainObject(t)&&t))}})),T.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),T._evalUrl=function(t,e,n){return T.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){T.globalEval(t,e,n)}})},T.fn.extend({wrapAll:function(t){var e;return this[0]&&(y(t)&&(t=t.call(this[0])),e=T(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return y(t)?this.each((function(e){T(this).wrapInner(t.call(this,e))})):this.each((function(){var e=T(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=y(t);return this.each((function(n){T(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){T(this).replaceWith(this.childNodes)})),this}}),T.expr.pseudos.hidden=function(t){return!T.expr.pseudos.visible(t)},T.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(t){}};var Ze={0:200,1223:204},Ke=T.ajaxSettings.xhr();g.cors=!!Ke&&"withCredentials"in Ke,g.ajax=Ke=!!Ke,T.ajaxTransport((function(t){var e,n;if(g.cors||Ke&&!t.crossDomain)return{send:function(i,s){var o,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)a[o]=t.xhrFields[o];for(o in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)a.setRequestHeader(o,i[o]);e=function(t){return function(){e&&(e=n=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?s(0,"error"):s(a.status,a.statusText):s(Ze[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=e(),n=a.onerror=a.ontimeout=e("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&r.setTimeout((function(){e&&n()}))},e=e("abort");try{a.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}})),T.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return T.globalEval(t),t}}}),T.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),T.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(r,i){e=T("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&i("error"===t.type?404:200,t.type)}),w.head.appendChild(e[0])},abort:function(){n&&n()}}}));var tn,en=[],nn=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=en.pop()||T.expando+"_"+Ae.guid++;return this[t]=!0,t}}),T.ajaxPrefilter("json jsonp",(function(t,e,n){var i,s,o,a=!1!==t.jsonp&&(nn.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=y(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(nn,"$1"+i):!1!==t.jsonp&&(t.url+=(Le.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return o||T.error(i+" was not called"),o[0]},t.dataTypes[0]="json",s=r[i],r[i]=function(){o=arguments},n.always((function(){void 0===s?T(r).removeProp(i):r[i]=s,t[i]&&(t.jsonpCallback=e.jsonpCallback,en.push(i)),o&&y(s)&&s(o[0]),o=s=void 0})),"script"})),g.createHTMLDocument=((tn=w.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===tn.childNodes.length),T.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(g.createHTMLDocument?((r=(e=w.implementation.createHTMLDocument("")).createElement("base")).href=w.location.href,e.head.appendChild(r)):e=w),s=!n&&[],(i=H.exec(t))?[e.createElement(i[1])]:(i=Ot([t],e,s),s&&s.length&&T(s).remove(),T.merge([],i.childNodes)));var r,i,s},T.fn.load=function(t,e,n){var r,i,s,o=this,a=t.indexOf(" ");return a>-1&&(r=Te(t.slice(a)),t=t.slice(0,a)),y(e)?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),o.length>0&&T.ajax({url:t,type:i||"GET",dataType:"html",data:e}).done((function(t){s=arguments,o.html(r?T("<div>").append(T.parseHTML(t)).find(r):t)})).always(n&&function(t,e){o.each((function(){n.apply(this,s||[t.responseText,e,t])}))}),this},T.expr.pseudos.animated=function(t){return T.grep(T.timers,(function(e){return t===e.elem})).length},T.offset={setOffset:function(t,e,n){var r,i,s,o,a,u,h=T.css(t,"position"),l=T(t),c={};"static"===h&&(t.style.position="relative"),a=l.offset(),s=T.css(t,"top"),u=T.css(t,"left"),("absolute"===h||"fixed"===h)&&(s+u).indexOf("auto")>-1?(o=(r=l.position()).top,i=r.left):(o=parseFloat(s)||0,i=parseFloat(u)||0),y(e)&&(e=e.call(t,n,T.extend({},a))),null!=e.top&&(c.top=e.top-a.top+o),null!=e.left&&(c.left=e.left-a.left+i),"using"in e?e.using.call(t,c):l.css(c)}},T.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){T.offset.setOffset(this,t,e)}));var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,r=this[0],i={top:0,left:0};if("fixed"===T.css(r,"position"))e=r.getBoundingClientRect();else{for(e=this.offset(),n=r.ownerDocument,t=r.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===T.css(t,"position");)t=t.parentNode;t&&t!==r&&1===t.nodeType&&((i=T(t).offset()).top+=T.css(t,"borderTopWidth",!0),i.left+=T.css(t,"borderLeftWidth",!0))}return{top:e.top-i.top-T.css(r,"marginTop",!0),left:e.left-i.left-T.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===T.css(t,"position");)t=t.offsetParent;return t||mt}))}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n="pageYOffset"===e;T.fn[t]=function(r){return tt(this,(function(t,r,i){var s;if(v(t)?s=t:9===t.nodeType&&(s=t.defaultView),void 0===i)return s?s[e]:t[r];s?s.scrollTo(n?s.pageXOffset:i,n?i:s.pageYOffset):t[r]=i}),t,r,arguments.length)}})),T.each(["top","left"],(function(t,e){T.cssHooks[e]=te(g.pixelPosition,(function(t,n){if(n)return n=Kt(t,e),$t.test(n)?T(t).position()[e]+"px":n}))})),T.each({Height:"height",Width:"width"},(function(t,e){T.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,r){T.fn[r]=function(i,s){var o=arguments.length&&(n||"boolean"!=typeof i),a=n||(!0===i||!0===s?"margin":"border");return tt(this,(function(e,n,i){var s;return v(e)?0===r.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(s=e.documentElement,Math.max(e.body["scroll"+t],s["scroll"+t],e.body["offset"+t],s["offset"+t],s["client"+t])):void 0===i?T.css(e,n,a):T.style(e,n,i,a)}),e,o?i:void 0,o)}}))})),T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){T.fn[e]=function(t){return this.on(e,t)}})),T.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.on("mouseenter",t).on("mouseleave",e||t)}}),T.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(t,e){T.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}));var rn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;T.proxy=function(t,e){var n,r,i;if("string"==typeof e&&(n=t[e],e=t,t=n),y(t))return r=a.call(arguments,2),i=function(){return t.apply(e||this,r.concat(a.call(arguments)))},i.guid=t.guid=t.guid||T.guid++,i},T.holdReady=function(t){t?T.readyWait++:T.ready(!0)},T.isArray=Array.isArray,T.parseJSON=JSON.parse,T.nodeName=E,T.isFunction=y,T.isWindow=v,T.camelCase=it,T.type=k,T.now=Date.now,T.isNumeric=function(t){var e=T.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},T.trim=function(t){return null==t?"":(t+"").replace(rn,"$1")},void 0===(n=function(){return T}.apply(e,[]))||(t.exports=n);var sn=r.jQuery,on=r.$;return T.noConflict=function(t){return r.$===T&&(r.$=on),t&&r.jQuery===T&&(r.jQuery=sn),T},void 0===i&&(r.jQuery=r.$=T),T}))},709:(t,e,n)=>{"use strict";n.d(e,{A:()=>u,V:()=>a});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,".yIqz0290EZWCxr9FN3XJ {\n border-radius: 50%;\n\n width: 26px;\n height: 26px;\n\n padding: 3.5px;\n\n background-color: white;\n\n border: solid 1px #767676;\n\n cursor: pointer;\n}\n\n.yIqz0290EZWCxr9FN3XJ:hover {\n border-color: black;\n}\n\n.yIqz0290EZWCxr9FN3XJ::-webkit-color-swatch {\n border-radius: 50%;\n\n border-width: 0px;\n}\n\n.yIqz0290EZWCxr9FN3XJ::-moz-color-swatch {\n border-radius: 50%;\n\n border: solid 1px white;\n}\n\n.yIqz0290EZWCxr9FN3XJ::-webkit-color-swatch-wrapper {\n padding: 1px;\n}\n",""]);var a="yIqz0290EZWCxr9FN3XJ";const u=o},723:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>f,Ks:()=>d,Qs:()=>c,Wu:()=>u,YL:()=>l,kL:()=>a,r9:()=>h});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.X7DPHJCVbRpHEB9gcm0Z {\n position: relative;\n\n pointer-events: auto;\n}\n\n.vDAwbQmWCc39SmNMFRtv {\n margin: 0px;\n\n border: none;\n\n padding: 4px 12px;\n border-radius: 3px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 700;\n font-style: normal;\n color: #06064a;\n\n background-color: rgba(219, 219, 255, 0.9);\n\n cursor: pointer;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: auto;\n}\n\n.BAlKKbk1BfHF_fPz1gpc {\n color: #9797cb;\n\n pointer-events: none;\n}\n\n.vDAwbQmWCc39SmNMFRtv:hover {\n background-color: rgba(175, 175, 255, 0.92);\n}\n\n.vDAwbQmWCc39SmNMFRtv:active {\n background-color: rgba(147, 147, 255, 0.92);\n}\n\n.vDAwbQmWCc39SmNMFRtv:focus {\n outline: none;\n}\n\n.C0efoHQIuyVHJrM3hLPq {\n position: absolute;\n top: -61px;\n left: 24px;\n\n height: 36px;\n width: 95px;\n\n padding: 0px;\n\n border-radius: 5px;\n\n background-color: black;\n box-shadow: 0px 0px 6px #d9d9e724;\n\n animation: E96MZ_Cqz4T3H7DBAP7d 1.5s;\n\n pointer-events: none;\n\n display: none;\n}\n\n.X7DPHJCVbRpHEB9gcm0Z:hover .C0efoHQIuyVHJrM3hLPq {\n display: block;\n}\n\n@keyframes E96MZ_Cqz4T3H7DBAP7d {\n 0% {\n opacity: 0;\n }\n 66.6% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n\n.C0efoHQIuyVHJrM3hLPq:before {\n content: "";\n\n border-style: solid;\n border-color: black transparent transparent transparent;\n border-width: 18px 9px;\n\n position: absolute;\n top: 100%;\n left: 39px;\n}\n\n.JILYa84hfLoGuOwekvqa {\n height: 100%;\n\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 7px;\n}\n\n.ktIbQrDucdrIr2zxz5nw {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 11px;\n font-weight: 600;\n font-style: normal;\n color: white;\n\n text-wrap: nowrap;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n',""]);var a="X7DPHJCVbRpHEB9gcm0Z",u="vDAwbQmWCc39SmNMFRtv",h="BAlKKbk1BfHF_fPz1gpc",l="C0efoHQIuyVHJrM3hLPq",c="JILYa84hfLoGuOwekvqa",d="ktIbQrDucdrIr2zxz5nw";const f=o},825:t=>{"use strict";t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var s=n.sourceMap;s&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),e.styleTagTransform(r,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},881:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>f,kv:()=>d});var r=n(601),i=n.n(r),s=n(314),o=n.n(s),a=n(417),u=n.n(a),h=new URL(n(51),n.b),l=o()(i()),c=u()(h);l.push([t.id,`.pMUxgRC_f4NzkoelkDpX {\n appearance: none;\n\n margin: 0px;\n padding: 0px;\n\n border: 2px solid hsl(240, 6.6%, 70.2%);\n border-radius: 2px;\n\n width: 14px;\n height: 14px;\n\n background-color: white;\n\n cursor: pointer;\n}\n\n.pMUxgRC_f4NzkoelkDpX:checked {\n border-color: #2b2b2f;\n\n background-color: #2b2b2f;\n\n background-image: url(${c});\n}\n\n.pMUxgRC_f4NzkoelkDpX:hover {\n transform: scale(1.1);\n transition: transform 0.1s;\n}\n\n.vYZXo8oaWpWVgqUCMYTb:active {\n transform: scale(1);\n transition: transform 0s;\n}\n`,""]);var d="pMUxgRC_f4NzkoelkDpX";const f=l},924:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>c,ho:()=>l,qM:()=>a,vM:()=>u,x3:()=>h});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.O0vrEVyGT_aFy6tF68Na {\n display: flex;\n flex-direction: column;\n}\n\n.VFDUY2z_WgJp1fVc8TCw {\n margin: 9px 0px 0px 12px;\n\n display: flex;\n flex-direction: column;\n}\n\n.Z3lHB1W2K4m8JuZOnWs9 {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 400;\n font-style: normal;\n color: black;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n._2mtl2XqC4G2BvuqSDdR {\n margin-top: 15px;\n\n visibility: collapse;\n}\n\n.dJmYzq3wi8hxLecdDaOF ._2mtl2XqC4G2BvuqSDdR {\n visibility: visible;\n}\n',""]);var a="O0vrEVyGT_aFy6tF68Na",u="Z3lHB1W2K4m8JuZOnWs9",h="_2mtl2XqC4G2BvuqSDdR",l="dJmYzq3wi8hxLecdDaOF";const c=o}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={id:r,exports:{}};return t[r].call(s.exports,s,s.exports,n),s.exports}n.m=t,n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.b=document.baseURI||self.location.href,n.nc=void 0;var r={};return(()=>{"use strict";n.r(r),n.d(r,{EditingForm:()=>Zo});var t={};n.r(t),n.d(t,{cx:()=>Te,cy:()=>Se,height:()=>Me,rx:()=>be,ry:()=>ke,width:()=>Ee,x:()=>Ne,y:()=>_e});var e={};n.r(e),n.d(e,{from:()=>Oe,to:()=>je});var i={};n.r(i),n.d(i,{MorphArray:()=>Re,height:()=>Be,width:()=>Fe,x:()=>He,y:()=>ze});var s={};n.r(s),n.d(s,{array:()=>vn,clear:()=>wn,move:()=>xn,plot:()=>bn,size:()=>kn});var o={};n.r(o),n.d(o,{amove:()=>Qn,ax:()=>$n,ay:()=>Yn,build:()=>Jn,center:()=>Xn,cx:()=>Vn,cy:()=>Un,length:()=>zn,move:()=>Gn,plain:()=>Hn,x:()=>Fn,y:()=>Bn});var a={};n.r(a),n.d(a,{dmove:()=>rr,dx:()=>ir,dy:()=>sr,height:()=>or,move:()=>ar,size:()=>ur,width:()=>hr,x:()=>lr,y:()=>cr});var u=n(72),h=n.n(u),l=n(825),c=n.n(l),d=n(659),f=n.n(d),p=n(56),m=n.n(p),g=n(540),y=n.n(g),v=n(113),w=n.n(v),x=n(420),b={};b.styleTagTransform=w(),b.setAttributes=m(),b.insert=f().bind(null,"head"),b.domAPI=c(),b.insertStyleElement=y(),h()(x.Ay,b),x.Ay&&x.Ay.locals&&x.Ay.locals;var k=n(633),N={};N.styleTagTransform=w(),N.setAttributes=m(),N.insert=f().bind(null,"head"),N.domAPI=c(),N.insertStyleElement=y(),h()(k.Ay,N),k.Ay&&k.Ay.locals&&k.Ay.locals;var _=n(419),T={};T.styleTagTransform=w(),T.setAttributes=m(),T.insert=f().bind(null,"head"),T.domAPI=c(),T.insertStyleElement=y(),h()(_.A,T),_.A&&_.A.locals&&_.A.locals;var S,E;class M{constructor(t){S.add(this),this.props=t,this.domNode=document.createElement("input"),this.domNode.type="text",this.domNode.classList.add(_.P),this.domNode.addEventListener("blur",(()=>function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}(this,S,"m",E).call(this))),this.domNode.addEventListener("keydown",(t=>{"enter"==t.key.toLowerCase()&&this.domNode.blur()}))}}S=new WeakSet,E=function(){var t;(null===(t=this.props)||void 0===t?void 0:t.onSubmit)&&this.props.onSubmit()};var C=n(678),A={};A.styleTagTransform=w(),A.setAttributes=m(),A.insert=f().bind(null,"head"),A.domAPI=c(),A.insertStyleElement=y(),h()(C.Ay,A),C.Ay&&C.Ay.locals&&C.Ay.locals;var L,O,j=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},D=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class W{constructor(t,e){this.name=t,this.domNode=document.createElement("label"),L.set(this,void 0),O.set(this,void 0),this.domNode.classList.add(C.ZZ),j(this,L,e,"f"),j(this,O,document.createElement("a"),"f"),D(this,O,"f").textContent=t,D(this,O,"f").target="_blank",D(this,O,"f").rel="noopener noreferrer",D(this,O,"f").style.marginLeft="8px",this.domNode.append(e,D(this,O,"f"))}get infoLink(){return D(this,O,"f").href}set infoLink(t){D(this,O,"f").href=t,t?D(this,O,"f").classList.add(C.o3):D(this,O,"f").classList.remove(C.o3)}}L=new WeakMap,O=new WeakMap;var P,q=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class I{constructor(t,e){this.name=t,P.set(this,void 0),function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===r?i.call(t,n):i?i.value=n:e.set(t,n)}(this,P,new W(t,e),"f"),this.domNode.style.cursor="text"}get domNode(){return q(this,P,"f").domNode}get infoLink(){return q(this,P,"f").infoLink}set infoLink(t){q(this,P,"f").infoLink=t}}P=new WeakMap;var R=n(881),H={};H.styleTagTransform=w(),H.setAttributes=m(),H.insert=f().bind(null,"head"),H.domAPI=c(),H.insertStyleElement=y(),h()(R.Ay,H),R.Ay&&R.Ay.locals&&R.Ay.locals;class z{constructor(){this.domNode=document.createElement("input"),this.domNode.type="checkbox",this.domNode.classList.add(R.kv)}}var F,B=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class G{constructor(t,e){this.name=t,F.set(this,void 0),function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===r?i.call(t,n):i?i.value=n:e.set(t,n)}(this,F,new W(t,e),"f"),this.domNode.style.cursor="pointer"}get domNode(){return B(this,F,"f").domNode}get infoLink(){return B(this,F,"f").infoLink}set infoLink(t){B(this,F,"f").infoLink=t}}F=new WeakMap;var V=n(709),U={};U.styleTagTransform=w(),U.setAttributes=m(),U.insert=f().bind(null,"head"),U.domAPI=c(),U.insertStyleElement=y(),h()(V.A,U),V.A&&V.A.locals&&V.A.locals;class X{constructor(){this.domNode=document.createElement("input"),this.domNode.type="color",this.domNode.classList.add(V.V)}}var $,Y=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class Q{constructor(t,e){this.name=t,$.set(this,void 0),function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===r?i.call(t,n):i?i.value=n:e.set(t,n)}(this,$,new W(t,e),"f"),this.domNode.style.cursor="pointer"}get domNode(){return Y(this,$,"f").domNode}get infoLink(){return Y(this,$,"f").infoLink}set infoLink(t){Y(this,$,"f").infoLink=t}}$=new WeakMap;const J={},Z=[];function K(t,e){if(Array.isArray(t))for(const n of t)K(n,e);else if("object"!=typeof t)et(Object.getOwnPropertyNames(e)),J[t]=Object.assign(J[t]||{},e);else for(const e in t)K(e,t[e])}function tt(t){return J[t]||{}}function et(t){Z.push(...t)}function nt(t,e){let n;const r=t.length,i=[];for(n=0;n<r;n++)i.push(e(t[n]));return i}function rt(t){return t%360*Math.PI/180}function it(t){return t.charAt(0).toUpperCase()+t.slice(1)}function st(t,e,n,r){return null!=e&&null!=n||(r=r||t.bbox(),null==e?e=r.width/r.height*n:null==n&&(n=r.height/r.width*e)),{width:e,height:n}}function ot(t,e){const n=t.origin;let r=null!=t.ox?t.ox:null!=t.originX?t.originX:"center",i=null!=t.oy?t.oy:null!=t.originY?t.originY:"center";null!=n&&([r,i]=Array.isArray(n)?n:"object"==typeof n?[n.x,n.y]:[n,n]);const s="string"==typeof r,o="string"==typeof i;if(s||o){const{height:t,width:n,x:a,y:u}=e.bbox();s&&(r=r.includes("left")?a:r.includes("right")?a+n:a+n/2),o&&(i=i.includes("top")?u:i.includes("bottom")?u+t:u+t/2)}return[r,i]}const at=new Set(["desc","metadata","title"]),ut=t=>at.has(t.nodeName),ht=(t,e,n={})=>{const r={...e};for(const t in r)r[t].valueOf()===n[t]&&delete r[t];Object.keys(r).length?t.node.setAttribute("data-svgjs",JSON.stringify(r)):(t.node.removeAttribute("data-svgjs"),t.node.removeAttribute("svgjs:data"))},lt="http://www.w3.org/2000/svg",ct="http://www.w3.org/2000/xmlns/",dt="http://www.w3.org/1999/xlink",ft={window:"undefined"==typeof window?null:window,document:"undefined"==typeof document?null:document};class pt{}const mt={},gt="___SYMBOL___ROOT___";function yt(t,e=lt){return ft.document.createElementNS(e,t)}function vt(t,e=!1){if(t instanceof pt)return t;if("object"==typeof t)return bt(t);if(null==t)return new mt[gt];if("string"==typeof t&&"<"!==t.charAt(0))return bt(ft.document.querySelector(t));const n=e?ft.document.createElement("div"):yt("svg");return n.innerHTML=t,t=bt(n.firstChild),n.removeChild(n.firstChild),t}function wt(t,e){return e&&(e instanceof ft.window.Node||e.ownerDocument&&e instanceof e.ownerDocument.defaultView.Node)?e:yt(t)}function xt(t){if(!t)return null;if(t.instance instanceof pt)return t.instance;if("#document-fragment"===t.nodeName)return new mt.Fragment(t);let e=it(t.nodeName||"Dom");return"LinearGradient"===e||"RadialGradient"===e?e="Gradient":mt[e]||(e="Dom"),new mt[e](t)}let bt=xt;function kt(t,e=t.name,n=!1){return mt[e]=t,n&&(mt[gt]=t),et(Object.getOwnPropertyNames(t.prototype)),t}let Nt=1e3;function _t(t){return"Svgjs"+it(t)+Nt++}function Tt(t){for(let e=t.children.length-1;e>=0;e--)Tt(t.children[e]);return t.id?(t.id=_t(t.nodeName),t):t}function St(t,e){let n,r;for(r=(t=Array.isArray(t)?t:[t]).length-1;r>=0;r--)for(n in e)t[r].prototype[n]=e[n]}function Et(t){return function(...e){const n=e[e.length-1];return!n||n.constructor!==Object||n instanceof Array?t.apply(this,e):t.apply(this,e.slice(0,-1)).attr(n)}}K("Dom",{siblings:function(){return this.parent().children()},position:function(){return this.parent().index(this)},next:function(){return this.siblings()[this.position()+1]},prev:function(){return this.siblings()[this.position()-1]},forward:function(){const t=this.position();return this.parent().add(this.remove(),t+1),this},backward:function(){const t=this.position();return this.parent().add(this.remove(),t?t-1:0),this},front:function(){return this.parent().add(this.remove()),this},back:function(){return this.parent().add(this.remove(),0),this},before:function(t){(t=vt(t)).remove();const e=this.position();return this.parent().add(t,e),this},after:function(t){(t=vt(t)).remove();const e=this.position();return this.parent().add(t,e+1),this},insertBefore:function(t){return(t=vt(t)).before(this),this},insertAfter:function(t){return(t=vt(t)).after(this),this}});const Mt=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,Ct=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,At=/rgb\((\d+),(\d+),(\d+)\)/,Lt=/(#[a-z_][a-z0-9\-_]*)/i,Ot=/\)\s*,?\s*/,jt=/\s/g,Dt=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i,Wt=/^rgb\(/,Pt=/^(\s+)?$/,qt=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,It=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,Rt=/[\s,]+/,Ht=/[MLHVCSQTAZ]/i;function zt(t){const e=Math.round(t),n=Math.max(0,Math.min(255,e)).toString(16);return 1===n.length?"0"+n:n}function Ft(t,e){for(let n=e.length;n--;)if(null==t[e[n]])return!1;return!0}function Bt(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}K("Dom",{classes:function(){const t=this.attr("class");return null==t?[]:t.trim().split(Rt)},hasClass:function(t){return-1!==this.classes().indexOf(t)},addClass:function(t){if(!this.hasClass(t)){const e=this.classes();e.push(t),this.attr("class",e.join(" "))}return this},removeClass:function(t){return this.hasClass(t)&&this.attr("class",this.classes().filter((function(e){return e!==t})).join(" ")),this},toggleClass:function(t){return this.hasClass(t)?this.removeClass(t):this.addClass(t)}}),K("Dom",{css:function(t,e){const n={};if(0===arguments.length)return this.node.style.cssText.split(/\s*;\s*/).filter((function(t){return!!t.length})).forEach((function(t){const e=t.split(/\s*:\s*/);n[e[0]]=e[1]})),n;if(arguments.length<2){if(Array.isArray(t)){for(const e of t){const t=e;n[e]=this.node.style.getPropertyValue(t)}return n}if("string"==typeof t)return this.node.style.getPropertyValue(t);if("object"==typeof t)for(const e in t)this.node.style.setProperty(e,null==t[e]||Pt.test(t[e])?"":t[e])}return 2===arguments.length&&this.node.style.setProperty(t,null==e||Pt.test(e)?"":e),this},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},visible:function(){return"none"!==this.css("display")}}),K("Dom",{data:function(t,e,n){if(null==t)return this.data(nt(function(t){let e;const n=t.length,r=[];for(e=0;e<n;e++)0===t[e].nodeName.indexOf("data-")&&r.push(t[e]);return r}(this.node.attributes),(t=>t.nodeName.slice(5))));if(t instanceof Array){const e={};for(const n of t)e[n]=this.data(n);return e}if("object"==typeof t)for(e in t)this.data(e,t[e]);else if(arguments.length<2)try{return JSON.parse(this.attr("data-"+t))}catch(e){return this.attr("data-"+t)}else this.attr("data-"+t,null===e?null:!0===n||"string"==typeof e||"number"==typeof e?e:JSON.stringify(e));return this}}),K("Dom",{remember:function(t,e){if("object"==typeof arguments[0])for(const e in t)this.remember(e,t[e]);else{if(1===arguments.length)return this.memory()[t];this.memory()[t]=e}return this},forget:function(){if(0===arguments.length)this._memory={};else for(let t=arguments.length-1;t>=0;t--)delete this.memory()[arguments[t]];return this},memory:function(){return this._memory=this._memory||{}}});class Gt{constructor(...t){this.init(...t)}static isColor(t){return t&&(t instanceof Gt||this.isRgb(t)||this.test(t))}static isRgb(t){return t&&"number"==typeof t.r&&"number"==typeof t.g&&"number"==typeof t.b}static random(t="vibrant",e){const{random:n,round:r,sin:i,PI:s}=Math;if("vibrant"===t){const t=24*n()+57,e=38*n()+45,r=360*n();return new Gt(t,e,r,"lch")}if("sine"===t){const t=r(80*i(2*s*(e=null==e?n():e)/.5+.01)+150),o=r(50*i(2*s*e/.5+4.6)+200),a=r(100*i(2*s*e/.5+2.3)+150);return new Gt(t,o,a)}if("pastel"===t){const t=8*n()+86,e=17*n()+9,r=360*n();return new Gt(t,e,r,"lch")}if("dark"===t){const t=10+10*n(),e=50*n()+86,r=360*n();return new Gt(t,e,r,"lch")}if("rgb"===t){const t=255*n(),e=255*n(),r=255*n();return new Gt(t,e,r)}if("lab"===t){const t=100*n(),e=256*n()-128,r=256*n()-128;return new Gt(t,e,r,"lab")}if("grey"===t){const t=255*n();return new Gt(t,t,t)}throw new Error("Unsupported random color mode")}static test(t){return"string"==typeof t&&(Dt.test(t)||Wt.test(t))}cmyk(){const{_a:t,_b:e,_c:n}=this.rgb(),[r,i,s]=[t,e,n].map((t=>t/255)),o=Math.min(1-r,1-i,1-s);return 1===o?new Gt(0,0,0,1,"cmyk"):new Gt((1-r-o)/(1-o),(1-i-o)/(1-o),(1-s-o)/(1-o),o,"cmyk")}hsl(){const{_a:t,_b:e,_c:n}=this.rgb(),[r,i,s]=[t,e,n].map((t=>t/255)),o=Math.max(r,i,s),a=Math.min(r,i,s),u=(o+a)/2,h=o===a,l=o-a;return new Gt(360*(h?0:o===r?((i-s)/l+(i<s?6:0))/6:o===i?((s-r)/l+2)/6:o===s?((r-i)/l+4)/6:0),100*(h?0:u>.5?l/(2-o-a):l/(o+a)),100*u,"hsl")}init(t=0,e=0,n=0,r=0,i="rgb"){if(t=t||0,this.space)for(const t in this.space)delete this[this.space[t]];if("number"==typeof t)i="string"==typeof r?r:i,r="string"==typeof r?0:r,Object.assign(this,{_a:t,_b:e,_c:n,_d:r,space:i});else if(t instanceof Array)this.space=e||("string"==typeof t[3]?t[3]:t[4])||"rgb",Object.assign(this,{_a:t[0],_b:t[1],_c:t[2],_d:t[3]||0});else if(t instanceof Object){const n=function(t,e){const n=Ft(t,"rgb")?{_a:t.r,_b:t.g,_c:t.b,_d:0,space:"rgb"}:Ft(t,"xyz")?{_a:t.x,_b:t.y,_c:t.z,_d:0,space:"xyz"}:Ft(t,"hsl")?{_a:t.h,_b:t.s,_c:t.l,_d:0,space:"hsl"}:Ft(t,"lab")?{_a:t.l,_b:t.a,_c:t.b,_d:0,space:"lab"}:Ft(t,"lch")?{_a:t.l,_b:t.c,_c:t.h,_d:0,space:"lch"}:Ft(t,"cmyk")?{_a:t.c,_b:t.m,_c:t.y,_d:t.k,space:"cmyk"}:{_a:0,_b:0,_c:0,space:"rgb"};return n.space=e||n.space,n}(t,e);Object.assign(this,n)}else if("string"==typeof t)if(Wt.test(t)){const e=t.replace(jt,""),[n,r,i]=At.exec(e).slice(1,4).map((t=>parseInt(t)));Object.assign(this,{_a:n,_b:r,_c:i,_d:0,space:"rgb"})}else{if(!Dt.test(t))throw Error("Unsupported string format, can't construct Color");{const e=t=>parseInt(t,16),[,n,r,i]=Ct.exec(function(t){return 4===t.length?["#",t.substring(1,2),t.substring(1,2),t.substring(2,3),t.substring(2,3),t.substring(3,4),t.substring(3,4)].join(""):t}(t)).map(e);Object.assign(this,{_a:n,_b:r,_c:i,_d:0,space:"rgb"})}}const{_a:s,_b:o,_c:a,_d:u}=this,h="rgb"===this.space?{r:s,g:o,b:a}:"xyz"===this.space?{x:s,y:o,z:a}:"hsl"===this.space?{h:s,s:o,l:a}:"lab"===this.space?{l:s,a:o,b:a}:"lch"===this.space?{l:s,c:o,h:a}:"cmyk"===this.space?{c:s,m:o,y:a,k:u}:{};Object.assign(this,h)}lab(){const{x:t,y:e,z:n}=this.xyz();return new Gt(116*e-16,500*(t-e),200*(e-n),"lab")}lch(){const{l:t,a:e,b:n}=this.lab(),r=Math.sqrt(e**2+n**2);let i=180*Math.atan2(n,e)/Math.PI;return i<0&&(i*=-1,i=360-i),new Gt(t,r,i,"lch")}rgb(){if("rgb"===this.space)return this;if("lab"===(t=this.space)||"xyz"===t||"lch"===t){let{x:t,y:e,z:n}=this;if("lab"===this.space||"lch"===this.space){let{l:r,a:i,b:s}=this;if("lch"===this.space){const{c:t,h:e}=this,n=Math.PI/180;i=t*Math.cos(n*e),s=t*Math.sin(n*e)}const o=(r+16)/116,a=i/500+o,u=o-s/200,h=16/116,l=.008856,c=7.787;t=.95047*(a**3>l?a**3:(a-h)/c),e=1*(o**3>l?o**3:(o-h)/c),n=1.08883*(u**3>l?u**3:(u-h)/c)}const r=3.2406*t+-1.5372*e+-.4986*n,i=-.9689*t+1.8758*e+.0415*n,s=.0557*t+-.204*e+1.057*n,o=Math.pow,a=.0031308,u=r>a?1.055*o(r,1/2.4)-.055:12.92*r,h=i>a?1.055*o(i,1/2.4)-.055:12.92*i,l=s>a?1.055*o(s,1/2.4)-.055:12.92*s;return new Gt(255*u,255*h,255*l)}if("hsl"===this.space){let{h:t,s:e,l:n}=this;if(t/=360,e/=100,n/=100,0===e)return n*=255,new Gt(n,n,n);const r=n<.5?n*(1+e):n+e-n*e,i=2*n-r,s=255*Bt(i,r,t+1/3),o=255*Bt(i,r,t),a=255*Bt(i,r,t-1/3);return new Gt(s,o,a)}if("cmyk"===this.space){const{c:t,m:e,y:n,k:r}=this,i=255*(1-Math.min(1,t*(1-r)+r)),s=255*(1-Math.min(1,e*(1-r)+r)),o=255*(1-Math.min(1,n*(1-r)+r));return new Gt(i,s,o)}return this;var t}toArray(){const{_a:t,_b:e,_c:n,_d:r,space:i}=this;return[t,e,n,r,i]}toHex(){const[t,e,n]=this._clamped().map(zt);return`#${t}${e}${n}`}toRgb(){const[t,e,n]=this._clamped();return`rgb(${t},${e},${n})`}toString(){return this.toHex()}xyz(){const{_a:t,_b:e,_c:n}=this.rgb(),[r,i,s]=[t,e,n].map((t=>t/255)),o=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,a=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92,u=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92,h=(.4124*o+.3576*a+.1805*u)/.95047,l=(.2126*o+.7152*a+.0722*u)/1,c=(.0193*o+.1192*a+.9505*u)/1.08883,d=h>.008856?Math.pow(h,1/3):7.787*h+16/116,f=l>.008856?Math.pow(l,1/3):7.787*l+16/116,p=c>.008856?Math.pow(c,1/3):7.787*c+16/116;return new Gt(d,f,p,"xyz")}_clamped(){const{_a:t,_b:e,_c:n}=this.rgb(),{max:r,min:i,round:s}=Math;return[t,e,n].map((t=>r(0,i(s(t),255))))}}class Vt{constructor(...t){this.init(...t)}clone(){return new Vt(this)}init(t,e){const n=Array.isArray(t)?{x:t[0],y:t[1]}:"object"==typeof t?{x:t.x,y:t.y}:{x:t,y:e};return this.x=null==n.x?0:n.x,this.y=null==n.y?0:n.y,this}toArray(){return[this.x,this.y]}transform(t){return this.clone().transformO(t)}transformO(t){Xt.isMatrixLike(t)||(t=new Xt(t));const{x:e,y:n}=this;return this.x=t.a*e+t.c*n+t.e,this.y=t.b*e+t.d*n+t.f,this}}function Ut(t,e,n){return Math.abs(e-t)<(n||1e-6)}class Xt{constructor(...t){this.init(...t)}static formatTransforms(t){const e="both"===t.flip||!0===t.flip,n=t.flip&&(e||"x"===t.flip)?-1:1,r=t.flip&&(e||"y"===t.flip)?-1:1,i=t.skew&&t.skew.length?t.skew[0]:isFinite(t.skew)?t.skew:isFinite(t.skewX)?t.skewX:0,s=t.skew&&t.skew.length?t.skew[1]:isFinite(t.skew)?t.skew:isFinite(t.skewY)?t.skewY:0,o=t.scale&&t.scale.length?t.scale[0]*n:isFinite(t.scale)?t.scale*n:isFinite(t.scaleX)?t.scaleX*n:n,a=t.scale&&t.scale.length?t.scale[1]*r:isFinite(t.scale)?t.scale*r:isFinite(t.scaleY)?t.scaleY*r:r,u=t.shear||0,h=t.rotate||t.theta||0,l=new Vt(t.origin||t.around||t.ox||t.originX,t.oy||t.originY),c=l.x,d=l.y,f=new Vt(t.position||t.px||t.positionX||NaN,t.py||t.positionY||NaN),p=f.x,m=f.y,g=new Vt(t.translate||t.tx||t.translateX,t.ty||t.translateY),y=g.x,v=g.y,w=new Vt(t.relative||t.rx||t.relativeX,t.ry||t.relativeY);return{scaleX:o,scaleY:a,skewX:i,skewY:s,shear:u,theta:h,rx:w.x,ry:w.y,tx:y,ty:v,ox:c,oy:d,px:p,py:m}}static fromArray(t){return{a:t[0],b:t[1],c:t[2],d:t[3],e:t[4],f:t[5]}}static isMatrixLike(t){return null!=t.a||null!=t.b||null!=t.c||null!=t.d||null!=t.e||null!=t.f}static matrixMultiply(t,e,n){const r=t.a*e.a+t.c*e.b,i=t.b*e.a+t.d*e.b,s=t.a*e.c+t.c*e.d,o=t.b*e.c+t.d*e.d,a=t.e+t.a*e.e+t.c*e.f,u=t.f+t.b*e.e+t.d*e.f;return n.a=r,n.b=i,n.c=s,n.d=o,n.e=a,n.f=u,n}around(t,e,n){return this.clone().aroundO(t,e,n)}aroundO(t,e,n){const r=t||0,i=e||0;return this.translateO(-r,-i).lmultiplyO(n).translateO(r,i)}clone(){return new Xt(this)}decompose(t=0,e=0){const n=this.a,r=this.b,i=this.c,s=this.d,o=this.e,a=this.f,u=n*s-r*i,h=u>0?1:-1,l=h*Math.sqrt(n*n+r*r),c=Math.atan2(h*r,h*n),d=180/Math.PI*c,f=Math.cos(c),p=Math.sin(c),m=(n*i+r*s)/u,g=i*l/(m*n-r)||s*l/(m*r+n);return{scaleX:l,scaleY:g,shear:m,rotate:d,translateX:o-t+t*f*l+e*(m*f*l-p*g),translateY:a-e+t*p*l+e*(m*p*l+f*g),originX:t,originY:e,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}equals(t){if(t===this)return!0;const e=new Xt(t);return Ut(this.a,e.a)&&Ut(this.b,e.b)&&Ut(this.c,e.c)&&Ut(this.d,e.d)&&Ut(this.e,e.e)&&Ut(this.f,e.f)}flip(t,e){return this.clone().flipO(t,e)}flipO(t,e){return"x"===t?this.scaleO(-1,1,e,0):"y"===t?this.scaleO(1,-1,0,e):this.scaleO(-1,-1,t,e||t)}init(t){const e=Xt.fromArray([1,0,0,1,0,0]);return t=t instanceof ge?t.matrixify():"string"==typeof t?Xt.fromArray(t.split(Rt).map(parseFloat)):Array.isArray(t)?Xt.fromArray(t):"object"==typeof t&&Xt.isMatrixLike(t)?t:"object"==typeof t?(new Xt).transform(t):6===arguments.length?Xt.fromArray([].slice.call(arguments)):e,this.a=null!=t.a?t.a:e.a,this.b=null!=t.b?t.b:e.b,this.c=null!=t.c?t.c:e.c,this.d=null!=t.d?t.d:e.d,this.e=null!=t.e?t.e:e.e,this.f=null!=t.f?t.f:e.f,this}inverse(){return this.clone().inverseO()}inverseO(){const t=this.a,e=this.b,n=this.c,r=this.d,i=this.e,s=this.f,o=t*r-e*n;if(!o)throw new Error("Cannot invert "+this);const a=r/o,u=-e/o,h=-n/o,l=t/o,c=-(a*i+h*s),d=-(u*i+l*s);return this.a=a,this.b=u,this.c=h,this.d=l,this.e=c,this.f=d,this}lmultiply(t){return this.clone().lmultiplyO(t)}lmultiplyO(t){const e=t instanceof Xt?t:new Xt(t);return Xt.matrixMultiply(e,this,this)}multiply(t){return this.clone().multiplyO(t)}multiplyO(t){const e=t instanceof Xt?t:new Xt(t);return Xt.matrixMultiply(this,e,this)}rotate(t,e,n){return this.clone().rotateO(t,e,n)}rotateO(t,e=0,n=0){t=rt(t);const r=Math.cos(t),i=Math.sin(t),{a:s,b:o,c:a,d:u,e:h,f:l}=this;return this.a=s*r-o*i,this.b=o*r+s*i,this.c=a*r-u*i,this.d=u*r+a*i,this.e=h*r-l*i+n*i-e*r+e,this.f=l*r+h*i-e*i-n*r+n,this}scale(){return this.clone().scaleO(...arguments)}scaleO(t,e=t,n=0,r=0){3===arguments.length&&(r=n,n=e,e=t);const{a:i,b:s,c:o,d:a,e:u,f:h}=this;return this.a=i*t,this.b=s*e,this.c=o*t,this.d=a*e,this.e=u*t-n*t+n,this.f=h*e-r*e+r,this}shear(t,e,n){return this.clone().shearO(t,e,n)}shearO(t,e=0,n=0){const{a:r,b:i,c:s,d:o,e:a,f:u}=this;return this.a=r+i*t,this.c=s+o*t,this.e=a+u*t-n*t,this}skew(){return this.clone().skewO(...arguments)}skewO(t,e=t,n=0,r=0){3===arguments.length&&(r=n,n=e,e=t),t=rt(t),e=rt(e);const i=Math.tan(t),s=Math.tan(e),{a:o,b:a,c:u,d:h,e:l,f:c}=this;return this.a=o+a*i,this.b=a+o*s,this.c=u+h*i,this.d=h+u*s,this.e=l+c*i-r*i,this.f=c+l*s-n*s,this}skewX(t,e,n){return this.skew(t,0,e,n)}skewY(t,e,n){return this.skew(0,t,e,n)}toArray(){return[this.a,this.b,this.c,this.d,this.e,this.f]}toString(){return"matrix("+this.a+","+this.b+","+this.c+","+this.d+","+this.e+","+this.f+")"}transform(t){if(Xt.isMatrixLike(t))return new Xt(t).multiplyO(this);const e=Xt.formatTransforms(t),{x:n,y:r}=new Vt(e.ox,e.oy).transform(this),i=(new Xt).translateO(e.rx,e.ry).lmultiplyO(this).translateO(-n,-r).scaleO(e.scaleX,e.scaleY).skewO(e.skewX,e.skewY).shearO(e.shear).rotateO(e.theta).translateO(n,r);if(isFinite(e.px)||isFinite(e.py)){const t=new Vt(n,r).transform(i),s=isFinite(e.px)?e.px-t.x:0,o=isFinite(e.py)?e.py-t.y:0;i.translateO(s,o)}return i.translateO(e.tx,e.ty),i}translate(t,e){return this.clone().translateO(t,e)}translateO(t,e){return this.e+=t||0,this.f+=e||0,this}valueOf(){return{a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}}function $t(){if(!$t.nodes){const t=vt().size(2,0);t.node.style.cssText=["opacity: 0","position: absolute","left: -100%","top: -100%","overflow: hidden"].join(";"),t.attr("focusable","false"),t.attr("aria-hidden","true");const e=t.path().node;$t.nodes={svg:t,path:e}}if(!$t.nodes.svg.node.parentNode){const t=ft.document.body||ft.document.documentElement;$t.nodes.svg.addTo(t)}return $t.nodes}function Yt(t){return!(t.width||t.height||t.x||t.y)}kt(Xt,"Matrix");class Qt{constructor(...t){this.init(...t)}addOffset(){return this.x+=ft.window.pageXOffset,this.y+=ft.window.pageYOffset,new Qt(this)}init(t){return t="string"==typeof t?t.split(Rt).map(parseFloat):Array.isArray(t)?t:"object"==typeof t?[null!=t.left?t.left:t.x,null!=t.top?t.top:t.y,t.width,t.height]:4===arguments.length?[].slice.call(arguments):[0,0,0,0],this.x=t[0]||0,this.y=t[1]||0,this.width=this.w=t[2]||0,this.height=this.h=t[3]||0,this.x2=this.x+this.w,this.y2=this.y+this.h,this.cx=this.x+this.w/2,this.cy=this.y+this.h/2,this}isNulled(){return Yt(this)}merge(t){const e=Math.min(this.x,t.x),n=Math.min(this.y,t.y),r=Math.max(this.x+this.width,t.x+t.width)-e,i=Math.max(this.y+this.height,t.y+t.height)-n;return new Qt(e,n,r,i)}toArray(){return[this.x,this.y,this.width,this.height]}toString(){return this.x+" "+this.y+" "+this.width+" "+this.height}transform(t){t instanceof Xt||(t=new Xt(t));let e=1/0,n=-1/0,r=1/0,i=-1/0;return[new Vt(this.x,this.y),new Vt(this.x2,this.y),new Vt(this.x,this.y2),new Vt(this.x2,this.y2)].forEach((function(s){s=s.transform(t),e=Math.min(e,s.x),n=Math.max(n,s.x),r=Math.min(r,s.y),i=Math.max(i,s.y)})),new Qt(e,r,n-e,i-r)}}function Jt(t,e,n){let r;try{if(r=e(t.node),Yt(r)&&(i=t.node)!==ft.document&&!(ft.document.documentElement.contains||function(t){for(;t.parentNode;)t=t.parentNode;return t===ft.document}).call(ft.document.documentElement,i))throw new Error("Element not in the dom")}catch(e){r=n(t)}var i;return r}K({viewbox:{viewbox(t,e,n,r){return null==t?new Qt(this.attr("viewBox")):this.attr("viewBox",new Qt(t,e,n,r))},zoom(t,e){let{width:n,height:r}=this.attr(["width","height"]);if((n||r)&&"string"!=typeof n&&"string"!=typeof r||(n=this.node.clientWidth,r=this.node.clientHeight),!n||!r)throw new Error("Impossible to get absolute width and height. Please provide an absolute width and height attribute on the zooming element");const i=this.viewbox(),s=n/i.width,o=r/i.height,a=Math.min(s,o);if(null==t)return a;let u=a/t;u===1/0&&(u=Number.MAX_SAFE_INTEGER/100),e=e||new Vt(n/2/s+i.x,r/2/o+i.y);const h=new Qt(i).transform(new Xt({scale:u,origin:e}));return this.viewbox(h)}}}),kt(Qt,"Box");class Zt extends Array{constructor(t=[],...e){if(super(t,...e),"number"==typeof t)return this;this.length=0,this.push(...t)}}const Kt=Zt;St([Zt],{each(t,...e){return"function"==typeof t?this.map(((e,n,r)=>t.call(e,e,n,r))):this.map((n=>n[t](...e)))},toArray(){return Array.prototype.concat.apply([],this)}});const te=["toArray","constructor","each"];function ee(t,e){return new Kt(nt((e||ft.document).querySelectorAll(t),(function(t){return xt(t)})))}Zt.extend=function(t){t=t.reduce(((t,e)=>(te.includes(e)||"_"===e[0]||(e in Array.prototype&&(t["$"+e]=Array.prototype[e]),t[e]=function(...t){return this.each(e,...t)}),t)),{}),St([Zt],t)};let ne=0;const re={};function ie(t){let e=t.getEventHolder();return e===ft.window&&(e=re),e.events||(e.events={}),e.events}function se(t){return t.getEventTarget()}function oe(t,e,n,r,i){const s=n.bind(r||t),o=vt(t),a=ie(o),u=se(o);e=Array.isArray(e)?e:e.split(Rt),n._svgjsListenerId||(n._svgjsListenerId=++ne),e.forEach((function(t){const e=t.split(".")[0],r=t.split(".")[1]||"*";a[e]=a[e]||{},a[e][r]=a[e][r]||{},a[e][r][n._svgjsListenerId]=s,u.addEventListener(e,s,i||!1)}))}function ae(t,e,n,r){const i=vt(t),s=ie(i),o=se(i);("function"!=typeof n||(n=n._svgjsListenerId))&&(e=Array.isArray(e)?e:(e||"").split(Rt)).forEach((function(t){const e=t&&t.split(".")[0],a=t&&t.split(".")[1];let u,h;if(n)s[e]&&s[e][a||"*"]&&(o.removeEventListener(e,s[e][a||"*"][n],r||!1),delete s[e][a||"*"][n]);else if(e&&a){if(s[e]&&s[e][a]){for(h in s[e][a])ae(o,[e,a].join("."),h);delete s[e][a]}}else if(a)for(t in s)for(u in s[t])a===u&&ae(o,[t,a].join("."));else if(e){if(s[e]){for(u in s[e])ae(o,[e,u].join("."));delete s[e]}}else{for(t in s)ae(o,t);!function(t){let e=t.getEventHolder();e===ft.window&&(e=re),e.events&&(e.events={})}(i)}}))}class ue extends pt{addEventListener(){}dispatch(t,e,n){return function(t,e,n,r){const i=se(t);return e instanceof ft.window.Event||(e=new ft.window.CustomEvent(e,{detail:n,cancelable:!0,...r})),i.dispatchEvent(e),e}(this,t,e,n)}dispatchEvent(t){const e=this.getEventHolder().events;if(!e)return!0;const n=e[t.type];for(const e in n)for(const r in n[e])n[e][r](t);return!t.defaultPrevented}fire(t,e,n){return this.dispatch(t,e,n),this}getEventHolder(){return this}getEventTarget(){return this}off(t,e,n){return ae(this,t,e,n),this}on(t,e,n,r){return oe(this,t,e,n,r),this}removeEventListener(){}}function he(){}kt(ue,"EventTarget");const le={"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","text-anchor":"start"};class ce extends Array{constructor(...t){super(...t),this.init(...t)}clone(){return new this.constructor(this)}init(t){return"number"==typeof t||(this.length=0,this.push(...this.parse(t))),this}parse(t=[]){return t instanceof Array?t:t.trim().split(Rt).map(parseFloat)}toArray(){return Array.prototype.concat.apply([],this)}toSet(){return new Set(this)}toString(){return this.join(" ")}valueOf(){const t=[];return t.push(...this),t}}class de{constructor(...t){this.init(...t)}convert(t){return new de(this.value,t)}divide(t){return t=new de(t),new de(this/t,this.unit||t.unit)}init(t,e){return e=Array.isArray(t)?t[1]:e,t=Array.isArray(t)?t[0]:t,this.value=0,this.unit=e||"","number"==typeof t?this.value=isNaN(t)?0:isFinite(t)?t:t<0?-34e37:34e37:"string"==typeof t?(e=t.match(Mt))&&(this.value=parseFloat(e[1]),"%"===e[5]?this.value/=100:"s"===e[5]&&(this.value*=1e3),this.unit=e[5]):t instanceof de&&(this.value=t.valueOf(),this.unit=t.unit),this}minus(t){return t=new de(t),new de(this-t,this.unit||t.unit)}plus(t){return t=new de(t),new de(this+t,this.unit||t.unit)}times(t){return t=new de(t),new de(this*t,this.unit||t.unit)}toArray(){return[this.value,this.unit]}toJSON(){return this.toString()}toString(){return("%"===this.unit?~~(1e8*this.value)/1e6:"s"===this.unit?this.value/1e3:this.value)+this.unit}valueOf(){return this.value}}const fe=new Set(["fill","stroke","color","bgcolor","stop-color","flood-color","lighting-color"]),pe=[];class me extends ue{constructor(t,e){super(),this.node=t,this.type=t.nodeName,e&&t!==e&&this.attr(e)}add(t,e){return(t=vt(t)).removeNamespace&&this.node instanceof ft.window.SVGElement&&t.removeNamespace(),null==e?this.node.appendChild(t.node):t.node!==this.node.childNodes[e]&&this.node.insertBefore(t.node,this.node.childNodes[e]),this}addTo(t,e){return vt(t).put(this,e)}children(){return new Kt(nt(this.node.children,(function(t){return xt(t)})))}clear(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return this}clone(t=!0,e=!0){this.writeDataToDom();let n=this.node.cloneNode(t);return e&&(n=Tt(n)),new this.constructor(n)}each(t,e){const n=this.children();let r,i;for(r=0,i=n.length;r<i;r++)t.apply(n[r],[r,n]),e&&n[r].each(t,e);return this}element(t,e){return this.put(new me(yt(t),e))}first(){return xt(this.node.firstChild)}get(t){return xt(this.node.childNodes[t])}getEventHolder(){return this.node}getEventTarget(){return this.node}has(t){return this.index(t)>=0}html(t,e){return this.xml(t,e,"http://www.w3.org/1999/xhtml")}id(t){return void 0!==t||this.node.id||(this.node.id=_t(this.type)),this.attr("id",t)}index(t){return[].slice.call(this.node.childNodes).indexOf(t.node)}last(){return xt(this.node.lastChild)}matches(t){const e=this.node,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector||null;return n&&n.call(e,t)}parent(t){let e=this;if(!e.node.parentNode)return null;if(e=xt(e.node.parentNode),!t)return e;do{if("string"==typeof t?e.matches(t):e instanceof t)return e}while(e=xt(e.node.parentNode));return e}put(t,e){return t=vt(t),this.add(t,e),t}putIn(t,e){return vt(t).add(this,e)}remove(){return this.parent()&&this.parent().removeElement(this),this}removeElement(t){return this.node.removeChild(t.node),this}replace(t){return t=vt(t),this.node.parentNode&&this.node.parentNode.replaceChild(t.node,this.node),t}round(t=2,e=null){const n=10**t,r=this.attr(e);for(const t in r)"number"==typeof r[t]&&(r[t]=Math.round(r[t]*n)/n);return this.attr(r),this}svg(t,e){return this.xml(t,e,lt)}toString(){return this.id()}words(t){return this.node.textContent=t,this}wrap(t){const e=this.parent();if(!e)return this.addTo(t);const n=e.index(this);return e.put(t,n).put(this)}writeDataToDom(){return this.each((function(){this.writeDataToDom()})),this}xml(t,e,n){if("boolean"==typeof t&&(n=e,e=t,t=null),null==t||"function"==typeof t){e=null==e||e,this.writeDataToDom();let n=this;if(null!=t){if(n=xt(n.node.cloneNode(!0)),e){const e=t(n);if(n=e||n,!1===e)return""}n.each((function(){const e=t(this),n=e||this;!1===e?this.remove():e&&this!==n&&this.replace(n)}),!0)}return e?n.node.outerHTML:n.node.innerHTML}e=null!=e&&e;const r=yt("wrapper",n),i=ft.document.createDocumentFragment();r.innerHTML=t;for(let t=r.children.length;t--;)i.appendChild(r.firstElementChild);const s=this.parent();return e?this.replace(i)&&s:this.add(i)}}St(me,{attr:function(t,e,n){if(null==t){t={},e=this.node.attributes;for(const n of e)t[n.nodeName]=qt.test(n.nodeValue)?parseFloat(n.nodeValue):n.nodeValue;return t}if(t instanceof Array)return t.reduce(((t,e)=>(t[e]=this.attr(e),t)),{});if("object"==typeof t&&t.constructor===Object)for(e in t)this.attr(e,t[e]);else if(null===e)this.node.removeAttribute(t);else{if(null==e)return null==(e=this.node.getAttribute(t))?le[t]:qt.test(e)?parseFloat(e):e;"number"==typeof(e=pe.reduce(((e,n)=>n(t,e,this)),e))?e=new de(e):fe.has(t)&&Gt.isColor(e)?e=new Gt(e):e.constructor===Array&&(e=new ce(e)),"leading"===t?this.leading&&this.leading(e):"string"==typeof n?this.node.setAttributeNS(n,t,e.toString()):this.node.setAttribute(t,e.toString()),!this.rebuild||"font-size"!==t&&"x"!==t||this.rebuild()}return this},find:function(t){return ee(t,this.node)},findOne:function(t){return xt(this.node.querySelector(t))}}),kt(me,"Dom");class ge extends me{constructor(t,e){super(t,e),this.dom={},this.node.instance=this,(t.hasAttribute("data-svgjs")||t.hasAttribute("svgjs:data"))&&this.setData(JSON.parse(t.getAttribute("data-svgjs"))??JSON.parse(t.getAttribute("svgjs:data"))??{})}center(t,e){return this.cx(t).cy(e)}cx(t){return null==t?this.x()+this.width()/2:this.x(t-this.width()/2)}cy(t){return null==t?this.y()+this.height()/2:this.y(t-this.height()/2)}defs(){const t=this.root();return t&&t.defs()}dmove(t,e){return this.dx(t).dy(e)}dx(t=0){return this.x(new de(t).plus(this.x()))}dy(t=0){return this.y(new de(t).plus(this.y()))}getEventHolder(){return this}height(t){return this.attr("height",t)}move(t,e){return this.x(t).y(e)}parents(t=this.root()){const e="string"==typeof t;e||(t=vt(t));const n=new Kt;let r=this;for(;(r=r.parent())&&r.node!==ft.document&&"#document-fragment"!==r.nodeName&&(n.push(r),e||r.node!==t.node)&&(!e||!r.matches(t));)if(r.node===this.root().node)return null;return n}reference(t){if(!(t=this.attr(t)))return null;const e=(t+"").match(Lt);return e?vt(e[1]):null}root(){const t=this.parent(mt[gt]);return t&&t.root()}setData(t){return this.dom=t,this}size(t,e){const n=st(this,t,e);return this.width(new de(n.width)).height(new de(n.height))}width(t){return this.attr("width",t)}writeDataToDom(){return ht(this,this.dom),super.writeDataToDom()}x(t){return this.attr("x",t)}y(t){return this.attr("y",t)}}St(ge,{bbox:function(){const t=Jt(this,(t=>t.getBBox()),(t=>{try{const e=t.clone().addTo($t().svg).show(),n=e.node.getBBox();return e.remove(),n}catch(e){throw new Error(`Getting bbox of element "${t.node.nodeName}" is not possible: ${e.toString()}`)}}));return new Qt(t)},rbox:function(t){const e=Jt(this,(t=>t.getBoundingClientRect()),(t=>{throw new Error(`Getting rbox of element "${t.node.nodeName}" is not possible`)})),n=new Qt(e);return t?n.transform(t.screenCTM().inverseO()):n.addOffset()},inside:function(t,e){const n=this.bbox();return t>n.x&&e>n.y&&t<n.x+n.width&&e<n.y+n.height},point:function(t,e){return new Vt(t,e).transformO(this.screenCTM().inverseO())},ctm:function(){return new Xt(this.node.getCTM())},screenCTM:function(){try{if("function"==typeof this.isRoot&&!this.isRoot()){const t=this.rect(1,1),e=t.node.getScreenCTM();return t.remove(),new Xt(e)}return new Xt(this.node.getScreenCTM())}catch(t){return console.warn(`Cannot get CTM from SVG node ${this.node.nodeName}. Is the element rendered?`),new Xt}}}),kt(ge,"Element");const ye={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(t,e){return"color"===e?t:t+"-"+e}};["fill","stroke"].forEach((function(t){const e={};let n;e[t]=function(e){if(void 0===e)return this.attr(t);if("string"==typeof e||e instanceof Gt||Gt.isRgb(e)||e instanceof ge)this.attr(t,e);else for(n=ye[t].length-1;n>=0;n--)null!=e[ye[t][n]]&&this.attr(ye.prefix(t,ye[t][n]),e[ye[t][n]]);return this},K(["Element","Runner"],e)})),K(["Element","Runner"],{matrix:function(t,e,n,r,i,s){return null==t?new Xt(this):this.attr("transform",new Xt(t,e,n,r,i,s))},rotate:function(t,e,n){return this.transform({rotate:t,ox:e,oy:n},!0)},skew:function(t,e,n,r){return 1===arguments.length||3===arguments.length?this.transform({skew:t,ox:e,oy:n},!0):this.transform({skew:[t,e],ox:n,oy:r},!0)},shear:function(t,e,n){return this.transform({shear:t,ox:e,oy:n},!0)},scale:function(t,e,n,r){return 1===arguments.length||3===arguments.length?this.transform({scale:t,ox:e,oy:n},!0):this.transform({scale:[t,e],ox:n,oy:r},!0)},translate:function(t,e){return this.transform({translate:[t,e]},!0)},relative:function(t,e){return this.transform({relative:[t,e]},!0)},flip:function(t="both",e="center"){return-1==="xybothtrue".indexOf(t)&&(e=t,t="both"),this.transform({flip:t,origin:e},!0)},opacity:function(t){return this.attr("opacity",t)}}),K("radius",{radius:function(t,e=t){return"radialGradient"===(this._element||this).type?this.attr("r",new de(t)):this.rx(t).ry(e)}}),K("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(t){return new Vt(this.node.getPointAtLength(t))}}),K(["Element","Runner"],{font:function(t,e){if("object"==typeof t){for(e in t)this.font(e,t[e]);return this}return"leading"===t?this.leading(e):"anchor"===t?this.attr("text-anchor",e):"size"===t||"family"===t||"weight"===t||"stretch"===t||"variant"===t||"style"===t?this.attr("font-"+t,e):this.attr(t,e)}}),K("Element",["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","touchstart","touchmove","touchleave","touchend","touchcancel","contextmenu","wheel","pointerdown","pointermove","pointerup","pointerleave","pointercancel"].reduce((function(t,e){return t[e]=function(t){return null===t?this.off(e):this.on(e,t),this},t}),{})),K("Element",{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(Ot).slice(0,-1).map((function(t){const e=t.trim().split("(");return[e[0],e[1].split(Rt).map((function(t){return parseFloat(t)}))]})).reverse().reduce((function(t,e){return"matrix"===e[0]?t.lmultiply(Xt.fromArray(e[1])):t[e[0]].apply(t,e[1])}),new Xt)},toParent:function(t,e){if(this===t)return this;if(ut(this.node))return this.addTo(t,e);const n=this.screenCTM(),r=t.screenCTM().inverse();return this.addTo(t,e).untransform().transform(r.multiply(n)),this},toRoot:function(t){return this.toParent(this.root(),t)},transform:function(t,e){if(null==t||"string"==typeof t){const e=new Xt(this).decompose();return null==t?e:e[t]}Xt.isMatrixLike(t)||(t={...t,origin:ot(t,this)});const n=new Xt(!0===e?this:e||!1).transform(t);return this.attr("transform",n)}});class ve extends ge{flatten(){return this.each((function(){if(this instanceof ve)return this.flatten().ungroup()})),this}ungroup(t=this.parent(),e=t.index(this)){return e=-1===e?t.children().length:e,this.each((function(n,r){return r[r.length-n-1].toParent(t,e)})),this.remove()}}kt(ve,"Container");class we extends ve{constructor(t,e=t){super(wt("defs",t),e)}flatten(){return this}ungroup(){return this}}kt(we,"Defs");class xe extends ge{}function be(t){return this.attr("rx",t)}function ke(t){return this.attr("ry",t)}function Ne(t){return null==t?this.cx()-this.rx():this.cx(t+this.rx())}function _e(t){return null==t?this.cy()-this.ry():this.cy(t+this.ry())}function Te(t){return this.attr("cx",t)}function Se(t){return this.attr("cy",t)}function Ee(t){return null==t?2*this.rx():this.rx(new de(t).divide(2))}function Me(t){return null==t?2*this.ry():this.ry(new de(t).divide(2))}kt(xe,"Shape");class Ce extends xe{constructor(t,e=t){super(wt("ellipse",t),e)}size(t,e){const n=st(this,t,e);return this.rx(new de(n.width).divide(2)).ry(new de(n.height).divide(2))}}St(Ce,t),K("Container",{ellipse:Et((function(t=0,e=t){return this.put(new Ce).size(t,e).move(0,0)}))}),kt(Ce,"Ellipse");class Ae extends me{constructor(t=ft.document.createDocumentFragment()){super(t)}xml(t,e,n){if("boolean"==typeof t&&(n=e,e=t,t=null),null==t||"function"==typeof t){const t=new me(yt("wrapper",n));return t.add(this.node.cloneNode(!0)),t.xml(!1,n)}return super.xml(t,!1,n)}}kt(Ae,"Fragment");const Le=Ae;function Oe(t,e){return"radialGradient"===(this._element||this).type?this.attr({fx:new de(t),fy:new de(e)}):this.attr({x1:new de(t),y1:new de(e)})}function je(t,e){return"radialGradient"===(this._element||this).type?this.attr({cx:new de(t),cy:new de(e)}):this.attr({x2:new de(t),y2:new de(e)})}class De extends ve{constructor(t,e){super(wt(t+"Gradient","string"==typeof t?null:t),e)}attr(t,e,n){return"transform"===t&&(t="gradientTransform"),super.attr(t,e,n)}bbox(){return new Qt}targets(){return ee("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}url(){return"url(#"+this.id()+")"}}St(De,e),K({Container:{gradient(...t){return this.defs().gradient(...t)}},Defs:{gradient:Et((function(t,e){return this.put(new De(t)).update(e)}))}}),kt(De,"Gradient");class We extends ve{constructor(t,e=t){super(wt("pattern",t),e)}attr(t,e,n){return"transform"===t&&(t="patternTransform"),super.attr(t,e,n)}bbox(){return new Qt}targets(){return ee("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}url(){return"url(#"+this.id()+")"}}K({Container:{pattern(...t){return this.defs().pattern(...t)}},Defs:{pattern:Et((function(t,e,n){return this.put(new We).update(n).attr({x:0,y:0,width:t,height:e,patternUnits:"userSpaceOnUse"})}))}}),kt(We,"Pattern");class Pe extends xe{constructor(t,e=t){super(wt("image",t),e)}load(t,e){if(!t)return this;const n=new ft.window.Image;return oe(n,"load",(function(t){const r=this.parent(We);0===this.width()&&0===this.height()&&this.size(n.width,n.height),r instanceof We&&0===r.width()&&0===r.height()&&r.size(this.width(),this.height()),"function"==typeof e&&e.call(this,t)}),this),oe(n,"load error",(function(){ae(n)})),this.attr("href",n.src=t,dt)}}var qe;qe=function(t,e,n){return"fill"!==t&&"stroke"!==t||It.test(e)&&(e=n.root().defs().image(e)),e instanceof Pe&&(e=n.root().defs().pattern(0,0,(t=>{t.add(e)}))),e},pe.push(qe),K({Container:{image:Et((function(t,e){return this.put(new Pe).size(0,0).load(t,e)}))}}),kt(Pe,"Image");class Ie extends ce{bbox(){let t=-1/0,e=-1/0,n=1/0,r=1/0;return this.forEach((function(i){t=Math.max(i[0],t),e=Math.max(i[1],e),n=Math.min(i[0],n),r=Math.min(i[1],r)})),new Qt(n,r,t-n,e-r)}move(t,e){const n=this.bbox();if(t-=n.x,e-=n.y,!isNaN(t)&&!isNaN(e))for(let n=this.length-1;n>=0;n--)this[n]=[this[n][0]+t,this[n][1]+e];return this}parse(t=[0,0]){const e=[];(t=t instanceof Array?Array.prototype.concat.apply([],t):t.trim().split(Rt).map(parseFloat)).length%2!=0&&t.pop();for(let n=0,r=t.length;n<r;n+=2)e.push([t[n],t[n+1]]);return e}size(t,e){let n;const r=this.bbox();for(n=this.length-1;n>=0;n--)r.width&&(this[n][0]=(this[n][0]-r.x)*t/r.width+r.x),r.height&&(this[n][1]=(this[n][1]-r.y)*e/r.height+r.y);return this}toLine(){return{x1:this[0][0],y1:this[0][1],x2:this[1][0],y2:this[1][1]}}toString(){const t=[];for(let e=0,n=this.length;e<n;e++)t.push(this[e].join(","));return t.join(" ")}transform(t){return this.clone().transformO(t)}transformO(t){Xt.isMatrixLike(t)||(t=new Xt(t));for(let e=this.length;e--;){const[n,r]=this[e];this[e][0]=t.a*n+t.c*r+t.e,this[e][1]=t.b*n+t.d*r+t.f}return this}}const Re=Ie;function He(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)}function ze(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)}function Fe(t){const e=this.bbox();return null==t?e.width:this.size(t,e.height)}function Be(t){const e=this.bbox();return null==t?e.height:this.size(e.width,t)}class Ge extends xe{constructor(t,e=t){super(wt("line",t),e)}array(){return new Ie([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])}move(t,e){return this.attr(this.array().move(t,e).toLine())}plot(t,e,n,r){return null==t?this.array():(t=void 0!==e?{x1:t,y1:e,x2:n,y2:r}:new Ie(t).toLine(),this.attr(t))}size(t,e){const n=st(this,t,e);return this.attr(this.array().size(n.width,n.height).toLine())}}St(Ge,i),K({Container:{line:Et((function(...t){return Ge.prototype.plot.apply(this.put(new Ge),null!=t[0]?t:[0,0,0,0])}))}}),kt(Ge,"Line");class Ve extends ve{constructor(t,e=t){super(wt("marker",t),e)}height(t){return this.attr("markerHeight",t)}orient(t){return this.attr("orient",t)}ref(t,e){return this.attr("refX",t).attr("refY",e)}toString(){return"url(#"+this.id()+")"}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}width(t){return this.attr("markerWidth",t)}}function Ue(t,e){return function(n){return null==n?this[t]:(this[t]=n,e&&e.call(this),this)}}K({Container:{marker(...t){return this.defs().marker(...t)}},Defs:{marker:Et((function(t,e,n){return this.put(new Ve).size(t,e).ref(t/2,e/2).viewbox(0,0,t,e).attr("orient","auto").update(n)}))},marker:{marker(t,e,n,r){let i=["marker"];return"all"!==t&&i.push(t),i=i.join("-"),t=arguments[1]instanceof Ve?arguments[1]:this.defs().marker(e,n,r),this.attr(i,t)}}}),kt(Ve,"Marker");const Xe={"-":function(t){return t},"<>":function(t){return-Math.cos(t*Math.PI)/2+.5},">":function(t){return Math.sin(t*Math.PI/2)},"<":function(t){return 1-Math.cos(t*Math.PI/2)},bezier:function(t,e,n,r){return function(i){return i<0?t>0?e/t*i:n>0?r/n*i:0:i>1?n<1?(1-r)/(1-n)*i+(r-n)/(1-n):t<1?(1-e)/(1-t)*i+(e-t)/(1-t):1:3*i*(1-i)**2*e+3*i**2*(1-i)*r+i**3}},steps:function(t,e="end"){e=e.split("-").reverse()[0];let n=t;return"none"===e?--n:"both"===e&&++n,(r,i=!1)=>{let s=Math.floor(r*t);const o=r*s%1==0;return"start"!==e&&"both"!==e||++s,i&&o&&--s,r>=0&&s<0&&(s=0),r<=1&&s>n&&(s=n),s/n}}};class $e{done(){return!1}}class Ye extends $e{constructor(t=">"){super(),this.ease=Xe[t]||t}step(t,e,n){return"number"!=typeof t?n<1?t:e:t+(e-t)*this.ease(n)}}class Qe extends $e{constructor(t){super(),this.stepper=t}done(t){return t.done}step(t,e,n,r){return this.stepper(t,e,n,r)}}function Je(){const t=(this._duration||500)/1e3,e=this._overshoot||0,n=Math.PI,r=Math.log(e/100+1e-10),i=-r/Math.sqrt(n*n+r*r),s=3.9/(i*t);this.d=2*i*s,this.k=s*s}St(class extends Qe{constructor(t=500,e=0){super(),this.duration(t).overshoot(e)}step(t,e,n,r){if("string"==typeof t)return t;if(r.done=n===1/0,n===1/0)return e;if(0===n)return t;n>100&&(n=16),n/=1e3;const i=r.velocity||0,s=-this.d*i-this.k*(t-e),o=t+i*n+s*n*n/2;return r.velocity=i+s*n,r.done=Math.abs(e-o)+Math.abs(i)<.002,r.done?e:o}},{duration:Ue("_duration",Je),overshoot:Ue("_overshoot",Je)}),St(class extends Qe{constructor(t=.1,e=.01,n=0,r=1e3){super(),this.p(t).i(e).d(n).windup(r)}step(t,e,n,r){if("string"==typeof t)return t;if(r.done=n===1/0,n===1/0)return e;if(0===n)return t;const i=e-t;let s=(r.integral||0)+i*n;const o=(i-(r.error||0))/n,a=this._windup;return!1!==a&&(s=Math.max(-a,Math.min(s,a))),r.error=i,r.integral=s,r.done=Math.abs(i)<.001,r.done?e:t+(this.P*i+this.I*s+this.D*o)}},{windup:Ue("_windup"),p:Ue("P"),i:Ue("I"),d:Ue("D")});const Ze={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0},Ke={M:function(t,e,n){return e.x=n.x=t[0],e.y=n.y=t[1],["M",e.x,e.y]},L:function(t,e){return e.x=t[0],e.y=t[1],["L",t[0],t[1]]},H:function(t,e){return e.x=t[0],["H",t[0]]},V:function(t,e){return e.y=t[0],["V",t[0]]},C:function(t,e){return e.x=t[4],e.y=t[5],["C",t[0],t[1],t[2],t[3],t[4],t[5]]},S:function(t,e){return e.x=t[2],e.y=t[3],["S",t[0],t[1],t[2],t[3]]},Q:function(t,e){return e.x=t[2],e.y=t[3],["Q",t[0],t[1],t[2],t[3]]},T:function(t,e){return e.x=t[0],e.y=t[1],["T",t[0],t[1]]},Z:function(t,e,n){return e.x=n.x,e.y=n.y,["Z"]},A:function(t,e){return e.x=t[5],e.y=t[6],["A",t[0],t[1],t[2],t[3],t[4],t[5],t[6]]}},tn="mlhvqtcsaz".split("");for(let t=0,e=tn.length;t<e;++t)Ke[tn[t]]=function(t){return function(e,n,r){if("H"===t)e[0]=e[0]+n.x;else if("V"===t)e[0]=e[0]+n.y;else if("A"===t)e[5]=e[5]+n.x,e[6]=e[6]+n.y;else for(let t=0,r=e.length;t<r;++t)e[t]=e[t]+(t%2?n.y:n.x);return Ke[t](e,n,r)}}(tn[t].toUpperCase());function en(t){return t.segment.length&&t.segment.length-1===Ze[t.segment[0].toUpperCase()]}function nn(t,e){t.inNumber&&rn(t,!1);const n=Ht.test(e);if(n)t.segment=[e];else{const e=t.lastCommand,n=e.toLowerCase(),r=e===n;t.segment=["m"===n?r?"l":"L":e]}return t.inSegment=!0,t.lastCommand=t.segment[0],n}function rn(t,e){if(!t.inNumber)throw new Error("Parser Error");t.number&&t.segment.push(parseFloat(t.number)),t.inNumber=e,t.number="",t.pointSeen=!1,t.hasExponent=!1,en(t)&&sn(t)}function sn(t){t.inSegment=!1,t.absolute&&(t.segment=function(t){const e=t.segment[0];return Ke[e](t.segment.slice(1),t.p,t.p0)}(t)),t.segments.push(t.segment)}function on(t){if(!t.segment.length)return!1;const e="A"===t.segment[0].toUpperCase(),n=t.segment.length;return e&&(4===n||5===n)}function an(t){return"E"===t.lastToken.toUpperCase()}const un=new Set([" ",",","\t","\n","\r","\f"]);class hn extends ce{bbox(){return $t().path.setAttribute("d",this.toString()),new Qt($t.nodes.path.getBBox())}move(t,e){const n=this.bbox();if(t-=n.x,e-=n.y,!isNaN(t)&&!isNaN(e))for(let n,r=this.length-1;r>=0;r--)n=this[r][0],"M"===n||"L"===n||"T"===n?(this[r][1]+=t,this[r][2]+=e):"H"===n?this[r][1]+=t:"V"===n?this[r][1]+=e:"C"===n||"S"===n||"Q"===n?(this[r][1]+=t,this[r][2]+=e,this[r][3]+=t,this[r][4]+=e,"C"===n&&(this[r][5]+=t,this[r][6]+=e)):"A"===n&&(this[r][6]+=t,this[r][7]+=e);return this}parse(t="M0 0"){return Array.isArray(t)&&(t=Array.prototype.concat.apply([],t).toString()),function(t,e=!0){let n=0,r="";const i={segment:[],inNumber:!1,number:"",lastToken:"",inSegment:!1,segments:[],pointSeen:!1,hasExponent:!1,absolute:e,p0:new Vt,p:new Vt};for(;i.lastToken=r,r=t.charAt(n++);)if(i.inSegment||!nn(i,r))if("."!==r)if(isNaN(parseInt(r)))if(un.has(r))i.inNumber&&rn(i,!1);else if("-"!==r&&"+"!==r)if("E"!==r.toUpperCase()){if(Ht.test(r)){if(i.inNumber)rn(i,!1);else{if(!en(i))throw new Error("parser Error");sn(i)}--n}}else i.number+=r,i.hasExponent=!0;else{if(i.inNumber&&!an(i)){rn(i,!1),--n;continue}i.number+=r,i.inNumber=!0}else{if("0"===i.number||on(i)){i.inNumber=!0,i.number=r,rn(i,!0);continue}i.inNumber=!0,i.number+=r}else{if(i.pointSeen||i.hasExponent){rn(i,!1),--n;continue}i.inNumber=!0,i.pointSeen=!0,i.number+=r}return i.inNumber&&rn(i,!1),i.inSegment&&en(i)&&sn(i),i.segments}(t)}size(t,e){const n=this.bbox();let r,i;for(n.width=0===n.width?1:n.width,n.height=0===n.height?1:n.height,r=this.length-1;r>=0;r--)i=this[r][0],"M"===i||"L"===i||"T"===i?(this[r][1]=(this[r][1]-n.x)*t/n.width+n.x,this[r][2]=(this[r][2]-n.y)*e/n.height+n.y):"H"===i?this[r][1]=(this[r][1]-n.x)*t/n.width+n.x:"V"===i?this[r][1]=(this[r][1]-n.y)*e/n.height+n.y:"C"===i||"S"===i||"Q"===i?(this[r][1]=(this[r][1]-n.x)*t/n.width+n.x,this[r][2]=(this[r][2]-n.y)*e/n.height+n.y,this[r][3]=(this[r][3]-n.x)*t/n.width+n.x,this[r][4]=(this[r][4]-n.y)*e/n.height+n.y,"C"===i&&(this[r][5]=(this[r][5]-n.x)*t/n.width+n.x,this[r][6]=(this[r][6]-n.y)*e/n.height+n.y)):"A"===i&&(this[r][1]=this[r][1]*t/n.width,this[r][2]=this[r][2]*e/n.height,this[r][6]=(this[r][6]-n.x)*t/n.width+n.x,this[r][7]=(this[r][7]-n.y)*e/n.height+n.y);return this}toString(){return function(t){let e="";for(let n=0,r=t.length;n<r;n++)e+=t[n][0],null!=t[n][1]&&(e+=t[n][1],null!=t[n][2]&&(e+=" ",e+=t[n][2],null!=t[n][3]&&(e+=" ",e+=t[n][3],e+=" ",e+=t[n][4],null!=t[n][5]&&(e+=" ",e+=t[n][5],e+=" ",e+=t[n][6],null!=t[n][7]&&(e+=" ",e+=t[n][7])))));return e+" "}(this)}}const ln=t=>{const e=typeof t;return"number"===e?de:"string"===e?Gt.isColor(t)?Gt:Rt.test(t)?Ht.test(t)?hn:ce:Mt.test(t)?de:dn:gn.indexOf(t.constructor)>-1?t.constructor:Array.isArray(t)?ce:"object"===e?mn:dn};class cn{constructor(t){this._stepper=t||new Ye("-"),this._from=null,this._to=null,this._type=null,this._context=null,this._morphObj=null}at(t){return this._morphObj.morph(this._from,this._to,t,this._stepper,this._context)}done(){return this._context.map(this._stepper.done).reduce((function(t,e){return t&&e}),!0)}from(t){return null==t?this._from:(this._from=this._set(t),this)}stepper(t){return null==t?this._stepper:(this._stepper=t,this)}to(t){return null==t?this._to:(this._to=this._set(t),this)}type(t){return null==t?this._type:(this._type=t,this)}_set(t){this._type||this.type(ln(t));let e=new this._type(t);return this._type===Gt&&(e=this._to?e[this._to[4]]():this._from?e[this._from[4]]():e),this._type===mn&&(e=this._to?e.align(this._to):this._from?e.align(this._from):e),e=e.toConsumable(),this._morphObj=this._morphObj||new this._type,this._context=this._context||Array.apply(null,Array(e.length)).map(Object).map((function(t){return t.done=!0,t})),e}}class dn{constructor(...t){this.init(...t)}init(t){return t=Array.isArray(t)?t[0]:t,this.value=t,this}toArray(){return[this.value]}valueOf(){return this.value}}class fn{constructor(...t){this.init(...t)}init(t){return Array.isArray(t)&&(t={scaleX:t[0],scaleY:t[1],shear:t[2],rotate:t[3],translateX:t[4],translateY:t[5],originX:t[6],originY:t[7]}),Object.assign(this,fn.defaults,t),this}toArray(){const t=this;return[t.scaleX,t.scaleY,t.shear,t.rotate,t.translateX,t.translateY,t.originX,t.originY]}}fn.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};const pn=(t,e)=>t[0]<e[0]?-1:t[0]>e[0]?1:0;class mn{constructor(...t){this.init(...t)}align(t){const e=this.values;for(let n=0,r=e.length;n<r;++n){if(e[n+1]===t[n+1]){if(e[n+1]===Gt&&t[n+7]!==e[n+7]){const e=t[n+7],r=new Gt(this.values.splice(n+3,5))[e]().toArray();this.values.splice(n+3,0,...r)}n+=e[n+2]+2;continue}if(!t[n+1])return this;const r=(new t[n+1]).toArray(),i=e[n+2]+3;e.splice(n,i,t[n],t[n+1],t[n+2],...r),n+=e[n+2]+2}return this}init(t){if(this.values=[],Array.isArray(t))return void(this.values=t.slice());t=t||{};const e=[];for(const n in t){const r=ln(t[n]),i=new r(t[n]).toArray();e.push([n,r,i.length,...i])}return e.sort(pn),this.values=e.reduce(((t,e)=>t.concat(e)),[]),this}toArray(){return this.values}valueOf(){const t={},e=this.values;for(;e.length;){const n=e.shift(),r=e.shift(),i=e.shift(),s=e.splice(0,i);t[n]=new r(s)}return t}}const gn=[dn,fn,mn];class yn extends xe{constructor(t,e=t){super(wt("path",t),e)}array(){return this._array||(this._array=new hn(this.attr("d")))}clear(){return delete this._array,this}height(t){return null==t?this.bbox().height:this.size(this.bbox().width,t)}move(t,e){return this.attr("d",this.array().move(t,e))}plot(t){return null==t?this.array():this.clear().attr("d","string"==typeof t?t:this._array=new hn(t))}size(t,e){const n=st(this,t,e);return this.attr("d",this.array().size(n.width,n.height))}width(t){return null==t?this.bbox().width:this.size(t,this.bbox().height)}x(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)}y(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)}}function vn(){return this._array||(this._array=new Ie(this.attr("points")))}function wn(){return delete this._array,this}function xn(t,e){return this.attr("points",this.array().move(t,e))}function bn(t){return null==t?this.array():this.clear().attr("points","string"==typeof t?t:this._array=new Ie(t))}function kn(t,e){const n=st(this,t,e);return this.attr("points",this.array().size(n.width,n.height))}yn.prototype.MorphArray=hn,K({Container:{path:Et((function(t){return this.put(new yn).plot(t||new hn)}))}}),kt(yn,"Path");class Nn extends xe{constructor(t,e=t){super(wt("polygon",t),e)}}K({Container:{polygon:Et((function(t){return this.put(new Nn).plot(t||new Ie)}))}}),St(Nn,i),St(Nn,s),kt(Nn,"Polygon");class _n extends xe{constructor(t,e=t){super(wt("polyline",t),e)}}K({Container:{polyline:Et((function(t){return this.put(new _n).plot(t||new Ie)}))}}),St(_n,i),St(_n,s),kt(_n,"Polyline");class Tn extends xe{constructor(t,e=t){super(wt("rect",t),e)}}St(Tn,{rx:be,ry:ke}),K({Container:{rect:Et((function(t,e){return this.put(new Tn).size(t,e)}))}}),kt(Tn,"Rect");class Sn{constructor(){this._first=null,this._last=null}first(){return this._first&&this._first.value}last(){return this._last&&this._last.value}push(t){const e=void 0!==t.next?t:{value:t,next:null,prev:null};return this._last?(e.prev=this._last,this._last.next=e,this._last=e):(this._last=e,this._first=e),e}remove(t){t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t===this._last&&(this._last=t.prev),t===this._first&&(this._first=t.next),t.prev=null,t.next=null}shift(){const t=this._first;return t?(this._first=t.next,this._first&&(this._first.prev=null),this._last=this._first?this._last:null,t.value):null}}const En={nextDraw:null,frames:new Sn,timeouts:new Sn,immediates:new Sn,timer:()=>ft.window.performance||ft.window.Date,transforms:[],frame(t){const e=En.frames.push({run:t});return null===En.nextDraw&&(En.nextDraw=ft.window.requestAnimationFrame(En._draw)),e},timeout(t,e){e=e||0;const n=En.timer().now()+e,r=En.timeouts.push({run:t,time:n});return null===En.nextDraw&&(En.nextDraw=ft.window.requestAnimationFrame(En._draw)),r},immediate(t){const e=En.immediates.push(t);return null===En.nextDraw&&(En.nextDraw=ft.window.requestAnimationFrame(En._draw)),e},cancelFrame(t){null!=t&&En.frames.remove(t)},clearTimeout(t){null!=t&&En.timeouts.remove(t)},cancelImmediate(t){null!=t&&En.immediates.remove(t)},_draw(t){let e=null;const n=En.timeouts.last();for(;(e=En.timeouts.shift())&&(t>=e.time?e.run():En.timeouts.push(e),e!==n););let r=null;const i=En.frames.last();for(;r!==i&&(r=En.frames.shift());)r.run(t);let s=null;for(;s=En.immediates.shift();)s();En.nextDraw=En.timeouts.first()||En.frames.first()?ft.window.requestAnimationFrame(En._draw):null}},Mn=En,Cn=function(t){const e=t.start,n=t.runner.duration();return{start:e,duration:n,end:e+n,runner:t.runner}},An=function(){const t=ft.window;return(t.performance||t.Date).now()};class Ln extends ue{constructor(t=An){super(),this._timeSource=t,this.terminate()}active(){return!!this._nextFrame}finish(){return this.time(this.getEndTimeOfTimeline()+1),this.pause()}getEndTime(){const t=this.getLastRunnerInfo(),e=t?t.runner.duration():0;return(t?t.start:this._time)+e}getEndTimeOfTimeline(){const t=this._runners.map((t=>t.start+t.runner.duration()));return Math.max(0,...t)}getLastRunnerInfo(){return this.getRunnerInfoById(this._lastRunnerId)}getRunnerInfoById(t){return this._runners[this._runnerIds.indexOf(t)]||null}pause(){return this._paused=!0,this._continue()}persist(t){return null==t?this._persist:(this._persist=t,this)}play(){return this._paused=!1,this.updateTime()._continue()}reverse(t){const e=this.speed();if(null==t)return this.speed(-e);const n=Math.abs(e);return this.speed(t?-n:n)}schedule(t,e,n){if(null==t)return this._runners.map(Cn);let r=0;const i=this.getEndTime();if(e=e||0,null==n||"last"===n||"after"===n)r=i;else if("absolute"===n||"start"===n)r=e,e=0;else if("now"===n)r=this._time;else if("relative"===n){const n=this.getRunnerInfoById(t.id);n&&(r=n.start+e,e=0)}else{if("with-last"!==n)throw new Error('Invalid value for the "when" parameter');{const t=this.getLastRunnerInfo();r=t?t.start:this._time}}t.unschedule(),t.timeline(this);const s=t.persist(),o={persist:null===s?this._persist:s,start:r+e,runner:t};return this._lastRunnerId=t.id,this._runners.push(o),this._runners.sort(((t,e)=>t.start-e.start)),this._runnerIds=this._runners.map((t=>t.runner.id)),this.updateTime()._continue(),this}seek(t){return this.time(this._time+t)}source(t){return null==t?this._timeSource:(this._timeSource=t,this)}speed(t){return null==t?this._speed:(this._speed=t,this)}stop(){return this.time(0),this.pause()}time(t){return null==t?this._time:(this._time=t,this._continue(!0))}unschedule(t){const e=this._runnerIds.indexOf(t.id);return e<0||(this._runners.splice(e,1),this._runnerIds.splice(e,1),t.timeline(null)),this}updateTime(){return this.active()||(this._lastSourceTime=this._timeSource()),this}_continue(t=!1){return Mn.cancelFrame(this._nextFrame),this._nextFrame=null,t?this._stepImmediate():(this._paused||(this._nextFrame=Mn.frame(this._step)),this)}_stepFn(t=!1){const e=this._timeSource();let n=e-this._lastSourceTime;t&&(n=0);const r=this._speed*n+(this._time-this._lastStepTime);this._lastSourceTime=e,t||(this._time+=r,this._time=this._time<0?0:this._time),this._lastStepTime=this._time,this.fire("time",this._time);for(let t=this._runners.length;t--;){const e=this._runners[t],n=e.runner;this._time-e.start<=0&&n.reset()}let i=!1;for(let t=0,e=this._runners.length;t<e;t++){const n=this._runners[t],s=n.runner;let o=r;const a=this._time-n.start;a<=0?i=!0:(a<o&&(o=a),s.active()&&(s.step(o).done?!0!==n.persist&&s.duration()-s.time()+this._time+n.persist<this._time&&(s.unschedule(),--t,--e):i=!0))}return i&&!(this._speed<0&&0===this._time)||this._runnerIds.length&&this._speed<0&&this._time>0?this._continue():(this.pause(),this.fire("finished")),this}terminate(){this._startTime=0,this._speed=1,this._persist=0,this._nextFrame=null,this._paused=!0,this._runners=[],this._runnerIds=[],this._lastRunnerId=-1,this._time=0,this._lastSourceTime=0,this._lastStepTime=0,this._step=this._stepFn.bind(this,!1),this._stepImmediate=this._stepFn.bind(this,!0)}}K({Element:{timeline:function(t){return null==t?(this._timeline=this._timeline||new Ln,this._timeline):(this._timeline=t,this)}}});class On extends ue{constructor(t){super(),this.id=On.id++,t="function"==typeof(t=null==t?400:t)?new Qe(t):t,this._element=null,this._timeline=null,this.done=!1,this._queue=[],this._duration="number"==typeof t&&t,this._isDeclarative=t instanceof Qe,this._stepper=this._isDeclarative?t:new Ye,this._history={},this.enabled=!0,this._time=0,this._lastTime=0,this._reseted=!0,this.transforms=new Xt,this.transformId=1,this._haveReversed=!1,this._reverse=!1,this._loopsDone=0,this._swing=!1,this._wait=0,this._times=1,this._frameId=null,this._persist=!!this._isDeclarative||null}static sanitise(t,e,n){let r=1,i=!1,s=0;return e=e??0,n=n||"last","object"!=typeof(t=t??400)||t instanceof $e||(e=t.delay??e,n=t.when??n,i=t.swing||i,r=t.times??r,s=t.wait??s,t=t.duration??400),{duration:t,delay:e,swing:i,times:r,wait:s,when:n}}active(t){return null==t?this.enabled:(this.enabled=t,this)}addTransform(t){return this.transforms.lmultiplyO(t),this}after(t){return this.on("finished",t)}animate(t,e,n){const r=On.sanitise(t,e,n),i=new On(r.duration);return this._timeline&&i.timeline(this._timeline),this._element&&i.element(this._element),i.loop(r).schedule(r.delay,r.when)}clearTransform(){return this.transforms=new Xt,this}clearTransformsFromQueue(){this.done&&this._timeline&&this._timeline._runnerIds.includes(this.id)||(this._queue=this._queue.filter((t=>!t.isTransform)))}delay(t){return this.animate(0,t)}duration(){return this._times*(this._wait+this._duration)-this._wait}during(t){return this.queue(null,t)}ease(t){return this._stepper=new Ye(t),this}element(t){return null==t?this._element:(this._element=t,t._prepareRunner(),this)}finish(){return this.step(1/0)}loop(t,e,n){return"object"==typeof t&&(e=t.swing,n=t.wait,t=t.times),this._times=t||1/0,this._swing=e||!1,this._wait=n||0,!0===this._times&&(this._times=1/0),this}loops(t){const e=this._duration+this._wait;if(null==t){const t=Math.floor(this._time/e),n=(this._time-t*e)/this._duration;return Math.min(t+n,this._times)}const n=t%1,r=e*Math.floor(t)+this._duration*n;return this.time(r)}persist(t){return null==t?this._persist:(this._persist=t,this)}position(t){const e=this._time,n=this._duration,r=this._wait,i=this._times,s=this._swing,o=this._reverse;let a;if(null==t){const t=function(t){const e=s*Math.floor(t%(2*(r+n))/(r+n)),i=e&&!o||!e&&o,a=Math.pow(-1,i)*(t%(r+n))/n+i;return Math.max(Math.min(a,1),0)},u=i*(r+n)-r;return a=e<=0?Math.round(t(1e-5)):e<u?t(e):Math.round(t(u-1e-5)),a}const u=Math.floor(this.loops()),h=s&&u%2==0;return a=u+(h&&!o||o&&h?t:1-t),this.loops(a)}progress(t){return null==t?Math.min(1,this._time/this.duration()):this.time(t*this.duration())}queue(t,e,n,r){return this._queue.push({initialiser:t||he,runner:e||he,retarget:n,isTransform:r,initialised:!1,finished:!1}),this.timeline()&&this.timeline()._continue(),this}reset(){return this._reseted||(this.time(0),this._reseted=!0),this}reverse(t){return this._reverse=null==t?!this._reverse:t,this}schedule(t,e,n){if(t instanceof Ln||(n=e,e=t,t=this.timeline()),!t)throw Error("Runner cannot be scheduled without timeline");return t.schedule(this,e,n),this}step(t){if(!this.enabled)return this;t=null==t?16:t,this._time+=t;const e=this.position(),n=this._lastPosition!==e&&this._time>=0;this._lastPosition=e;const r=this.duration(),i=this._lastTime<=0&&this._time>0,s=this._lastTime<r&&this._time>=r;this._lastTime=this._time,i&&this.fire("start",this);const o=this._isDeclarative;this.done=!o&&!s&&this._time>=r,this._reseted=!1;let a=!1;return(n||o)&&(this._initialise(n),this.transforms=new Xt,a=this._run(o?t:e),this.fire("step",this)),this.done=this.done||a&&o,s&&this.fire("finished",this),this}time(t){if(null==t)return this._time;const e=t-this._time;return this.step(e),this}timeline(t){return void 0===t?this._timeline:(this._timeline=t,this)}unschedule(){const t=this.timeline();return t&&t.unschedule(this),this}_initialise(t){if(t||this._isDeclarative)for(let e=0,n=this._queue.length;e<n;++e){const n=this._queue[e],r=this._isDeclarative||!n.initialised&&t;t=!n.finished,r&&t&&(n.initialiser.call(this),n.initialised=!0)}}_rememberMorpher(t,e){if(this._history[t]={morpher:e,caller:this._queue[this._queue.length-1]},this._isDeclarative){const t=this.timeline();t&&t.play()}}_run(t){let e=!0;for(let n=0,r=this._queue.length;n<r;++n){const r=this._queue[n],i=r.runner.call(this,t);r.finished=r.finished||!0===i,e=e&&r.finished}return e}_tryRetarget(t,e,n){if(this._history[t]){if(!this._history[t].caller.initialised){const e=this._queue.indexOf(this._history[t].caller);return this._queue.splice(e,1),!1}this._history[t].caller.retarget?this._history[t].caller.retarget.call(this,e,n):this._history[t].morpher.to(e),this._history[t].caller.finished=!1;const r=this.timeline();return r&&r.play(),!0}return!1}}On.id=0;class jn{constructor(t=new Xt,e=-1,n=!0){this.transforms=t,this.id=e,this.done=n}clearTransformsFromQueue(){}}St([On,jn],{mergeWith(t){return new jn(t.transforms.lmultiply(this.transforms),t.id)}});const Dn=(t,e)=>t.lmultiplyO(e),Wn=t=>t.transforms;function Pn(){const t=this._transformationRunners.runners.map(Wn).reduce(Dn,new Xt);this.transform(t),this._transformationRunners.merge(),1===this._transformationRunners.length()&&(this._frameId=null)}class qn{constructor(){this.runners=[],this.ids=[]}add(t){if(this.runners.includes(t))return;const e=t.id+1;return this.runners.push(t),this.ids.push(e),this}clearBefore(t){const e=this.ids.indexOf(t+1)||1;return this.ids.splice(0,e,0),this.runners.splice(0,e,new jn).forEach((t=>t.clearTransformsFromQueue())),this}edit(t,e){const n=this.ids.indexOf(t+1);return this.ids.splice(n,1,t+1),this.runners.splice(n,1,e),this}getByID(t){return this.runners[this.ids.indexOf(t+1)]}length(){return this.ids.length}merge(){let t=null;for(let e=0;e<this.runners.length;++e){const n=this.runners[e];if(!(t&&n.done&&t.done)||n._timeline&&n._timeline._runnerIds.includes(n.id)||t._timeline&&t._timeline._runnerIds.includes(t.id))t=n;else{this.remove(n.id);const r=n.mergeWith(t);this.edit(t.id,r),t=r,--e}}return this}remove(t){const e=this.ids.indexOf(t+1);return this.ids.splice(e,1),this.runners.splice(e,1),this}}K({Element:{animate(t,e,n){const r=On.sanitise(t,e,n),i=this.timeline();return new On(r.duration).loop(r).element(this).timeline(i.play()).schedule(r.delay,r.when)},delay(t,e){return this.animate(0,t,e)},_clearTransformRunnersBefore(t){this._transformationRunners.clearBefore(t.id)},_currentTransform(t){return this._transformationRunners.runners.filter((e=>e.id<=t.id)).map(Wn).reduce(Dn,new Xt)},_addRunner(t){this._transformationRunners.add(t),Mn.cancelImmediate(this._frameId),this._frameId=Mn.immediate(Pn.bind(this))},_prepareRunner(){null==this._frameId&&(this._transformationRunners=(new qn).add(new jn(new Xt(this))))}}}),St(On,{attr(t,e){return this.styleAttr("attr",t,e)},css(t,e){return this.styleAttr("css",t,e)},styleAttr(t,e,n){if("string"==typeof e)return this.styleAttr(t,{[e]:n});let r=e;if(this._tryRetarget(t,r))return this;let i=new cn(this._stepper).to(r),s=Object.keys(r);return this.queue((function(){i=i.from(this.element()[t](s))}),(function(e){return this.element()[t](i.at(e).valueOf()),i.done()}),(function(e){const n=Object.keys(e),o=(a=s,n.filter((t=>!a.includes(t))));var a;if(o.length){const e=this.element()[t](o),n=new mn(i.from()).valueOf();Object.assign(n,e),i.from(n)}const u=new mn(i.to()).valueOf();Object.assign(u,e),i.to(u),s=n,r=e})),this._rememberMorpher(t,i),this},zoom(t,e){if(this._tryRetarget("zoom",t,e))return this;let n=new cn(this._stepper).to(new de(t));return this.queue((function(){n=n.from(this.element().zoom())}),(function(t){return this.element().zoom(n.at(t),e),n.done()}),(function(t,r){e=r,n.to(t)})),this._rememberMorpher("zoom",n),this},transform(t,e,n){if(e=t.relative||e,this._isDeclarative&&!e&&this._tryRetarget("transform",t))return this;const r=Xt.isMatrixLike(t);n=null!=t.affine?t.affine:null!=n?n:!r;const i=new cn(this._stepper).type(n?fn:Xt);let s,o,a,u,h;return this.queue((function(){o=o||this.element(),s=s||ot(t,o),h=new Xt(e?void 0:o),o._addRunner(this),e||o._clearTransformRunnersBefore(this)}),(function(l){e||this.clearTransform();const{x:c,y:d}=new Vt(s).transform(o._currentTransform(this));let f=new Xt({...t,origin:[c,d]}),p=this._isDeclarative&&a?a:h;if(n){f=f.decompose(c,d),p=p.decompose(c,d);const t=f.rotate,e=p.rotate,n=[t-360,t,t+360],r=n.map((t=>Math.abs(t-e))),i=Math.min(...r),s=r.indexOf(i);f.rotate=n[s]}e&&(r||(f.rotate=t.rotate||0),this._isDeclarative&&u&&(p.rotate=u)),i.from(p),i.to(f);const m=i.at(l);return u=m.rotate,a=new Xt(m),this.addTransform(a),o._addRunner(this),i.done()}),(function(e){(e.origin||"center").toString()!==(t.origin||"center").toString()&&(s=ot(e,o)),t={...e,origin:s}}),!0),this._isDeclarative&&this._rememberMorpher("transform",i),this},x(t){return this._queueNumber("x",t)},y(t){return this._queueNumber("y",t)},ax(t){return this._queueNumber("ax",t)},ay(t){return this._queueNumber("ay",t)},dx(t=0){return this._queueNumberDelta("x",t)},dy(t=0){return this._queueNumberDelta("y",t)},dmove(t,e){return this.dx(t).dy(e)},_queueNumberDelta(t,e){if(e=new de(e),this._tryRetarget(t,e))return this;const n=new cn(this._stepper).to(e);let r=null;return this.queue((function(){r=this.element()[t](),n.from(r),n.to(r+e)}),(function(e){return this.element()[t](n.at(e)),n.done()}),(function(t){n.to(r+new de(t))})),this._rememberMorpher(t,n),this},_queueObject(t,e){if(this._tryRetarget(t,e))return this;const n=new cn(this._stepper).to(e);return this.queue((function(){n.from(this.element()[t]())}),(function(e){return this.element()[t](n.at(e)),n.done()})),this._rememberMorpher(t,n),this},_queueNumber(t,e){return this._queueObject(t,new de(e))},cx(t){return this._queueNumber("cx",t)},cy(t){return this._queueNumber("cy",t)},move(t,e){return this.x(t).y(e)},amove(t,e){return this.ax(t).ay(e)},center(t,e){return this.cx(t).cy(e)},size(t,e){let n;return t&&e||(n=this._element.bbox()),t||(t=n.width/n.height*e),e||(e=n.height/n.width*t),this.width(t).height(e)},width(t){return this._queueNumber("width",t)},height(t){return this._queueNumber("height",t)},plot(t,e,n,r){if(4===arguments.length)return this.plot([t,e,n,r]);if(this._tryRetarget("plot",t))return this;const i=new cn(this._stepper).type(this._element.MorphArray).to(t);return this.queue((function(){i.from(this._element.array())}),(function(t){return this._element.plot(i.at(t)),i.done()})),this._rememberMorpher("plot",i),this},leading(t){return this._queueNumber("leading",t)},viewbox(t,e,n,r){return this._queueObject("viewbox",new Qt(t,e,n,r))},update(t){return"object"!=typeof t?this.update({offset:arguments[0],color:arguments[1],opacity:arguments[2]}):(null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",t.offset),this)}}),St(On,{rx:be,ry:ke,from:Oe,to:je}),kt(On,"Runner");class In extends ve{constructor(t,e=t){super(wt("svg",t),e),this.namespace()}defs(){return this.isRoot()?xt(this.node.querySelector("defs"))||this.put(new we):this.root().defs()}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof ft.window.SVGElement)&&"#document-fragment"!==this.node.parentNode.nodeName}namespace(){return this.isRoot()?this.attr({xmlns:lt,version:"1.1"}).attr("xmlns:xlink",dt,ct):this.root().namespace()}removeNamespace(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,ct).attr("xmlns:svgjs",null,ct)}root(){return this.isRoot()?this:super.root()}}K({Container:{nested:Et((function(){return this.put(new In)}))}}),kt(In,"Svg",!0);class Rn extends ve{constructor(t,e=t){super(wt("symbol",t),e)}}function Hn(t){return!1===this._build&&this.clear(),this.node.appendChild(ft.document.createTextNode(t)),this}function zn(){return this.node.getComputedTextLength()}function Fn(t,e=this.bbox()){return null==t?e.x:this.attr("x",this.attr("x")+t-e.x)}function Bn(t,e=this.bbox()){return null==t?e.y:this.attr("y",this.attr("y")+t-e.y)}function Gn(t,e,n=this.bbox()){return this.x(t,n).y(e,n)}function Vn(t,e=this.bbox()){return null==t?e.cx:this.attr("x",this.attr("x")+t-e.cx)}function Un(t,e=this.bbox()){return null==t?e.cy:this.attr("y",this.attr("y")+t-e.cy)}function Xn(t,e,n=this.bbox()){return this.cx(t,n).cy(e,n)}function $n(t){return this.attr("x",t)}function Yn(t){return this.attr("y",t)}function Qn(t,e){return this.ax(t).ay(e)}function Jn(t){return this._build=!!t,this}K({Container:{symbol:Et((function(){return this.put(new Rn)}))}}),kt(Rn,"Symbol");class Zn extends xe{constructor(t,e=t){super(wt("text",t),e),this.dom.leading=this.dom.leading??new de(1.3),this._rebuild=!0,this._build=!1}leading(t){return null==t?this.dom.leading:(this.dom.leading=new de(t),this.rebuild())}rebuild(t){if("boolean"==typeof t&&(this._rebuild=t),this._rebuild){const t=this;let e=0;const n=this.dom.leading;this.each((function(r){if(ut(this.node))return;const i=ft.window.getComputedStyle(this.node).getPropertyValue("font-size"),s=n*new de(i);this.dom.newLined&&(this.attr("x",t.attr("x")),"\n"===this.text()?e+=s:(this.attr("dy",r?s+e:0),e=0))})),this.fire("rebuild")}return this}setData(t){return this.dom=t,this.dom.leading=new de(t.leading||1.3),this}writeDataToDom(){return ht(this,this.dom,{leading:1.3}),this}text(t){if(void 0===t){const e=this.node.childNodes;let n=0;t="";for(let r=0,i=e.length;r<i;++r)"textPath"===e[r].nodeName||ut(e[r])?0===r&&(n=r+1):(r!==n&&3!==e[r].nodeType&&!0===xt(e[r]).dom.newLined&&(t+="\n"),t+=e[r].textContent);return t}if(this.clear().build(!0),"function"==typeof t)t.call(this,this);else for(let e=0,n=(t=(t+"").split("\n")).length;e<n;e++)this.newLine(t[e]);return this.build(!1).rebuild()}}St(Zn,o),K({Container:{text:Et((function(t=""){return this.put(new Zn).text(t)})),plain:Et((function(t=""){return this.put(new Zn).plain(t)}))}}),kt(Zn,"Text");class Kn extends xe{constructor(t,e=t){super(wt("tspan",t),e),this._build=!1}dx(t){return this.attr("dx",t)}dy(t){return this.attr("dy",t)}newLine(){this.dom.newLined=!0;const t=this.parent();if(!(t instanceof Zn))return this;const e=t.index(this),n=ft.window.getComputedStyle(this.node).getPropertyValue("font-size"),r=t.dom.leading*new de(n);return this.dy(e?r:0).attr("x",t.x())}text(t){return null==t?this.node.textContent+(this.dom.newLined?"\n":""):("function"==typeof t?(this.clear().build(!0),t.call(this,this),this.build(!1)):this.plain(t),this)}}St(Kn,o),K({Tspan:{tspan:Et((function(t=""){const e=new Kn;return this._build||this.clear(),this.put(e).text(t)}))},Text:{newLine:function(t=""){return this.tspan(t).newLine()}}}),kt(Kn,"Tspan");class tr extends xe{constructor(t,e=t){super(wt("circle",t),e)}radius(t){return this.attr("r",t)}rx(t){return this.attr("r",t)}ry(t){return this.rx(t)}size(t){return this.radius(new de(t).divide(2))}}St(tr,{x:Ne,y:_e,cx:Te,cy:Se,width:Ee,height:Me}),K({Container:{circle:Et((function(t=0){return this.put(new tr).size(t).move(0,0)}))}}),kt(tr,"Circle");class er extends ve{constructor(t,e=t){super(wt("clipPath",t),e)}remove(){return this.targets().forEach((function(t){t.unclip()})),super.remove()}targets(){return ee("svg [clip-path*="+this.id()+"]")}}K({Container:{clip:Et((function(){return this.defs().put(new er)}))},Element:{clipper(){return this.reference("clip-path")},clipWith(t){const e=t instanceof er?t:this.parent().clip().add(t);return this.attr("clip-path","url(#"+e.id()+")")},unclip(){return this.attr("clip-path",null)}}}),kt(er,"ClipPath");class nr extends ge{constructor(t,e=t){super(wt("foreignObject",t),e)}}function rr(t,e){return this.children().forEach((n=>{let r;try{r=n.node instanceof ft.window.SVGSVGElement?new Qt(n.attr(["x","y","width","height"])):n.bbox()}catch(t){return}const i=new Xt(n),s=i.translate(t,e).transform(i.inverse()),o=new Vt(r.x,r.y).transform(s);n.move(o.x,o.y)})),this}function ir(t){return this.dmove(t,0)}function sr(t){return this.dmove(0,t)}function or(t,e=this.bbox()){return null==t?e.height:this.size(e.width,t,e)}function ar(t=0,e=0,n=this.bbox()){const r=t-n.x,i=e-n.y;return this.dmove(r,i)}function ur(t,e,n=this.bbox()){const r=st(this,t,e,n),i=r.width/n.width,s=r.height/n.height;return this.children().forEach((t=>{const e=new Vt(n).transform(new Xt(t).inverse());t.scale(i,s,e.x,e.y)})),this}function hr(t,e=this.bbox()){return null==t?e.width:this.size(t,e.height,e)}function lr(t,e=this.bbox()){return null==t?e.x:this.move(t,e.y,e)}function cr(t,e=this.bbox()){return null==t?e.y:this.move(e.x,t,e)}K({Container:{foreignObject:Et((function(t,e){return this.put(new nr).size(t,e)}))}}),kt(nr,"ForeignObject");class dr extends ve{constructor(t,e=t){super(wt("g",t),e)}}St(dr,a),K({Container:{group:Et((function(){return this.put(new dr)}))}}),kt(dr,"G");class fr extends ve{constructor(t,e=t){super(wt("a",t),e)}target(t){return this.attr("target",t)}to(t){return this.attr("href",t,dt)}}St(fr,a),K({Container:{link:Et((function(t){return this.put(new fr).to(t)}))},Element:{unlink(){const t=this.linker();if(!t)return this;const e=t.parent();if(!e)return this.remove();const n=e.index(t);return e.add(this,n),t.remove(),this},linkTo(t){let e=this.linker();return e||(e=new fr,this.wrap(e)),"function"==typeof t?t.call(e,e):e.to(t),this},linker(){const t=this.parent();return t&&"a"===t.node.nodeName.toLowerCase()?t:null}}}),kt(fr,"A");class pr extends ve{constructor(t,e=t){super(wt("mask",t),e)}remove(){return this.targets().forEach((function(t){t.unmask()})),super.remove()}targets(){return ee("svg [mask*="+this.id()+"]")}}K({Container:{mask:Et((function(){return this.defs().put(new pr)}))},Element:{masker(){return this.reference("mask")},maskWith(t){const e=t instanceof pr?t:this.parent().mask().add(t);return this.attr("mask","url(#"+e.id()+")")},unmask(){return this.attr("mask",null)}}}),kt(pr,"Mask");class mr extends ge{constructor(t,e=t){super(wt("stop",t),e)}update(t){return("number"==typeof t||t instanceof de)&&(t={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",new de(t.offset)),this}}K({Gradient:{stop:function(t,e,n){return this.put(new mr).update(t,e,n)}}}),kt(mr,"Stop");class gr extends ge{constructor(t,e=t){super(wt("style",t),e)}addText(t=""){return this.node.textContent+=t,this}font(t,e,n={}){return this.rule("@font-face",{fontFamily:t,src:e,...n})}rule(t,e){return this.addText(function(t,e){if(!t)return"";if(!e)return t;let n=t+"{";for(const t in e)n+=t.replace(/([A-Z])/g,(function(t,e){return"-"+e.toLowerCase()}))+":"+e[t]+";";return n+="}",n}(t,e))}}K("Dom",{style(t,e){return this.put(new gr).rule(t,e)},fontface(t,e,n){return this.put(new gr).font(t,e,n)}}),kt(gr,"Style");class yr extends Zn{constructor(t,e=t){super(wt("textPath",t),e)}array(){const t=this.track();return t?t.array():null}plot(t){const e=this.track();let n=null;return e&&(n=e.plot(t)),null==t?n:this}track(){return this.reference("href")}}K({Container:{textPath:Et((function(t,e){return t instanceof Zn||(t=this.text(t)),t.path(e)}))},Text:{path:Et((function(t,e=!0){const n=new yr;let r;if(t instanceof yn||(t=this.defs().path(t)),n.attr("href","#"+t,dt),e)for(;r=this.node.firstChild;)n.node.appendChild(r);return this.put(n)})),textPath(){return this.findOne("textPath")}},Path:{text:Et((function(t){return t instanceof Zn||(t=(new Zn).addTo(this.parent()).text(t)),t.path(this)})),targets(){return ee("svg textPath").filter((t=>(t.attr("href")||"").includes(this.id())))}}}),yr.prototype.MorphArray=hn,kt(yr,"TextPath");class vr extends xe{constructor(t,e=t){super(wt("use",t),e)}use(t,e){return this.attr("href",(e||"")+"#"+t,dt)}}K({Container:{use:Et((function(t,e){return this.put(new vr).use(t,e)}))}}),kt(vr,"Use"),St([In,Rn,Pe,We,Ve],tt("viewbox")),St([Ge,_n,Nn,yn],tt("marker")),St(Zn,tt("Text")),St(yn,tt("Path")),St(we,tt("Defs")),St([Zn,Kn],tt("Tspan")),St([Tn,Ce,De,On],tt("radius")),St(ue,tt("EventTarget")),St(me,tt("Dom")),St(ge,tt("Element")),St(xe,tt("Shape")),St([ve,Le],tt("Container")),St(De,tt("Gradient")),St(On,tt("Runner")),Kt.extend([...new Set(Z)]),function(t=[]){gn.push(...[].concat(t))}([de,Gt,Qt,Xt,ce,Ie,hn,Vt]),St(gn,{to(t){return(new cn).type(this.constructor).from(this.toArray()).to(t)},fromArray(t){return this.init(t),this},toConsumable(){return this.toArray()},morph(t,e,n,r,i){return this.fromArray(t.map((function(t,s){return r.step(t,e[s],n,i[s],i)})))}});var wr,xr,br,kr,Nr,_r,Tr,Sr,Er,Mr,Cr,Ar,Lr,Or,jr,Dr,Wr,Pr,qr,Ir,Rr,Hr,zr,Fr,Br,Gr,Vr,Ur,Xr,$r,Yr,Qr,Jr,Zr,Kr,ti,ei,ni,ri,ii,si,oi,ai,ui,hi,li,ci,di,fi,pi,mi,gi,yi,vi,wi,xi,bi,ki,Ni,_i,Ti,Si,Ei,Mi,Ci,Ai,Li,Oi,ji,Di,Wi=n(169),Pi=n(692),qi=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)},Ii=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n};class Ri{constructor(t){wr.add(this),this.domNode=document.createElement("div"),xr.set(this,new Hi),br.set(this,document.createElement("div")),kr.set(this,void 0),Nr.set(this,document.createElement("div")),_r.set(this,void 0),Tr.set(this,void 0),Sr.set(this,void 0),Er.set(this,void 0),Mr.set(this,void 0),Cr.set(this,void 0),Ar.set(this,void 0),Lr.set(this,void 0),Or.set(this,void 0),jr.set(this,void 0),Dr.set(this,void 0),this.domNode.classList.add(k.lf),qi(this,xr,"f").domNode.addEventListener("click",(()=>this.domNode.classList.toggle(k.ho))),this.domNode.append(qi(this,xr,"f").domNode),qi(this,br,"f").classList.add(k.Qs),this.domNode.append(qi(this,br,"f")),Ii(this,kr,new zi(t),"f"),qi(this,br,"f").append(qi(this,kr,"f").domNode),qi(this,Nr,"f").classList.add(k.x3),qi(this,br,"f").append(qi(this,Nr,"f")),Ii(this,_r,new Fi(t),"f"),qi(this,Nr,"f").append(qi(this,_r,"f").domNode),Ii(this,Tr,new Bi(t),"f"),qi(this,Nr,"f").append(qi(this,Tr,"f").domNode),Ii(this,Sr,new Gi(t),"f"),qi(this,Nr,"f").append(qi(this,Sr,"f").domNode),Ii(this,Er,new Vi(t),"f"),qi(this,Nr,"f").append(qi(this,Er,"f").domNode),Ii(this,Mr,new Ui(t),"f"),qi(this,Nr,"f").append(qi(this,Mr,"f").domNode),Ii(this,Cr,new Xi(t),"f"),qi(this,Nr,"f").append(qi(this,Cr,"f").domNode),Ii(this,Ar,new $i(t),"f"),qi(this,Nr,"f").append(qi(this,Ar,"f").domNode),Ii(this,Lr,new Yi(t),"f"),qi(this,Nr,"f").append(qi(this,Lr,"f").domNode),Ii(this,Or,new Zi(t),"f"),qi(this,Nr,"f").append(qi(this,Or,"f").domNode),Ii(this,jr,new Ki(t),"f"),qi(this,Nr,"f").append(qi(this,jr,"f").domNode),Ii(this,Dr,new ts(t),"f"),qi(this,Nr,"f").append(qi(this,Dr,"f").domNode)}refresh(){qi(this,wr,"a",Wr).forEach((t=>t.refresh()))}}xr=new WeakMap,br=new WeakMap,kr=new WeakMap,Nr=new WeakMap,_r=new WeakMap,Tr=new WeakMap,Sr=new WeakMap,Er=new WeakMap,Mr=new WeakMap,Cr=new WeakMap,Ar=new WeakMap,Lr=new WeakMap,Or=new WeakMap,jr=new WeakMap,Dr=new WeakMap,wr=new WeakSet,Wr=function(){return[qi(this,kr,"f"),qi(this,_r,"f"),qi(this,Tr,"f"),qi(this,Sr,"f"),qi(this,Er,"f"),qi(this,Mr,"f"),qi(this,Cr,"f"),qi(this,Ar,"f"),qi(this,Lr,"f"),qi(this,Or,"f"),qi(this,jr,"f"),qi(this,Dr,"f")]};class Hi{constructor(){this.domNode=document.createElement("div"),Pr.set(this,document.createElementNS("http://www.w3.org/2000/svg","svg")),qr.set(this,document.createElement("p")),this.domNode.classList.add(k.wx),qi(this,Pr,"f").classList.add(k.m9),qi(this,Pr,"f").setAttribute("viewBox","0 0 6 10"),qi(this,Pr,"f").setAttribute("width","6"),qi(this,Pr,"f").setAttribute("height","10"),qi(this,Pr,"f").innerHTML='\n <path\n d="M 1 1 L 5 5 L 1 9"\n stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"\n fill="none"\n ></path>\n ',this.domNode.append(qi(this,Pr,"f")),qi(this,qr,"f").classList.add(k.aW),qi(this,qr,"f").textContent="Bases",this.domNode.append(qi(this,qr,"f"))}}Pr=new WeakMap,qr=new WeakMap;class zi{constructor(t){Ir.set(this,void 0),this.domNode=document.createElement("p"),Rr.set(this,document.createElement("span")),Hr.set(this,document.createElement("span")),Ii(this,Ir,t,"f"),this.domNode.classList.add(k.IU),qi(this,Rr,"f").style.fontWeight="700",this.domNode.append(qi(this,Rr,"f"),qi(this,Hr,"f")),qi(this,Ir,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}refresh(){let t=[...qi(this,Ir,"f").selectedBases].length;qi(this,Rr,"f").textContent=`${t}`,qi(this,Hr,"f").textContent=1==t?" base is selected.":" bases are selected."}}Ir=new WeakMap,Rr=new WeakMap,Hr=new WeakMap;class Fi{constructor(t){zr.add(this),Fr.set(this,void 0),Br.set(this,new M({onSubmit:()=>qi(this,zr,"m",Vr).call(this)})),Gr.set(this,void 0),Ii(this,Fr,t,"f"),Ii(this,Gr,new I("Text Content",qi(this,Br,"f").domNode),"f"),qi(this,Gr,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent",Pi(this.domNode).css({alignSelf:"start"}),qi(this,Fr,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(qi(this,Fr,"f").drawing.domNode,{characterData:!0,subtree:!0}),this.refresh()}get domNode(){return qi(this,Gr,"f").domNode}refresh(){let t=[...qi(this,Fr,"f").selectedBases];try{qi(this,Br,"f").domNode.value=(0,Wi.consensusValue)(t.map((t=>{var e;return null!==(e=t.textContent)&&void 0!==e?e:""})))}catch(t){qi(this,Br,"f").domNode.value=""}}}Fr=new WeakMap,Br=new WeakMap,Gr=new WeakMap,zr=new WeakSet,Vr=function(){var t;let e=null!==(t=qi(this,Br,"f").domNode.value)&&void 0!==t?t:"";if(e=e.trim(),!e)return void this.refresh();let n=[...qi(this,Fr,"f").selectedBases];0==n.length||n.every((t=>t.textContent===e))||(qi(this,Fr,"f").pushUndoStack(),n.forEach((t=>t.maintainingCenterPoint((()=>t.textContent=e))))),this.refresh()};class Bi{constructor(t){Ur.set(this,void 0),Xr.set(this,void 0),$r.set(this,void 0),Ii(this,Ur,t,"f"),Ii(this,Xr,new rs(t,"fill"),"f"),Ii(this,$r,new I("Fill",qi(this,Xr,"f").domNode),"f"),qi(this,$r,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill",Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return qi(this,$r,"f").domNode}refresh(){qi(this,Xr,"f").refresh()}}Ur=new WeakMap,Xr=new WeakMap,$r=new WeakMap;class Gi{constructor(t){Yr.add(this),Qr.set(this,void 0),Jr.set(this,new X),Zr.set(this,void 0),Kr.set(this,void 0),ti.set(this,void 0),Ii(this,Qr,t,"f"),qi(this,Jr,"f").domNode.addEventListener("input",(()=>qi(this,Yr,"m",ei).call(this))),Ii(this,Zr,new Q("Fill Color",qi(this,Jr,"f").domNode),"f"),Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),qi(this,Qr,"f").selectedBases.addEventListener("change",(()=>Ii(this,Kr,void 0,"f"))),qi(this,Jr,"f").domNode.addEventListener("focus",(()=>Ii(this,ti,qi(this,Jr,"f").domNode.value,"f"))),qi(this,Qr,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(qi(this,Qr,"f").drawing.domNode,{attributes:!0,attributeFilter:["fill"],subtree:!0}),this.refresh()}get domNode(){return qi(this,Zr,"f").domNode}refresh(){let t=[...qi(this,Qr,"f").selectedBases];if(0!=t.length)try{let e=t.map((t=>window.getComputedStyle(t.domNode).fill)).map((t=>new Gt(t)));qi(this,Jr,"f").domNode.value=(0,Wi.consensusValue)(e.map((t=>t.toHex().toLowerCase())))}catch(t){qi(this,Jr,"f").domNode.value="#000000"}else qi(this,Jr,"f").domNode.value="#000000"}}Qr=new WeakMap,Jr=new WeakMap,Zr=new WeakMap,Kr=new WeakMap,ti=new WeakMap,Yr=new WeakSet,ei=function(){if(qi(this,Jr,"f").domNode.value===qi(this,ti,"f"))return;let t=[...qi(this,Qr,"f").selectedBases];0!=t.length?(t.every((t=>{var e;return(null===(e=t.getAttribute("fill"))||void 0===e?void 0:e.toLowerCase())===qi(this,Jr,"f").domNode.value.toLowerCase()}))||((qi(this,Qr,"f").undoStack.isEmpty()||qi(this,Qr,"f").undoStack.peek()!==qi(this,Kr,"f"))&&(qi(this,Qr,"f").pushUndoStack(),Ii(this,Kr,qi(this,Qr,"f").undoStack.peek(),"f")),t.forEach((t=>t.setAttribute("fill",qi(this,Jr,"f").domNode.value.toLowerCase())))),this.refresh()):this.refresh()};class Vi{constructor(t){ni.set(this,void 0),ri.set(this,void 0),ii.set(this,void 0),Ii(this,ni,t,"f"),Ii(this,ri,new rs(t,"fill-opacity"),"f"),Ii(this,ii,new I("Fill Opacity",qi(this,ri,"f").domNode),"f"),qi(this,ii,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-opacity",Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return qi(this,ii,"f").domNode}refresh(){qi(this,ri,"f").refresh()}}ni=new WeakMap,ri=new WeakMap,ii=new WeakMap;class Ui{constructor(t){si.set(this,void 0),oi.set(this,void 0),ai.set(this,void 0),Ii(this,si,t,"f"),Ii(this,oi,new rs(t,"font-family"),"f"),Ii(this,ai,new I("Font Family",qi(this,oi,"f").domNode),"f"),qi(this,ai,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-family",Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return qi(this,ai,"f").domNode}refresh(){qi(this,oi,"f").refresh()}}si=new WeakMap,oi=new WeakMap,ai=new WeakMap;class Xi{constructor(t){ui.set(this,void 0),hi.set(this,void 0),li.set(this,void 0),Ii(this,ui,t,"f"),Ii(this,hi,new rs(t,"font-size"),"f"),Ii(this,li,new I("Font Size",qi(this,hi,"f").domNode),"f"),qi(this,li,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-size",Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return qi(this,li,"f").domNode}refresh(){qi(this,hi,"f").refresh()}}ui=new WeakMap,hi=new WeakMap,li=new WeakMap;class $i{constructor(t){ci.set(this,void 0),di.set(this,void 0),fi.set(this,void 0),Ii(this,ci,t,"f"),Ii(this,di,new rs(t,"font-weight"),"f"),Ii(this,fi,new I("Font Weight",qi(this,di,"f").domNode),"f"),qi(this,fi,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-weight",Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return qi(this,fi,"f").domNode}refresh(){qi(this,di,"f").refresh()}}ci=new WeakMap,di=new WeakMap,fi=new WeakMap;class Yi{constructor(t){pi.add(this),mi.set(this,void 0),gi.set(this,new z),yi.set(this,void 0),Ii(this,mi,t,"f"),qi(this,gi,"f").domNode.addEventListener("change",(()=>qi(this,pi,"m",vi).call(this))),Ii(this,yi,new G("Bold",qi(this,gi,"f").domNode),"f"),Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),qi(this,mi,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(qi(this,mi,"f").drawing.domNode,{attributes:!0,attributeFilter:["font-weight"],subtree:!0}),this.refresh()}get domNode(){return qi(this,yi,"f").domNode}refresh(){let t=[...qi(this,mi,"f").selectedBases];0==t.length?qi(this,gi,"f").domNode.checked=!1:qi(this,gi,"f").domNode.checked=t.every(Qi)}}function Qi(t){let e=t.getAttribute("font-weight");if(null===e)return!1;let n=Number.parseFloat(e);return Number.isNaN(n)?"bold"===e.toLowerCase():n>=700}function Ji(t){return!Qi(t)}mi=new WeakMap,gi=new WeakMap,yi=new WeakMap,pi=new WeakSet,vi=function(){let t=[...qi(this,mi,"f").selectedBases];0!=t.length?qi(this,gi,"f").domNode.checked&&t.every(Qi)?this.refresh():qi(this,gi,"f").domNode.checked||!t.every(Ji)?(qi(this,mi,"f").pushUndoStack(),t.forEach((t=>{t.maintainingCenterPoint((()=>{qi(this,gi,"f").domNode.checked&&Ji(t)?t.setAttribute("font-weight","700"):!qi(this,gi,"f").domNode.checked&&Qi(t)&&t.setAttribute("font-weight","400")}))})),this.refresh(),qi(this,gi,"f").domNode.blur()):this.refresh():this.refresh()};class Zi{constructor(t){wi.set(this,void 0),xi.set(this,void 0),bi.set(this,void 0),Ii(this,wi,t,"f"),Ii(this,xi,new rs(t,"font-style"),"f"),Ii(this,bi,new I("Font Style",qi(this,xi,"f").domNode),"f"),qi(this,bi,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-style",Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return qi(this,bi,"f").domNode}refresh(){qi(this,xi,"f").refresh()}}wi=new WeakMap,xi=new WeakMap,bi=new WeakMap;class Ki{constructor(t){ki.set(this,void 0),Ni.set(this,void 0),_i.set(this,void 0),Ii(this,ki,t,"f"),Ii(this,Ni,new rs(t,"text-decoration"),"f"),Ii(this,_i,new I("Text Decoration",qi(this,Ni,"f").domNode),"f"),qi(this,_i,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/text-decoration",Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return qi(this,_i,"f").domNode}refresh(){qi(this,Ni,"f").refresh()}}ki=new WeakMap,Ni=new WeakMap,_i=new WeakMap;class ts{constructor(t){Ti.add(this),Si.set(this,void 0),Ei.set(this,new z),Mi.set(this,void 0),Ii(this,Si,t,"f"),qi(this,Ei,"f").domNode.addEventListener("change",(()=>qi(this,Ti,"m",Ci).call(this))),Ii(this,Mi,new G("Underlined",qi(this,Ei,"f").domNode),"f"),Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),qi(this,Si,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(qi(this,Si,"f").drawing.domNode,{attributes:!0,attributeFilter:["text-decoration"],subtree:!0}),this.refresh()}get domNode(){return qi(this,Mi,"f").domNode}refresh(){let t=[...qi(this,Si,"f").selectedBases];0==t.length?qi(this,Ei,"f").domNode.checked=!1:qi(this,Ei,"f").domNode.checked=t.every(es)}}function es(t){let e=t.getAttribute("text-decoration");return null!==e&&e.split(/\s/).map((t=>t.toLowerCase())).includes("underline")}function ns(t){return!es(t)}Si=new WeakMap,Ei=new WeakMap,Mi=new WeakMap,Ti=new WeakSet,Ci=function(){let t=[...qi(this,Si,"f").selectedBases];0!=t.length?qi(this,Ei,"f").domNode.checked&&t.every(es)?this.refresh():qi(this,Ei,"f").domNode.checked||!t.every(ns)?(qi(this,Si,"f").pushUndoStack(),t.forEach((t=>{t.maintainingCenterPoint((()=>{qi(this,Ei,"f").domNode.checked&&ns(t)?t.setAttribute("text-decoration","underline"):!qi(this,Ei,"f").domNode.checked&&es(t)&&t.setAttribute("text-decoration","")}))})),this.refresh(),qi(this,Ei,"f").domNode.blur()):this.refresh():this.refresh()};class rs{constructor(t,e){Ai.add(this),Li.set(this,void 0),Oi.set(this,void 0),ji.set(this,new M({onSubmit:()=>qi(this,Ai,"m",Di).call(this)})),Ii(this,Li,t,"f"),Ii(this,Oi,e,"f"),qi(this,Li,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(qi(this,Li,"f").drawing.domNode,{attributes:!0,subtree:!0}),this.refresh()}get domNode(){return qi(this,ji,"f").domNode}refresh(){let t=[...qi(this,Li,"f").selectedBases];try{qi(this,ji,"f").domNode.value=(0,Wi.consensusValue)(t.map((t=>{var e;return null!==(e=t.getAttribute(qi(this,Oi,"f")))&&void 0!==e?e:""})))}catch(t){qi(this,ji,"f").domNode.value=""}}}Li=new WeakMap,Oi=new WeakMap,ji=new WeakMap,Ai=new WeakSet,Di=function(){let t=qi(this,ji,"f").domNode.value,e=[...qi(this,Li,"f").selectedBases];0==e.length||e.every((e=>e.getAttribute(qi(this,Oi,"f"))===t))||(qi(this,Li,"f").pushUndoStack(),e.forEach((e=>e.maintainingCenterPoint((()=>e.setAttribute(qi(this,Oi,"f"),t)))))),this.refresh()};var is=n(924),ss={};ss.styleTagTransform=w(),ss.setAttributes=m(),ss.insert=f().bind(null,"head"),ss.domAPI=c(),ss.insertStyleElement=y(),h()(is.Ay,ss),is.Ay&&is.Ay.locals&&is.Ay.locals;var os=n(584),as={};as.styleTagTransform=w(),as.setAttributes=m(),as.insert=f().bind(null,"head"),as.domAPI=c(),as.insertStyleElement=y(),h()(os.Ay,as),os.Ay&&os.Ay.locals&&os.Ay.locals;var us,hs=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class ls{constructor(){this.domNode=document.createElement("div"),this.caret=new cs,us.set(this,document.createElement("p")),this.domNode.classList.add(os.kY),this.caret.domNode.style.marginRight="6px",this.caret.domNode.style.pointerEvents="auto",this.domNode.append(this.caret.domNode),hs(this,us,"f").classList.add(os.Qq),this.domNode.append(hs(this,us,"f"))}get textContent(){return hs(this,us,"f").textContent}set textContent(t){hs(this,us,"f").textContent=t}}us=new WeakMap;class cs{constructor(){this.domNode=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.domNode.classList.add(os.OW),this.domNode.setAttribute("viewBox","0 0 6 10"),this.domNode.setAttribute("width","6"),this.domNode.setAttribute("height","10"),this.domNode.innerHTML='\n <path\n d="M 1 1 L 5 5 L 1 9"\n stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"\n fill="none"\n ></path>\n '}pointRight(){this.domNode.classList.remove(os.Z7)}pointDown(){this.domNode.classList.add(os.Z7)}}var ds=n(723),fs={};fs.styleTagTransform=w(),fs.setAttributes=m(),fs.insert=f().bind(null,"head"),fs.domAPI=c(),fs.insertStyleElement=y(),h()(ds.Ay,fs),ds.Ay&&ds.Ay.locals&&ds.Ay.locals;var ps,ms,gs=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class ys{constructor(t,e){this.domNode=document.createElement("div"),ps.set(this,document.createElement("p")),this.tooltip=new vs,this.domNode.classList.add(ds.kL),gs(this,ps,"f").classList.add(ds.Wu),!t||(this.textContent=t),!e||(this.onClick=e),this.domNode.append(gs(this,ps,"f"),this.tooltip.domNode)}get textContent(){return gs(this,ps,"f").textContent}set textContent(t){gs(this,ps,"f").textContent=t}get onClick(){return gs(this,ps,"f").onclick}set onClick(t){gs(this,ps,"f").onclick=t}click(){gs(this,ps,"f").click()}disable(){gs(this,ps,"f").classList.add(ds.r9)}enable(){gs(this,ps,"f").classList.remove(ds.r9)}isDisabled(){return gs(this,ps,"f").classList.contains(ds.r9)}isEnabled(){return!this.isDisabled()}}ps=new WeakMap;class vs{constructor(){this.domNode=document.createElement("div"),ms.set(this,document.createElement("p")),this.domNode.classList.add(ds.YL),this.domNode.style.visibility="hidden",gs(this,ms,"f").classList.add(ds.Ks);let t=document.createElement("div");t.classList.add(ds.Qs),t.append(gs(this,ms,"f")),this.domNode.append(t)}get textContent(){return gs(this,ms,"f").textContent}set textContent(t){gs(this,ms,"f").textContent=t,this.domNode.style.visibility=t?"visible":"hidden"}}ms=new WeakMap;var ws,xs,bs,ks,Ns,_s,Ts,Ss,Es,Ms,Cs,As,Ls,Os,js,Ds,Ws,Ps,qs,Is,Rs,Hs,zs,Fs,Bs,Gs,Vs,Us,Xs,$s,Ys,Qs,Js,Zs,Ks,to,eo,no,ro,io,so,oo,ao,uo,ho,lo,co,fo,po,mo,go,yo,vo,wo,xo,bo,ko,No,_o,To,So,Eo=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},Mo=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class Co{constructor(t){ws.add(this),xs.set(this,void 0),this.domNode=document.createElement("div"),bs.set(this,new ls),ks.set(this,document.createElement("div")),Ns.set(this,void 0),_s.set(this,document.createElement("div")),Ts.set(this,void 0),Ss.set(this,void 0),Es.set(this,void 0),Ms.set(this,void 0),Cs.set(this,void 0),As.set(this,void 0),Ls.set(this,void 0),Os.set(this,void 0),Eo(this,xs,t,"f"),this.domNode.classList.add(is.qM),Mo(this,bs,"f").textContent="Outlines",Mo(this,bs,"f").domNode.addEventListener("click",(()=>this.toggle())),this.domNode.append(Mo(this,bs,"f").domNode),this.domNode.append(Mo(this,ks,"f")),Eo(this,Ns,new Ao(t),"f"),Mo(this,ks,"f").append(Mo(this,Ns,"f").domNode),Mo(this,_s,"f").classList.add(is.x3),Mo(this,ks,"f").append(Mo(this,_s,"f")),Eo(this,Ts,new Lo(t),"f"),Mo(this,_s,"f").append(Mo(this,Ts,"f").domNode),Eo(this,Ss,new jo(t),"f"),Mo(this,_s,"f").append(Mo(this,Ss,"f").domNode),Eo(this,Es,new Do(t),"f"),Mo(this,_s,"f").append(Mo(this,Es,"f").domNode),Eo(this,Ms,new Wo(t),"f"),Mo(this,_s,"f").append(Mo(this,Ms,"f").domNode),Eo(this,Cs,new Po(t),"f"),Mo(this,_s,"f").append(Mo(this,Cs,"f").domNode),Eo(this,As,new qo(t),"f"),Mo(this,_s,"f").append(Mo(this,As,"f").domNode),Eo(this,Ls,new Io(t),"f"),Mo(this,_s,"f").append(Mo(this,Ls,"f").domNode),Eo(this,Os,new Ro(t),"f"),Mo(this,_s,"f").append(Mo(this,Os,"f").domNode)}isOpen(){return this.domNode.classList.contains(is.ho)}toggle(){this.isOpen()?(this.domNode.classList.remove(is.ho),Mo(this,bs,"f").caret.pointRight()):(this.domNode.classList.add(is.ho),Mo(this,bs,"f").caret.pointDown())}refresh(){Mo(this,ws,"a",js).forEach((t=>t.refresh()))}}xs=new WeakMap,bs=new WeakMap,ks=new WeakMap,Ns=new WeakMap,_s=new WeakMap,Ts=new WeakMap,Ss=new WeakMap,Es=new WeakMap,Ms=new WeakMap,Cs=new WeakMap,As=new WeakMap,Ls=new WeakMap,Os=new WeakMap,ws=new WeakSet,js=function(){return[Mo(this,Ns,"f"),Mo(this,Ts,"f"),Mo(this,Ss,"f"),Mo(this,Es,"f"),Mo(this,Ms,"f"),Mo(this,Cs,"f"),Mo(this,As,"f"),Mo(this,Ls,"f")]};class Ao{constructor(t){Ds.set(this,void 0),this.domNode=document.createElement("p"),Ws.set(this,document.createElement("span")),Ps.set(this,document.createElement("span")),Eo(this,Ds,t,"f"),this.domNode.classList.add(is.vM),Mo(this,Ws,"f").style.fontWeight="700",this.domNode.append(Mo(this,Ws,"f"),Mo(this,Ps,"f")),Mo(this,Ds,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}refresh(){let t=[...Mo(this,Ds,"f").selectedOutlines].length;Mo(this,Ws,"f").textContent=`${t}`,Mo(this,Ps,"f").textContent=1==t?" outline is selected.":" outlines are selected."}}Ds=new WeakMap,Ws=new WeakMap,Ps=new WeakMap;class Lo{constructor(t){qs.add(this),Is.set(this,void 0),this.domNode=document.createElement("div"),Rs.set(this,document.createElement("div")),Hs.set(this,new ys("Add",(()=>Mo(this,qs,"m",Xs).call(this)))),zs.set(this,new z),Fs.set(this,new G("Only add missing outlines",Mo(this,zs,"f").domNode)),Bs.set(this,void 0),Gs.set(this,void 0),Eo(this,Is,t,"f"),this.domNode.style.display="flex",this.domNode.style.flexDirection="column",Mo(this,Rs,"f").style.display="flex",Mo(this,Rs,"f").style.flexDirection="row",Mo(this,Rs,"f").style.gap="12px",this.domNode.append(Mo(this,Rs,"f")),Eo(this,Bs,new Oo(t),"f"),Mo(this,Rs,"f").append(Mo(this,Hs,"f").domNode,Mo(this,Bs,"f").domNode),Mo(this,Fs,"f").domNode.style.marginTop="12px",Mo(this,Fs,"f").domNode.style.alignSelf="start",this.domNode.append(Mo(this,Fs,"f").domNode),t.selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),Eo(this,Gs,new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})),"f"),Mo(this,Gs,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),this.refresh()}refresh(){Mo(this,qs,"m",Us).call(this),Mo(this,Bs,"f").refresh()}}Is=new WeakMap,Rs=new WeakMap,Hs=new WeakMap,zs=new WeakMap,Fs=new WeakMap,Bs=new WeakMap,Gs=new WeakMap,qs=new WeakSet,Vs=function(){return Mo(this,zs,"f").domNode.checked},Us=function(){let t=[...Mo(this,Is,"f").selectedBases],e=[...Mo(this,Is,"f").drawing.outlines],n=new Set(e.map((t=>t.owner))),r=t.filter((t=>!n.has(t)));0==t.length?(Mo(this,Hs,"f").disable(),Mo(this,Hs,"f").tooltip.textContent="No bases are selected."):Mo(this,qs,"a",Vs)&&0==r.length?(Mo(this,Hs,"f").disable(),Mo(this,Hs,"f").tooltip.textContent="All selected bases are already outlined."):(Mo(this,Hs,"f").enable(),Mo(this,Hs,"f").tooltip.textContent="Outline the selected bases.")},Xs=function(){let t=[...Mo(this,Is,"f").selectedBases];if(0==t.length)return;let e=[...Mo(this,Is,"f").drawing.outlines],n=new Set(e.map((t=>t.owner))),r=t.filter((t=>!n.has(t))),i=Mo(this,qs,"a",Vs)?r:t;if(0==i.length)return;Mo(this,Is,"f").pushUndoStack();let s=i.map((t=>Mo(this,Is,"f").drawing.outline(t)));Mo(this,Is,"f").addToSelected(s),this.refresh()};class Oo{constructor(t){$s.set(this,void 0),Ys.set(this,new ys("Remove",(()=>this.press()))),Eo(this,$s,t,"f"),Mo(this,$s,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}get domNode(){return Mo(this,Ys,"f").domNode}press(){let t=[...Mo(this,$s,"f").selectedOutlines];0!=t.length?(Mo(this,$s,"f").pushUndoStack(),t.forEach((t=>t.domNode.remove())),this.refresh()):this.refresh()}refresh(){let t=[...Mo(this,$s,"f").selectedOutlines];0==t.length?Mo(this,Ys,"f").disable():Mo(this,Ys,"f").enable(),Mo(this,Ys,"f").tooltip.textContent=0==t.length?"No outlines are selected.":"Remove the selected outlines."}}$s=new WeakMap,Ys=new WeakMap;class jo{constructor(t){Qs.set(this,void 0),Js.set(this,void 0),Zs.set(this,void 0),Eo(this,Qs,t,"f"),Eo(this,Js,new Ho(t,"r"),"f"),Eo(this,Zs,new I("Radius",Mo(this,Js,"f").domNode),"f"),Mo(this,Zs,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/r",Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Mo(this,Zs,"f").domNode}refresh(){Mo(this,Js,"f").refresh()}}Qs=new WeakMap,Js=new WeakMap,Zs=new WeakMap;class Do{constructor(t){Ks.set(this,void 0),to.set(this,void 0),eo.set(this,void 0),Eo(this,Ks,t,"f"),Eo(this,to,new Ho(t,"fill"),"f"),Eo(this,eo,new I("Fill",Mo(this,to,"f").domNode),"f"),Mo(this,eo,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/fill",Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Mo(this,eo,"f").domNode}refresh(){Mo(this,to,"f").refresh()}}Ks=new WeakMap,to=new WeakMap,eo=new WeakMap;class Wo{constructor(t){no.add(this),ro.set(this,void 0),io.set(this,new X),so.set(this,void 0),oo.set(this,void 0),ao.set(this,void 0),Eo(this,ro,t,"f"),Mo(this,io,"f").domNode.addEventListener("input",(()=>Mo(this,no,"m",uo).call(this))),Eo(this,so,new Q("Fill Color",Mo(this,io,"f").domNode),"f"),Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Mo(this,ro,"f").selectedOutlines.addEventListener("change",(()=>Eo(this,oo,void 0,"f"))),Mo(this,io,"f").domNode.addEventListener("focus",(()=>Eo(this,ao,Mo(this,io,"f").domNode.value,"f"))),Mo(this,ro,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Mo(this,ro,"f").drawing.domNode,{attributes:!0,attributeFilter:["fill"],subtree:!0}),this.refresh()}get domNode(){return Mo(this,so,"f").domNode}refresh(){let t=[...Mo(this,ro,"f").selectedOutlines];if(0!=t.length)try{let e=t.map((t=>window.getComputedStyle(t.domNode).fill)).map((t=>new Gt(t)));Mo(this,io,"f").domNode.value=(0,Wi.consensusValue)(e.map((t=>t.toHex().toLowerCase())))}catch(t){Mo(this,io,"f").domNode.value="#000000"}else Mo(this,io,"f").domNode.value="#000000"}}ro=new WeakMap,io=new WeakMap,so=new WeakMap,oo=new WeakMap,ao=new WeakMap,no=new WeakSet,uo=function(){if(Mo(this,io,"f").domNode.value===Mo(this,ao,"f"))return;let t=[...Mo(this,ro,"f").selectedOutlines];0!=t.length?(t.every((t=>{var e;return(null===(e=t.domNode.getAttribute("fill"))||void 0===e?void 0:e.toLowerCase())===Mo(this,io,"f").domNode.value.toLowerCase()}))||((Mo(this,ro,"f").undoStack.isEmpty()||Mo(this,ro,"f").undoStack.peek()!==Mo(this,oo,"f"))&&(Mo(this,ro,"f").pushUndoStack(),Eo(this,oo,Mo(this,ro,"f").undoStack.peek(),"f")),t.forEach((t=>t.domNode.setAttribute("fill",Mo(this,io,"f").domNode.value.toLowerCase())))),this.refresh()):this.refresh()};class Po{constructor(t){ho.set(this,void 0),lo.set(this,void 0),co.set(this,void 0),Eo(this,ho,t,"f"),Eo(this,lo,new Ho(t,"fill-opacity"),"f"),Eo(this,co,new I("Fill Opacity",Mo(this,lo,"f").domNode),"f"),Mo(this,co,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/fill-opacity",Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Mo(this,co,"f").domNode}refresh(){Mo(this,lo,"f").refresh()}}ho=new WeakMap,lo=new WeakMap,co=new WeakMap;class qo{constructor(t){fo.set(this,void 0),po.set(this,void 0),mo.set(this,void 0),Eo(this,fo,t,"f"),Eo(this,po,new Ho(t,"stroke"),"f"),Eo(this,mo,new I("Stroke",Mo(this,po,"f").domNode),"f"),Mo(this,mo,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke",Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Mo(this,mo,"f").domNode}refresh(){Mo(this,po,"f").refresh()}}fo=new WeakMap,po=new WeakMap,mo=new WeakMap,new WeakMap,new WeakMap,new WeakMap,new WeakMap,new WeakMap,new WeakSet;class Io{constructor(t){go.set(this,void 0),yo.set(this,void 0),vo.set(this,void 0),Eo(this,go,t,"f"),Eo(this,yo,new Ho(t,"stroke-opacity"),"f"),Eo(this,vo,new I("Stroke Opacity",Mo(this,yo,"f").domNode),"f"),Mo(this,vo,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-opacity",Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Mo(this,vo,"f").domNode}refresh(){Mo(this,yo,"f").refresh()}}go=new WeakMap,yo=new WeakMap,vo=new WeakMap;class Ro{constructor(t){wo.set(this,void 0),xo.set(this,void 0),bo.set(this,void 0),Eo(this,wo,t,"f"),Eo(this,xo,new Ho(t,"stroke-dasharray"),"f"),Eo(this,bo,new I("Stroke Dash-Array",Mo(this,xo,"f").domNode),"f"),Mo(this,bo,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-dasharray",Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Mo(this,bo,"f").domNode}refresh(){Mo(this,xo,"f").refresh()}}wo=new WeakMap,xo=new WeakMap,bo=new WeakMap;class Ho{constructor(t,e){ko.add(this),No.set(this,void 0),_o.set(this,void 0),To.set(this,new M({onSubmit:()=>Mo(this,ko,"m",So).call(this)})),Eo(this,No,t,"f"),Eo(this,_o,e,"f"),Mo(this,No,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Mo(this,No,"f").drawing.domNode,{attributes:!0,subtree:!0}),this.refresh()}get domNode(){return Mo(this,To,"f").domNode}refresh(){let t=[...Mo(this,No,"f").selectedOutlines];try{Mo(this,To,"f").domNode.value=(0,Wi.consensusValue)(t.map((t=>{var e;return null!==(e=t.domNode.getAttribute(Mo(this,_o,"f")))&&void 0!==e?e:""})))}catch(t){Mo(this,To,"f").domNode.value=""}}}No=new WeakMap,_o=new WeakMap,To=new WeakMap,ko=new WeakSet,So=function(){let t=Mo(this,To,"f").domNode.value,e=[...Mo(this,No,"f").selectedOutlines];0==e.length||e.every((e=>e.domNode.getAttribute(Mo(this,_o,"f"))===t))||(Mo(this,No,"f").pushUndoStack(),e.forEach((e=>e.domNode.setAttribute(Mo(this,_o,"f"),t)))),this.refresh()};var zo=n(290),Fo={};Fo.styleTagTransform=w(),Fo.setAttributes=m(),Fo.insert=f().bind(null,"head"),Fo.domAPI=c(),Fo.insertStyleElement=y(),h()(zo.A,Fo),zo.A&&zo.A.locals&&zo.A.locals;var Bo,Go,Vo,Uo,Xo,$o,Yo=n(139),Qo=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},Jo=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class Zo{constructor(t){Bo.add(this),Go.set(this,void 0),this.domNode=document.createElement("div"),Vo.set(this,void 0),Uo.set(this,void 0),Xo.set(this,void 0),Qo(this,Go,t,"f"),this.domNode.classList.add(x.KQ);let e=document.createElement("p");e.classList.add(x.wx),e.textContent="Edit",this.domNode.append(e);let n=document.createElement("div");n.classList.add(x.UJ),this.domNode.append(n),Qo(this,Vo,new Ri(t),"f"),n.append(Jo(this,Vo,"f").domNode),Qo(this,Uo,new Co(t),"f"),n.append(Jo(this,Uo,"f").domNode);let r=function(){let t=document.createElement("p");return t.classList.add(zo._),t.textContent="Close",t}();r.addEventListener("click",(()=>this.close())),this.domNode.append(r),Qo(this,Xo,new Yo.DragTranslater(this.domNode),"f")}appendTo(t){this.refresh(),this.reposition(),t.appendChild(this.domNode)}close(){this.domNode.remove()}refresh(){Jo(this,Bo,"a",$o).forEach((t=>t.refresh()))}reposition(){Jo(this,Xo,"f").untranslate()}}Go=new WeakMap,Vo=new WeakMap,Uo=new WeakMap,Xo=new WeakMap,Bo=new WeakSet,$o=function(){return[Jo(this,Vo,"f"),Jo(this,Uo,"f")]}})(),r})()));
|
|
2
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["forms.edit"]=e():t["forms.edit"]=e()}(this,(()=>(()=>{var t={51:t=>{"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgOTYgOTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIGlkPSJJY29uc19DaGVja21hcmsiIG92ZXJmbG93PSJoaWRkZW4iPjxwYXRoIGQ9Ik04Ni4xIDE1LjggMzQuOSA2NC4yIDEwLjMgMzkgMS44IDQ3LjEgMzQuNSA4MC43IDQzLjEgNzIuNyA5NC4yIDI0LjJaIiBzdHJva2U9IiNGRkZGRkYiIHN0cm9rZS13aWR0aD0iMy42NjY2NyIgZmlsbD0iI0ZGRkZGRiIvPjwvc3ZnPg=="},56:(t,e,n)=>{"use strict";t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},72:t=>{"use strict";var e=[];function n(t){for(var n=-1,r=0;r<e.length;r++)if(e[r].identifier===t){n=r;break}return n}function r(t,r){for(var s={},o=[],a=0;a<t.length;a++){var u=t[a],h=r.base?u[0]+r.base:u[0],l=s[h]||0,c="".concat(h," ").concat(l);s[h]=l+1;var d=n(c),f={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==d)e[d].references++,e[d].updater(f);else{var p=i(f,r);r.byIndex=a,e.splice(a,0,{identifier:c,updater:p,references:1})}o.push(c)}return o}function i(t,e){var n=e.domAPI(e);return n.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;n.update(t=e)}else n.remove()}}t.exports=function(t,i){var s=r(t=t||[],i=i||{});return function(t){t=t||[];for(var o=0;o<s.length;o++){var a=n(s[o]);e[a].references--}for(var u=r(t,i),h=0;h<s.length;h++){var l=n(s[h]);0===e[l].references&&(e[l].updater(),e.splice(l,1))}s=u}}},113:t=>{"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},139:function(t){var e;e=()=>(()=>{"use strict";var t={826:(t,e,n)=>{n.d(e,{A:()=>u,y:()=>a});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,"._xow9qroX8E0n35EgMyS {\n cursor: grab;\n}\n\n._xow9qroX8E0n35EgMyS:active {\n cursor: grabbing;\n}\n",""]);var a="_xow9qroX8E0n35EgMyS";const u=o},314:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,r,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var o={};if(r)for(var a=0;a<this.length;a++){var u=this[a][0];null!=u&&(o[u]=!0)}for(var h=0;h<t.length;h++){var l=[].concat(t[h]);r&&o[l[0]]||(void 0!==s&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=s),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),e.push(l))}},e}},601:t=>{t.exports=function(t){return t[1]}},72:t=>{var e=[];function n(t){for(var n=-1,r=0;r<e.length;r++)if(e[r].identifier===t){n=r;break}return n}function r(t,r){for(var s={},o=[],a=0;a<t.length;a++){var u=t[a],h=r.base?u[0]+r.base:u[0],l=s[h]||0,c="".concat(h," ").concat(l);s[h]=l+1;var d=n(c),f={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==d)e[d].references++,e[d].updater(f);else{var p=i(f,r);r.byIndex=a,e.splice(a,0,{identifier:c,updater:p,references:1})}o.push(c)}return o}function i(t,e){var n=e.domAPI(e);return n.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;n.update(t=e)}else n.remove()}}t.exports=function(t,i){var s=r(t=t||[],i=i||{});return function(t){t=t||[];for(var o=0;o<s.length;o++){var a=n(s[o]);e[a].references--}for(var u=r(t,i),h=0;h<s.length;h++){var l=n(s[h]);0===e[l].references&&(e[l].updater(),e.splice(l,1))}s=u}}},659:t=>{var e={};t.exports=function(t,n){var r=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},540:t=>{t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},56:(t,e,n)=>{t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},825:t=>{t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var s=n.sourceMap;s&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),e.styleTagTransform(r,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},113:t=>{t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={id:r,exports:{}};return t[r](s,s.exports,n),s.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nc=void 0;var r={};n.r(r),n.d(r,{DragTranslater:()=>v});var i=n(72),s=n.n(i),o=n(825),a=n.n(o),u=n(659),h=n.n(u),l=n(56),c=n.n(l),d=n(540),f=n.n(d),p=n(113),m=n.n(p),g=n(826),y={};y.styleTagTransform=m(),y.setAttributes=c(),y.insert=h().bind(null,"head"),y.domAPI=a(),y.insertStyleElement=f(),s()(g.A,y),g.A&&g.A.locals&&g.A.locals;class v{constructor(t){this.targetForm=t,this.mouseIsDown=!1,this.interactionDepth="shallow",window.addEventListener("mousedown",(t=>this.handleMouseDown(t))),window.addEventListener("mousemove",(t=>this.handleMouseMove(t))),window.addEventListener("mouseup",(t=>this.handleMouseUp(t))),t.addEventListener("mouseover",(e=>{e.target!==t||t.classList.add(g.y)})),t.addEventListener("mouseout",(e=>{e.target!==t||t.classList.remove(g.y)}))}get currentTranslation(){let t=this.targetForm.getBoundingClientRect(),e=t.x,n=t.y,r=this.targetForm.style.translate;this.targetForm.style.translate="0px 0px";let i=this.targetForm.getBoundingClientRect(),s=i.x,o=i.y;return this.targetForm.style.translate=r,{x:e-s,y:n-o}}set currentTranslation(t){this.targetForm.style.translate=`${t.x}px ${t.y}px`}untranslate(){this.targetForm.style.translate="0px 0px"}handleMouseDown(t){this.lastMouseDown=t,this.mouseIsDown=!0}handleMouseMove(t){if(!this.mouseIsDown)return;if(!this.lastMouseDown)return;if(!(this.lastMouseDown.target instanceof Node))return;if("shallow"==this.interactionDepth){if(this.lastMouseDown.target!==this.targetForm)return}else if(!this.targetForm.contains(this.lastMouseDown.target))return;let e=this.currentTranslation;this.currentTranslation={x:e.x+t.movementX,y:e.y+t.movementY}}handleMouseUp(t){this.mouseIsDown=!1}}return r})(),t.exports=e()},169:function(t){t.exports=(()=>{var t={986:function(t){t.exports=(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function n(t){var e=0;return t.forEach((function(t){return e+=t})),e}function r(t){return n(t)/t.length}function i(t){t.sort((function(t,e){return t-e}))}t.r(e),t.d(e,{areWithin:()=>d,average:()=>r,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>h,mean:()=>r,median:()=>a,min:()=>u,sortNumbers:()=>i,sortNumbersAscending:()=>i,sortNumbersDescending:()=>f,sortedNumbers:()=>o,sortedNumbersAscending:()=>o,sortedNumbersDescending:()=>p,sum:()=>n});var s=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,s=e.length;i<s;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};function o(t){var e=s([],t,!0);return i(e),e}function a(t){if(0==t.length)return NaN;var e=o(t);if(e.length%2!=0)return e[Math.floor(e.length/2)];var n=e.length/2,i=n-1;return r([e[n],e[i]])}function u(t){if(0==t.length)return 1/0;var e=t[0];return t.slice(1).forEach((function(t){e=Math.min(e,t)})),e}function h(t){if(0==t.length)return-1/0;var e=t[0];return t.slice(1).forEach((function(t){e=Math.max(e,t)})),e}function l(t,e,n){return t>=e&&t<=n}function c(t,e,n){return t>e&&t<n}function d(t,e,n){return Math.abs(t-e)<=n}function f(t){i(t),t.reverse()}function p(t){var e=o(t);return e.reverse(),e}return e})()}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={exports:{}};return t[r].call(s.exports,s,s.exports,n),s.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";function t(t){if(0==t.length)throw new Error("The array of values is empty.");if(1==new Set(t).size)return t[0];throw new Error("Not all values are the same.")}n.r(r),n.d(r,{consensusValue:()=>t,mostCommonValue:()=>s});var e=n(986);class i{static of(t){return{in:e=>{let n=new Set([t]);return e.filter((t=>n.has(t)))}}}}function s(t){if(0==t.length)throw new Error("The array of values is empty.");let n=[...new Set(t)],r=n.map((e=>i.of(e).in(t).length)),s=(0,e.max)(r),o=n.findIndex((e=>i.of(e).in(t).length==s));if(o<0)throw new Error("Unable to find the most common value.");return n[o]}})(),r})()},290:(t,e,n)=>{"use strict";n.d(e,{A:()=>u,_:()=>a});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.kcto2iumhdvv3MluNmLw {\n position: absolute;\n top: 13px;\n right: 17px;\n\n margin: 0px;\n\n border: none;\n outline: none;\n\n padding: 3px 12px;\n border-radius: 3px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 16px;\n font-weight: 600;\n font-style: normal;\n color: #871414;\n\n pointer-events: auto;\n\n cursor: pointer;\n\n user-select: none;\n -webkit-user-select: none;\n\n background-color: transparent;\n}\n\n.kcto2iumhdvv3MluNmLw:hover {\n background-color: #cab8d99c;\n}\n\n.kcto2iumhdvv3MluNmLw:active {\n background-color: #aa8eba9e;\n}\n',""]);var a="kcto2iumhdvv3MluNmLw";const u=o},314:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,r,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var o={};if(r)for(var a=0;a<this.length;a++){var u=this[a][0];null!=u&&(o[u]=!0)}for(var h=0;h<t.length;h++){var l=[].concat(t[h]);r&&o[l[0]]||(void 0!==s&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=s),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),e.push(l))}},e}},417:t=>{"use strict";t.exports=function(t,e){return e||(e={}),t?(t=String(t.__esModule?t.default:t),/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]|(%20)/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t):t}},419:(t,e,n)=>{"use strict";n.d(e,{A:()=>u,P:()=>a});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.cstoj4QoATbKp66WQrBA {\n border: 1px solid #75758c;\n border-radius: 2px;\n\n outline: none;\n\n width: 90px;\n\n padding: 3px 6px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 700;\n font-style: normal;\n color: black;\n\n pointer-events: auto;\n}\n\n.cstoj4QoATbKp66WQrBA:hover {\n border-color: #0a0a0b;\n}\n\n.cstoj4QoATbKp66WQrBA:focus {\n border-color: #0a0a0b;\n\n outline: none;\n}\n',""]);var a="cstoj4QoATbKp66WQrBA";const u=o},420:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>l,KQ:()=>a,UJ:()=>h,wx:()=>u});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.wkp2L4HpJzRg7XSLEG0O {\n width: 266px;\n height: 524px;\n\n border-radius: 16px;\n\n border: 1px solid #220536;\n\n padding: 23px 32px 50px 36px;\n\n background-color: #f4f5ff;\n\n backdrop-filter: blur(20px);\n -webkit-backdrop-filter: blur(20px);\n\n box-shadow: 0 0 14px rgba(219, 219, 238, 0.09);\n}\n\n.Y7tezdMOsnQfs2CQtMUR {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 35px;\n font-weight: 700;\n font-style: normal;\n color: black;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.blLx0TnwxHwlX8qvUigb {\n margin: 27px 0px 0px 27px;\n\n display: flex;\n flex-direction: column;\n align-items: start;\n\n pointer-events: none;\n}\n',""]);var a="wkp2L4HpJzRg7XSLEG0O",u="Y7tezdMOsnQfs2CQtMUR",h="blLx0TnwxHwlX8qvUigb";const l=o},540:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},584:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>c,OW:()=>h,Qq:()=>u,Z7:()=>l,kY:()=>a});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.PxTHOvfPECESZe6OxVvg {\n display: flex;\n flex-direction: row;\n align-items: center;\n\n align-self: start;\n\n pointer-events: auto;\n\n cursor: pointer;\n}\n\n.hcTi6yK4eMJ8Mc61rqGY {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 700;\n font-style: normal;\n color: black;\n\n pointer-events: auto;\n\n cursor: pointer;\n\n outline: none;\n}\n\n.PxTHOvfPECESZe6OxVvg:hover .hcTi6yK4eMJ8Mc61rqGY {\n text-decoration: underline;\n}\n\n.lVFnQ83G0WswDpb_v1xo {\n margin-right: 6px;\n\n pointer-events: auto;\n}\n\n.MwdzfSTS8dcFWG_qqlI9 {\n transform: rotate(90deg);\n}\n',""]);var a="PxTHOvfPECESZe6OxVvg",u="hcTi6yK4eMJ8Mc61rqGY",h="lVFnQ83G0WswDpb_v1xo",l="MwdzfSTS8dcFWG_qqlI9";const c=o},601:t=>{"use strict";t.exports=function(t){return t[1]}},633:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>m,IU:()=>f,Qs:()=>d,aW:()=>c,ho:()=>l,lf:()=>a,m9:()=>h,wx:()=>u,x3:()=>p});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.dimGBV0h2P1QB3V_Zhmc {\n display: flex;\n flex-direction: column;\n}\n\n.sE2YASqaiPZdV9dz58A7 {\n display: flex;\n flex-direction: row;\n align-items: center;\n\n align-self: start;\n\n pointer-events: auto;\n\n cursor: pointer;\n}\n\n.BYZcOJiOX5zLxIrbc3gR {\n margin-right: 6px;\n\n pointer-events: auto;\n}\n\n.mOH6VML7hViujtEoNaOA .BYZcOJiOX5zLxIrbc3gR {\n transform: rotate(90deg);\n}\n\n.u5w42CVwU4PQ7GiSuy4G {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 700;\n font-style: normal;\n color: black;\n\n pointer-events: auto;\n\n cursor: pointer;\n\n outline: none;\n}\n\n.sE2YASqaiPZdV9dz58A7:hover .u5w42CVwU4PQ7GiSuy4G {\n text-decoration: underline;\n}\n\n.TCp4dzyF9qmbX3ejDOkL {\n margin: 9px 0px 0px 12px;\n\n display: flex;\n flex-direction: column;\n}\n\n.WOjw8GKoS54KQAOlumMa {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 400;\n font-style: normal;\n color: black;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.GGzbmTCCUyvg3GGQc1zr {\n margin-top: 15px;\n\n visibility: collapse;\n}\n\n.mOH6VML7hViujtEoNaOA .GGzbmTCCUyvg3GGQc1zr {\n visibility: visible;\n}\n',""]);var a="dimGBV0h2P1QB3V_Zhmc",u="sE2YASqaiPZdV9dz58A7",h="BYZcOJiOX5zLxIrbc3gR",l="mOH6VML7hViujtEoNaOA",c="u5w42CVwU4PQ7GiSuy4G",d="TCp4dzyF9qmbX3ejDOkL",f="WOjw8GKoS54KQAOlumMa",p="GGzbmTCCUyvg3GGQc1zr";const m=o},659:t=>{"use strict";var e={};t.exports=function(t,n){var r=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},678:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>h,ZZ:()=>a,o3:()=>u});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.rIHrsark1WbeRGC9M1ZY {\n display: flex;\n flex-direction: row;\n align-items: center;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 700;\n font-style: normal;\n color: black;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: auto;\n}\n\n.P5PJGaHxnhsEaezm8Nhg {\n color: black;\n\n cursor: pointer;\n\n text-decoration: none;\n}\n\n.P5PJGaHxnhsEaezm8Nhg:hover {\n text-decoration: underline;\n}\n',""]);var a="rIHrsark1WbeRGC9M1ZY",u="P5PJGaHxnhsEaezm8Nhg";const h=o},692:function(t,e){var n;!function(e,n){"use strict";"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,(function(r,i){"use strict";var s=[],o=Object.getPrototypeOf,a=s.slice,u=s.flat?function(t){return s.flat.call(t)}:function(t){return s.concat.apply([],t)},h=s.push,l=s.indexOf,c={},d=c.toString,f=c.hasOwnProperty,p=f.toString,m=p.call(Object),g={},y=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},v=function(t){return null!=t&&t===t.window},w=r.document,x={type:!0,src:!0,nonce:!0,noModule:!0};function b(t,e,n){var r,i,s=(n=n||w).createElement("script");if(s.text=t,e)for(r in x)(i=e[r]||e.getAttribute&&e.getAttribute(r))&&s.setAttribute(r,i);n.head.appendChild(s).parentNode.removeChild(s)}function k(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?c[d.call(t)]||"object":typeof t}var N="3.7.1",_=/HTML$/i,T=function(t,e){return new T.fn.init(t,e)};function S(t){var e=!!t&&"length"in t&&t.length,n=k(t);return!y(t)&&!v(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function E(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}T.fn=T.prototype={jquery:N,constructor:T,length:0,toArray:function(){return a.call(this)},get:function(t){return null==t?a.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=T.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return T.each(this,t)},map:function(t){return this.pushStack(T.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(T.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(T.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:h,sort:s.sort,splice:s.splice},T.extend=T.fn.extend=function(){var t,e,n,r,i,s,o=arguments[0]||{},a=1,u=arguments.length,h=!1;for("boolean"==typeof o&&(h=o,o=arguments[a]||{},a++),"object"==typeof o||y(o)||(o={}),a===u&&(o=this,a--);a<u;a++)if(null!=(t=arguments[a]))for(e in t)r=t[e],"__proto__"!==e&&o!==r&&(h&&r&&(T.isPlainObject(r)||(i=Array.isArray(r)))?(n=o[e],s=i&&!Array.isArray(n)?[]:i||T.isPlainObject(n)?n:{},i=!1,o[e]=T.extend(h,s,r)):void 0!==r&&(o[e]=r));return o},T.extend({expando:"jQuery"+(N+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==d.call(t)||(e=o(t))&&("function"!=typeof(n=f.call(e,"constructor")&&e.constructor)||p.call(n)!==m))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){b(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,r=0;if(S(t))for(n=t.length;r<n&&!1!==e.call(t[r],r,t[r]);r++);else for(r in t)if(!1===e.call(t[r],r,t[r]))break;return t},text:function(t){var e,n="",r=0,i=t.nodeType;if(!i)for(;e=t[r++];)n+=T.text(e);return 1===i||11===i?t.textContent:9===i?t.documentElement.textContent:3===i||4===i?t.nodeValue:n},makeArray:function(t,e){var n=e||[];return null!=t&&(S(Object(t))?T.merge(n,"string"==typeof t?[t]:t):h.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:l.call(e,t,n)},isXMLDoc:function(t){var e=t&&t.namespaceURI,n=t&&(t.ownerDocument||t).documentElement;return!_.test(e||n&&n.nodeName||"HTML")},merge:function(t,e){for(var n=+e.length,r=0,i=t.length;r<n;r++)t[i++]=e[r];return t.length=i,t},grep:function(t,e,n){for(var r=[],i=0,s=t.length,o=!n;i<s;i++)!e(t[i],i)!==o&&r.push(t[i]);return r},map:function(t,e,n){var r,i,s=0,o=[];if(S(t))for(r=t.length;s<r;s++)null!=(i=e(t[s],s,n))&&o.push(i);else for(s in t)null!=(i=e(t[s],s,n))&&o.push(i);return u(o)},guid:1,support:g}),"function"==typeof Symbol&&(T.fn[Symbol.iterator]=s[Symbol.iterator]),T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){c["[object "+e+"]"]=e.toLowerCase()}));var M=s.pop,C=s.sort,A=s.splice,L="[\\x20\\t\\r\\n\\f]",O=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g");T.contains=function(t,e){var n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(t.contains?t.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))};var j=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function D(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}T.escapeSelector=function(t){return(t+"").replace(j,D)};var W=w,P=h;!function(){var t,e,n,i,o,u,h,c,d,p,m=P,y=T.expando,v=0,w=0,x=tt(),b=tt(),k=tt(),N=tt(),_=function(t,e){return t===e&&(o=!0),0},S="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",j="(?:\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",D="\\["+L+"*("+j+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+j+"))|)"+L+"*\\]",q=":("+j+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+D+")*)|.*)\\)|)",I=new RegExp(L+"+","g"),R=new RegExp("^"+L+"*,"+L+"*"),H=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),z=new RegExp(L+"|>"),F=new RegExp(q),B=new RegExp("^"+j+"$"),G={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j+"|[*])"),ATTR:new RegExp("^"+D),PSEUDO:new RegExp("^"+q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+S+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},V=/^(?:input|select|textarea|button)$/i,U=/^h\d$/i,X=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,$=/[+~]/,Y=new RegExp("\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\([^\\r\\n\\f])","g"),Q=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},J=function(){ut()},Z=dt((function(t){return!0===t.disabled&&E(t,"fieldset")}),{dir:"parentNode",next:"legend"});try{m.apply(s=a.call(W.childNodes),W.childNodes),s[W.childNodes.length].nodeType}catch(t){m={apply:function(t,e){P.apply(t,a.call(e))},call:function(t){P.apply(t,a.call(arguments,1))}}}function K(t,e,n,r){var i,s,o,a,h,l,f,p=e&&e.ownerDocument,v=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==v&&9!==v&&11!==v)return n;if(!r&&(ut(e),e=e||u,c)){if(11!==v&&(h=X.exec(t)))if(i=h[1]){if(9===v){if(!(o=e.getElementById(i)))return n;if(o.id===i)return m.call(n,o),n}else if(p&&(o=p.getElementById(i))&&K.contains(e,o)&&o.id===i)return m.call(n,o),n}else{if(h[2])return m.apply(n,e.getElementsByTagName(t)),n;if((i=h[3])&&e.getElementsByClassName)return m.apply(n,e.getElementsByClassName(i)),n}if(!(N[t+" "]||d&&d.test(t))){if(f=t,p=e,1===v&&(z.test(t)||H.test(t))){for((p=$.test(t)&&at(e.parentNode)||e)==e&&g.scope||((a=e.getAttribute("id"))?a=T.escapeSelector(a):e.setAttribute("id",a=y)),s=(l=lt(t)).length;s--;)l[s]=(a?"#"+a:":scope")+" "+ct(l[s]);f=l.join(",")}try{return m.apply(n,p.querySelectorAll(f)),n}catch(e){N(t,!0)}finally{a===y&&e.removeAttribute("id")}}}return vt(t.replace(O,"$1"),e,n,r)}function tt(){var t=[];return function n(r,i){return t.push(r+" ")>e.cacheLength&&delete n[t.shift()],n[r+" "]=i}}function et(t){return t[y]=!0,t}function nt(t){var e=u.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function rt(t){return function(e){return E(e,"input")&&e.type===t}}function it(t){return function(e){return(E(e,"input")||E(e,"button"))&&e.type===t}}function st(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&Z(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ot(t){return et((function(e){return e=+e,et((function(n,r){for(var i,s=t([],n.length,e),o=s.length;o--;)n[i=s[o]]&&(n[i]=!(r[i]=n[i]))}))}))}function at(t){return t&&void 0!==t.getElementsByTagName&&t}function ut(t){var n,r=t?t.ownerDocument||t:W;return r!=u&&9===r.nodeType&&r.documentElement?(h=(u=r).documentElement,c=!T.isXMLDoc(u),p=h.matches||h.webkitMatchesSelector||h.msMatchesSelector,h.msMatchesSelector&&W!=u&&(n=u.defaultView)&&n.top!==n&&n.addEventListener("unload",J),g.getById=nt((function(t){return h.appendChild(t).id=T.expando,!u.getElementsByName||!u.getElementsByName(T.expando).length})),g.disconnectedMatch=nt((function(t){return p.call(t,"*")})),g.scope=nt((function(){return u.querySelectorAll(":scope")})),g.cssHas=nt((function(){try{return u.querySelector(":has(*,:jqfake)"),!1}catch(t){return!0}})),g.getById?(e.filter.ID=function(t){var e=t.replace(Y,Q);return function(t){return t.getAttribute("id")===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&c){var n=e.getElementById(t);return n?[n]:[]}}):(e.filter.ID=function(t){var e=t.replace(Y,Q);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&c){var n,r,i,s=e.getElementById(t);if(s){if((n=s.getAttributeNode("id"))&&n.value===t)return[s];for(i=e.getElementsByName(t),r=0;s=i[r++];)if((n=s.getAttributeNode("id"))&&n.value===t)return[s]}return[]}}),e.find.TAG=function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):e.querySelectorAll(t)},e.find.CLASS=function(t,e){if(void 0!==e.getElementsByClassName&&c)return e.getElementsByClassName(t)},d=[],nt((function(t){var e;h.appendChild(t).innerHTML="<a id='"+y+"' href='' disabled='disabled'></a><select id='"+y+"-\r\\' disabled='disabled'><option selected=''></option></select>",t.querySelectorAll("[selected]").length||d.push("\\["+L+"*(?:value|"+S+")"),t.querySelectorAll("[id~="+y+"-]").length||d.push("~="),t.querySelectorAll("a#"+y+"+*").length||d.push(".#.+[+~]"),t.querySelectorAll(":checked").length||d.push(":checked"),(e=u.createElement("input")).setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),h.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(e=u.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||d.push("\\["+L+"*name"+L+"*="+L+"*(?:''|\"\")")})),g.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),_=function(t,e){if(t===e)return o=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!g.sortDetached&&e.compareDocumentPosition(t)===n?t===u||t.ownerDocument==W&&K.contains(W,t)?-1:e===u||e.ownerDocument==W&&K.contains(W,e)?1:i?l.call(i,t)-l.call(i,e):0:4&n?-1:1)},u):u}for(t in K.matches=function(t,e){return K(t,null,null,e)},K.matchesSelector=function(t,e){if(ut(t),c&&!N[e+" "]&&(!d||!d.test(e)))try{var n=p.call(t,e);if(n||g.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){N(e,!0)}return K(e,u,null,[t]).length>0},K.contains=function(t,e){return(t.ownerDocument||t)!=u&&ut(t),T.contains(t,e)},K.attr=function(t,n){(t.ownerDocument||t)!=u&&ut(t);var r=e.attrHandle[n.toLowerCase()],i=r&&f.call(e.attrHandle,n.toLowerCase())?r(t,n,!c):void 0;return void 0!==i?i:t.getAttribute(n)},K.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},T.uniqueSort=function(t){var e,n=[],r=0,s=0;if(o=!g.sortStable,i=!g.sortStable&&a.call(t,0),C.call(t,_),o){for(;e=t[s++];)e===t[s]&&(r=n.push(s));for(;r--;)A.call(t,n[r],1)}return i=null,t},T.fn.uniqueSort=function(){return this.pushStack(T.uniqueSort(a.apply(this)))},e=T.expr={cacheLength:50,createPseudo:et,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(Y,Q),t[3]=(t[3]||t[4]||t[5]||"").replace(Y,Q),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||K.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&K.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return G.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&F.test(n)&&(e=lt(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(Y,Q).toLowerCase();return"*"===t?function(){return!0}:function(t){return E(t,e)}},CLASS:function(t){var e=x[t+" "];return e||(e=new RegExp("(^|"+L+")"+t+"("+L+"|$)"))&&x(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(r){var i=K.attr(r,t);return null==i?"!="===e:!e||(i+="","="===e?i===n:"!="===e?i!==n:"^="===e?n&&0===i.indexOf(n):"*="===e?n&&i.indexOf(n)>-1:"$="===e?n&&i.slice(-n.length)===n:"~="===e?(" "+i.replace(I," ")+" ").indexOf(n)>-1:"|="===e&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,r,i){var s="nth"!==t.slice(0,3),o="last"!==t.slice(-4),a="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,u){var h,l,c,d,f,p=s!==o?"nextSibling":"previousSibling",m=e.parentNode,g=a&&e.nodeName.toLowerCase(),w=!u&&!a,x=!1;if(m){if(s){for(;p;){for(c=e;c=c[p];)if(a?E(c,g):1===c.nodeType)return!1;f=p="only"===t&&!f&&"nextSibling"}return!0}if(f=[o?m.firstChild:m.lastChild],o&&w){for(x=(d=(h=(l=m[y]||(m[y]={}))[t]||[])[0]===v&&h[1])&&h[2],c=d&&m.childNodes[d];c=++d&&c&&c[p]||(x=d=0)||f.pop();)if(1===c.nodeType&&++x&&c===e){l[t]=[v,d,x];break}}else if(w&&(x=d=(h=(l=e[y]||(e[y]={}))[t]||[])[0]===v&&h[1]),!1===x)for(;(c=++d&&c&&c[p]||(x=d=0)||f.pop())&&(!(a?E(c,g):1===c.nodeType)||!++x||(w&&((l=c[y]||(c[y]={}))[t]=[v,x]),c!==e)););return(x-=i)===r||x%r==0&&x/r>=0}}},PSEUDO:function(t,n){var r,i=e.pseudos[t]||e.setFilters[t.toLowerCase()]||K.error("unsupported pseudo: "+t);return i[y]?i(n):i.length>1?(r=[t,t,"",n],e.setFilters.hasOwnProperty(t.toLowerCase())?et((function(t,e){for(var r,s=i(t,n),o=s.length;o--;)t[r=l.call(t,s[o])]=!(e[r]=s[o])})):function(t){return i(t,0,r)}):i}},pseudos:{not:et((function(t){var e=[],n=[],r=yt(t.replace(O,"$1"));return r[y]?et((function(t,e,n,i){for(var s,o=r(t,null,i,[]),a=t.length;a--;)(s=o[a])&&(t[a]=!(e[a]=s))})):function(t,i,s){return e[0]=t,r(e,null,s,n),e[0]=null,!n.pop()}})),has:et((function(t){return function(e){return K(t,e).length>0}})),contains:et((function(t){return t=t.replace(Y,Q),function(e){return(e.textContent||T.text(e)).indexOf(t)>-1}})),lang:et((function(t){return B.test(t||"")||K.error("unsupported lang: "+t),t=t.replace(Y,Q).toLowerCase(),function(e){var n;do{if(n=c?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(t){var e=r.location&&r.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===h},focus:function(t){return t===function(){try{return u.activeElement}catch(t){}}()&&u.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:st(!1),disabled:st(!0),checked:function(t){return E(t,"input")&&!!t.checked||E(t,"option")&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!e.pseudos.empty(t)},header:function(t){return U.test(t.nodeName)},input:function(t){return V.test(t.nodeName)},button:function(t){return E(t,"input")&&"button"===t.type||E(t,"button")},text:function(t){var e;return E(t,"input")&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:ot((function(){return[0]})),last:ot((function(t,e){return[e-1]})),eq:ot((function(t,e,n){return[n<0?n+e:n]})),even:ot((function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t})),odd:ot((function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t})),lt:ot((function(t,e,n){var r;for(r=n<0?n+e:n>e?e:n;--r>=0;)t.push(r);return t})),gt:ot((function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t}))}},e.pseudos.nth=e.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})e.pseudos[t]=rt(t);for(t in{submit:!0,reset:!0})e.pseudos[t]=it(t);function ht(){}function lt(t,n){var r,i,s,o,a,u,h,l=b[t+" "];if(l)return n?0:l.slice(0);for(a=t,u=[],h=e.preFilter;a;){for(o in r&&!(i=R.exec(a))||(i&&(a=a.slice(i[0].length)||a),u.push(s=[])),r=!1,(i=H.exec(a))&&(r=i.shift(),s.push({value:r,type:i[0].replace(O," ")}),a=a.slice(r.length)),e.filter)!(i=G[o].exec(a))||h[o]&&!(i=h[o](i))||(r=i.shift(),s.push({value:r,type:o,matches:i}),a=a.slice(r.length));if(!r)break}return n?a.length:a?K.error(t):b(t,u).slice(0)}function ct(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function dt(t,e,n){var r=e.dir,i=e.next,s=i||r,o=n&&"parentNode"===s,a=w++;return e.first?function(e,n,i){for(;e=e[r];)if(1===e.nodeType||o)return t(e,n,i);return!1}:function(e,n,u){var h,l,c=[v,a];if(u){for(;e=e[r];)if((1===e.nodeType||o)&&t(e,n,u))return!0}else for(;e=e[r];)if(1===e.nodeType||o)if(l=e[y]||(e[y]={}),i&&E(e,i))e=e[r]||e;else{if((h=l[s])&&h[0]===v&&h[1]===a)return c[2]=h[2];if(l[s]=c,c[2]=t(e,n,u))return!0}return!1}}function ft(t){return t.length>1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function pt(t,e,n,r,i){for(var s,o=[],a=0,u=t.length,h=null!=e;a<u;a++)(s=t[a])&&(n&&!n(s,r,i)||(o.push(s),h&&e.push(a)));return o}function mt(t,e,n,r,i,s){return r&&!r[y]&&(r=mt(r)),i&&!i[y]&&(i=mt(i,s)),et((function(s,o,a,u){var h,c,d,f,p=[],g=[],y=o.length,v=s||function(t,e,n){for(var r=0,i=e.length;r<i;r++)K(t,e[r],n);return n}(e||"*",a.nodeType?[a]:a,[]),w=!t||!s&&e?v:pt(v,p,t,a,u);if(n?n(w,f=i||(s?t:y||r)?[]:o,a,u):f=w,r)for(h=pt(f,g),r(h,[],a,u),c=h.length;c--;)(d=h[c])&&(f[g[c]]=!(w[g[c]]=d));if(s){if(i||t){if(i){for(h=[],c=f.length;c--;)(d=f[c])&&h.push(w[c]=d);i(null,f=[],h,u)}for(c=f.length;c--;)(d=f[c])&&(h=i?l.call(s,d):p[c])>-1&&(s[h]=!(o[h]=d))}}else f=pt(f===o?f.splice(y,f.length):f),i?i(null,o,f,u):m.apply(o,f)}))}function gt(t){for(var r,i,s,o=t.length,a=e.relative[t[0].type],u=a||e.relative[" "],h=a?1:0,c=dt((function(t){return t===r}),u,!0),d=dt((function(t){return l.call(r,t)>-1}),u,!0),f=[function(t,e,i){var s=!a&&(i||e!=n)||((r=e).nodeType?c(t,e,i):d(t,e,i));return r=null,s}];h<o;h++)if(i=e.relative[t[h].type])f=[dt(ft(f),i)];else{if((i=e.filter[t[h].type].apply(null,t[h].matches))[y]){for(s=++h;s<o&&!e.relative[t[s].type];s++);return mt(h>1&&ft(f),h>1&&ct(t.slice(0,h-1).concat({value:" "===t[h-2].type?"*":""})).replace(O,"$1"),i,h<s&>(t.slice(h,s)),s<o&>(t=t.slice(s)),s<o&&ct(t))}f.push(i)}return ft(f)}function yt(t,r){var i,s=[],o=[],a=k[t+" "];if(!a){for(r||(r=lt(t)),i=r.length;i--;)(a=gt(r[i]))[y]?s.push(a):o.push(a);a=k(t,function(t,r){var i=r.length>0,s=t.length>0,o=function(o,a,h,l,d){var f,p,g,y=0,w="0",x=o&&[],b=[],k=n,N=o||s&&e.find.TAG("*",d),_=v+=null==k?1:Math.random()||.1,S=N.length;for(d&&(n=a==u||a||d);w!==S&&null!=(f=N[w]);w++){if(s&&f){for(p=0,a||f.ownerDocument==u||(ut(f),h=!c);g=t[p++];)if(g(f,a||u,h)){m.call(l,f);break}d&&(v=_)}i&&((f=!g&&f)&&y--,o&&x.push(f))}if(y+=w,i&&w!==y){for(p=0;g=r[p++];)g(x,b,a,h);if(o){if(y>0)for(;w--;)x[w]||b[w]||(b[w]=M.call(l));b=pt(b)}m.apply(l,b),d&&!o&&b.length>0&&y+r.length>1&&T.uniqueSort(l)}return d&&(v=_,n=k),x};return i?et(o):o}(o,s)),a.selector=t}return a}function vt(t,n,r,i){var s,o,a,u,h,l="function"==typeof t&&t,d=!i&<(t=l.selector||t);if(r=r||[],1===d.length){if((o=d[0]=d[0].slice(0)).length>2&&"ID"===(a=o[0]).type&&9===n.nodeType&&c&&e.relative[o[1].type]){if(!(n=(e.find.ID(a.matches[0].replace(Y,Q),n)||[])[0]))return r;l&&(n=n.parentNode),t=t.slice(o.shift().value.length)}for(s=G.needsContext.test(t)?0:o.length;s--&&(a=o[s],!e.relative[u=a.type]);)if((h=e.find[u])&&(i=h(a.matches[0].replace(Y,Q),$.test(o[0].type)&&at(n.parentNode)||n))){if(o.splice(s,1),!(t=i.length&&ct(o)))return m.apply(r,i),r;break}}return(l||yt(t,d))(i,n,!c,r,!n||$.test(t)&&at(n.parentNode)||n),r}ht.prototype=e.filters=e.pseudos,e.setFilters=new ht,g.sortStable=y.split("").sort(_).join("")===y,ut(),g.sortDetached=nt((function(t){return 1&t.compareDocumentPosition(u.createElement("fieldset"))})),T.find=K,T.expr[":"]=T.expr.pseudos,T.unique=T.uniqueSort,K.compile=yt,K.select=vt,K.setDocument=ut,K.tokenize=lt,K.escape=T.escapeSelector,K.getText=T.text,K.isXML=T.isXMLDoc,K.selectors=T.expr,K.support=T.support,K.uniqueSort=T.uniqueSort}();var q=function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&T(t).is(n))break;r.push(t)}return r},I=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},R=T.expr.match.needsContext,H=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function z(t,e,n){return y(e)?T.grep(t,(function(t,r){return!!e.call(t,r,t)!==n})):e.nodeType?T.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?T.grep(t,(function(t){return l.call(e,t)>-1!==n})):T.filter(e,t,n)}T.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?T.find.matchesSelector(r,t)?[r]:[]:T.find.matches(t,T.grep(e,(function(t){return 1===t.nodeType})))},T.fn.extend({find:function(t){var e,n,r=this.length,i=this;if("string"!=typeof t)return this.pushStack(T(t).filter((function(){for(e=0;e<r;e++)if(T.contains(i[e],this))return!0})));for(n=this.pushStack([]),e=0;e<r;e++)T.find(t,i[e],n);return r>1?T.uniqueSort(n):n},filter:function(t){return this.pushStack(z(this,t||[],!1))},not:function(t){return this.pushStack(z(this,t||[],!0))},is:function(t){return!!z(this,"string"==typeof t&&R.test(t)?T(t):t||[],!1).length}});var F,B=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(T.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||F,"string"==typeof t){if(!(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:B.exec(t))||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof T?e[0]:e,T.merge(this,T.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:w,!0)),H.test(r[1])&&T.isPlainObject(e))for(r in e)y(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return(i=w.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):y(t)?void 0!==n.ready?n.ready(t):t(T):T.makeArray(t,this)}).prototype=T.fn,F=T(w);var G=/^(?:parents|prev(?:Until|All))/,V={children:!0,contents:!0,next:!0,prev:!0};function U(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}T.fn.extend({has:function(t){var e=T(t,this),n=e.length;return this.filter((function(){for(var t=0;t<n;t++)if(T.contains(this,e[t]))return!0}))},closest:function(t,e){var n,r=0,i=this.length,s=[],o="string"!=typeof t&&T(t);if(!R.test(t))for(;r<i;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&T.find.matchesSelector(n,t))){s.push(n);break}return this.pushStack(s.length>1?T.uniqueSort(s):s)},index:function(t){return t?"string"==typeof t?l.call(T(t),this[0]):l.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),T.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return q(t,"parentNode")},parentsUntil:function(t,e,n){return q(t,"parentNode",n)},next:function(t){return U(t,"nextSibling")},prev:function(t){return U(t,"previousSibling")},nextAll:function(t){return q(t,"nextSibling")},prevAll:function(t){return q(t,"previousSibling")},nextUntil:function(t,e,n){return q(t,"nextSibling",n)},prevUntil:function(t,e,n){return q(t,"previousSibling",n)},siblings:function(t){return I((t.parentNode||{}).firstChild,t)},children:function(t){return I(t.firstChild)},contents:function(t){return null!=t.contentDocument&&o(t.contentDocument)?t.contentDocument:(E(t,"template")&&(t=t.content||t),T.merge([],t.childNodes))}},(function(t,e){T.fn[t]=function(n,r){var i=T.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=T.filter(r,i)),this.length>1&&(V[t]||T.uniqueSort(i),G.test(t)&&i.reverse()),this.pushStack(i)}}));var X=/[^\x20\t\r\n\f]+/g;function $(t){return t}function Y(t){throw t}function Q(t,e,n,r){var i;try{t&&y(i=t.promise)?i.call(t).done(e).fail(n):t&&y(i=t.then)?i.call(t,e,n):e.apply(void 0,[t].slice(r))}catch(t){n.apply(void 0,[t])}}T.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return T.each(t.match(X)||[],(function(t,n){e[n]=!0})),e}(t):T.extend({},t);var e,n,r,i,s=[],o=[],a=-1,u=function(){for(i=i||t.once,r=e=!0;o.length;a=-1)for(n=o.shift();++a<s.length;)!1===s[a].apply(n[0],n[1])&&t.stopOnFalse&&(a=s.length,n=!1);t.memory||(n=!1),e=!1,i&&(s=n?[]:"")},h={add:function(){return s&&(n&&!e&&(a=s.length-1,o.push(n)),function e(n){T.each(n,(function(n,r){y(r)?t.unique&&h.has(r)||s.push(r):r&&r.length&&"string"!==k(r)&&e(r)}))}(arguments),n&&!e&&u()),this},remove:function(){return T.each(arguments,(function(t,e){for(var n;(n=T.inArray(e,s,n))>-1;)s.splice(n,1),n<=a&&a--})),this},has:function(t){return t?T.inArray(t,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return i=o=[],s=n="",this},disabled:function(){return!s},lock:function(){return i=o=[],n||e||(s=n=""),this},locked:function(){return!!i},fireWith:function(t,n){return i||(n=[t,(n=n||[]).slice?n.slice():n],o.push(n),e||u()),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!r}};return h},T.extend({Deferred:function(t){var e=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],n="pending",i={state:function(){return n},always:function(){return s.done(arguments).fail(arguments),this},catch:function(t){return i.then(null,t)},pipe:function(){var t=arguments;return T.Deferred((function(n){T.each(e,(function(e,r){var i=y(t[r[4]])&&t[r[4]];s[r[1]]((function(){var t=i&&i.apply(this,arguments);t&&y(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[t]:arguments)}))})),t=null})).promise()},then:function(t,n,i){var s=0;function o(t,e,n,i){return function(){var a=this,u=arguments,h=function(){var r,h;if(!(t<s)){if((r=n.apply(a,u))===e.promise())throw new TypeError("Thenable self-resolution");h=r&&("object"==typeof r||"function"==typeof r)&&r.then,y(h)?i?h.call(r,o(s,e,$,i),o(s,e,Y,i)):(s++,h.call(r,o(s,e,$,i),o(s,e,Y,i),o(s,e,$,e.notifyWith))):(n!==$&&(a=void 0,u=[r]),(i||e.resolveWith)(a,u))}},l=i?h:function(){try{h()}catch(r){T.Deferred.exceptionHook&&T.Deferred.exceptionHook(r,l.error),t+1>=s&&(n!==Y&&(a=void 0,u=[r]),e.rejectWith(a,u))}};t?l():(T.Deferred.getErrorHook?l.error=T.Deferred.getErrorHook():T.Deferred.getStackHook&&(l.error=T.Deferred.getStackHook()),r.setTimeout(l))}}return T.Deferred((function(r){e[0][3].add(o(0,r,y(i)?i:$,r.notifyWith)),e[1][3].add(o(0,r,y(t)?t:$)),e[2][3].add(o(0,r,y(n)?n:Y))})).promise()},promise:function(t){return null!=t?T.extend(t,i):i}},s={};return T.each(e,(function(t,r){var o=r[2],a=r[5];i[r[1]]=o.add,a&&o.add((function(){n=a}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),o.add(r[3].fire),s[r[0]]=function(){return s[r[0]+"With"](this===s?void 0:this,arguments),this},s[r[0]+"With"]=o.fireWith})),i.promise(s),t&&t.call(s,s),s},when:function(t){var e=arguments.length,n=e,r=Array(n),i=a.call(arguments),s=T.Deferred(),o=function(t){return function(n){r[t]=this,i[t]=arguments.length>1?a.call(arguments):n,--e||s.resolveWith(r,i)}};if(e<=1&&(Q(t,s.done(o(n)).resolve,s.reject,!e),"pending"===s.state()||y(i[n]&&i[n].then)))return s.then();for(;n--;)Q(i[n],o(n),s.reject);return s.promise()}});var J=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(t,e){r.console&&r.console.warn&&t&&J.test(t.name)&&r.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},T.readyException=function(t){r.setTimeout((function(){throw t}))};var Z=T.Deferred();function K(){w.removeEventListener("DOMContentLoaded",K),r.removeEventListener("load",K),T.ready()}T.fn.ready=function(t){return Z.then(t).catch((function(t){T.readyException(t)})),this},T.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--T.readyWait:T.isReady)||(T.isReady=!0,!0!==t&&--T.readyWait>0||Z.resolveWith(w,[T]))}}),T.ready.then=Z.then,"complete"===w.readyState||"loading"!==w.readyState&&!w.documentElement.doScroll?r.setTimeout(T.ready):(w.addEventListener("DOMContentLoaded",K),r.addEventListener("load",K));var tt=function(t,e,n,r,i,s,o){var a=0,u=t.length,h=null==n;if("object"===k(n))for(a in i=!0,n)tt(t,e,a,n[a],!0,s,o);else if(void 0!==r&&(i=!0,y(r)||(o=!0),h&&(o?(e.call(t,r),e=null):(h=e,e=function(t,e,n){return h.call(T(t),n)})),e))for(;a<u;a++)e(t[a],n,o?r:r.call(t[a],a,e(t[a],n)));return i?t:h?e.call(t):u?e(t[0],n):s},et=/^-ms-/,nt=/-([a-z])/g;function rt(t,e){return e.toUpperCase()}function it(t){return t.replace(et,"ms-").replace(nt,rt)}var st=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function ot(){this.expando=T.expando+ot.uid++}ot.uid=1,ot.prototype={cache:function(t){var e=t[this.expando];return e||(e={},st(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var r,i=this.cache(t);if("string"==typeof e)i[it(e)]=n;else for(r in e)i[it(r)]=e[r];return i},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][it(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,r=t[this.expando];if(void 0!==r){if(void 0!==e){n=(e=Array.isArray(e)?e.map(it):(e=it(e))in r?[e]:e.match(X)||[]).length;for(;n--;)delete r[e[n]]}(void 0===e||T.isEmptyObject(r))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!T.isEmptyObject(e)}};var at=new ot,ut=new ot,ht=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,lt=/[A-Z]/g;function ct(t,e,n){var r;if(void 0===n&&1===t.nodeType)if(r="data-"+e.replace(lt,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(r))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:ht.test(t)?JSON.parse(t):t)}(n)}catch(t){}ut.set(t,e,n)}else n=void 0;return n}T.extend({hasData:function(t){return ut.hasData(t)||at.hasData(t)},data:function(t,e,n){return ut.access(t,e,n)},removeData:function(t,e){ut.remove(t,e)},_data:function(t,e,n){return at.access(t,e,n)},_removeData:function(t,e){at.remove(t,e)}}),T.fn.extend({data:function(t,e){var n,r,i,s=this[0],o=s&&s.attributes;if(void 0===t){if(this.length&&(i=ut.get(s),1===s.nodeType&&!at.get(s,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&0===(r=o[n].name).indexOf("data-")&&(r=it(r.slice(5)),ct(s,r,i[r]));at.set(s,"hasDataAttrs",!0)}return i}return"object"==typeof t?this.each((function(){ut.set(this,t)})):tt(this,(function(e){var n;if(s&&void 0===e)return void 0!==(n=ut.get(s,t))||void 0!==(n=ct(s,t))?n:void 0;this.each((function(){ut.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){ut.remove(this,t)}))}}),T.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=at.get(t,e),n&&(!r||Array.isArray(n)?r=at.access(t,e,T.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=T.queue(t,e),r=n.length,i=n.shift(),s=T._queueHooks(t,e);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete s.stop,i.call(t,(function(){T.dequeue(t,e)}),s)),!r&&s&&s.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return at.get(t,n)||at.access(t,n,{empty:T.Callbacks("once memory").add((function(){at.remove(t,[e+"queue",n])}))})}}),T.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?T.queue(this[0],t):void 0===e?this:this.each((function(){var n=T.queue(this,t,e);T._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&T.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){T.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=T.Deferred(),s=this,o=this.length,a=function(){--r||i.resolveWith(s,[s])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";o--;)(n=at.get(s[o],t+"queueHooks"))&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(e)}});var dt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ft=new RegExp("^(?:([+-])=|)("+dt+")([a-z%]*)$","i"),pt=["Top","Right","Bottom","Left"],mt=w.documentElement,gt=function(t){return T.contains(t.ownerDocument,t)},yt={composed:!0};mt.getRootNode&&(gt=function(t){return T.contains(t.ownerDocument,t)||t.getRootNode(yt)===t.ownerDocument});var vt=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&>(t)&&"none"===T.css(t,"display")};function wt(t,e,n,r){var i,s,o=20,a=r?function(){return r.cur()}:function(){return T.css(t,e,"")},u=a(),h=n&&n[3]||(T.cssNumber[e]?"":"px"),l=t.nodeType&&(T.cssNumber[e]||"px"!==h&&+u)&&ft.exec(T.css(t,e));if(l&&l[3]!==h){for(u/=2,h=h||l[3],l=+u||1;o--;)T.style(t,e,l+h),(1-s)*(1-(s=a()/u||.5))<=0&&(o=0),l/=s;l*=2,T.style(t,e,l+h),n=n||[]}return n&&(l=+l||+u||0,i=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=h,r.start=l,r.end=i)),i}var xt={};function bt(t){var e,n=t.ownerDocument,r=t.nodeName,i=xt[r];return i||(e=n.body.appendChild(n.createElement(r)),i=T.css(e,"display"),e.parentNode.removeChild(e),"none"===i&&(i="block"),xt[r]=i,i)}function kt(t,e){for(var n,r,i=[],s=0,o=t.length;s<o;s++)(r=t[s]).style&&(n=r.style.display,e?("none"===n&&(i[s]=at.get(r,"display")||null,i[s]||(r.style.display="")),""===r.style.display&&vt(r)&&(i[s]=bt(r))):"none"!==n&&(i[s]="none",at.set(r,"display",n)));for(s=0;s<o;s++)null!=i[s]&&(t[s].style.display=i[s]);return t}T.fn.extend({show:function(){return kt(this,!0)},hide:function(){return kt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){vt(this)?T(this).show():T(this).hide()}))}});var Nt,_t,Tt=/^(?:checkbox|radio)$/i,St=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Et=/^$|^module$|\/(?:java|ecma)script/i;Nt=w.createDocumentFragment().appendChild(w.createElement("div")),(_t=w.createElement("input")).setAttribute("type","radio"),_t.setAttribute("checked","checked"),_t.setAttribute("name","t"),Nt.appendChild(_t),g.checkClone=Nt.cloneNode(!0).cloneNode(!0).lastChild.checked,Nt.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!Nt.cloneNode(!0).lastChild.defaultValue,Nt.innerHTML="<option></option>",g.option=!!Nt.lastChild;var Mt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Ct(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&E(t,e)?T.merge([t],n):n}function At(t,e){for(var n=0,r=t.length;n<r;n++)at.set(t[n],"globalEval",!e||at.get(e[n],"globalEval"))}Mt.tbody=Mt.tfoot=Mt.colgroup=Mt.caption=Mt.thead,Mt.th=Mt.td,g.option||(Mt.optgroup=Mt.option=[1,"<select multiple='multiple'>","</select>"]);var Lt=/<|&#?\w+;/;function Ot(t,e,n,r,i){for(var s,o,a,u,h,l,c=e.createDocumentFragment(),d=[],f=0,p=t.length;f<p;f++)if((s=t[f])||0===s)if("object"===k(s))T.merge(d,s.nodeType?[s]:s);else if(Lt.test(s)){for(o=o||c.appendChild(e.createElement("div")),a=(St.exec(s)||["",""])[1].toLowerCase(),u=Mt[a]||Mt._default,o.innerHTML=u[1]+T.htmlPrefilter(s)+u[2],l=u[0];l--;)o=o.lastChild;T.merge(d,o.childNodes),(o=c.firstChild).textContent=""}else d.push(e.createTextNode(s));for(c.textContent="",f=0;s=d[f++];)if(r&&T.inArray(s,r)>-1)i&&i.push(s);else if(h=gt(s),o=Ct(c.appendChild(s),"script"),h&&At(o),n)for(l=0;s=o[l++];)Et.test(s.type||"")&&n.push(s);return c}var jt=/^([^.]*)(?:\.(.+)|)/;function Dt(){return!0}function Wt(){return!1}function Pt(t,e,n,r,i,s){var o,a;if("object"==typeof e){for(a in"string"!=typeof n&&(r=r||n,n=void 0),e)Pt(t,a,n,r,e[a],s);return t}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Wt;else if(!i)return t;return 1===s&&(o=i,i=function(t){return T().off(t),o.apply(this,arguments)},i.guid=o.guid||(o.guid=T.guid++)),t.each((function(){T.event.add(this,e,i,r,n)}))}function qt(t,e,n){n?(at.set(t,e,!1),T.event.add(t,e,{namespace:!1,handler:function(t){var n,r=at.get(this,e);if(1&t.isTrigger&&this[e]){if(r)(T.event.special[e]||{}).delegateType&&t.stopPropagation();else if(r=a.call(arguments),at.set(this,e,r),this[e](),n=at.get(this,e),at.set(this,e,!1),r!==n)return t.stopImmediatePropagation(),t.preventDefault(),n}else r&&(at.set(this,e,T.event.trigger(r[0],r.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=Dt)}})):void 0===at.get(t,e)&&T.event.add(t,e,Dt)}T.event={global:{},add:function(t,e,n,r,i){var s,o,a,u,h,l,c,d,f,p,m,g=at.get(t);if(st(t))for(n.handler&&(n=(s=n).handler,i=s.selector),i&&T.find.matchesSelector(mt,i),n.guid||(n.guid=T.guid++),(u=g.events)||(u=g.events=Object.create(null)),(o=g.handle)||(o=g.handle=function(e){return void 0!==T&&T.event.triggered!==e.type?T.event.dispatch.apply(t,arguments):void 0}),h=(e=(e||"").match(X)||[""]).length;h--;)f=m=(a=jt.exec(e[h])||[])[1],p=(a[2]||"").split(".").sort(),f&&(c=T.event.special[f]||{},f=(i?c.delegateType:c.bindType)||f,c=T.event.special[f]||{},l=T.extend({type:f,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&T.expr.match.needsContext.test(i),namespace:p.join(".")},s),(d=u[f])||((d=u[f]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(t,r,p,o)||t.addEventListener&&t.addEventListener(f,o)),c.add&&(c.add.call(t,l),l.handler.guid||(l.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,l):d.push(l),T.event.global[f]=!0)},remove:function(t,e,n,r,i){var s,o,a,u,h,l,c,d,f,p,m,g=at.hasData(t)&&at.get(t);if(g&&(u=g.events)){for(h=(e=(e||"").match(X)||[""]).length;h--;)if(f=m=(a=jt.exec(e[h])||[])[1],p=(a[2]||"").split(".").sort(),f){for(c=T.event.special[f]||{},d=u[f=(r?c.delegateType:c.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=s=d.length;s--;)l=d[s],!i&&m!==l.origType||n&&n.guid!==l.guid||a&&!a.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(d.splice(s,1),l.selector&&d.delegateCount--,c.remove&&c.remove.call(t,l));o&&!d.length&&(c.teardown&&!1!==c.teardown.call(t,p,g.handle)||T.removeEvent(t,f,g.handle),delete u[f])}else for(f in u)T.event.remove(t,f+e[h],n,r,!0);T.isEmptyObject(u)&&at.remove(t,"handle events")}},dispatch:function(t){var e,n,r,i,s,o,a=new Array(arguments.length),u=T.event.fix(t),h=(at.get(this,"events")||Object.create(null))[u.type]||[],l=T.event.special[u.type]||{};for(a[0]=u,e=1;e<arguments.length;e++)a[e]=arguments[e];if(u.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,u)){for(o=T.event.handlers.call(this,u,h),e=0;(i=o[e++])&&!u.isPropagationStopped();)for(u.currentTarget=i.elem,n=0;(s=i.handlers[n++])&&!u.isImmediatePropagationStopped();)u.rnamespace&&!1!==s.namespace&&!u.rnamespace.test(s.namespace)||(u.handleObj=s,u.data=s.data,void 0!==(r=((T.event.special[s.origType]||{}).handle||s.handler).apply(i.elem,a))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,u),u.result}},handlers:function(t,e){var n,r,i,s,o,a=[],u=e.delegateCount,h=t.target;if(u&&h.nodeType&&!("click"===t.type&&t.button>=1))for(;h!==this;h=h.parentNode||this)if(1===h.nodeType&&("click"!==t.type||!0!==h.disabled)){for(s=[],o={},n=0;n<u;n++)void 0===o[i=(r=e[n]).selector+" "]&&(o[i]=r.needsContext?T(i,this).index(h)>-1:T.find(i,this,null,[h]).length),o[i]&&s.push(r);s.length&&a.push({elem:h,handlers:s})}return h=this,u<e.length&&a.push({elem:h,handlers:e.slice(u)}),a},addProp:function(t,e){Object.defineProperty(T.Event.prototype,t,{enumerable:!0,configurable:!0,get:y(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[T.expando]?t:new T.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return Tt.test(e.type)&&e.click&&E(e,"input")&&qt(e,"click",!0),!1},trigger:function(t){var e=this||t;return Tt.test(e.type)&&e.click&&E(e,"input")&&qt(e,"click"),!0},_default:function(t){var e=t.target;return Tt.test(e.type)&&e.click&&E(e,"input")&&at.get(e,"click")||E(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},T.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},T.Event=function(t,e){if(!(this instanceof T.Event))return new T.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Dt:Wt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&T.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[T.expando]=!0},T.Event.prototype={constructor:T.Event,isDefaultPrevented:Wt,isPropagationStopped:Wt,isImmediatePropagationStopped:Wt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Dt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Dt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Dt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},T.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},T.event.addProp),T.each({focus:"focusin",blur:"focusout"},(function(t,e){function n(t){if(w.documentMode){var n=at.get(this,"handle"),r=T.event.fix(t);r.type="focusin"===t.type?"focus":"blur",r.isSimulated=!0,n(t),r.target===r.currentTarget&&n(r)}else T.event.simulate(e,t.target,T.event.fix(t))}T.event.special[t]={setup:function(){var r;if(qt(this,t,!0),!w.documentMode)return!1;(r=at.get(this,e))||this.addEventListener(e,n),at.set(this,e,(r||0)+1)},trigger:function(){return qt(this,t),!0},teardown:function(){var t;if(!w.documentMode)return!1;(t=at.get(this,e)-1)?at.set(this,e,t):(this.removeEventListener(e,n),at.remove(this,e))},_default:function(e){return at.get(e.target,t)},delegateType:e},T.event.special[e]={setup:function(){var r=this.ownerDocument||this.document||this,i=w.documentMode?this:r,s=at.get(i,e);s||(w.documentMode?this.addEventListener(e,n):r.addEventListener(t,n,!0)),at.set(i,e,(s||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=w.documentMode?this:r,s=at.get(i,e)-1;s?at.set(i,e,s):(w.documentMode?this.removeEventListener(e,n):r.removeEventListener(t,n,!0),at.remove(i,e))}}})),T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){T.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=t.relatedTarget,i=t.handleObj;return r&&(r===this||T.contains(this,r))||(t.type=i.origType,n=i.handler.apply(this,arguments),t.type=e),n}}})),T.fn.extend({on:function(t,e,n,r){return Pt(this,t,e,n,r)},one:function(t,e,n,r){return Pt(this,t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,T(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof t){for(i in t)this.off(i,e,t[i]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=Wt),this.each((function(){T.event.remove(this,t,n,e)}))}});var It=/<script|<style|<link/i,Rt=/checked\s*(?:[^=]|=\s*.checked.)/i,Ht=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function zt(t,e){return E(t,"table")&&E(11!==e.nodeType?e:e.firstChild,"tr")&&T(t).children("tbody")[0]||t}function Ft(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Bt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Gt(t,e){var n,r,i,s,o,a;if(1===e.nodeType){if(at.hasData(t)&&(a=at.get(t).events))for(i in at.remove(e,"handle events"),a)for(n=0,r=a[i].length;n<r;n++)T.event.add(e,i,a[i][n]);ut.hasData(t)&&(s=ut.access(t),o=T.extend({},s),ut.set(e,o))}}function Vt(t,e){var n=e.nodeName.toLowerCase();"input"===n&&Tt.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function Ut(t,e,n,r){e=u(e);var i,s,o,a,h,l,c=0,d=t.length,f=d-1,p=e[0],m=y(p);if(m||d>1&&"string"==typeof p&&!g.checkClone&&Rt.test(p))return t.each((function(i){var s=t.eq(i);m&&(e[0]=p.call(this,i,s.html())),Ut(s,e,n,r)}));if(d&&(s=(i=Ot(e,t[0].ownerDocument,!1,t,r)).firstChild,1===i.childNodes.length&&(i=s),s||r)){for(a=(o=T.map(Ct(i,"script"),Ft)).length;c<d;c++)h=i,c!==f&&(h=T.clone(h,!0,!0),a&&T.merge(o,Ct(h,"script"))),n.call(t[c],h,c);if(a)for(l=o[o.length-1].ownerDocument,T.map(o,Bt),c=0;c<a;c++)h=o[c],Et.test(h.type||"")&&!at.access(h,"globalEval")&&T.contains(l,h)&&(h.src&&"module"!==(h.type||"").toLowerCase()?T._evalUrl&&!h.noModule&&T._evalUrl(h.src,{nonce:h.nonce||h.getAttribute("nonce")},l):b(h.textContent.replace(Ht,""),h,l))}return t}function Xt(t,e,n){for(var r,i=e?T.filter(e,t):t,s=0;null!=(r=i[s]);s++)n||1!==r.nodeType||T.cleanData(Ct(r)),r.parentNode&&(n&>(r)&&At(Ct(r,"script")),r.parentNode.removeChild(r));return t}T.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var r,i,s,o,a=t.cloneNode(!0),u=gt(t);if(!(g.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||T.isXMLDoc(t)))for(o=Ct(a),r=0,i=(s=Ct(t)).length;r<i;r++)Vt(s[r],o[r]);if(e)if(n)for(s=s||Ct(t),o=o||Ct(a),r=0,i=s.length;r<i;r++)Gt(s[r],o[r]);else Gt(t,a);return(o=Ct(a,"script")).length>0&&At(o,!u&&Ct(t,"script")),a},cleanData:function(t){for(var e,n,r,i=T.event.special,s=0;void 0!==(n=t[s]);s++)if(st(n)){if(e=n[at.expando]){if(e.events)for(r in e.events)i[r]?T.event.remove(n,r):T.removeEvent(n,r,e.handle);n[at.expando]=void 0}n[ut.expando]&&(n[ut.expando]=void 0)}}}),T.fn.extend({detach:function(t){return Xt(this,t,!0)},remove:function(t){return Xt(this,t)},text:function(t){return tt(this,(function(t){return void 0===t?T.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return Ut(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||zt(this,t).appendChild(t)}))},prepend:function(){return Ut(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=zt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Ut(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Ut(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(T.cleanData(Ct(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return T.clone(this,t,e)}))},html:function(t){return tt(this,(function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!It.test(t)&&!Mt[(St.exec(t)||["",""])[1].toLowerCase()]){t=T.htmlPrefilter(t);try{for(;n<r;n++)1===(e=this[n]||{}).nodeType&&(T.cleanData(Ct(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return Ut(this,arguments,(function(e){var n=this.parentNode;T.inArray(this,t)<0&&(T.cleanData(Ct(this)),n&&n.replaceChild(e,this))}),t)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){T.fn[t]=function(t){for(var n,r=[],i=T(t),s=i.length-1,o=0;o<=s;o++)n=o===s?this:this.clone(!0),T(i[o])[e](n),h.apply(r,n.get());return this.pushStack(r)}}));var $t=new RegExp("^("+dt+")(?!px)[a-z%]+$","i"),Yt=/^--/,Qt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=r),e.getComputedStyle(t)},Jt=function(t,e,n){var r,i,s={};for(i in e)s[i]=t.style[i],t.style[i]=e[i];for(i in r=n.call(t),e)t.style[i]=s[i];return r},Zt=new RegExp(pt.join("|"),"i");function Kt(t,e,n){var r,i,s,o,a=Yt.test(e),u=t.style;return(n=n||Qt(t))&&(o=n.getPropertyValue(e)||n[e],a&&o&&(o=o.replace(O,"$1")||void 0),""!==o||gt(t)||(o=T.style(t,e)),!g.pixelBoxStyles()&&$t.test(o)&&Zt.test(e)&&(r=u.width,i=u.minWidth,s=u.maxWidth,u.minWidth=u.maxWidth=u.width=o,o=n.width,u.width=r,u.minWidth=i,u.maxWidth=s)),void 0!==o?o+"":o}function te(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(l){h.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",mt.appendChild(h).appendChild(l);var t=r.getComputedStyle(l);n="1%"!==t.top,u=12===e(t.marginLeft),l.style.right="60%",o=36===e(t.right),i=36===e(t.width),l.style.position="absolute",s=12===e(l.offsetWidth/3),mt.removeChild(h),l=null}}function e(t){return Math.round(parseFloat(t))}var n,i,s,o,a,u,h=w.createElement("div"),l=w.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===l.style.backgroundClip,T.extend(g,{boxSizingReliable:function(){return t(),i},pixelBoxStyles:function(){return t(),o},pixelPosition:function(){return t(),n},reliableMarginLeft:function(){return t(),u},scrollboxSize:function(){return t(),s},reliableTrDimensions:function(){var t,e,n,i;return null==a&&(t=w.createElement("table"),e=w.createElement("tr"),n=w.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",e.style.cssText="box-sizing:content-box;border:1px solid",e.style.height="1px",n.style.height="9px",n.style.display="block",mt.appendChild(t).appendChild(e).appendChild(n),i=r.getComputedStyle(e),a=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===e.offsetHeight,mt.removeChild(t)),a}}))}();var ee=["Webkit","Moz","ms"],ne=w.createElement("div").style,re={};function ie(t){return T.cssProps[t]||re[t]||(t in ne?t:re[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=ee.length;n--;)if((t=ee[n]+e)in ne)return t}(t)||t)}var se=/^(none|table(?!-c[ea]).+)/,oe={position:"absolute",visibility:"hidden",display:"block"},ae={letterSpacing:"0",fontWeight:"400"};function ue(t,e,n){var r=ft.exec(e);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):e}function he(t,e,n,r,i,s){var o="width"===e?1:0,a=0,u=0,h=0;if(n===(r?"border":"content"))return 0;for(;o<4;o+=2)"margin"===n&&(h+=T.css(t,n+pt[o],!0,i)),r?("content"===n&&(u-=T.css(t,"padding"+pt[o],!0,i)),"margin"!==n&&(u-=T.css(t,"border"+pt[o]+"Width",!0,i))):(u+=T.css(t,"padding"+pt[o],!0,i),"padding"!==n?u+=T.css(t,"border"+pt[o]+"Width",!0,i):a+=T.css(t,"border"+pt[o]+"Width",!0,i));return!r&&s>=0&&(u+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-s-u-a-.5))||0),u+h}function le(t,e,n){var r=Qt(t),i=(!g.boxSizingReliable()||n)&&"border-box"===T.css(t,"boxSizing",!1,r),s=i,o=Kt(t,e,r),a="offset"+e[0].toUpperCase()+e.slice(1);if($t.test(o)){if(!n)return o;o="auto"}return(!g.boxSizingReliable()&&i||!g.reliableTrDimensions()&&E(t,"tr")||"auto"===o||!parseFloat(o)&&"inline"===T.css(t,"display",!1,r))&&t.getClientRects().length&&(i="border-box"===T.css(t,"boxSizing",!1,r),(s=a in t)&&(o=t[a])),(o=parseFloat(o)||0)+he(t,e,n||(i?"border":"content"),s,r,o)+"px"}function ce(t,e,n,r,i){return new ce.prototype.init(t,e,n,r,i)}T.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Kt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,s,o,a=it(e),u=Yt.test(e),h=t.style;if(u||(e=ie(a)),o=T.cssHooks[e]||T.cssHooks[a],void 0===n)return o&&"get"in o&&void 0!==(i=o.get(t,!1,r))?i:h[e];"string"==(s=typeof n)&&(i=ft.exec(n))&&i[1]&&(n=wt(t,e,i),s="number"),null!=n&&n==n&&("number"!==s||u||(n+=i&&i[3]||(T.cssNumber[a]?"":"px")),g.clearCloneStyle||""!==n||0!==e.indexOf("background")||(h[e]="inherit"),o&&"set"in o&&void 0===(n=o.set(t,n,r))||(u?h.setProperty(e,n):h[e]=n))}},css:function(t,e,n,r){var i,s,o,a=it(e);return Yt.test(e)||(e=ie(a)),(o=T.cssHooks[e]||T.cssHooks[a])&&"get"in o&&(i=o.get(t,!0,n)),void 0===i&&(i=Kt(t,e,r)),"normal"===i&&e in ae&&(i=ae[e]),""===n||n?(s=parseFloat(i),!0===n||isFinite(s)?s||0:i):i}}),T.each(["height","width"],(function(t,e){T.cssHooks[e]={get:function(t,n,r){if(n)return!se.test(T.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?le(t,e,r):Jt(t,oe,(function(){return le(t,e,r)}))},set:function(t,n,r){var i,s=Qt(t),o=!g.scrollboxSize()&&"absolute"===s.position,a=(o||r)&&"border-box"===T.css(t,"boxSizing",!1,s),u=r?he(t,e,r,a,s):0;return a&&o&&(u-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(s[e])-he(t,e,"border",!1,s)-.5)),u&&(i=ft.exec(n))&&"px"!==(i[3]||"px")&&(t.style[e]=n,n=T.css(t,e)),ue(0,n,u)}}})),T.cssHooks.marginLeft=te(g.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Kt(t,"marginLeft"))||t.getBoundingClientRect().left-Jt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),T.each({margin:"",padding:"",border:"Width"},(function(t,e){T.cssHooks[t+e]={expand:function(n){for(var r=0,i={},s="string"==typeof n?n.split(" "):[n];r<4;r++)i[t+pt[r]+e]=s[r]||s[r-2]||s[0];return i}},"margin"!==t&&(T.cssHooks[t+e].set=ue)})),T.fn.extend({css:function(t,e){return tt(this,(function(t,e,n){var r,i,s={},o=0;if(Array.isArray(e)){for(r=Qt(t),i=e.length;o<i;o++)s[e[o]]=T.css(t,e[o],!1,r);return s}return void 0!==n?T.style(t,e,n):T.css(t,e)}),t,e,arguments.length>1)}}),T.Tween=ce,ce.prototype={constructor:ce,init:function(t,e,n,r,i,s){this.elem=t,this.prop=n,this.easing=i||T.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=s||(T.cssNumber[n]?"":"px")},cur:function(){var t=ce.propHooks[this.prop];return t&&t.get?t.get(this):ce.propHooks._default.get(this)},run:function(t){var e,n=ce.propHooks[this.prop];return this.options.duration?this.pos=e=T.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ce.propHooks._default.set(this),this}},ce.prototype.init.prototype=ce.prototype,ce.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=T.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){T.fx.step[t.prop]?T.fx.step[t.prop](t):1!==t.elem.nodeType||!T.cssHooks[t.prop]&&null==t.elem.style[ie(t.prop)]?t.elem[t.prop]=t.now:T.style(t.elem,t.prop,t.now+t.unit)}}},ce.propHooks.scrollTop=ce.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},T.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},T.fx=ce.prototype.init,T.fx.step={};var de,fe,pe=/^(?:toggle|show|hide)$/,me=/queueHooks$/;function ge(){fe&&(!1===w.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(ge):r.setTimeout(ge,T.fx.interval),T.fx.tick())}function ye(){return r.setTimeout((function(){de=void 0})),de=Date.now()}function ve(t,e){var n,r=0,i={height:t};for(e=e?1:0;r<4;r+=2-e)i["margin"+(n=pt[r])]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function we(t,e,n){for(var r,i=(xe.tweeners[e]||[]).concat(xe.tweeners["*"]),s=0,o=i.length;s<o;s++)if(r=i[s].call(n,e,t))return r}function xe(t,e,n){var r,i,s=0,o=xe.prefilters.length,a=T.Deferred().always((function(){delete u.elem})),u=function(){if(i)return!1;for(var e=de||ye(),n=Math.max(0,h.startTime+h.duration-e),r=1-(n/h.duration||0),s=0,o=h.tweens.length;s<o;s++)h.tweens[s].run(r);return a.notifyWith(t,[h,r,n]),r<1&&o?n:(o||a.notifyWith(t,[h,1,0]),a.resolveWith(t,[h]),!1)},h=a.promise({elem:t,props:T.extend({},e),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},n),originalProperties:e,originalOptions:n,startTime:de||ye(),duration:n.duration,tweens:[],createTween:function(e,n){var r=T.Tween(t,h.opts,e,n,h.opts.specialEasing[e]||h.opts.easing);return h.tweens.push(r),r},stop:function(e){var n=0,r=e?h.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)h.tweens[n].run(1);return e?(a.notifyWith(t,[h,1,0]),a.resolveWith(t,[h,e])):a.rejectWith(t,[h,e]),this}}),l=h.props;for(function(t,e){var n,r,i,s,o;for(n in t)if(i=e[r=it(n)],s=t[n],Array.isArray(s)&&(i=s[1],s=t[n]=s[0]),n!==r&&(t[r]=s,delete t[n]),(o=T.cssHooks[r])&&"expand"in o)for(n in s=o.expand(s),delete t[r],s)n in t||(t[n]=s[n],e[n]=i);else e[r]=i}(l,h.opts.specialEasing);s<o;s++)if(r=xe.prefilters[s].call(h,t,l,h.opts))return y(r.stop)&&(T._queueHooks(h.elem,h.opts.queue).stop=r.stop.bind(r)),r;return T.map(l,we,h),y(h.opts.start)&&h.opts.start.call(t,h),h.progress(h.opts.progress).done(h.opts.done,h.opts.complete).fail(h.opts.fail).always(h.opts.always),T.fx.timer(T.extend(u,{elem:t,anim:h,queue:h.opts.queue})),h}T.Animation=T.extend(xe,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return wt(n.elem,t,ft.exec(e),n),n}]},tweener:function(t,e){y(t)?(e=t,t=["*"]):t=t.match(X);for(var n,r=0,i=t.length;r<i;r++)n=t[r],xe.tweeners[n]=xe.tweeners[n]||[],xe.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var r,i,s,o,a,u,h,l,c="width"in e||"height"in e,d=this,f={},p=t.style,m=t.nodeType&&vt(t),g=at.get(t,"fxshow");for(r in n.queue||(null==(o=T._queueHooks(t,"fx")).unqueued&&(o.unqueued=0,a=o.empty.fire,o.empty.fire=function(){o.unqueued||a()}),o.unqueued++,d.always((function(){d.always((function(){o.unqueued--,T.queue(t,"fx").length||o.empty.fire()}))}))),e)if(i=e[r],pe.test(i)){if(delete e[r],s=s||"toggle"===i,i===(m?"hide":"show")){if("show"!==i||!g||void 0===g[r])continue;m=!0}f[r]=g&&g[r]||T.style(t,r)}if((u=!T.isEmptyObject(e))||!T.isEmptyObject(f))for(r in c&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(h=g&&g.display)&&(h=at.get(t,"display")),"none"===(l=T.css(t,"display"))&&(h?l=h:(kt([t],!0),h=t.style.display||h,l=T.css(t,"display"),kt([t]))),("inline"===l||"inline-block"===l&&null!=h)&&"none"===T.css(t,"float")&&(u||(d.done((function(){p.display=h})),null==h&&(l=p.display,h="none"===l?"":l)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",d.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),u=!1,f)u||(g?"hidden"in g&&(m=g.hidden):g=at.access(t,"fxshow",{display:h}),s&&(g.hidden=!m),m&&kt([t],!0),d.done((function(){for(r in m||kt([t]),at.remove(t,"fxshow"),f)T.style(t,r,f[r])}))),u=we(m?g[r]:0,r,d),r in g||(g[r]=u.start,m&&(u.end=u.start,u.start=0))}],prefilter:function(t,e){e?xe.prefilters.unshift(t):xe.prefilters.push(t)}}),T.speed=function(t,e,n){var r=t&&"object"==typeof t?T.extend({},t):{complete:n||!n&&e||y(t)&&t,duration:t,easing:n&&e||e&&!y(e)&&e};return T.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in T.fx.speeds?r.duration=T.fx.speeds[r.duration]:r.duration=T.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){y(r.old)&&r.old.call(this),r.queue&&T.dequeue(this,r.queue)},r},T.fn.extend({fadeTo:function(t,e,n,r){return this.filter(vt).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var i=T.isEmptyObject(t),s=T.speed(e,n,r),o=function(){var e=xe(this,T.extend({},t),s);(i||at.get(this,"finish"))&&e.stop(!0)};return o.finish=o,i||!1===s.queue?this.each(o):this.queue(s.queue,o)},stop:function(t,e,n){var r=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each((function(){var e=!0,i=null!=t&&t+"queueHooks",s=T.timers,o=at.get(this);if(i)o[i]&&o[i].stop&&r(o[i]);else for(i in o)o[i]&&o[i].stop&&me.test(i)&&r(o[i]);for(i=s.length;i--;)s[i].elem!==this||null!=t&&s[i].queue!==t||(s[i].anim.stop(n),e=!1,s.splice(i,1));!e&&n||T.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,n=at.get(this),r=n[t+"queue"],i=n[t+"queueHooks"],s=T.timers,o=r?r.length:0;for(n.finish=!0,T.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),e=s.length;e--;)s[e].elem===this&&s[e].queue===t&&(s[e].anim.stop(!0),s.splice(e,1));for(e=0;e<o;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete n.finish}))}}),T.each(["toggle","show","hide"],(function(t,e){var n=T.fn[e];T.fn[e]=function(t,r,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(ve(e,!0),t,r,i)}})),T.each({slideDown:ve("show"),slideUp:ve("hide"),slideToggle:ve("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){T.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}})),T.timers=[],T.fx.tick=function(){var t,e=0,n=T.timers;for(de=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||T.fx.stop(),de=void 0},T.fx.timer=function(t){T.timers.push(t),T.fx.start()},T.fx.interval=13,T.fx.start=function(){fe||(fe=!0,ge())},T.fx.stop=function(){fe=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(t,e){return t=T.fx&&T.fx.speeds[t]||t,e=e||"fx",this.queue(e,(function(e,n){var i=r.setTimeout(e,t);n.stop=function(){r.clearTimeout(i)}}))},function(){var t=w.createElement("input"),e=w.createElement("select").appendChild(w.createElement("option"));t.type="checkbox",g.checkOn=""!==t.value,g.optSelected=e.selected,(t=w.createElement("input")).value="t",t.type="radio",g.radioValue="t"===t.value}();var be,ke=T.expr.attrHandle;T.fn.extend({attr:function(t,e){return tt(this,T.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){T.removeAttr(this,t)}))}}),T.extend({attr:function(t,e,n){var r,i,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===t.getAttribute?T.prop(t,e,n):(1===s&&T.isXMLDoc(t)||(i=T.attrHooks[e.toLowerCase()]||(T.expr.match.bool.test(e)?be:void 0)),void 0!==n?null===n?void T.removeAttr(t,e):i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):i&&"get"in i&&null!==(r=i.get(t,e))?r:null==(r=T.find.attr(t,e))?void 0:r)},attrHooks:{type:{set:function(t,e){if(!g.radioValue&&"radio"===e&&E(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r=0,i=e&&e.match(X);if(i&&1===t.nodeType)for(;n=i[r++];)t.removeAttribute(n)}}),be={set:function(t,e,n){return!1===e?T.removeAttr(t,n):t.setAttribute(n,n),n}},T.each(T.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=ke[e]||T.find.attr;ke[e]=function(t,e,r){var i,s,o=e.toLowerCase();return r||(s=ke[o],ke[o]=i,i=null!=n(t,e,r)?o:null,ke[o]=s),i}}));var Ne=/^(?:input|select|textarea|button)$/i,_e=/^(?:a|area)$/i;function Te(t){return(t.match(X)||[]).join(" ")}function Se(t){return t.getAttribute&&t.getAttribute("class")||""}function Ee(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(X)||[]}T.fn.extend({prop:function(t,e){return tt(this,T.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[T.propFix[t]||t]}))}}),T.extend({prop:function(t,e,n){var r,i,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&T.isXMLDoc(t)||(e=T.propFix[e]||e,i=T.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=T.find.attr(t,"tabindex");return e?parseInt(e,10):Ne.test(t.nodeName)||_e.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(T.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){T.propFix[this.toLowerCase()]=this})),T.fn.extend({addClass:function(t){var e,n,r,i,s,o;return y(t)?this.each((function(e){T(this).addClass(t.call(this,e,Se(this)))})):(e=Ee(t)).length?this.each((function(){if(r=Se(this),n=1===this.nodeType&&" "+Te(r)+" "){for(s=0;s<e.length;s++)i=e[s],n.indexOf(" "+i+" ")<0&&(n+=i+" ");o=Te(n),r!==o&&this.setAttribute("class",o)}})):this},removeClass:function(t){var e,n,r,i,s,o;return y(t)?this.each((function(e){T(this).removeClass(t.call(this,e,Se(this)))})):arguments.length?(e=Ee(t)).length?this.each((function(){if(r=Se(this),n=1===this.nodeType&&" "+Te(r)+" "){for(s=0;s<e.length;s++)for(i=e[s];n.indexOf(" "+i+" ")>-1;)n=n.replace(" "+i+" "," ");o=Te(n),r!==o&&this.setAttribute("class",o)}})):this:this.attr("class","")},toggleClass:function(t,e){var n,r,i,s,o=typeof t,a="string"===o||Array.isArray(t);return y(t)?this.each((function(n){T(this).toggleClass(t.call(this,n,Se(this),e),e)})):"boolean"==typeof e&&a?e?this.addClass(t):this.removeClass(t):(n=Ee(t),this.each((function(){if(a)for(s=T(this),i=0;i<n.length;i++)r=n[i],s.hasClass(r)?s.removeClass(r):s.addClass(r);else void 0!==t&&"boolean"!==o||((r=Se(this))&&at.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===t?"":at.get(this,"__className__")||""))})))},hasClass:function(t){var e,n,r=0;for(e=" "+t+" ";n=this[r++];)if(1===n.nodeType&&(" "+Te(Se(n))+" ").indexOf(e)>-1)return!0;return!1}});var Me=/\r/g;T.fn.extend({val:function(t){var e,n,r,i=this[0];return arguments.length?(r=y(t),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?t.call(this,n,T(this).val()):t)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=T.map(i,(function(t){return null==t?"":t+""}))),(e=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))}))):i?(e=T.valHooks[i.type]||T.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(Me,""):null==n?"":n:void 0}}),T.extend({valHooks:{option:{get:function(t){var e=T.find.attr(t,"value");return null!=e?e:Te(T.text(t))}},select:{get:function(t){var e,n,r,i=t.options,s=t.selectedIndex,o="select-one"===t.type,a=o?null:[],u=o?s+1:i.length;for(r=s<0?u:o?s:0;r<u;r++)if(((n=i[r]).selected||r===s)&&!n.disabled&&(!n.parentNode.disabled||!E(n.parentNode,"optgroup"))){if(e=T(n).val(),o)return e;a.push(e)}return a},set:function(t,e){for(var n,r,i=t.options,s=T.makeArray(e),o=i.length;o--;)((r=i[o]).selected=T.inArray(T.valHooks.option.get(r),s)>-1)&&(n=!0);return n||(t.selectedIndex=-1),s}}}}),T.each(["radio","checkbox"],(function(){T.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=T.inArray(T(t).val(),e)>-1}},g.checkOn||(T.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}));var Ce=r.location,Ae={guid:Date.now()},Le=/\?/;T.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{e=(new r.DOMParser).parseFromString(t,"text/xml")}catch(t){}return n=e&&e.getElementsByTagName("parsererror")[0],e&&!n||T.error("Invalid XML: "+(n?T.map(n.childNodes,(function(t){return t.textContent})).join("\n"):t)),e};var Oe=/^(?:focusinfocus|focusoutblur)$/,je=function(t){t.stopPropagation()};T.extend(T.event,{trigger:function(t,e,n,i){var s,o,a,u,h,l,c,d,p=[n||w],m=f.call(t,"type")?t.type:t,g=f.call(t,"namespace")?t.namespace.split("."):[];if(o=d=a=n=n||w,3!==n.nodeType&&8!==n.nodeType&&!Oe.test(m+T.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),h=m.indexOf(":")<0&&"on"+m,(t=t[T.expando]?t:new T.Event(m,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=g.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:T.makeArray(e,[t]),c=T.event.special[m]||{},i||!c.trigger||!1!==c.trigger.apply(n,e))){if(!i&&!c.noBubble&&!v(n)){for(u=c.delegateType||m,Oe.test(u+m)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||w)&&p.push(a.defaultView||a.parentWindow||r)}for(s=0;(o=p[s++])&&!t.isPropagationStopped();)d=o,t.type=s>1?u:c.bindType||m,(l=(at.get(o,"events")||Object.create(null))[t.type]&&at.get(o,"handle"))&&l.apply(o,e),(l=h&&o[h])&&l.apply&&st(o)&&(t.result=l.apply(o,e),!1===t.result&&t.preventDefault());return t.type=m,i||t.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),e)||!st(n)||h&&y(n[m])&&!v(n)&&((a=n[h])&&(n[h]=null),T.event.triggered=m,t.isPropagationStopped()&&d.addEventListener(m,je),n[m](),t.isPropagationStopped()&&d.removeEventListener(m,je),T.event.triggered=void 0,a&&(n[h]=a)),t.result}},simulate:function(t,e,n){var r=T.extend(new T.Event,n,{type:t,isSimulated:!0});T.event.trigger(r,null,e)}}),T.fn.extend({trigger:function(t,e){return this.each((function(){T.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return T.event.trigger(t,e,n,!0)}});var De=/\[\]$/,We=/\r?\n/g,Pe=/^(?:submit|button|image|reset|file)$/i,qe=/^(?:input|select|textarea|keygen)/i;function Ie(t,e,n,r){var i;if(Array.isArray(e))T.each(e,(function(e,i){n||De.test(t)?r(t,i):Ie(t+"["+("object"==typeof i&&null!=i?e:"")+"]",i,n,r)}));else if(n||"object"!==k(e))r(t,e);else for(i in e)Ie(t+"["+i+"]",e[i],n,r)}T.param=function(t,e){var n,r=[],i=function(t,e){var n=y(e)?e():e;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!T.isPlainObject(t))T.each(t,(function(){i(this.name,this.value)}));else for(n in t)Ie(n,t[n],e,i);return r.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=T.prop(this,"elements");return t?T.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!T(this).is(":disabled")&&qe.test(this.nodeName)&&!Pe.test(t)&&(this.checked||!Tt.test(t))})).map((function(t,e){var n=T(this).val();return null==n?null:Array.isArray(n)?T.map(n,(function(t){return{name:e.name,value:t.replace(We,"\r\n")}})):{name:e.name,value:n.replace(We,"\r\n")}})).get()}});var Re=/%20/g,He=/#.*$/,ze=/([?&])_=[^&]*/,Fe=/^(.*?):[ \t]*([^\r\n]*)$/gm,Be=/^(?:GET|HEAD)$/,Ge=/^\/\//,Ve={},Ue={},Xe="*/".concat("*"),$e=w.createElement("a");function Ye(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,s=e.toLowerCase().match(X)||[];if(y(n))for(;r=s[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function Qe(t,e,n,r){var i={},s=t===Ue;function o(a){var u;return i[a]=!0,T.each(t[a]||[],(function(t,a){var h=a(e,n,r);return"string"!=typeof h||s||i[h]?s?!(u=h):void 0:(e.dataTypes.unshift(h),o(h),!1)})),u}return o(e.dataTypes[0])||!i["*"]&&o("*")}function Je(t,e){var n,r,i=T.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&T.extend(!0,t,r),t}$e.href=Ce.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ce.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ce.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Xe,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Je(Je(t,T.ajaxSettings),e):Je(T.ajaxSettings,t)},ajaxPrefilter:Ye(Ve),ajaxTransport:Ye(Ue),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,i,s,o,a,u,h,l,c,d,f=T.ajaxSetup({},e),p=f.context||f,m=f.context&&(p.nodeType||p.jquery)?T(p):T.event,g=T.Deferred(),y=T.Callbacks("once memory"),v=f.statusCode||{},x={},b={},k="canceled",N={readyState:0,getResponseHeader:function(t){var e;if(h){if(!o)for(o={};e=Fe.exec(s);)o[e[1].toLowerCase()+" "]=(o[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=o[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return h?s:null},setRequestHeader:function(t,e){return null==h&&(t=b[t.toLowerCase()]=b[t.toLowerCase()]||t,x[t]=e),this},overrideMimeType:function(t){return null==h&&(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(h)N.always(t[N.status]);else for(e in t)v[e]=[v[e],t[e]];return this},abort:function(t){var e=t||k;return n&&n.abort(e),_(0,e),this}};if(g.promise(N),f.url=((t||f.url||Ce.href)+"").replace(Ge,Ce.protocol+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(X)||[""],null==f.crossDomain){u=w.createElement("a");try{u.href=f.url,u.href=u.href,f.crossDomain=$e.protocol+"//"+$e.host!=u.protocol+"//"+u.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=T.param(f.data,f.traditional)),Qe(Ve,f,e,N),h)return N;for(c in(l=T.event&&f.global)&&0==T.active++&&T.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Be.test(f.type),i=f.url.replace(He,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Re,"+")):(d=f.url.slice(i.length),f.data&&(f.processData||"string"==typeof f.data)&&(i+=(Le.test(i)?"&":"?")+f.data,delete f.data),!1===f.cache&&(i=i.replace(ze,"$1"),d=(Le.test(i)?"&":"?")+"_="+Ae.guid+++d),f.url=i+d),f.ifModified&&(T.lastModified[i]&&N.setRequestHeader("If-Modified-Since",T.lastModified[i]),T.etag[i]&&N.setRequestHeader("If-None-Match",T.etag[i])),(f.data&&f.hasContent&&!1!==f.contentType||e.contentType)&&N.setRequestHeader("Content-Type",f.contentType),N.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Xe+"; q=0.01":""):f.accepts["*"]),f.headers)N.setRequestHeader(c,f.headers[c]);if(f.beforeSend&&(!1===f.beforeSend.call(p,N,f)||h))return N.abort();if(k="abort",y.add(f.complete),N.done(f.success),N.fail(f.error),n=Qe(Ue,f,e,N)){if(N.readyState=1,l&&m.trigger("ajaxSend",[N,f]),h)return N;f.async&&f.timeout>0&&(a=r.setTimeout((function(){N.abort("timeout")}),f.timeout));try{h=!1,n.send(x,_)}catch(t){if(h)throw t;_(-1,t)}}else _(-1,"No Transport");function _(t,e,o,u){var c,d,w,x,b,k=e;h||(h=!0,a&&r.clearTimeout(a),n=void 0,s=u||"",N.readyState=t>0?4:0,c=t>=200&&t<300||304===t,o&&(x=function(t,e,n){for(var r,i,s,o,a=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){u.unshift(i);break}if(u[0]in n)s=u[0];else{for(i in n){if(!u[0]||t.converters[i+" "+u[0]]){s=i;break}o||(o=i)}s=s||o}if(s)return s!==u[0]&&u.unshift(s),n[s]}(f,N,o)),!c&&T.inArray("script",f.dataTypes)>-1&&T.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),x=function(t,e,n,r){var i,s,o,a,u,h={},l=t.dataTypes.slice();if(l[1])for(o in t.converters)h[o.toLowerCase()]=t.converters[o];for(s=l.shift();s;)if(t.responseFields[s]&&(n[t.responseFields[s]]=e),!u&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=s,s=l.shift())if("*"===s)s=u;else if("*"!==u&&u!==s){if(!(o=h[u+" "+s]||h["* "+s]))for(i in h)if((a=i.split(" "))[1]===s&&(o=h[u+" "+a[0]]||h["* "+a[0]])){!0===o?o=h[i]:!0!==h[i]&&(s=a[0],l.unshift(a[1]));break}if(!0!==o)if(o&&t.throws)e=o(e);else try{e=o(e)}catch(t){return{state:"parsererror",error:o?t:"No conversion from "+u+" to "+s}}}return{state:"success",data:e}}(f,x,N,c),c?(f.ifModified&&((b=N.getResponseHeader("Last-Modified"))&&(T.lastModified[i]=b),(b=N.getResponseHeader("etag"))&&(T.etag[i]=b)),204===t||"HEAD"===f.type?k="nocontent":304===t?k="notmodified":(k=x.state,d=x.data,c=!(w=x.error))):(w=k,!t&&k||(k="error",t<0&&(t=0))),N.status=t,N.statusText=(e||k)+"",c?g.resolveWith(p,[d,k,N]):g.rejectWith(p,[N,k,w]),N.statusCode(v),v=void 0,l&&m.trigger(c?"ajaxSuccess":"ajaxError",[N,f,c?d:w]),y.fireWith(p,[N,k]),l&&(m.trigger("ajaxComplete",[N,f]),--T.active||T.event.trigger("ajaxStop")))}return N},getJSON:function(t,e,n){return T.get(t,e,n,"json")},getScript:function(t,e){return T.get(t,void 0,e,"script")}}),T.each(["get","post"],(function(t,e){T[e]=function(t,n,r,i){return y(n)&&(i=i||r,r=n,n=void 0),T.ajax(T.extend({url:t,type:e,dataType:i,data:n,success:r},T.isPlainObject(t)&&t))}})),T.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),T._evalUrl=function(t,e,n){return T.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){T.globalEval(t,e,n)}})},T.fn.extend({wrapAll:function(t){var e;return this[0]&&(y(t)&&(t=t.call(this[0])),e=T(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return y(t)?this.each((function(e){T(this).wrapInner(t.call(this,e))})):this.each((function(){var e=T(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=y(t);return this.each((function(n){T(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){T(this).replaceWith(this.childNodes)})),this}}),T.expr.pseudos.hidden=function(t){return!T.expr.pseudos.visible(t)},T.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(t){}};var Ze={0:200,1223:204},Ke=T.ajaxSettings.xhr();g.cors=!!Ke&&"withCredentials"in Ke,g.ajax=Ke=!!Ke,T.ajaxTransport((function(t){var e,n;if(g.cors||Ke&&!t.crossDomain)return{send:function(i,s){var o,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)a[o]=t.xhrFields[o];for(o in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)a.setRequestHeader(o,i[o]);e=function(t){return function(){e&&(e=n=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?s(0,"error"):s(a.status,a.statusText):s(Ze[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=e(),n=a.onerror=a.ontimeout=e("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&r.setTimeout((function(){e&&n()}))},e=e("abort");try{a.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}})),T.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return T.globalEval(t),t}}}),T.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),T.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(r,i){e=T("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&i("error"===t.type?404:200,t.type)}),w.head.appendChild(e[0])},abort:function(){n&&n()}}}));var tn,en=[],nn=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=en.pop()||T.expando+"_"+Ae.guid++;return this[t]=!0,t}}),T.ajaxPrefilter("json jsonp",(function(t,e,n){var i,s,o,a=!1!==t.jsonp&&(nn.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=y(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(nn,"$1"+i):!1!==t.jsonp&&(t.url+=(Le.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return o||T.error(i+" was not called"),o[0]},t.dataTypes[0]="json",s=r[i],r[i]=function(){o=arguments},n.always((function(){void 0===s?T(r).removeProp(i):r[i]=s,t[i]&&(t.jsonpCallback=e.jsonpCallback,en.push(i)),o&&y(s)&&s(o[0]),o=s=void 0})),"script"})),g.createHTMLDocument=((tn=w.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===tn.childNodes.length),T.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(g.createHTMLDocument?((r=(e=w.implementation.createHTMLDocument("")).createElement("base")).href=w.location.href,e.head.appendChild(r)):e=w),s=!n&&[],(i=H.exec(t))?[e.createElement(i[1])]:(i=Ot([t],e,s),s&&s.length&&T(s).remove(),T.merge([],i.childNodes)));var r,i,s},T.fn.load=function(t,e,n){var r,i,s,o=this,a=t.indexOf(" ");return a>-1&&(r=Te(t.slice(a)),t=t.slice(0,a)),y(e)?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),o.length>0&&T.ajax({url:t,type:i||"GET",dataType:"html",data:e}).done((function(t){s=arguments,o.html(r?T("<div>").append(T.parseHTML(t)).find(r):t)})).always(n&&function(t,e){o.each((function(){n.apply(this,s||[t.responseText,e,t])}))}),this},T.expr.pseudos.animated=function(t){return T.grep(T.timers,(function(e){return t===e.elem})).length},T.offset={setOffset:function(t,e,n){var r,i,s,o,a,u,h=T.css(t,"position"),l=T(t),c={};"static"===h&&(t.style.position="relative"),a=l.offset(),s=T.css(t,"top"),u=T.css(t,"left"),("absolute"===h||"fixed"===h)&&(s+u).indexOf("auto")>-1?(o=(r=l.position()).top,i=r.left):(o=parseFloat(s)||0,i=parseFloat(u)||0),y(e)&&(e=e.call(t,n,T.extend({},a))),null!=e.top&&(c.top=e.top-a.top+o),null!=e.left&&(c.left=e.left-a.left+i),"using"in e?e.using.call(t,c):l.css(c)}},T.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){T.offset.setOffset(this,t,e)}));var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,r=this[0],i={top:0,left:0};if("fixed"===T.css(r,"position"))e=r.getBoundingClientRect();else{for(e=this.offset(),n=r.ownerDocument,t=r.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===T.css(t,"position");)t=t.parentNode;t&&t!==r&&1===t.nodeType&&((i=T(t).offset()).top+=T.css(t,"borderTopWidth",!0),i.left+=T.css(t,"borderLeftWidth",!0))}return{top:e.top-i.top-T.css(r,"marginTop",!0),left:e.left-i.left-T.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===T.css(t,"position");)t=t.offsetParent;return t||mt}))}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n="pageYOffset"===e;T.fn[t]=function(r){return tt(this,(function(t,r,i){var s;if(v(t)?s=t:9===t.nodeType&&(s=t.defaultView),void 0===i)return s?s[e]:t[r];s?s.scrollTo(n?s.pageXOffset:i,n?i:s.pageYOffset):t[r]=i}),t,r,arguments.length)}})),T.each(["top","left"],(function(t,e){T.cssHooks[e]=te(g.pixelPosition,(function(t,n){if(n)return n=Kt(t,e),$t.test(n)?T(t).position()[e]+"px":n}))})),T.each({Height:"height",Width:"width"},(function(t,e){T.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,r){T.fn[r]=function(i,s){var o=arguments.length&&(n||"boolean"!=typeof i),a=n||(!0===i||!0===s?"margin":"border");return tt(this,(function(e,n,i){var s;return v(e)?0===r.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(s=e.documentElement,Math.max(e.body["scroll"+t],s["scroll"+t],e.body["offset"+t],s["offset"+t],s["client"+t])):void 0===i?T.css(e,n,a):T.style(e,n,i,a)}),e,o?i:void 0,o)}}))})),T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){T.fn[e]=function(t){return this.on(e,t)}})),T.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.on("mouseenter",t).on("mouseleave",e||t)}}),T.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(t,e){T.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}));var rn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;T.proxy=function(t,e){var n,r,i;if("string"==typeof e&&(n=t[e],e=t,t=n),y(t))return r=a.call(arguments,2),i=function(){return t.apply(e||this,r.concat(a.call(arguments)))},i.guid=t.guid=t.guid||T.guid++,i},T.holdReady=function(t){t?T.readyWait++:T.ready(!0)},T.isArray=Array.isArray,T.parseJSON=JSON.parse,T.nodeName=E,T.isFunction=y,T.isWindow=v,T.camelCase=it,T.type=k,T.now=Date.now,T.isNumeric=function(t){var e=T.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},T.trim=function(t){return null==t?"":(t+"").replace(rn,"$1")},void 0===(n=function(){return T}.apply(e,[]))||(t.exports=n);var sn=r.jQuery,on=r.$;return T.noConflict=function(t){return r.$===T&&(r.$=on),t&&r.jQuery===T&&(r.jQuery=sn),T},void 0===i&&(r.jQuery=r.$=T),T}))},709:(t,e,n)=>{"use strict";n.d(e,{A:()=>u,V:()=>a});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,".yIqz0290EZWCxr9FN3XJ {\n border-radius: 50%;\n\n width: 26px;\n height: 26px;\n\n padding: 3.5px;\n\n background-color: white;\n\n border: solid 1px #767676;\n\n cursor: pointer;\n}\n\n.yIqz0290EZWCxr9FN3XJ:hover {\n border-color: black;\n}\n\n.yIqz0290EZWCxr9FN3XJ::-webkit-color-swatch {\n border-radius: 50%;\n\n border-width: 0px;\n}\n\n.yIqz0290EZWCxr9FN3XJ::-moz-color-swatch {\n border-radius: 50%;\n\n border: solid 1px white;\n}\n\n.yIqz0290EZWCxr9FN3XJ::-webkit-color-swatch-wrapper {\n padding: 1px;\n}\n",""]);var a="yIqz0290EZWCxr9FN3XJ";const u=o},723:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>f,Ks:()=>d,Qs:()=>c,Wu:()=>u,YL:()=>l,kL:()=>a,r9:()=>h});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.X7DPHJCVbRpHEB9gcm0Z {\n position: relative;\n\n pointer-events: auto;\n}\n\n.vDAwbQmWCc39SmNMFRtv {\n margin: 0px;\n\n border: none;\n\n padding: 4px 12px;\n border-radius: 3px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 700;\n font-style: normal;\n color: #06064a;\n\n background-color: rgba(219, 219, 255, 0.9);\n\n cursor: pointer;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: auto;\n}\n\n.BAlKKbk1BfHF_fPz1gpc {\n color: #9797cb;\n\n pointer-events: none;\n}\n\n.vDAwbQmWCc39SmNMFRtv:hover {\n background-color: rgba(175, 175, 255, 0.92);\n}\n\n.vDAwbQmWCc39SmNMFRtv:active {\n background-color: rgba(147, 147, 255, 0.92);\n}\n\n.vDAwbQmWCc39SmNMFRtv:focus {\n outline: none;\n}\n\n.C0efoHQIuyVHJrM3hLPq {\n position: absolute;\n top: -61px;\n left: 24px;\n\n height: 36px;\n width: 95px;\n\n padding: 0px;\n\n border-radius: 5px;\n\n background-color: black;\n box-shadow: 0px 0px 6px #d9d9e724;\n\n animation: E96MZ_Cqz4T3H7DBAP7d 1.5s;\n\n pointer-events: none;\n\n display: none;\n}\n\n.X7DPHJCVbRpHEB9gcm0Z:hover .C0efoHQIuyVHJrM3hLPq {\n display: block;\n}\n\n@keyframes E96MZ_Cqz4T3H7DBAP7d {\n 0% {\n opacity: 0;\n }\n 66.6% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n\n.C0efoHQIuyVHJrM3hLPq:before {\n content: "";\n\n border-style: solid;\n border-color: black transparent transparent transparent;\n border-width: 18px 9px;\n\n position: absolute;\n top: 100%;\n left: 39px;\n}\n\n.JILYa84hfLoGuOwekvqa {\n height: 100%;\n\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 7px;\n}\n\n.ktIbQrDucdrIr2zxz5nw {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 11px;\n font-weight: 600;\n font-style: normal;\n color: white;\n\n text-wrap: nowrap;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n',""]);var a="X7DPHJCVbRpHEB9gcm0Z",u="vDAwbQmWCc39SmNMFRtv",h="BAlKKbk1BfHF_fPz1gpc",l="C0efoHQIuyVHJrM3hLPq",c="JILYa84hfLoGuOwekvqa",d="ktIbQrDucdrIr2zxz5nw";const f=o},825:t=>{"use strict";t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var s=n.sourceMap;s&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),e.styleTagTransform(r,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},881:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>f,kv:()=>d});var r=n(601),i=n.n(r),s=n(314),o=n.n(s),a=n(417),u=n.n(a),h=new URL(n(51),n.b),l=o()(i()),c=u()(h);l.push([t.id,`.pMUxgRC_f4NzkoelkDpX {\n appearance: none;\n\n margin: 0px;\n padding: 0px;\n\n border: 2px solid hsl(240, 6.6%, 70.2%);\n border-radius: 2px;\n\n width: 14px;\n height: 14px;\n\n background-color: white;\n\n cursor: pointer;\n}\n\n.pMUxgRC_f4NzkoelkDpX:checked {\n border-color: #2b2b2f;\n\n background-color: #2b2b2f;\n\n background-image: url(${c});\n}\n\n.pMUxgRC_f4NzkoelkDpX:hover {\n transform: scale(1.1);\n transition: transform 0.1s;\n}\n\n.vYZXo8oaWpWVgqUCMYTb:active {\n transform: scale(1);\n transition: transform 0s;\n}\n`,""]);var d="pMUxgRC_f4NzkoelkDpX";const f=l},924:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>c,ho:()=>l,qM:()=>a,vM:()=>u,x3:()=>h});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.O0vrEVyGT_aFy6tF68Na {\n display: flex;\n flex-direction: column;\n}\n\n.VFDUY2z_WgJp1fVc8TCw {\n margin: 9px 0px 0px 12px;\n\n display: flex;\n flex-direction: column;\n}\n\n.Z3lHB1W2K4m8JuZOnWs9 {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 400;\n font-style: normal;\n color: black;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n._2mtl2XqC4G2BvuqSDdR {\n margin-top: 15px;\n\n visibility: collapse;\n}\n\n.dJmYzq3wi8hxLecdDaOF ._2mtl2XqC4G2BvuqSDdR {\n visibility: visible;\n}\n',""]);var a="O0vrEVyGT_aFy6tF68Na",u="Z3lHB1W2K4m8JuZOnWs9",h="_2mtl2XqC4G2BvuqSDdR",l="dJmYzq3wi8hxLecdDaOF";const c=o}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={id:r,exports:{}};return t[r].call(s.exports,s,s.exports,n),s.exports}n.m=t,n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.b=document.baseURI||self.location.href,n.nc=void 0;var r={};return(()=>{"use strict";n.r(r),n.d(r,{EditingForm:()=>Zo});var t={};n.r(t),n.d(t,{cx:()=>Te,cy:()=>Se,height:()=>Me,rx:()=>be,ry:()=>ke,width:()=>Ee,x:()=>Ne,y:()=>_e});var e={};n.r(e),n.d(e,{from:()=>Oe,to:()=>je});var i={};n.r(i),n.d(i,{MorphArray:()=>Re,height:()=>Be,width:()=>Fe,x:()=>He,y:()=>ze});var s={};n.r(s),n.d(s,{array:()=>vn,clear:()=>wn,move:()=>xn,plot:()=>bn,size:()=>kn});var o={};n.r(o),n.d(o,{amove:()=>Qn,ax:()=>$n,ay:()=>Yn,build:()=>Jn,center:()=>Xn,cx:()=>Vn,cy:()=>Un,length:()=>zn,move:()=>Gn,plain:()=>Hn,x:()=>Fn,y:()=>Bn});var a={};n.r(a),n.d(a,{dmove:()=>rr,dx:()=>ir,dy:()=>sr,height:()=>or,move:()=>ar,size:()=>ur,width:()=>hr,x:()=>lr,y:()=>cr});var u=n(72),h=n.n(u),l=n(825),c=n.n(l),d=n(659),f=n.n(d),p=n(56),m=n.n(p),g=n(540),y=n.n(g),v=n(113),w=n.n(v),x=n(420),b={};b.styleTagTransform=w(),b.setAttributes=m(),b.insert=f().bind(null,"head"),b.domAPI=c(),b.insertStyleElement=y(),h()(x.Ay,b),x.Ay&&x.Ay.locals&&x.Ay.locals;var k=n(633),N={};N.styleTagTransform=w(),N.setAttributes=m(),N.insert=f().bind(null,"head"),N.domAPI=c(),N.insertStyleElement=y(),h()(k.Ay,N),k.Ay&&k.Ay.locals&&k.Ay.locals;var _=n(419),T={};T.styleTagTransform=w(),T.setAttributes=m(),T.insert=f().bind(null,"head"),T.domAPI=c(),T.insertStyleElement=y(),h()(_.A,T),_.A&&_.A.locals&&_.A.locals;var S,E;class M{constructor(t){S.add(this),this.props=t,this.domNode=document.createElement("input"),this.domNode.type="text",this.domNode.classList.add(_.P),this.domNode.addEventListener("blur",(()=>function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}(this,S,"m",E).call(this))),this.domNode.addEventListener("keydown",(t=>{"enter"==t.key.toLowerCase()&&this.domNode.blur()}))}}S=new WeakSet,E=function(){var t;(null===(t=this.props)||void 0===t?void 0:t.onSubmit)&&this.props.onSubmit()};var C=n(678),A={};A.styleTagTransform=w(),A.setAttributes=m(),A.insert=f().bind(null,"head"),A.domAPI=c(),A.insertStyleElement=y(),h()(C.Ay,A),C.Ay&&C.Ay.locals&&C.Ay.locals;var L,O,j=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},D=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class W{constructor(t,e){this.name=t,this.domNode=document.createElement("label"),L.set(this,void 0),O.set(this,void 0),this.domNode.classList.add(C.ZZ),j(this,L,e,"f"),j(this,O,document.createElement("a"),"f"),D(this,O,"f").textContent=t,D(this,O,"f").target="_blank",D(this,O,"f").rel="noopener noreferrer",D(this,O,"f").style.marginLeft="8px",this.domNode.append(e,D(this,O,"f"))}get infoLink(){return D(this,O,"f").href}set infoLink(t){D(this,O,"f").href=t,t?D(this,O,"f").classList.add(C.o3):D(this,O,"f").classList.remove(C.o3)}}L=new WeakMap,O=new WeakMap;var P,q=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class I{constructor(t,e){this.name=t,P.set(this,void 0),function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===r?i.call(t,n):i?i.value=n:e.set(t,n)}(this,P,new W(t,e),"f"),this.domNode.style.cursor="text"}get domNode(){return q(this,P,"f").domNode}get infoLink(){return q(this,P,"f").infoLink}set infoLink(t){q(this,P,"f").infoLink=t}}P=new WeakMap;var R=n(881),H={};H.styleTagTransform=w(),H.setAttributes=m(),H.insert=f().bind(null,"head"),H.domAPI=c(),H.insertStyleElement=y(),h()(R.Ay,H),R.Ay&&R.Ay.locals&&R.Ay.locals;class z{constructor(){this.domNode=document.createElement("input"),this.domNode.type="checkbox",this.domNode.classList.add(R.kv)}}var F,B=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class G{constructor(t,e){this.name=t,F.set(this,void 0),function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===r?i.call(t,n):i?i.value=n:e.set(t,n)}(this,F,new W(t,e),"f"),this.domNode.style.cursor="pointer"}get domNode(){return B(this,F,"f").domNode}get infoLink(){return B(this,F,"f").infoLink}set infoLink(t){B(this,F,"f").infoLink=t}}F=new WeakMap;var V=n(709),U={};U.styleTagTransform=w(),U.setAttributes=m(),U.insert=f().bind(null,"head"),U.domAPI=c(),U.insertStyleElement=y(),h()(V.A,U),V.A&&V.A.locals&&V.A.locals;class X{constructor(){this.domNode=document.createElement("input"),this.domNode.type="color",this.domNode.classList.add(V.V)}}var $,Y=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class Q{constructor(t,e){this.name=t,$.set(this,void 0),function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===r?i.call(t,n):i?i.value=n:e.set(t,n)}(this,$,new W(t,e),"f"),this.domNode.style.cursor="pointer"}get domNode(){return Y(this,$,"f").domNode}get infoLink(){return Y(this,$,"f").infoLink}set infoLink(t){Y(this,$,"f").infoLink=t}}$=new WeakMap;const J={},Z=[];function K(t,e){if(Array.isArray(t))for(const n of t)K(n,e);else if("object"!=typeof t)et(Object.getOwnPropertyNames(e)),J[t]=Object.assign(J[t]||{},e);else for(const e in t)K(e,t[e])}function tt(t){return J[t]||{}}function et(t){Z.push(...t)}function nt(t,e){let n;const r=t.length,i=[];for(n=0;n<r;n++)i.push(e(t[n]));return i}function rt(t){return t%360*Math.PI/180}function it(t){return t.charAt(0).toUpperCase()+t.slice(1)}function st(t,e,n,r){return null!=e&&null!=n||(r=r||t.bbox(),null==e?e=r.width/r.height*n:null==n&&(n=r.height/r.width*e)),{width:e,height:n}}function ot(t,e){const n=t.origin;let r=null!=t.ox?t.ox:null!=t.originX?t.originX:"center",i=null!=t.oy?t.oy:null!=t.originY?t.originY:"center";null!=n&&([r,i]=Array.isArray(n)?n:"object"==typeof n?[n.x,n.y]:[n,n]);const s="string"==typeof r,o="string"==typeof i;if(s||o){const{height:t,width:n,x:a,y:u}=e.bbox();s&&(r=r.includes("left")?a:r.includes("right")?a+n:a+n/2),o&&(i=i.includes("top")?u:i.includes("bottom")?u+t:u+t/2)}return[r,i]}const at=new Set(["desc","metadata","title"]),ut=t=>at.has(t.nodeName),ht=(t,e,n={})=>{const r={...e};for(const t in r)r[t].valueOf()===n[t]&&delete r[t];Object.keys(r).length?t.node.setAttribute("data-svgjs",JSON.stringify(r)):(t.node.removeAttribute("data-svgjs"),t.node.removeAttribute("svgjs:data"))},lt="http://www.w3.org/2000/svg",ct="http://www.w3.org/2000/xmlns/",dt="http://www.w3.org/1999/xlink",ft={window:"undefined"==typeof window?null:window,document:"undefined"==typeof document?null:document};class pt{}const mt={},gt="___SYMBOL___ROOT___";function yt(t,e=lt){return ft.document.createElementNS(e,t)}function vt(t,e=!1){if(t instanceof pt)return t;if("object"==typeof t)return bt(t);if(null==t)return new mt[gt];if("string"==typeof t&&"<"!==t.charAt(0))return bt(ft.document.querySelector(t));const n=e?ft.document.createElement("div"):yt("svg");return n.innerHTML=t,t=bt(n.firstChild),n.removeChild(n.firstChild),t}function wt(t,e){return e&&(e instanceof ft.window.Node||e.ownerDocument&&e instanceof e.ownerDocument.defaultView.Node)?e:yt(t)}function xt(t){if(!t)return null;if(t.instance instanceof pt)return t.instance;if("#document-fragment"===t.nodeName)return new mt.Fragment(t);let e=it(t.nodeName||"Dom");return"LinearGradient"===e||"RadialGradient"===e?e="Gradient":mt[e]||(e="Dom"),new mt[e](t)}let bt=xt;function kt(t,e=t.name,n=!1){return mt[e]=t,n&&(mt[gt]=t),et(Object.getOwnPropertyNames(t.prototype)),t}let Nt=1e3;function _t(t){return"Svgjs"+it(t)+Nt++}function Tt(t){for(let e=t.children.length-1;e>=0;e--)Tt(t.children[e]);return t.id?(t.id=_t(t.nodeName),t):t}function St(t,e){let n,r;for(r=(t=Array.isArray(t)?t:[t]).length-1;r>=0;r--)for(n in e)t[r].prototype[n]=e[n]}function Et(t){return function(...e){const n=e[e.length-1];return!n||n.constructor!==Object||n instanceof Array?t.apply(this,e):t.apply(this,e.slice(0,-1)).attr(n)}}K("Dom",{siblings:function(){return this.parent().children()},position:function(){return this.parent().index(this)},next:function(){return this.siblings()[this.position()+1]},prev:function(){return this.siblings()[this.position()-1]},forward:function(){const t=this.position();return this.parent().add(this.remove(),t+1),this},backward:function(){const t=this.position();return this.parent().add(this.remove(),t?t-1:0),this},front:function(){return this.parent().add(this.remove()),this},back:function(){return this.parent().add(this.remove(),0),this},before:function(t){(t=vt(t)).remove();const e=this.position();return this.parent().add(t,e),this},after:function(t){(t=vt(t)).remove();const e=this.position();return this.parent().add(t,e+1),this},insertBefore:function(t){return(t=vt(t)).before(this),this},insertAfter:function(t){return(t=vt(t)).after(this),this}});const Mt=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,Ct=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,At=/rgb\((\d+),(\d+),(\d+)\)/,Lt=/(#[a-z_][a-z0-9\-_]*)/i,Ot=/\)\s*,?\s*/,jt=/\s/g,Dt=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i,Wt=/^rgb\(/,Pt=/^(\s+)?$/,qt=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,It=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,Rt=/[\s,]+/,Ht=/[MLHVCSQTAZ]/i;function zt(t){const e=Math.round(t),n=Math.max(0,Math.min(255,e)).toString(16);return 1===n.length?"0"+n:n}function Ft(t,e){for(let n=e.length;n--;)if(null==t[e[n]])return!1;return!0}function Bt(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}K("Dom",{classes:function(){const t=this.attr("class");return null==t?[]:t.trim().split(Rt)},hasClass:function(t){return-1!==this.classes().indexOf(t)},addClass:function(t){if(!this.hasClass(t)){const e=this.classes();e.push(t),this.attr("class",e.join(" "))}return this},removeClass:function(t){return this.hasClass(t)&&this.attr("class",this.classes().filter((function(e){return e!==t})).join(" ")),this},toggleClass:function(t){return this.hasClass(t)?this.removeClass(t):this.addClass(t)}}),K("Dom",{css:function(t,e){const n={};if(0===arguments.length)return this.node.style.cssText.split(/\s*;\s*/).filter((function(t){return!!t.length})).forEach((function(t){const e=t.split(/\s*:\s*/);n[e[0]]=e[1]})),n;if(arguments.length<2){if(Array.isArray(t)){for(const e of t){const t=e;n[e]=this.node.style.getPropertyValue(t)}return n}if("string"==typeof t)return this.node.style.getPropertyValue(t);if("object"==typeof t)for(const e in t)this.node.style.setProperty(e,null==t[e]||Pt.test(t[e])?"":t[e])}return 2===arguments.length&&this.node.style.setProperty(t,null==e||Pt.test(e)?"":e),this},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},visible:function(){return"none"!==this.css("display")}}),K("Dom",{data:function(t,e,n){if(null==t)return this.data(nt(function(t){let e;const n=t.length,r=[];for(e=0;e<n;e++)0===t[e].nodeName.indexOf("data-")&&r.push(t[e]);return r}(this.node.attributes),(t=>t.nodeName.slice(5))));if(t instanceof Array){const e={};for(const n of t)e[n]=this.data(n);return e}if("object"==typeof t)for(e in t)this.data(e,t[e]);else if(arguments.length<2)try{return JSON.parse(this.attr("data-"+t))}catch(e){return this.attr("data-"+t)}else this.attr("data-"+t,null===e?null:!0===n||"string"==typeof e||"number"==typeof e?e:JSON.stringify(e));return this}}),K("Dom",{remember:function(t,e){if("object"==typeof arguments[0])for(const e in t)this.remember(e,t[e]);else{if(1===arguments.length)return this.memory()[t];this.memory()[t]=e}return this},forget:function(){if(0===arguments.length)this._memory={};else for(let t=arguments.length-1;t>=0;t--)delete this.memory()[arguments[t]];return this},memory:function(){return this._memory=this._memory||{}}});class Gt{constructor(...t){this.init(...t)}static isColor(t){return t&&(t instanceof Gt||this.isRgb(t)||this.test(t))}static isRgb(t){return t&&"number"==typeof t.r&&"number"==typeof t.g&&"number"==typeof t.b}static random(t="vibrant",e){const{random:n,round:r,sin:i,PI:s}=Math;if("vibrant"===t){const t=24*n()+57,e=38*n()+45,r=360*n();return new Gt(t,e,r,"lch")}if("sine"===t){const t=r(80*i(2*s*(e=null==e?n():e)/.5+.01)+150),o=r(50*i(2*s*e/.5+4.6)+200),a=r(100*i(2*s*e/.5+2.3)+150);return new Gt(t,o,a)}if("pastel"===t){const t=8*n()+86,e=17*n()+9,r=360*n();return new Gt(t,e,r,"lch")}if("dark"===t){const t=10+10*n(),e=50*n()+86,r=360*n();return new Gt(t,e,r,"lch")}if("rgb"===t){const t=255*n(),e=255*n(),r=255*n();return new Gt(t,e,r)}if("lab"===t){const t=100*n(),e=256*n()-128,r=256*n()-128;return new Gt(t,e,r,"lab")}if("grey"===t){const t=255*n();return new Gt(t,t,t)}throw new Error("Unsupported random color mode")}static test(t){return"string"==typeof t&&(Dt.test(t)||Wt.test(t))}cmyk(){const{_a:t,_b:e,_c:n}=this.rgb(),[r,i,s]=[t,e,n].map((t=>t/255)),o=Math.min(1-r,1-i,1-s);return 1===o?new Gt(0,0,0,1,"cmyk"):new Gt((1-r-o)/(1-o),(1-i-o)/(1-o),(1-s-o)/(1-o),o,"cmyk")}hsl(){const{_a:t,_b:e,_c:n}=this.rgb(),[r,i,s]=[t,e,n].map((t=>t/255)),o=Math.max(r,i,s),a=Math.min(r,i,s),u=(o+a)/2,h=o===a,l=o-a;return new Gt(360*(h?0:o===r?((i-s)/l+(i<s?6:0))/6:o===i?((s-r)/l+2)/6:o===s?((r-i)/l+4)/6:0),100*(h?0:u>.5?l/(2-o-a):l/(o+a)),100*u,"hsl")}init(t=0,e=0,n=0,r=0,i="rgb"){if(t=t||0,this.space)for(const t in this.space)delete this[this.space[t]];if("number"==typeof t)i="string"==typeof r?r:i,r="string"==typeof r?0:r,Object.assign(this,{_a:t,_b:e,_c:n,_d:r,space:i});else if(t instanceof Array)this.space=e||("string"==typeof t[3]?t[3]:t[4])||"rgb",Object.assign(this,{_a:t[0],_b:t[1],_c:t[2],_d:t[3]||0});else if(t instanceof Object){const n=function(t,e){const n=Ft(t,"rgb")?{_a:t.r,_b:t.g,_c:t.b,_d:0,space:"rgb"}:Ft(t,"xyz")?{_a:t.x,_b:t.y,_c:t.z,_d:0,space:"xyz"}:Ft(t,"hsl")?{_a:t.h,_b:t.s,_c:t.l,_d:0,space:"hsl"}:Ft(t,"lab")?{_a:t.l,_b:t.a,_c:t.b,_d:0,space:"lab"}:Ft(t,"lch")?{_a:t.l,_b:t.c,_c:t.h,_d:0,space:"lch"}:Ft(t,"cmyk")?{_a:t.c,_b:t.m,_c:t.y,_d:t.k,space:"cmyk"}:{_a:0,_b:0,_c:0,space:"rgb"};return n.space=e||n.space,n}(t,e);Object.assign(this,n)}else if("string"==typeof t)if(Wt.test(t)){const e=t.replace(jt,""),[n,r,i]=At.exec(e).slice(1,4).map((t=>parseInt(t)));Object.assign(this,{_a:n,_b:r,_c:i,_d:0,space:"rgb"})}else{if(!Dt.test(t))throw Error("Unsupported string format, can't construct Color");{const e=t=>parseInt(t,16),[,n,r,i]=Ct.exec(function(t){return 4===t.length?["#",t.substring(1,2),t.substring(1,2),t.substring(2,3),t.substring(2,3),t.substring(3,4),t.substring(3,4)].join(""):t}(t)).map(e);Object.assign(this,{_a:n,_b:r,_c:i,_d:0,space:"rgb"})}}const{_a:s,_b:o,_c:a,_d:u}=this,h="rgb"===this.space?{r:s,g:o,b:a}:"xyz"===this.space?{x:s,y:o,z:a}:"hsl"===this.space?{h:s,s:o,l:a}:"lab"===this.space?{l:s,a:o,b:a}:"lch"===this.space?{l:s,c:o,h:a}:"cmyk"===this.space?{c:s,m:o,y:a,k:u}:{};Object.assign(this,h)}lab(){const{x:t,y:e,z:n}=this.xyz();return new Gt(116*e-16,500*(t-e),200*(e-n),"lab")}lch(){const{l:t,a:e,b:n}=this.lab(),r=Math.sqrt(e**2+n**2);let i=180*Math.atan2(n,e)/Math.PI;return i<0&&(i*=-1,i=360-i),new Gt(t,r,i,"lch")}rgb(){if("rgb"===this.space)return this;if("lab"===(t=this.space)||"xyz"===t||"lch"===t){let{x:t,y:e,z:n}=this;if("lab"===this.space||"lch"===this.space){let{l:r,a:i,b:s}=this;if("lch"===this.space){const{c:t,h:e}=this,n=Math.PI/180;i=t*Math.cos(n*e),s=t*Math.sin(n*e)}const o=(r+16)/116,a=i/500+o,u=o-s/200,h=16/116,l=.008856,c=7.787;t=.95047*(a**3>l?a**3:(a-h)/c),e=1*(o**3>l?o**3:(o-h)/c),n=1.08883*(u**3>l?u**3:(u-h)/c)}const r=3.2406*t+-1.5372*e+-.4986*n,i=-.9689*t+1.8758*e+.0415*n,s=.0557*t+-.204*e+1.057*n,o=Math.pow,a=.0031308,u=r>a?1.055*o(r,1/2.4)-.055:12.92*r,h=i>a?1.055*o(i,1/2.4)-.055:12.92*i,l=s>a?1.055*o(s,1/2.4)-.055:12.92*s;return new Gt(255*u,255*h,255*l)}if("hsl"===this.space){let{h:t,s:e,l:n}=this;if(t/=360,e/=100,n/=100,0===e)return n*=255,new Gt(n,n,n);const r=n<.5?n*(1+e):n+e-n*e,i=2*n-r,s=255*Bt(i,r,t+1/3),o=255*Bt(i,r,t),a=255*Bt(i,r,t-1/3);return new Gt(s,o,a)}if("cmyk"===this.space){const{c:t,m:e,y:n,k:r}=this,i=255*(1-Math.min(1,t*(1-r)+r)),s=255*(1-Math.min(1,e*(1-r)+r)),o=255*(1-Math.min(1,n*(1-r)+r));return new Gt(i,s,o)}return this;var t}toArray(){const{_a:t,_b:e,_c:n,_d:r,space:i}=this;return[t,e,n,r,i]}toHex(){const[t,e,n]=this._clamped().map(zt);return`#${t}${e}${n}`}toRgb(){const[t,e,n]=this._clamped();return`rgb(${t},${e},${n})`}toString(){return this.toHex()}xyz(){const{_a:t,_b:e,_c:n}=this.rgb(),[r,i,s]=[t,e,n].map((t=>t/255)),o=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,a=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92,u=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92,h=(.4124*o+.3576*a+.1805*u)/.95047,l=(.2126*o+.7152*a+.0722*u)/1,c=(.0193*o+.1192*a+.9505*u)/1.08883,d=h>.008856?Math.pow(h,1/3):7.787*h+16/116,f=l>.008856?Math.pow(l,1/3):7.787*l+16/116,p=c>.008856?Math.pow(c,1/3):7.787*c+16/116;return new Gt(d,f,p,"xyz")}_clamped(){const{_a:t,_b:e,_c:n}=this.rgb(),{max:r,min:i,round:s}=Math;return[t,e,n].map((t=>r(0,i(s(t),255))))}}class Vt{constructor(...t){this.init(...t)}clone(){return new Vt(this)}init(t,e){const n=Array.isArray(t)?{x:t[0],y:t[1]}:"object"==typeof t?{x:t.x,y:t.y}:{x:t,y:e};return this.x=null==n.x?0:n.x,this.y=null==n.y?0:n.y,this}toArray(){return[this.x,this.y]}transform(t){return this.clone().transformO(t)}transformO(t){Xt.isMatrixLike(t)||(t=new Xt(t));const{x:e,y:n}=this;return this.x=t.a*e+t.c*n+t.e,this.y=t.b*e+t.d*n+t.f,this}}function Ut(t,e,n){return Math.abs(e-t)<(n||1e-6)}class Xt{constructor(...t){this.init(...t)}static formatTransforms(t){const e="both"===t.flip||!0===t.flip,n=t.flip&&(e||"x"===t.flip)?-1:1,r=t.flip&&(e||"y"===t.flip)?-1:1,i=t.skew&&t.skew.length?t.skew[0]:isFinite(t.skew)?t.skew:isFinite(t.skewX)?t.skewX:0,s=t.skew&&t.skew.length?t.skew[1]:isFinite(t.skew)?t.skew:isFinite(t.skewY)?t.skewY:0,o=t.scale&&t.scale.length?t.scale[0]*n:isFinite(t.scale)?t.scale*n:isFinite(t.scaleX)?t.scaleX*n:n,a=t.scale&&t.scale.length?t.scale[1]*r:isFinite(t.scale)?t.scale*r:isFinite(t.scaleY)?t.scaleY*r:r,u=t.shear||0,h=t.rotate||t.theta||0,l=new Vt(t.origin||t.around||t.ox||t.originX,t.oy||t.originY),c=l.x,d=l.y,f=new Vt(t.position||t.px||t.positionX||NaN,t.py||t.positionY||NaN),p=f.x,m=f.y,g=new Vt(t.translate||t.tx||t.translateX,t.ty||t.translateY),y=g.x,v=g.y,w=new Vt(t.relative||t.rx||t.relativeX,t.ry||t.relativeY);return{scaleX:o,scaleY:a,skewX:i,skewY:s,shear:u,theta:h,rx:w.x,ry:w.y,tx:y,ty:v,ox:c,oy:d,px:p,py:m}}static fromArray(t){return{a:t[0],b:t[1],c:t[2],d:t[3],e:t[4],f:t[5]}}static isMatrixLike(t){return null!=t.a||null!=t.b||null!=t.c||null!=t.d||null!=t.e||null!=t.f}static matrixMultiply(t,e,n){const r=t.a*e.a+t.c*e.b,i=t.b*e.a+t.d*e.b,s=t.a*e.c+t.c*e.d,o=t.b*e.c+t.d*e.d,a=t.e+t.a*e.e+t.c*e.f,u=t.f+t.b*e.e+t.d*e.f;return n.a=r,n.b=i,n.c=s,n.d=o,n.e=a,n.f=u,n}around(t,e,n){return this.clone().aroundO(t,e,n)}aroundO(t,e,n){const r=t||0,i=e||0;return this.translateO(-r,-i).lmultiplyO(n).translateO(r,i)}clone(){return new Xt(this)}decompose(t=0,e=0){const n=this.a,r=this.b,i=this.c,s=this.d,o=this.e,a=this.f,u=n*s-r*i,h=u>0?1:-1,l=h*Math.sqrt(n*n+r*r),c=Math.atan2(h*r,h*n),d=180/Math.PI*c,f=Math.cos(c),p=Math.sin(c),m=(n*i+r*s)/u,g=i*l/(m*n-r)||s*l/(m*r+n);return{scaleX:l,scaleY:g,shear:m,rotate:d,translateX:o-t+t*f*l+e*(m*f*l-p*g),translateY:a-e+t*p*l+e*(m*p*l+f*g),originX:t,originY:e,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}equals(t){if(t===this)return!0;const e=new Xt(t);return Ut(this.a,e.a)&&Ut(this.b,e.b)&&Ut(this.c,e.c)&&Ut(this.d,e.d)&&Ut(this.e,e.e)&&Ut(this.f,e.f)}flip(t,e){return this.clone().flipO(t,e)}flipO(t,e){return"x"===t?this.scaleO(-1,1,e,0):"y"===t?this.scaleO(1,-1,0,e):this.scaleO(-1,-1,t,e||t)}init(t){const e=Xt.fromArray([1,0,0,1,0,0]);return t=t instanceof ge?t.matrixify():"string"==typeof t?Xt.fromArray(t.split(Rt).map(parseFloat)):Array.isArray(t)?Xt.fromArray(t):"object"==typeof t&&Xt.isMatrixLike(t)?t:"object"==typeof t?(new Xt).transform(t):6===arguments.length?Xt.fromArray([].slice.call(arguments)):e,this.a=null!=t.a?t.a:e.a,this.b=null!=t.b?t.b:e.b,this.c=null!=t.c?t.c:e.c,this.d=null!=t.d?t.d:e.d,this.e=null!=t.e?t.e:e.e,this.f=null!=t.f?t.f:e.f,this}inverse(){return this.clone().inverseO()}inverseO(){const t=this.a,e=this.b,n=this.c,r=this.d,i=this.e,s=this.f,o=t*r-e*n;if(!o)throw new Error("Cannot invert "+this);const a=r/o,u=-e/o,h=-n/o,l=t/o,c=-(a*i+h*s),d=-(u*i+l*s);return this.a=a,this.b=u,this.c=h,this.d=l,this.e=c,this.f=d,this}lmultiply(t){return this.clone().lmultiplyO(t)}lmultiplyO(t){const e=t instanceof Xt?t:new Xt(t);return Xt.matrixMultiply(e,this,this)}multiply(t){return this.clone().multiplyO(t)}multiplyO(t){const e=t instanceof Xt?t:new Xt(t);return Xt.matrixMultiply(this,e,this)}rotate(t,e,n){return this.clone().rotateO(t,e,n)}rotateO(t,e=0,n=0){t=rt(t);const r=Math.cos(t),i=Math.sin(t),{a:s,b:o,c:a,d:u,e:h,f:l}=this;return this.a=s*r-o*i,this.b=o*r+s*i,this.c=a*r-u*i,this.d=u*r+a*i,this.e=h*r-l*i+n*i-e*r+e,this.f=l*r+h*i-e*i-n*r+n,this}scale(){return this.clone().scaleO(...arguments)}scaleO(t,e=t,n=0,r=0){3===arguments.length&&(r=n,n=e,e=t);const{a:i,b:s,c:o,d:a,e:u,f:h}=this;return this.a=i*t,this.b=s*e,this.c=o*t,this.d=a*e,this.e=u*t-n*t+n,this.f=h*e-r*e+r,this}shear(t,e,n){return this.clone().shearO(t,e,n)}shearO(t,e=0,n=0){const{a:r,b:i,c:s,d:o,e:a,f:u}=this;return this.a=r+i*t,this.c=s+o*t,this.e=a+u*t-n*t,this}skew(){return this.clone().skewO(...arguments)}skewO(t,e=t,n=0,r=0){3===arguments.length&&(r=n,n=e,e=t),t=rt(t),e=rt(e);const i=Math.tan(t),s=Math.tan(e),{a:o,b:a,c:u,d:h,e:l,f:c}=this;return this.a=o+a*i,this.b=a+o*s,this.c=u+h*i,this.d=h+u*s,this.e=l+c*i-r*i,this.f=c+l*s-n*s,this}skewX(t,e,n){return this.skew(t,0,e,n)}skewY(t,e,n){return this.skew(0,t,e,n)}toArray(){return[this.a,this.b,this.c,this.d,this.e,this.f]}toString(){return"matrix("+this.a+","+this.b+","+this.c+","+this.d+","+this.e+","+this.f+")"}transform(t){if(Xt.isMatrixLike(t))return new Xt(t).multiplyO(this);const e=Xt.formatTransforms(t),{x:n,y:r}=new Vt(e.ox,e.oy).transform(this),i=(new Xt).translateO(e.rx,e.ry).lmultiplyO(this).translateO(-n,-r).scaleO(e.scaleX,e.scaleY).skewO(e.skewX,e.skewY).shearO(e.shear).rotateO(e.theta).translateO(n,r);if(isFinite(e.px)||isFinite(e.py)){const t=new Vt(n,r).transform(i),s=isFinite(e.px)?e.px-t.x:0,o=isFinite(e.py)?e.py-t.y:0;i.translateO(s,o)}return i.translateO(e.tx,e.ty),i}translate(t,e){return this.clone().translateO(t,e)}translateO(t,e){return this.e+=t||0,this.f+=e||0,this}valueOf(){return{a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}}function $t(){if(!$t.nodes){const t=vt().size(2,0);t.node.style.cssText=["opacity: 0","position: absolute","left: -100%","top: -100%","overflow: hidden"].join(";"),t.attr("focusable","false"),t.attr("aria-hidden","true");const e=t.path().node;$t.nodes={svg:t,path:e}}if(!$t.nodes.svg.node.parentNode){const t=ft.document.body||ft.document.documentElement;$t.nodes.svg.addTo(t)}return $t.nodes}function Yt(t){return!(t.width||t.height||t.x||t.y)}kt(Xt,"Matrix");class Qt{constructor(...t){this.init(...t)}addOffset(){return this.x+=ft.window.pageXOffset,this.y+=ft.window.pageYOffset,new Qt(this)}init(t){return t="string"==typeof t?t.split(Rt).map(parseFloat):Array.isArray(t)?t:"object"==typeof t?[null!=t.left?t.left:t.x,null!=t.top?t.top:t.y,t.width,t.height]:4===arguments.length?[].slice.call(arguments):[0,0,0,0],this.x=t[0]||0,this.y=t[1]||0,this.width=this.w=t[2]||0,this.height=this.h=t[3]||0,this.x2=this.x+this.w,this.y2=this.y+this.h,this.cx=this.x+this.w/2,this.cy=this.y+this.h/2,this}isNulled(){return Yt(this)}merge(t){const e=Math.min(this.x,t.x),n=Math.min(this.y,t.y),r=Math.max(this.x+this.width,t.x+t.width)-e,i=Math.max(this.y+this.height,t.y+t.height)-n;return new Qt(e,n,r,i)}toArray(){return[this.x,this.y,this.width,this.height]}toString(){return this.x+" "+this.y+" "+this.width+" "+this.height}transform(t){t instanceof Xt||(t=new Xt(t));let e=1/0,n=-1/0,r=1/0,i=-1/0;return[new Vt(this.x,this.y),new Vt(this.x2,this.y),new Vt(this.x,this.y2),new Vt(this.x2,this.y2)].forEach((function(s){s=s.transform(t),e=Math.min(e,s.x),n=Math.max(n,s.x),r=Math.min(r,s.y),i=Math.max(i,s.y)})),new Qt(e,r,n-e,i-r)}}function Jt(t,e,n){let r;try{if(r=e(t.node),Yt(r)&&(i=t.node)!==ft.document&&!(ft.document.documentElement.contains||function(t){for(;t.parentNode;)t=t.parentNode;return t===ft.document}).call(ft.document.documentElement,i))throw new Error("Element not in the dom")}catch(e){r=n(t)}var i;return r}K({viewbox:{viewbox(t,e,n,r){return null==t?new Qt(this.attr("viewBox")):this.attr("viewBox",new Qt(t,e,n,r))},zoom(t,e){let{width:n,height:r}=this.attr(["width","height"]);if((n||r)&&"string"!=typeof n&&"string"!=typeof r||(n=this.node.clientWidth,r=this.node.clientHeight),!n||!r)throw new Error("Impossible to get absolute width and height. Please provide an absolute width and height attribute on the zooming element");const i=this.viewbox(),s=n/i.width,o=r/i.height,a=Math.min(s,o);if(null==t)return a;let u=a/t;u===1/0&&(u=Number.MAX_SAFE_INTEGER/100),e=e||new Vt(n/2/s+i.x,r/2/o+i.y);const h=new Qt(i).transform(new Xt({scale:u,origin:e}));return this.viewbox(h)}}}),kt(Qt,"Box");class Zt extends Array{constructor(t=[],...e){if(super(t,...e),"number"==typeof t)return this;this.length=0,this.push(...t)}}const Kt=Zt;St([Zt],{each(t,...e){return"function"==typeof t?this.map(((e,n,r)=>t.call(e,e,n,r))):this.map((n=>n[t](...e)))},toArray(){return Array.prototype.concat.apply([],this)}});const te=["toArray","constructor","each"];function ee(t,e){return new Kt(nt((e||ft.document).querySelectorAll(t),(function(t){return xt(t)})))}Zt.extend=function(t){t=t.reduce(((t,e)=>(te.includes(e)||"_"===e[0]||(e in Array.prototype&&(t["$"+e]=Array.prototype[e]),t[e]=function(...t){return this.each(e,...t)}),t)),{}),St([Zt],t)};let ne=0;const re={};function ie(t){let e=t.getEventHolder();return e===ft.window&&(e=re),e.events||(e.events={}),e.events}function se(t){return t.getEventTarget()}function oe(t,e,n,r,i){const s=n.bind(r||t),o=vt(t),a=ie(o),u=se(o);e=Array.isArray(e)?e:e.split(Rt),n._svgjsListenerId||(n._svgjsListenerId=++ne),e.forEach((function(t){const e=t.split(".")[0],r=t.split(".")[1]||"*";a[e]=a[e]||{},a[e][r]=a[e][r]||{},a[e][r][n._svgjsListenerId]=s,u.addEventListener(e,s,i||!1)}))}function ae(t,e,n,r){const i=vt(t),s=ie(i),o=se(i);("function"!=typeof n||(n=n._svgjsListenerId))&&(e=Array.isArray(e)?e:(e||"").split(Rt)).forEach((function(t){const e=t&&t.split(".")[0],a=t&&t.split(".")[1];let u,h;if(n)s[e]&&s[e][a||"*"]&&(o.removeEventListener(e,s[e][a||"*"][n],r||!1),delete s[e][a||"*"][n]);else if(e&&a){if(s[e]&&s[e][a]){for(h in s[e][a])ae(o,[e,a].join("."),h);delete s[e][a]}}else if(a)for(t in s)for(u in s[t])a===u&&ae(o,[t,a].join("."));else if(e){if(s[e]){for(u in s[e])ae(o,[e,u].join("."));delete s[e]}}else{for(t in s)ae(o,t);!function(t){let e=t.getEventHolder();e===ft.window&&(e=re),e.events&&(e.events={})}(i)}}))}class ue extends pt{addEventListener(){}dispatch(t,e,n){return function(t,e,n,r){const i=se(t);return e instanceof ft.window.Event||(e=new ft.window.CustomEvent(e,{detail:n,cancelable:!0,...r})),i.dispatchEvent(e),e}(this,t,e,n)}dispatchEvent(t){const e=this.getEventHolder().events;if(!e)return!0;const n=e[t.type];for(const e in n)for(const r in n[e])n[e][r](t);return!t.defaultPrevented}fire(t,e,n){return this.dispatch(t,e,n),this}getEventHolder(){return this}getEventTarget(){return this}off(t,e,n){return ae(this,t,e,n),this}on(t,e,n,r){return oe(this,t,e,n,r),this}removeEventListener(){}}function he(){}kt(ue,"EventTarget");const le={"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","text-anchor":"start"};class ce extends Array{constructor(...t){super(...t),this.init(...t)}clone(){return new this.constructor(this)}init(t){return"number"==typeof t||(this.length=0,this.push(...this.parse(t))),this}parse(t=[]){return t instanceof Array?t:t.trim().split(Rt).map(parseFloat)}toArray(){return Array.prototype.concat.apply([],this)}toSet(){return new Set(this)}toString(){return this.join(" ")}valueOf(){const t=[];return t.push(...this),t}}class de{constructor(...t){this.init(...t)}convert(t){return new de(this.value,t)}divide(t){return t=new de(t),new de(this/t,this.unit||t.unit)}init(t,e){return e=Array.isArray(t)?t[1]:e,t=Array.isArray(t)?t[0]:t,this.value=0,this.unit=e||"","number"==typeof t?this.value=isNaN(t)?0:isFinite(t)?t:t<0?-34e37:34e37:"string"==typeof t?(e=t.match(Mt))&&(this.value=parseFloat(e[1]),"%"===e[5]?this.value/=100:"s"===e[5]&&(this.value*=1e3),this.unit=e[5]):t instanceof de&&(this.value=t.valueOf(),this.unit=t.unit),this}minus(t){return t=new de(t),new de(this-t,this.unit||t.unit)}plus(t){return t=new de(t),new de(this+t,this.unit||t.unit)}times(t){return t=new de(t),new de(this*t,this.unit||t.unit)}toArray(){return[this.value,this.unit]}toJSON(){return this.toString()}toString(){return("%"===this.unit?~~(1e8*this.value)/1e6:"s"===this.unit?this.value/1e3:this.value)+this.unit}valueOf(){return this.value}}const fe=new Set(["fill","stroke","color","bgcolor","stop-color","flood-color","lighting-color"]),pe=[];class me extends ue{constructor(t,e){super(),this.node=t,this.type=t.nodeName,e&&t!==e&&this.attr(e)}add(t,e){return(t=vt(t)).removeNamespace&&this.node instanceof ft.window.SVGElement&&t.removeNamespace(),null==e?this.node.appendChild(t.node):t.node!==this.node.childNodes[e]&&this.node.insertBefore(t.node,this.node.childNodes[e]),this}addTo(t,e){return vt(t).put(this,e)}children(){return new Kt(nt(this.node.children,(function(t){return xt(t)})))}clear(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return this}clone(t=!0,e=!0){this.writeDataToDom();let n=this.node.cloneNode(t);return e&&(n=Tt(n)),new this.constructor(n)}each(t,e){const n=this.children();let r,i;for(r=0,i=n.length;r<i;r++)t.apply(n[r],[r,n]),e&&n[r].each(t,e);return this}element(t,e){return this.put(new me(yt(t),e))}first(){return xt(this.node.firstChild)}get(t){return xt(this.node.childNodes[t])}getEventHolder(){return this.node}getEventTarget(){return this.node}has(t){return this.index(t)>=0}html(t,e){return this.xml(t,e,"http://www.w3.org/1999/xhtml")}id(t){return void 0!==t||this.node.id||(this.node.id=_t(this.type)),this.attr("id",t)}index(t){return[].slice.call(this.node.childNodes).indexOf(t.node)}last(){return xt(this.node.lastChild)}matches(t){const e=this.node,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector||null;return n&&n.call(e,t)}parent(t){let e=this;if(!e.node.parentNode)return null;if(e=xt(e.node.parentNode),!t)return e;do{if("string"==typeof t?e.matches(t):e instanceof t)return e}while(e=xt(e.node.parentNode));return e}put(t,e){return t=vt(t),this.add(t,e),t}putIn(t,e){return vt(t).add(this,e)}remove(){return this.parent()&&this.parent().removeElement(this),this}removeElement(t){return this.node.removeChild(t.node),this}replace(t){return t=vt(t),this.node.parentNode&&this.node.parentNode.replaceChild(t.node,this.node),t}round(t=2,e=null){const n=10**t,r=this.attr(e);for(const t in r)"number"==typeof r[t]&&(r[t]=Math.round(r[t]*n)/n);return this.attr(r),this}svg(t,e){return this.xml(t,e,lt)}toString(){return this.id()}words(t){return this.node.textContent=t,this}wrap(t){const e=this.parent();if(!e)return this.addTo(t);const n=e.index(this);return e.put(t,n).put(this)}writeDataToDom(){return this.each((function(){this.writeDataToDom()})),this}xml(t,e,n){if("boolean"==typeof t&&(n=e,e=t,t=null),null==t||"function"==typeof t){e=null==e||e,this.writeDataToDom();let n=this;if(null!=t){if(n=xt(n.node.cloneNode(!0)),e){const e=t(n);if(n=e||n,!1===e)return""}n.each((function(){const e=t(this),n=e||this;!1===e?this.remove():e&&this!==n&&this.replace(n)}),!0)}return e?n.node.outerHTML:n.node.innerHTML}e=null!=e&&e;const r=yt("wrapper",n),i=ft.document.createDocumentFragment();r.innerHTML=t;for(let t=r.children.length;t--;)i.appendChild(r.firstElementChild);const s=this.parent();return e?this.replace(i)&&s:this.add(i)}}St(me,{attr:function(t,e,n){if(null==t){t={},e=this.node.attributes;for(const n of e)t[n.nodeName]=qt.test(n.nodeValue)?parseFloat(n.nodeValue):n.nodeValue;return t}if(t instanceof Array)return t.reduce(((t,e)=>(t[e]=this.attr(e),t)),{});if("object"==typeof t&&t.constructor===Object)for(e in t)this.attr(e,t[e]);else if(null===e)this.node.removeAttribute(t);else{if(null==e)return null==(e=this.node.getAttribute(t))?le[t]:qt.test(e)?parseFloat(e):e;"number"==typeof(e=pe.reduce(((e,n)=>n(t,e,this)),e))?e=new de(e):fe.has(t)&&Gt.isColor(e)?e=new Gt(e):e.constructor===Array&&(e=new ce(e)),"leading"===t?this.leading&&this.leading(e):"string"==typeof n?this.node.setAttributeNS(n,t,e.toString()):this.node.setAttribute(t,e.toString()),!this.rebuild||"font-size"!==t&&"x"!==t||this.rebuild()}return this},find:function(t){return ee(t,this.node)},findOne:function(t){return xt(this.node.querySelector(t))}}),kt(me,"Dom");class ge extends me{constructor(t,e){super(t,e),this.dom={},this.node.instance=this,(t.hasAttribute("data-svgjs")||t.hasAttribute("svgjs:data"))&&this.setData(JSON.parse(t.getAttribute("data-svgjs"))??JSON.parse(t.getAttribute("svgjs:data"))??{})}center(t,e){return this.cx(t).cy(e)}cx(t){return null==t?this.x()+this.width()/2:this.x(t-this.width()/2)}cy(t){return null==t?this.y()+this.height()/2:this.y(t-this.height()/2)}defs(){const t=this.root();return t&&t.defs()}dmove(t,e){return this.dx(t).dy(e)}dx(t=0){return this.x(new de(t).plus(this.x()))}dy(t=0){return this.y(new de(t).plus(this.y()))}getEventHolder(){return this}height(t){return this.attr("height",t)}move(t,e){return this.x(t).y(e)}parents(t=this.root()){const e="string"==typeof t;e||(t=vt(t));const n=new Kt;let r=this;for(;(r=r.parent())&&r.node!==ft.document&&"#document-fragment"!==r.nodeName&&(n.push(r),e||r.node!==t.node)&&(!e||!r.matches(t));)if(r.node===this.root().node)return null;return n}reference(t){if(!(t=this.attr(t)))return null;const e=(t+"").match(Lt);return e?vt(e[1]):null}root(){const t=this.parent(mt[gt]);return t&&t.root()}setData(t){return this.dom=t,this}size(t,e){const n=st(this,t,e);return this.width(new de(n.width)).height(new de(n.height))}width(t){return this.attr("width",t)}writeDataToDom(){return ht(this,this.dom),super.writeDataToDom()}x(t){return this.attr("x",t)}y(t){return this.attr("y",t)}}St(ge,{bbox:function(){const t=Jt(this,(t=>t.getBBox()),(t=>{try{const e=t.clone().addTo($t().svg).show(),n=e.node.getBBox();return e.remove(),n}catch(e){throw new Error(`Getting bbox of element "${t.node.nodeName}" is not possible: ${e.toString()}`)}}));return new Qt(t)},rbox:function(t){const e=Jt(this,(t=>t.getBoundingClientRect()),(t=>{throw new Error(`Getting rbox of element "${t.node.nodeName}" is not possible`)})),n=new Qt(e);return t?n.transform(t.screenCTM().inverseO()):n.addOffset()},inside:function(t,e){const n=this.bbox();return t>n.x&&e>n.y&&t<n.x+n.width&&e<n.y+n.height},point:function(t,e){return new Vt(t,e).transformO(this.screenCTM().inverseO())},ctm:function(){return new Xt(this.node.getCTM())},screenCTM:function(){try{if("function"==typeof this.isRoot&&!this.isRoot()){const t=this.rect(1,1),e=t.node.getScreenCTM();return t.remove(),new Xt(e)}return new Xt(this.node.getScreenCTM())}catch(t){return console.warn(`Cannot get CTM from SVG node ${this.node.nodeName}. Is the element rendered?`),new Xt}}}),kt(ge,"Element");const ye={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(t,e){return"color"===e?t:t+"-"+e}};["fill","stroke"].forEach((function(t){const e={};let n;e[t]=function(e){if(void 0===e)return this.attr(t);if("string"==typeof e||e instanceof Gt||Gt.isRgb(e)||e instanceof ge)this.attr(t,e);else for(n=ye[t].length-1;n>=0;n--)null!=e[ye[t][n]]&&this.attr(ye.prefix(t,ye[t][n]),e[ye[t][n]]);return this},K(["Element","Runner"],e)})),K(["Element","Runner"],{matrix:function(t,e,n,r,i,s){return null==t?new Xt(this):this.attr("transform",new Xt(t,e,n,r,i,s))},rotate:function(t,e,n){return this.transform({rotate:t,ox:e,oy:n},!0)},skew:function(t,e,n,r){return 1===arguments.length||3===arguments.length?this.transform({skew:t,ox:e,oy:n},!0):this.transform({skew:[t,e],ox:n,oy:r},!0)},shear:function(t,e,n){return this.transform({shear:t,ox:e,oy:n},!0)},scale:function(t,e,n,r){return 1===arguments.length||3===arguments.length?this.transform({scale:t,ox:e,oy:n},!0):this.transform({scale:[t,e],ox:n,oy:r},!0)},translate:function(t,e){return this.transform({translate:[t,e]},!0)},relative:function(t,e){return this.transform({relative:[t,e]},!0)},flip:function(t="both",e="center"){return-1==="xybothtrue".indexOf(t)&&(e=t,t="both"),this.transform({flip:t,origin:e},!0)},opacity:function(t){return this.attr("opacity",t)}}),K("radius",{radius:function(t,e=t){return"radialGradient"===(this._element||this).type?this.attr("r",new de(t)):this.rx(t).ry(e)}}),K("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(t){return new Vt(this.node.getPointAtLength(t))}}),K(["Element","Runner"],{font:function(t,e){if("object"==typeof t){for(e in t)this.font(e,t[e]);return this}return"leading"===t?this.leading(e):"anchor"===t?this.attr("text-anchor",e):"size"===t||"family"===t||"weight"===t||"stretch"===t||"variant"===t||"style"===t?this.attr("font-"+t,e):this.attr(t,e)}}),K("Element",["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","touchstart","touchmove","touchleave","touchend","touchcancel","contextmenu","wheel","pointerdown","pointermove","pointerup","pointerleave","pointercancel"].reduce((function(t,e){return t[e]=function(t){return null===t?this.off(e):this.on(e,t),this},t}),{})),K("Element",{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(Ot).slice(0,-1).map((function(t){const e=t.trim().split("(");return[e[0],e[1].split(Rt).map((function(t){return parseFloat(t)}))]})).reverse().reduce((function(t,e){return"matrix"===e[0]?t.lmultiply(Xt.fromArray(e[1])):t[e[0]].apply(t,e[1])}),new Xt)},toParent:function(t,e){if(this===t)return this;if(ut(this.node))return this.addTo(t,e);const n=this.screenCTM(),r=t.screenCTM().inverse();return this.addTo(t,e).untransform().transform(r.multiply(n)),this},toRoot:function(t){return this.toParent(this.root(),t)},transform:function(t,e){if(null==t||"string"==typeof t){const e=new Xt(this).decompose();return null==t?e:e[t]}Xt.isMatrixLike(t)||(t={...t,origin:ot(t,this)});const n=new Xt(!0===e?this:e||!1).transform(t);return this.attr("transform",n)}});class ve extends ge{flatten(){return this.each((function(){if(this instanceof ve)return this.flatten().ungroup()})),this}ungroup(t=this.parent(),e=t.index(this)){return e=-1===e?t.children().length:e,this.each((function(n,r){return r[r.length-n-1].toParent(t,e)})),this.remove()}}kt(ve,"Container");class we extends ve{constructor(t,e=t){super(wt("defs",t),e)}flatten(){return this}ungroup(){return this}}kt(we,"Defs");class xe extends ge{}function be(t){return this.attr("rx",t)}function ke(t){return this.attr("ry",t)}function Ne(t){return null==t?this.cx()-this.rx():this.cx(t+this.rx())}function _e(t){return null==t?this.cy()-this.ry():this.cy(t+this.ry())}function Te(t){return this.attr("cx",t)}function Se(t){return this.attr("cy",t)}function Ee(t){return null==t?2*this.rx():this.rx(new de(t).divide(2))}function Me(t){return null==t?2*this.ry():this.ry(new de(t).divide(2))}kt(xe,"Shape");class Ce extends xe{constructor(t,e=t){super(wt("ellipse",t),e)}size(t,e){const n=st(this,t,e);return this.rx(new de(n.width).divide(2)).ry(new de(n.height).divide(2))}}St(Ce,t),K("Container",{ellipse:Et((function(t=0,e=t){return this.put(new Ce).size(t,e).move(0,0)}))}),kt(Ce,"Ellipse");class Ae extends me{constructor(t=ft.document.createDocumentFragment()){super(t)}xml(t,e,n){if("boolean"==typeof t&&(n=e,e=t,t=null),null==t||"function"==typeof t){const t=new me(yt("wrapper",n));return t.add(this.node.cloneNode(!0)),t.xml(!1,n)}return super.xml(t,!1,n)}}kt(Ae,"Fragment");const Le=Ae;function Oe(t,e){return"radialGradient"===(this._element||this).type?this.attr({fx:new de(t),fy:new de(e)}):this.attr({x1:new de(t),y1:new de(e)})}function je(t,e){return"radialGradient"===(this._element||this).type?this.attr({cx:new de(t),cy:new de(e)}):this.attr({x2:new de(t),y2:new de(e)})}class De extends ve{constructor(t,e){super(wt(t+"Gradient","string"==typeof t?null:t),e)}attr(t,e,n){return"transform"===t&&(t="gradientTransform"),super.attr(t,e,n)}bbox(){return new Qt}targets(){return ee("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}url(){return"url(#"+this.id()+")"}}St(De,e),K({Container:{gradient(...t){return this.defs().gradient(...t)}},Defs:{gradient:Et((function(t,e){return this.put(new De(t)).update(e)}))}}),kt(De,"Gradient");class We extends ve{constructor(t,e=t){super(wt("pattern",t),e)}attr(t,e,n){return"transform"===t&&(t="patternTransform"),super.attr(t,e,n)}bbox(){return new Qt}targets(){return ee("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}url(){return"url(#"+this.id()+")"}}K({Container:{pattern(...t){return this.defs().pattern(...t)}},Defs:{pattern:Et((function(t,e,n){return this.put(new We).update(n).attr({x:0,y:0,width:t,height:e,patternUnits:"userSpaceOnUse"})}))}}),kt(We,"Pattern");class Pe extends xe{constructor(t,e=t){super(wt("image",t),e)}load(t,e){if(!t)return this;const n=new ft.window.Image;return oe(n,"load",(function(t){const r=this.parent(We);0===this.width()&&0===this.height()&&this.size(n.width,n.height),r instanceof We&&0===r.width()&&0===r.height()&&r.size(this.width(),this.height()),"function"==typeof e&&e.call(this,t)}),this),oe(n,"load error",(function(){ae(n)})),this.attr("href",n.src=t,dt)}}var qe;qe=function(t,e,n){return"fill"!==t&&"stroke"!==t||It.test(e)&&(e=n.root().defs().image(e)),e instanceof Pe&&(e=n.root().defs().pattern(0,0,(t=>{t.add(e)}))),e},pe.push(qe),K({Container:{image:Et((function(t,e){return this.put(new Pe).size(0,0).load(t,e)}))}}),kt(Pe,"Image");class Ie extends ce{bbox(){let t=-1/0,e=-1/0,n=1/0,r=1/0;return this.forEach((function(i){t=Math.max(i[0],t),e=Math.max(i[1],e),n=Math.min(i[0],n),r=Math.min(i[1],r)})),new Qt(n,r,t-n,e-r)}move(t,e){const n=this.bbox();if(t-=n.x,e-=n.y,!isNaN(t)&&!isNaN(e))for(let n=this.length-1;n>=0;n--)this[n]=[this[n][0]+t,this[n][1]+e];return this}parse(t=[0,0]){const e=[];(t=t instanceof Array?Array.prototype.concat.apply([],t):t.trim().split(Rt).map(parseFloat)).length%2!=0&&t.pop();for(let n=0,r=t.length;n<r;n+=2)e.push([t[n],t[n+1]]);return e}size(t,e){let n;const r=this.bbox();for(n=this.length-1;n>=0;n--)r.width&&(this[n][0]=(this[n][0]-r.x)*t/r.width+r.x),r.height&&(this[n][1]=(this[n][1]-r.y)*e/r.height+r.y);return this}toLine(){return{x1:this[0][0],y1:this[0][1],x2:this[1][0],y2:this[1][1]}}toString(){const t=[];for(let e=0,n=this.length;e<n;e++)t.push(this[e].join(","));return t.join(" ")}transform(t){return this.clone().transformO(t)}transformO(t){Xt.isMatrixLike(t)||(t=new Xt(t));for(let e=this.length;e--;){const[n,r]=this[e];this[e][0]=t.a*n+t.c*r+t.e,this[e][1]=t.b*n+t.d*r+t.f}return this}}const Re=Ie;function He(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)}function ze(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)}function Fe(t){const e=this.bbox();return null==t?e.width:this.size(t,e.height)}function Be(t){const e=this.bbox();return null==t?e.height:this.size(e.width,t)}class Ge extends xe{constructor(t,e=t){super(wt("line",t),e)}array(){return new Ie([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])}move(t,e){return this.attr(this.array().move(t,e).toLine())}plot(t,e,n,r){return null==t?this.array():(t=void 0!==e?{x1:t,y1:e,x2:n,y2:r}:new Ie(t).toLine(),this.attr(t))}size(t,e){const n=st(this,t,e);return this.attr(this.array().size(n.width,n.height).toLine())}}St(Ge,i),K({Container:{line:Et((function(...t){return Ge.prototype.plot.apply(this.put(new Ge),null!=t[0]?t:[0,0,0,0])}))}}),kt(Ge,"Line");class Ve extends ve{constructor(t,e=t){super(wt("marker",t),e)}height(t){return this.attr("markerHeight",t)}orient(t){return this.attr("orient",t)}ref(t,e){return this.attr("refX",t).attr("refY",e)}toString(){return"url(#"+this.id()+")"}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}width(t){return this.attr("markerWidth",t)}}function Ue(t,e){return function(n){return null==n?this[t]:(this[t]=n,e&&e.call(this),this)}}K({Container:{marker(...t){return this.defs().marker(...t)}},Defs:{marker:Et((function(t,e,n){return this.put(new Ve).size(t,e).ref(t/2,e/2).viewbox(0,0,t,e).attr("orient","auto").update(n)}))},marker:{marker(t,e,n,r){let i=["marker"];return"all"!==t&&i.push(t),i=i.join("-"),t=arguments[1]instanceof Ve?arguments[1]:this.defs().marker(e,n,r),this.attr(i,t)}}}),kt(Ve,"Marker");const Xe={"-":function(t){return t},"<>":function(t){return-Math.cos(t*Math.PI)/2+.5},">":function(t){return Math.sin(t*Math.PI/2)},"<":function(t){return 1-Math.cos(t*Math.PI/2)},bezier:function(t,e,n,r){return function(i){return i<0?t>0?e/t*i:n>0?r/n*i:0:i>1?n<1?(1-r)/(1-n)*i+(r-n)/(1-n):t<1?(1-e)/(1-t)*i+(e-t)/(1-t):1:3*i*(1-i)**2*e+3*i**2*(1-i)*r+i**3}},steps:function(t,e="end"){e=e.split("-").reverse()[0];let n=t;return"none"===e?--n:"both"===e&&++n,(r,i=!1)=>{let s=Math.floor(r*t);const o=r*s%1==0;return"start"!==e&&"both"!==e||++s,i&&o&&--s,r>=0&&s<0&&(s=0),r<=1&&s>n&&(s=n),s/n}}};class $e{done(){return!1}}class Ye extends $e{constructor(t=">"){super(),this.ease=Xe[t]||t}step(t,e,n){return"number"!=typeof t?n<1?t:e:t+(e-t)*this.ease(n)}}class Qe extends $e{constructor(t){super(),this.stepper=t}done(t){return t.done}step(t,e,n,r){return this.stepper(t,e,n,r)}}function Je(){const t=(this._duration||500)/1e3,e=this._overshoot||0,n=Math.PI,r=Math.log(e/100+1e-10),i=-r/Math.sqrt(n*n+r*r),s=3.9/(i*t);this.d=2*i*s,this.k=s*s}St(class extends Qe{constructor(t=500,e=0){super(),this.duration(t).overshoot(e)}step(t,e,n,r){if("string"==typeof t)return t;if(r.done=n===1/0,n===1/0)return e;if(0===n)return t;n>100&&(n=16),n/=1e3;const i=r.velocity||0,s=-this.d*i-this.k*(t-e),o=t+i*n+s*n*n/2;return r.velocity=i+s*n,r.done=Math.abs(e-o)+Math.abs(i)<.002,r.done?e:o}},{duration:Ue("_duration",Je),overshoot:Ue("_overshoot",Je)}),St(class extends Qe{constructor(t=.1,e=.01,n=0,r=1e3){super(),this.p(t).i(e).d(n).windup(r)}step(t,e,n,r){if("string"==typeof t)return t;if(r.done=n===1/0,n===1/0)return e;if(0===n)return t;const i=e-t;let s=(r.integral||0)+i*n;const o=(i-(r.error||0))/n,a=this._windup;return!1!==a&&(s=Math.max(-a,Math.min(s,a))),r.error=i,r.integral=s,r.done=Math.abs(i)<.001,r.done?e:t+(this.P*i+this.I*s+this.D*o)}},{windup:Ue("_windup"),p:Ue("P"),i:Ue("I"),d:Ue("D")});const Ze={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0},Ke={M:function(t,e,n){return e.x=n.x=t[0],e.y=n.y=t[1],["M",e.x,e.y]},L:function(t,e){return e.x=t[0],e.y=t[1],["L",t[0],t[1]]},H:function(t,e){return e.x=t[0],["H",t[0]]},V:function(t,e){return e.y=t[0],["V",t[0]]},C:function(t,e){return e.x=t[4],e.y=t[5],["C",t[0],t[1],t[2],t[3],t[4],t[5]]},S:function(t,e){return e.x=t[2],e.y=t[3],["S",t[0],t[1],t[2],t[3]]},Q:function(t,e){return e.x=t[2],e.y=t[3],["Q",t[0],t[1],t[2],t[3]]},T:function(t,e){return e.x=t[0],e.y=t[1],["T",t[0],t[1]]},Z:function(t,e,n){return e.x=n.x,e.y=n.y,["Z"]},A:function(t,e){return e.x=t[5],e.y=t[6],["A",t[0],t[1],t[2],t[3],t[4],t[5],t[6]]}},tn="mlhvqtcsaz".split("");for(let t=0,e=tn.length;t<e;++t)Ke[tn[t]]=function(t){return function(e,n,r){if("H"===t)e[0]=e[0]+n.x;else if("V"===t)e[0]=e[0]+n.y;else if("A"===t)e[5]=e[5]+n.x,e[6]=e[6]+n.y;else for(let t=0,r=e.length;t<r;++t)e[t]=e[t]+(t%2?n.y:n.x);return Ke[t](e,n,r)}}(tn[t].toUpperCase());function en(t){return t.segment.length&&t.segment.length-1===Ze[t.segment[0].toUpperCase()]}function nn(t,e){t.inNumber&&rn(t,!1);const n=Ht.test(e);if(n)t.segment=[e];else{const e=t.lastCommand,n=e.toLowerCase(),r=e===n;t.segment=["m"===n?r?"l":"L":e]}return t.inSegment=!0,t.lastCommand=t.segment[0],n}function rn(t,e){if(!t.inNumber)throw new Error("Parser Error");t.number&&t.segment.push(parseFloat(t.number)),t.inNumber=e,t.number="",t.pointSeen=!1,t.hasExponent=!1,en(t)&&sn(t)}function sn(t){t.inSegment=!1,t.absolute&&(t.segment=function(t){const e=t.segment[0];return Ke[e](t.segment.slice(1),t.p,t.p0)}(t)),t.segments.push(t.segment)}function on(t){if(!t.segment.length)return!1;const e="A"===t.segment[0].toUpperCase(),n=t.segment.length;return e&&(4===n||5===n)}function an(t){return"E"===t.lastToken.toUpperCase()}const un=new Set([" ",",","\t","\n","\r","\f"]);class hn extends ce{bbox(){return $t().path.setAttribute("d",this.toString()),new Qt($t.nodes.path.getBBox())}move(t,e){const n=this.bbox();if(t-=n.x,e-=n.y,!isNaN(t)&&!isNaN(e))for(let n,r=this.length-1;r>=0;r--)n=this[r][0],"M"===n||"L"===n||"T"===n?(this[r][1]+=t,this[r][2]+=e):"H"===n?this[r][1]+=t:"V"===n?this[r][1]+=e:"C"===n||"S"===n||"Q"===n?(this[r][1]+=t,this[r][2]+=e,this[r][3]+=t,this[r][4]+=e,"C"===n&&(this[r][5]+=t,this[r][6]+=e)):"A"===n&&(this[r][6]+=t,this[r][7]+=e);return this}parse(t="M0 0"){return Array.isArray(t)&&(t=Array.prototype.concat.apply([],t).toString()),function(t,e=!0){let n=0,r="";const i={segment:[],inNumber:!1,number:"",lastToken:"",inSegment:!1,segments:[],pointSeen:!1,hasExponent:!1,absolute:e,p0:new Vt,p:new Vt};for(;i.lastToken=r,r=t.charAt(n++);)if(i.inSegment||!nn(i,r))if("."!==r)if(isNaN(parseInt(r)))if(un.has(r))i.inNumber&&rn(i,!1);else if("-"!==r&&"+"!==r)if("E"!==r.toUpperCase()){if(Ht.test(r)){if(i.inNumber)rn(i,!1);else{if(!en(i))throw new Error("parser Error");sn(i)}--n}}else i.number+=r,i.hasExponent=!0;else{if(i.inNumber&&!an(i)){rn(i,!1),--n;continue}i.number+=r,i.inNumber=!0}else{if("0"===i.number||on(i)){i.inNumber=!0,i.number=r,rn(i,!0);continue}i.inNumber=!0,i.number+=r}else{if(i.pointSeen||i.hasExponent){rn(i,!1),--n;continue}i.inNumber=!0,i.pointSeen=!0,i.number+=r}return i.inNumber&&rn(i,!1),i.inSegment&&en(i)&&sn(i),i.segments}(t)}size(t,e){const n=this.bbox();let r,i;for(n.width=0===n.width?1:n.width,n.height=0===n.height?1:n.height,r=this.length-1;r>=0;r--)i=this[r][0],"M"===i||"L"===i||"T"===i?(this[r][1]=(this[r][1]-n.x)*t/n.width+n.x,this[r][2]=(this[r][2]-n.y)*e/n.height+n.y):"H"===i?this[r][1]=(this[r][1]-n.x)*t/n.width+n.x:"V"===i?this[r][1]=(this[r][1]-n.y)*e/n.height+n.y:"C"===i||"S"===i||"Q"===i?(this[r][1]=(this[r][1]-n.x)*t/n.width+n.x,this[r][2]=(this[r][2]-n.y)*e/n.height+n.y,this[r][3]=(this[r][3]-n.x)*t/n.width+n.x,this[r][4]=(this[r][4]-n.y)*e/n.height+n.y,"C"===i&&(this[r][5]=(this[r][5]-n.x)*t/n.width+n.x,this[r][6]=(this[r][6]-n.y)*e/n.height+n.y)):"A"===i&&(this[r][1]=this[r][1]*t/n.width,this[r][2]=this[r][2]*e/n.height,this[r][6]=(this[r][6]-n.x)*t/n.width+n.x,this[r][7]=(this[r][7]-n.y)*e/n.height+n.y);return this}toString(){return function(t){let e="";for(let n=0,r=t.length;n<r;n++)e+=t[n][0],null!=t[n][1]&&(e+=t[n][1],null!=t[n][2]&&(e+=" ",e+=t[n][2],null!=t[n][3]&&(e+=" ",e+=t[n][3],e+=" ",e+=t[n][4],null!=t[n][5]&&(e+=" ",e+=t[n][5],e+=" ",e+=t[n][6],null!=t[n][7]&&(e+=" ",e+=t[n][7])))));return e+" "}(this)}}const ln=t=>{const e=typeof t;return"number"===e?de:"string"===e?Gt.isColor(t)?Gt:Rt.test(t)?Ht.test(t)?hn:ce:Mt.test(t)?de:dn:gn.indexOf(t.constructor)>-1?t.constructor:Array.isArray(t)?ce:"object"===e?mn:dn};class cn{constructor(t){this._stepper=t||new Ye("-"),this._from=null,this._to=null,this._type=null,this._context=null,this._morphObj=null}at(t){return this._morphObj.morph(this._from,this._to,t,this._stepper,this._context)}done(){return this._context.map(this._stepper.done).reduce((function(t,e){return t&&e}),!0)}from(t){return null==t?this._from:(this._from=this._set(t),this)}stepper(t){return null==t?this._stepper:(this._stepper=t,this)}to(t){return null==t?this._to:(this._to=this._set(t),this)}type(t){return null==t?this._type:(this._type=t,this)}_set(t){this._type||this.type(ln(t));let e=new this._type(t);return this._type===Gt&&(e=this._to?e[this._to[4]]():this._from?e[this._from[4]]():e),this._type===mn&&(e=this._to?e.align(this._to):this._from?e.align(this._from):e),e=e.toConsumable(),this._morphObj=this._morphObj||new this._type,this._context=this._context||Array.apply(null,Array(e.length)).map(Object).map((function(t){return t.done=!0,t})),e}}class dn{constructor(...t){this.init(...t)}init(t){return t=Array.isArray(t)?t[0]:t,this.value=t,this}toArray(){return[this.value]}valueOf(){return this.value}}class fn{constructor(...t){this.init(...t)}init(t){return Array.isArray(t)&&(t={scaleX:t[0],scaleY:t[1],shear:t[2],rotate:t[3],translateX:t[4],translateY:t[5],originX:t[6],originY:t[7]}),Object.assign(this,fn.defaults,t),this}toArray(){const t=this;return[t.scaleX,t.scaleY,t.shear,t.rotate,t.translateX,t.translateY,t.originX,t.originY]}}fn.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};const pn=(t,e)=>t[0]<e[0]?-1:t[0]>e[0]?1:0;class mn{constructor(...t){this.init(...t)}align(t){const e=this.values;for(let n=0,r=e.length;n<r;++n){if(e[n+1]===t[n+1]){if(e[n+1]===Gt&&t[n+7]!==e[n+7]){const e=t[n+7],r=new Gt(this.values.splice(n+3,5))[e]().toArray();this.values.splice(n+3,0,...r)}n+=e[n+2]+2;continue}if(!t[n+1])return this;const r=(new t[n+1]).toArray(),i=e[n+2]+3;e.splice(n,i,t[n],t[n+1],t[n+2],...r),n+=e[n+2]+2}return this}init(t){if(this.values=[],Array.isArray(t))return void(this.values=t.slice());t=t||{};const e=[];for(const n in t){const r=ln(t[n]),i=new r(t[n]).toArray();e.push([n,r,i.length,...i])}return e.sort(pn),this.values=e.reduce(((t,e)=>t.concat(e)),[]),this}toArray(){return this.values}valueOf(){const t={},e=this.values;for(;e.length;){const n=e.shift(),r=e.shift(),i=e.shift(),s=e.splice(0,i);t[n]=new r(s)}return t}}const gn=[dn,fn,mn];class yn extends xe{constructor(t,e=t){super(wt("path",t),e)}array(){return this._array||(this._array=new hn(this.attr("d")))}clear(){return delete this._array,this}height(t){return null==t?this.bbox().height:this.size(this.bbox().width,t)}move(t,e){return this.attr("d",this.array().move(t,e))}plot(t){return null==t?this.array():this.clear().attr("d","string"==typeof t?t:this._array=new hn(t))}size(t,e){const n=st(this,t,e);return this.attr("d",this.array().size(n.width,n.height))}width(t){return null==t?this.bbox().width:this.size(t,this.bbox().height)}x(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)}y(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)}}function vn(){return this._array||(this._array=new Ie(this.attr("points")))}function wn(){return delete this._array,this}function xn(t,e){return this.attr("points",this.array().move(t,e))}function bn(t){return null==t?this.array():this.clear().attr("points","string"==typeof t?t:this._array=new Ie(t))}function kn(t,e){const n=st(this,t,e);return this.attr("points",this.array().size(n.width,n.height))}yn.prototype.MorphArray=hn,K({Container:{path:Et((function(t){return this.put(new yn).plot(t||new hn)}))}}),kt(yn,"Path");class Nn extends xe{constructor(t,e=t){super(wt("polygon",t),e)}}K({Container:{polygon:Et((function(t){return this.put(new Nn).plot(t||new Ie)}))}}),St(Nn,i),St(Nn,s),kt(Nn,"Polygon");class _n extends xe{constructor(t,e=t){super(wt("polyline",t),e)}}K({Container:{polyline:Et((function(t){return this.put(new _n).plot(t||new Ie)}))}}),St(_n,i),St(_n,s),kt(_n,"Polyline");class Tn extends xe{constructor(t,e=t){super(wt("rect",t),e)}}St(Tn,{rx:be,ry:ke}),K({Container:{rect:Et((function(t,e){return this.put(new Tn).size(t,e)}))}}),kt(Tn,"Rect");class Sn{constructor(){this._first=null,this._last=null}first(){return this._first&&this._first.value}last(){return this._last&&this._last.value}push(t){const e=void 0!==t.next?t:{value:t,next:null,prev:null};return this._last?(e.prev=this._last,this._last.next=e,this._last=e):(this._last=e,this._first=e),e}remove(t){t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t===this._last&&(this._last=t.prev),t===this._first&&(this._first=t.next),t.prev=null,t.next=null}shift(){const t=this._first;return t?(this._first=t.next,this._first&&(this._first.prev=null),this._last=this._first?this._last:null,t.value):null}}const En={nextDraw:null,frames:new Sn,timeouts:new Sn,immediates:new Sn,timer:()=>ft.window.performance||ft.window.Date,transforms:[],frame(t){const e=En.frames.push({run:t});return null===En.nextDraw&&(En.nextDraw=ft.window.requestAnimationFrame(En._draw)),e},timeout(t,e){e=e||0;const n=En.timer().now()+e,r=En.timeouts.push({run:t,time:n});return null===En.nextDraw&&(En.nextDraw=ft.window.requestAnimationFrame(En._draw)),r},immediate(t){const e=En.immediates.push(t);return null===En.nextDraw&&(En.nextDraw=ft.window.requestAnimationFrame(En._draw)),e},cancelFrame(t){null!=t&&En.frames.remove(t)},clearTimeout(t){null!=t&&En.timeouts.remove(t)},cancelImmediate(t){null!=t&&En.immediates.remove(t)},_draw(t){let e=null;const n=En.timeouts.last();for(;(e=En.timeouts.shift())&&(t>=e.time?e.run():En.timeouts.push(e),e!==n););let r=null;const i=En.frames.last();for(;r!==i&&(r=En.frames.shift());)r.run(t);let s=null;for(;s=En.immediates.shift();)s();En.nextDraw=En.timeouts.first()||En.frames.first()?ft.window.requestAnimationFrame(En._draw):null}},Mn=En,Cn=function(t){const e=t.start,n=t.runner.duration();return{start:e,duration:n,end:e+n,runner:t.runner}},An=function(){const t=ft.window;return(t.performance||t.Date).now()};class Ln extends ue{constructor(t=An){super(),this._timeSource=t,this.terminate()}active(){return!!this._nextFrame}finish(){return this.time(this.getEndTimeOfTimeline()+1),this.pause()}getEndTime(){const t=this.getLastRunnerInfo(),e=t?t.runner.duration():0;return(t?t.start:this._time)+e}getEndTimeOfTimeline(){const t=this._runners.map((t=>t.start+t.runner.duration()));return Math.max(0,...t)}getLastRunnerInfo(){return this.getRunnerInfoById(this._lastRunnerId)}getRunnerInfoById(t){return this._runners[this._runnerIds.indexOf(t)]||null}pause(){return this._paused=!0,this._continue()}persist(t){return null==t?this._persist:(this._persist=t,this)}play(){return this._paused=!1,this.updateTime()._continue()}reverse(t){const e=this.speed();if(null==t)return this.speed(-e);const n=Math.abs(e);return this.speed(t?-n:n)}schedule(t,e,n){if(null==t)return this._runners.map(Cn);let r=0;const i=this.getEndTime();if(e=e||0,null==n||"last"===n||"after"===n)r=i;else if("absolute"===n||"start"===n)r=e,e=0;else if("now"===n)r=this._time;else if("relative"===n){const n=this.getRunnerInfoById(t.id);n&&(r=n.start+e,e=0)}else{if("with-last"!==n)throw new Error('Invalid value for the "when" parameter');{const t=this.getLastRunnerInfo();r=t?t.start:this._time}}t.unschedule(),t.timeline(this);const s=t.persist(),o={persist:null===s?this._persist:s,start:r+e,runner:t};return this._lastRunnerId=t.id,this._runners.push(o),this._runners.sort(((t,e)=>t.start-e.start)),this._runnerIds=this._runners.map((t=>t.runner.id)),this.updateTime()._continue(),this}seek(t){return this.time(this._time+t)}source(t){return null==t?this._timeSource:(this._timeSource=t,this)}speed(t){return null==t?this._speed:(this._speed=t,this)}stop(){return this.time(0),this.pause()}time(t){return null==t?this._time:(this._time=t,this._continue(!0))}unschedule(t){const e=this._runnerIds.indexOf(t.id);return e<0||(this._runners.splice(e,1),this._runnerIds.splice(e,1),t.timeline(null)),this}updateTime(){return this.active()||(this._lastSourceTime=this._timeSource()),this}_continue(t=!1){return Mn.cancelFrame(this._nextFrame),this._nextFrame=null,t?this._stepImmediate():(this._paused||(this._nextFrame=Mn.frame(this._step)),this)}_stepFn(t=!1){const e=this._timeSource();let n=e-this._lastSourceTime;t&&(n=0);const r=this._speed*n+(this._time-this._lastStepTime);this._lastSourceTime=e,t||(this._time+=r,this._time=this._time<0?0:this._time),this._lastStepTime=this._time,this.fire("time",this._time);for(let t=this._runners.length;t--;){const e=this._runners[t],n=e.runner;this._time-e.start<=0&&n.reset()}let i=!1;for(let t=0,e=this._runners.length;t<e;t++){const n=this._runners[t],s=n.runner;let o=r;const a=this._time-n.start;a<=0?i=!0:(a<o&&(o=a),s.active()&&(s.step(o).done?!0!==n.persist&&s.duration()-s.time()+this._time+n.persist<this._time&&(s.unschedule(),--t,--e):i=!0))}return i&&!(this._speed<0&&0===this._time)||this._runnerIds.length&&this._speed<0&&this._time>0?this._continue():(this.pause(),this.fire("finished")),this}terminate(){this._startTime=0,this._speed=1,this._persist=0,this._nextFrame=null,this._paused=!0,this._runners=[],this._runnerIds=[],this._lastRunnerId=-1,this._time=0,this._lastSourceTime=0,this._lastStepTime=0,this._step=this._stepFn.bind(this,!1),this._stepImmediate=this._stepFn.bind(this,!0)}}K({Element:{timeline:function(t){return null==t?(this._timeline=this._timeline||new Ln,this._timeline):(this._timeline=t,this)}}});class On extends ue{constructor(t){super(),this.id=On.id++,t="function"==typeof(t=null==t?400:t)?new Qe(t):t,this._element=null,this._timeline=null,this.done=!1,this._queue=[],this._duration="number"==typeof t&&t,this._isDeclarative=t instanceof Qe,this._stepper=this._isDeclarative?t:new Ye,this._history={},this.enabled=!0,this._time=0,this._lastTime=0,this._reseted=!0,this.transforms=new Xt,this.transformId=1,this._haveReversed=!1,this._reverse=!1,this._loopsDone=0,this._swing=!1,this._wait=0,this._times=1,this._frameId=null,this._persist=!!this._isDeclarative||null}static sanitise(t,e,n){let r=1,i=!1,s=0;return e=e??0,n=n||"last","object"!=typeof(t=t??400)||t instanceof $e||(e=t.delay??e,n=t.when??n,i=t.swing||i,r=t.times??r,s=t.wait??s,t=t.duration??400),{duration:t,delay:e,swing:i,times:r,wait:s,when:n}}active(t){return null==t?this.enabled:(this.enabled=t,this)}addTransform(t){return this.transforms.lmultiplyO(t),this}after(t){return this.on("finished",t)}animate(t,e,n){const r=On.sanitise(t,e,n),i=new On(r.duration);return this._timeline&&i.timeline(this._timeline),this._element&&i.element(this._element),i.loop(r).schedule(r.delay,r.when)}clearTransform(){return this.transforms=new Xt,this}clearTransformsFromQueue(){this.done&&this._timeline&&this._timeline._runnerIds.includes(this.id)||(this._queue=this._queue.filter((t=>!t.isTransform)))}delay(t){return this.animate(0,t)}duration(){return this._times*(this._wait+this._duration)-this._wait}during(t){return this.queue(null,t)}ease(t){return this._stepper=new Ye(t),this}element(t){return null==t?this._element:(this._element=t,t._prepareRunner(),this)}finish(){return this.step(1/0)}loop(t,e,n){return"object"==typeof t&&(e=t.swing,n=t.wait,t=t.times),this._times=t||1/0,this._swing=e||!1,this._wait=n||0,!0===this._times&&(this._times=1/0),this}loops(t){const e=this._duration+this._wait;if(null==t){const t=Math.floor(this._time/e),n=(this._time-t*e)/this._duration;return Math.min(t+n,this._times)}const n=t%1,r=e*Math.floor(t)+this._duration*n;return this.time(r)}persist(t){return null==t?this._persist:(this._persist=t,this)}position(t){const e=this._time,n=this._duration,r=this._wait,i=this._times,s=this._swing,o=this._reverse;let a;if(null==t){const t=function(t){const e=s*Math.floor(t%(2*(r+n))/(r+n)),i=e&&!o||!e&&o,a=Math.pow(-1,i)*(t%(r+n))/n+i;return Math.max(Math.min(a,1),0)},u=i*(r+n)-r;return a=e<=0?Math.round(t(1e-5)):e<u?t(e):Math.round(t(u-1e-5)),a}const u=Math.floor(this.loops()),h=s&&u%2==0;return a=u+(h&&!o||o&&h?t:1-t),this.loops(a)}progress(t){return null==t?Math.min(1,this._time/this.duration()):this.time(t*this.duration())}queue(t,e,n,r){return this._queue.push({initialiser:t||he,runner:e||he,retarget:n,isTransform:r,initialised:!1,finished:!1}),this.timeline()&&this.timeline()._continue(),this}reset(){return this._reseted||(this.time(0),this._reseted=!0),this}reverse(t){return this._reverse=null==t?!this._reverse:t,this}schedule(t,e,n){if(t instanceof Ln||(n=e,e=t,t=this.timeline()),!t)throw Error("Runner cannot be scheduled without timeline");return t.schedule(this,e,n),this}step(t){if(!this.enabled)return this;t=null==t?16:t,this._time+=t;const e=this.position(),n=this._lastPosition!==e&&this._time>=0;this._lastPosition=e;const r=this.duration(),i=this._lastTime<=0&&this._time>0,s=this._lastTime<r&&this._time>=r;this._lastTime=this._time,i&&this.fire("start",this);const o=this._isDeclarative;this.done=!o&&!s&&this._time>=r,this._reseted=!1;let a=!1;return(n||o)&&(this._initialise(n),this.transforms=new Xt,a=this._run(o?t:e),this.fire("step",this)),this.done=this.done||a&&o,s&&this.fire("finished",this),this}time(t){if(null==t)return this._time;const e=t-this._time;return this.step(e),this}timeline(t){return void 0===t?this._timeline:(this._timeline=t,this)}unschedule(){const t=this.timeline();return t&&t.unschedule(this),this}_initialise(t){if(t||this._isDeclarative)for(let e=0,n=this._queue.length;e<n;++e){const n=this._queue[e],r=this._isDeclarative||!n.initialised&&t;t=!n.finished,r&&t&&(n.initialiser.call(this),n.initialised=!0)}}_rememberMorpher(t,e){if(this._history[t]={morpher:e,caller:this._queue[this._queue.length-1]},this._isDeclarative){const t=this.timeline();t&&t.play()}}_run(t){let e=!0;for(let n=0,r=this._queue.length;n<r;++n){const r=this._queue[n],i=r.runner.call(this,t);r.finished=r.finished||!0===i,e=e&&r.finished}return e}_tryRetarget(t,e,n){if(this._history[t]){if(!this._history[t].caller.initialised){const e=this._queue.indexOf(this._history[t].caller);return this._queue.splice(e,1),!1}this._history[t].caller.retarget?this._history[t].caller.retarget.call(this,e,n):this._history[t].morpher.to(e),this._history[t].caller.finished=!1;const r=this.timeline();return r&&r.play(),!0}return!1}}On.id=0;class jn{constructor(t=new Xt,e=-1,n=!0){this.transforms=t,this.id=e,this.done=n}clearTransformsFromQueue(){}}St([On,jn],{mergeWith(t){return new jn(t.transforms.lmultiply(this.transforms),t.id)}});const Dn=(t,e)=>t.lmultiplyO(e),Wn=t=>t.transforms;function Pn(){const t=this._transformationRunners.runners.map(Wn).reduce(Dn,new Xt);this.transform(t),this._transformationRunners.merge(),1===this._transformationRunners.length()&&(this._frameId=null)}class qn{constructor(){this.runners=[],this.ids=[]}add(t){if(this.runners.includes(t))return;const e=t.id+1;return this.runners.push(t),this.ids.push(e),this}clearBefore(t){const e=this.ids.indexOf(t+1)||1;return this.ids.splice(0,e,0),this.runners.splice(0,e,new jn).forEach((t=>t.clearTransformsFromQueue())),this}edit(t,e){const n=this.ids.indexOf(t+1);return this.ids.splice(n,1,t+1),this.runners.splice(n,1,e),this}getByID(t){return this.runners[this.ids.indexOf(t+1)]}length(){return this.ids.length}merge(){let t=null;for(let e=0;e<this.runners.length;++e){const n=this.runners[e];if(!(t&&n.done&&t.done)||n._timeline&&n._timeline._runnerIds.includes(n.id)||t._timeline&&t._timeline._runnerIds.includes(t.id))t=n;else{this.remove(n.id);const r=n.mergeWith(t);this.edit(t.id,r),t=r,--e}}return this}remove(t){const e=this.ids.indexOf(t+1);return this.ids.splice(e,1),this.runners.splice(e,1),this}}K({Element:{animate(t,e,n){const r=On.sanitise(t,e,n),i=this.timeline();return new On(r.duration).loop(r).element(this).timeline(i.play()).schedule(r.delay,r.when)},delay(t,e){return this.animate(0,t,e)},_clearTransformRunnersBefore(t){this._transformationRunners.clearBefore(t.id)},_currentTransform(t){return this._transformationRunners.runners.filter((e=>e.id<=t.id)).map(Wn).reduce(Dn,new Xt)},_addRunner(t){this._transformationRunners.add(t),Mn.cancelImmediate(this._frameId),this._frameId=Mn.immediate(Pn.bind(this))},_prepareRunner(){null==this._frameId&&(this._transformationRunners=(new qn).add(new jn(new Xt(this))))}}}),St(On,{attr(t,e){return this.styleAttr("attr",t,e)},css(t,e){return this.styleAttr("css",t,e)},styleAttr(t,e,n){if("string"==typeof e)return this.styleAttr(t,{[e]:n});let r=e;if(this._tryRetarget(t,r))return this;let i=new cn(this._stepper).to(r),s=Object.keys(r);return this.queue((function(){i=i.from(this.element()[t](s))}),(function(e){return this.element()[t](i.at(e).valueOf()),i.done()}),(function(e){const n=Object.keys(e),o=(a=s,n.filter((t=>!a.includes(t))));var a;if(o.length){const e=this.element()[t](o),n=new mn(i.from()).valueOf();Object.assign(n,e),i.from(n)}const u=new mn(i.to()).valueOf();Object.assign(u,e),i.to(u),s=n,r=e})),this._rememberMorpher(t,i),this},zoom(t,e){if(this._tryRetarget("zoom",t,e))return this;let n=new cn(this._stepper).to(new de(t));return this.queue((function(){n=n.from(this.element().zoom())}),(function(t){return this.element().zoom(n.at(t),e),n.done()}),(function(t,r){e=r,n.to(t)})),this._rememberMorpher("zoom",n),this},transform(t,e,n){if(e=t.relative||e,this._isDeclarative&&!e&&this._tryRetarget("transform",t))return this;const r=Xt.isMatrixLike(t);n=null!=t.affine?t.affine:null!=n?n:!r;const i=new cn(this._stepper).type(n?fn:Xt);let s,o,a,u,h;return this.queue((function(){o=o||this.element(),s=s||ot(t,o),h=new Xt(e?void 0:o),o._addRunner(this),e||o._clearTransformRunnersBefore(this)}),(function(l){e||this.clearTransform();const{x:c,y:d}=new Vt(s).transform(o._currentTransform(this));let f=new Xt({...t,origin:[c,d]}),p=this._isDeclarative&&a?a:h;if(n){f=f.decompose(c,d),p=p.decompose(c,d);const t=f.rotate,e=p.rotate,n=[t-360,t,t+360],r=n.map((t=>Math.abs(t-e))),i=Math.min(...r),s=r.indexOf(i);f.rotate=n[s]}e&&(r||(f.rotate=t.rotate||0),this._isDeclarative&&u&&(p.rotate=u)),i.from(p),i.to(f);const m=i.at(l);return u=m.rotate,a=new Xt(m),this.addTransform(a),o._addRunner(this),i.done()}),(function(e){(e.origin||"center").toString()!==(t.origin||"center").toString()&&(s=ot(e,o)),t={...e,origin:s}}),!0),this._isDeclarative&&this._rememberMorpher("transform",i),this},x(t){return this._queueNumber("x",t)},y(t){return this._queueNumber("y",t)},ax(t){return this._queueNumber("ax",t)},ay(t){return this._queueNumber("ay",t)},dx(t=0){return this._queueNumberDelta("x",t)},dy(t=0){return this._queueNumberDelta("y",t)},dmove(t,e){return this.dx(t).dy(e)},_queueNumberDelta(t,e){if(e=new de(e),this._tryRetarget(t,e))return this;const n=new cn(this._stepper).to(e);let r=null;return this.queue((function(){r=this.element()[t](),n.from(r),n.to(r+e)}),(function(e){return this.element()[t](n.at(e)),n.done()}),(function(t){n.to(r+new de(t))})),this._rememberMorpher(t,n),this},_queueObject(t,e){if(this._tryRetarget(t,e))return this;const n=new cn(this._stepper).to(e);return this.queue((function(){n.from(this.element()[t]())}),(function(e){return this.element()[t](n.at(e)),n.done()})),this._rememberMorpher(t,n),this},_queueNumber(t,e){return this._queueObject(t,new de(e))},cx(t){return this._queueNumber("cx",t)},cy(t){return this._queueNumber("cy",t)},move(t,e){return this.x(t).y(e)},amove(t,e){return this.ax(t).ay(e)},center(t,e){return this.cx(t).cy(e)},size(t,e){let n;return t&&e||(n=this._element.bbox()),t||(t=n.width/n.height*e),e||(e=n.height/n.width*t),this.width(t).height(e)},width(t){return this._queueNumber("width",t)},height(t){return this._queueNumber("height",t)},plot(t,e,n,r){if(4===arguments.length)return this.plot([t,e,n,r]);if(this._tryRetarget("plot",t))return this;const i=new cn(this._stepper).type(this._element.MorphArray).to(t);return this.queue((function(){i.from(this._element.array())}),(function(t){return this._element.plot(i.at(t)),i.done()})),this._rememberMorpher("plot",i),this},leading(t){return this._queueNumber("leading",t)},viewbox(t,e,n,r){return this._queueObject("viewbox",new Qt(t,e,n,r))},update(t){return"object"!=typeof t?this.update({offset:arguments[0],color:arguments[1],opacity:arguments[2]}):(null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",t.offset),this)}}),St(On,{rx:be,ry:ke,from:Oe,to:je}),kt(On,"Runner");class In extends ve{constructor(t,e=t){super(wt("svg",t),e),this.namespace()}defs(){return this.isRoot()?xt(this.node.querySelector("defs"))||this.put(new we):this.root().defs()}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof ft.window.SVGElement)&&"#document-fragment"!==this.node.parentNode.nodeName}namespace(){return this.isRoot()?this.attr({xmlns:lt,version:"1.1"}).attr("xmlns:xlink",dt,ct):this.root().namespace()}removeNamespace(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,ct).attr("xmlns:svgjs",null,ct)}root(){return this.isRoot()?this:super.root()}}K({Container:{nested:Et((function(){return this.put(new In)}))}}),kt(In,"Svg",!0);class Rn extends ve{constructor(t,e=t){super(wt("symbol",t),e)}}function Hn(t){return!1===this._build&&this.clear(),this.node.appendChild(ft.document.createTextNode(t)),this}function zn(){return this.node.getComputedTextLength()}function Fn(t,e=this.bbox()){return null==t?e.x:this.attr("x",this.attr("x")+t-e.x)}function Bn(t,e=this.bbox()){return null==t?e.y:this.attr("y",this.attr("y")+t-e.y)}function Gn(t,e,n=this.bbox()){return this.x(t,n).y(e,n)}function Vn(t,e=this.bbox()){return null==t?e.cx:this.attr("x",this.attr("x")+t-e.cx)}function Un(t,e=this.bbox()){return null==t?e.cy:this.attr("y",this.attr("y")+t-e.cy)}function Xn(t,e,n=this.bbox()){return this.cx(t,n).cy(e,n)}function $n(t){return this.attr("x",t)}function Yn(t){return this.attr("y",t)}function Qn(t,e){return this.ax(t).ay(e)}function Jn(t){return this._build=!!t,this}K({Container:{symbol:Et((function(){return this.put(new Rn)}))}}),kt(Rn,"Symbol");class Zn extends xe{constructor(t,e=t){super(wt("text",t),e),this.dom.leading=this.dom.leading??new de(1.3),this._rebuild=!0,this._build=!1}leading(t){return null==t?this.dom.leading:(this.dom.leading=new de(t),this.rebuild())}rebuild(t){if("boolean"==typeof t&&(this._rebuild=t),this._rebuild){const t=this;let e=0;const n=this.dom.leading;this.each((function(r){if(ut(this.node))return;const i=ft.window.getComputedStyle(this.node).getPropertyValue("font-size"),s=n*new de(i);this.dom.newLined&&(this.attr("x",t.attr("x")),"\n"===this.text()?e+=s:(this.attr("dy",r?s+e:0),e=0))})),this.fire("rebuild")}return this}setData(t){return this.dom=t,this.dom.leading=new de(t.leading||1.3),this}writeDataToDom(){return ht(this,this.dom,{leading:1.3}),this}text(t){if(void 0===t){const e=this.node.childNodes;let n=0;t="";for(let r=0,i=e.length;r<i;++r)"textPath"===e[r].nodeName||ut(e[r])?0===r&&(n=r+1):(r!==n&&3!==e[r].nodeType&&!0===xt(e[r]).dom.newLined&&(t+="\n"),t+=e[r].textContent);return t}if(this.clear().build(!0),"function"==typeof t)t.call(this,this);else for(let e=0,n=(t=(t+"").split("\n")).length;e<n;e++)this.newLine(t[e]);return this.build(!1).rebuild()}}St(Zn,o),K({Container:{text:Et((function(t=""){return this.put(new Zn).text(t)})),plain:Et((function(t=""){return this.put(new Zn).plain(t)}))}}),kt(Zn,"Text");class Kn extends xe{constructor(t,e=t){super(wt("tspan",t),e),this._build=!1}dx(t){return this.attr("dx",t)}dy(t){return this.attr("dy",t)}newLine(){this.dom.newLined=!0;const t=this.parent();if(!(t instanceof Zn))return this;const e=t.index(this),n=ft.window.getComputedStyle(this.node).getPropertyValue("font-size"),r=t.dom.leading*new de(n);return this.dy(e?r:0).attr("x",t.x())}text(t){return null==t?this.node.textContent+(this.dom.newLined?"\n":""):("function"==typeof t?(this.clear().build(!0),t.call(this,this),this.build(!1)):this.plain(t),this)}}St(Kn,o),K({Tspan:{tspan:Et((function(t=""){const e=new Kn;return this._build||this.clear(),this.put(e).text(t)}))},Text:{newLine:function(t=""){return this.tspan(t).newLine()}}}),kt(Kn,"Tspan");class tr extends xe{constructor(t,e=t){super(wt("circle",t),e)}radius(t){return this.attr("r",t)}rx(t){return this.attr("r",t)}ry(t){return this.rx(t)}size(t){return this.radius(new de(t).divide(2))}}St(tr,{x:Ne,y:_e,cx:Te,cy:Se,width:Ee,height:Me}),K({Container:{circle:Et((function(t=0){return this.put(new tr).size(t).move(0,0)}))}}),kt(tr,"Circle");class er extends ve{constructor(t,e=t){super(wt("clipPath",t),e)}remove(){return this.targets().forEach((function(t){t.unclip()})),super.remove()}targets(){return ee("svg [clip-path*="+this.id()+"]")}}K({Container:{clip:Et((function(){return this.defs().put(new er)}))},Element:{clipper(){return this.reference("clip-path")},clipWith(t){const e=t instanceof er?t:this.parent().clip().add(t);return this.attr("clip-path","url(#"+e.id()+")")},unclip(){return this.attr("clip-path",null)}}}),kt(er,"ClipPath");class nr extends ge{constructor(t,e=t){super(wt("foreignObject",t),e)}}function rr(t,e){return this.children().forEach((n=>{let r;try{r=n.node instanceof ft.window.SVGSVGElement?new Qt(n.attr(["x","y","width","height"])):n.bbox()}catch(t){return}const i=new Xt(n),s=i.translate(t,e).transform(i.inverse()),o=new Vt(r.x,r.y).transform(s);n.move(o.x,o.y)})),this}function ir(t){return this.dmove(t,0)}function sr(t){return this.dmove(0,t)}function or(t,e=this.bbox()){return null==t?e.height:this.size(e.width,t,e)}function ar(t=0,e=0,n=this.bbox()){const r=t-n.x,i=e-n.y;return this.dmove(r,i)}function ur(t,e,n=this.bbox()){const r=st(this,t,e,n),i=r.width/n.width,s=r.height/n.height;return this.children().forEach((t=>{const e=new Vt(n).transform(new Xt(t).inverse());t.scale(i,s,e.x,e.y)})),this}function hr(t,e=this.bbox()){return null==t?e.width:this.size(t,e.height,e)}function lr(t,e=this.bbox()){return null==t?e.x:this.move(t,e.y,e)}function cr(t,e=this.bbox()){return null==t?e.y:this.move(e.x,t,e)}K({Container:{foreignObject:Et((function(t,e){return this.put(new nr).size(t,e)}))}}),kt(nr,"ForeignObject");class dr extends ve{constructor(t,e=t){super(wt("g",t),e)}}St(dr,a),K({Container:{group:Et((function(){return this.put(new dr)}))}}),kt(dr,"G");class fr extends ve{constructor(t,e=t){super(wt("a",t),e)}target(t){return this.attr("target",t)}to(t){return this.attr("href",t,dt)}}St(fr,a),K({Container:{link:Et((function(t){return this.put(new fr).to(t)}))},Element:{unlink(){const t=this.linker();if(!t)return this;const e=t.parent();if(!e)return this.remove();const n=e.index(t);return e.add(this,n),t.remove(),this},linkTo(t){let e=this.linker();return e||(e=new fr,this.wrap(e)),"function"==typeof t?t.call(e,e):e.to(t),this},linker(){const t=this.parent();return t&&"a"===t.node.nodeName.toLowerCase()?t:null}}}),kt(fr,"A");class pr extends ve{constructor(t,e=t){super(wt("mask",t),e)}remove(){return this.targets().forEach((function(t){t.unmask()})),super.remove()}targets(){return ee("svg [mask*="+this.id()+"]")}}K({Container:{mask:Et((function(){return this.defs().put(new pr)}))},Element:{masker(){return this.reference("mask")},maskWith(t){const e=t instanceof pr?t:this.parent().mask().add(t);return this.attr("mask","url(#"+e.id()+")")},unmask(){return this.attr("mask",null)}}}),kt(pr,"Mask");class mr extends ge{constructor(t,e=t){super(wt("stop",t),e)}update(t){return("number"==typeof t||t instanceof de)&&(t={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",new de(t.offset)),this}}K({Gradient:{stop:function(t,e,n){return this.put(new mr).update(t,e,n)}}}),kt(mr,"Stop");class gr extends ge{constructor(t,e=t){super(wt("style",t),e)}addText(t=""){return this.node.textContent+=t,this}font(t,e,n={}){return this.rule("@font-face",{fontFamily:t,src:e,...n})}rule(t,e){return this.addText(function(t,e){if(!t)return"";if(!e)return t;let n=t+"{";for(const t in e)n+=t.replace(/([A-Z])/g,(function(t,e){return"-"+e.toLowerCase()}))+":"+e[t]+";";return n+="}",n}(t,e))}}K("Dom",{style(t,e){return this.put(new gr).rule(t,e)},fontface(t,e,n){return this.put(new gr).font(t,e,n)}}),kt(gr,"Style");class yr extends Zn{constructor(t,e=t){super(wt("textPath",t),e)}array(){const t=this.track();return t?t.array():null}plot(t){const e=this.track();let n=null;return e&&(n=e.plot(t)),null==t?n:this}track(){return this.reference("href")}}K({Container:{textPath:Et((function(t,e){return t instanceof Zn||(t=this.text(t)),t.path(e)}))},Text:{path:Et((function(t,e=!0){const n=new yr;let r;if(t instanceof yn||(t=this.defs().path(t)),n.attr("href","#"+t,dt),e)for(;r=this.node.firstChild;)n.node.appendChild(r);return this.put(n)})),textPath(){return this.findOne("textPath")}},Path:{text:Et((function(t){return t instanceof Zn||(t=(new Zn).addTo(this.parent()).text(t)),t.path(this)})),targets(){return ee("svg textPath").filter((t=>(t.attr("href")||"").includes(this.id())))}}}),yr.prototype.MorphArray=hn,kt(yr,"TextPath");class vr extends xe{constructor(t,e=t){super(wt("use",t),e)}use(t,e){return this.attr("href",(e||"")+"#"+t,dt)}}K({Container:{use:Et((function(t,e){return this.put(new vr).use(t,e)}))}}),kt(vr,"Use"),St([In,Rn,Pe,We,Ve],tt("viewbox")),St([Ge,_n,Nn,yn],tt("marker")),St(Zn,tt("Text")),St(yn,tt("Path")),St(we,tt("Defs")),St([Zn,Kn],tt("Tspan")),St([Tn,Ce,De,On],tt("radius")),St(ue,tt("EventTarget")),St(me,tt("Dom")),St(ge,tt("Element")),St(xe,tt("Shape")),St([ve,Le],tt("Container")),St(De,tt("Gradient")),St(On,tt("Runner")),Kt.extend([...new Set(Z)]),function(t=[]){gn.push(...[].concat(t))}([de,Gt,Qt,Xt,ce,Ie,hn,Vt]),St(gn,{to(t){return(new cn).type(this.constructor).from(this.toArray()).to(t)},fromArray(t){return this.init(t),this},toConsumable(){return this.toArray()},morph(t,e,n,r,i){return this.fromArray(t.map((function(t,s){return r.step(t,e[s],n,i[s],i)})))}});var wr,xr,br,kr,Nr,_r,Tr,Sr,Er,Mr,Cr,Ar,Lr,Or,jr,Dr,Wr,Pr,qr,Ir,Rr,Hr,zr,Fr,Br,Gr,Vr,Ur,Xr,$r,Yr,Qr,Jr,Zr,Kr,ti,ei,ni,ri,ii,si,oi,ai,ui,hi,li,ci,di,fi,pi,mi,gi,yi,vi,wi,xi,bi,ki,Ni,_i,Ti,Si,Ei,Mi,Ci,Ai,Li,Oi,ji,Di,Wi=n(169),Pi=n(692),qi=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)},Ii=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n};class Ri{constructor(t){wr.add(this),this.domNode=document.createElement("div"),xr.set(this,new Hi),br.set(this,document.createElement("div")),kr.set(this,void 0),Nr.set(this,document.createElement("div")),_r.set(this,void 0),Tr.set(this,void 0),Sr.set(this,void 0),Er.set(this,void 0),Mr.set(this,void 0),Cr.set(this,void 0),Ar.set(this,void 0),Lr.set(this,void 0),Or.set(this,void 0),jr.set(this,void 0),Dr.set(this,void 0),this.domNode.classList.add(k.lf),qi(this,xr,"f").domNode.addEventListener("click",(()=>this.domNode.classList.toggle(k.ho))),this.domNode.append(qi(this,xr,"f").domNode),qi(this,br,"f").classList.add(k.Qs),this.domNode.append(qi(this,br,"f")),Ii(this,kr,new zi(t),"f"),qi(this,br,"f").append(qi(this,kr,"f").domNode),qi(this,Nr,"f").classList.add(k.x3),qi(this,br,"f").append(qi(this,Nr,"f")),Ii(this,_r,new Fi(t),"f"),qi(this,Nr,"f").append(qi(this,_r,"f").domNode),Ii(this,Tr,new Bi(t),"f"),qi(this,Nr,"f").append(qi(this,Tr,"f").domNode),Ii(this,Sr,new Gi(t),"f"),qi(this,Nr,"f").append(qi(this,Sr,"f").domNode),Ii(this,Er,new Vi(t),"f"),qi(this,Nr,"f").append(qi(this,Er,"f").domNode),Ii(this,Mr,new Ui(t),"f"),qi(this,Nr,"f").append(qi(this,Mr,"f").domNode),Ii(this,Cr,new Xi(t),"f"),qi(this,Nr,"f").append(qi(this,Cr,"f").domNode),Ii(this,Ar,new $i(t),"f"),qi(this,Nr,"f").append(qi(this,Ar,"f").domNode),Ii(this,Lr,new Yi(t),"f"),qi(this,Nr,"f").append(qi(this,Lr,"f").domNode),Ii(this,Or,new Zi(t),"f"),qi(this,Nr,"f").append(qi(this,Or,"f").domNode),Ii(this,jr,new Ki(t),"f"),qi(this,Nr,"f").append(qi(this,jr,"f").domNode),Ii(this,Dr,new ts(t),"f"),qi(this,Nr,"f").append(qi(this,Dr,"f").domNode)}refresh(){qi(this,wr,"a",Wr).forEach((t=>t.refresh()))}}xr=new WeakMap,br=new WeakMap,kr=new WeakMap,Nr=new WeakMap,_r=new WeakMap,Tr=new WeakMap,Sr=new WeakMap,Er=new WeakMap,Mr=new WeakMap,Cr=new WeakMap,Ar=new WeakMap,Lr=new WeakMap,Or=new WeakMap,jr=new WeakMap,Dr=new WeakMap,wr=new WeakSet,Wr=function(){return[qi(this,kr,"f"),qi(this,_r,"f"),qi(this,Tr,"f"),qi(this,Sr,"f"),qi(this,Er,"f"),qi(this,Mr,"f"),qi(this,Cr,"f"),qi(this,Ar,"f"),qi(this,Lr,"f"),qi(this,Or,"f"),qi(this,jr,"f"),qi(this,Dr,"f")]};class Hi{constructor(){this.domNode=document.createElement("div"),Pr.set(this,document.createElementNS("http://www.w3.org/2000/svg","svg")),qr.set(this,document.createElement("p")),this.domNode.classList.add(k.wx),qi(this,Pr,"f").classList.add(k.m9),qi(this,Pr,"f").setAttribute("viewBox","0 0 6 10"),qi(this,Pr,"f").setAttribute("width","6"),qi(this,Pr,"f").setAttribute("height","10"),qi(this,Pr,"f").innerHTML='\n <path\n d="M 1 1 L 5 5 L 1 9"\n stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"\n fill="none"\n ></path>\n ',this.domNode.append(qi(this,Pr,"f")),qi(this,qr,"f").classList.add(k.aW),qi(this,qr,"f").textContent="Bases",this.domNode.append(qi(this,qr,"f"))}}Pr=new WeakMap,qr=new WeakMap;class zi{constructor(t){Ir.set(this,void 0),this.domNode=document.createElement("p"),Rr.set(this,document.createElement("span")),Hr.set(this,document.createElement("span")),Ii(this,Ir,t,"f"),this.domNode.classList.add(k.IU),qi(this,Rr,"f").style.fontWeight="700",this.domNode.append(qi(this,Rr,"f"),qi(this,Hr,"f")),qi(this,Ir,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}refresh(){let t=[...qi(this,Ir,"f").selectedBases].length;qi(this,Rr,"f").textContent=`${t}`,qi(this,Hr,"f").textContent=1==t?" base is selected.":" bases are selected."}}Ir=new WeakMap,Rr=new WeakMap,Hr=new WeakMap;class Fi{constructor(t){zr.add(this),Fr.set(this,void 0),Br.set(this,new M({onSubmit:()=>qi(this,zr,"m",Vr).call(this)})),Gr.set(this,void 0),Ii(this,Fr,t,"f"),Ii(this,Gr,new I("Text Content",qi(this,Br,"f").domNode),"f"),qi(this,Gr,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent",Pi(this.domNode).css({alignSelf:"start"}),qi(this,Fr,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(qi(this,Fr,"f").drawing.domNode,{characterData:!0,subtree:!0}),this.refresh()}get domNode(){return qi(this,Gr,"f").domNode}refresh(){let t=[...qi(this,Fr,"f").selectedBases];try{qi(this,Br,"f").domNode.value=(0,Wi.consensusValue)(t.map((t=>{var e;return null!==(e=t.textContent)&&void 0!==e?e:""})))}catch(t){qi(this,Br,"f").domNode.value=""}}}Fr=new WeakMap,Br=new WeakMap,Gr=new WeakMap,zr=new WeakSet,Vr=function(){var t;let e=null!==(t=qi(this,Br,"f").domNode.value)&&void 0!==t?t:"";if(e=e.trim(),!e)return void this.refresh();let n=[...qi(this,Fr,"f").selectedBases];0==n.length||n.every((t=>t.textContent===e))||(qi(this,Fr,"f").pushUndoStack(),n.forEach((t=>t.maintainingCenterPoint((()=>t.textContent=e))))),this.refresh()};class Bi{constructor(t){Ur.set(this,void 0),Xr.set(this,void 0),$r.set(this,void 0),Ii(this,Ur,t,"f"),Ii(this,Xr,new rs(t,"fill"),"f"),Ii(this,$r,new I("Fill",qi(this,Xr,"f").domNode),"f"),qi(this,$r,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill",Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return qi(this,$r,"f").domNode}refresh(){qi(this,Xr,"f").refresh()}}Ur=new WeakMap,Xr=new WeakMap,$r=new WeakMap;class Gi{constructor(t){Yr.add(this),Qr.set(this,void 0),Jr.set(this,new X),Zr.set(this,void 0),Kr.set(this,void 0),ti.set(this,void 0),Ii(this,Qr,t,"f"),qi(this,Jr,"f").domNode.addEventListener("input",(()=>qi(this,Yr,"m",ei).call(this))),Ii(this,Zr,new Q("Fill Color",qi(this,Jr,"f").domNode),"f"),Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),qi(this,Qr,"f").selectedBases.addEventListener("change",(()=>Ii(this,Kr,void 0,"f"))),qi(this,Jr,"f").domNode.addEventListener("focus",(()=>Ii(this,ti,qi(this,Jr,"f").domNode.value,"f"))),qi(this,Qr,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(qi(this,Qr,"f").drawing.domNode,{attributes:!0,attributeFilter:["fill"],subtree:!0}),this.refresh()}get domNode(){return qi(this,Zr,"f").domNode}refresh(){let t=[...qi(this,Qr,"f").selectedBases];if(0!=t.length)try{let e=t.map((t=>window.getComputedStyle(t.domNode).fill)).map((t=>new Gt(t)));qi(this,Jr,"f").domNode.value=(0,Wi.consensusValue)(e.map((t=>t.toHex().toLowerCase())))}catch(t){qi(this,Jr,"f").domNode.value="#000000"}else qi(this,Jr,"f").domNode.value="#000000"}}Qr=new WeakMap,Jr=new WeakMap,Zr=new WeakMap,Kr=new WeakMap,ti=new WeakMap,Yr=new WeakSet,ei=function(){if(qi(this,Jr,"f").domNode.value===qi(this,ti,"f"))return;let t=[...qi(this,Qr,"f").selectedBases];0!=t.length?(t.every((t=>{var e;return(null===(e=t.getAttribute("fill"))||void 0===e?void 0:e.toLowerCase())===qi(this,Jr,"f").domNode.value.toLowerCase()}))||((qi(this,Qr,"f").undoStack.isEmpty()||qi(this,Qr,"f").undoStack.peek()!==qi(this,Kr,"f"))&&(qi(this,Qr,"f").pushUndoStack(),Ii(this,Kr,qi(this,Qr,"f").undoStack.peek(),"f")),t.forEach((t=>t.setAttribute("fill",qi(this,Jr,"f").domNode.value.toLowerCase())))),this.refresh()):this.refresh()};class Vi{constructor(t){ni.set(this,void 0),ri.set(this,void 0),ii.set(this,void 0),Ii(this,ni,t,"f"),Ii(this,ri,new rs(t,"fill-opacity"),"f"),Ii(this,ii,new I("Fill Opacity",qi(this,ri,"f").domNode),"f"),qi(this,ii,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-opacity",Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return qi(this,ii,"f").domNode}refresh(){qi(this,ri,"f").refresh()}}ni=new WeakMap,ri=new WeakMap,ii=new WeakMap;class Ui{constructor(t){si.set(this,void 0),oi.set(this,void 0),ai.set(this,void 0),Ii(this,si,t,"f"),Ii(this,oi,new rs(t,"font-family"),"f"),Ii(this,ai,new I("Font Family",qi(this,oi,"f").domNode),"f"),qi(this,ai,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-family",Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return qi(this,ai,"f").domNode}refresh(){qi(this,oi,"f").refresh()}}si=new WeakMap,oi=new WeakMap,ai=new WeakMap;class Xi{constructor(t){ui.set(this,void 0),hi.set(this,void 0),li.set(this,void 0),Ii(this,ui,t,"f"),Ii(this,hi,new rs(t,"font-size"),"f"),Ii(this,li,new I("Font Size",qi(this,hi,"f").domNode),"f"),qi(this,li,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-size",Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return qi(this,li,"f").domNode}refresh(){qi(this,hi,"f").refresh()}}ui=new WeakMap,hi=new WeakMap,li=new WeakMap;class $i{constructor(t){ci.set(this,void 0),di.set(this,void 0),fi.set(this,void 0),Ii(this,ci,t,"f"),Ii(this,di,new rs(t,"font-weight"),"f"),Ii(this,fi,new I("Font Weight",qi(this,di,"f").domNode),"f"),qi(this,fi,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-weight",Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return qi(this,fi,"f").domNode}refresh(){qi(this,di,"f").refresh()}}ci=new WeakMap,di=new WeakMap,fi=new WeakMap;class Yi{constructor(t){pi.add(this),mi.set(this,void 0),gi.set(this,new z),yi.set(this,void 0),Ii(this,mi,t,"f"),qi(this,gi,"f").domNode.addEventListener("change",(()=>qi(this,pi,"m",vi).call(this))),Ii(this,yi,new G("Bold",qi(this,gi,"f").domNode),"f"),Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),qi(this,mi,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(qi(this,mi,"f").drawing.domNode,{attributes:!0,attributeFilter:["font-weight"],subtree:!0}),this.refresh()}get domNode(){return qi(this,yi,"f").domNode}refresh(){let t=[...qi(this,mi,"f").selectedBases];0==t.length?qi(this,gi,"f").domNode.checked=!1:qi(this,gi,"f").domNode.checked=t.every(Qi)}}function Qi(t){let e=t.getAttribute("font-weight");if(null===e)return!1;let n=Number.parseFloat(e);return Number.isNaN(n)?"bold"===e.toLowerCase():n>=700}function Ji(t){return!Qi(t)}mi=new WeakMap,gi=new WeakMap,yi=new WeakMap,pi=new WeakSet,vi=function(){let t=[...qi(this,mi,"f").selectedBases];0!=t.length?qi(this,gi,"f").domNode.checked&&t.every(Qi)?this.refresh():qi(this,gi,"f").domNode.checked||!t.every(Ji)?(qi(this,mi,"f").pushUndoStack(),t.forEach((t=>{t.maintainingCenterPoint((()=>{qi(this,gi,"f").domNode.checked&&Ji(t)?t.setAttribute("font-weight","700"):!qi(this,gi,"f").domNode.checked&&Qi(t)&&t.setAttribute("font-weight","400")}))})),this.refresh(),qi(this,gi,"f").domNode.blur()):this.refresh():this.refresh()};class Zi{constructor(t){wi.set(this,void 0),xi.set(this,void 0),bi.set(this,void 0),Ii(this,wi,t,"f"),Ii(this,xi,new rs(t,"font-style"),"f"),Ii(this,bi,new I("Font Style",qi(this,xi,"f").domNode),"f"),qi(this,bi,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-style",Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return qi(this,bi,"f").domNode}refresh(){qi(this,xi,"f").refresh()}}wi=new WeakMap,xi=new WeakMap,bi=new WeakMap;class Ki{constructor(t){ki.set(this,void 0),Ni.set(this,void 0),_i.set(this,void 0),Ii(this,ki,t,"f"),Ii(this,Ni,new rs(t,"text-decoration"),"f"),Ii(this,_i,new I("Text Decoration",qi(this,Ni,"f").domNode),"f"),qi(this,_i,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/text-decoration",Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return qi(this,_i,"f").domNode}refresh(){qi(this,Ni,"f").refresh()}}ki=new WeakMap,Ni=new WeakMap,_i=new WeakMap;class ts{constructor(t){Ti.add(this),Si.set(this,void 0),Ei.set(this,new z),Mi.set(this,void 0),Ii(this,Si,t,"f"),qi(this,Ei,"f").domNode.addEventListener("change",(()=>qi(this,Ti,"m",Ci).call(this))),Ii(this,Mi,new G("Underlined",qi(this,Ei,"f").domNode),"f"),Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),qi(this,Si,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(qi(this,Si,"f").drawing.domNode,{attributes:!0,attributeFilter:["text-decoration"],subtree:!0}),this.refresh()}get domNode(){return qi(this,Mi,"f").domNode}refresh(){let t=[...qi(this,Si,"f").selectedBases];0==t.length?qi(this,Ei,"f").domNode.checked=!1:qi(this,Ei,"f").domNode.checked=t.every(es)}}function es(t){let e=t.getAttribute("text-decoration");return null!==e&&e.split(/\s/).map((t=>t.toLowerCase())).includes("underline")}function ns(t){return!es(t)}Si=new WeakMap,Ei=new WeakMap,Mi=new WeakMap,Ti=new WeakSet,Ci=function(){let t=[...qi(this,Si,"f").selectedBases];0!=t.length?qi(this,Ei,"f").domNode.checked&&t.every(es)?this.refresh():qi(this,Ei,"f").domNode.checked||!t.every(ns)?(qi(this,Si,"f").pushUndoStack(),t.forEach((t=>{t.maintainingCenterPoint((()=>{qi(this,Ei,"f").domNode.checked&&ns(t)?t.setAttribute("text-decoration","underline"):!qi(this,Ei,"f").domNode.checked&&es(t)&&t.setAttribute("text-decoration","")}))})),this.refresh(),qi(this,Ei,"f").domNode.blur()):this.refresh():this.refresh()};class rs{constructor(t,e){Ai.add(this),Li.set(this,void 0),Oi.set(this,void 0),ji.set(this,new M({onSubmit:()=>qi(this,Ai,"m",Di).call(this)})),Ii(this,Li,t,"f"),Ii(this,Oi,e,"f"),qi(this,Li,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(qi(this,Li,"f").drawing.domNode,{attributes:!0,subtree:!0}),this.refresh()}get domNode(){return qi(this,ji,"f").domNode}refresh(){let t=[...qi(this,Li,"f").selectedBases];try{qi(this,ji,"f").domNode.value=(0,Wi.consensusValue)(t.map((t=>{var e;return null!==(e=t.getAttribute(qi(this,Oi,"f")))&&void 0!==e?e:""})))}catch(t){qi(this,ji,"f").domNode.value=""}}}Li=new WeakMap,Oi=new WeakMap,ji=new WeakMap,Ai=new WeakSet,Di=function(){let t=qi(this,ji,"f").domNode.value,e=[...qi(this,Li,"f").selectedBases];0==e.length||e.every((e=>e.getAttribute(qi(this,Oi,"f"))===t))||(qi(this,Li,"f").pushUndoStack(),e.forEach((e=>e.maintainingCenterPoint((()=>e.setAttribute(qi(this,Oi,"f"),t)))))),this.refresh()};var is=n(924),ss={};ss.styleTagTransform=w(),ss.setAttributes=m(),ss.insert=f().bind(null,"head"),ss.domAPI=c(),ss.insertStyleElement=y(),h()(is.Ay,ss),is.Ay&&is.Ay.locals&&is.Ay.locals;var os=n(584),as={};as.styleTagTransform=w(),as.setAttributes=m(),as.insert=f().bind(null,"head"),as.domAPI=c(),as.insertStyleElement=y(),h()(os.Ay,as),os.Ay&&os.Ay.locals&&os.Ay.locals;var us,hs=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class ls{constructor(){this.domNode=document.createElement("div"),this.caret=new cs,us.set(this,document.createElement("p")),this.domNode.classList.add(os.kY),this.caret.domNode.style.marginRight="6px",this.caret.domNode.style.pointerEvents="auto",this.domNode.append(this.caret.domNode),hs(this,us,"f").classList.add(os.Qq),this.domNode.append(hs(this,us,"f"))}get textContent(){return hs(this,us,"f").textContent}set textContent(t){hs(this,us,"f").textContent=t}}us=new WeakMap;class cs{constructor(){this.domNode=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.domNode.classList.add(os.OW),this.domNode.setAttribute("viewBox","0 0 6 10"),this.domNode.setAttribute("width","6"),this.domNode.setAttribute("height","10"),this.domNode.innerHTML='\n <path\n d="M 1 1 L 5 5 L 1 9"\n stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"\n fill="none"\n ></path>\n '}pointRight(){this.domNode.classList.remove(os.Z7)}pointDown(){this.domNode.classList.add(os.Z7)}}var ds=n(723),fs={};fs.styleTagTransform=w(),fs.setAttributes=m(),fs.insert=f().bind(null,"head"),fs.domAPI=c(),fs.insertStyleElement=y(),h()(ds.Ay,fs),ds.Ay&&ds.Ay.locals&&ds.Ay.locals;var ps,ms,gs=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class ys{constructor(t,e){this.domNode=document.createElement("div"),ps.set(this,document.createElement("p")),this.tooltip=new vs,this.domNode.classList.add(ds.kL),gs(this,ps,"f").classList.add(ds.Wu),!t||(this.textContent=t),!e||(this.onClick=e),this.domNode.append(gs(this,ps,"f"),this.tooltip.domNode)}get textContent(){return gs(this,ps,"f").textContent}set textContent(t){gs(this,ps,"f").textContent=t}get onClick(){return gs(this,ps,"f").onclick}set onClick(t){gs(this,ps,"f").onclick=t}click(){gs(this,ps,"f").click()}disable(){gs(this,ps,"f").classList.add(ds.r9)}enable(){gs(this,ps,"f").classList.remove(ds.r9)}isDisabled(){return gs(this,ps,"f").classList.contains(ds.r9)}isEnabled(){return!this.isDisabled()}}ps=new WeakMap;class vs{constructor(){this.domNode=document.createElement("div"),ms.set(this,document.createElement("p")),this.domNode.classList.add(ds.YL),this.domNode.style.visibility="hidden",gs(this,ms,"f").classList.add(ds.Ks);let t=document.createElement("div");t.classList.add(ds.Qs),t.append(gs(this,ms,"f")),this.domNode.append(t)}get textContent(){return gs(this,ms,"f").textContent}set textContent(t){gs(this,ms,"f").textContent=t,this.domNode.style.visibility=t?"visible":"hidden"}}ms=new WeakMap;var ws,xs,bs,ks,Ns,_s,Ts,Ss,Es,Ms,Cs,As,Ls,Os,js,Ds,Ws,Ps,qs,Is,Rs,Hs,zs,Fs,Bs,Gs,Vs,Us,Xs,$s,Ys,Qs,Js,Zs,Ks,to,eo,no,ro,io,so,oo,ao,uo,ho,lo,co,fo,po,mo,go,yo,vo,wo,xo,bo,ko,No,_o,To,So,Eo=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},Mo=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class Co{constructor(t){ws.add(this),xs.set(this,void 0),this.domNode=document.createElement("div"),bs.set(this,new ls),ks.set(this,document.createElement("div")),Ns.set(this,void 0),_s.set(this,document.createElement("div")),Ts.set(this,void 0),Ss.set(this,void 0),Es.set(this,void 0),Ms.set(this,void 0),Cs.set(this,void 0),As.set(this,void 0),Ls.set(this,void 0),Os.set(this,void 0),Eo(this,xs,t,"f"),this.domNode.classList.add(is.qM),Mo(this,bs,"f").textContent="Outlines",Mo(this,bs,"f").domNode.addEventListener("click",(()=>this.toggle())),this.domNode.append(Mo(this,bs,"f").domNode),this.domNode.append(Mo(this,ks,"f")),Eo(this,Ns,new Ao(t),"f"),Mo(this,ks,"f").append(Mo(this,Ns,"f").domNode),Mo(this,_s,"f").classList.add(is.x3),Mo(this,ks,"f").append(Mo(this,_s,"f")),Eo(this,Ts,new Lo(t),"f"),Mo(this,_s,"f").append(Mo(this,Ts,"f").domNode),Eo(this,Ss,new jo(t),"f"),Mo(this,_s,"f").append(Mo(this,Ss,"f").domNode),Eo(this,Es,new Do(t),"f"),Mo(this,_s,"f").append(Mo(this,Es,"f").domNode),Eo(this,Ms,new Wo(t),"f"),Mo(this,_s,"f").append(Mo(this,Ms,"f").domNode),Eo(this,Cs,new Po(t),"f"),Mo(this,_s,"f").append(Mo(this,Cs,"f").domNode),Eo(this,As,new qo(t),"f"),Mo(this,_s,"f").append(Mo(this,As,"f").domNode),Eo(this,Ls,new Io(t),"f"),Mo(this,_s,"f").append(Mo(this,Ls,"f").domNode),Eo(this,Os,new Ro(t),"f"),Mo(this,_s,"f").append(Mo(this,Os,"f").domNode)}isOpen(){return this.domNode.classList.contains(is.ho)}toggle(){this.isOpen()?(this.domNode.classList.remove(is.ho),Mo(this,bs,"f").caret.pointRight()):(this.domNode.classList.add(is.ho),Mo(this,bs,"f").caret.pointDown())}refresh(){Mo(this,ws,"a",js).forEach((t=>t.refresh()))}}xs=new WeakMap,bs=new WeakMap,ks=new WeakMap,Ns=new WeakMap,_s=new WeakMap,Ts=new WeakMap,Ss=new WeakMap,Es=new WeakMap,Ms=new WeakMap,Cs=new WeakMap,As=new WeakMap,Ls=new WeakMap,Os=new WeakMap,ws=new WeakSet,js=function(){return[Mo(this,Ns,"f"),Mo(this,Ts,"f"),Mo(this,Ss,"f"),Mo(this,Es,"f"),Mo(this,Ms,"f"),Mo(this,Cs,"f"),Mo(this,As,"f"),Mo(this,Ls,"f")]};class Ao{constructor(t){Ds.set(this,void 0),this.domNode=document.createElement("p"),Ws.set(this,document.createElement("span")),Ps.set(this,document.createElement("span")),Eo(this,Ds,t,"f"),this.domNode.classList.add(is.vM),Mo(this,Ws,"f").style.fontWeight="700",this.domNode.append(Mo(this,Ws,"f"),Mo(this,Ps,"f")),Mo(this,Ds,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}refresh(){let t=[...Mo(this,Ds,"f").selectedOutlines].length;Mo(this,Ws,"f").textContent=`${t}`,Mo(this,Ps,"f").textContent=1==t?" outline is selected.":" outlines are selected."}}Ds=new WeakMap,Ws=new WeakMap,Ps=new WeakMap;class Lo{constructor(t){qs.add(this),Is.set(this,void 0),this.domNode=document.createElement("div"),Rs.set(this,document.createElement("div")),Hs.set(this,new ys("Add",(()=>Mo(this,qs,"m",Xs).call(this)))),zs.set(this,new z),Fs.set(this,new G("Only add missing outlines",Mo(this,zs,"f").domNode)),Bs.set(this,void 0),Gs.set(this,void 0),Eo(this,Is,t,"f"),this.domNode.style.display="flex",this.domNode.style.flexDirection="column",Mo(this,Rs,"f").style.display="flex",Mo(this,Rs,"f").style.flexDirection="row",Mo(this,Rs,"f").style.gap="12px",this.domNode.append(Mo(this,Rs,"f")),Eo(this,Bs,new Oo(t),"f"),Mo(this,Rs,"f").append(Mo(this,Hs,"f").domNode,Mo(this,Bs,"f").domNode),Mo(this,Fs,"f").domNode.style.marginTop="12px",Mo(this,Fs,"f").domNode.style.alignSelf="start",this.domNode.append(Mo(this,Fs,"f").domNode),t.selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),Eo(this,Gs,new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})),"f"),Mo(this,Gs,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),Mo(this,zs,"f").domNode.addEventListener("change",(()=>this.refresh())),this.refresh()}refresh(){Mo(this,qs,"m",Us).call(this),Mo(this,Bs,"f").refresh()}}Is=new WeakMap,Rs=new WeakMap,Hs=new WeakMap,zs=new WeakMap,Fs=new WeakMap,Bs=new WeakMap,Gs=new WeakMap,qs=new WeakSet,Vs=function(){return Mo(this,zs,"f").domNode.checked},Us=function(){let t=[...Mo(this,Is,"f").selectedBases],e=[...Mo(this,Is,"f").drawing.outlines],n=new Set(e.map((t=>t.owner))),r=t.filter((t=>!n.has(t)));0==t.length?(Mo(this,Hs,"f").disable(),Mo(this,Hs,"f").tooltip.textContent="No bases are selected."):Mo(this,qs,"a",Vs)&&0==r.length?(Mo(this,Hs,"f").disable(),Mo(this,Hs,"f").tooltip.textContent="All selected bases are already outlined."):(Mo(this,Hs,"f").enable(),Mo(this,Hs,"f").tooltip.textContent="Outline the selected bases.")},Xs=function(){let t=[...Mo(this,Is,"f").selectedBases];if(0==t.length)return;let e=[...Mo(this,Is,"f").drawing.outlines],n=new Set(e.map((t=>t.owner))),r=t.filter((t=>!n.has(t))),i=Mo(this,qs,"a",Vs)?r:t;if(0==i.length)return;Mo(this,Is,"f").pushUndoStack();let s=i.map((t=>Mo(this,Is,"f").drawing.outline(t)));Mo(this,Is,"f").addToSelected(s),this.refresh()};class Oo{constructor(t){$s.set(this,void 0),Ys.set(this,new ys("Remove",(()=>this.press()))),Eo(this,$s,t,"f"),Mo(this,$s,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}get domNode(){return Mo(this,Ys,"f").domNode}press(){let t=[...Mo(this,$s,"f").selectedOutlines];0!=t.length?(Mo(this,$s,"f").pushUndoStack(),t.forEach((t=>t.domNode.remove())),this.refresh()):this.refresh()}refresh(){let t=[...Mo(this,$s,"f").selectedOutlines];0==t.length?Mo(this,Ys,"f").disable():Mo(this,Ys,"f").enable(),Mo(this,Ys,"f").tooltip.textContent=0==t.length?"No outlines are selected.":"Remove the selected outlines."}}$s=new WeakMap,Ys=new WeakMap;class jo{constructor(t){Qs.set(this,void 0),Js.set(this,void 0),Zs.set(this,void 0),Eo(this,Qs,t,"f"),Eo(this,Js,new Ho(t,"r"),"f"),Eo(this,Zs,new I("Radius",Mo(this,Js,"f").domNode),"f"),Mo(this,Zs,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/r",Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Mo(this,Zs,"f").domNode}refresh(){Mo(this,Js,"f").refresh()}}Qs=new WeakMap,Js=new WeakMap,Zs=new WeakMap;class Do{constructor(t){Ks.set(this,void 0),to.set(this,void 0),eo.set(this,void 0),Eo(this,Ks,t,"f"),Eo(this,to,new Ho(t,"fill"),"f"),Eo(this,eo,new I("Fill",Mo(this,to,"f").domNode),"f"),Mo(this,eo,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/fill",Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Mo(this,eo,"f").domNode}refresh(){Mo(this,to,"f").refresh()}}Ks=new WeakMap,to=new WeakMap,eo=new WeakMap;class Wo{constructor(t){no.add(this),ro.set(this,void 0),io.set(this,new X),so.set(this,void 0),oo.set(this,void 0),ao.set(this,void 0),Eo(this,ro,t,"f"),Mo(this,io,"f").domNode.addEventListener("input",(()=>Mo(this,no,"m",uo).call(this))),Eo(this,so,new Q("Fill Color",Mo(this,io,"f").domNode),"f"),Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Mo(this,ro,"f").selectedOutlines.addEventListener("change",(()=>Eo(this,oo,void 0,"f"))),Mo(this,io,"f").domNode.addEventListener("focus",(()=>Eo(this,ao,Mo(this,io,"f").domNode.value,"f"))),Mo(this,ro,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Mo(this,ro,"f").drawing.domNode,{attributes:!0,attributeFilter:["fill"],subtree:!0}),this.refresh()}get domNode(){return Mo(this,so,"f").domNode}refresh(){let t=[...Mo(this,ro,"f").selectedOutlines];if(0!=t.length)try{let e=t.map((t=>window.getComputedStyle(t.domNode).fill)).map((t=>new Gt(t)));Mo(this,io,"f").domNode.value=(0,Wi.consensusValue)(e.map((t=>t.toHex().toLowerCase())))}catch(t){Mo(this,io,"f").domNode.value="#000000"}else Mo(this,io,"f").domNode.value="#000000"}}ro=new WeakMap,io=new WeakMap,so=new WeakMap,oo=new WeakMap,ao=new WeakMap,no=new WeakSet,uo=function(){if(Mo(this,io,"f").domNode.value===Mo(this,ao,"f"))return;let t=[...Mo(this,ro,"f").selectedOutlines];0!=t.length?(t.every((t=>{var e;return(null===(e=t.domNode.getAttribute("fill"))||void 0===e?void 0:e.toLowerCase())===Mo(this,io,"f").domNode.value.toLowerCase()}))||((Mo(this,ro,"f").undoStack.isEmpty()||Mo(this,ro,"f").undoStack.peek()!==Mo(this,oo,"f"))&&(Mo(this,ro,"f").pushUndoStack(),Eo(this,oo,Mo(this,ro,"f").undoStack.peek(),"f")),t.forEach((t=>t.domNode.setAttribute("fill",Mo(this,io,"f").domNode.value.toLowerCase())))),this.refresh()):this.refresh()};class Po{constructor(t){ho.set(this,void 0),lo.set(this,void 0),co.set(this,void 0),Eo(this,ho,t,"f"),Eo(this,lo,new Ho(t,"fill-opacity"),"f"),Eo(this,co,new I("Fill Opacity",Mo(this,lo,"f").domNode),"f"),Mo(this,co,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/fill-opacity",Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Mo(this,co,"f").domNode}refresh(){Mo(this,lo,"f").refresh()}}ho=new WeakMap,lo=new WeakMap,co=new WeakMap;class qo{constructor(t){fo.set(this,void 0),po.set(this,void 0),mo.set(this,void 0),Eo(this,fo,t,"f"),Eo(this,po,new Ho(t,"stroke"),"f"),Eo(this,mo,new I("Stroke",Mo(this,po,"f").domNode),"f"),Mo(this,mo,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke",Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Mo(this,mo,"f").domNode}refresh(){Mo(this,po,"f").refresh()}}fo=new WeakMap,po=new WeakMap,mo=new WeakMap,new WeakMap,new WeakMap,new WeakMap,new WeakMap,new WeakMap,new WeakSet;class Io{constructor(t){go.set(this,void 0),yo.set(this,void 0),vo.set(this,void 0),Eo(this,go,t,"f"),Eo(this,yo,new Ho(t,"stroke-opacity"),"f"),Eo(this,vo,new I("Stroke Opacity",Mo(this,yo,"f").domNode),"f"),Mo(this,vo,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-opacity",Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Mo(this,vo,"f").domNode}refresh(){Mo(this,yo,"f").refresh()}}go=new WeakMap,yo=new WeakMap,vo=new WeakMap;class Ro{constructor(t){wo.set(this,void 0),xo.set(this,void 0),bo.set(this,void 0),Eo(this,wo,t,"f"),Eo(this,xo,new Ho(t,"stroke-dasharray"),"f"),Eo(this,bo,new I("Stroke Dash-Array",Mo(this,xo,"f").domNode),"f"),Mo(this,bo,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-dasharray",Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Mo(this,bo,"f").domNode}refresh(){Mo(this,xo,"f").refresh()}}wo=new WeakMap,xo=new WeakMap,bo=new WeakMap;class Ho{constructor(t,e){ko.add(this),No.set(this,void 0),_o.set(this,void 0),To.set(this,new M({onSubmit:()=>Mo(this,ko,"m",So).call(this)})),Eo(this,No,t,"f"),Eo(this,_o,e,"f"),Mo(this,No,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Mo(this,No,"f").drawing.domNode,{attributes:!0,subtree:!0}),this.refresh()}get domNode(){return Mo(this,To,"f").domNode}refresh(){let t=[...Mo(this,No,"f").selectedOutlines];try{Mo(this,To,"f").domNode.value=(0,Wi.consensusValue)(t.map((t=>{var e;return null!==(e=t.domNode.getAttribute(Mo(this,_o,"f")))&&void 0!==e?e:""})))}catch(t){Mo(this,To,"f").domNode.value=""}}}No=new WeakMap,_o=new WeakMap,To=new WeakMap,ko=new WeakSet,So=function(){let t=Mo(this,To,"f").domNode.value,e=[...Mo(this,No,"f").selectedOutlines];0==e.length||e.every((e=>e.domNode.getAttribute(Mo(this,_o,"f"))===t))||(Mo(this,No,"f").pushUndoStack(),e.forEach((e=>e.domNode.setAttribute(Mo(this,_o,"f"),t)))),this.refresh()};var zo=n(290),Fo={};Fo.styleTagTransform=w(),Fo.setAttributes=m(),Fo.insert=f().bind(null,"head"),Fo.domAPI=c(),Fo.insertStyleElement=y(),h()(zo.A,Fo),zo.A&&zo.A.locals&&zo.A.locals;var Bo,Go,Vo,Uo,Xo,$o,Yo=n(139),Qo=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},Jo=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class Zo{constructor(t){Bo.add(this),Go.set(this,void 0),this.domNode=document.createElement("div"),Vo.set(this,void 0),Uo.set(this,void 0),Xo.set(this,void 0),Qo(this,Go,t,"f"),this.domNode.classList.add(x.KQ);let e=document.createElement("p");e.classList.add(x.wx),e.textContent="Edit",this.domNode.append(e);let n=document.createElement("div");n.classList.add(x.UJ),this.domNode.append(n),Qo(this,Vo,new Ri(t),"f"),n.append(Jo(this,Vo,"f").domNode),Qo(this,Uo,new Co(t),"f"),n.append(Jo(this,Uo,"f").domNode);let r=function(){let t=document.createElement("p");return t.classList.add(zo._),t.textContent="Close",t}();r.addEventListener("click",(()=>this.close())),this.domNode.append(r),Qo(this,Xo,new Yo.DragTranslater(this.domNode),"f")}appendTo(t){this.refresh(),this.reposition(),t.appendChild(this.domNode)}close(){this.domNode.remove()}refresh(){Jo(this,Bo,"a",$o).forEach((t=>t.refresh()))}reposition(){Jo(this,Xo,"f").untranslate()}}Go=new WeakMap,Vo=new WeakMap,Uo=new WeakMap,Xo=new WeakMap,Bo=new WeakSet,$o=function(){return[Jo(this,Vo,"f"),Jo(this,Uo,"f")]}})(),r})()));
|